@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{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0%;
  width: 100%;
  padding:0 0 0 5%;
  background: #F8F7ED;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.header-left{
  width: 240px;
}

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

.header-right{
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size:clamp(0.875rem, 0.833rem + 0.14vw, 1rem);
}

.header-contact{
  color: #fff;
  background: #45584E;
  padding: 1.5rem 3rem;
  font-size: clamp(0.875rem, 0.667rem + 0.69vw, 1.5rem);
}

.header-contact:hover{
  color:#fff;
}

.header_menu-item a{
  text-align: center;
  color:#0B0B0B;
  position:relative;
}

.header_menu-item > a::before{
  content:"";
  position:absolute;
  width:0%;
  height:0.5px;
  background:#5A5A5A;
  bottom:-8px;
  left:0;
  transition:0.3s;
} 

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

.parent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.parent.header_menu-item > a::before {
  display:none;
}

.parent::before {
  content: "";
  display: none;
  width: 150%;
  height: 50px;
  top: 100%;
  left: -25%;
  position: absolute;
}

.parent:hover::before {
  display: block;
}

.parent::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  background: url(https://pillowtec.co.jp/system_panel/uploads/images/20260424090518731113.png) no-repeat center / contain;
}

.sub-menu{
  display: none;
  position: absolute;
  top: calc(100% + 2rem);
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  width: -moz-max-content;
  width: max-content;
  text-align: center;
}

.sub-menu a {
  display: block;
  background: #F8F7ED;
  padding: .5rem;
  color: #0B0B0B;
  font-size: 14px !important;
  margin-bottom: 4px;
}

@media (min-width: 1025px) {
  .header-right .parent:hover .sub-menu {
    display: block;
  }
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  align-items: center;
  width: 56px;
  height: 56px;
  justify-content: center;
  background:#45584E;
}

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

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  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);
  width:100%;
}


.sp__menu {
  background: #F8F7ED;
  position: fixed;
  top: 0;
  left:0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  display:flex;
  flex-direction: column;
  padding-top: 10%;
  align-items:center;
  transition: 1s;
  z-index:-100;
  gap: 2rem;
}

.sp__menu .header_menu{
  flex-direction: column;
  gap: 2.5rem;
}

.ham-wrap{
  max-width:1080px;
  margin:0 auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem ;
  flex-direction: column;
  text-align: center;
}

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

.sp__menu .sub-menu {
  position: relative;
  left: auto;
  transform: none;
  top: auto;
  margin-top: 1rem;
}

.sp__menu .sub-menu.open {
  display: block;
}

.sp__menu .parent > a {
  pointer-events:none;
}

.sp__menu .parent{
  flex-direction: column;
  padding-right: 1rem;
  width: 145px;
}

.sp__menu .parent::after{
  position: absolute;
  right: 0;
  top: 6px;
  width: 12px;
  height: 10px;
}

.sp__menu .parent:has(.open)::after{
  transform: rotate(180deg);
}

.sp__menu .header-right,
.sp__menu .header-contact{
  font-size:20px;
}

.sp__menu .sub-menu a{
  font-size: 16px !important;
  margin-bottom: 8px;
}

@media (max-width: 1280px) {
  .header-left {
    width: 200px;
  }
}

@media (max-width: 1024px) {
  .sp__menu{
    overflow: scroll;
    justify-content: center;
    padding: 5rem 0 10rem;
    font-family: "Zen Old Mincho", serif;
  }
  .hamBar>div{
    height: 1px;
    background:#fff;
  }
  .hamBtn{
    width: 64px;
    height: 64px;
    background:#45584E;
  }
  .hamBtn{
    display:flex;
  }
  .header > .header-right > .header_menu{
    display:none;
  }
  .header > .header-right > .header-contact {
    display:none;
  }
  .header-left{
    width:180px;
  }
  .header{
    padding: 0 0 0 2.5%;
  }
  .sp__menu .header-right{
    flex-direction: column;
  }
}


@media (max-width: 767px) {
  .header-left {
    width: 175px;
  }
  .hamBtn {
    width: 40px;
    height: 40px;
  }
  .sp__menu .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
  }
  .sp__menu .header_menu{
    align-items: flex-start;
  }
  .sp__menu .parent{
    align-items: flex-start;
  }
  .sp__menu .sub-menu a{
    text-align:left;
  }
  .sp__menu{
        justify-content: flex-start;
  }
}


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