@charset "utf-8";
/* CSS Document */

body{ font-family: "Noto Sans KR"; }
body *{ box-sizing: border-box;}
header{ position: fixed; z-index: 100; width: 100%; background-color: white; }
.sitetitle{ height: 5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); width: 100%; display: flex; justify-content: center; }
footer>h2>span{ display: flex; }

.logo{ height: 2.2rem; margin-right: 0.5rem;  }
*:has(>.logo){letter-spacing: -0.03em; font-size: 1.6rem; font-family: "NexonLv2Gothic"; font-weight: 700; display: flex; align-items: center; justify-content: center;  }

.logo+span{ display: inline-block; position: relative; letter-spacing: -0.03em; font-size: 1.6rem; }

#nav{ 
    list-style: none; padding-inline-start: 0em;
    display: flex; align-items: center; margin: 0%; flex: 1 1 auto;
}
#nav>li{ flex:1 1 auto; }
#nav>li>a{ display: block; width: 100%; font-size: 1.1em; font-weight: 500; letter-spacing: -0.05em; }
#nav>li>div{ display: block; text-align: left; }
#nav>li>div>a{ transition: all 0.3s ease-out; letter-spacing: -0.05em; }
#nav>li>div>div{ display: none; }
#myinfobn{ background-color: var(--main-color); color:white; width: 100%; text-align: center; margin: 2em 0; padding:0.5em 0;  }

#topaniwrap{ overflow: hidden; }
#topani{ 
    width: 100%; position: relative; overflow: hidden;  background-color: var(--main-color);
    opacity: 1; color: white;
}
#topani::before{
    content: ""; display: block; position: absolute; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.5));
}
#topani>*{ position: absolute;  }
#anitopback{
    background: url(/images/wave.svg) repeat-x;
    width: calc(100% + 245px); height: 40px; bottom: 0px; left: -245px;
    animation: anitopback 3s linear infinite;  animation-delay: 0s;
}
@keyframes anitopback{ 
    100% { left: 0px; } 
}
#anivlogo{
    background:url(/images/vlogo_w.svg) no-repeat 50%; width: 156px; height: 127px; opacity: 0.3;
    left: calc(50% - 78px); top:30px;
    animation: anivlogo 3s linear infinite;  animation-delay: 0s;
}
@keyframes anivlogo{ 
    0% { transform: scale(1); top:40px; opacity: 0.05; } 
    50% { transform: scale(1.2); top:20px; opacity: 0.25; }
    100% { transform: scale(1); top:40px; opacity: 0.05; }
}

.anivrandom{ animation: randomLeft 8s steps(1) infinite;  position: relative;  }
@keyframes randomLeft {
    0%      { left: calc(50% - 450px); top: 30px; }
    25%     { left: calc(50% - 300px); top: 60px; }
    25.001%  { left: calc(50% + 260px); top: 10px; }
    50%     { left: calc(50% + 580px); top: 10px; }
    50.001%  { left: calc(50% - 300px); top: 30px; }
    75%     { left: calc(50% - 600px); top: 80px; }
    75.001%  { left: calc(50% + 350px); top: 30px; }
    100%    { left: calc(50% + 600px); top: 80px; }
}
.anivrandom>div{
    background:url(/images/vlogo_w.svg) no-repeat 50%; width: 52px; height: 42px; opacity: 0.3;
    animation: anibackvlogo 2s linear infinite; position: absolute; opacity: 0;
}
@keyframes anibackvlogo{ 
    0% { transform: scale(1); top:50px; opacity: 0; } 
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); top:-20px; opacity: 0; }
}


#ani01, #ani03{ 
    --anititle-p : 75px; opacity: 0;
    font-family: "Jalnan"; font-size: 2.125rem; width: 100%; text-align: center; bottom: calc(var(--anititle-p) + 10px); text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    animation: aniktitle 10s ease infinite; animation-delay: 0s;
}
@keyframes aniktitle{ 
    0% { bottom: calc(var(--anititle-p) + 10px); opacity: 0; }
    5%{ bottom: var(--anititle-p); opacity: 1; }
    45%{ bottom: var(--anititle-p); opacity: 1; }  
    50% { bottom: calc(var(--anititle-p) + 10px); opacity: 0; } 
}
#ani02, #ani04{ 
    --anidesc-p : 45px; opacity: 0; letter-spacing: -0.05em;
    font-size: 1.15rem; width: 100%; text-align: center; bottom: calc(var(--anidesc-p) + 10px);
    animation: anikdesc 10s ease infinite; animation-delay: 0s;
}
@keyframes anikdesc{ 
    0% { bottom: calc(var(--anidesc-p) - 20px); opacity: 0; }
    5%{ bottom: var(--anidesc-p); opacity: 0.8; }
    45%{ bottom: var(--anidesc-p); opacity: 0.8; }  
    50% { bottom: calc(var(--anidesc-p) - 20px); opacity: 0; } 
}
#ani01, #ani02{animation-delay: 0s; }
#ani03, #ani04{animation-delay: 5s; }


