/* race.css — 競技・レース（/race/ のハブ・カレンダー・大会シリーズ・開催回・種目）。
   **golfscale のツアー解説（tour_pillar.html / tour_category.html / tour_article.html の <style>）と同じ値**に、色だけテーマの変数を
   写像したもの（2026-10-03 ユーザー指示: 競技のページも golfscale に合わせる）。クラス名も golfscale と同じ tour-* にしてある。
   構成: 白い帯のヒーロー（記事はロゴの板＋本文）→ ヒーロー直下の写真（21:9・帰属つき）→ 節（左バーの見出し）→ 本文・表・カード・チップ。
   色は gs-shell.css の変数だけ（hex を直書きしない）。golfscale のクリーム色（rgb(253,250,243)）はこちらの --card に写像。 */

/* ── ヒーロー ── */
.tour-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 2.25rem 0 2rem; }
.tour-hero--pillar { padding: 2.5rem 0 2.25rem; }
.tour-hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.tour-hero-logo { flex: 0 0 auto; width: 120px; height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: .75rem; box-shadow: 0 12px 22px -18px rgba(16,36,43,.4); }
.tour-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tour-hero-body { flex: 1 1 auto; min-width: 0; }
.tour-breadcrumb { font-size: .82rem; color: var(--mute); margin: 0 0 .55rem; }
.tour-breadcrumb a { color: var(--g-dark); text-decoration: none; }
.tour-breadcrumb a:hover { text-decoration: underline; }
.tour-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 .6rem; color: var(--ink); line-height: 1.3; }
.tour-hero--pillar h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.tour-hero h1 .sub { display: block; font-size: .95rem; font-weight: 600; color: var(--mute); margin-top: .3rem; }
@media (max-width: 520px) {
  .tour-hero-inner { flex-direction: column; gap: .85rem; }
  .tour-hero-logo { width: 80px; height: 80px; padding: .5rem; }
}

/* ── ヒーロー直下のメインビジュアル（写真は 21:9・帰属は figcaption に必ず出す） ── */
.tour-hero-photo { max-width: 1080px; margin: 0 auto 1.25rem; padding: 0 1.25rem; }
.tour-hero-photo .tour-figure { margin-top: 1.25rem; }
.tour-hero-photo .tour-figure--photo img { aspect-ratio: 21 / 9; }
.tour-figure { margin: 1rem 0 1.25rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 22px -22px rgba(16,36,43,.4); }
.tour-figure img { display: block; width: 100%; height: auto; }
.tour-figure--photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.tour-figure figcaption { padding: .55rem .9rem; font-size: .78rem; color: var(--mute); border-top: 1px solid var(--line); background: var(--soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tour-figure figcaption .cap { color: var(--ink); flex: 1 1 auto; min-width: 0; }
.tour-figure figcaption .credit { color: var(--mute); white-space: nowrap; }
.tour-figure figcaption .credit a { color: var(--mute); text-decoration: underline; }

/* ── 節 ── */
.tour-section { max-width: 1080px; margin: 1.75rem auto; padding: 0 1.25rem; }
.tour-sec-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; padding-left: .75rem; border-left: 3px solid var(--g); color: var(--g-dark); }
.tour-sec-title { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0; }
.tour-sec-count { font-size: .8rem; color: var(--mute); font-weight: 600; }
.tour-sec-more { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--g); text-decoration: none; }
.tour-sec-more:hover { text-decoration: underline; }
.tour-group-head { margin: 1.5rem 0 .85rem; padding-left: .75rem; border-left: 3px solid var(--g); color: var(--g-dark); font-size: 1.05rem; font-weight: 800; }
.tour-group-head:first-child { margin-top: 0; }

