@charset "utf-8";

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

.header.DownMove{
  animation: DownAnime 0.5s forwards;
  background: rgba(255, 255, 255, 0.9);
}
@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{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  padding:1rem 10%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

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

.header_right{
  display: flex;
  flex-direction: row;
}

.header-btn{
  display: flex;
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
}

.header-btn a{
  padding:8px 3rem;
  position:relative;
  z-index:1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-btn a:first-child{
  background-image: radial-gradient(at 0% 50%, #2c26fa, #040080);
  color:#fff;
}

.header-btn a:first-child p{
  position:relative;
  z-index:10;
}

.header-btn a:first-child::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  z-index:1;
  transition:0.3s;
  top:0;
  left:0;
  background-image: radial-gradient(at 100% 50%, #2c26fa, #040080);
  opacity:0;
}

.header-btn a:first-child:hover::before{
  opacity:1;
}

.header-btn a:last-child{
  border:3px solid #0600C9;
  color:#0600C9;
}

.header-btn a:last-child:hover{
  color:#fff;
}

.header-btn a:last-child::before{
  content:"";
  position:absolute;
  width:0%;
  height:100%;
  background:#0600C9;
  z-index:-1;
  transition:0.3s;
  top:0;
  left:0;
}

.header-btn a:last-child:hover::before{
  width:100%;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  font-weight:bold;
  font-size:14px;
}

.header_menu > a{
  position:relative;
  padding:4px;
}

.header_menu > a::before{
  content:"";
  position:absolute;
  width:0;
  left:0;
  top:0;
  height:100%;
  background:#0043F0;
  transition:0.3s;
  z-index:-1;
}

.header_menu > a:hover{
  color:#fff;
}

.header_menu > a:hover::before{
  width:100%;
}

.hamBtn {
  width:50%;
  background:#fff;
  border:3px solid #0600C9;
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 1rem;
  width: 20px;
  color:#0600C9;
}

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


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

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

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

.hamBar.active>div:nth-child(1) {
  top: 50%;
  transform: rotate(-30deg);
}

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

.hamBar.active>div:nth-child(3) {
  top: 50%;
  transform: rotate(30deg);
}

.sp__menu {
  background: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
}

.sp__menu .header-logo{
  width:75px;
  position:fixed;
  left:2.5%;
  top:1.5rem;
}

.sp__menu .hamBtn{
  position:fixed;
  right:5%;
  top:1.5rem;
}

.sp__menu .header-btn{
  flex-direction: column;
  gap: 1.5rem;
}

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

.sp__menu .header_menu{
  font-size:1rem;
}

.fixed-btn{
  display:none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fixed-btn .header-btn{
  width:50%;
  color:#fff;
}

.fixed-btn .header-btn a{
  width:100%;
  color:#fff;
}

@media screen and (max-width: 1600px) {
  .header-logo{
    width:75px;
  }
}

@media (max-width: 1280px) {
  .header{
    padding: 1.5rem 2.5%;
  }
  .header_menu{
    gap: 1rem;
  }
}
@media (max-width: 1024px) {
  .fixed-btn{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:9999;
  }
  .fixed-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header{
    background:transparent;
  }
  .header_right .header_menu{
    display: none;  
  }
  .header_menu{
    flex-direction: column;
    gap: 2rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    padding: 2rem 0 2rem;
    height: 100%;
    gap: 5rem;
  }
  .sp__menu .hamBtn{
    right:2.5%;
  }
}
@media (max-width: 767px) {
  .header{
    padding: 1rem  5% ;
  }
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 48px;
    margin:0 auto;
  }
  .hamBtn{
    padding: 10px;
  }
}
