@charset "utf-8";

@font-face {
    font-family: 'Handon3gyeopsal300g';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_seven@1.2/Handon3gyeopsal300g.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
           

@font-face {
    font-family: 'NEXON Lv1 Gothic OTF';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
    
            
            

:root {
    --main-color:#fefbd8;
    --sub-color:#fcf6a4;
    --accent-color:#aedcf9;
    --accent-sub-color:#84afc9;
    --large-width :1200px;  
} 


a, h1, p{
    font-family: "Handon3gyeopsal300g"; 
    font-size: 1.1em;
}
a { color: black;}

header {
    position: relative;
    z-index: 10;
    background-color:white;
    width: 100%;
    height: 50px;
}
header .header {
    position: absolute;
    top: 5px;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    min-width: var(--large-width);
}
.header h1 {
    width: 150px; 
    padding-top: 5px;
}
.header h1 img {
    width: 100%;
}
nav {
    width: 800px;
    text-align: center;
    padding-left: 10px;
}
nav button { display: none;}

#main {
    display: flex;
    justify-content: space-between;
}
#main a{ color: black;}
#main>li { 
    display: block;
    width: 100%;
    padding: 10px 20px;
    line-height: 25px;
    transition: 0.5s;
}

#main>li:hover a{ color: white;}
#main>li:hover {
    background-color: rgba(0,0,0,0.5);
}

#main .main_A{ 
    display: inline-block;
    font-size: 1.2em;
    width: 100%;
    position: relative;
}
#main>li .main_A::after {
    content: "";
    position: absolute;
    bottom: -10px; left: 0;
    width: 0;
    border-bottom:  2px solid var(--accent-color);
    transition: 0.6s;
}
#main>li:hover .main_A::after{
    width: 100%;
}

#main .sub {
    display: none;
    padding-top: 15px;
    font-size: 0.9em;
    line-height: 30px;
}
#main .sub li {
    transition: 0.3s;
}
#main>li:hover .sub{
    display: block;
}
.sub li:hover a{
    font-size: 1.2em;
    color: var(--accent-color) !important;
}
.login {
    margin:10px;
    width: auto;
}
.login ul {
    display: flex;
    justify-content: space-around;
    text-align: center;
    width: 120px;
    height: 25px;
}
.login ul li {
    height: 100%;
    width: 100%;
    transition: 0.3s;
    transform-origin: center;
}
.login ul li:hover{
    transform: scale(0.8);
}
.login ul li a img{ height: 100%;}
.login ul li:nth-child(3) {position: relative;}
.login .search {
    position: absolute;
    top:40px; right: 0;
    width: 0;
    height: 40px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    transition: 0.5s;
}
.login .search input{
    width: 450px;
    height: 100%;
    border: 0;
    border-radius: 20px 0 0 20px;
    outline: none;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 0.9em;
}
.login .search button {
    width: 50px;
    border: 0;
    border-radius: 0 20px 20px 0;
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);

}
.login li:nth-child(3):hover .search { width: 500px;}


@media(max-width: 1000px){
    header .header {
        min-width: 0;
        width: 90%;
        justify-content: space-between;
    }
    .header h1 {
        width: 250px;
    }
    .header h1 img {
        width: 100%;
    }
    nav button{
        position: absolute;
        top: 10px;
        right: 120px;
        display: block;
        background: none;
        outline: 0;
        border: none;
        height: 25px; 
    }
    nav button img { height: 100%;}

    nav #main { display: none;}
    #main {
        position: absolute;
        right: 0px;
        top: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        width: 50%;
        height: 60vh;
    }
    #main a{ color: white;}

    .login ul {
        width: 100px;
        height: 25px;
    }

   
    .login ul li:nth-child(2) {
        margin: 0 5px;
    }
}
@media(max-width: 600px){
    header { 
        background-color: white;
        height: 45px;
    }
    header .header {
        top: 5px !important;
        width: 90%;
    }
    .header h1 {
        width: 400px;
    }
    #main {
        top: 40px;
        width: 100%;
        height: 100vh;
    }
    nav button{
        position: absolute;
        top: 5px;
        right: 110px;
    }
    nav{
        margin-left: 0%;
    }
    .login {
        margin: 5px 0;
    }
    .login ul {
        width: 100px;
        height: 23px;
    }

    .login li:nth-child(3):hover .search { width: 400px;}
}


@media(max-width: 440px){
    .header h1 {
        width: 400px; 
        padding: 5px 0;
    }
    nav button{
        position: absolute;
        top: 5px;
        right: 60px;
    }
    .login {
        position: absolute;
        top: 3px;
        right: -10px;
        margin: 5px 0;
    }
    .login ul {
        width: 60px;
        height: 20px;
    }
    .login li:nth-child(3):hover .search { width: 300px;}
    

}


/*conA ----------------------- */

