@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: 2.5rem;
  left: 0%;
  width: 100%;
  padding:0 2.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.header-left{
  width: 22%;
  max-width: 390px;
}

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

.header-right{
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.header-contact{
  color: #fff;
  background: url(https://pulsegiken.co.jp/system_panel/uploads/images/20260730185033249342.png) no-repeat center/contain;
  padding: 1rem 1.5rem;
  font-size: 18px;
}

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


@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:url(https://pulsegiken.co.jp/system_panel/uploads/images/20260804183613388200.png) no-repeat center/contain;
}

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

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

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

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

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

.hamBar.active>div:nth-child(1) {
  top: 50%;
  transform: rotate(-30deg);
  width:100%;
}

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

.hamBar.active>div:nth-child(3) {
  top: 50%;
  transform: rotate(30deg);
  width:100%;
}


.sp__menu {
  background: url(https://pulsegiken.co.jp/system_panel/uploads/images/20260804182622757731.png) no-repeat center/cover;
  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;
}

body:has(.hamBar.active) .header-contact,
body:has(.hamBar.active) .header-left{
  opacity:0;
  pointer-events:none;
}

@media (max-width: 1280px) {

}

@media (max-width: 1024px) {
  .sp__menu{
    overflow: scroll;
    justify-content: center;
    padding: 5rem 0 10rem;
  }
  .hamBar>div{
    height: 1px;
    background:#fff;
  }
  .hamBtn{
    width: 64px;
    height: 64px;
  }
  .hamBtn{
    display:flex;
  }
  .header > .header-right > .header_menu{
    display:none;
  }
  .sp__menu .header-right{
    flex-direction: column;
    font-family: "Shippori Mincho", serif;
  }
  .header > .header-right{
    gap: 1.5rem;
  }
  .sp__menu .header_menu a{
    width: 300px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #000000;
    color:#000000;
    font-weight:bold;
    font-size:20px;
    position:relative;
  }
  .sp__menu .header_menu a::before{
    content:"";
    aspect-ratio:1/1;
    width:2rem;
    background:url(https://pulsegiken.co.jp/system_panel/uploads/images/20260803123116966178.png) no-repeat center/contain;
    position:absolute;
    right:1rem;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }
  .sp__menu .header_menu a strong{
    color:#ACACAC;
    display: block;
    font-size:14px;
    margin-bottom:8px;
  }
  .header-left {
    width: 240px;
  }
}


@media (max-width: 767px) {
  .header{
    top:1rem;
  }
  .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;
    gap: 20px;
  }
  .sp__menu{
    justify-content: flex-start;
  }
  .header-left {
    width: 185px;
  }
  .header-contact{
    padding: 0.75rem 1rem;
    font-size: 12px;
  }
  .header > .header-right {
    gap: 0.5rem;
  }
}


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