@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 100;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Thin.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Thin.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Thin.otf) format('opentype');}

@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 300;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Light.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Light.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Light.otf) format('opentype');}

@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 400;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Regular.otf) format('opentype');}

@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 500;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Medium.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Medium.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Medium.otf) format('opentype');}

@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 700;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Bold.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Bold.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Bold.otf) format('opentype');}

@font-face {font-family: 'Noto Sans KR';font-style: normal;font-weight: 900;src: url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Black.woff2) format('woff2'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Black.woff) format('woff'),url(//fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Black.otf) format('opentype');}

#wrap * {
    font-family: 'Noto Sans KR';
}
header {
    padding: 20px 0 ;
    background-color: #fff;
}
.header_wrap {
   max-width: 1200px;
   width: 100%;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

nav {
   
}

.header_wrap img {
    height: 25px;
}
.header_wrap ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 70%;
    justify-content: space-between;
}

.header_wrap ul li {
    margin-right: 20px;
}

.header_wrap ul li a:hover {
    color: #4854f1 ;
    border-bottom: 2px solid #4854f1; 
    font-weight: 600;
}

.header_wrap ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    padding: 5px 10px;
    font-weight: 500;
    font-family: 'Noto Sans KR';

}

#wrap header ul li.selected a  {
    font-weight: 600 !important;
    color: #4854f1 !important;
    border-bottom: 2px solid #4854f1 ;
}

.header_mo  {
    display: none;
}


@media screen and (max-width: 767px) {
    header {
        display: none;
    }
    .header_mo {
        display: block;
        text-align: center;
        border-bottom: none;
        padding: 15px;
        z-index: 1;
        position: relative;
    }
    .header_mo .ham {
        width: 20px;
        height: auto;
    }
    .header_mo img {
        width: 70%;
        height: 20%;
    }
    .header_mo li a {
        width: unset;
        text-align: left;
    }
    .header_mo nav {
        position: fixed;
        top: 0;
        right: -71%; 
        width: 50%;
        min-height: 90vh;
        background: #fff;
        z-index: 1000;
        transition: .3s;
        display: block;
        background-color: #fff;
        
    }
    .header_wrap {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }
    .header_wrap h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    .back1 {
        position: fixed;
        width: 100% !important;
        height: 100%;
        top: 0;
        display: none;
        z-index: 998;
        left: 0;
        background: #00000038;
    }
    nav.open + .back1 {
        display: block;
    }
    nav.open {
        right: 0; 
        width: 70%;
    }
    .nav_logo {
        width: 100%;
        display: flex;
        justify-content: right;
        align-items: center; /* Center vertically */
        padding: 15px;
    }
    .i2 {
        text-align: right !important;
    }
    .close {
        display: block;
        background: url(../img/mo-menu.png) no-repeat center/contain;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    .nav_menu {
        flex-direction: column;
        padding: 15px;
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }
    .nav_menu li {
     
        background-color: #fff;
        text-align: left;
        color: #505050;
        display: flex;
        justify-content: flex-start !important;
        width: 100%;
    }
    .nav_menu li:last-child {
        border-bottom: none;
    }
    .nav_menu li a {
        display: block;
        font-size: 18px;
        color: #505050;
        padding: 25px;
        width: 100%;
        font-weight: 600;
    }
    .nav_menu li a span {
        font-size: 16px;
        color: #2c2f2d;
        font-weight: 800;
        white-space: nowrap;
    }
    .nav_menu li .n {
        padding: 0;
    }
     /* .header_mo ul li.selected  {
        border-left: 3px solid #283c75;
    } */
    .header_mo ul li.selected a {
        color: #4753f1 !important;
        font-size: 18px;
        width: 100%;
        border-radius: 0;
        border-bottom: none !important; 
    }
    .back_button {
        display: none; /* 기본적으로 숨김 */
        position: absolute;
        top: 0px;
        left: 0px;
        text-align: left;
    }
    /* 서브페이지에서만 버튼 표시 */
    .subpage .back_button {
        display: block;
    }
    
}