.conA {
    height: 35vw;
    width: 100%;
    overflow: hidden;
}
.conA #box { 
    display: flex;
    justify-content: space-between;
    height: 100%;
}
.conA #box>li { 
    position: relative;
    border: 0.1px solid #ffffff;
    width: calc(100% / 4);
}

.conA #box a>img {
    width: 100%;
    opacity: 0.7;
}
.conA #box a::after{
    content: "";
    position: absolute;
    right: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--sub-color), var(--accent-color));
    opacity: 0;
    transition: 0.3s;
}
.conA #box li:hover a::after { opacity: 0.6;}
.conA #box a:hover img { opacity: 1;}
.conA #box .icon {
    position: absolute;
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 80px;
    font-size: 1.8vw;
    font-weight: bold;
    z-index: 5;
}

.conA #box .icon p{
    position: absolute;
    width: 6vw;
    margin-top: 50%;
    right: 120%;
    transform: translateX(50%);
    border: 0;
    border-top: 2px solid black;
    transition: 0.5s;
    opacity: 0;
}
.conA #box .icon p::before{
    content: "";
    position: absolute;
    top: -2px;
    right: 0;
    width: 25%;
    border-top: 2px solid black;
    transform-origin: right;
    transform: rotate(45deg);
}
.conA #box li:hover .icon p {
    opacity: 1;
    right: 50%;
}


@media(max-width: 1000px){
    .conA #box .icon {
        position: absolute;
        top: 40%; left: 50%;
        line-height: 50px;
        font-size: 2vh;
    }
    .conA #box .icon img { 
        width: 70%;
    }
    .conA #box .icon p{
        margin-top: 30%;
        width: 6vh;
        border-top: 1px solid black;
    }
    .conA #box .icon p::before{
        top: -1px;
        border-top: 1px solid black;
    }

}
@media(max-width: 600px){
    .conA {
        height: 100vw;
        width: 100%;
        overflow: hidden;
    }
    .conA #box {
        flex-wrap: wrap;
    }
    .conA #box>li { 
        width: calc(100% / 2);
        height: 50%;
        overflow: hidden;
    }
    .conA #box a>img {
        width: 100%;
        opacity: 0.7;
        transform: translateY(-20%);
    }
    .conA #box .icon {
        position: absolute;
        top: 40%; left: 50%;
        line-height: 50px;
        font-size: 2vh;
    }   
}


/* conB --------------------------------- */
.conB {
    width: 75%;
    margin: auto;
    position: relative;
    height: 200vh;
    overflow: hidden;
}

.conB .text {
    position: relative;
    padding: 50px 20px;
    font-family: NEXON Lv1 Gothic OTF;
    display: inline-block;
}
.conB .text P { 
    font-size: 1.5em;
    font-weight: bold; 
    color: var(--accent-color);
    padding-left: 5px;
}
.conB .text h2 {
    line-height: 3.5vw;
    font-size: 3.5vw;
}


.conB .item1 {
    position: absolute;
    right: 0;
    width: 700px;
    height: 400px;    
}
.conB .item2 {

    position: absolute;
    top: 40%;
    left: 0;
    width: 650px;
    height: 450px;
}
.conB .item3 {
    position: absolute;
    top: 68%;
    left: 15%;
    width: 800px;
    height: 400px;
}


.conB>div>a { 
    display: block;
    width: 100%; height: 100%;
    position: relative;
}


.conB>div .img{ 
    display: block;
    height: 100%; 
    width: 100%;
    overflow: hidden;
}
.conB>div .img img{ height: 100%;}
.conB>div div {
    position: absolute;
    bottom: -40px; left: -40px;
    background-color: var(--sub-color);
    width: 25vw;
    padding: 15px;
    font-size: 0.8em;
}
.conB>div div span {
    color: var(--accent-sub-color);
    font-size: 0.9em;
    float: right;
}
.conB>div div h3 {
    font-family: NEXON Lv1 Gothic OTF;
    font-size: 2vw;
}



@media(max-width: 1280px){
    .conB .item3 {
        left: 0;
    }
}

@media(max-width: 1000px){
    .conB {
        height: 180vh;
    }
    .conB .text P {padding-left: 0;font-size: 1em;}
    .conB .text h2 {
        line-height: 4vh;
        font-size: 4vh;
    }
    .conB .item1 {
        /* top: 0; */
        width: 500px;
        height: 300px;    
    }
    .conB .item2 {
        top: 40%;
        left: 0;
        width: 500px;
        height: 400px;
    }
    .conB .item3 {
        top: 73%;
        width: 550px;
        height: 350px;
    }
    .conB>div div {
        position: static;
        background-color: var(--main-color); 
        width: 100%;
        font-size: 0.7em;
    }

}
@media(max-width: 600px){
    .conB {
        width: 90%;
        height: 170vh;
    }
    .conB .item1 {
        position: relative;
        margin: auto;
        width: 100%;
    }
    .conB .item2 {
        position: relative;
        top: 8%;
        margin: auto;
        width: 100%;
        height: 350px;
    }
    .conB .item3 {
        position: relative;
        top: 16%;
        width: 100%;
    }
    .conB>div div {
        position: static;
        background-color: var(--main-color); 
        width: 100%;
        font-size: 0.7em;
    }

    .conB>div>a { 
        display: block;
        width: 100%; height: 100%;
        position: absolute;
    }
    
    .conB>div .img img{ height: 110%; width: 100%;}
}

