@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:1.5rem 5% 0;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

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

.header-left{
  display: flex;
  align-items: center;
  gap:2rem;
  font-size:clamp(0.75rem, 0.659rem + 0.3vw, 1rem);
}

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

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

.header-sns{
  display: flex;
  align-items: center;
  gap:4rem;
  padding-right:2rem;
  border-right:2px solid #000;
}

.header-sns img{
  width:2rem;
}

.header-sns a:first-child img{
  width:1.5rem;
}

.header-sns a:first-child{
  position:relative;
}

.header-sns a:first-child::before{
  content:"";
  position:absolute;
  width:2px;
  height:100%;
  top:0;
  right:-2rem;
  background:#000;
}

.header-tel{
  font-size:clamp(1.25rem, 0.977rem + 0.91vw, 2rem);
  font-weight:bold;
}

.header-tel strong{
  font-size:clamp(0.75rem, 0.659rem + 0.3vw, 1rem);
  font-weight: bold;
  margin-right: 4px;
}

.header-contact{
  background: #FF9252;
  color: #fff;
  padding: 8px 0;
  width: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:8px;
  border:2px solid #FFFFFF;
  border-radius:1.5rem;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
  font-weight:bold;
}

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

.header-contact img{
  width:1rem;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: flex;
  align-items: center;
  width: 56px;
  height: 40px;
  justify-content: center;
}

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

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


.sp__menu {
  background: #E5E3DF;
  position: fixed;
  top: 0;
  right: -450px;
  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;
  max-width: 450px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.16);
  gap: 2rem;
}

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

.sp__menu .header-logo{
  position:fixed;
  left:2.5%;
  top:1rem;
  display:none;
}

.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:100000;
  right: 0;
}

@media (max-width: 1400px) {
  .header{
    padding: 1rem 2.5% 0;
  }
  .header-logo{
    width: 150px;
  }
  .header-left{
    gap: 1rem;
    font-size: 12px;
  }
  .sp__menu .hamBtn{
    right: 2.5%;
    top: 1rem;
  }
}

@media (max-width: 1279px) {
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    height: 100%;
    max-width: 400px;
    padding: 5rem 0;
    justify-content: flex-start;
  }
  .header-left{
    flex-direction: column;
    align-items: flex-start;
  }
  .header-left > p strong{
    display:block;
  }
  .header-logo {
    width: 180px;
  }
  .header{
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .hamBar>div{
    height: 3px;
  }
  .hamBtn{
    width: 48px;
    height: 32px;
  }
  .header-right .header-tel,
  .header-right .header-contact{
    display:none;
  }
}


@media (max-width: 767px) {
  .sp__menu {
    width:100%;
    padding: 5rem 0;
    max-width: none;
  }
  .header-logo {
    width: 160px;
  }
  .header-sns{
    gap:1.5rem;
    padding-right:0.75rem;
  }
  .header-sns a:first-child::before{
    right:-0.75rem;
  }
  .header-sns img {
    width: 1.5rem;
  }
  .header-sns a:first-child img {
    width: 1rem;
  }
  .header-right{
    gap:0;
  }
  .hamBar>div{
    height: 3px;
  }
  .hamBar{
    height: 18px;
    width: 26px;
  }
  .ham-wrap{
    gap: 1.5rem;
  }
  .header {
    padding: 0.5rem 2.5% 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);
  }
}


.page_top {
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index:999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display:flex;
}


.page_top a{
  display:flex;
  width:50%;
  justify-content: center;
  gap: 8px;
  background: #fff;
  padding: 13px;
  align-items: center;
}

.page_top a img{
  width:12px;
}

.page_top a:last-child{
  border:2px solid #FFFFFF;
  background:#FF9252;
  color:#fff;
}

.page_top a:last-child img{
  width:20px;
}

@media (max-width: 767px) {
  .page_top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}