@charset "utf-8";


.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.header_logo{
    display: block;
    width: fit-content;
    margin-left:5%;
    max-height: 100px;
}

.header .logo img {
      width: 300px;
  }

.header_right{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-right: 5%;
}

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

.header_menu-link{
    position: relative;
    height: auto;
}

.header_menu-link:hover::before{
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    height: 1rem;
    border-left: solid 1px #fff;
    animation: 0.5s fadedown ease-in forwards;
}

@keyframes fadedown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header_menu-text p{
    color: #2D2D2D;
    font-weight: 500;
}

.header_menu-text p:hover{
    color: #59B3DC;
    font-weight: 500;
}

.header_contact{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFF;
  margin: 0.25rem 0.5rem;
}

.header_contact p{
  text-align: center;
}

.header_contact-phone{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}

.header_contact-img{
  width: 28px;
  height: auto;
}

.header_contact-num a{
  font-size: 24px;
  text-decoration: underline;
  color: #FFF;
}

.header_web{
  width: 200px;
  height: auto;
  min-height: 120px;
  background-color: #B52231;
  display: flex;
  flex-direction: column;
  color: #FFF;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.header_web-img{
  width: 32px;
  height: auto;
}

.header_web-text{
  font-size: 18px;
  text-align: center;
  color: #FFF;
}

.hamBtn {
  display: none;
}

.header__sp{
  display: none;
}

@media (max-width: 1024px) {
  .header .logo img {
      width: 100px;
  }
  .header_menu{
    display: none;
}
  .hamBtn {
    cursor: pointer;
    z-index: 9999;
    transition: all .5s;
	position: fixed;
    display: block;
    right: 0;
    top: 0;
    width: 100px;
    height: 100px;
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  .header_logo img {
      width: 180px;
  }
  .header{
      height: 80px;
  }
  .hamBtn {
    width: 80px;
    height: 80px;
  }
  .header__sp{
  position: fixed;
  bottom: 0%;
  display: flex;
  width: 100%;
  height: 60px;
  z-index: 99;
}

.header__sp-phone{
  position: relative;
  background-color: #2E2223;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  min-width: 150px;
  color: #FFF;
}
  .header__sp-phone p{
  color: #FFF;
}
  .header__sp-phone-item{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    color: #FFF;
    text-decoration: underline;
  }
  .header__sp-phone-item img{
     width: 20px;
     height: 20px;
  }
  .header__sp-phone-item p{
     font-size: 1.25rem;
    line-height: 1;
  }
.header__sp-web{
  position: relative;
  background-color: #B52231;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 50%;
  min-width: 150px;
  color: #FFF;
  gap: 1rem
}
  
  .header__sp-web img{
    width: 32px;
    height: auto
  }
  .header__sp-web p{
    color: #FFF;
    line-height: 1.2;
    text-align: center;
  }
}

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

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

@media (max-width: 768px) {
  .hamBar>div {
    height: 1px;
  }
}


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

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

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


.sp__menu {
  background-color: #FFF;
  position: fixed;
  top: 0;
  right: -100%;
  opacity: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: center;
  //align-items:center;
  color: #000;
  transition: 1s;
  z-index: 8000;
  max-width:500px;
  box-shadow: -3px 0 3px #cdcdcd;
}

@media (max-width: 500px) {
  .sp__menu {
    box-shadow: none;
  }
}



.sp__menu.active {
  opacity: 1;
  right:0;
  visibility: visible;
}

.sp__menu__cont{
  width: 80%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.sp__menu-link{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  margin: 0 auto;
  width: 80%;
}

.sp__menu-link-text{
  width: 100%;
}

.sp__menu-tel{
  width: 80%;
  margin: 1rem auto 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp__menu-tel-num{
  width: 50%;
}

.sp__menu-link-text:hover p{
  color: #59B3DC;
}

.sp__menu-link-wrap{
    display: flex;
}

@media (max-width: 768px) {
  .sp__menu {
    width:100%;
  }
}


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