#page-h1{ display: none; } /* 동적 h1 컨트롤 */

#conts{ color:rgba(0, 0, 0, 0.6); font-weight: 400; font-size: 17px; line-height: 1.7; }
#location .material-icons{ font-size: 1em;}
#conts>#pagetitle{ padding-top: 1rem; font-size: 1.5em; color:black; text-align: center; font-family: 'NexonLv2Gothic'; font-weight: 700; }
#conts>#pagetitle::after{ content: "";display: block; margin-top:1rem; height: 2rem;  border-top: 1px solid rgba(0, 0, 0, 0.15); }
#conts>#pagetitle:has(+.nav-tab)::after{ height: 1rem; }
#conts>#pagetitle>.h1-desc{ font-size: 1rem; font-weight: 400; opacity: 0.5; padding-top: 5px; width: var(--fullwidth); margin: auto; min-height: 29px; font-family: 'Noto Sans KR'; }
#location{ display: flex; align-items: center; font-size: 0.9em; color:rgba(0, 0, 0, 0.5); }

footer{ 
    display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid rgba(0, 0, 0, 0.15); 
    text-align: center; min-height: 15rem; 
}
#footLink{ 
    width: 100%; height: 3rem; line-height: 3rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.logowrap{ display: flex; align-items:flex-start; justify-content: center; width: 100%; padding: 1em 0; }
#footLink>a{ display: inline-block; padding: 0em 0.3em; font-weight: 300; }
footer>h2{ display: flex; align-items: center; justify-content: center; width: 100%;  }
#footInfo{ 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.5rem;
    font-size: 0.9rem; font-weight: 300; width: var(--fullwidth); 
}
#footInfo>p:last-child{ opacity: 0.7; width: 100%; padding: 1em 0 2rem 0; }
#botx{ display: none; visibility: hidden; }
:where(.material-icons){ font-size: inherit; }

:root { --main-color: #5476bb; --main-dark-color: #28AFA5;}

/*탭 이하*/
@media screen and (max-width: 1024px) {
    :root { --fullwidth: calc(100vw - 2em); --headerH : 3rem; }
    
    header>h1{ height: 3rem; position: fixed; background: #fff; }
    .logo{ height: 2rem; }
    *:has(>.logo){ position:static; align-items: center; font-size: 1.3rem; }
    .sitetitle{ height: var(--headerH); }
    header .sitetitle{ position: fixed; background-color: #fff; }

    #btn-nvopen{ background: url(/images/mobile_icoList_black.svg) no-repeat; width: 20px; height: 20px; display: block; position: fixed;  top: 15px; right: 10px; cursor:pointer }

    #nav{ 
        flex-wrap: wrap;  
        position: fixed; z-index: 3; width: 300px; padding: 30px  20px; height: 100vh; left:-300px; align-content: flex-start;
        background-color: #fff; border-right: 1px solid rgba(0, 0, 0, 0.1); 
        transition:left 0.3s ease-out; 
    }
    #nav.menuon{ left:0px; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5); }
    #nav>li{ min-width: 100%; padding: 0.7em 0em; font-size: 1.1em; border-bottom: 1px solid rgba(0, 0, 0, 0.1);  }
    #nav>li>div{ 
        display: none; margin:15px 0px 10px 0px; padding: 0.5em 1em; text-align: left; border:1px solid rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.03); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
    }
    #nav>li>div>a{ display: block; width: 100%; padding: 0.5em 0em; }
    #nav>li>div>a:not(:last-of-type){ border-bottom: 1px solid rgba(0, 0, 0, 0.1);}

    #topmn{display: none;}
    #nav>#topmn{ 
        display: flex; width: 100%; align-items: center; justify-content: center; margin:1.5em 0; padding: 0.7em 0; background-color: var(--main-color); color:white; border-radius: 3px;
    }
    #nav>#topmn>a{ padding: 0 0.5em;}
    #nav>#topmn>a:not(:first-child){ border-left:1px solid rgba(255, 255, 255, 0.5); }

    #btn-nvclose{ background: url(/images/mobile_icoListX_black.svg) no-repeat; width: 20px; height: 20px; display: block; position: absolute; z-index: auto; top: 10px; right: 10px; cursor:pointer }

    #bmask{ position: fixed; z-index: 2; top:0px; left: 0px; width: 100%; height: 100vh; background: black; }

    #conts{ min-height: calc(100vh - 15rem - 3rem - 150px); padding: 0rem 1em 2em 1em; }
    #location{ padding:1em 0em; border-bottom: 1px solid rgba(0, 0, 0, 0.1);}

    footer>h2{ font-size: 1.3rem; padding: 1.2rem 0 0.5rem 0; }
    #footInfo{ max-width: 700px; }
}
/*모바일*/
@media screen and (max-width: 500px) {
    #conts{ min-height: calc(100vh - 16rem); }
    footer{ min-height: 16rem;}
}

