/* ヘッダー: 位置と背景 */
.site-header {
  position: relative;
  z-index: 100;
  height: 65px;
  padding: 0;
  background: var(--brand-white);
}

/* ヘッダー内コンテナ: 横幅を全体に広げる */
.site-header .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 14px;
  padding-right: 12px;
}

/* ヘッダー内: ロゴ/ナビ/CTAの2列 */
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  height: 100%;
}

/* ヘッダー右側: ナビとCTAを右寄せで配置 */
.site-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  height: 100%;
}

/* ブランド: ロゴの並び */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ブランドロゴ */
.site-brand img {
  width: 167px;
  height: auto;
}

/* ナビゲーション: メニュー横並び */
.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  font-size: 14px;
}

/* ナビゲーションリンク: 色と太さ */
.site-nav a {
  color: var(--color-text);
  font-weight: var(--weight-gothic-regular);
}

/* CTA: ヘッダー右の問い合わせボタン */
.site-cta {
  width: 200px;
  min-width: 200px;
  border-radius: 0 0 0 8px;
  background: var(--brand-black);
  color: var(--brand-white);
  font-size: 15px;
  font-weight: var(--weight-gothic-medium);
  text-align: center;
  line-height: 1;
}

/* CTAテキスト: 1行表示で中央揃え */
.site-cta-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.35;
}

/* ヘッダー右側: CTAとメニューの並び */
.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* モバイルメニューボタン */
.site-menu {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* ハンバーガー線 */
.site-menu span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 32px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--brand-black);
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.site-menu span:nth-child(1) {
  transform: translate(-50%, -9px);
}

.site-menu span:nth-child(2) {
  transform: translate(-50%, 0);
}

.site-menu span:nth-child(3) {
  transform: translate(-50%, 9px);
}

.site-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.site-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* SPオーバーレイメニュー */
.site-mobile-nav {
  display: none;
}

.site-mobile-nav__panel {
  width: min(244px, calc(100% - 120px));
  margin: 0 auto;
  transform: translateY(-20px);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-mobile-nav__list {
  display: grid;
}

.site-mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--weight-gothic-regular);
  line-height: 1.5;
}

.site-mobile-nav__list .site-mobile-nav__link:last-child {
  border-bottom: none;
}

.site-mobile-nav__cta {
  width: 100%;
  min-height: 64px;
  margin-top: 44px;
  padding: 11px 20px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--brand-white);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-mobile-nav__cta-text {
  display: inline-block;
  font-size: 15px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.45;
  text-align: center;
}

body.site-menu-open {
  overflow: hidden;
}

@media (max-width: 981px) {
  /* SP: ナビとPC CTAは隠す */
  .site-nav,
  .site-cta {
    display: none;
  }

  .site-header-right,
  .site-actions {
    gap: 0;
  }

  .site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .site-mobile-nav {
    position: fixed;
    inset: 65px 0 0;
    padding: 28px 0 40px;
    background: var(--color-surface);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-28px);
    transition:
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      visibility 0s linear 0.34s;
    will-change: transform, opacity;
  }

  .site-mobile-nav:not([hidden]) {
    display: block;
  }

  .site-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease;
  }

  .site-mobile-nav.is-open .site-mobile-nav__panel {
    transform: translateY(0);
  }
}

@media (min-width: 982px) {
  /* ヘッダー: PCの高さ */
  .site-header {
    height: 70px;
  }

  /* ヘッダー内コンテナ: PCの左余白 */
  .site-header .container {
    padding-left: 22px;
    padding-right: 0;
  }

  /* PC: ナビ/右側エリアをヘッダー高さいっぱいに */
  .site-nav,
  .site-actions {
    height: 100%;
    align-items: center;
  }

  .site-nav a {
    height: 100%;
    display: inline-flex;
    align-items: center;
  }

  /* PC: CTAをヘッダー高さいっぱいに */
  .site-cta {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
  }

  .site-mobile-nav {
    display: none !important;
  }
}
