::-webkit-scrollbar:horizontal {
    height: 4px !important;
}

h1, h2, h3, h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

h1, h2, h3, p, h1, h2, h3, p, h4, h5, h6, hr {
    margin: 0;
}

hr {
    height: 0;
    color: #C8CBD0;
    border-top-width: 1px;
    margin: 10px 30px 10px 30px;
}

.bg-white {
    background-color: #FFFFFF;
}

section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.allDiv {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.frame {
    width: 100%;
}

.frameDiv {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-bottom: 50px;

    display: flex;
    flex-direction: column;
    gap: 30px;
}

.frameDiv.noTop {
    padding-top: 0;
}

.caption {
    font-style: normal;
    font-weight: bold;
    font-size: 36px !important;
    line-height: 53px;
    color: #3AAFA9;
}

.captionBr {
    display: none;
}

.smallCaption {
    font-style: normal;
    font-weight: bold;
    font-size: 28px !important;
    line-height: 150%;
    color: #2B7A77;
}

.contentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100%;
    flex: none;
    flex-grow: 0;
    position: relative;
}

.contentDiv span,.contentDoc, .imageContent {
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;
    text-align: justify;
    letter-spacing: 0.4px;
    color: #40474A;
}
.captionContent {
    width: 100%;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;

    text-align: justify;
    letter-spacing: 0.02em;

    color: #40474A;

    flex: none;
    flex-grow: 0;
}

#contractorDiv {
    justify-content: center;
    align-items: center;
}

#contractorDiv a:link {
    text-decoration: none;
    width: 453px;
    max-width: calc(100% - 30px);
    height: 50px;
}

#contractorMore {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background-color: #3AAFA9;
    cursor: pointer;
}
#contractorMore span {
    color: white;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    line-height: 150%;
}

#otherFrame {
    background-color: #F9F7F4;
}

.tableArrow {
    display: none;
    cursor: pointer;
}

.box-frame {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
}

.box {
    width: 200px;
    height: 82px;
    background-color: #F9F7F4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #2B7A77;
}

.checkmark {
    font-size: 20px;
    margin-left: 10px;
    margin-right: 8px;
    margin-bottom: 22px;
    flex-shrink: 0;
    width: 18px;
    height: 14px;
    background: url("../../../img/menu/6/6-7/icon-tick.svg") no-repeat; /* 綠色勾勾 */
    background-size: cover;
    background-repeat: no-repeat;
}

.text {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
}

.sec2-pic1-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
}

.sec2-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/金寶志工社.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
    margin-top: 60px;
}

.sub-title {
    /*font-family: 'Roboto';*/
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2B7A77;
}

.pic-desc {
    width: auto;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #3AAFA9;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    float: right;
    margin-top: -20px;
    position: relative;
}

.section3-title {
    /*font-family: 'Roboto';*/
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 150%;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2B7A77;
}

.legendView {
    display: inline-block;
    width: 350px;
    /*height: 30px;*/
    line-height: 30px;
    padding: 10px 10px 10px 10px;
    border-radius: 30px;
    /*box-shadow: 0 2px 4px 0 rgb(0 0 0 / 50%);*/
    border: solid 1px #ffffff;
    color: black;
    font-size: 15px;
    text-align: center;
    margin: 20px 0px 20px 0px;
    background: white;
}

