@charset "utf-8";

.header {
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease;
  background: #fff;
}
.header.header__fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
/* header.header__fixed {
  position: fixed;
  width: 100%;
  left: 0;
  z-index: 10;
} */

body.fixed {
  height: 100%;
  overflow: hidden;
}

.header__wrapper {
  width: 100%;
  height: 100%;
  padding: 25px 23px;
  position: relative;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__left {
  max-width: 332px;
  position: relative;
  z-index: 4;
}
.header__left--sp {
  display: none;
}
.header__navWrap {
  width: calc(100% - 302px);
  max-width: 800px;
}
.header__navWrap .common-contact-block__tel-info,
.header__navWrap .common-contact-block__address,
.header__navWrap .common-contact-block__btn-group {
  display: none;
  opacity: 0;
}

.header__navFlex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 10px;
}

.header__nav-list li {
  position: relative;
}

.header__nav-list li:last-child {
  margin-right: 0;
}

.header__nav-listItem a {
  color: #4d4d4d;
  padding: 5px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.75;
  transition: 0.4s;
  border-bottom: none;
}

.ham {
  width: 27px;
  height: 20px;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 0;
  top: 57%;
  right: 20px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  z-index: 9999;
}

.ham__lineWrapper {
  position: relative;
  width: 27px;
  height: 7px;
}

.ham__lineWrapper span {
  display: block;
  width: 27px;
  height: 1px;
  background-color: #123a55;
  position: absolute;
  transition: 0.3s;
  border-radius: 999px;
}

.ham.open .ham__lineWrapper span {
  background-color: #fff;
}

.ham__lineWrapper span:nth-child(1) {
  top: 4px;
  right: 0;
  width: 17px;
}

.ham__lineWrapper span:nth-child(2) {
  bottom: -4px;
  right: 0;
}

.ham.open {
  width: 32px;
  height: 21px;
  top: 62%;
}

.ham.open .ham__lineWrapper span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
  right: -8px;
  width: 26px; /* 短い幅を戻す */
}
.ham.open .ham__lineWrapper span:nth-child(2) {
  transform: rotate(-45deg);
  top: 50%;
  right: -8px;
  width: 26px; /* 短い幅を戻す */
}

/* 追尾ボタン */
.fix-btn {
  display: none;
}

@media screen and (max-width: 1300px) {
  .header__wrapper {
    padding: 30px 20px 25px;
  }
}

@media screen and (max-width: 1290px) {
  .header__nav {
    padding: 0px 0px;
  }
}

@media screen and (max-width: 1200px) {
  .header__inner {
    display: block;
  }
  .header__logoLink {
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .header__navWrap {
    width: 100%;
    max-width: 100%;
    height: 100svh;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -99;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }
  .header__navWrap.panelactive {
    opacity: 1;
    pointer-events: all;
    z-index: 999;
    background: #123a55;
  }
  /*ナビゲーションの縦スクロール*/

  .header__navWrap.panelactive .header__navScroll {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: calc(100% - 40px);
    height: 100vh; /*表示する高さ*/
    padding-bottom: 100px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header__nav {
    width: 100%;
    max-width: 100%;
    min-height: 550px;
    padding: 0;
    margin: 0 auto;
  }
  .header__nav.open {
    display: block;
  }
  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .header__nav-list li {
    width: 100%;
    padding-bottom: 6px;
    margin-bottom: 11px;
    border-bottom: 1px solid #637d8f;
  }

  .header__nav-listItem a {
    color: #fff;
    font-size: 15px;
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: none;
    position: relative;
  }
  .header__nav-listItem a:first-child {
    padding-top: 5px;
  }
  .header__nav-listLink.btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 2px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    transition: transform 0.8s ease;
  }

  .header__nav-listLink.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
  }

  .header__navWrap .btn--navy.--sp {
    display: none !important;
  }

  .header__navWrap .common-contact-block__tel-info.sp--1150,
  .header__navWrap .common-contact-block__address.sp--1150,
  .header__navWrap .common-contact-block__btn-group.sp--1150 {
    display: block;
    opacity: 1;
  }

  .header__navWrap .common-contact-block__btn-group.sp--1150 {
    display: flex;
    margin: 0 auto 14px 0;
  }

  .header__navWrap .common-contact-block__tel-info.sp--1150,
  .header__navWrap .common-contact-block__address.sp--1150 {
    max-width: 100%;
  }
  .header__navWrap .common-contact-block__tel-info.sp--1150 {
    margin-bottom: 7px;
  }

  .header__navWrap .btn--navy {
    border: 1px solid #fff !important;
  }

  .header__navWrap .common-contact-block__title,
  .header__navWrap .common-contact-block__tel {
    color: #fff;
    text-align: left;
  }
  .header__navWrap .common-contact-block__address.sp--1150 p,
  .header__navWrap .common-contact-block__address.sp--1150 a {
    color: #fff;
    text-align: left;
  }
  .header__navWrap .common-contact-block__address.sp--1150 a {
    line-height: 1;
  }

  .header__left--sp.sp--1150 {
    display: block;
    margin-bottom: 28px;
    cursor: default;
  }

  .ham {
    display: block;
  }
}

@media screen and (max-width: 750px) {
  /* 追尾ボタン */
  .fix-btn {
    width: 202px;
    display: block;
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 3;
  }
  .fix-btn .btn {
    font-size: 20px;
    width: 100% !important;
    max-width: 100%;
    padding: 11px 20px !important;
    border-radius: 9px;
  }
  .fix-btn .btn.btn--navy:before {
    top: calc(2.05em - 33px);
    right: 2px;
    width: 40px;
    height: 40px;
  }
  .fix-btn .btn.btn--navy::after {
    width: 9px;
    height: 9px;
    right: 17px;
  }
}

@media screen and (max-width: 480px) {
  .header__left {
    max-width: 227px;
  }
  .ham {
    top: 53%;
  }
  .ham__lineWrapper span:nth-child(1) {
    top: 8px;
  }

  .ham__lineWrapper span:nth-child(2) {
    bottom: -8px;
  }
}
