@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;
} 
header {
    height: 90px;
    border-bottom: 2px solid #bcbcbc;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
    
}
header .header_wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8rem;
}
.header_mo {
  display: none;
}

header img{
    width: 100px;
}
header h1{
    width: 35%;
    margin: 0 auto;
    padding: 15px;
}
header nav {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    height: 100%;
}
header nav .nav_menu{
    display: flex;
    flex-direction: row;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}
.nav_menu > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}
.nav_menu li {
    height: 100%;
}

.nav_menu  li span:last-child {
    border-right: none;
}
.nav_menu a {
    width: 140px;
    text-decoration: none;
    display: block;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 서브메뉴 기본 스타일 */

.submenu_wrap {
    display: none;
    /* display: flex; */
    position: absolute; 
    top: 101%; 
    left: 0; 
    width: 100%; 
    background: #fff;
    justify-content: center;
    text-align: center;
}

.submenu_wrap .submenu {
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}
.submenu li {
    width: 200px;
    border-right: 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70px;
    box-sizing: unset;
    justify-content: center;
}
.submenu li:last-child {
    border-bottom: 0;
}
#wrap header ul .submenu li:hover  {
    background-color: #f98e48; 
}
.submenu a {
    display: block;
    text-decoration: none;
    text-align: center;
    border-bottom: 2px solid transparent;
    white-space: wrap;
    line-height: 1.3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav_menu .selected a {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wrap header ul li span {
    font-size: 16px;
    font-weight: 600;
    border-right: .1rem solid #bcbcbc;
    text-align: center;
    width: 100%;
}
#wrap header ul li:last-child span {
    border-right: 0;
}
#wrap header ul li.selected  span {
    font-weight: bold; 
    color: #f98e48;
}
.submenu a:hover {
    color: #fff; 
    font-weight: 700;
    text-decoration: none; 
}
.back {
    position: fixed; 
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
    z-index: 1; 
}

.has-submenu:hover .submenu_wrap {
    display: flex; 
}

.has-submenu:hover + .back {
    display: block; 
}
#wrap * {
    font-family: 'NanumSquare';
}

@media screen and (max-width: 767px) {
   header {
    display: none;
   }

   .header_mo {
    display: flex;
    justify-content: space-between;
    height: 6rem;
    border-bottom: 0;
    border-bottom: unset;
    padding: 1.5rem;
   }
   .header_mo img {
    width: 60px;
}
   .header_mo .i2 {
    width: 2.5rem !important;
    height: 2rem;
}
.header_mo .arrow {
    width: 25px;
}
.header_mo .go_back {
    width: auto !important;
    height: 2rem;
}
.header_mo h1 {
    width: 35%;
    margin: unset;
    padding: 15px 0;
}
.header_mo .right1 {
    display: flex;
}
/* #wrap .left {
    display: none;
}   */


.header_mo .nav_mo  {
    position: fixed;
    top: 0; left: -71%;
    width: 70%; min-height: 100vh;
    background: #fff;
    z-index: 999;
    transition: .3s;
    display: block;
}
.back2 {
    background: #00000014; 
    position: fixed;
    width: 100% !important;
    height: 100%;
    top: 0;
    display: none;
    z-index: 998; 
    left: 0;
}

.nav_mo.open + .back2 {
    display: block;
    
}
.nav_mo.open {
    left: 0;
}
.nav_logo {
    width: 100%; height: 6rem;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    justify-content: flex-start;
    background-color: #f5f6f8;
}
.close{
    display: block;
    background: url(../img/mo-menu.png) no-repeat center/contain;
    width: 3rem; height: 2rem;

}
.nav_menu_mo {
  
    justify-content: center;
    align-items: center;
    flex-direction: column;

}
.nav_menu_mo .has-submenu{
    padding: 0;
    background-color: #fff;
    border-bottom: 1px solid #dadbdc;
    background-color: #f5f6f8;
}
.nav_menu_mo li:last-child  {
   border-bottom: 1px solid #dadbdc;
    
}
.nav_menu_mo li a {
    display: block;
    /* margin-bottom:3rem; */
    text-align: left;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.nav_menu_mo li span {
   font-size: 16px;
}
#wrap header ul li.selected .span_mo {
    font-weight: bold;
    color: #fff;
}
#wrap header ul li.selected a {
    background-color: #f98e48;
}
.nav_menu_mo li a span {
    font-size: 1.8rem;
    display: inline-block;
    color: #2c2f2d;
    width: 17rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav_menu_mo li .n {
    padding: 0;
}
.has-submenu  {
}
.has-submenu .span_mo {
    font-size: 15px !important;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
    padding: 0;
    padding-right: 1.5rem; 
    border-bottom: 0;
    border-right: 0 !important;
}


.has-submenu .span_mo::after {
    content: '';
    background-image: url('../img/arrow-down.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    right: 1rem;
    top: 55%; 
    transform: translateY(-50%);
}

.has-submenu.on .span_mo::after {
    background-image: url('../img/arrow-up.png');
    top: 50%; 
}
.has-submenu.on .span_mo {
    color: #050565;
}

.has-submenu.on .submenu{
    display: block;
    margin-top: 15px;
}

.has-submenu .submenu{
    display: none;
}
}



