
/* hidden_gnb */
.hidden_bg{
    opacity: 0;
    pointer-events: none;
    background: rgba(10, 20, 34, 0.65);
    backdrop-filter: blur(4px);
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999999;
    transition: all .3s ease-in-out;
}
.hidden_bg.on{
    opacity: 1;
    pointer-events: auto;
}
.hidden_menu{
    position: fixed;
    top: 0;
    right: 0;
    min-width: 270px;
    max-width: 430px;
    width: 92%;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    height: 100vh;
    box-sizing: border-box;
    transform: translateX(100%); 
    transition: all .3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-left: 1px solid rgba(8, 55, 129, 0.12);
    box-shadow: -8px 0 36px rgba(7, 34, 72, 0.2);
}
.hidden_bg.on .hidden_menu{
    transform: translateX(0%);
}
/* -- Top bar (close button) -- */
.hidden_top_bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    justify-content: flex-end;
    align-items: center;
    padding: 1.6rem 2rem 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border-bottom: 1px solid rgba(8, 55, 129, 0.08);
    flex-shrink: 0;
}
.close_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(8, 55, 129, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}
.close_menu:hover {
    background: #e6eefb;
    transform: rotate(90deg);
}
.close_menu span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
}
.close_menu span:first-child {
    transform: rotate(45deg);
}
.close_menu span:last-child {
    transform: rotate(-45deg);
}

