@charset "utf-8";

/* ========== common ========== */
:root {
    --point-color: #1f3864;
    --point-hover: #2c4f8c;
    --text-color: #333;
    --sub-text-color: #707070;
    --line-color: #e5e5e5;
    --header-height: 80px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== header ========== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--line-color);
    z-index: 100;
}
.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#h-logo {
    display: flex;
    align-items: center;
}
#h-logo img {
    height: 44px;
}

.h-right-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* gnb */
.h-global-nav .depth-1 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-global-nav .depth-1 > li {
    position: relative;
}
.h-global-nav .depth-1 > li > a {
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
}
.h-global-nav .depth-1 > li:hover > a {
    color: var(--point-color);
}

.h-global-nav .depth-2 {
    position: absolute;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}
.h-global-nav .depth-1 > li:hover .depth-2 {
    opacity: 1;
    visibility: visible;
}
.h-global-nav .depth-2 > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--sub-text-color);
    text-align: center;
}
.h-global-nav .depth-2 > li > a:hover {
    color: var(--point-color);
    background: #f5f7fb;
}

/* util (login / sign up) */
.h-util {
    display: flex;
    align-items: center;
    gap: 12px;
}
.h-util a {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--line-color);
    border-radius: 19px;
}
.h-util a:hover {
    border-color: var(--point-color);
    color: var(--point-color);
}
.h-util a.h-util-point {
    background: var(--point-color);
    border-color: var(--point-color);
    color: #fff;
}
.h-util a.h-util-point:hover {
    background: var(--point-hover);
    border-color: var(--point-hover);
    color: #fff;
}

/* ========== mobile menu ========== */
.m-menu-btn {
    display: none;
    cursor: pointer;
}

.m-menu-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}
.m-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 201;
    transition: right .3s ease;
    overflow-y: auto;
}
body.m-menu-open {
    overflow: hidden;
}
body.m-menu-open .m-menu-background {
    opacity: 1;
    visibility: visible;
}
body.m-menu-open .m-menu {
    right: 0;
}

.m-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line-color);
}
.m-menu-head img {
    height: 36px;
}
.m-menu-close {
    cursor: pointer;
}

.m-global-nav .depth-1 > li {
    border-bottom: 1px solid var(--line-color);
}
.m-global-nav .depth-1 > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}
.m-global-nav .has-depth-2 > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--sub-text-color);
    border-bottom: 2px solid var(--sub-text-color);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.m-global-nav .has-depth-2.on > a::after {
    transform: rotate(225deg);
}

.m-global-nav .depth-2 {
    display: none;
    padding: 8px 0;
    background: #f7f8fa;
}
.m-global-nav .has-depth-2.on .depth-2 {
    display: block;
}
.m-global-nav .depth-2 > li > a {
    display: block;
    padding: 10px 32px;
    font-size: 15px;
    color: var(--sub-text-color);
}
.m-global-nav .depth-2 > li > a:hover {
    color: var(--point-color);
}

/* ========== responsive ========== */
@media (max-width: 1280px) {
    :root {
        --header-height: 64px;
    }
    .h-global-nav,
    .h-util {
        display: none;
    }
    .m-menu-btn {
        display: flex;
        align-items: center;
    }
    #h-logo img {
        height: 38px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    #h-logo img {
        height: 32px;
    }
}

/* ========== footer ========== */
.footer {
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid var(--line-color);
}
.footer .container {
    display: flex;
    justify-content: center;
}
.footer .copyright {
    font-size: 14px;
    color: var(--sub-text-color);
    letter-spacing: .5px;
}