:root {
    --color-bk: #302820;
    --color-gy: #909090;
    --color-wh: #ffffff;

    --color-bg: #FAFAFA;
    --color-line: #FAFAFA;

    --color-skyblue: #BDE1ED;
    --color-navy: #161A53;
    --color-hl: #FBA832;
    --color-hl-sub: #F47820;
    
    --title-1: 40px;
    --title-2: 32px; 

    --font-xl: 28px;
    --font-l: 24px;
    --font-m: 20px;
    --font-s: 18px;
    --font-xs: 16px;

    --header-height: 100px;

    --size-xl: 120px;
    --size-l: 80px;
    --size-m: 60px;
    --size-s: 40px;
    --size-xs: 20px;
}

@font-face {
    font-family: 'HakgyoansimAllimjang';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimAllimjangTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'HakgyoansimAllimjang';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimAllimjangTTF-R.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* ---------------- COMMON ---------------- */

.mo-menu, .mo-menu-btn, .mo-close-btn{
    display: none;
}

::selection {
    background-color: var(--color-hl);
    color: var(--color-wh);
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 360px;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-wh);
}

section{
    max-width: 1920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--size-xl) 0;
}

.section-wrapper{
    max-width: 1560px;
    width: 100%;
    padding: 0 var(--size-s);
}

.section-title{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: var(--size-m);
}

.section-title > img{
    width: var(--title-1);
    object-fit: contain;
    margin-right: 12px;
}

.section-title > h2{
    font-family: 'HakgyoansimAllimjang', sans-serif;
    font-size: var(--title-1);
    font-weight: 700;
    color: var(--color-bk);
}

/* ---------------- HEADER ---------------- */

header{
    position: fixed;
    min-width: 360px;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(0deg, #BDE1ED00, #BDE1ED80);
    z-index: 10;
}

header.sticky{
    background: var(--color-wh);
}

header > .header-wrapper{
    max-width: 1560px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--size-s);
} 

.logo > img{
    height: 64px;
    object-fit: contain;
}

.header-wrapper > nav > ul{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--size-s);
}

.header-wrapper > nav a{
    font-family: 'HakgyoansimAllimjang', sans-serif;
    font-size: var(--font-m);
    font-weight: 400;
    color: var(--color-bk);
    padding: 8px 4px;
    transition: 0.2s;
}

.header-wrapper > nav a:hover{
    color: var(--color-hl-sub);
}

/* ---------------- BANNER ---------------- */

#banner{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-skyblue);
    padding: 0;
}

#banner > a{
    position: absolute;
    left: calc((100% - 1480px) * 0.5);
    bottom: 18%;
    z-index: 5;
}

#banner > a > img{
    width: 320px;
    object-fit: contain;
}

#banner > .pc-banner{
    max-width: 1920px;
    height: 960px;
    width: 100%;
    object-fit: cover;
}

#banner > .mo-banner{
    display: none;
}


/* ---------------- SUB-BANNER ---------------- */

.sub-banner {
    max-width: 1920px;
    width: 100%;
    height: calc(240px + var(--header-height));
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/subbanner_pc.png') no-repeat right var(--color-skyblue);
    background-size: cover;
}

.sub-banner > div{
    max-width: 1560px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0 var(--size-s);
    padding-bottom: var(--size-m);
}

.sub-banner > div > img{
    height: 100px;
    object-fit: contain;
}

.sub-navbar{
    max-width: 1920px;
    width: 100%;
    height: var(--size-m);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-navy);
}

.sub-navbar-wrapper{
    max-width: 1560px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 var(--size-s);
}

.sub-navbar-wrapper > a{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.sub-navbar-wrapper > a > img{
    width: 22px;
    object-fit: contain;
}

.sub-navbar-wrapper > hr{
    width: 1px;
    height: 20px;
    background-color: var(--color-wh);
    border: none;
}

.sub-navbar-wrapper > div{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 20px;
    gap: var(--size-s);
}

.sub-navbar-wrapper > div > a{
    font-family: 'HakgyoansimAllimjang', sans-serif;
    font-size: var(--font-s);
    font-weight: 400;
    color: var(--color-wh);
}


/* ---------------- FOOTER ---------------- */

#main-footer{
    background-color: var(--color-skyblue);
    border: none;
}

#main-footer p{
    color: #161A5380;
}

footer{
    max-width: 1920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-wh);
    padding-top: var(--size-s);
    padding-bottom: var(--size-m);
    border-top: 1px solid #161A531A;
}

.footer-wrapper{
    max-width: 1560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0 var(--size-s);
}

.footer-wrapper > p{
    letter-spacing: -0.02em;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 400;
    color: var(--color-gy);
    text-align: right;
    line-height: 150%;
    word-break: keep-all;
}

.footer-wrapper > p > br{
    display: none;
}