/* ── 本文・表（表は緑の見出し行・角丸・薄い影。db-table / db-matrix も節の中では同じ見た目に） ── */
.tour-prose { font-size: .95rem; line-height: 1.9; color: var(--ink); max-width: 48em; }
.tour-prose p { margin: 0 0 .85rem; }
.tour-prose > :last-child { margin-bottom: 0; }
.tour-prose a { color: var(--g-dark); text-decoration: underline; }
.tour-section .db-table, .tour-section .db-matrix { border-collapse: collapse; margin: 1rem 0; font-size: .9rem; width: 100%; background: var(--card);
  box-shadow: 0 12px 22px -22px rgba(16,36,43,.4); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tour-section .db-table th, .tour-section .db-table td, .tour-section .db-matrix th, .tour-section .db-matrix td { border-bottom: 1px solid var(--line);
  padding: .55rem .8rem; text-align: left; vertical-align: top; background: var(--card); }
.tour-section .db-table > tbody > tr > th, .tour-section .db-matrix thead th, .tour-section .db-matrix tbody th { background: var(--g-dark); color: #fff; font-weight: 700; white-space: nowrap; border-bottom-color: var(--g-dark); }
.tour-section .db-table tr:last-child th, .tour-section .db-table tr:last-child td, .tour-section .db-matrix tr:last-child th, .tour-section .db-matrix tr:last-child td { border-bottom: none; }
.tour-section .db-table td .sub, .tour-section .db-matrix td .sub { display: block; font-size: .8rem; color: var(--mute); }
.tour-section .db-matrix td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour-section .db-matrix a, .tour-section .db-table a { color: var(--g-dark); text-decoration: underline; }
.tour-section .db-table .db-matrix { margin: .3rem 0 0; box-shadow: none; }
.tour-section .db-table .db-matrix th { white-space: normal; }
@media (max-width: 700px) {
  .tour-section .db-table, .tour-section .db-matrix { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tour-section .db-matrix th, .tour-section .db-matrix td { min-width: 7em; }
}
.tour-empty { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: .75rem 1rem; color: var(--mute); font-size: .9rem; }
.tour-note { font-size: .86rem; color: var(--mute); line-height: 1.7; margin: .5rem 0 0; }

/* ── チップ（部門・公式リンク・所属シリーズ） ── */
.tour-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.tour-link-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--soft); color: var(--g-dark); border: 1px solid var(--line); text-decoration: none; }
a.tour-link-chip:hover { background: var(--g-dark); color: #fff; border-color: var(--g-dark); }
.tour-link-chip--main { background: var(--g-dark); color: #fff; border-color: var(--g-dark); }
a.tour-link-chip--main:hover { background: var(--g); border-color: var(--g); }

/* ── 一覧のカード（16:9 の写真 ＋ 題名 ＋ 説明。golfscale の tour-card） ── */
.tour-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.tour-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  box-shadow: 0 12px 22px -22px rgba(16,36,43,.4); overflow: hidden; }
.tour-card:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.tour-card-hero { width: 100%; aspect-ratio: 16 / 9; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tour-card-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-card-hero-fallback { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; }
.tour-card-hero-fallback-text { font-size: 1.05rem; font-weight: 800; color: var(--mute); letter-spacing: .04em; }
.tour-card-body { padding: .85rem 1.05rem 1rem; flex: 1 1 auto; min-width: 0; }
.tour-card-title { font-weight: 800; font-size: 1.02rem; color: var(--g-dark); margin-bottom: .3rem; line-height: 1.35; }
.tour-card-meta { font-size: .78rem; color: var(--mute); margin-top: .4rem; }

/* ── 小さいカード（種目・他の開催回。golfscale の tour-cat-card / tour-related） ── */
.tour-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .95rem; }
.tour-cat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 12px 22px -22px rgba(16,36,43,.4);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.tour-cat-card:hover { border-color: var(--g); color: var(--ink); text-decoration: none; }
.tour-cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .45rem; }
.tour-cat-label { font-weight: 800; font-size: 1.05rem; color: var(--g-dark); line-height: 1.35; }
.tour-cat-count { font-size: .78rem; color: var(--mute); white-space: nowrap; }
.tour-cat-items { font-size: .8rem; color: var(--ink); line-height: 1.55; margin-top: auto; }

/* ── 出典・更新日・注記 ── */
.tour-sources { font-size: .82rem; color: var(--mute); margin: 0; padding-left: 1.2em; }
.tour-sources li { margin-bottom: .3rem; }
.tour-sources a { color: var(--g-dark); }
.tour-updated { font-size: .75rem; color: var(--mute); margin-top: 1.5rem; }
.tour-section .db-unofficial { margin: 0; }
