/* header */
#header {position: fixed; left: 0; top: 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .15); z-index: 10; transition: .3s;}
#header .header-inner {max-width: 1700px; height: 90px; margin:0 auto; display: flex; justify-content: space-between; position: relative; z-index: 10; align-items: center;}
#header h1 a {display: block;}
#header h1 a::before {content: ''; display: inline-block; width: 111px; height: 41px; background: url("../img/header_logo.png") no-repeat center;     vertical-align: top; transition: .3s;}

#nav {position: relative; display: flex; align-items: center; height: 100%;}
#nav .gnb {display: flex; height: 100%;}
#nav .gnb > li {position: relative; text-align: center;}
#nav .gnb > li + li {margin-left: 70px;}
#nav .gnb > li > a {font-size: 17px; color: #fff; height: 100%; display: flex; align-items: center; transition: color .3s;}
#nav .gnb > li > a::after {content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: #e50050; transition: .3s;}
#nav .gnb > li > a:hover::after {width: 140%;}
/* #nav .gnb > li > a.active::after {width: 120px; background-color: #e50050;} */

/*child_menu*/
#nav .gnb .lnb {position: absolute; left: 0; top: 100%; width: 100%; display: none; justify-content: center;}
#nav .gnb .lnb li a {display: flex; align-items: center; white-space: nowrap; font-size: 16px; font-weight: 300; line-height: 80px; color: #666; transition: .3s;}
#nav .gnb .lnb li + li a {padding-left: 55px;}
#nav .gnb .lnb li:hover a {color: #e50050;}
/* #nav .gnb .lnb li a.active {color: #e50050;} */

.lnb-bg {position: absolute; left: 0; top: 100%; width:100%; height: 80px; background: #fff; border-top: 1px solid #ddd; z-index: -1; display: none;}

/* hidden-nav */
.toggle-btn {display: block; cursor: pointer; position: relative; margin-left: 95px;}
.toggle-btn::before {content: ''; display: inline-block; width: 23px; height: 18px; background: url("../img/menu_icon.png") no-repeat center; vertical-align: top; transition: .3s;}
/* .toggle-btn span {display: block; background: #000; width: 23px; height: 2px; transition: 250ms;} */
/* .toggle-btn span:nth-child(2) {margin: 5px 0;} */
.close-btn {position: absolute; right: 50px; top: 60px; cursor: pointer;}
.close-btn span {display: block; background: #e50050; width: 32px; height: 2px; border-radius: 3px; transition: 250ms;}
.close-btn span:nth-child(1) {margin-top: 0; margin-bottom: -0; transform: rotate(45deg);}
.close-btn span:nth-child(2) {transform: rotate(45deg); display: none;}
.close-btn span:nth-child(3) {margin-top: -2px; transform: rotate(135deg);}

.hidden-nav-box {position: fixed; left: 0; top: 0; width :100%; height: 100%; background: rgba(0, 0, 0, .7); z-index: 20; display: none;}
.hidden-nav {position: fixed; right: -640px; top: 0; width: 540px; height: 100vh; background: #fbfbfb; text-align: left; padding: 160px 70px 70px 70px; z-index: 30;}
.hidden-nav .hidden_gnb {width: 100%;}
.hidden-gnb > li {position: relative; margin-bottom:50px;}
.hidden-gnb > li > a {position: relative; display: block; max-width:240px; font-family: 'NanumSquareBold'; font-size: 26px; color: rgba(0, 0, 0, .5) !important; transition: .3s;}
.hidden-gnb > li > a:hover, .hidden-gnb > li > a.active {color: rgba(0, 0, 0, 1) !important;}
.h-lnb {position: absolute; left: 230px; top: 4px; z-index: 2; display: none;}
.h-lnb li {margin-bottom: 25px;}
.h-lnb li a {font-family: 'NanumSquare',sans-serif; font-size: 18px; font-weight: 400; color: #707070; border-bottom: 2px solid transparent; padding: 2px 0; white-space: nowrap; transition: .3s;}
.h-lnb li a:hover {padding: 2px 15px; color:#e50050; border-bottom: 2px solid #e50050;}

/* scrolled and hover */
.scrolled #header, #header:hover {background: #fff; border-bottom-color: transparent;}
.scrolled #header {box-shadow: 0 0 38px 0 rgb(0 0 0 / 9%);}
.scrolled #header h1 a::before, #header:hover h1 a::before {background-image: url("../img/header_logo_b.png");}
.scrolled #header #nav .gnb > li > a, #header:hover #nav .gnb > li > a {color: #595757;}
.scrolled #header .toggle-btn::before, #header:hover .toggle-btn::before {background-image: url("../img/menu_icon_b.png");}

/* media query */
@media screen and (max-width: 1800px) {
    #header .header-inner {padding: 0 20px;}
}
@media screen and (max-width: 1700px) {
    #header .header-inner {padding: 0 60px;}
}

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

}

@media screen and (max-width: 1300px) {
    #nav .gnb > li + li {margin-left: 45px;}
    #nav .gnb .lnb li a {font-size: 15px;}
}

@media screen and (max-width: 1200px) {
    #nav .gnb > li + li {margin-left: 40px;}
}

@media screen and (max-width: 1023px) {
    .scrolled #header:hover {background: #fff; border-bottom-color: transparent;}
    .scrolled #header:hover h1 a::before {background-image: url("../img/header_logo_b.png");}
    #header:hover {background: transparent; border-bottom-color: rgba(255, 255, 255, .15);}
     #header:hover h1 a::before {background-image: url("../img/header_logo.png")}
    #header .header-inner {height: 60px; justify-content: center;}
    #nav {display: none;}
    #header h1 a::before {background-size: contain; width: 80px;}
}