@media screen and (max-width: 1560px) {

    :root {    
    --title-1: 36px;
    --title-2: 28px; 

    --font-xl: 24px;
    --font-l: 21px;
    --font-m: 18px;
    --font-s: 16px;
    --font-xs: 14px;

    --header-height: 90px;

    --size-xl: 96px;
    --size-l: 72px;
    --size-m: 54px;
    --size-s: 36px;
    --size-xs: 18px;
    }

    .logo > img{
        height: 56px;
    }

    /* ---------------- BANNER ---------------- */

    #banner > .pc-banner{
        height: calc(0.648 * (100vw - (var(--size-s) * 2)))
    }

    .sub-banner {
    background: url('../img/subbanner_pc.png') no-repeat 75% var(--color-skyblue);
}

    #banner > a{
    position: absolute;
    left: var(--size-s);
    bottom: 18%;
    z-index: 5;
    }

    #banner > a > img{
        width: 20vw;
    }

}


@media screen and (max-width: 1024px) {

    :root {    
    --title-1: 30px;
    --title-2: 26px; 

    --font-xl: 24px;
    --font-l: 21px;
    --font-m: 18px;
    --font-s: 16px;
    --font-xs: 14px;

    --header-height: 80px;
    }

    
    /* ---------------- HEADER ---------------- */
    
    .header-wrapper > nav{
        display: none;
    }

    header.menutoggle{
        background: var(--color-navy);
    }

    .mo-menu-btn, .mo-close-btn{
        display: block;
        height: var(--size-xs);
        object-fit: contain;
        cursor: pointer;
    }

    .mo-menu{
        min-width: 360px;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: var(--color-wh);
        z-index: 10;
    }

    .mo-menu > a{
        width: 100%;
        display: block;
        font-family: 'HakgyoansimAllimjang', sans-serif;
        font-size: var(--font-m);
        font-weight: 400;
        color: var(--color-navy);
        padding: var(--size-xs) var(--size-s);
        border-bottom: 1px solid #161A5340;
        transition: 0.2s;
        
    }

    .mo-menu > a:hover{
        background-color: var(--color-navy);
        color: var(--color-wh);
    }

    .header-wrapper > .hidden{
        display: none;
    }

    .logo > img{
        height: 48px;
    }

    /* ---------------- BANNER ---------------- */

    #banner{
        padding-top: calc(0.5 * var(--header-height));
    }

    #banner > a{
        position: absolute;
        left: var(--size-s);
        bottom: 17%;
        z-index: 5;
    }

    /* ---------------- SUB-BANNER ---------------- */

    .sub-banner {
        height: calc(200px + var(--header-height));
    }

    .sub-banner > div > img{
        height: 80px;
    }
}

@media screen and (max-width: 768px) {

    :root {    
    --title-1: 28px;
    --title-2: 24px; 

    --font-xl: 22px;
    --font-l: 19px;
    --font-m: 16px;
    --font-s: 14px;
    --font-xs: 12px;

    --header-height: 72px;

    --size-xl: 72px;
    --size-l: 64px;
    --size-m: 48px;
    --size-s: 32px;
    --size-xs: 16px;
    }

    /* ---------------- COMMON ---------------- */ 

    .section-wrapper, header > .header-wrapper, footer > .footer-wrapper{
        padding: 0 20px;
    }

    
    #banner > a{
    position: absolute;
    left: initial;
    right: 20px;
    bottom: 0%;
    z-index: 10;
    }

    #banner > a > img{
        min-width: 144px;
        width: 40vw;
    }

    /* ---------------- HEADER ---------------- */

    .logo > img{
        height: 44px;
    }
    
    .mo-menu > a{
        padding: 20px;
        
    }

    /* ---------------- BANNER ---------------- */

    #banner > .pc-banner{
        display: none;
    }

    #banner{
        padding-top: var(--header-height);
    }
    
    #banner > .mo-banner{
        display: block;
        width: 100%;
        height: initial;
        object-fit: contain;
    }

    /* ---------------- SUB-BANNER ---------------- */

    .sub-banner {
        height: calc(164px + var(--header-height));
        background: url('../img/subbanner_mo.png') no-repeat 30% var(--color-skyblue);
        background-size: cover;
    }

    .sub-banner > div{
        padding: 0 20px;
    }

    .sub-banner > div > img{
        display: none;
    }    

    .sub-navbar-wrapper{
        padding: 0 20px;
    }

     /* ---------------- FOOTER ---------------- */


    .footer-wrapper > p > br{
        display: block;
    }

}


@media screen and (max-width: 576px) {

    .sub-banner {
        height: calc(120px + var(--header-height));
    }

    .sub-navbar-wrapper > a > img{
        width: 20px;
    }

    .sub-navbar-wrapper > hr{
        height: 16px;
    }

}