/* pc */
header {
    position: sticky;
    top: 0;
    left: 0;
    background-color: #fff;
    border: 1px solid #EBEBEB;
    z-index: 9;
}

header #header_wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    width: 117px;
    display: flex;
}

header .header_gnb {
    width: calc(100% - 240px);
}

header .gnb_list {
    display: flex;
    justify-content: center;
    width: 100%;
}

header .gnb_list>li {
    width: calc(100% / 4);
    max-width: 183px;
    position: relative;
}

header .gnb_list .gnb_main {
    display: flex;
    padding: 25px 0;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

header .gnb_list>li:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    border-bottom: 2px solid var(--main-color);
    position: absolute;
    bottom: -1px;
}

header .gnb_list .sub_list {
    position: absolute;
    width: 100%;
    top: calc(100% + 8px);
    display: none;
}

header .gnb_sub {
    font-size: 15px;
    font-weight: 400;
    color: #222;
    padding: 10px 0;
    text-align: center;
    display: block;
}

header .gnb_sub span {
    display: none;
}

header .gnb_sub:hover {
    font-weight: 500;
    color: var(--main-color);
}

header .login_box {
    display: flex;
    align-items: center;
    gap: 8px;
}

header .login_box .btn_login {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #222;
}

header .login_box .btn_login:not(:last-child)::after {
    content: '';
    display: block;
    width: 0;
    height: 10px;
    border-right: 1px solid #222;
}

header .btn_gnb {
    width: 24px;
    background-color: transparent;
}

header .dim {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: -1;
    box-shadow: 0px 10px 10px 0px #0000001A;
    height: 243px;
    display: none;
}

header:hover .gnb_list .sub_list,
header:hover .dim {
    display: block;
}

/* tablet */
@media screen and (max-width: 1023px) {
    header #header_wrap {
        padding: 13px 0;
    }

    header .logo {
        width: 90px;
    }

    header:hover .dim {
        display: none;
    }

    header .header_gnb {
        position: fixed;
        top: 0;
        right: 0;
        width: 100dvw;
        height: 100dvh;
        transform: translateX(100%);
    }

    header .header_gnb.active {
        transform: translateX(0);
    }

    .header_gnb .gnb_content {
        width: 100%;
        height: 100%;
        background-color: #F8F8F8;
    }

    .header_gnb .gnb_top {
        padding: 14px 16px;
        border-bottom: 1px solid #E1E1E1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
    }

    .header_gnb .gnb_info {
        padding: 16px 24px;
        background-color: #fff;
    }

    .header_gnb .gnb_info .name {
        font-size: 16px;
        font-weight: 700;
        color: #222;
    }

    header .login_box {
        margin-top: 4px;
    }

    header .login_box .btn_login {
        color: #5E5E5E;
        font-size: 14px;
    }

    header .login_box .btn_login:not(:last-child)::after {
        border-color: #5E5E5E;
    }

    header .gnb_list_wrap {
        max-height: calc(100% - 128px);
        overflow-y: auto;
    }

    header .gnb_list {
        display: block;
    }

    header .gnb_list>li {
        width: 100%;
        max-width: 100%;
    }

    header .gnb_list .gnb_main {
        padding: 13px 24px;
        justify-content: flex-start;
    }

    header .gnb_list .sub_list {
        display: block;
        position: relative;
    }

    header .gnb_sub {
        padding: 14px 30px;
        text-align: left;
        font-size: 14px;
    }

    header .gnb_sub span {
        display: inline-block;
    }

    header .gnb_list>li:hover::after {
        display: none;
    }

    header .gnb_sub:hover {
        font-weight: 400;
        color: #222;
    }

    header .gnb_bot {
        justify-content: center;
        padding: 32px 0 24px;
    }

    header .btn_logout {
        font-size: 14px;
        font-weight: 400;
        color: var(--error-color);
        background-color: transparent;
    }
}

/* mobile */
@media screen and (max-width: 767px) {}