@charset "UTF-8";

#header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dcdcdc;
    box-sizing: border-box;
}

#topWrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 14px 22px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

#siteTitle {
    flex-shrink: 0;
}

#siteTitle a {
    color: #111111;
    text-decoration: none;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

#siteTitle a:hover {
    color: #333333;
}

#gnb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 64px;
    margin: 0 auto;
    padding: 0;
}

#gnb > li {
    position: relative;
    list-style: none;
}

#gnb > li > a {
    color: #111111;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    padding: 10px 0;
    display: block;
    line-height: 1.2;
}

#gnb > li > a:hover {
    color: #555555;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    color: #111111;
    text-decoration: none;
    font-size: 17px;
    white-space: nowrap;
    box-sizing: border-box;
}

.submenu li a:hover {
    background: #f5f5f5;
    color: #000000;
}

#gnb > li:hover .submenu {
    display: block;
}

#headerRight {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

#joinLink {
    color: #111111;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

#joinLink:hover {
    color: #555555;
}

#loginBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 48px;
    padding: 0 24px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

#loginBtn:hover {
    opacity: 0.85;
}

@media screen and (max-width: 1024px) {
    #topWrap {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }

    #siteTitle a {
        font-size: 28px;
    }

    #gnb {
        flex-wrap: wrap;
        gap: 24px;
        margin: 0;
    }

    #gnb > li > a {
        font-size: 18px;
    }

    #headerRight {
        gap: 14px;
    }

    #joinLink {
        font-size: 18px;
    }

    #loginBtn {
        min-width: 100px;
        height: 42px;
        padding: 0 18px;
        font-size: 17px;
        border-radius: 21px;
    }
}

@media screen and (max-width: 768px) {
    #topWrap {
        padding: 16px 20px;
    }

    #siteTitle a {
        font-size: 24px;
    }

    #gnb {
        gap: 16px;
    }

    #gnb > li > a {
        font-size: 16px;
    }

    .submenu {
        min-width: 150px;
    }

    .submenu li a {
        font-size: 15px;
    }

    #joinLink {
        font-size: 16px;
    }

    #loginBtn {
        min-width: 84px;
        height: 38px;
        padding: 0 16px;
        font-size: 15px;
        border-radius: 19px;
    }
}