/* 팝업 */
#popParent {
    display: none;
}
.pop-parent {
    z-index: 9999;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
    background-color: rgba(0, 0, 0, 0.35);

    .pop {
        display: block;
        position: absolute;
        top: 150px;
        left: 120px;
        width: 550px;

        .btn-toggle {
            width: 40px;
            height: 40px;
            position: relative;
            background-color: black;
            cursor: pointer;

            img {
                width: auto;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) rotate(-90deg);
                transition: all 0.3s;
            }
        }
        .swiper-btn-control {
            width: 8px;
            height: 11px;
            margin-left: 16px;
            position: relative;
            top: 2px;
        }
        .btn-close {
            width: 40px;
            height: 40px;
            background-color: black;

            > i {
                color: #fff;
            }
        }
    }
    .pop-btns {
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 40px;
        background-color: #3c3c3c;

        a {
            color: #fff;
            padding: 7px 14px;
        }
        #oneday_check {
            position: absolute;
            clip: rect(0, 0, 0, 0);
        }
        #oneday_check + label {
            display: flex;
            align-items: center;
            padding: 0 10px;
            font-size: 14px;
            color: #fff;
            cursor: pointer;
        }
        #oneday_check + label:before {
            content: "";
            display: inline-block;
            width: 12px;
            height: 12px;
            margin-right: 10px;
            border: 1px solid #fff;
        }
    }
    .popupSwiper {
        background-color: #333;
        aspect-ratio: 3/4;

        .swiper-slide {
            a {
                width: 100%;
                height: 100%;
            }
        }
    }
    .swiper-pagination {
        pointer-events: none;
        top: 21px;
        left: auto;
        right: 20px;
        width: fit-content;
    }
    .swiper-pagination-bullet {
        flex: 0 0 auto;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        border-radius: 0;
        border: 1px solid white;
        opacity: 0.5;
        background-color: transparent;
    }
    .swiper-pagination-bullet-active {
        background-color: #fff;
        opacity: 1;
    }
    .active {
        right: -400px;

        .btn-toggle {
            transform: rotate(180deg);
        }
    }
    .m-ratioBox-wrap {
        width: 100%;
        height: 100%;
        padding-top: 100%;
        position: relative;
        overflow: hidden;

        .m-ratioBox {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center;
            background-color: var(--sub_color01);
        }
        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateY(-50%) translateX(-50%);
            z-index: 1;
        }
        iframe {
            width: 105%;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateY(-50%) translateX(-50%);
            z-index: 1;
        }
    }

    /* 1279px 이하 */
    @media screen and (max-width: 1440px) {
        .pop {
            width: calc(100% - 40px);
            max-width: 550px;
            top: 150px;
            left: 80px;
            /* transform: translate(-50%, -50%); */
        }
        &.active {
            right: calc(- (100% - 40px));
        }
    }

    /* 1023px 이하 */
    @media screen and (max-width: 1023px) {
        .pop {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .floating-btns-wrap {
            bottom: 16px;
            right: 16px;
        }
    }

    /* 767px 이하 */
    @media screen and (max-width: 767px) {
        top: 50%;
        right: unset;
        left: 50%;
        transform: translate(-50%, -50%);

        .pop {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .pop-btns {
            width: 100%;
            justify-content: space-between;
        }
        .pop .btn-toggle {
            display: none;
        }
        .pop .btn-close {
            display: block;
        }
    }
}

/*
=============================================================
-------------------------커스텀스타일-------------------------
=============================================================
*/

/* 인트로 */
#intro {
    .intro-content-box {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        animation: bgToBlack 1s ease 2s forwards;

        .intro-content {
            width: 85%;
            min-width: 320px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;

            .stroke-animate path {
                stroke-width: 0.5;
                stroke: black;
                fill: black;
                stroke-dasharray: 300;
                stroke-dashoffset: 300;
                animation: strokeToWhite 1s ease 2s forwards;
            }
            .intro-txt {
                color: black;
                opacity: 0;
                animation:
                    txtOpacity 1s ease 0.8s forwards,
                    txtToWhite 1s ease 2s forwards;
            }
        }
    }
}

/* 글자색이 흰색으로 바뀜 */
@keyframes strokeToWhite {
    to {
        stroke: white;
        fill: white;
    }
}

/* 배경이 흰색으로 바뀜 */
@keyframes bgToBlack {
    to {
        background-color: black;
    }
}

/* 배경이 흰색으로 바뀜 */
@keyframes txtToWhite {
    to {
        color: white;
    }
}

/* 글자 투명도 100% */
@keyframes txtOpacity {
    to {
        opacity: 1;
    }
}

/* 텍스트 스크롤 이벤트 */
#txt_box {
    .mask {
        display: block;
    }
    .txt {
        -webkit-text-fill-color: rgba(159, 159, 159, 0.15);
        -webkit-background-clip: text;
        background-repeat: no-repeat;
        background-image: linear-gradient(#9f9f9f, #9f9f9f);
        background-size: 0% 100%;
    }
}

/* 스크롤바 숨김 */
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    &::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

/* 헤더 */
#header {
    position: relative;
    width: 100%;

    .slide-title {
        position: relative;
        cursor: pointer;

        .slide-menu {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            transform: translateX(-50%);
            width: fit-content;
            height: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 0;
            transition: all 0.6s ease;

            &.active {
                height: 216px;
            }
        }
    }
}
.lang-toggle-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.6s ease;

    &.active {
        height: 97px;
    }
}
