@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';
}
body {
    padding: 110px 0 50px;
}
/* 헤더 고정 스타일 */
header, .header_mo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 페이지의 다른 콘텐츠 위에 표시 */
    background: #fff; /* 배경색 설정 */
}

/* 데스크톱 헤더 스타일 */
header {
    padding: 20px 0 40px;
}

.header_wrap {
   max-width: 1200px;
   width: 100%;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center; /* 세로 중앙 정렬 */
}

.header_wrap img {
    height: 45px;
}

.header_wrap ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header_wrap ul li {
    margin-right: 20px;
}

.header_wrap ul li a {
    text-decoration: none;
    color: #9984e6;
    font-weight: 600;
    font-size: 17px;
    padding: 5px 10px;
}

#wrap header ul li.selected a {
    color: #fff;
    background: #6c4fdb;
    border-radius: 10px;
}

/* 모바일 헤더 스타일 */
.header_mo {
    display: none;
}

.title_box {
    padding: 20px;
    background: #32334f;
}

.title_box .title {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;    
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}
.header_mo {
    display: none;
}
/* 데스크톱 헤더 숨김, 모바일 헤더 표시 */
@media (min-width: 768px) and (max-width: 1200px) {
    .title_box .title {
        max-width: unset;
        width: 100%;
        font-size: 22px;
    }
    body {
        padding: 80px 0 50px;
    } 
    header {
        display: none;
    }
    .header_mo {
        display: block;
        text-align: center;
        border-bottom: none;
        padding: 20px;
    }
    .header_mo .ham {
        width: 55%;
    }
    .header_mo img {
        width: 70%;
        height: 20%;
    }
    .header_mo .logo {
        width: unset;
        height: 35px;
    }
    .header_mo a {
        width: unset;
        text-align: right;
    }
    .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;
        flex-direction: row-reverse;
    }
    .header_wrap h1 {
        margin: 0;
        text-align: left;
    }
    .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;
        justify-content: space-between;
        align-items: center; 
        padding: 20px;
    }
    .close {
        display: block;
        background: url(../img/close.png) no-repeat right/contain;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    .nav_menu {
        flex-direction: column;
        padding: 15px 0;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin-top: 20px;
    }
    .nav_menu li {
        padding: 22px;
        background-color: #fff;
        text-align: left;
    }
    .nav_menu li:last-child {
        border-bottom: none;
    }
    .nav_menu li a {
        display: block;
        font-size: 22px;
        color: #888888;
        font-weight: 600;
    }

    .nav_menu li .n {
        padding: 0;
    }

     .header_mo ul li.selected a {
        color: #333961 !important;
        font-weight: 800;
        font-size: 22px;
        background: unset !important;
    }

}
@media screen and (max-width: 767px) {
    .title_box .title {
        max-width: unset;
        width: 100%;
        font-size: 18px;
    }
    body {
        padding: 80px 0 50px;
    } 
    header {
        display: none;
    }
    .header_mo {
        display: block;
        text-align: center;
        border-bottom: none;
        padding: 20px;
    }
    .header_mo .ham {
        width: 55%;
    }
    .header_mo img {
        width: 70%;
        height: 20%;
    }
    .header_mo .logo {
        width: unset;
        height: 35px;
    }
    .header_mo a {
        width: unset;
        text-align: right;
    }
    .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;
        flex-direction: row-reverse;
    }
    .header_wrap h1 {
        margin: 0;
        text-align: left;
    }
    .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;
        justify-content: space-between;
        align-items: center; 
        padding: 20px;
    }
    .close {
        display: block;
        background: url(../img/close.png) no-repeat right/contain;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    .nav_menu {
        flex-direction: column;
        padding: 15px 0;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin-top: 20px;
    }
    .nav_menu li {
        padding: 20px;
        background-color: #fff;
        text-align: left;
    }
    .nav_menu li:last-child {
        border-bottom: none;
    }
    .nav_menu li a {
        display: block;
        font-size: 19px;
        color: #888888;
        font-weight: 600;
    }

    .nav_menu li .n {
        padding: 0;
    }

     .header_mo ul li.selected a {
        color: #333961 !important;
        font-weight: 800;
        font-size: 19px;
        background: unset !important;
    }

}