header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    transition: all .5s ease-in-out;
    box-shadow: 0 19px 35px rgba(0,0,0,0.11);
    font-family: 'Paperlogy';
    font-weight: 500;
    color: #323232;
}

.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: 90px;
    margin: 0 auto;
    width: 95%;
    max-width: 1700px;
    display: flex;
    justify-content: space-between;
    align-items:center ;
    transition: all .5s ease-in-out;
}
.header_in_wrap .h_logo{
    max-width: 250px;
    margin-right: 30px;
}

.header_in_wrap nav{
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}
.header_in_wrap .gnb{
    display: flex;
    height: 100%;
    font-size: 20px;
    font-weight: 600;
    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: #1D509A;
    font-weight: 600;
}

.header_in_wrap .gnb li:hover a::before {
    transform: translate(-50%, -50%) scale(1);
}

.header_in_wrap .gnb li.active a {
    position: relative;
    font-weight: 800;
    color: #1D509A;
}

.header_in_wrap .gnb a {
    height: 100%;
    display: block;
    position: relative;
    /* overflow: hidden; */
    height: 24px;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.header_in_wrap .gnb li{
    padding: 0 2.5rem;
}
.gnb a span {
    display: block;
    transition: transform 0.3s ease;
    line-height: 1.2;
}
.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;
    }
}
@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){
    .main_before {
    height: 70px;
}
    .header_in_wrap .gnb li a::after{
        display: none;
    }
    .menu-wrap{
        display: block;
    }
    
    /* header */
    header .header_in_wrap{
        height: 70px;
        /* justify-content: space-between; */
    }

    .header_in_wrap .header_link{
        display: flex;
    }
    .link_img {
        width: 40px;
    }
    /* mobile menu */
    .header_in_wrap nav.menu_open {
        /* display: block; */
        height: auto;
    }
    .header_in_wrap .h_logo{
        max-width: 200px;
        margin-bottom: 0;
    }
    .header_in_wrap nav {
        display: block;
        position: absolute !important;
        top: 70px;
        left: 0;
        width: 100%;
        background: #00419D;
        height: 0px;
        overflow: hidden;
        transition: all .5s ease;
        position: relative;
    }
    .header_in_wrap .gnb {
        font-size: 1.6rem;
    }

    header .header_in_wrap nav .gnb{
        flex-direction: column;
        text-align: center;
    }
    header .header_in_wrap nav .gnb a{
        line-height: 4rem;
        color: #fff;
        border-bottom: 1px solid #fff;
        display: flex;
        align-items: center;
        padding: 0 2rem;
        justify-content: center;
        height: 40px;
    }
    
    header .header_in_wrap nav .gnb a::before{
        display: none
    }
    header .header_in_wrap nav .gnb .active a{
        background: #fff;
        font-weight: 800;
        color: #3BBBCA;
    }.header_in_wrap .gnb li{
        padding: 0;
    }
    .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;
    }
}
@media (min-width:0px) and (max-width:900px){
    header{
        box-shadow: 0 19px 35px rgba(0,0,0,0.11);
        background: #fff;
        color: #222;
        border-radius: 0px;
        width: 100%;
        top: 0px;
        height:70px;
    }
    header .line{
        stroke: #222;
    }
    
    header .menu-wrap svg .header_btn{
        stroke: #222 !important;
    }

    header .logo_wh{
        display: none;
    }
    header .logo_default{
        display: block;
    }
    header .header_in_wrap{
        height: 70px;
    }
}

@media (min-width:0px) and (max-width:500px){
    .h_logo{width: 220px;}
    
}

