@charset "utf-8";

.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index:8000;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
}

.header_inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-height: 100%;
  gap: 1rem;
  width: 90%;
  margin: 0 auto;
}

.header_logo{
    position: relative;
    margin-top: .5rem;
    background-color: #FFF;
}

.header_logo img {
  width: 240px;
  height: auto;
  padding: 4px;
}

.header_menu{
    display: flex;
    flex-direction: row;
  	justify-content: center;
    gap: 1rem;
}

.header_menu-link{
    position: relative;
    padding: .5rem 1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    font-size: 16px;
  	width: fit-content;
}

.header_menu-link p{
    font-size: 16px;
    font-weight: bold;
}

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

.header_menu-link:hover{
  opacity: .6;
  color: #000;
}

.header_menu-link-contact{
    position: relative;
    padding: 1rem 1.5rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    font-size: 16px;
  	width: fit-content;
    background-color: #000;
}

.header_menu-link-contact p{
    font-size: 16px;
    font-weight: 500;
    color: #FFF;
}


/* ハンバーガーボタン */
 .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: #FE4401;
  border-radius: 2px;
  transition: .5s;
}


@media (max-width: 1400px) {
  .header_menu-tel{
      display: none;
  }
}

@media (max-width: 1200px) {
  .header_menu{
      gap: 1rem;
  }
  .header_menu-link{
      font-size: 14px;
      padding: 0 .5rem;
  }
  .header_menu-link-gaibu{
     font-size: 14px;
  }
  .header_menu-link:before{
      content: "";
      position: absolute;
      top: 2px;
      left: 0;
      width: 16px;
      height: 16px;
  }
  .header_wrap{
    padding: .5rem 5%;
  }
}

/* =========================
   header dropdown
========================= */

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

.header_menu-item.has-child > .header_menu-link {
  padding-right: 1.8rem;
  cursor: pointer;
}

.header_menu-item.has-child > .header_menu-link::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s ease;
}

.header_menu-item.has-child:hover > .header_menu-link::after {
  transform: translateY(-35%) rotate(225deg);
}

.header_child-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 180px;
  padding: 12px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 9000;
}

.header_child-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: 14px;
}

.header_menu-item:hover .header_child-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header_child-menu a {
  display: block;
  padding: 12px 18px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.header_child-menu a:hover {
  background: #f5f5f5;
}

/* =========================
   1200px
========================= */

@media (max-width: 1200px) {
  .header_menu-item.has-child > .header_menu-link {
    padding-right: 1.4rem;
  }

  .header_menu-item.has-child > .header_menu-link::after {
    right: 0.2rem;
    width: 6px;
    height: 6px;
  }

  .header_child-menu a {
    font-size: 13px;
  }
}

/* =========================
   1024px以下はPCメニュー非表示
========================= */

@media (max-width: 1024px) {
  .header_child-menu {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header{
    height: 60px;
    display: flex;
    align-items: center;
  }
  .header_inner{
    padding: 0 3%;
    gap: 1rem;
    width: 90%;
  }
  .header_logo img {
  width: 180px;
  height: auto;
}
  .header_menu-link{
      font-size: 16px;
  }
  .header_menu-link-gaibu{
     font-size: 16px;
  }
  .header_menu-link-img img{
      min-width: 32px;
      height: 32px;
    box-shadow: 0px 3px 6px;
  }
   .hamBtn {
   display: flex;
     gap: 1rem;
     align-items: center;
  }
   .header_right{
      display: none;
  }
  .header_logo{
      padding-right: 0; 
      border-right: none;
  }
  .header_menu{
    display: none;
  }
  .hamBtn {
    width: auto;
    height: 40px;
  }
}

@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: 100vw;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items:center;
  padding: 5rem 0;
  color: #000;
  transition: 1s;
  z-index: 9000;
  max-width:600px;
  background-color: #FFF;
  overflow-y: scroll;
  overflow-x: hidden;
}

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

.sp_menu-item{
    position: relative;
    height: auto;
  	width: 80%;
    display: flex;
    flex-direction: column;
  	gap: 1rem;
    justify-content: center;
    transition: all .5s;
    padding: 2rem 0 5rem;
    margin: 0 auto;
}

.sp_menu-item-has{
    font-size: 24px;
  text-align: center;
}

.sp_menu-item-child{
    font-size: 16px;
  text-align: center;
  font-weight: 400;
}

.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;
  align-items: center;
  width: 80%;
  max-width: 280px;
  margin: 0 auto;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .sp__menu {
    width:100%;
  }
  .sp__menu-link{
    margin: 0 auto;
  }
  .header_wrap{
    padding: 1rem;
    height: 60px;
     justify-content: center;
  }
}


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


/* =========================
   header scroll bg
========================= */

.header{
  background: transparent;

  transition:
    background-color .4s ease,
    box-shadow .4s ease,
    backdrop-filter .4s ease,
    transform .5s ease;
}

.header.is-scroll{
  background: rgba(255,255,255,0.96);

  box-shadow:
    0 4px 20px rgba(0,0,0,0.06);

  backdrop-filter: blur(8px);
}

/* PCメニュー */

.header.is-scroll .header_menu-link p{
  color: #000;
}

/* ドロップダウン矢印 */

.header.is-scroll
.header_menu-item.has-child
> .header_menu-link::after{
  border-color: #000;
}

/* お問い合わせ */

.header.is-scroll .header_menu-link-contact{
  background: #000;
}