/* ============================================
   共通スタイル（全ページで読み込む）
   変数・リセット・ヘッダー・セクション共通・関連記事・フッター・ボタン等
   ============================================ */
/* ========================================
   インドアゴルフ比較サイト スタイルシート
   パレット: ティール系グリーン × グレー / アクセント = ライム
   ======================================== */

:root {
  /* --- グレースケール --- */
  --gray-50:  #F7F9F8;
  --gray-100: #EDF2F0;
  --gray-200: #D2DDD8;
  --gray-300: #B9C2BE;
  --gray-400: #9DA5A1;
  --gray-500: #818784;
  --gray-600: #646966;
  --gray-700: #474B49;
  --gray-800: #2B2E2C;
  --gray-900: #101110;

  /* --- ティール（メインカラー）スケール --- */
  --teal-50:  #EFFBF9;
  --teal-100: #DBF6F2;
  --teal-200: #AFE5DD;
  --teal-300: #99C9C2;
  --teal-400: #82ACA5;
  --teal-500: #6A8D87;
  --teal-600: #526D69;
  --teal-700: #394E4B;
  --teal-800: #22302E;
  --teal-900: #0B1211;

  /* --- アクセント（ライム） --- */
  --lime: #B4E550;

  /* --- セマンティックトークン --- */
  --c-main:   var(--teal-800);  /* 見出し・ボタン・濃い背景 */
  --c-accent: var(--teal-600);  /* 共通アクセント（テキスト/線/UI・明地用） */
  --c-accent-dark: var(--teal-100); /* 濃地の上で使う明るいアクセント */
  --c-sub:    #FFFFFF;   /* 濃地の上の文字 */
  --c-bg:     #FFFFFF;   /* ベース背景（白） */
  --c-alt:    var(--gray-50);   /* たまに使うセクション背景 */
  --c-text:   var(--teal-800);  /* 本文テキスト */
  --c-border: var(--gray-200);  /* 罫線 */
  --c-muted:  var(--gray-600);  /* 補助テキスト */

  --f-heading: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 8px rgba(28, 48, 47, 0.05), 0 12px 24px rgba(28, 48, 47, 0.05);
  --shadow-hover: 0 4px 12px rgba(28, 48, 47, 0.07), 0 20px 40px rgba(28, 48, 47, 0.09);
  --gap-section: 96px;
  --content-max: 1180px;
}

/* 最重要CTA（cta-section）はライム地＋濃い文字で主役に */

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "palt";
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== レイアウト密度 ===== */
body.density-compact { --gap-section: 64px; }
body.density-comfy   { --gap-section: 128px; }

/* ===== フォントモード（明朝切替） ===== */

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
/* ヒーローの上に乗せるオーバーレイ型ヘッダー
   （ヒーローカードと同じ左右基準: margin16 + padding48 + 最大1180中央） */
.site-header--overlay {
  position: fixed;
  top: 32px;
  left: 32px !important;
  right: 32px !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  background: rgba(246, 248, 247, 0.6);
  backdrop-filter: blur(4px) saturate(1.4);
  -webkit-backdrop-filter: blur(4px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 24px rgba(33, 47, 44, 0.1);
  border-radius: var(--radius-pill);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* スクロール中も同じガラス表現のまま追従（影を少し強めるだけ） */
.site-header--overlay.is-scrolled {
  background: rgba(246, 248, 247, 0.68) !important;
  box-shadow: 0 8px 28px rgba(33, 47, 44, 0.14);
}
.site-header--overlay .brand { color: var(--c-main); }
.site-header--overlay .site-header__inner {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  min-height: 58px;
  text-align: left !important;
}
@media (max-width: 768px) {
  .site-header--overlay {
    top: 24px;
    left: 18px !important; right: 18px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
.site-header--overlay .brand__logo {
  background: var(--c-accent);
  color: var(--c-main);
}
.site-header--overlay .nav a { color: var(--c-text); }
.site-header--overlay .nav a:hover { color: var(--c-accent); }
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-main);
  display: grid;
  place-items: center;
  color: var(--c-sub);
  font-size: 18px;
  font-family: var(--f-heading);
}
@media (max-width: 768px) {
  .brand__name {
    font-size: 14px;
  }
}
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 14px;
  color: var(--c-text);
  position: relative;
  transition: color 0.2s;
  font-weight: 500;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav a:hover { color: var(--c-main); }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .site-header__inner { padding: 14px 20px; }
  .nav { display: none; }
}

/* ===== セクション共通 ===== */
.section {
  padding: var(--gap-section) 32px;
}
.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section__head {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal-700);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(82, 109, 105, 0.12);
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.section__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-600);
}
.section__title {
  font-family: var(--f-heading);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-main);
  letter-spacing: -0.005em;
}
.section__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 2;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