/*탭 이상*/
@media screen and (min-width: 500px) {
}

/*PC*/
@media screen and (min-width: 1024.1px) {
    :root { --fullwidth: 1200px;  --headerH : 129px; }

    /* 스크롤바 세팅 */
    html{ overflow: overlay ; }
    html::-webkit-scrollbar { width: 0.5rem; }
    html::-webkit-scrollbar-track { background-color: transparent; }
    html::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 0.5rem; } 
    

    header{ overflow: hidden; }
    header:has(.onmenu){ box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);  }
    header::after{ 
        content: ""; display: block; width: 100%; height: 0px;
        border-top: 1px solid rgba(0, 0, 0, 0); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition:all 0.3s ease; 
    }
    header:has(.onmenu)::after{ 
        border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        height: 340px; /* 마우스 온일 경우 높이 설정 */
    }

    #topmn{ 
        position: relative; top:50px; max-width: var(--fullwidth); min-width: 1024px; margin: auto; height: 0px;
        display: flex; justify-content: flex-end; align-items: center; gap: 0.5em; font-size: 0.8em;
    }
    #topmn>.material-icons{ font-size: 1.2em; color:rgba(0, 0, 0, 0.5) }

    #nav{ margin: auto; max-width: var(--fullwidth); min-width: 1024px; }
    #nav>li{ position: relative; text-align: center; }
    #nav>li>a{ font-size: 1.2em; font-weight: 500; line-height: 3rem; }
    #nav>li>a:after{ 
        content:''; position:absolute; display:block; bottom:0px; left:50%; width:0%; height:2px; background-color:#fff;
        transition:all 0.2s ease-out; 
    }
    #nav>li>div{ 
        position: absolute; opacity: 0; width: 100%; font-size: 1.05em; padding: 1em 0.5em; font-weight: 500; 
        color:rgba(0, 0, 0, 0.7); top:2rem; 
        transition:all 0.3s ease; 
    }
    #nav>li>a.onmenu{color:var(--main-color); }
    #nav>li>a.onmenu:after{background-color:var(--main-color); left:0%; width:100%; }

    #nav:has(.onmenu)>li>div{ opacity: 1; top:3rem; }

    #nav>li>div>a{ display: flex; justify-content: center; line-height: 2.5rem; transition:all 0.2s ease-out; }
    #nav>li>div>a.menuon{ color:var(--main-color); transform: scale(1.15); }
    #nav>li>div>a.menuoff{ color:unset; opacity: 0.7; }

    #conts{ min-height: calc(100vh - 15rem - 299px); padding-bottom: 2rem; }
    #conts>#pagetitle:has(+.nav-tab){ margin-bottom:0rem; }
    #location{ position: relative; width: var(--fullwidth); margin: auto; right: 0px; top:70px; height: 0px; justify-content: flex-end; font-size: 1em; }
    #location+#pagetitle{  margin-left: auto; margin-right: auto; font-size: 1.8rem; /* height: 7rem; */ padding-top: 1.5rem; position: relative; overflow: hidden; }
    
    #conts>*:not(#pagetitle, #location, .nav-tab, .bbsnav-tab, #popupimage, #rgsbmask, .bmask, #pwbox, .rgspop, .layersys, .layersys+div)
    { width: var(--fullwidth); margin-left: auto; margin-right: auto; }
}