@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.change-color{
background:rgba(255, 255, 255, 0.7);
}
*/


.header{
  position: fixed;
  z-index:9999;
  top: 1.5rem;
  right: 2.5%;
  width: 95%;
  padding: 4px 4px 4px 5%;
  border-radius:8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background-color: rgb(247 244 238 / 70%);
  box-shadow:0px 3px 8px rgba(0,0,0,0.16);
}

.header:has(.hamBar.active){
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.header a:has(.header-logo){
  margin:0 auto;
}

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

/*.header > a > .header-logo{
  background-color: rgb(247 244 238 / 70%);
  box-shadow:0px 3px 8px rgba(0,0,0,0.16);
}*/

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

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

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display:block;
  width: 52px;
  height: 52px;
  position:absolute;
  right:4px;
  background-color:#A38370;
  padding: 18px 1rem;
  border-radius: 5px;
}

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

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

@media (max-width: 767px) {
  .hamBtn{
    width: 40px;
    height: 40px;
    padding: 12px 10px;
  }
}


.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: 8px;
  transform: rotate(-30deg);
}

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

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


.sp__menu {
  background-color: rgb(247 244 238 / 80%);
  position: fixed;
  top: 1.5rem;
  opacity: 0;
  width: 80%;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  color: #554844;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
  max-width: 600px;
  border-radius:8px;
  right: 2.5%;
  padding:2rem 5% 5rem;
}

.sp__menu .btn{
  font-size:18px;
}

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

.ham-wrap{
  width: 200px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ham-wrap > a:hover{
  color:#A38370;
}

.sp__menu .hamBtn{
  top: 28px;
  right: calc(2.5% + 4px);
}

@media (max-width: 1024px) {
  .sp__menu{
    overflow: scroll;
    padding: 3rem 0 6rem;
    height:100%;
    max-width: none;
    width:100%;
    top:0;
    right:0;
    opacity: 0;
    z-index: -100;
    visibility: hidden;
  }
  .ham-wrap{
    gap:2rem;
  }
  .sp__menu.active {
    opacity: 1;
    visibility: visible;
    z-index:100000;
  }
}


@media (max-width: 767px) {
  .header{
    top: 8px;
    padding: 0.5rem 5%;
  }
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 135px;
  }
  .sp__menu .hamBtn {
    top: 12px;
  }
  .sp__menu  .header-logo {
    width: 225px;
  }
  .ham-wrap {
    gap: 1.25rem;
    text-align: center;
    margin-top: 4rem;
  }
}


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