/* -- Hidden top (scrollable gnb area) -- */
.hidden_top {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hidden_top::-webkit-scrollbar {
    display: none;
}

.hidden_gnb{
    font-size: 1.5rem;
    padding: 1rem 1.6rem 2rem;
}
.hidden_gnb>li:not(:last-child){
    border-bottom: 1px solid #e8edf6;
}
.hidden_gnb>li{
    margin: 0;
}
.hidden_gnb>li>a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.75rem;
    padding: 1.4rem 1.2rem;
    font-weight: 600;
    color: #0f2342;
    transition: color .2s ease, background-color .2s ease;
}
.hidden_gnb>li>a::after{
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-left: 1rem;
    border-radius: 50%;
    background-color: #edf3ff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237f8ea8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transform: translateY(1px);
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.hidden_gnb>li>a:hover{
    color: var(--color-logo-navy);
}
.hidden_gnb>li>a.on{
    color: var(--color-logo-navy);
}
.hidden_gnb>li>a.on::after{
    background-color: var(--color-logo-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transform: translateY(1px) rotate(180deg);
    box-shadow: 0 4px 10px rgba(8, 55, 129, 0.25);
}
.hidden_gnb .top_0{
    display: none;
    background: #ffffff;
    padding: 0.8rem 1.2rem 1.4rem;
    border-radius: 0 0 12px 12px;
}
.hidden_gnb .top_0>li>a{
    font-weight: 500;
    display: block;
    margin-bottom: 0.4rem;
    color: #3d4a5e;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hidden_gnb .top_0>li>a:hover{
    background: #edf3ff;
    color: var(--color-logo-navy);
    transform: translateX(2px);
}
.hidden_gnb .top_0>li>ul{
    padding-left: 10px;
    padding-bottom: 10px;
    font-size: .9em;
}
.hidden_gnb .top_0>li>ul>li:not(:last-child){margin-bottom: .5rem;}
.hidden_gnb .top_0 li:last-of-type a{
    margin-bottom: 0px;
}
.hidden_gnb .on .top_0 {
    display: block;
}
.hidden_bottom{
    background: linear-gradient(135deg, #0b3f91 0%, #082f6e 100%);
    color: #fff;
    height: 30vh;
    max-height: 235px;
    width: 100%;
    box-sizing: border-box;
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hidden_bottom>div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.hidden_bottom .call{
    width: 13px;
    margin-right: 5px;
} 
.hidden_bottom a{
    color: rgb(52, 62, 71);
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}
.hidden_bottom .time_table{
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;;
    line-height: 1.4;
}
.hidden_bottom .time_table li{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.hidden_bottom .time_table b{
    width: 80px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}
.time_table p{
    margin-top: 1.2rem;
    font-size: 1.3rem;
    opacity: 0.9;
}
.time_table p:last-child{
    margin-top: 0px;
}

/* header */
.header_container{
    width: 100%;
    height: 0;
}
header{
    font-family: "Paperlogy";
    height: 130px;
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    position: fixed;
    transition: all .5s ease ;
    /* 헤더 > 팝업(10000) > 퀵메뉴(9000) */
    z-index: 11000;
    background: #fff;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.03));
}
.header-inner-wrap{
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.03));
}
.header-inner-top{
    background: var(--color-logo-navy);
    height: 50px;
}
.header-inner-top .top-inner{
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.header-inner-top .top-inner img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.header-inner-top .top-inner span:nth-of-type(2){
    font-weight: 800;
}
.h_left{
    flex-direction: column;
}
.h_logo{max-width: 220px;line-height: 0;}

.h_logo span{
    height: 80px;
    display: flex;
}
.h_logo span a{
    display: flex;
    align-items: center;
}
.logo-left{
    opacity: 1;
    pointer-events: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 9999;
    color: #ADADAD;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.25s ease;
    padding: 20px 0px;
}

header .gnb>li>a{
    color: var(--main-black);
}

header .h_left{
    /* width:100% 이면 flex에서 GNB(탑메뉴)를 밀어내어 사라지게 보임 */
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    font-family: 'Paperlogy';
    position: relative;
}

header .header_inner{
    max-width: 1700px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 95%;
}

.header_menu{
    display: flex;
    height: 100%;
    flex: 0 0 auto;
}
.header_menu .gnb{
    display: flex;
}

.header_menu .gnb > li {
    position: relative;
    transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-radius 0.25s ease;
}

.header_menu .gnb > li:hover {
    display: flex;
    justify-content: center;
    
}

.header_menu .gnb > li:hover > a span{
    color: var(--color-logo-navy);
    font-weight: 700;
}

.header_menu .gnb>li>a{
    line-height: 1;
    display:inline-flex;
    position: relative;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header_menu .gnb > li > a > span,
.depth2 > li > a > span {
    position: relative;
    display: inline-block;
}

.depth2 > li > a > span::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.header_menu .gnb > li:hover > a > span::after,
.depth2 > li > a:hover > span::after {
    width: 100%;
}

.header_menu .gnb > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--White);
}

.header_menu .gnb > li > a > span::before{
    content: "";
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--Navy-Logo);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99999;
}

/* active일 때만 표시 */
.header_menu .gnb > li.active > a > span::before{
    opacity: 1;
}

/* menu*_*.html: 현재 섹션 GNB 활성(.active) 시 타이틀 컬러 (menu1~5 동일) */
.header_menu .gnb > li.active > a > span{
    color: var(--color-logo-navy);
    font-weight: 700;
}

.menu_left_deco{
    aspect-ratio: 3/2;
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 100px;
    left: 0;
}

/*  */
.header_menu .gnb>li{
    width: 185px;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* .header-inner-top만 호버 시에는 비표시 — .header-inner-wrap(로고·GNB)까지 올렸을 때 depth2·배경 표시 */
header .header-inner-wrap:hover .depth2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
header .header-inner-wrap:hover .h_left-box,
header .header-inner-wrap:hover .bg_depth2 {
    opacity: 1;
    pointer-events: auto;
}
header .header-inner-wrap:hover .depth2 li{
    display: flex;
    justify-content: center;
    border-right: 2px solid rgb(149, 156, 159,0.1);
}

/* 헤더 왼쪽 정보 — 숨김 시 투명 영역이 호버를 가로채지 않게 */
.h_left-box{
    opacity: 0;
    pointer-events: none;
    /* 헤더바(로고) 아래 드롭다운 흰 배경 영역에 맞춰 배치·세로 가운데 */
    position: absolute;
    left: 0;
    top: 100%;
    width: 400px;
    max-width: 40vw;
    height: 378px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}
.h_left-box::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: url(../img/gnb-logo.png) no-repeat center / cover;
    z-index: 0;
}
.h_left-box .header_txt_ul,
.h_left-box .header-phone-bot{
    position: relative;
    z-index: 1;
}
.h_left-box .header_txt_ul{
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #6B6B6B;
}
.h_left-box .header_txt_ul li{
    display: flex;
    align-items: center;
    gap: 30px;
}
.h_left-box .header_txt_ul li strong{
    width: 115px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.header_txt_ul .header-small{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #ADADAD;
}
.h_left-box .header_txt_ul li b{
    font-weight: 700;
}
.header-phone-bot{
    max-width: 240px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    background: var(--color-logo-navy);
    font-weight: 800;
    font-size: 22px;
    border-radius: 10px;
    padding: 10px 20px;
}
.header-phone-bot img{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}
.depth2{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    color: #959C9F;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s,
    background-color 0.25s ease,
    color 0.25s ease,
    border-radius 0.25s ease;
    padding-top: 15px;
}
.depth2 li a {
    display: flex;
    justify-content: center;
    align-items: center;
}
.depth2.right li{
    border-right: 2px solid var(--Grey-01, #F5F5F5);
}
.depth2 li{
    transition: color .3s;
    width: 185px;
    height: 56px;
}
.depth2.left li,
.depth2.right li{
    border: none;
}
.bg_depth2{
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    /* depth2 padding-top(15) + li 6개×56px + 하단 여유 ≈ 378 */
    height: 378px;
    left: 0;
    top: 80px;
    background: #fff;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.h_right{
    display: none;
}
header .h_q_icon{
    display: flex;
    gap: 1rem;
    align-items: center;
    line-height: 0;
}
header .h_q_icon img{
    max-width: 50px;
}
header .h_q_icon .h_call{
    display: flex;
    align-items: center;
    gap: 1rem;
}
header .h_q_icon .h_call_txt{
    line-height: 1;
}
header .h_q_icon .h_call_txt i{
    font-size: 1.6rem;
    display: block;
    margin-bottom: .5rem;
}
header .h_q_icon .h_call_txt b{
    font-size: 2.4rem;
    display: block;
    color: #003686;
}

header .open_menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    gap: 6px;
    padding: 0;
    transition: background 0.2s ease;
}
header .open_menu:active {
    background: rgba(0, 0, 0, 0.04);
}
header .open_menu span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
}
header .open_menu span:nth-child(2) {
    width: 16px;
}

.hidden_gnb > li > a{
    position: relative;
    display: inline-block;
}

/* span 기준으로 점 */
.gnb > li > a > span{
    position: relative;
    display: inline-block;
}


@media (min-width:0px) and (max-width:1400px){
    
    .h_left-box .header_txt_ul li{
        gap: 2vw;
    }
    .h_left-box .header_txt_ul li strong{
        width: 5vw;
    }
    .h_left-box .header_txt_ul{
        font-size: 14px;
    }
    .h_left-box::before{
        top: auto;
        bottom: -25px;
        width: 20vw;
        height: 15vw;
    }
    
}   

@media (min-width:0px) and (max-width:1280px){
    header .header_inner{
        justify-content: space-between;
    }
    header {
        height: 120px;
    }
    header.scrolled-top{
        height: 70px;
    }
    .header_inner .header_menu .gnb{
        display: none;
    }
    /* 반응형에서는 데스크톱 확장 패널(.h_left-box)이 투명 상태로 클릭을 가로채지 않게 제거 */
    .h_left .h_left-box{
        display: none !important;
        pointer-events: none !important;
    }
    .header_menu .gnb > li.menu-active .depth2 {
        pointer-events: none;
    }
    .header_menu .menu-active ~ .bg_depth2 {
        pointer-events: none;
    }
    .header_menu .bg_depth2 {
        pointer-events: none;
    }
    /* 반응형: 헤더 영역 호버해도 2뎁스·전체 배경(.bg_depth2) 비활성 */
    header .header-inner-wrap:hover .depth2 {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    header .header-inner-wrap:hover .h_left-box,
    header .header-inner-wrap:hover .bg_depth2 {
        opacity: 0;
        pointer-events: none;
    }
    header .h_q_icon img {
        max-width: 40px;
    }
    header .open_menu {
        display: flex !important;
    }
    .h_right {
        display: flex !important;
        align-items: center;
        gap: 0.8rem;
    }
    header{
        background: #fff;
    }
    header .gnb>li>a{
        color: #000;
    }
    
    header .login_icon,
    header .h_logo{
        filter: none;
        max-width: 250px;
    }
    
    header.scroll,
    header:hover{
        background: #ffffff;
    }
    
    .close_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f3f4f6;
        cursor: pointer;
        position: relative;
        transition: background 0.2s ease;
    }
    .close_menu img{
        width: 20px;
        height: 20px;
    }
    .hidden_gnb >li>a:hover,
    .hidden_gnb .top_0>li>a:hover{
        color: var(--Navy-Logo);
    }
    .h_logo span{
        height: 70px;
    }
    header .header_inner{
        height: 70px;
    }
}

@media (min-width:0px) and (max-width:900px){
    .h_call_txt{display: none;}
}

@media (min-width:0px) and (max-width:600px){
    .h_logo{width: 170px;}
    .h_right {
        margin-right: 0.5rem;
        gap: 0.8rem;
    }
    header{
        width: 100% !important;
        top: 0 !important;
        border-radius: 0px !important;
        height: 90px;
    }
    .header-inner-top{
        height: 30px;
        font-size: 14px;
    }
    .header-inner-top .top-inner img{
        width: 14px;
        height: 14px;
    }
    header .header-inner-wrap,
    header .header_inner,
    .h_logo span{
        height: 60px;
    }
}

@media (min-width:0px) and (max-width:350px){
    header .h_q_icon{display: none;}
}