@font-face { 
    font-family: "MB";
    src: url("../fonts/뫼비우스\ Bold.ttf") format("truetype");
    font-weight: normal;
  } 
  @font-face {
    font-family: 'NanumSquare';
    font-weight: 400;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Regular.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Regular.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Regular.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Regular.ttf') format("truetype");
    font-display: swap;
} 
@font-face {
    font-family: 'NanumSquare';
    font-weight: 700;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Bold.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Bold.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Bold.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-Bold.ttf') format("truetype");
    font-display: swap;
} 
@font-face {
    font-family: 'NanumSquare';
    font-weight: 800;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-ExtraBold.eot');
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-ExtraBold.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-ExtraBold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-ExtraBold.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/webfontworld/NanumSquare/NanumSquare-ExtraBold.ttf') format("truetype");
    font-display: swap;
} 
#wrap * {
    font-family: "NanumSquare";
}
header {
    padding: 10px 0 10px;
}
.header_wrap {
   max-width: 1200px;
   width: 100%;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

nav {
   
}

.header_wrap img {
    height: 55px;
}

.header_wrap ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header_wrap ul li {
    margin-right: 20px;
}

.header_wrap ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 17px;
    padding: 5px 10px;
    border-radius: 5px;
    
}

#wrap header ul li.selected a {
    border-bottom: 3px solid #0883ff;
    border-radius: 0;
}
.header_mo  {
    display: none;
}

@media (min-width: 768px) and (max-width: 1200px) {
    header {
        display: none;
    }
    .header_mo {
        display: block;
        text-align: center;
        border-bottom: none;
        padding: 15px;
    }
    .header_mo .ham {
        width: 55%;
    }
    .header_mo img {
        width: 70%;
        height: 20%;
    }
    .header_mo a {
        width: unset;
        text-align: left;
    }
    .header_mo nav {
        position: fixed;
        top: 0;
        left: -71%; 
        width: 50%;
        min-height: 100vh;
        background: #fff;
        z-index: 999;
        transition: .3s;
        display: block;
        background-color: #fff;
        
    }
    .header_wrap {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        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 {
        left: 0; 
        width: 70%;
    }
    .nav_logo {
        width: 100%;
        height: 6rem;
        display: flex;
        justify-content: left; /* Center horizontally */
        align-items: center; /* Center vertically */
        padding: 1.5rem;
    }
    .close {
        display: block;
        background: url(../img/mo-menu.png) no-repeat center/contain;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }
    .nav_menu {
        flex-direction: column;
        margin-top: 50px;
        padding: 15px;
        display: flex;
        gap: 10px;
    }
    .nav_menu li {
        padding: 25px;
        background-color: #fff;
        text-align: left;
    }
    .nav_menu li:last-child {
        border-bottom: none;
    }
    .nav_menu li a {
        display: block;
        font-size: 18px;
        color: #2c2f2d;
        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  {
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }
     .header_mo ul li.selected a {
        color: #f4383a;
        font-weight: 600;
        font-size: 18px;
    }
}
@media screen and (max-width: 767px) {
    header {
        display: none;
    }
    .header_mo {
        display: block;
        text-align: center;
        border-bottom: none;
        padding: 15px;
    }
    .header_mo .ham {
        width: 55%;
    }
    .header_mo img {
        width: 70%;
        height: 20%;
    }
    .header_mo a {
        width: unset;
        text-align: left;
    }
    .header_mo nav {
        position: fixed;
        top: 0;
        right: -71%; 
        width: 50%;
        min-height: 100vh;
        background: #fff;
        z-index: 999;
        transition: .3s;
        display: block;
        background-color: #fff;
        
    }
    .header_wrap {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        flex-direction: row-reverse;
    }
    .header_wrap h1 {
       text-align: left;
    }
    .header_mo .i2 {
        text-align: right;
     }
    .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%;
        height: 6rem;
        display: flex;
        align-items: center; /* Center vertically */
        padding: 1.5rem;
        justify-content: flex-end;
    }
    .close {
        display: block;
        background: url(../img/mo/close.png) no-repeat center/contain;
        width: 20px;
        height: 30px;
        cursor: pointer;
    }
    .nav_menu {
        flex-direction: column;
        padding: 15px;
        display: flex;
        gap: 10px;
    }
    .nav_menu li {
       
        background-color: #fff;
        text-align: left;
    }
    .nav_menu li:last-child {
        border-bottom: none;
    }
    .nav_menu li a {
        display: block;
        font-size: 18px;
        color: #a6a8aa;
        font-weight: 600;
        padding: 15px;
    }
  
    .nav_menu li .n {
        padding: 0;
    }
     .header_mo ul li.selected  {
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }
     .header_mo ul li.selected a {
        padding: 15px;
        font-weight: 800;
        font-size: 18px;
        border-left: 4px solid #0883ff;
        background-color: #dce5f4;
    }
    #wrap header ul li.selected a {
        font-weight: 800;
        color: #333;
        border-bottom: none;
    }
}