@charset "utf-8";
/*
.header.UpMove{
animation: UpAnime 0.5s forwards;
}*/

.ham-wrap{
  margin-top:5rem;
}
/*
.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{
  padding:2.5rem 5% 0;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  transition: 0.3s;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

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

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

.header-right{
  display: flex;
  align-items: center;
  position: fixed;
  right: 5%;
  top: 2.5rem;
  z-index: 1010;
}

.header-contact{
  background: #FFFFFF;
  color: #0B0D10;
  padding: 12px;
  width: 264px;
  height: 56px;
  border-radius:5px;
  font-size:1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow:hidden;
  margin-right:8px;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: flex;
  align-items: center;
  width: 80px;
  height: 56px;
  background-color: #FFFFFF;
  justify-content: center;
  border-radius:5px;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 8px;
  width: 3rem;
}

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

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

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

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

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

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

.hamBar.active>div:nth-child(3) {
  top: 5px;
  transform: rotate(10deg);
}

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

.ham-cover.active{
  z-index:1000;
  opacity:1;
}

.sp__menu {
  background: #FFFFFF;
  border-radius:5px;
  position: fixed;
  top: 6.5rem;
  right: 5%;
  opacity: 0;
  padding:3.5rem;
  width: 350px;
  height: max-content;
  display:flex;
  flex-direction: column;
  justify-content: center;
  color: #0B0D10;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
}

.sp__menu > a{
  margin-bottom:2rem;
  position:relative;
}

.sp__menu > a::before{
  content:"";
  position:absolute;
  width:100%;
  height:1.5px;
  background:#0B0D10;
  left:0;
  bottom:0;
}

.sp__menu > a:hover::before{
  animation:line-right 1s forwards;
}

@keyframes line-right {
  0% {
    opacity: 0;
    width:0%;
  }
  100% {
    opacity: 1;
    width:100%;
  }
}

.sp__menu a{
  color: #0B0D10;
  padding-bottom: 4px;
  width: fit-content;
  font-weight: 500;
}

.sp__menu .hamBtn{
  position:fixed;
  right:0;
  top:1rem;
}

.sp__menu .header-logo{
  position:fixed;
  left:0;
  top:1rem;
}

.sp__menu_wrap{
  margin: -1.5rem 1rem 2.5rem ;
}

.sp__menu_wrap a{
  color:#9F9F9F;
  font-size: 1rem;
  margin-bottom: 4px;
  width:100%;
}

.ham-wrap{
  max-width:1080px;
  margin:0 auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 5%;
}

.ham-wrap a{
  width:30%;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.ham-wrap a:hover{
  color:#FFFDB4;
  opacity:1;
}

.ham-wrap a p:first-child{
  font-size:clamp(1.5rem, 0.227rem + 4.24vw, 5rem);
  font-family:"Oswald", sans-serif;
  font-weight:bold;
}

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

.sp__menu .footer-left{
  display: none;
}


@media (max-width: 1024px) {
  .header-contact{
    width: 220px;
  }
}


@media (max-width: 767px) {
  .header{
    padding: 12px 5% 0;
  }
  .header-right{
    top:12px;
  }
  .header-contact{
    width: 140px;
    height: 40px;
    padding: 0;
    margin-right: 4px !important;
    font-size: 14px;
  }
  .hamBtn{
    width: 56px;
    height: 40px;
  }
  .sp__menu {
    width: 85%;
    padding: 2.5rem 5%;
    max-width:335px;
    top: 56px;
  }
  .header-logo{
    width: 100px;
  }
  .hamBar{
    height: 4px;
    width: 2rem;
  }
  .sp__menu > a {
    margin-bottom: 1rem;
  }
  .sp__menu_wrap {
    margin: -0.5rem 1rem 2rem;
  }
  .sp__menu_wrap a{
    font-size: 12px;
  }
  .hamBar.active>div:nth-child(1),
  .hamBar.active>div:nth-child(3){
    top: 2.5px;
  }
  .sp__menu .footer-left{
    display: block;
    margin: 2rem auto 0;
  }
  .sp__menu .footer-insta .text-link{
    text-shadow: 0 1.5em 0 #0B0D10, 0 0 0 #0B0D10;
  }
}


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

@keyframes UpAnime{
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

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

