@charset "utf-8";

/* 스킵 네비게이션 */
#skip-navigation{position: absolute; z-index: 9999; left: 0; right: 0; top: 0;}
#skip-navigation *{list-style: none; margin: 0; padding: 0;}
#skip-navigation a{display: block; width: 1px; height: 1px; overflow: hidden; color: #fff; white-space: nowrap; text-align: center;}
#skip-navigation a:focus,
#skip-navigation a:active{width: 100%; height: auto; padding: 0.5rem; background: #000;}


/* wrap */
.wrap{
    position: relative; width: 1600px; margin: 0 auto;
    &.wide{width: auto;}
    &.small{max-width: 920px;}

    @media (width <= 1820px){
        width: auto; padding: 0 var(--space);
        &.wide{margin: 0; padding: 0 var(--space);}
    }
}


/* header : 아이디가 아니라 그냥 tag name 으로 사용하기 */
header{
    position: fixed; z-index: 10; top: 0; left: 0; width: 100%; min-width: 320px;

    & > .wrap{width: auto; margin: 0 100px; display: flex; flex-wrap: wrap; align-items: flex-start;}

    & .logo{
        & a{
            position: relative; display: block; line-height: 100px; transition: line-height 0.2s ease-out;
            & img{margin: -0.3em 0 0; opacity: 0;}
            &:before{content: ""; position: absolute; z-index: 1; top: 30px; left: 0; background: url("/assets/site/img/common/logo.svg") no-repeat center; background-size: 100% auto; width: 80px; height: auto; aspect-ratio: 80 / 40; transition: top 0.2s ease-out;}
        }
    }
    & .lnb{
        margin: 0 0 0 auto;
        & .d1{
            display: flex; flex-wrap: wrap;
            & > li{
                position: relative;
                & > a{
                    display: block; line-height: 100px; padding: 0 16.5px; color: var(--white); font-size: 18px; font-weight: var(--fwb); font-family: var(--font-eng); letter-spacing: 0.01em; transition: line-height 0.2s ease-out;
                    &.on{
                        color: var(--theme-green3);
                        #monster-coffee{
                            & > g{
                                & path{fill: var(--theme-green3);}
                                & path:nth-child(1){fill: #fff;}
                            }
                        }
                    }
                }
                & .d2{
                    width: 100%; overflow: hidden; visibility: hidden; height: 0; transition: height 0.15s ease-out;
                    & > li{
                        & > a{display: block; padding: 10px 0; font-size: 16px; text-align: center;}
                    }
                }
            }
        }

        /* css - hover */
        &:hover{
            & #monster-coffee{
                & > g{
                    & > path:not(:nth-child(1)){animation: jump 0.35s both;}
                    & > path:nth-child(2){animation-delay: 0s;}
                    & > path:nth-child(3){animation-delay: 0.03s;}
                    & > path:nth-child(4){animation-delay: 0.06s;}
                    & > path:nth-child(5){animation-delay: 0.09s;}
                    & > path:nth-child(6){animation-delay: 0.12s;}
                    & > path:nth-child(7){animation-delay: 0.15s;}
                    & > path:nth-child(8){animation-delay: 0.18s;}
                    & > path:nth-child(9){animation-delay: 0.21s;}
                    & > path:nth-child(10){animation-delay: 0.24s;}
                    & > path:nth-child(11){animation-delay: 0.27s;}
                    & > path:nth-child(12){animation-delay: 0.30s;}
                    & > path:nth-child(13){animation-delay: 0.33s;}
                    & > path:nth-child(14){animation-delay: 0.36s;}

                    & > path:nth-child(1){transform: rotateX(360deg); transition: transform 0.7s 0.5s ease; transform-origin: center;}
                }
            }
        }
    }
    & .snb{
        display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 26px 0 0 24px; transition: padding 0.2s ease-out;

        & .f-inquiry{
            & .btn-f-inquiry{
                width: 120px; text-align: center; line-height: 46px; border: 1px solid rgba(255,255,255,0.3); border-radius: 48px; color: var(--white); background: var(--theme-green);
                & span{}
            }
        }

        & .btn-nav{
            display: none; position: relative; z-index: 99; width: 30px; height: auto; aspect-ratio: 1; font-size: 0;
            & span{position: absolute; left: 2px; right: 2px; height: 2px; border-radius: 2px; background: #fff; transition: top 0.3s, opacity 0.3s, transform 0.3s;}
            & span:nth-child(1){top: 5px;}
            & span:nth-child(2){top: 14px;}
            & span:nth-child(3){top: 14px;}
            & span:nth-child(4){top: 23px;}
            &.on{
                & span{background: #fff;}
                & span:nth-child(1){top: 14px; opacity: 0; transform: rotate(45deg);}
                & span:nth-child(4){top: 14px; opacity: 0; transform: rotate(-45deg);}
                & span:nth-child(2){transform: rotate(-45deg);}
                & span:nth-child(3){transform: rotate(45deg);}
            }
        }
    }

    /* white logo + white 영역에서 시인성 위해 추가 */
    &:not(.black){
        backdrop-filter: blur(1px);
        /* mask: linear-gradient(black, rgba(0, 0, 0, 0.7), transparent); */
        background: linear-gradient(180deg, rgba(14, 22, 22, 1) -200%, rgba(14, 22, 22, 0.3) 10%, rgba(14, 22, 22, 0) 100%);
    }

    /* ▼ haeder.scrolled ▼ */
    &.scrolled{
        & .logo{
            & a{
                line-height: 80px;
                &:before{top: 20px;}
            }
        }
        & .lnb{
            & .d1{
                & > li{
                    & > a{line-height: 80px;}
                }
            }
        }
        & .snb{
            padding-top: 16px;
        }
    }

    /* ▼ haeder.on 또는 haeder.black  ▼ */
    &.on,
    &.black{
        background: rgba(255,255,255,0.9); backdrop-filter: blur(2px);
        & .logo{
            & a:before{background-image: url("/assets/site/img/common/logo-green.svg");}
        }
        & .lnb{
            & .d1{
                & > li{
                    & > a{
                        color: var(--main);
                        &.on{
                            color: var(--theme-green);
                            #monster-coffee{
                                & > g{
                                    & path{fill: #009944;}
                                    & path:nth-child(1){fill: #2f2725;}
                                }
                            }
                        }
                    }

                    & .d2{
                        & > li{
                            & > a{color: var(--main);}
                            & > a:hover,
                            & > a:focus{font-weight: var(--fwm);}
                        }
                    }
                }
                & > li.current{
                    & > a{/* color: #fff; */ /* background-color: var(--theme-blue); */}

                    & .d2{
                        /* background-color: var(--theme-blue); */
                        & > li{
                            & > a{/* color: #fff; */}
                        }
                    }
                }
            }
        }
        & .snb{
            & .btn-nav{
                & span{background: #000;}
            }
        }
        #monster-coffee{
            & > g{
                & path{fill: #2f2725;}
                & path:nth-child(1){fill: #009944;}
            }
        }
    }

    /* ▼ ONLY haeder.black  ▼ */
    &.black{
        
    }

    @media (width <= 1820px){
        & > .wrap{margin: 0 auto; padding: 0 var(--space);}
    }
    @media (width <= 1280px){
        & .logo{
            & a{
                line-height: 80px;
                & img{}
                &:before{top: 20px;}
            }
        }
        & .lnb{display: none;}
        & .snb{
            margin: 0 0 0 auto; padding: 22px 0 0 0; gap: 20px;
            
            & .f-inquiry{
                & .btn-f-inquiry{line-height: 38px;}
            }

            & .btn-nav{
                display: inline-block;
                &.on{
                    & span{background: #fff;}
                }
            }
        }

        /* ▼ haeder.scrolled ▼ */
        &.scrolled{
            & .snb{
                padding-top: 22px;
            }
        }
    }
    @media (width <= 640px){
        & .logo{
            & a{
                line-height: 62px;
                & img{height: 28px;}
                &:before{width: auto; height: 28px; top: 17px;}
            }
        }
        & .snb{
            padding: 16px 0 0 0;
            
            & .f-inquiry{display: none;}
        }

        /* ▼ haeder.scrolled ▼ */
        &.scrolled{
            & .logo{
                & a{line-height: 62px;}
                & a:before{top: 17px;}
            }
            & .lnb{
                & .d1{
                    & > li{
                        & > a{line-height: 62px;}
                    }
                }
            }
            & .snb{
                padding-top: 16px;
            }
        }
    }


    /* 창업 문의 헤더 전용 */
    &#header-franchise{
        & .logo{
            & a{
                img{opacity: 0;}
                &:before{background-image: url("/assets/site/img/common/logo-franchise-head.svg"); width: 276px; height: auto; aspect-ratio: 276 / 24; top: 38px;}
            }
        }

        &.scrolled{
            & .logo{
                & a{
                    &:before{top: 28px;}
                }
            }
        }

        @media (width <= 1280px){
            & .logo{
                & a{
                    &:before{top: 28px;}
                }
            }
        }
        @media (width <= 640px){
            & .logo{
                & a{
                    & img{height: 14px;}
                    &:before{top: 24px; width: 161px;}
                }
            }

            &.scrolled{
                & .logo{
                    & a{
                        &:before{top: 24px;}
                    }
                }
            }
        }
    }
}


/* 헤더 MONSTER COFFEE 메뉴 태그 커스텀 */
#monster-coffee{
    display: inline-block; vertical-align: middle; margin: -3px 0 0;
    /* &.black{
        & > g{
            & path{fill: #009944;}
            & path:nth-child(1){fill: #2f2725;}
        }
    }
    &.green{
        & > g{
            & path{fill: #009944;}
            & path:nth-child(1){fill: #fff;}
        }
    } */
}


/* sitemapBG */
.sitemapBG {
    position: fixed; z-index: 98; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 95%; height: 95%; border-radius: 20px; background: #fff; opacity: 0; transition: 0.5s; pointer-events: none; will-change: transform;

    &.open{
        display: block; opacity: 1; pointer-events: auto; width: 100%; height: 100vh; border-radius: 0;
    }

    @media (width <= 1280px){
        background: rgba(0,0,0,0.8); width: 100%; height: 100vh; border-radius: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        transform: none; left: 0; top: 0; bottom: 0; right: 0;
    }
}


/* sitemapNAV */
.sitemapNAV{
    position: fixed; z-index: 98; top: 0; left: 0; width: 100%; height: 100vh; min-width: 320px; border-radius: 20px; pointer-events: none; opacity: 0; background: #fff; transition: all 1s; overflow: hidden; -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */
    &::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera*/
    }
    &:before{
        content: ""; position: absolute; z-index: -1; top: 80%; left: 50%; transform: translate(-50%, -50%); display: block; width: 430px; height: auto; aspect-ratio: 205 / 32; background: url("/assets/site/img/common/logo.svg") no-repeat; background-size: contain; background-position: center top -180px; opacity: 0.3; transition: 0.5s; filter: var(--filter-black); opacity: 0.05;
    }

    & .wrap.pc-gnb{
        display: none !important; margin: 0 auto; width: 1400px; height: 100%; max-width: 90%;
        & .d1{
            position: fixed; position: absolute; display: flex; flex-wrap: wrap; gap: 7%; width: 100%; min-width: 320px; left: 0; top: 50%; transform: translateY(-50%);
            & > li{
                flex: 1; min-width: 0; display: inline-block; width: auto; margin: 1.5rem 0; opacity: 0; vertical-align: top; transition: 0.4s cubic-bezier(0.365, 0.84, 0.44, 1);
                &:nth-child(1){padding-left: 0;}

                & > a{
                    display: block; box-sizing: border-box; padding: 0 0 1rem; position: relative; font-size: 2rem; font-weight: 800; color: #222; text-decoration: none; transition: 0.5s; pointer-events: none;
                    &:before{position: absolute; content: ""; left: 0; bottom: 0; z-index: -1; width: 100%; height: 2px; background-color: #ddd;}
                    &:after{content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: 2px; background: var(--theme-green); transform: scaleX(0.3); transform-origin: left; transition: transform 0.5s;}
                }

                &:hover{
                    & > a{
                        pointer-events: initial;
                        &:after{transform: scaleX(1);}
                    }
                }
            }

            & .d2{
                margin-top: 6px; padding-top: 14px;
                & > li{
                    margin: 15px 0;
                    & > a{
                        display: inline-block; vertical-align: middle; color: #333; font-size: 1.1rem; white-space: nowrap;
                        &:before{display: none;}

                        &:hover,
                        &:focus{
                            font-weight: 600; color: #222;
                        }
                        &.on{font-weight: var(--fwsb); color: #000;}
                    }
                }
            }
        }
        @media (width <= 1280px){
            display: none;
        }
    }

    & .m-gnb{
        display: none; flex-direction: column; height: 100%; position: relative; min-width: 320px; background: var(--theme-black); color: #fff;
        & .gnb-top {
            flex: 0 0 auto; background: var(--theme-green); width: 100%; max-width: 500px; min-width: 320px; z-index: 1;
            & h2 {
                padding: 0 55px 0 var(--space);
                & a{display: inline-block; line-height: 80px;}
                & img {width: auto; height: 40px;}
            }
        }
        & .d1{
            flex: 1; min-height: 0; display: block; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none;
            &::-webkit-scrollbar{display: none;}
            & > li{
                border-bottom: 1px solid #333;
                & > a{
                    position: relative; display: block; font-size: 17px; font-weight: var(--fwm); padding: 14px 20px;
                    &:after{content: ""; position: absolute; top: 20px; right: 25px; width: 8px; height: auto; aspect-ratio: 1; border-left: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(-45deg); transition: 0.2s;}

                    &.on{
                        color: var(--theme-green);
                        &:after{border-color: #fff; transform: rotate(-225deg); top: 25px;}
                    }

                    /* 하위 뎁스 없이 바로 이동되는 경우 */
                    &:not(:has(+ .d2)){
                        &:after{transform: rotate(-135deg) !important; top: 23px !important;}
                    }
                }

                & .d2{
                    display: none; padding: 0 20px 10px;
                    & > li{
                        & > a{display: block; padding: 10px 10px 10px 10px;}
                        & > a.on{font-weight: var(--fwsb); background: var(--theme-green); border-radius: 5px;}
                    }
                }
            }
        }
        & .gnb-bot{
            flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; padding: 15px var(--space); background: var(--theme-green); background: #333132;
            & .sns-list{
                display: flex; flex-wrap: wrap; gap: 15px; opacity: 0.5;
                & > li{
                    & a{
                        display: block; width: 26px; height: auto; aspect-ratio: 1; font-size: 0; background-repeat: no-repeat; background-position: center; background-color: transparent;
                        &.instagram{background-image: url("/assets/site/img/common/ft-sns-instagram.svg");}
                        &.youtube{background-image: url("/assets/site/img/common/ft-sns-youtube.svg");}
                        &.blog{background-image: url("/assets/site/img/common/ft-sns-blog.svg");}
                    }
                }
            }
            & .f-inquiry{
                margin: 0 0 0 auto;
                & .btn-f-inquiry{
                    padding: 0 20px; text-align: center; line-height: 31px; border-radius: 48px; color: var(--white); background: var(--theme-green); font-size: 14px; color: #fff;
                    & span{}
                }
            }
        }

        @media (width <= 1280px){
            display: flex;
        }
        @media (width <= 640px){
            & .gnb-top{
                & h2{
                    & a{line-height: 62px;}
                    & img {height: 28px;}
                }
            }
        }
    }


    &.open{
        pointer-events: auto; opacity: 1; width: 100%; height: 100vh; border-radius: 0;
        &:before{ background-position: center center; transition-delay: 0.5s;}

        & .wrap.pc-gnb{
            & .d1{
                & > li{opacity: 1;}
            }
        }
    }

    @media (width <= 1280px){
        border-radius: 0; background: #fff; left: auto; right: 0; max-width: 500px; background: #fff; overflow-y: auto; 
        transform: translateX(100%); transition: all 0.3s;
        &:before{display: none;}

        &.open{
            transform: translateX(0);
        }
    }
}


/* footer */
#footer{
    position: relative; background-color: var(--theme-black); color: var(--white);
    & .ft-top{
        padding: 80px 0;

        & > .wrap{
            position: relative; display: flex; flex-wrap: wrap; justify-content: space-between;
        }

        & .ft-logo{
            position: absolute; left: 50%; transform: translateX(-50%);
            & img{}
        }

        & .ft-left{
            & .ft-links{
                display: flex; flex-wrap: wrap; gap: var(--gap);
                & > li{
                    & a{
                        & b{
                            position: relative; font-weight: var(--fwb);
                            &:before{content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: var(--white);}
                        }
                    }
                }
            }
            & .ft-sentence{padding: 22px 0 18px;}
            & .ft-infos{
                & .btn-ft-infos{
                    display: inline-flex; align-items: center; 
                    &:before{content: ""; display: inline-block; vertical-align: middle; margin: 1px 5px 0 0; width: 16px; height: auto; aspect-ratio: 1; background: url("/assets/site/img/common/ico-caution.svg") no-repeat center;}
                    &:after{content: ""; display: inline-block; vertical-align: middle; margin: 0 0 0 11px; width: 20px; height: auto; aspect-ratio: 1; background: url("/assets/site/img/common/ft-infos-arr.svg") no-repeat center;}

                    &.on{
                        &:after{transform: rotateX(180deg) translateY(-1px);}
                    }
                }
                & .lists{
                    display: flex; flex-wrap: wrap; gap: 6px 10px; max-width: 620px; clip-path: inset(0 0 0 0); transition: clip-path 0.15s ease; margin: 21px 0 0;
                    & > li{
                        line-height: 1.4; color: rgba(255,255,255,0.5); font-size: 14px; letter-spacing: -0.003em;
                        & span{}
                    }
                    & > li + li{}
                }

                &.on{
                    & .lists{/* clip-path: inset(0 0 100% 0); */}
                }
            }
        }
        & .ft-right{
            & .ft-sns{
                & .title{}
                & .sns-list{
                    display: flex; flex-wrap: wrap; gap: 26.5px; opacity: 0.5; padding: 18px 0 0;
                    & > li{
                        & a{
                            display: block; width: 26px; height: auto; aspect-ratio: 1; font-size: 0; background-repeat: no-repeat; background-position: center; background-color: transparent;

                            &.instagram{background-image: url("/assets/site/img/common/ft-sns-instagram.svg");}
                            &.youtube{background-image: url("/assets/site/img/common/ft-sns-youtube.svg");}
                            &.blog{background-image: url("/assets/site/img/common/ft-sns-blog.svg");}
                        }
                    }
                }
            }
        }
    }
    & .ft-bot{
        padding: 0 0 60px;
        & .ft-slogan{
            & .list{-webkit-transition-timing-function: linear !important; transition-timing-function: linear !important;}
            & .item{
                width: auto; padding: 0 120px 0 0;
                & img{display: block; width: auto; height: auto;}
            }
        }
    }

    /* footer color variations */
    &.ftGreen{background-color: var(--theme-green);}
    &.ftBlack{background-color: var(--theme-black);}
    &.ftGray{background-color: var(--theme-gray);}

    @media (width <= 1280px){
        & .ft-bot{
            
            & .ft-slogan{
                & .list{}
                & .item{
                    padding: 0 9vw 0 0;
                    & img{width: 120vw;}
                }
            }
        }
    }
    @media (width <= 860px){
        & .ft-top{
            & > .wrap{
                flex-direction: column; gap: 20px;
            }
            & .ft-logo{
                transform: none; left: auto; right: var(--space); bottom: 10px;
            }
        }
    }
    @media (width <= 640px){
        font-size: 13px;
        & .ft-top{
            padding: 40px 0;

            & .ft-logo{
                & img{height: 30px;}
            }
            & .ft-left{
                & .ft-sentence{
                    padding: 18px 0 14px;
                }
                & .ft-infos{
                    & .lists{
                        margin: 15px 0 0;
                    }
                }
            }
            & .ft-right{
                & .ft-sns{
                    & .sns-list{padding: 15px 0 0; gap: 16px;}
                }
            }
        }
        & .ft-bot{
            padding: 0 0 20px;
        }
    }
}


/* floater */
#floater{
    transform: translateY(50%); opacity: 0; pointer-events: none;
    position: fixed; z-index: 9; bottom: 25px; right: 25px; background: #0f1817; border: 1px solid rgba(0,166,81,0.5); border-radius: 5px; box-shadow: 0px 3px 30px rgba(78,255,165,0.15); padding: 12px 12px;
    transition: 0.3s ease-in-out;
    & .floater-list{
        display: flex; flex-direction: column;
        & > li{
            & a{
                display: flex; flex-direction: column; gap: 7px; justify-content: center; align-items: center; text-align: center; font-size: 14px; font-weight: var(--fwb); color: var(--theme-green); letter-spacing: -0.02em;
                padding: 14px 17px;
                &:before{content: ""; display: inline-block; width: 32px; height: auto; aspect-ratio: 1; background: transparent; background-repeat: no-repeat; background-position: center; background-size: 100% auto;}

                & span{}

                &.store:before{background-image: url("/assets/site/img/common/floater-list-store.svg");}
                &.customer:before{background-image: url("/assets/site/img/common/floater-list-customer.svg");}
                &.franchise:before{background-image: url("/assets/site/img/common/floater-list-franchise.svg");}

                &:hover{
                    &:before{animation: shake_bg 0.65s ease-out; transform-origin: 50% 100%;}
                }
            }

            &:first-child a{padding-top: 0;}
            &:last-child a{padding-bottom: 0;}
        }
        & > li + li{border-top: 1px solid rgba(0,166,81,0.5);}
    }
    & .btn-to-top{
        position: relative; font-size: 0; display: block; width: 100%; height: 36px; border-radius: 2px; border: 1px solid transparent; background: var(--theme-green); margin: 12px 0 0;
        &:before{content: ""; position: absolute; top: 15px; left: 36px; width: 12px; height: auto; aspect-ratio: 1; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg);}
    }

    &.white{
        background: #fff;
    }

    &.show{transform: translateY(0); opacity: 1; pointer-events: initial;}

    @media (width <= 640px){
        right: 20px; bottom: 15px; padding: 10px 10px; box-shadow: 0px 3px 10px rgba(78,255,165,0.15);
        & .floater-list{
            & > li{
                & a{
                    font-size: 12px; padding: 10px 0px; gap: 5px;
                    &:before{width: 20px;}
                }
            }
        }
        & .btn-to-top{
            height: 28px;
            &:before{left: 16px; top: 11px; width: 10px;}
        }
    }
}


#floater-franchise{
    position: fixed; z-index: 9; bottom: 25px; right: 25px; transition: 0.3s ease;
    & .floater-list{
        & > li{
            & a{
                display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: auto; aspect-ratio: 1; border-radius: 50%; font-size: 20px; font-weight: var(--fwm); background-color: #ddd; color: #000;
                &:before{content: ""; display: block; width: 36px; height: auto; aspect-ratio: 1; background-repeat: no-repeat; background-position: center; background-size: 100% auto;}
                & span{}

                &.franchise-consult{
                    background-color: #fee500; color: rgba(0,0,0,0.85);
                    &:before{background-image: url("/assets/site/img/common/floater-kakao.svg");}
                }
            }
        }
    }

    @media (width <= 860px){
        right: 20px; bottom: 60px;
        & .floater-list{
            & > li{
                & a{
                    width: 70px; font-size: 14px;
                    &:before{width: 20px;}
                }
            }
        }
    }
}

.quick-form.on ~ #floater-franchise{
    bottom: 100px;
}



