/* ===== 共通ヘッダー（全ページ共通）===== */
/* 変数が未定義のページでも動くようにフォールバック値を持たせる */

header.site {
  background: var(--bg, #FFFFFF);
  border-bottom: 1px solid var(--border, #E5E7EB);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.site .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  flex-shrink: 0;
  text-decoration: none;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, "Noto Sans JP", Meiryo, sans-serif;
}
header.site .logo img {
  height: 38px;
  width: auto;
  display: block;
}
header.site .logo .logo-sub {
  font-size: var(--fs-xs, 13px);
  font-weight: 500;
  color: var(--navy, #4F5B70);
  white-space: nowrap;
  letter-spacing: 0.08em;
  font-family: inherit;
}
header.site nav.gnav {
  display: flex;
  align-items: center;
  gap: 14px;
}
header.site nav.gnav a {
  font-size: var(--fs-xs, 13px);
  font-weight: 500;
  color: var(--navy, #4F5B70);
  padding: 4px 6px;
  text-decoration: none;
  transition: color .2s;
}
header.site nav.gnav a:hover {
  color: var(--peach-dark, #D87877);
}
header.site nav.gnav a.current {
  color: var(--peach-dark, #D87877);
  font-weight: 700;
  border-bottom: 2px solid var(--peach, #F4A09E);
  padding-bottom: 2px;
}
header.site nav.gnav .btn-cta {
  display: inline-block;
  background: var(--peach, #F4A09E);
  color: var(--bg, #FFFFFF) !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: var(--fs-xs, 13px);
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
header.site nav.gnav .btn-cta:hover {
  background: var(--peach-dark, #D87877);
  border-bottom: none;
  transform: translateY(-1px);
}

/* ハンバーガーメニュー（モバイル用）*/
header.site .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
header.site .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--navy, #4F5B70);
  transition: transform .2s, opacity .2s;
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* スマホでハンバーガーを表示 */
  header.site .hamburger {
    display: flex;
  }
  /* スマホでナビは折りたたみアコーディオン */
  header.site nav.gnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    padding: 0 20px;
    box-shadow: 0 6px 12px rgba(79, 91, 112, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  header.site nav.gnav.is-open {
    max-height: 520px;
    padding: 10px 20px 16px;
  }
  header.site nav.gnav a {
    padding: 10px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--border, #EADBD4);
    display: block;
  }
  header.site nav.gnav a.btn-cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
    display: inline-block;
  }
  /* ハンバーガー開閉アニメーション */
  header.site .hamburger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  header.site .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  header.site .hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
