/*  HEADER  */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    float: left;
    margin: 1vw 3vw;
}

nav {
    float: right;
    margin: 1.5vw 3vw;
}

nav ul {
    display: flex;
    gap: 2.5vw;
}

nav ul li {
    font-size: 16px;
}

div#ham {
    display: none;
}

footer {
    position: fixed;
    height: 10vh;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 2vw 2vw 0;
    font-size: 12px;
    font-weight: 200;
    line-height: 140%;
}

footer .slogan {
    float: left;
}

footer .copyright {
    float: right;
    text-align: right;
}

@media (max-width: 1300px) {
    h1 {
        font-size: 32px;
    }

    footer {
        padding: 1.5vw 2vw 0;
    }
}

@media (max-width: 780px) {
    h1 {
        font-size: 3.8vw;
        margin: 2vw 3vw;
    }

    nav {
        margin: 0;
        position: relative;
        float: none;
    }

    div#ham {
        position: absolute;
        top: 3vw;
        right: 5vw;
        display: block;
        cursor: pointer;
        z-index: 2320;
    }

    div#ham > span {
        background-color: var(--sub-color);
        display: block;
        width: 30px;
        height: 3px;
        border-radius: 3px;
        transition: 0.25s margin 0.25s, 0.25s transform;
    }

    div#ham span:nth-child(1) {
        margin-bottom: 4px;
    }

    div#ham span:nth-child(3) {
        margin-top: 4px;
    }

    div#ham.active span {
        transition: 0.25s margin, 0.25s transform 0.25s;
    }

    div#ham.active span:nth-child(1) {
        margin-top: 8px;
        margin-bottom: -4px;
        transform: rotate(45deg);
    }
    div#ham.active span:nth-child(2) {
        transform: rotate(45deg);
        display: none;
    }
    div#ham.active span:nth-child(3) {
        margin-top: -4px;
        transform: rotate(135deg);
    }

    nav #menu {
        height: 0;
        background-image: var(--main-gradient), url("../image/noisebg.jpg");
        background-size: cover;
        background-blend-mode: lighten; /* 원하는 blend mode 선택 */

        transition: height 0.5s ease;
        overflow: hidden;
        clear: both;
        position: absolute;
        top: 0;
        left: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: right;
        padding: 20vw 5vw;
        width: 100vw;
        gap: 5vw;
    }

    nav ul li {
        font-size: 20px;
    }

    footer {
        height: 6vh;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 7vw;
        margin: 3vw 0 0 5vw;
    }

    div#ham {
        top: 5vw;
        right: 6vw;
    }

    footer .copyright {
        width: 45%;
        margin-top: -3vw;
    }
}
