@charset "utf-8";

.header{
  position: fixed;
  z-index:9999;
  width: 100%;
  height: 100px;
}

.header_inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 1rem 5%;
  gap: 1.5rem;
}

.header_logo{
    position: relative;
}

.header_logo img {
  width: 240px;
  height: auto;
  max-height: 35px;
}

.header_left{
 	position: relative;
  	display: flex;
  	align-items: center;
    gap: 2rem;
    width: fit-content;
}

.header_right{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

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

.header_menu-link{
    position: relative;
    padding: 0 .5rem .5rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  	text-align: center;
    border-bottom: 1px solid transparent;
    transition: all .5s;
}

.header_menu-link-child{
    position: relative;
    padding: .5rem;
  	width: 160px;
  font-size: 12px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  	text-align: center;
    border-bottom: 1px solid transparent;
}

.header_menu-link:hover{
    border-bottom: 1px solid #565FAC;
}

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

.header_menu-link-img img{
    width: auto;
    min-width: 30px;
    height: 40px;
}

.header_menu-link-haschid{
  position: relative;
  cursor: pointer;
}

.header_menu-link-haschid-text{
  position: relative;
  padding-right: 1.5rem;
}

.header_menu-link-haschid-text:before{
  content: "　▼";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto 0;
  font-size: .75rem;
  line-height: 1.5rem;
}

.dropdown__lists {
    display: none;/*デフォルトでは非表示の状態にしておく*/
    width: fit-content;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
  padding-top: .5rem;
}
.header_menu-link-haschid:hover .dropdown__lists {
    display: block!important;/*Gナビメニューにホバーしたら表示*/
}
.dropdown__list {
    background-color: #FFF;
    height: 40px;
    transition: all .3s;
    position: relative;
  margin-bottom: .25rem;
}
.dropdown__list:not(:first-child)::before{
    content: "";
    width: 100%;
    height: 1px;
    background-color: #FFF;
    position: absolute;
    top: 0;
    left: 0;
}
.dropdown__list:hover {
    opacity: .8;
}
.dropdown__list a {
    display: flex;
    justify-content: flex-start;
    color: #fff;
    text-decoration: none;
    position: relative;
}
.dropdown__list a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(135deg);
    position: absolute;
    right: 15px;
    top: calc(50% - 5px);
}

.header_btn{
    display: block
}
.header_btn-sp{
    display: none;
}

 .hamBtn {
   display: none;
    cursor: pointer;
    z-index: 9999;
    transition: all .5s;
	position: fixed;
    right: 5%;
    top: 10px;
   padding: 0.25rem;
  }
  .header__sp{
    position: fixed;
    bottom: 0%;
    display: flex;
    width: 100%;
    height: 60px;
    z-index: 99;
  }

.hamBar {
  position: relative;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 20px;
}

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


@media (max-width: 1440px) {
  .header_menu-tel p:nth-child(1){
      font-size: 1.25rem;
  }

  .header_menu-tel p:nth-child(2){
      font-size: 12px;
  }
}
@media (max-width: 1400px) {
  .header_menu-tel{
      display: none;
  }
}

@media (max-width: 1200px) {
  .header_menu-link-img img{
      min-width: 24px;
      height: 24px;
  }
  .header{
    height: 80px;
  }
  .header_logo img {
    width: 180px;
    height: auto;
    max-height: 180px;
  }
}

@media (max-width: 1024px) {
  .header_inner{
  height: 80px;
}
  .header_menu-link-img img{
      min-width: 32px;
      height: 32px;
    box-shadow: 0px 3px 6px;
  }
   .hamBtn {
   display: flex;
     gap: 1.5rem;
     align-items: center;
  }
  .header_btn{
      display: none!important;
  }
  .header_btn-sp{
      display: block;
      width: 32px;
      height: auto;
    margin-right: 1rem;
  }
   .header_right{
      display: none;
  }
  .header_logo img {
      width: 120px;
  }
  .header_logo{
      padding-right: 0; 
      border-right: none;
  }
  .header_menu{
    display: none;
  }
  .header{
      height: 80px;
  }
  .hamBtn {
    width: auto;
    height: 60px;
  }
  .header_logo img {
    width: 160px;
    height: auto;
    max-height: 160px;
  }
}



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

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

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

.sp__menu {
  position: fixed;
  top: 0;
  right: -100%;
  opacity: 0;
  width: 100%;
  height: 100svh;
  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.active {
  opacity: 1;
  right:0;
  visibility: visible;
}

.sp_menu-tel{
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .5s;
    color: #565FAC;
}

.sp_menu-tel-num{
    font-size: 1.5rem;
    font-weight: bold;
    color: #565FAC;
}

.sp_menu-tel-desc{
    color: #565FAC;
    font-size: 14px;
}


.sp__menu-link{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  width: 180px;
}

.sp__menu-link p{
  color: #FFF;
}

.sp__menu-link img{
  width: 24px;
  height: auto;
}


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

