/* =========================
   common
========================= */
html.open-menu,
html.open-menu body{
    overflow: hidden;
}
/* =========================
   header
========================= */
#header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    border-bottom: 0;
    transition: var(--transition);
}
#header .header-wrap{
    width: 100%;
    height: 80px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
#header .main-container{
    display: flex;
    align-items: center;
   justify-content: space-between;
    position: unset;
    width: 100%;
   height: 100%;
}
#header .logo{
    display: flex;
    align-items: center;
    width: 10rem;
    flex-shrink: 0;
    position: relative;
}
#header .logo a{
    display: flex;
    width: 100%;
}
#header .header_logo g .cls-1,
#header .header_logo g .cls-2 {
    fill: #fff;
}
/* #header .logo .logoimg{
    display: block;
    width: 100%;
    filter: brightness(100);
} */
/* 스크롤 또는 메뉴 열림 */
#header.scroll .header-wrap,
#header.header-hover .header-wrap,
#header.mOpen .header-wrap{
    background: #fff;
    border-bottom: 1px solid #ddd;
}
#header.scroll .header_logo .cls-1,
#header.header-hover .header_logo .cls-1,
#header.mOpen .header_logo .cls-1{
    fill: #040000;
}
#header.scroll .header_logo .cls-2,
#header.header-hover .header_logo .cls-2,
#header.mOpen .header_logo .cls-2{
    fill: #276333;
} 
/* =========================
   gnb
========================= */
.main-nav{
    flex:1;
    display:flex;
    justify-content:center;
    margin: 0 auto;
    height: 100%;
}
#gnb{
    display: flex;
    align-items: center;
	position: unset;
    height: 100%;
    background: transparent;
}
#gnb .nav-item{
    height: 100%;
}
#gnb .nav-item .nav-link{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 2.5rem;
    font-weight: 500;
    color: var(--BodyColor);
    transition: var(--transition);
}
#gnb .nav-item .nav-link.on,
#gnb .nav-item:hover .nav-link{
    color: var(--pointcolor);
}
#header.scroll #gnb .nav-link,
#header.header-hover #gnb .nav-link,
#header.mOpen #gnb .nav-link{
    color: #000;
}
#header.scroll #gnb .nav-item .nav-link.on,
#header.header-hover #gnb .nav-item .nav-link.on,
#header.mOpen #gnb .nav-item .nav-link.on{
    color: var(--pointcolor);
}
#gnb .mega-menu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    transition: opacity .25s ease, visibility .25s ease;
}
#gnb .mega-menu.active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#gnb .mega-inner{
    display: flex;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
}
#gnb .menu-info{
    width: 33rem;
    padding: 3.75rem 0;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
}
#gnb .menu-info .menu-title{
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: .5rem;
    color: #000;
}
#gnb .menu-info .menu-desc{
    font-size: 1rem;
    color: #555;
}
.sub-menu{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex: 1;
    padding: 3.75rem 0 3.75rem 3.75rem;
    min-height: 0;
    height: 100%;
    transition: var(--transition);
}
.sub-menu li{
    flex: 1;
    max-width: 195px;
}
.sub-menu li a{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 12px;
    min-height: 72px; */
    padding: 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #000;
    background: #f7f7f7;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}
.sub-menu li a::before,
.sub-menu li a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -1;
    transition: none;
}
.sub-menu li a::before{
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--pointcolor);
    border-right: 2px solid var(--pointcolor);
}
.sub-menu li a::after{
    top: 0;
    right: 0;
    border-top: 2px solid var(--pointcolor);
    border-left: 2px solid var(--pointcolor);
}
.sub-menu li a:hover::before{
    opacity: 1;
    width: 100%;
    height: 100%;
    transition: opacity 0s, width .1s ease, height .1s ease .1s;
}
.sub-menu li a:hover::after{
    opacity: 1;
    width: 100%;
    height: 100%;
    transition: opacity 0s .2s, width .1s ease .2s, height .1s ease .3s;
}
.sub-menu li a .arrow{
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background: url("/img/icon/arrow-down.svg") no-repeat center center / contain;
    transform: rotate(-90deg);
    transition: var(--transition);
}
/* =========================
   ham-btn
========================= */
.ham-btn{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 24px;
    height: 22px;
    position: relative;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}
.ham-btn span{
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.ham-btn span:nth-child(1){ top: 0; }
.ham-btn span:nth-child(2){ top: 10px; width: 18px; }
.ham-btn span:nth-child(3){ bottom: 0; }
#header.scroll .ham-btn span,
#header.header-hover .ham-btn span,
#header.mOpen .ham-btn span{
    background: #000;
}
/* =========================
   sitemap
========================= */
.sitemap-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.sitemap-wrap.active {
    opacity: 1;
    visibility: visible;
}
.sitemap-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1400px;
    height: 70vh;
    background: #fff;
    border-radius: 24px;
    padding: 80px 160px;
    transition: var(--transition)
}
.sitemap-wrap.active .sitemap-box {
    transform: translate(-50%, -50%) scale(1);
}
.sitemap-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 32px;
    height: 32px;
}
.sitemap-close::before,
.sitemap-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #000;
    transform-origin: center;
    transition: 0.3s;
    border-radius: 5px;
}
.sitemap-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.sitemap-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.sitemap-inner {
    display: flex;
    gap: 2.5rem;
}
.sitemap-col {
    flex: 1;
}
.sitemap-col h3 {
    color: var(--pointcolor);
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}
.sitemap-col ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sitemap-col ul li a {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 8px 0;
}
.sitemap-col ul li a:hover {
    text-decoration: underline;
}

