@charset "utf-8";

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

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

/* SPメニューを開いている間は後ろのページを固定 */
html.is-menuOpen {
  overflow: hidden;
}

.header__wrapper {
  width: 100%;
  padding: 0 40px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
}

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

.header__logo {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 23px;
}

.header__logoLink {
  display: block;
}

.header__logoImg {
  width: 163px;
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 31px;
}

.header__nav-listItem a {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.header__contactBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #ff9d2a;
  background-color: #ff9d2a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  transition: all 0.3s;
}

.header__contactBtn:hover {
  color: #ff9d2a;
  background-color: #fff;
}

/* ハンバーガー */
.ham {
  display: none;
  width: 32px;
  height: 21px;
  cursor: pointer;
  z-index: 9999;
}

.ham__lineWrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.ham__lineWrapper span {
  display: block;
  position: absolute;
  left: 50%;
  width: 32px;
  height: 3px;
  background-color: #1c1e21;
  transition: 0.3s;
}

.ham__lineWrapper span:nth-child(1) {
  top: 0;
  transform: translateX(-50%);
}

.ham__lineWrapper span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.ham__lineWrapper span:nth-child(3) {
  bottom: 0;
  transform: translateX(-50%);
}

.ham.open .ham__lineWrapper span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(33deg);
}

.ham.open .ham__lineWrapper span:nth-child(2) {
  opacity: 0;
}

.ham.open .ham__lineWrapper span:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(-33deg);
}

@media screen and (max-width: 1050px) {
  .header__wrapper {
    padding: 0 20px 3px;
  }

  .header__inner {
    height: 70px;
  }

  .header__spWrap {
    width: 100%;
  }

  .header__logo {
    gap: 16px;
  }

  .header__logoImg {
    width: 130px;
  }

  .ham {
    display: block;
  }

  .header__navWrap {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain; /* メニュー内のスクロールが後ろに伝わらないように */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header__navWrap.panelactive {
    opacity: 1;
    visibility: visible;
  }

  /* リサイズ中はアニメーションさせない（ブレイクポイント切替時のちらつき防止） */
  body.is-resizing .header__navWrap {
    transition: none;
  }

  .header__nav {
    flex-direction: column;
    gap: 40px;
    padding: 50px 20px;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 30px;
  }

  .header__nav-listItem a {
    font-size: 16px;
  }

  .header__contactBtn {
    width: 220px;
    height: 50px;
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .header__logoImg {
    width: 110px;
  }

  .header__logo {
    gap: 12px;
  }
}
