@charset "utf-8";

@media (min-width: 1025px) {
  .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{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  padding:2.5rem 5%;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

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

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

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

.header_right .header_menu .text-link:last-child{
  margin-left:0.5rem;
  padding:8px 1rem;
  border:1px solid #848580;
}


.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  width: 48px;
  height: 20px;
  background-color: transparent;
}
@media (max-width: 1024px) {
  .hamBtn {
    display:block;
    position:fixed;
    right:2.5%;
    top:1.5rem;
  }
}

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

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

@media (max-width: 767px) {
  .hamBar>div {
    height: 0.5px;
  }
  .hamBtn{
    width: 32px;
    top: 1rem;
    height: 20px;
  }
}


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

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

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

.hamBar>div:nth-child(3)::before{
  content:"メニュー";
  position:absolute;
  writing-mode: vertical-rl;
  top:0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  height: max-content;
}

.hamBar.active>div:nth-child(3)::before{
  content:"閉じる";
}

.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:250px;
}

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

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


@media (max-width: 1279px) {
  .header{
    padding: 1.5rem 2.5%;
  }
  .header_menu{
    gap: 1rem;
  }
}
@media (max-width: 1024px) {
  .header{
    background:transparent;
    padding: 1.5rem 2.5%;
  }
  .header-logo{
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
  }
  .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% 0rem;
  }
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 140px;
  }
  .sp__menu .hamBtn{
    top:1rem;
    right:5%;
  }
  .hamBar>div:nth-child(3)::before{
    font-size:12px;
  }
}
