/* =========================================================
   GOLF INDEX — 共通スタイル
   設計方針: 高速表示 / シンプル / 明確な階層
   - 外部フォント・フレームワーク・画像読み込みなし
   - システムフォントスタック + インラインSVG のみ
   ========================================================= */

/* ---- デザイントークン ---- */
:root {
  --paper:      #FBFBF8;  /* 背景: ほんのり温かい白(スコアカード紙) */
  --card:       #FFFFFF;
  --ink:        #1A1C1A;  /* 主テキスト */
  --muted:      #6E726B;  /* 補助テキスト */
  --line:       #E6E6DF;  /* ヘアライン */
  --green:      #16633A;  /* アクセント: 深いフェアウェイグリーン */
  --green-soft: #EAF1EC;
  --sand:       #F3EFE6;  /* バンカー調のトーン */
  --sky:        #ECF0F2;

  --maxw: 1120px;
  --gap: clamp(16px, 2.5vw, 28px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Courier New", monospace;
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: .01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- レイアウト基盤 ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- ユーティリティラベル(モノスペース=スコアカード調) ---- */
.label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,248,.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem;
}
.brand .mark { color: var(--green); display: inline-flex; }
.brand small {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  color: var(--muted); font-weight: 400; align-self: flex-end; padding-bottom: 3px;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 14px; font-size: .9rem; color: var(--muted);
  border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--green-soft); }
.nav a.is-active { color: var(--green); font-weight: 600; }

/* ハンバーガー(モバイル) */
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: var(--ink);
  position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 700;
}
.hero h1 .accent { color: var(--green); }
.hero p {
  margin: 0; max-width: 30em; color: var(--muted);
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr minmax(0, 340px);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.hero-media { margin: 0; }
.hero-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; border-radius: 18px;
  background: var(--green-soft);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-photo { aspect-ratio: 16 / 9; }
}
.hero-rule { margin-top: 36px; height: 1px; background: var(--line); }

/* =========================================================
   セクション共通
   ========================================================= */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.02em; font-weight: 700;
}
.section-head .label { margin-left: auto; }

/* =========================================================
   コース(3カテゴリ)カード — サイトの「シグネチャー」
   3カテゴリを"3ホールのコース"に見立てる
   ========================================================= */
.course { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.hole {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; min-height: 280px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hole:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(22,99,58,.35);
  border-color: #cfe0d4;
}
.hole-visual {
  height: 132px; display: flex; align-items: center; justify-content: center;
  color: var(--green); border-bottom: 1px solid var(--line);
}
.hole:nth-child(1) .hole-visual { background: var(--green-soft); }
.hole:nth-child(2) .hole-visual { background: var(--sand); }
.hole:nth-child(3) .hole-visual { background: var(--sky); }
.hole:nth-child(4) .hole-visual { background: #FBEDE6; color: #E1571E; }
.hole:nth-child(4) .hole-no { color: #E1571E; }
.hole-visual svg { width: 52px; height: 52px; }
.hole-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hole-no {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--green); font-weight: 600;
}
.hole h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.01em; }
.hole p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.hole .go {
  margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.hole .go::after { content: "→"; transition: transform .2s; }
.hole:hover .go::after { transform: translateX(4px); }

/* =========================================================
   アイテムグリッド(ピックアップ / 各カテゴリ一覧)
   ========================================================= */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -18px rgba(0,0,0,.3); }
.card-thumb {
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end;
  padding: 14px; color: var(--green);
  background: var(--green-soft);
}
.card-thumb.t-sand  { background: var(--sand); }
.card-thumb.t-sky   { background: var(--sky); }
.card-thumb.t-paper { background: #F1F1EC; }
.card-thumb .badge {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  background: rgba(255,255,255,.8); color: var(--ink);
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; line-height: 1.4; }
.card-body p { margin: 0; font-size: .82rem; color: var(--muted); }
.card-meta {
  margin-top: 6px; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .06em; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.card-meta .ext::after { content: " ↗"; }

/* =========================================================
   フィルタ(各カテゴリページ)
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font: inherit; font-size: .84rem; cursor: pointer;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  transition: all .15s;
}
.chip:hover { border-color: #cfe0d4; color: var(--ink); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* =========================================================
   パンくず + ページ見出し
   ========================================================= */
.crumb {
  padding: 22px 0 0; font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .08em; color: var(--muted);
}
.crumb a:hover { color: var(--green); }
.crumb .sep { margin: 0 8px; opacity: .5; }
.page-head { padding: 18px 0 6px; }
.page-head .hole-no { font-size: .78rem; }
.page-head h1 {
  margin: 8px 0 10px; font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -.025em; line-height: 1.1;
}
.page-head p { margin: 0; max-width: 40em; color: var(--muted); }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding: 48px 0 36px;
}
.footer-grid h4 {
  margin: 0 0 14px; font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-grid .about p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 24em; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: .88rem; color: var(--ink); }
.footer-grid a:hover { color: var(--green); }
.footer-grid a.ext::after { content: " ↗"; color: var(--muted); font-size: .8em; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted);
}

/* 注記バナー */
.notice {
  background: var(--green-soft); border-top: 1px solid #d7e6dc; border-bottom: 1px solid #d7e6dc;
  font-size: .8rem; color: #2d5a40; text-align: center; padding: 9px 16px;
  font-family: var(--font-mono); letter-spacing: .04em;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: inline-flex; }
  .course { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* =========================================================
   記事ページ(article)
   ========================================================= */
.article { max-width: 760px; margin: 0 auto; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); margin: 6px 0 18px;
}
.article-meta .tag {
  background: var(--green-soft); color: var(--green);
  padding: 3px 10px; border-radius: 999px; letter-spacing: .08em;
}
.article .lead {
  font-size: 1.08rem; line-height: 1.85; color: #34372f;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin: 0 0 8px;
}

/* 目次 */
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin: 28px 0;
}
.toc h2 {
  margin: 0 0 10px; font-size: .74rem; font-family: var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 5px 0; font-size: .92rem; }
.toc a:hover { color: var(--green); }

/* 本文 */
.article h2 {
  font-size: 1.5rem; letter-spacing: -.02em; margin: 44px 0 14px;
  padding-top: 8px; scroll-margin-top: 76px;
}
.article h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul.bullets { margin: 0 0 16px; padding-left: 1.3em; list-style: disc; }
.article ul.bullets li { margin: 6px 0; }

/* コース1件のブロック */
.spot {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 20px 22px; margin: 0 0 18px;
}
.spot-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spot-head h3 { margin: 0; font-size: 1.16rem; }
.spot-head .area {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: #fff; background: var(--green); padding: 2px 9px; border-radius: 999px;
}
.spot dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.spot dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.spot dd { margin: 0; font-size: .92rem; }
.spot .visit {
  display: inline-flex; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--green);
}
.spot .visit::after { content: " ↗"; }

/* 一次情報の追記プレースホルダ */
.note {
  border-left: 3px solid var(--green); background: var(--green-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 10px 0 0;
  font-size: .86rem; color: #2d5a40;
}
.note b { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; }

/* 比較表 */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table.compare { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 520px; }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.compare thead th {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line);
}
table.compare tbody tr:hover { background: #faf9f4; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 0 16px; margin: 0 0 10px;
}
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--green); }
.faq details[open] summary::before { content: "− "; }
.faq details p { margin: 0 0 14px; font-size: .92rem; color: #34372f; }

/* 関連リンク */
.related { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 14px; font-size: 1.1rem; }

/* モーション配慮 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 読み込み時のカード演出(トップのみ) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: rise .5s ease forwards; }
  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .16s; }
  .reveal:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
