/* 헤더 메뉴 */
#header .gnbbox {
    display: flex;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    font-size: 0;
}
#header .gnbbox::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    height:0;
    background: var(--color-white);
    transition: all 0.4s;
    border-bottom: 1px solid rgba(51, 51, 51, 0);
}
#header.open .gnbbox {
    z-index: 1;
}
#header.open .gnbbox::before {
    height: 290px;
    border-bottom: 1px solid rgba(51, 51, 51, 1)
}
#header.open .gnbbox::after {
    content:"";
    position:absolute;
    width:100%;
    display: block;
    top: 90px;
    z-index: 0;
    border-top: var(--border-basic);
}
#header.open .gnbbox .gnb>li>.gnb-depth {
    max-height: 250px;
    position: relative;
    opacity: 1;
    overflow: visible;
}
#header .gnbbox .gnb>li>.gnb-depth::after  {
    height: 0;
}
#header.open .gnbbox .gnb>li:not(:last-child)>.gnb-depth::after {
    content:"";
    display: block;
    width: 1px;
    height: 135px;
    background-color: var(--color-dark);
    position: absolute;
    right: 0;
    top: 0;
}
#header .gnbbox .gnb>li>.gnb-depth {
    -webkit-transition: max-height 0.4s;
    -moz-transition: max-height 0.4s;
    -ms-transition: max-height 0.4s;
    -o-transition: max-height 0.4s;
    transition: max-height 0.4s;
    -webkit-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    -ms-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
    opacity: 0;
    max-height: 0;
    overflow: hidden;   
}
#header .gnbbox .gnb {
    position: relative;
    white-space: nowrap;
}
#header .gnbbox .gnb>li {
    display: inline-block;
    height: 100%;
    vertical-align: top;
}
#header .gnbbox .gnb>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: var(--transition);
    margin: 0 var(--space-37);
    position: relative;
}
#header .gnbbox .gnb>li>a>span {
    font-size: var(--font-20);
    font-weight: var(--fw-bold);
    position: relative;
}
#header .gnbbox .gnb>li>a span:after {
    content: "";
    position: absolute;
    bottom: -33px;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
}
#header .gnbbox .gnb>li>a.on span:after,
#header .gnbbox .gnb>li>a:hover span:after {
    width: 100%;
    transform: scaleX(1);
    background-color: var(--color-dark);
}
#header .gnbbox .gnb>li>.gnb-depth>li {
    margin-bottom: 20px
}
#header .gnbbox .gnb>li>.gnb-depth>li:first-child {
    margin-top: 30px
}
#header .gnbbox .gnb>li>.gnb-depth>li>a {
    font-size: var(--font-16);
    font-weight: var(--fw-semibold);
    display: block;
    text-align: center;
}
#header .gnbbox .gnb>li>.gnb-depth>li.on>a,
#header .gnbbox .gnb>li>.gnb-depth>li>a:hover {
    font-weight: var(--fw-black);
}

@media all and (max-width:1600px) {
    #header .gnbbox .gnb>li>a {
        margin: 0 var(--space-25);
    }
}