@media(max-width: 440px){
    .conB {
        width: 90%;
        height: 1200px;
    }
    .conB .item1 {
        height: 150px;    
    }
    .conB .item2 {
        height: 150px;
        top: 14%;
    }
    
    .conB .item3 {
        height: 160px;
        top: 30%;
    }
    .conB>div div h3 {
        font-family: NEXON Lv1 Gothic OTF;
        font-size: 1.3em;
    }
    .conB>div div p{
        font-size: 1.1em;
    }
}


@keyframes ani_text {
    0% {top: 15vw; opacity: 0;}
    100% {top: 0; opacity: 1;}
}

.text.ani_text {
    animation-name: ani_text;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-iteration-count:1;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}
@keyframes ani_item1 {
    0% { right: -15%; opacity: 0;}
    100% { right: 0; opacity: 1;}
}

.item1.ani_item1 {
    animation-name: ani_item1;
}
@keyframes ani_item2 {
    0% { left: -10%; opacity: 0;}
    100% { left: 5%; opacity: 1;}
}

.item2.ani_item2 {
    animation-name: ani_item2;
}
@keyframes ani_item3 {
    0% { opacity: 0;}
    100% { opacity: 1;}
}

.item3.ani_item3 {
    animation-name: ani_item3;
}



.text, .item1, .item2, .item3 {
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-iteration-count:1;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}








/* footer */
footer {
    background-color: #fffef2;
    height: 30vh;
    font-size: 0.8em; 
}
footer a {color: #555;}
footer .footer {
    width: var(--large-width);
    margin: auto;
    display: grid;
    grid-template-areas: 
    "ft_A ft_B"
    "ft_A ft_C"
    ;
    grid-gap: 20px;
    padding: 10px;
    height: 100%;
}

.ft_A {
    grid-area: ft_A;
    width: 100%;
}

.ft_A h2 {
    width: 60%;
    margin: 50px auto 0;
}
.ft_A h2 img { width: 100%;}
.ft_A div {
    width: 60%;
    margin: 50px auto 0;
    display: flex;
    justify-content: space-around;
 
}
.ft_A p {width: 35%;}
.ft_A p:nth-child(1) { padding-top: 7px;}
.ft_A p img { 
    width: 100%;}


.ft_B {
    grid-area: ft_B;
    margin: auto;
    width: 90%;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}
.ft_B>ul {
    display: flex;
    justify-content: center;
}
.ft_B>ul .main>a { font-weight: bold; font-size: 1.1em;}
.ft_B>ul>li:nth-child(2) { margin: 0 150px;}

.ft_C {
    font-size: 0.9em;
    margin: -30px auto;
    height: 120px;
}

@media(max-width: 1000px){
    footer {
        height: 35vh;
        font-size: 0.7em; 
        overflow: hidden;
    }
    footer .footer {
        width: 90%;
        margin: auto;
        display: grid;
        grid-template-areas: 
        "ft_B ft_B"
        "ft_C ft_C"
        "ft_A ft_A"
        ;
        grid-gap: 20px;
        padding: 30px;
        height: 100%;
    }
    .ft_A {
        width: 80%;
        margin: auto;
        display: flex; justify-content: space-between;}
    .ft_A h2 {
        width: 15%;
        margin: 0;
    }
    .ft_A h2 img { width: 100%;}
    .ft_A div {

        width: 15%;
        margin: 0;
        display: flex;
        justify-content: space-around;
     
    }
    .ft_A p { width: 35%; margin-top: 10px;}
    .ft_A p:nth-child(1) { padding-top: 7px;}
    .ft_A p img { width: 100%;}
    .ft_B>ul>li:nth-child(2) { margin: 0 30%;}
    .ft_C {
        width: 100%;
        font-size: 0.9em;
        margin: 0 15px;
    }
}
@media(max-width: 600px){
    footer {
        position: relative;
        top: -20px;
        height: auto;
        font-size:0.8em; 
    }

    footer .footer {
        width: 100%;
        margin: 40px 10px;
        grid-gap: 20px;
        padding: 0;
    }
    .ft_A {
        width: 80%;
        margin: auto;
        display: flex; justify-content: space-between;
    }
    .ft_A h2 {
        width: 25%;
        margin: auto;
    }
    .ft_A div {
        display: none;
    }
    .ft_B { display: none;}
    .ft_C {
        margin: 0;
    }

}
@media(max-width: 440px){
     footer {
        position: relative;
        top: -20px;
        height: auto;
        font-size:0.8em; 
    }
}
