.gnb {
    position: relative;
    z-index: 5;
    background-color: #fff;
}

.anim-gnb {
    position: relative;
    transform: translateY(-16px);
    opacity: 0;
}
.anim-gnb--active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.gnb-header {
    display: flex;
    padding-inline: 24px;
    height: 80px;
    align-items: center;
    width: 1440px;
    margin: auto;
}

.gnb__depth-0-button-group {
    display: flex;
    margin-left: 66px;
}

.gnb__depth-0-button {
    width: fit-content;
    padding: 8px 14px;
    background-color: #fff;
    color: #000;
    border-radius: 500px;
    font-size: 14px;
    font-weight: bold;
}
.gnb__depth-0-button.gnb__depth-0-button--selected {
    background-color: #000;
    color: #fff;
}

.gnb__login-button {
    margin-right: 36px;
    margin-left: auto;
    width: 40px;
    height: 40px;
}

.gnb__icon-button-group {
    margin-left: auto;
    display: flex;
}

.gnb-dropdown {
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease-in-out, height 0.2s ease-in-out;
    z-index: 5;
}

.gnb--open .gnb-dropdown {
    height: 660px;
    opacity: 1;
}

.gnb-dropdown-inner {
    width: 1440px;
    margin: auto;
    padding: 20px;
    position: relative;
}

.gnb-close-button-position {
    padding: 8px 24px;
    right: 0;
    top: 0;
    position: absolute;
    z-index: 1;
}

.gnb-close-button {
    display: flex;
    width: 40px;
    height: 40px;
}

.gnb-close-button img {
    width: 16px;
    height: 16px;
    margin: auto;
}

.gnb__depth-1-button-group {
    display: flex;
    gap: 45px;
}

.gnb__depth-1-button-group.anim-gnb {
    transform: translateY(0);
}

.gnb__depth-1-button {
    width: fit-content;
    font-size: 24px;
    font-weight: bold;
    height: 48px;
    border-bottom: solid 2px #000;
    vertical-align: middle;
    opacity: 0.25;
}

.gnb__depth-1-button--selected {
    opacity: 1;
}

.gnb__menu {
    display: flex;
    padding: 30px 0;
}

.gnb__depth-2-group {
    width: 215px;
    padding: 0 0;
}

.gnb__depth-2-group.anim-gnb {
    transform: translateY(0);
}

.gnb__depth-2 {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-align: start;
}

.gnb__depth-2--depth3-group {
    pointer-events: none;
}

.gnb__depth-3-button-group {
    padding-top: 7px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}
.gnb__depth-3-button {
    padding: 7px 0;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}

.gnb__depth-3-button {
    pointer-events: all;
}

.gnb__depth-2 p, .gnb__depth-3-button p {
    width: fit-content;
    line-height: 1.2;
}

.gnb__depth-2 > p::before, .gnb__depth-3-button > p::before {
    content: "";
    display: block;
    position: relative;
    bottom: -1.1em;
    width: 100%;
    height: 1px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.1s ease-in-out;
}

.gnb__depth-button--selected > p {
    font-weight: bold;
}
.gnb__depth-button--selected > p::before {
    
    transform: scaleX(1);
    
}

.gnb__depth-4-area {
    flex: 1;
    padding-inline: 50px;
}

.gnb--open .gnb__depth-4-area {
    border-right: solid 1px #bbb;
    border-left: solid 1px #bbb;
}


.gnb__depth-4-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gnb__depth-4-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 8px;
}

.gnb__depth-4-group:not(:has(*)) {
    display: none;
}

.gnb__depth-4-button {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 0 24px;
    height: 34px;
    border: 1px solid;
    border-radius: 16px;
}
.gnb__depth-4-button p {
    margin: auto;
}

.gnb__depth-4-button:hover {
    border-color: #006BEA !important;
    font-weight: bold;
}