/* =========================
   header - responsive
========================= */
@media (max-width:1580px) {
    #gnb .menu-info {
        width: 20rem;
    }
}
@media (max-width:1240px) {
    .sub-menu li {
        flex: auto;
        width: 50%;
    }   
}
@media (max-width: 990px){
    #header .header-wrap {
        height: 70px;
    }
    #header .logo{
        width: 140px;
    }
    .main-nav{
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        margin: 0;
        background: #fff;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }
    .main-nav.on{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    #gnb{
        width: 100%;
        display: block;
        height: auto;
    }
    #gnb .nav-item{
        height: auto;
        border-bottom: 1px solid #ddd;
    }
    #gnb .nav-item .nav-link{
        justify-content: space-between;
        height: auto;
        padding: 20px;
        position: relative;
    }
    #gnb .nav-item .nav-link::after{
        content: "";
        width: 10px;
        height: 10px;
        border-right: 2px solid #000;
        border-bottom: 2px solid #000;
        transform: rotate(45deg);
        transition: var(--transition);
        margin-left: auto;
    }
    #gnb .nav-item.active > .nav-link::after{
        transform: rotate(-135deg);
        margin-top: 6px;
    }
    #gnb .mega-menu{
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        border-top: 0;
        box-shadow: none;
        background: #fafafa;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    #gnb .mega-menu.active{
        display: block;
    }
    #gnb .mega-inner{
        display: block;
        max-width: none;
        padding: 0;
    }
    #gnb .menu-info{
        display: none;
    }
    .sub-menu{
        display: block;
        padding: 0 20px 10px;
    }
    .sub-menu li{
        max-width: 100%;
        width: 100%;
    }
    .sub-menu li a{
        min-height: auto;
        padding: 10px 0;
        background: #fff;
    }
    .sub-menu li a::before,
    .sub-menu li a::after{
        content: none;
    }
    .sub-menu li a .arrow{
        display: none;
    }
    .ham-btn.open span:nth-child(1){
        top: 10px;
        transform: rotate(45deg);
    }
    .ham-btn.open span:nth-child(2){
        opacity: 0;
    }
    .ham-btn.open span:nth-child(3){
        bottom: 10px;
        transform: rotate(-45deg);
    }
}
@media (max-width:768px) {
    #header .header-wrap{
        height: 64px;
    }
    .main-nav{
        top: 64px;
        height: calc(100vh - 64px);
    }
        #header .logo {
        width: 130px;
    }
    .ham-btn{
        height: 18px;
    }
    .ham-btn span:nth-child(2) {
        top: 8px;
    }
    .ham-btn.open span:nth-child(1){
        top: 8px;
    }
    .ham-btn.open span:nth-child(3){
        bottom: 8px;
    }
}
@media (max-width:500px) {
    #header .logo{
        width: 9rem;
    }
}
/* =========================
   footer
========================= */
#footer{
    border-top: 1px solid #ddd;
}
#footer .footer-top .main-container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 20px;
    width: 100%;
}
#footer .footer-top .footer-wrap{
    display: flex;
    gap: 3rem;
}
#footer .footer-top .footer-wrap .footer-logo{
    width: 10rem;
}
.footer-info ul li:not(:last-child){
    margin-bottom: .5rem;
}
.footer-info li span+span::before{
    content:"|";
    margin:0 1rem;
}
#footer .footer-top .committee{
    width: 12rem;
}
#footer .footer-bottom{
    background: #000;
    color: #eee;
}
#footer .footer-bottom .main-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 20px 3.75rem;
    width: 100%;
}
#footer .footer-bottom .copyright{
    font-size: .875rem;
}
#footer .footer-bottom .footer-link{
    display: flex;
    gap: 1.5rem;
}
#footer .footer-bottom .footer-link li a{
    display: block;
    color: #eee;
}
#footer .footer-bottom .footer-link li a strong{
    color: #fff;
}
/* =========================
   footer - responsive
========================= */
@media (max-width:1024px){
    #footer .footer-top .footer-wrap{
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    #footer .footer-bottom .main-container{
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
@media (max-width:768px){
    #footer .footer-top .committee {
        position: absolute;
        right: 20px;
        width: 10rem;
    }
    .footer-info li span+span::before {
        margin: 0 0.5rem;
    }
    #footer .footer-bottom .footer-link{
        gap: 1rem;
    }
}
@media (max-width:500px){
    #footer .footer-top .footer-wrap .footer-logo {
        width: 9rem;
    }
    #footer .footer-top .committee {
        width: 9rem;
    }
    .footer-info ul,
    .footer-info ul li {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .footer-info ul li:not(:last-child) {
        margin-bottom: 0;
    }   
    .footer-info li span+span::before {
        content: none;
    }
    #footer .footer-bottom .main-container {
        gap: 1rem;
    }
    #footer .footer-bottom .copyright{
        font-size: 12px;
    }
    #footer .footer-bottom .footer-link{
        gap: 8px;
        font-size: 1rem;
    }
}