::-webkit-scrollbar:horizontal {
    height: 4px !important;
}

.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;

    /* ✅ 初始狀態 (隱藏) */
    opacity: 0;
    transform: translateX(-50px);
}

/* ✅ 啟動動畫後才會執行 */
.box.animate {
    animation: slideIn 0.6s ease forwards;
}

.box.animate:nth-child(1) { animation-delay: 0.2s; }
.box.animate:nth-child(2) { animation-delay: 0.5s; }
.box.animate:nth-child(3) { animation-delay: 0.8s; }
.box.animate:nth-child(4) { animation-delay: 1.1s; }
.box.animate:nth-child(5) { animation-delay: 1.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.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-pic2-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 40px;
}

.sec2-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/包場音樂劇.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
}

.sec2-pic4-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}

.sec2-pic4 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/藝術出走.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
}

.sec2-pic1-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 40px;
}

.sec2-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/贈書閱讀.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic3-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 35px;
}

.sec2-pic3 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/企業藝廊展.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic5-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}

.sec2-pic5 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/藝文活動.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic1-mobile, .sec2-pic3-mobile, .sec2-pic5-mobile {
    display: none;
}

.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;
}



/*------------------------------------------------*/
@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;
    }

    .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-pic2-desc, .sec2-pic4-desc {
        width: 100%;
        height: unset;
        max-width: unset;
        margin-bottom: 15px;
    }

    .sec2-pic2, .sec2-pic4 {
        /*max-width: 320px;*/
        height: 200px;
        width: calc(100% - 20px);
        background-size: contain;
        background-position: center;
        float: none;
    }

    .sec2-pic1-desc, .sec2-pic3-desc, .sec2-pic5-desc {
        margin-right: 20px;
        width: 100%;
        max-width: unset;
        height: unset;
        display: inline-block;
        margin-bottom: 15px;
    }

    .sec2-pic1, .sec2-pic3, .sec2-pic5 {
        display: none;
    }

    .sec2-pic1-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/贈書閱讀.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec2-pic3-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/企業藝廊展.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec2-pic5-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/藝文活動.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        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;
    }

    /*!* 美化滾動條 *!*/
    /*.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;  /* 滾動對齊 */
    }

    .contentDoc {
        font-size: 16px;
    }
}