/* 팝업 */
#popParent {
    display: none;

    &.pop-parent {
        z-index: 99995;
        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;
            display: flex;
            gap: 5px;
        }
        .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;
            }
        }
    }
}

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

/* 메뉴 버튼 */
#header_menu_btn {
    width: 24px;
    height: 20px;

    @media screen and (min-width: 821px) {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    @media screen and (max-width: 820px) {
        position: relative;
        top: 0;
        left: 0;
    }

    span {
        position: absolute;
        left: 50%;
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background-color: #fff;
        opacity: 1;
        transition: all 0.3s;

        &:nth-child(1) {
            top: 0;
            transform: translateX(-50%);
        }
        &:nth-child(2),
        &:nth-child(3),
        &:nth-child(4) {
            top: 50%;
            transform: translate(-50%, -50%);
        }
        &:nth-child(5) {
            bottom: 0;
            transform: translateX(-50%);
        }
    }

    &.active {
        span {
            &:nth-child(2) {
                transform: translate(-50%, -50%) rotate(45deg);
            }
            &:nth-child(4) {
                transform: translate(-50%, -50%) rotate(-45deg);
            }
            &:nth-child(1),
            &:nth-child(3),
            &:nth-child(5) {
                opacity: 0;
            }
        }
    }
}

/* 메뉴 목록 */
#header_menu_list {
    height: 0;
    transition: all 0.3s ease-in-out 0.15s;

    li {
        opacity: 0;
        transition: all 0.3s;
    }

    &.active {
        height: 56px;
        transition: all 0.3s;

        li {
            opacity: 1;
            transition: all 0.3s ease-in-out 0.15s;
        }
    }
}

/* 메뉴 목록 모바일 */
#header_menu_list_mobile {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s;

    &.active {
        height: calc(100vh - 48px);
        opacity: 1;
        transition: all 0.6s;
    }
}

/* 메뉴 목록 속성 */
#header_about_list {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out 0.15s;

    button {
        opacity: 0;
        transition: all 0.3s;
    }

    &.active {
        height: 100px;
        transition: height 0.3s;

        button {
            opacity: 1;
            transition: all 0.3s ease-in-out 0.15s;
        }
    }
}

/* 헤더 배경 */
.header_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    transition: all 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);

    @media screen and (max-width: 820px) {
        &.active {
            background-color: rgba(0, 0, 0, 0.8);
        }
    }
}

/* 언어 버튼 */
.lang-btn-ko,
.lang-btn-en {
    opacity: 0.4;
    transition: all 0.3s;

    &.active {
        opacity: 1;
    }
}
.sound-btn.disabled {
    pointer-events: none;

    img {
        opacity: 0.5;
    }
}

/* 슬라이더 페이지네이션 */
.bannerSwiper {
    .swiper-pagination {
        position: static;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;

        @media screen and (max-width: 820px) {
            padding: 0 0 0 10px;
            gap: 5px;
        }
    }
}
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #fff;
    opacity: 0.4;
    margin: 0 !important;

    @media screen and (max-width: 820px) {
        width: 6px;
        height: 6px;
    }

    &.swiper-pagination-bullet-active {
        background-color: #fff;
        opacity: 1;
    }
}

/* 타이틀 페이지네이션 */
.title-pagination {
    padding: 0 16px;
    margin-bottom: 40px;

    .swiper-pagination-bullet {
        padding: 16px 24px;
        width: fit-content;
        height: fit-content;
        font-size: 16px;
        text-align: center;
        border-radius: 100px;
        opacity: 1;
        background-color: #f5f5f5;

        &::before {
            display: block;
        }
    }

    .swiper-pagination-bullet-active {
        background-color: #9e8d80;
        color: #fff;
    }

    @media screen and (max-width: 820px) {
        margin-bottom: 20px;

        .swiper-pagination-bullet {
            padding: 10px 16px;
            font-size: 14px;
        }
    }
}

html[lang="ko"] {
    .title-pagination {
        .swiper-pagination-bullet:nth-child(1)::before {
            content: "통합 솔루션";
        }
        .swiper-pagination-bullet:nth-child(2)::before {
            content: "투명한 프로세스";
        }
        .swiper-pagination-bullet:nth-child(3)::before {
            content: "공간 솔루션";
        }
    }
}

html[lang="en"] {
    .title-pagination {
        .swiper-pagination-bullet:nth-child(1)::before {
            content: "Integrated Solution";
        }
        .swiper-pagination-bullet:nth-child(2)::before {
            content: "Transparent Process";
        }
        .swiper-pagination-bullet:nth-child(3)::before {
            content: "Space Solution";
        }
    }
}

/* 비전 페이지네이션 */
.vision-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;

    .swiper-pagination-bullet {
        border: 1px solid #fff;
        box-sizing: border-box;
        background: transparent;
        opacity: 1;

        &.swiper-pagination-bullet-active {
            background-color: #fff;
        }
    }
}

/* 대시 스타일 */
.custom-dashed {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-image: repeating-linear-gradient(to right, #00000020 0, #00000020 2px, transparent 2px, transparent 8px) 1;
}
