body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(images/bg_1.webp);
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
    z-index: -1;
}

header {
    transition: all 0.6s ease;
    opacity: 1;
    transform: translateY(0);
}
body.scroll_down header {
    opacity: 0;
    transform: translateY(-150%);
}

img + small {
    color: #ffffff;
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    margin: 0.5rem;
    z-index: 5;
    width: 100%;
    text-align: left;
    font-weight: normal;
}
.h_full {
    min-height: max(100svh, 600px);
}

.border_color {
    border-color: var(--color_ci_3) !important;
}

/* MD - 平板 以下 */
@media (max-width: 991.98px) {
    .md_d_contents {
        display: contents !important;
    }
    .md_text_center {
        text-align: center !important;
    }
    .md_border_none {
        border-color: transparent !important;
    }
    p {
        line-height: 2;
        letter-spacing: 0.1em;
    }
}

/* SM only - 只有手機 */
@media (max-width: 767.98px) {
    .ff_cn_2 {
        letter-spacing: 0.1em;
    }
}

/* ===============================
    表單
=============================== */
form input:not([type='checkbox']),
form select,
form textarea,
.form-control,
.form-select {
    border: none !important;
    width: 100%;
    background-color: #ffffff !important;
    padding: 1rem;
    border-radius: 2vw;
    letter-spacing: 0.1em;
}
form label:not(.form-check-label) {
    white-space: nowrap;
    margin: 0 1rem 0.5rem;
    display: inline-block;
    text-align-last: justify;
    text-align: justify;
    width: 6em !important;
}
.form-control:focus {
    background: none;
}
.form_item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    position: relative;
    color: #666666;
    font-weight: normal;
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* ===============================
    Swiper
=============================== */
/* 針對 Swiper 內的所有圖片強制 GPU 渲染 */
.swiper-slide img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* 騙過瀏覽器，強制啟動 3D 渲染層 */
}
.swiper-button-next,
.swiper-button-prev {
    width: 10%;
    height: 100%;
    top: 0;
    bottom: 0;
    margin: 0;
}
.swiper-button-prev {
    left: 0;
    justify-content: start;
}
.swiper-button-next {
    right: 0;
    justify-content: end;
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2rem;
    margin: auto;
    color: #ffffff;
    filter: var(--drop_shadow);
}
.mySwiper_wide_scroll img {
    display: block;
    width: 100%;
    height: auto;
}
.mySwiper_fraction {
    align-self: flex-start;
}
.swiper-pagination-fraction {
    bottom: 2.5% !important;
    right: 3% !important;
    left: auto !important;
    width: auto !important;
    color: #fff;
    font-size: 1rem;
    text-shadow: var(--text_shadow);
}
/* SM only - 只有手機 */
@media (max-width: 767.98px) {
    .mySwiper_wide_scroll .swiper-wrapper {
        display: inline-flex;
    }
    .mySwiper_wide_scroll .swiper-slide {
        width: auto !important; /* 強制寬度自適應圖片 */
    }
    .mySwiper_wide_scroll img {
        width: auto !important;
        height: 400px; /* 您設定的高度 */
        max-width: none !important; /* 允許溢出螢幕 */
    }
}
