#header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
    transition: background-color .5s, opacity .3s;
    background-color: #fff;
}
#header.hide{
    opacity: 0;
}
#header.hover .h02{
    height: 15vw;
    padding: 0 0 8vw;
    background-color: #ffffff;
}
.h01{
    width: 100%;
    height: 120px;
    height: 6.3vw;
    box-sizing: border-box;
}
.h01 .center1{
    height: 100%;
    display: flex;
    justify-content: space-between;
}
.h01 .center1>a{
    width: 14vw;
}
.h01 .center1>a img{
    width: 100%;
}
.menu_box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 3vw;
    height: 100%;
}
.main_menu{
    width: max-content;
    height: 100%;
    gap: 0 2vw;
}
.main_menu>li{
    position: relative;
    height: 100%;
}
.main_menu>li>a{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 35px;
    color: #111;
    border-bottom: 3pt solid #fff;
    box-sizing: border-box;
}
.main_menu>li:hover>a{
    color: #ff8a00;
    border-bottom: 3pt solid #ff8a00;
}
.sub_menu{
    width: 100%;
    padding-top: 20px;
    display: none;
    position: absolute;
    top: 6.3vw;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}
.sub_menu li{ 
    margin-top: 25px;
    margin-top: 2.5vh;
    cursor: pointer;
}
.sub_menu li:first-child{
    margin-top: 0;
}
.sub_menu li a{
    color: #555;
    font-family: 'SUIT', sans-serif;
    font-weight: 400;
}
.sub_menu li a:hover{
    color: #111111;
    font-family: 'SUIT', sans-serif;
    font-weight: 800;
}
/* 26.02.26  주석처리
.call_box{
    background-color: #0059a3;
    padding: 9px 23px;
    border-radius: 50px;
    gap: 0 5px;
}
*/
.call_box{
    background-color: #0059a3;
    padding: 9px 23px;
    border-radius: 50px;
    gap: 0 5px;
    white-space: nowrap; /* 줄바꿈 방지 */
}


.call_box .call_badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;            /* 아이콘 대신 텍스트라 크기 고정 */
    font-weight: 800;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    letter-spacing: -0.2px;
}

.menu_icon,
#sitemap{
    display: none;
}

/* mobile */
/* 모바일/태블릿: 무료상담 + 1599-1219 한 줄 고정 + 화면에 맞춰 자동 축소 */
@media screen and (max-width: 1024px){
    .call_box{
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 0 6px; /* 무료상담과 번호 사이 간격 */
    }

    /* ‘무료상담’이 ‘무료상/담’처럼 쪼개지는 것 방지 */
    .call_box *{
        white-space: nowrap;
        word-break: keep-all;
    }

    /* 무료상담 배지(네가 call_badge로 넣은 경우) */
    .call_box .call_badge{
        font-size: clamp(12px, 1.6vw, 15px) !important;
        padding: 5px 9px;
        line-height: 1;
    }

    /* 번호 */
    .call_box p{
        font-size: clamp(15px, 2.2vw, 22px) !important;
        margin: 0;
        line-height: 1;
    }
}

@media screen and (max-width: 767px){ 
    .h01{height: 80px;}
    .h01 .center1>a{width: 150px;}
    .h01 .center1>a img{width: 100%;}
    .menu_icon{display: block;}
    .menu_icon i{font-size: 25px;}
    .main_menu{display: none !important;}
    .call_box{padding: 7px 12px;}
    .call_box{flex-shrink: 0; flex-wrap: nowrap;}       /* 헤더 flex에서 눌려도 폭이 줄어들며 줄바꿈되는 현상 방지 */
    .call_box .call_badge{ font-size: clamp(11px, 3.2vw, 13px) !important; }
    .call_box p{ font-size: clamp(14px, 3.8vw, 18px) !important; }
    .call_box p{
    white-space: nowrap !important;
    overflow-wrap: normal !important;  /* 1599- 에서 강제 줄바꿈되는 케이스 차단 */
    word-break: keep-all !important;
    hyphens: none;
}


    /* site_map */
    #sitemap{
        display: block;
        width: 100%;
        height: 100vh;
        background: linear-gradient(-113deg, rgba(26,42,111,0.8), rgba(0,57,115,0.8));
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999999;
        transform: translateX(100%);
        transition: transform .8s;
    }
    #sitemap.show{
        transform: translateX(0);
    }
    .close_btn{
        display: flex;
        justify-content: flex-end;
        padding-right: 16px;
        padding-top: 38px;
    }
    .close_btn i{
        font-size: 25px;
    }
    .st_box{
        padding: 12vh 15% 0;
        overflow: auto;
        width: 100%;
        height: 100%;
    }
    .st_menu ul{
        width: 100%;
        display: none;
    }
    .st_menu p{
        padding: 15px 0;
    }
    .st_menu li{
        padding: 10px 0;
    }
}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){
    .h01{
        height: 100px;
    }
    .h01 .center1>a{
        width: 200px;
    }
    .h01 .center1>a img{
        width: 100%;
    }

    .menu_icon{
        display: block;
    }
    .menu_icon i{
        font-size: 30px;
    }
    .main_menu{
        display: none !important;
    }

    /* 태블릿: 무료상담 + 1599-1219 한 줄 고정 */
    .call_box{
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .call_box .call_badge,
    .call_box p{
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        hyphens: none;
    }

    /* site_map */
    #sitemap{
        display: block;
        width: 100%;
        height: 100vh;
        background: linear-gradient(-113deg, rgba(26,42,111,0.8), rgba(0,57,115,0.8));
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999999999999999;
        transform: translateX(100%);
        transition: transform .8s;
    }
    #sitemap.show{
        transform: translateX(0);
    }
    .close_btn{
        display: flex;
        justify-content: flex-end;
        padding-right: 40px;
        padding-top: 38px;
    }
    .close_btn i{
        font-size: 30px;
    }
    .st_box{
        padding: 12vh 15% 0;
        overflow: auto;
        width: 100%;
        height: 100%;
    }
    .st_menu ul{
        width: 100%;
        display: none;
    }
    .st_menu p{
        padding: 15px 0;
    }
    .st_menu li{
        padding: 10px 0;
    }
}