@charset "utf-8";


.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 1440px;
  min-width: 1000px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  margin: 1rem auto 0;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  
  /* アニメーション対象 */
  transition: transform 0.5s ease, background-color 0.5s ease, padding 0.5s ease, border-radius 0.5s ease;
}

.header.scroll{
  background-color: #FFF;
  border-radius: 50px;
  box-shadow: 0 4px 8px #0000001e;
  /* 縮小アニメーション */
  transform: scale(0.9);
  padding: 0 2rem;
}

.header_logo{
    display: block;
    width: fit-content;
}

.header_logo img {
  width: 140px;
  height: auto;
  max-height: 100px;
  
  transition: transform 0.5s ease;
}

.header.scroll .header_logo img {
  transform: scale(0.85);
}

.header_left{
    display: flex;
    flex-direction: row;
    gap: 2rem;
  	align-items: center;
}

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

.header_menu{
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background-color: #fff;
    border-radius: 50px;
  	box-shadow: 0 4px 8px #0000001e;
}

.header.scroll .header_menu {
    background-color: transparent;
  	box-shadow: none;
}

.header_menu-link{
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_menu-link:hover{
    text-decoration: none;
}

.has-child .child-list{
    /*絶対配置で位置を指定*/
	position: absolute;
	left:0;
	top:62px;
	z-index: 4;
    /*形状を指定*/
	background:#FFF;
	width:180px;
    /*はじめは非表示*/
	visibility: hidden;
	opacity: 0;
    /*アニメーション設定*/
	transition: all .3s;
}

.has-child:hover  .child-list{
  visibility: visible;
  opacity: 1;
}

.child-list a{
  position: relative;
  display: block;
  height: auto;
  padding: 0.5rem 1rem;
  color: #fff!important;
}

.header__sp{
  display: none;
}

 .hamBtn {
    cursor: pointer;
    z-index: 9999;
    transition: all .5s;
	position: fixed;
    display: block;
    right: 3%;
    top: 1rem;
    background-color: #FFF;
    border-radius: 50px;
   padding: 0.25rem;
  }
  .header__sp{
    position: fixed;
    bottom: 0%;
    display: flex;
    width: 100%;
    height: 60px;
    z-index: 99;
  }

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

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

@media (max-width: 1280px) {
  	.header_menu{
    	font-size: 14px;
        gap: 1rem;
	}
  .header_menu{
    display: none;
  }
   .header_right{
      display: none;
  }
   .hamBtn {
    width: 60px;
    height: 60px;
  }
   .header .logo img {
      width: 100px;
  }
   .header_logo img {
      width: 100px;
  }
  .header{
      height: 60px;
  }
  .header_left{
    margin-left: 3%;
  }
}

@media (max-width: 1024px) {
.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 > 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: 8px;
  transform: rotate(-45deg);
}

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

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


.sp__menu {
  position: fixed;
  top: 0;
  right: -100%;
  opacity: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items:center;
  padding: 5rem 0;
  color: #000;
  transition: 1s;
  z-index: 8000;
  max-width:500px;
  background-color: #FFF;
  overflow-y: scroll;
  overflow-x: hidden;
}

.sp__menu-parent{
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}


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

.sp__menu-logo{
  width: 64px;
  height: auto;
}

.sp__menu-deco01{
  position: absolute;
  top: 20%;
  right: 0;
  width: 30%;
}

.sp__menu-deco02{
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 30%;
}

.sp__menu-link{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 12px;
  text-align: center;
}

.sp__menu-link a:nth-child(1){
  font-weight: bold;
  font-size: 14px;
}

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

.sp__menu-link-text p{
  color: #fff;
}

.sp__menu-wrap{
    display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

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


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