/* ===== フッター ===== */
.footer {
  background: var(--c-main);
  color: var(--c-sub);
  padding: 36px 32px;
}
.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer__bottom--center {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.75;
  padding-top: 0;
}
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ===== スクロールアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ヒーロー背景：ケンバーンズ（ゆっくりズーム＆パン） */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg-image img {
    animation: kenburns 26s ease-in-out infinite alternate;
    transform-origin: 62% 42%;
  }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.14) translate(-1.5%, -1%); }
}

/* ヒーロー入場：要素が順に下からフェードアップ（fallbackは表示状態） */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: heroUp 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__content > *:nth-child(1) { animation-delay: 0.08s; }
  .hero__content > *:nth-child(2) { animation-delay: 0.18s; }
  .hero__content > *:nth-child(3) { animation-delay: 0.28s; }
  .hero__content > *:nth-child(4) { animation-delay: 0.40s; }
  .hero__content > *:nth-child(5) { animation-delay: 0.52s; }
  .hero__content > *:nth-child(6) { animation-delay: 0.62s; }
  .hero__visual--standard {
    opacity: 0;
    animation: heroVisualIn 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
  }
}
@keyframes heroUp {
  from { transform: translateY(28px); }
  to   { transform: translateY(0); }
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 装飾線のドローイン（出現時に左から伸びる） */

.related__head .section__eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s ease 0.15s;
}

.is-visible .related__head .section__eyebrow::before {
  transform: scaleX(1);
}

/* ===== ボタン汎用 ===== */

/* レスポンシブ */
@media (max-width: 768px) {
  body { --gap-section: 52px; }
  .section { padding: 44px 20px; }
  .hero { padding: 64px 20px; margin: 10px; border-radius: 20px; }
  .top1__cta { width: 100% !important; }
  .overview { padding: 44px 20px; }
  .top1__body { padding: 28px 22px; }
  /* 見出し〜要素間の余白を「この記事のポイント」に統一 */
  .section__head,
  .related__head { margin-bottom: 24px; }
}

/* ===== 関連記事 ===== */
.related {
  padding: 96px 32px;
  background: var(--c-bg);
}
.related--sub {
  background: var(--c-alt);
  border-top: 1px solid var(--c-border);
}
.related--sub .related__card {
  background: var(--c-bg);
}
.related__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.related__head { margin-bottom: 40px; }
.related__title {
  font-family: var(--f-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--c-main);
  margin-top: 8px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}
.related__card:hover {
  border-color: var(--c-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32, 77, 58, 0.06);
}
.related__tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  font-weight: 600;
}
.related__card-title {
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.6;
  flex: 1;
}
.related__meta {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}
@media (max-width: 880px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related__grid { grid-template-columns: 1fr; }
}


/* カードのアウトライン色を目次（--gray-100）に統一 */
.top1__card,
.price-card,
.detail-card,
.compact-card,
.faq__item,
.area-card,
.hub-panel,
.related__card {
  border-color: var(--gray-100);
}