.gnb__depth-4-group--overview .gnb__depth-4-button {
    font-size: 14px;
    font-weight: bold;
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.gnb__depth-4-group--product .gnb__depth-4-button {
    font-size: 12px;
    border-color: #00000026;
    color: #000;
    vertical-align: middle;
}

.gnb__depth-4-group--viewmore .gnb__depth-4-button {
    font-size: 14px;
    font-weight: bold;
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.gnb__thumb {
    width: 345px;
    padding-inline: 40px;
}

.gnb__thumb__img {
    width: auto;
    aspect-ratio: 1;
    border-radius: 30px;
    overflow: hidden;
    background-color: #F4F4F4;
}
.gnb__thumb__desc {
    margin-top: 24px;
    font-size: 18px;
    font-weight: bold;
}
.gnb-dim {
    left: 0;
    top: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #0008;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}
.header:has(.gnb--open) .gnb-dim {
    left: 0;
    top: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    pointer-events: all;
}

@media only screen and (max-width: 1440px) {

    .anim-gnb {
        transform: translateY(-1.11vw);
    }
    .anim-gnb--active {
        transform: translateY(0);
    }

    .gnb-header {
        padding-inline: 1.67vw;
        height: 5.56vw;
        width: 100.00vw;
    }

    .gnb__depth-0-button-group {
        margin-left: 4.58vw;
    }

    .gnb__depth-0-button {
        padding: 0.56vw 0.97vw;
        border-radius: 34.72vw;
        font-size: 0.97vw;
    }

    .gnb__login-button {
        margin-right: 2.50vw;
        width: 2.78vw;
        height: 2.78vw;
    }

    .gnb__icon-button-group {
    }

    .gnb-dropdown {
        background-color: #fff;
        height: 0;
    }

    .gnb--open .gnb-dropdown {
        height: 45.83vw;
    }

    .gnb-dropdown-inner {
        width: 100.00vw;
        padding: 1.39vw;
    }

    .gnb-close-button-position {
        padding: 0.56vw 1.67vw;
    }

    .gnb-close-button {
        width: 2.78vw;
        height: 2.78vw;
    }

    .gnb-close-button img {
        width: 1.11vw;
        height: 1.11vw;
    }

    .gnb__depth-1-button-group {
        gap: 3.13vw;
    }

    .gnb__depth-1-button-group.anim-gnb {
        transform: translateY(0);
    }

    .gnb__depth-1-button {
        font-size: 1.67vw;
        height: 3.33vw;
        border-bottom: solid 0.14vw #000;
    }

    .gnb__menu {
        padding: 2.08vw 0;
    }

    .gnb__depth-2-group {
        width: 14.93vw;
    }

    .gnb__depth-2-group.anim-gnb {
        transform: translateY(0);
    }

    .gnb__depth-2 {
        padding: 0.83vw 0;
        font-size: 1.11vw;
        line-height: 1.67vw;
    }

    .gnb__depth-3-button-group {
        padding-top: 0.49vw;
        font-size: 0.97vw;
    }
    .gnb__depth-3-button {
        padding: 0.49vw 0;
        font-size: 0.97vw;
    }

    .gnb__depth-2 > p::before, .gnb__depth-3-button > p::before {
        height: 0.07vw;
    }

    .gnb__depth-4-area {
        padding-inline: 3.47vw;
    }

    .gnb__depth-4-group-wrapper {
        gap: 2.78vw;
    }

    .gnb__depth-4-group {
        row-gap: 1.11vw;
        column-gap: 0.56vw;
    }

    .gnb__depth-4-button {
        padding: 0 1.67vw;
        height: 2.36vw;
        border: 0.07vw solid;
        border-radius: 1.11vw;
    }

    .gnb__depth-4-group--overview .gnb__depth-4-button {
        font-size: 0.97vw;
    }

    .gnb__depth-4-group--product .gnb__depth-4-button {
        font-size: 0.83vw;
    }

    .gnb__depth-4-group--viewmore .gnb__depth-4-button {
        font-size: 0.97vw;
    }

    .gnb__thumb {
        width: 23.96vw;
        padding-inline: 2.78vw;
    }

    .gnb__thumb__img {
        border-radius: 2.08vw;
    }
    
    .gnb__thumb__desc {
        margin-top: 1.67vw;
        font-size: 1.25vw;
    }

}


@media only screen and (min-width: 768px) and (max-width: 1024px) {
    
    .gnb-header {
        height: 7.29vw;
        padding: 0 1.76vw 0 3.13vw;
    }

}

@media only screen and (max-width: 1024px) {

    .gnb__menu{
        flex-direction: column;
        padding: 10px 24px;
    }

    .gnb .gnb-dropdown{
        position: fixed;
        right: 0;
        top: 0;
        width: 0;
        height: 100vh;
        overflow-x: visible;
        overflow-y: auto;
        display: flex;
        transition: width 0.2s ease-in-out;
        z-index: 10;
    }

    .gnb--open .gnb-dropdown{
        width: 360px;
    }

    .gnb .gnb-dropdown > * {
        min-width: 360px;
        max-width: 360px;
        transition: transform 0.2s ease-in-out;
    }
    
    .gnb .gnb-dropdown.gnb-dropdown--slide > * {
        transform: translateX(-100%);
    }
    
    .gnb-dropdown-inner{
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .gnb__depth-0-button-group{
        flex-direction: column;
        gap: 24px;
        padding-top: 24px;
        border-top: solid 1px #CCCCCC;
        margin: 0;
        padding-inline: 24px;
    }

    .gnb__depth-0-button{
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        font-weight: normal;
        width: 100%;
        padding: 0;
        border-radius: 0;
        position: relative;
    }
    
    .gnb__depth-0-button::after {
        content: "";
        position: absolute;
        display: inline-block;
        background-image: url("/resources/icon/ico_dropdown.png");
        background-size: contain;
        width: 15px;
        height: 8px;
        top: 4px;
        right: 0;
        transform: rotate(-90deg);
    }

    .gnb__depth-0-button:hover, .gnb__depth-0-button.gnb__depth-0-button--selected{
        font-weight: normal;
        background-color: transparent;
        color: #000;
        text-align: center;
    }
        
    .gnb__depth-1-button-group {
        padding-inline: 24px;
    }

    .gnb__depth-1-button {
        font-size: 24px;
        height: 44px;
        border-bottom: solid 2px #000;
    }

    .gnb__depth-2-group {
        width: 100%;
    }
    .gnb__depth-2{
        font-size: 18px;
        padding: 18px 0;
    }
    
    .gnb__depth-2--depth3-group{
        pointer-events: all;
        position: relative;
        border-bottom: 1px solid #00000026;

    }
    
    .gnb__depth-2--depth3-group::after {
        content: "";
        position: absolute;
        display: inline-block;
        background-image: url("/resources/icon/ico_dropdown.png");
        background-size: contain;
        width: 15px;
        height: 8px;
        top: 25px;
        right: 0;
    }

    .gnb__depth-2--depth3-group:has(:focus)::after, .gnb__depth-2--depth3-group:focus::after{
        transform: scaleY(-100%);
    }

    .gnb__depth-2 > p::before{
        display: none;
    }

    .gnb__depth-3-button-group-grid{
        padding: 0;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .gnb__depth-3-button-group-grid-inner {
        overflow: hidden;
    }

    .gnb__depth-3-button-group{
        min-height: 0;
        padding-top: 18px;
    }

    .gnb__depth-2--depth3-group:has(:focus) .gnb__depth-3-button-group-grid, .gnb__depth-2--depth3-group:focus .gnb__depth-3-button-group-grid {
        grid-template-rows: 1fr;
    }

    .gnb__depth-3-button{
        font-size: 16px;
        padding: 14px 0;
    }


    .gnb__depth-4-button {
        padding: 0 24px;
        height: 34px;
        border: 1px solid;
        border-radius: 16px;
    }

    .gnb__depth-4-group--overview .gnb__depth-4-button {
        font-size: 14px;
    }

    .gnb__depth-4-group--product .gnb__depth-4-button {
        font-size: 12px;
    }

    .gnb__depth-4-group--viewmore .gnb__depth-4-button {
        font-size: 14px;
    }
    
    .gnb__thumb{
        width: 312px;
        padding: 0;
        padding: 60px 0;
    }
    .gnb__thumb__img{
        border-radius: 30px;
    }
    .gnb__thumb__desc{
        font-size: 18px;
        margin-top: 24px;
    }

    .gnb__depth-4-button-group-grid{
        padding: 0;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }
    .gnb__depth-4-button-group-grid-inner{
        overflow: hidden;
    }
    .gnb__depth-4-button-group{
        min-height: 0;
    }

    .gnb__depth-3-button:focus .gnb__depth-4-button-group-grid, .gnb__depth-3-button:has(:focus) .gnb__depth-4-button-group-grid {
        grid-template-rows: 1fr;
    }

    .gnb__depth-4-group-wrapper{
        gap: 16px;
        margin-top: 20px;
    }

    .gnb__depth-4-group {
        gap: 8px;
    }
}

@media only screen and (max-width: 768px) {
    .gnb-header {
                height: 15.28vw;
        padding: 0 3.33vw 0 6.11vw;
    }


}