.legendContent {
    display: inline-block;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #fff solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.employeeCheckBox[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #4AC8C1 solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.adoptCheckBox[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #45D2FF solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.employeeCheckBox[type="checkbox"]:checked {
    background: #4AC8C1;
}
input.employeeCheckBox[type=checkbox]:checked::after {
    content: '';
    margin-top: 6px;
    margin-left: 4px;
    display: block;
    background: transparent;
    border: white solid 2px;
    border-top: none;
    border-right: none;
    height: 5px;
    width: 12px;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

input.adoptCheckBox[type="checkbox"]:checked {
    background: #45D2FF;
}
input.adoptCheckBox[type=checkbox]:checked::after {
    content: '';
    margin-top: 6px;
    margin-left: 4px;
    display: block;
    background: transparent;
    border: white solid 2px;
    border-top: none;
    border-right: none;
    height: 5px;
    width: 12px;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.overflow-x-scroll {
    overflow-x: scroll;
}

.mobileGraphScrollBtn {
    position: absolute;
    background-image: url(../../../img/menu/5/5-3/icon-next-btn.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 35px;
    height: 35px;
    left: 95px;
    margin-top: -14px;
    border-radius: 50%;
    border: 1px solid #ABABAB;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    background-color: white;
    display: none;
    z-index: 1;
}

.tableSelectItem{
    display: inline-block;
    text-align: left;
}

.box-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: calc(50% - 10px);
    min-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 160px;
}

.box-item-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%;
}

.image-placeholder {
    flex: 0 0 200px;
    width: 200px;
    height: 120px;
    border-radius: 10px;
}

.box-item-title {
    font-size: 16px;
    color: #2B7A77;
    margin-bottom: 15px;
    font-weight: 700;
}

.box-item-content {
    font-size: 16px;
    color: #40474A;
    line-height: 130%;
}

.sec4-pic1 {
    background: url("../../../img/menu/6/6-8/喜樂家族基金會.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec4-pic2 {
    background: url("../../../img/menu/6/6-8/育成基金會集賢庇護工場.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec4-pic3 {
    background: url("../../../img/menu/6/6-8/唐氏症基金會.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec4-pic4 {
    background: url("../../../img/menu/6/6-8/家樂福深坑分店.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec4-pic5 {
    background: url("../../../img/menu/6/6-8/阿旺師烘焙坊.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec6-pic2-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
}

.sec6-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/舊電池變成愛.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
}


.sec6-pic1-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}

.sec6-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/綠色講座.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec6-pic3-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    /*margin-top: 30px;*/
    margin-bottom: 90px;
}

.sec6-pic3 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/關燈一小時.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}


.sec6-pic1-mobile, .sec6-pic3-mobile {
    display: none;
}

.icon-sec7-bg-1 {
    background: url("../../../img/menu/6/6-8/舊鞋救命1.png") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.icon-sec7-bg-2 {
    background: url("../../../img/menu/6/6-8/舊鞋救命2.png") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.sec7-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/舊鞋救命1.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec7-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/舊鞋救命2.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.icon-prev-btn {
    width: 40px;
    height: 40px;
    background: url("../../../img/menu/5/5-3/icon-prev-btn.svg") no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
}

.icon-prev-btn:hover {
    opacity: 1;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.icon-next-btn {
    width: 40px;
    height: 40px;
    background: url("../../../img/menu/5/5-3/icon-next-btn.svg") no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
}

.icon-next-btn:hover {
    opacity: 1;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.sec8-bg {
    background: #F7F7F7;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../../../img/menu/6/6-8/淨灘活動.jpg) center center/cover no-repeat;
    background-size: cover;
    background-position-x: unset;
    /*background-position-y: -250px;*/
}

.common-4 {
    color: #717784;
    float: unset;
    position: unset;
    left: 0px;
    margin-top: 10px;
    font-size: 18px;
}


/*------------------------------------------------*/
@media only screen and (max-width: 1080px) {
    .contentDiv, .contentDoc {
        padding-left: 15px;
        padding-right: 15px;
    }

    .captionContent {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
        line-height: 140%;
    }
}

/*------------  512px 以下，就認為是手機 -----------------*/
@media only screen and (max-width: 512px) {
    .imageBlockScrollDiv {
        width: calc(100% - 30px);
    }

    .imageBlockSelectDiv {
        display: flex;
    }

    .rightImg {
        display: block;
    }

    .frameDiv {
        padding-top: 30px;
        padding-bottom: 30px;
        gap: 10px
    }

    .caption {
        font-size: 24px !important;
        line-height: 32px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .smallCaption {
        font-size: 20px !important;
    }

    .captionBr {
        display: inline-block;
    }

    .contentDiv {
        gap: 20px;
    }

    .captionContent {
        font-size: 16px;
        line-height: 140%;
    }

    .sub-title {
        font-size: 20px;
        line-height: 26px;
    }


    .pic-desc {
        font-size: 16px;
        height: 40px;
        line-height: 40px;
    }

    .sec2-pic1-desc {
        width: 100%;
        height: unset;
        max-width: unset;
        margin-bottom: 15px;
    }

    .sec2-pic1  {
        /*max-width: 320px;*/
        height: 200px;
        width: calc(100% - 20px);
        background-size: contain;
        background-position: center;
        margin-top: 10px;
        float: none;
    }

    .box-frame {
        flex-wrap: nowrap;  /* 防止換行 */
        overflow-x: auto;   /* 啟用水平滾動 */
        -webkit-overflow-scrolling: touch;  /* 讓滾動更順暢 */
        padding: 15px 0;    /* 增加上下間距 */
        gap: 15px;         /* 調整間距 */
        justify-content: flex-start;  /* 從左側開始排列 */
        scroll-snap-type: x mandatory;  /* 讓滾動更順暢 */
        width: calc(100% - 20px);
        padding-top: 0px;
        gap: 10px !important;
    }

    /*!* 美化滾動條 *!*/
    /*.box-frame::-webkit-scrollbar {*/
    /*    height: 8px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-track {*/
    /*    background: #f1f1f1;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb {*/
    /*    background: #2B7A77;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb:hover {*/
    /*    background: #264E58;*/
    /*}*/

    /* 確保子元素不會被壓縮 */
    .box-frame > * {
        flex: 0 0 auto;  /* 防止子元素被壓縮 */
        scroll-snap-align: start;  /* 滾動對齊 */
    }

    .section3-title {
        font-size: 20px;
    }

    .mobileGraphScrollBtn {
        display: block;
    }

    .box-item {
        padding: 10px;
        width: calc(100%);
        height: auto;
    }

    .box-item-flex {
        gap: 10px;
    }

    .image-placeholder {
        width: 150px;
        height: 90px;
        flex: unset;
    }

    .box-item-title {
        font-size: 14px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .box-item-content {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .sec6-pic2-desc {
        width: 100%;
        height: unset;
        max-width: unset;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .sec6-pic2 {
        /*max-width: 320px;*/
        height: 200px;
        width: calc(100% - 20px);
        background-size: contain;
        background-position: center;
        float: none;
    }

    .sec6-pic1-desc, .sec6-pic3-desc {
        margin-right: 20px;
        width: 100%;
        max-width: unset;
        height: unset;
        display: inline-block;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .sec6-pic1, .sec6-pic3 {
        display: none;
    }

    .sec6-pic1-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-8/綠色講座.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec6-pic3-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-8/關燈一小時.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec8-bg {
        background-position-x: calc(50% - 80px);
        background-position-y: unset;
    }

    .common-4 {
        color: #717784;
        float: left;
        position: relative;
        left: 120px;
        margin-top: 0px;
        font-size: 16px;
    }

    .contentDoc {
        font-size: 16px;
    }

    .legendView {
        width: calc(100% - 10px);
    }
}