@charset "utf-8";

/* =========================================================
   Header
   - PC 기본 + 768px 이하 모바일
   - 기준: 전체 max 1900px / inner 1640px
========================================================= */

.site-header {
    --site-header-height: 112px;
    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--site-header-height);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.site-header__inner {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    flex: 0 0 210px;
    margin: 0;
}

.site-header__logo a {
    display: block;
}

.site-header__logo img {
    display: block;
    width: 210px;
    height: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
    margin: 0 36px;
}

.site-header__nav a {
    position: relative;
    display: block;
    color: #111;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
    transition: var(--transition);
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
    color: var(--color-primary);
}

.site-header__nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.site-header__nav a:hover::after,
.site-header__nav a.is-active::after {
    width: 100%;
}

.site-header__tel {
    flex: 0 0 210px;
    display: flex;
    justify-content: flex-end;
}

.site-header__tel img {
    display: block;
    width: 210px;
    height: auto;
}

.site-header__menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-header__menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background: #111;
    border-radius: 999px;
    transition: var(--transition);
}

.site-header__mobile-nav {
    display: none;
}

@media (max-width: 1180px) {
    .site-header__nav {
        gap: 20px;
        margin: 0 24px;
    }

    .site-header__nav a {
        font-size: 15px;
    }

    .site-header__logo,
    .site-header__tel {
        flex-basis: 180px;
    }

    .site-header__logo img,
    .site-header__tel img {
        width: 180px;
    }
}


/* ==============================
   Mobile 768px 이하
============================== */

@media (max-width: 768px) {
    .site-header {
        --site-header-height: 64px;
        height: var(--site-header-height);
    }

    .site-header__inner {
        max-width: 100%;
        padding: 0 16px;
    }

    .site-header__logo {
        flex: 0 0 auto;
    }

    .site-header__logo img {
        width: 150px;
    }

    .site-header__nav,
    .site-header__tel {
        display: none;
    }

    .site-header__menu-btn {
        display: block;
    }

    .site-header__mobile-nav {
        display: none;
        position: absolute;
        z-index: 1001;
        top: var(--site-header-height);
        left: 0;
        width: 100%;
        padding: 14px 18px 18px;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    }

    .site-header__mobile-nav.is-open {
        display: grid;
        gap: 4px;
    }

    .site-header__mobile-nav a {
        display: block;
        padding: 14px 4px;
        color: #111;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .site-header__mobile-nav a:hover,
    .site-header__mobile-nav a.is-active {
        color: var(--color-primary);
    }
}
