header{
  flex-direction: column;
  position: fixed;
  top: 0;
  width: 100%;
  color: #fff;
  background: var(--primary01);
  transition: all .3s;
  z-index: 100;
}
header.scroll{
  top: -4.5rem;
}
.header-wrap-logo{
  position: relative;
  padding: 3rem 0 1.5rem;
}
.header-wrap-menu{
  position: relative;
}
h1{
  width: 10rem;
}
header.scroll h1{
  position: absolute;
  left: 0; bottom: -3rem;
  width: 6rem;
  z-index: 1;
}
h1 img{
  width: 100%;
  object-fit: cover;
}
.gnb{
  justify-content: center;
}
header.scroll .gnb{
  padding-left: 4rem;
}
.gnb > li{
  position: relative;
  margin: 0 1.5rem;
}
.gnb > li > a{
  padding: 1.5rem 1.5rem;
}
.gnb > li::after{
  content: "";
  display: block;
  position: absolute;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 3rem); height: 2px;
  border-radius: 1px;
  background: var(--secondary02);
  transition: all .3s;
}
.gnb > li:hover::after{
  transform: translateX(-50%) scaleX(1);
}
.gnb > li:hover > a,
.gnb a:hover{
  color: var(--secondary02);
}
.gnb-sub{
  display: none;
  position: absolute;
  width: 100%;
  padding-top: .5rem;
  font-size: .8rem;
  line-height: 1.5rem;
  text-align: center;
}
.kr-gnb{
  font-family: 'S-Core Dream', 'Malgun Gothic', sans-serif;
  font-size: .7rem;
}
.util-wrap{
  position: absolute;
  right: 0; bottom: 1.3rem;
}
.search-inp{
  display: none;
  width: 7.5rem; height: 1.4rem;
  padding: 0 .6rem;
  background: var(--primary02);
}
.search-inp.active{
  display: block;
}
.search-inp::placeholder{
  font-size: .6rem;
  color: #fff;
}
.search-inp:focus{
  outline: none;
}
.search-btn{
  width: 1.4rem; height: 1.4rem;
  vertical-align: top;
}
.search-btn img{
  width: 100%;
  object-fit: contain;
}
.search-btn.active{
  position: absolute;
  right: .4rem; top: .15rem;
  width: .9rem; height: .9rem;
}
.mb-menu-btn{
  display: none;
  width: 1.4rem; height: 1.4rem;
}
.mb-menu-btn img{
  width: 100%;
  object-fit: contain;
}
.gnb-sub-bg{
  display: none;
  width: 100%; height: 4rem;
  background: var(--primary01);
}
@media screen and (max-width: 1199px) {
  .gnb > li{
    margin: 0 1rem;
  }
  .gnb > li::after{
    width: calc(100% - 2rem);
  }
  .gnb > li > a{
    padding: 1.5rem 1rem;
  }
  .search-inp{
    width: 6.5rem;
  }
}
@media screen and (max-width: 959px) {
  .gnb > li{
    margin: 0 .5rem;
  }
  .search-inp{
    width: 4rem;
  }
}
@media screen and (max-width: 767px) {
  header{
    top: -4.5rem;
  }
  h1{
    position: absolute;
    bottom: -3rem;
    width: 6rem;
    z-index: 1;
  }
  .header-wrap-menu{
    height: 4rem;
  }
  nav{
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; 
    background: var(--primary01);
  }
  nav.active{
    display: block;
  }
  .gnb{
    height: 100vh;
    padding: 0 !important;
    flex-direction: column;
  }
  .gnb > li{
    width: 100%;
  }
  .gnb > li:hover::after{
    transform: scale(0);
  }
  .gnb > li > a{
    font-size: 1.5rem;
    text-align: center;
  }
  .gnb-sub{
    position: static;
    padding: 0 0 .5rem;
    font-size: 1rem;
    line-height: 2rem;
  }
  .search-inp{
    position: fixed;
    left: 50%; bottom: 2rem;
    transform: translateX(-50%);
    width: 80%; height: 2rem;
    padding: 0 1rem;
  }
  .search-inp::placeholder{
    font-size: .8rem;
  }
  .search-btn{
   display: none; 
  }
  .mb-menu-btn{
    display: block;
  }
}