@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:2rem 2.5% 0;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: flex-start;
  transition: 0.3s;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.header-logo{
  display: block;
  width: 160px;
  position: fixed;
  left: 2.5%;
  top: 1.5rem;
  z-index: 1010;
}

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

.header-right{
  display: flex;
  flex-direction:column;
  align-items: end;
  gap:20px;
  padding-top: 6rem;
}

.header > .header-right > a{
  position: relative;
  z-index: 10;
}


.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: flex;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: #FF7A59;
  justify-content: center;
  border-radius:50%;
  position: fixed;
  right: 2.5%;
  top: 1.5rem;
  z-index: 1010;
}

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

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  background: #2F2F2F;
  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: 12px;
  transform: rotate(-45deg);
  right: -1px;
}

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

.hamBar.active>div:nth-child(3) {
  top: 12px;
  transform: rotate(45deg);
  right: -1px;
}

.sp__menu {
  background: #D9D2C6;
  position: fixed;
  top: 0;
  right: 0;
  opacity: 0;
  padding:8rem 2.5% 5rem;
  width: 850px;
  height: 100%;
  display:flex;
  flex-direction: column;
  transition: 1s;
  z-index:-100;
  overflow-y: auto;
  overflow-x: hidden;
}

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

.sp__menu .header-right{
  padding:0;
}

.sp__menu .footer-right{
  width: 100%;
  margin: 5rem 0;
  max-width: none;
}

.header-right > a{
  text-align:right;
  font-size:14px;
}

.header-right > a .accent{
  font-size:28px;
  margin-bottom: 4px;
}


@media (max-width: 1024px) {
  .header-logo{
    width: 140px;
  }
  .sp__menu{
    width:100%;
  }
}


@media (max-width: 767px) {
  .header > .header-right > a{
    display:none;
  }
  .hamBtn{
    width: 48px;
    height: 48px;
  }
  .header-logo{
    width: 94px;
  }
  .hamBar{
    height: 16px;
    width: 1.5rem;
  }
  .hamBar>div{
    height:1px;
  }
  .hamBar.active>div:nth-child(1),
  .hamBar.active>div:nth-child(3){
    top: 8px;
    right: 0;
  }
  .sp__menu{
    padding: 5rem 5% 3rem;
  }
  .sp__menu .footer-right{
    margin: 3rem 0;
  }
}


#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);
  }
}

