@charset "utf-8";

/* ========== 공통 header 스타일 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.membership {
    padding: 0 50px;
    height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.logo {
    position: relative !important;
}


.gnb-wrap {
    margin: 10px 50px;
    display: flex;
    justify-content: space-between;
    font-family: 'S-CoreDream-4Regular';
}

.gnb-wrap>ul,
.mobile-menu ul {
    margin-top: 15px;
    display: flex;
}

.gnb-wrap>ul li {
    font-size: 18px;
    width: 150px;
}

.gnb>li>a {
    padding-bottom: 20px;
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
}

.gnb>li>a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.gnb>li:hover>a::before {
    transform: scaleX(1);
}

/* 서브메뉴 */
.snb {
    padding-bottom: 20px;
}

.snb li {
    width: 150px;
}

.snb li a {
    display: block;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
}

.snb li a:hover {
    background: #fafafa;
}

/* 모바일 메뉴 아이콘 */
.mobile-menu ul {
    gap: 40px;
}

.mobile-menu ul li a i {
    font-size: 25px;
}

@media screen and (max-width: 1400px) {
    .gnb-wrap>ul li {
        font-size: 16px;
        width: 140px;
    }
}

/* 데스크탑 전용 */
@media screen and (min-width: 1025px) {

    .menu-icon,
    .menu-close {
        display: none !important;
    }
}

/* ========== 모바일 스타일 ========== */
@media screen and (max-width: 1024px) {
    .header {
        z-index: 9999;
    }

    .membership {
        padding: 0 15px;
        justify-content: space-around;
    }

    .gnb-wrap {
        margin: 10px 15px;
        justify-content: space-between;
    }

    .gnb-wrap>ul {
        position: absolute;
        top: 100px;
        right: -100vw;
        width: 100%;
        height: 100dvh;
        flex-direction: column;
        background: #fff;
        margin: 0;
        border-top: 1px solid #ddd;
    }

    .gnb-wrap>ul>li>a {
        width: 100vw;
        padding: 10px 15px;
        text-align: start;
        font-size: 16px;
        background: var(--primary);
        border-bottom: 1px solid #fff;
        font-family: 'S-CoreDream-5Medium';
    }

    .logo img {
        height: 40px;
        margin-left: -5px;
    }

    .mobile-menu ul {
        margin-top: 10px;
        gap: 20px;
    }

    .mobile-menu ul li a i {
        font-size: 20px;
    }

    .snb {
        display: none;
        padding: 0;
        width: 100vw;
    }

    .snb ul {
        display: flex;
        flex-direction: column;
    }

    .snb ul li {
        width: 100%;
    }

    .snb ul li a {
        width: 100%;
        text-align: start;
        padding-left: 20px;
        padding-right: 15px;
        border-bottom: 1px solid #ddd;
    }
}

/* ========== footer ========== */
.footer {
    padding: 50px 160px;
    font-size: 14px;
}

.company-info,
.terms,
.copyright {
    margin: 10px 0 10px 20px;
}

.terms ul {
    display: flex;
    gap: 20px;
}

.terms ul li a {
    text-decoration: underline;
}

/* 모바일 footer */
@media screen and (max-width: 768px) {
    .footer {
        padding: 20px 15px;
    }
}