@charset "utf-8";

.header.UpMove{
  animation: UpAnime 0.5s forwards;
}

.header.DownMove{
  animation: DownAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}
@keyframes DownAnime{
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.header{
  background-image: linear-gradient(rgba(51, 51, 51, 0.7), transparent);
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  padding:12px 3rem 12px 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  color:#fff;
}

.header a{
  color:#fff;
}

.header-logo{
  display: block;
  width: 300px;
}

.header_right{
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display:block;
  width: 70px;
  height: 26px;
  background-color: transparent;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 1px;
  background: #F8F8F8;
  transition: .5s;
}


.hamBar>div:nth-child(1) {
  top: 0; 
  width: 100%;
}

.hamBar>div:nth-child(2) {
  top: 50%;
  width: 60px;
}

.hamBar>div:nth-child(3) {
  top: 100%;
  width: 50px;
}

.hamBar.active >div:nth-child(1) {
  transform: rotate(20deg);
  top: 16px;
}

.hamBar.active >div:nth-child(2) {
  opacity:0;
}

.hamBar.active >div:nth-child(3) {
  transform: rotate(-20deg);
  top: 16px;
  width: 100%;
}

.sp__menu {
  background: #333333;
  position: fixed;
  color:#fff;
  top: 0;
  right: 0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  max-width:500px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  transition: 1s;
  z-index:-100;
}

.ham-cover{
  position:fixed;
  top:0;
  left:0;
  opacity: 0;
  width:100%;
  height:100%;
  z-index:-100;
  transition: 1s;
  background:rgba(0,0,0,0.6);
}

.ham-cover.active{
  opacity: 1;
  visibility: visible;
  z-index:10000;
}

.sp__menu a{
  color:#fff;
}

.sp__menu .header-logo{
  width:250px;
}

.sp__menu .hamBtn{
  position:fixed;
  right: 3rem;
  top: 2.3rem;
}

.sp__menu.active {
  opacity: 1;
  visibility: visible;
  z-index:100000;
}

.sp__menu .header_menu{
  flex-direction: column;
  gap:1.5rem;
  width: 100%;
  text-align: left;
}

.sp__menu .header_menu a{
  width: 100%;
  font-size:clamp(0.875rem, 0.693rem + 0.61vw, 1.375rem);
}

.sp__menu .header_menu a p.accent{
  font-size:clamp(0.75rem, 0.682rem + 0.23vw, 0.938rem);
  color:#939393;
  margin-top:8px;
}

.sp__menu .footer-insta{
  margin:3.5rem 0 20px;
}

.sp__menu .grd-banner{
  margin-top:3.5rem;
}

.sp__menu .grd-banner::before{
  left:auto;
  right:0;
}

.sp__menu.active .grd-banner::before{
  animation: date-btn-fade-grd 1s forwards ease-in-out;
}

@keyframes date-btn-fade-grd{
  0% {
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@media (max-height: 900px) {
  .sp__menu{
    justify-content: flex-start;
    padding: 5rem 5% 15rem;
    min-height: 950px;
    overflow: scroll;
  }
}

@media (max-width: 1600px) {
  .header_menu{
    gap: 2rem;
    font-size: 14px;
  }
}

@media (max-width: 1279px) {
  .header_menu{
    gap: 1rem;
  }
  .header_right{
    gap: 2rem;
  }
}
@media (max-width: 1024px) {
  .header{
    padding: 0rem 2.5%;
  }
  .header_right .header_menu{
    display: none;  
  }
  .header_menu{
    flex-direction: column;
    gap: 2rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    height: 100%;
  }
  .sp__menu .hamBtn{
    right:2.5%;
  }
}
@media (max-width: 767px) {
  .header{
    padding: 8px  2.5% ;
  }
  .sp__menu {
    width:100%;
    padding: 3rem 5% 1rem;
    max-width:none;
  }
  .header-logo {
    width: 150px;
  }
  .sp__menu .hamBtn{
    top:1rem;
    right:5%;
  }
  .hamBar>div {
    height: 0.5px;
  }
  .hamBtn{
    width: 50px;
    height:18px;
  }
  .hamBar>div:nth-child(2){
    width:42px;
  }
  .hamBar>div:nth-child(3){
    width:35px;
  }
}
