header{
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    background: #fff;
    transition: all .5s ease-in-out;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.03);
    font-family: "Pretendard Variable";
    font-weight: 500;
    font-size: 20px;
    color: #323232;
}
.logo_default{
     width: 290px;
    display: none;
}
.logo_wh{
     width: 290px;
    display: block;
}

header.on .logo_default{
    display: block;
}
header.on .line{
    stroke: #000;
}
header.on{
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.03);
    background: #fff;
    color: #000;
    border-radius: 20px;
    width: 98%;
    top: 1%;
}
header.on .menu-wrap svg .header_btn{
    stroke: #000 !important;
}

header.on .header_in_wrap{
    height: 80px;
}
.h_top {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: .5px solid #D8D8D8;
}
.h_logo{
    max-width: 300px;
}
.header_in_wrap{
    height: 100px;
    margin: 0 auto;
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items:center ;
    transition: all .5s ease-in-out;
}
.header_in_wrap .h_logo{
    max-width: 230px;
}

.header_in_wrap nav{
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}
.header_in_wrap .gnb{
    display: flex;
    height: 100%;
    font-size: 20px;
    height: 100%;
    
}
.header_in_wrap .gnb li {
    position: relative;
}
.header_in_wrap .gnb li a {
    transition: all .5s ease ;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.header_in_wrap .gnb li:hover a{
    color: var(--color-sub-bl);
    font-weight: 700;
}
header.on .header_in_wrap .gnb li:hover a{
    color: var(--color-sub-bl);
}
.header_in_wrap .gnb li:hover a::before {
    transform: translate(-50%, -50%) scale(1);
}

.header_in_wrap .gnb li.active a {
    position: relative;
}

.header_in_wrap .gnb li.active a {
    color: var(--color-sub-bl);
    font-weight: 700;
}
.header_in_wrap .gnb a {
    height: 100%;
    display: block;
    position: relative;
    /* overflow: hidden; */
    height: 21px;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.header_in_wrap .gnb li{
    padding: 0 2.5rem;
}
.header_in_wrap .gnb li:last-of-type{
    padding-right: 0;
}
.gnb a span {
    display: block;
    transition: transform 0.3s ease;
    line-height: 1;
}
.gnb a span:first-child {
    transform: translateY(0);
}
.gnb a span:last-child {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0);
}

.gnb a:hover span:first-child, .header_in_wrap .gnb li.active a span:first-child {
    transform: translateY(-100%);
}

.gnb a:hover span:last-child, .header_in_wrap .gnb li.active a span:last-child {
    transform: translateY(-100%);
}

/* 모바일메뉴 */
.header_in_wrap .header_link{
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #222;
}

.link_img{margin-right: 1rem;}

.header_in_wrap .header_link{display: none;}


.menu-wrap{
    /* display: none; */
    position: relative;
    height: auto;
    cursor: pointer;
}.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
}

.header_link .line {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header_link .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.header_link .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}
.header_link .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}
.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}
.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}

@media (min-width:0px) and (max-width:1550px){
    
    .header_in_wrap .gnb li {
        padding: 0 1.2rem;
    }
}
@media (min-width:0px) and (max-width:1280px){
    .header_in_wrap .h_logo{
        max-width: 200px;
    }
    .header_in_wrap .gnb li{
        padding: 0 1.7rem;
    }
    .gnb2 span{
        display: block;
        width: 30px;
    }
    .header_in_wrap .gnb{
        font-size: 17px;
    }
    .gnb2 > div:nth-of-type(2) div:nth-of-type(2){
        font-size: 15px;
    }
    .gnb2{
        gap: 5px;
    }
    .header_in_wrap .gnb a{
        height: 16px;
    }
    .header_in_wrap{
        width: 95%;
    }
}
@media (min-width:0px) and (max-width:1220px){
    .header_in_wrap .gnb li {
        padding: 0 1rem;
    }
    .header_in_wrap{
        width: 97%;
    }
}

@media (min-width:0px) and (max-width:1080px){
    header.on{
        border-radius: 0px;
        width: 100%;
        top: 0;
    }
    .header_in_wrap .gnb li{
        width: 100%;
    }
    .menu-wrap{
        display: block;
    }

    header .header_in_wrap,
    header.on .header_in_wrap{
        height: 70px;
    }

    .header_in_wrap .header_link{
        display: flex;
    }
    .link_img{
        width: 40px;
    }

    /* 모바일 메뉴 열림/닫힘 */
    .header_in_wrap .h_logo{
        max-width: 200px;
        margin-bottom: 0;
    }

    .header_in_wrap .gnb li a::after{
        display: none;
    }

    .header_in_wrap nav{
        display: block;
        position: fixed !important;
        top: 70px;
        left: 0;
        width: 100%;

        height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;

        z-index: 9999;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;

        background: linear-gradient(
            180deg,
            rgba(25, 42, 79, 0.98) 0%,
            #061a3a 100%
        );
        backdrop-filter: blur(10px);
        transition: height .45s ease, opacity .25s ease;
    }
    .header_in_wrap .gnb {
        font-size: 18px;
    }
    .header_in_wrap nav.menu_open{
        height: calc(100vh - 70px);
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        align-items: center;     /* 세로 중앙 */
        justify-content: center; /* 가로 중앙 */
        padding: 18px 14px 24px;
    }

    /* 모바일 메뉴 배경 마크 */
    .header_in_wrap nav.menu_open::before{
        content: "";
        position: absolute;
        inset: 0;
        background: url(../img/m-menu-bglogo.png) right top / auto 45% no-repeat;
        opacity: 0.7;
        pointer-events: none;
        z-index: 1;
    }
    .header_in_wrap nav.menu_open .gnb{
        position: relative;
        z-index: 1;
        /* 중앙보다 살짝 위로 이동 (디바이스별 과도한 이동 방지) */
        transform: translateY(clamp(-22px, -4vh, -10px));
    }

    header.on .header_in_wrap nav{
        top: 70px;
    }

    .header_in_wrap nav .gnb{
        height: auto;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 12px;
        width: 100%;
        margin: 0;
    }

    header .header_in_wrap nav .gnb a{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;

        padding: 18px 14px;
        line-height: 1.2;
        height: auto;

        font-weight: 700;
        color: #fff;

        border-radius: 16px;
        /* 메뉴 아이템 유리(블러) 느낌 */
        background: rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.12);

        transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }

    header .header_in_wrap nav .gnb a::before{
        display: none;
    }

    header .header_in_wrap nav .gnb a:hover{
        background: rgba(52, 161, 210, 0.18);
        border-color: rgba(52, 161, 210, 0.50);
        transform: translateY(-1px);
    }

    header .header_in_wrap nav .gnb .active a{
        background: rgba(52, 161, 210, 0.28);
        border-color: rgba(52, 161, 210, 0.70);
        box-shadow: 0 10px 30px rgba(52, 161, 210, 0.16);
        font-weight: 800;
        color: #fff;
    }

    /* 데스크탑 메뉴의 span 스와이프 효과 비활성화 */
    .gnb a span{
        transform: translateY(0) !important;
    }
    .gnb a:hover span:first-child,
    .gnb a:hover span:last-child{
        transform: translateY(0) !important;
    }

    .gnb2{
        display: none;
    }

    .header_link .line{
        stroke: #000;
    }
    .header_in_wrap .gnb li:last-of-type{
        padding: 0 1rem;
    }
}
@media (min-width:0px) and (max-width:500px){
    .h_logo{width: 220px;}
    .logo_wh{
        display: block;
    }
    header.on  .logo_default{
        display: block;
    }
    header.on  header .line{
        stroke: #000;
    }
}