/* subpage-top */
.subpage-top{
    padding: 180px 0 0; background-color: var(--theme-black);
    & > .wrap{
        & .sub-page-tit{
            text-align: center;
            & h2{text-transform: uppercase; font-family: var(--font-eng); font-size: clamp(100px,7.4vw,140px); font-weight: var(--fwb); line-height: 1; letter-spacing: 0.01em; color: #fff;}
        }
        & .sub-menus{
            padding: 60px 0 63px;
            & .list{
                display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; font-family: var(--font-eng);
                & > li{
                    & a{
                        position: relative; display: block; font-size: 20px; font-weight: var(--fwsb); color: var(--gray); line-height: 1.1; padding: 0 10px 10px;
                        &:before{content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: #fff;}

                        &.on{
                            color: #fff; 
                            &:before{width: 100%;}
                        }
                    }
                }
            }
        }
    }

    & .sub-visual{
        & .sv-img{
            aspect-ratio: 1920 / 450; width: 100%; height: auto; min-height: 350px; overflow: hidden;
            & img{display: block; width: 100%; height: 100%; object-fit: cover; animation: zoomOut 1.5s cubic-bezier(0.25,1,0.5,1) forwards;}
        }
    }

    &:has(~ .sub-container .sub-contents.lightBody){
        background-color: #fff;
        & > .wrap{
            & .sub-page-tit{
                h2{color: var(--main);}
            }
            & .sub-menus{
                & .list{
                    & > li{
                        & a{
                            &:before{background: #000;}
                            &.on{
                                color: #000; 
                            }
                        }
                    }
                }
            }
        }
    }

    @media (width <= 1280px){
        padding: 120px 0 0;
        & > .wrap{
            & .sub-page-tit{
                & h2{font-size: clamp(80px,8vw,100px);}
            }
            & .sub-menus{
                padding: 50px 0;
                & .list{
                    gap: 1.5vw;
                    & > li{
                        & a{
                            font-size: 18px;
                        }
                    }
                }
            }
        }

        & .sub-visual{
            & .sv-img{
                min-height: 300px;
                & img{}
            }
        }
    }
    @media (width <= 860px){
        padding: 120px 0 0;
        & > .wrap{
            & .sub-page-tit{
                & h2{font-size: clamp(40px,8.5vw,68px);}
            }
            & .sub-menus{
                padding: 40px 0;
                & .list{
                    gap: 30px;
                    & > li{
                        & a{
                            font-size: 17px; padding: 0 0 10px;
                            &:before{height: 2px;}
                        }
                    }
                }
            }
        }

        & .sub-visual{
            & .sv-img{
                min-height: auto; aspect-ratio: 3.2 / 1;
                & img{}
            }
        }
    }
    @media (width <= 640px){
        padding: 90px 0 0;
        & > .wrap{
            & .sub-page-tit{
                & h2{font-size: 32px;}
            }
            & .sub-menus{
                padding: 30px 0;
                & .list{
                    gap: 12px;
                    & > li{
                        & a{
                            font-size: 15px;
                        }
                    }
                }
            }
        }

        & .sub-visual{
            & .sv-img{
                min-height: auto; aspect-ratio: 3 / 1;
                & img{}
            }
        }
    }
}
header:has(.lnb .d1 > li:nth-child(1) > a.on) + .subpage-top{
    /* 카테고리 뎁스 1 의 메뉴 1 인 경우에만 타이틀이 길어서 자간 조정  */
    & > .wrap{
        & .sub-page-tit{
            h2{letter-spacing: -0.0454em;}
        }
    }
}


/* sub-container */
.sub-container{

}


/* sub-contents */
.sub-contents{
    padding: 0 0 240px; background: var(--theme-black); color: #fff;

    &.hasBottomShape{
        position: relative;
        &:after{
            content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: auto; aspect-ratio: 1920 / 122; 
            background: url("/assets/site/img/common/section-shape2-green.png") repeat-x center bottom; 
            background-size: 100% auto;
            background-position: var(--shape-bottom-left) bottom;
            transition: all 0.1s;
        }
        @media (pointer: coarse) and (hover: none){
            /* 터치디스플레이인 경우에만 적용 */
            /* &:after{background-size: calc(100vw + 2px) auto !important;} */
        }
    }

    &.bottomGreen:after{background-image: url("/assets/site/img/common/section-shape2-green.png");}
    &.bottomBlack:after{background-image: url("/assets/site/img/common/section-shape2-black.png");}
    &.bottomGray:after{background-image: url("/assets/site/img/common/section-shape2-gray.png");}
    &.bottomWhite:after{background-image: url("/assets/site/img/common/section-shape2-white.png");}
    
    & .pagetit{
        text-transform: uppercase; font-family: var(--font-eng); font-size: 100px; font-weight: var(--fwb); line-height: 1; letter-spacing: 0.011em; color: #fff; text-align: center;
        padding: 0 0 80px;
    }

    & .pagetit-small{
        font-size: 46px; font-weight: var(--fwb); letter-spacing: 0; line-height: 1.1; margin: 80px 0 40px; font-family: var(--font-eng);
    }

    @media (width <= 1600px){
        padding: 0 0 130px;
    }
    @media (width <= 1280px){
        padding: 0 0 130px;
        & .pagetit-small{font-size: 40px; margin: 6% 0 25px;}
    }
    @media (width <= 860px){
        padding: 0 0 100px;
        & .pagetit-small{font-size: 32px;}
    }
    @media (width <= 640px){
        padding: 0 0 100px;
        & .pagetit-small{font-size: 26px; margin: 30px 0 20px;}
    }
}
.sub-contents.lightBody{
    background-color: transparent; color: #000;
    & .pagetit{color: var(--main);}
}
.sub-container.noSubVisual .sub-contents{
    /* 개인정보취급방침 페이지 등 */
    @media (width <= 1600px){
        padding-top: 120px;
    }
    @media (width <= 1280px){
        padding-top: 120px;
    }
    @media (width <= 860px){
        padding-top: 100px;
    }
    @media (width <= 640px){
        padding-top: 80px;
    }
}


/* 약관 류 페이지에서 서브비주얼 숨기기 */
#app:has(.sub-contents#sub-agree) .subpage-top .sub-visual{display: none;}
#app:has(.sub-contents#sub-privacy) .subpage-top .sub-visual{display: none;}
#app:has(.sub-contents#sub-email) .subpage-top .sub-visual{display: none;}




/* 레이어(모달) 배경 */
.dim{position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; right: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.8); opacity: 0; visibility: hidden; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);}
.dim.on{opacity: 1; visibility: visible; transition: all 0.25s;}


/* 공지 팝업 */
.div_popup{
    z-index: 99 !important; min-width: 320px; box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
    & > table{
        width: 100%;

        & .divpop-img{
            & img{display: block; width: 100%; height: auto;}
        }
        & .divpop-bottom{
            background: #fff;
            & td{
                display: flex; flex-wrap: wrap; justify-content: flex-end;
                & a{
                    display: inline-block; color: #222; font-size: 14px; vertical-align: middle; padding: 0 20px; line-height: 40px;
                    &:hover{color: #999;}
                }
            }
        }
    }

    @media (width <= 640px){
        z-index: 999999 !important; 
        /* width: 90% !important; top: 60px !important; left: 5% !important; transform: none !important; */
        width: calc(100% - 40px) !important;
        top: 60px !important;
        left: 20px !important;
        transform: none !important;

        & .divpop-img{
            & img{}
        }
    }
}
