/* components.css — 記事・固定ページ・今週の開催ウィジェット・導線モジュールのバッジ・イベント・口コミ・ステップ・宿泊
 * style.css(T22「場内新聞・馬券」)のトークンと class を前提にした補助ルール。cta.css / cta.js の骨格は触らない。
 */

/* ===== 導線モジュール(cta.js v2): バッジ・PR 表記・promo 別の色 ===== */
.kg-cta__badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  padding: 4px 8px; margin-right: 4px;
  background: var(--c-shu, #c62828); color: #fff;
}
.kg-cta__badge--pr { background: var(--c-gray, #6b6f78); color: #fff; }
.kg-cta--hero .kg-cta__badge { background: #f2c40f; color: var(--c-ink, #1b1d22); }
.kg-cta--hero .kg-cta__badge--pr { background: rgba(255, 255, 255, 0.9); color: #3f4a52; }
.kg-cta--sticky .kg-cta__badge { background: #f2c40f; color: var(--c-ink, #1b1d22); }
.kg-cta--inline.kg-cta--note { border-left-color: var(--c-ink, #1b1d22); }
.kg-cta--inline.kg-cta--stay { border-left-color: #1f5fd0; }
.kg-cta--inline + .kg-cta--inline { margin-top: -12px; }
.kg-cta--inline .kg-cta__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* ===== 記事一覧カード ===== */
.article-card .meta { gap: 6px 10px; }
.article-card .article-date { margin-left: auto; white-space: nowrap; }
.article-card h3 { font-size: 1.12rem; }

/* ===== 記事ページ ===== */
.section--article { padding-top: 40px; }
.article-head .breadcrumb { margin-bottom: 14px; }
.article-lead { color: var(--c-ink-2, #51555e); font-size: 0.98rem; line-height: 1.8; margin: 0 0 14px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.article-head [data-share] .kg-share { margin: 10px 0 0; }
.article-body > :first-child { margin-top: 0; }
.article-body table { display: block; overflow-x: auto; }
.article-body table tr:first-child th { white-space: nowrap; }
.article-sources h2 {
  font-family: var(--font-body, sans-serif); font-size: 1rem; color: var(--c-ink, #1b1d22); margin: 0 0 10px; padding: 0; border: 0;
}
.article-sources h2::after { display: none; }
.article-sources ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.article-sources li { padding-left: 1.2em; position: relative; line-height: 1.7; }
.article-sources li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; background: var(--c-shu, #c62828); }
.article-sources a { color: var(--c-ink, #1b1d22); text-underline-offset: 3px; }
.article-sources__note { margin: 0 0 6px; }
.article-sources [data-share] .kg-share { margin: 14px 0 0; }

/* ===== 固定ページ ===== */
.page-body { padding-top: 8px; }
.page-body h2:first-child { margin-top: 0; }
.page-body strong { font-weight: 700; }

/* ===== 今週の開催ウィジェット(.kg-calendar の骨格は style.css。ここは追加要素のみ) ===== */
.kg-calendar--weekly { margin: 32px 0 0; }
.page-head .kg-calendar { margin: 20px 0 0; }
.page-head .kg-calendar p { max-width: none; }
.kg-calendar__note { color: var(--c-ink-2, #51555e); font-size: 0.88rem; margin: 0 0 10px; }
.kg-calendar__courses { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.kg-calendar__course { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-rule, #d8d0bf); }
.kg-calendar__course:hover { color: var(--c-shu, #c62828); text-decoration-color: currentColor; }
.kg-calendar__sep { color: var(--c-ink-2, #51555e); }
.kg-calendar__meeting { color: var(--c-ink-2, #51555e); font-size: 0.88rem; }
.kg-calendar__today {
  display: inline-block; font-size: 0.7rem; font-weight: 700; line-height: 1; vertical-align: middle; letter-spacing: 0.08em;
  color: #fff; background: var(--c-shu, #c62828); padding: 4px 7px; margin-left: 6px; font-family: var(--font-body, sans-serif);
}
.kg-calendar__tentative { color: var(--c-ink-2, #51555e); font-size: 0.8rem; }
.kg-calendar__next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 14px 0 0; padding: 10px 12px;
  background: var(--c-warn-soft, #fff1c2); border: 1px solid #d9b94a; font-size: 0.95rem;
}
.kg-calendar__next-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1;
  color: #fff; background: var(--c-ink, #1b1d22); padding: 4px 8px;
}
.kg-calendar__race { font-weight: 700; font-family: var(--font-head, serif); }
.kg-calendar__source { color: var(--c-ink-2, #51555e); font-size: 0.78rem; margin: 12px 0 0; }
.kg-calendar__source a { text-decoration: underline; text-underline-offset: 3px; }
.kg-calendar [data-cta] .kg-cta--inline { margin: 14px 0 0; }
.kg-calendar [data-cta][hidden] { display: none; }

@media (max-width: 520px) {
  .kg-calendar { padding: 16px 16px; }
  .kg-calendar__date { min-width: 100%; }
  .article-card .article-date { margin-left: 0; }
}

/* ===== イベント(T42: カード。markup は不変) ===== */
.grid--events { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event-card { border-top: 4px solid var(--c-rule, #e2dcd1); }
.event-card .card-body { padding: 16px 18px; }
.event-card .meta { order: 1; }
.event-when {
  order: 2; margin: 12px 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  color: var(--c-shu, #ad3b24); font-variant-numeric: tabular-nums;
}
.event-card h3 { order: 3; font-size: 1.08rem; margin: 4px 0 6px; transition: color 0.15s; }
.event-card:hover h3 { color: var(--c-shu, #ad3b24); }
.event-card .desc { order: 4; margin: 0 0 10px; }
.event-card .card-foot { order: 5; justify-content: flex-start; font-size: 0.78rem; }
.event-card .card-foot .place { white-space: normal; }
.event-card[data-status="ongoing"], .event-card:has(.event-status--ongoing) { border-top-color: var(--c-shu, #ad3b24); }
.event-status {
  display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  padding: 5px 9px; background: var(--c-paper-2, #f2eee6); color: var(--c-ink, #1f1f1f); border: 1px solid var(--c-rule, #e2dcd1);
}
.event-status--ongoing { background: var(--c-shu, #ad3b24); color: #fff; border-color: var(--c-shu, #ad3b24); }
.event-status--upcoming { background: var(--c-card, #fff); color: var(--c-ink, #1f1f1f); border-color: var(--c-ink, #1f1f1f); }
.event-status--ended { background: var(--c-gray, #6b6f78); color: #fff; border-color: var(--c-gray, #6b6f78); }
[data-status="ended"] .event-when { color: var(--c-ink-2, #5a5650); }
.event-card[data-status="ended"] .card-body { opacity: 0.75; }
/* モバイルのトップ: 横スクロールの列(ページ幅は広げない) */
@media (max-width: 520px) {
  #top-events { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; }
  #top-events .event-card { flex: 0 0 84%; scroll-snap-align: start; }
}
.chips--events { margin-bottom: 12px; }
.chips--events + .chips--events { margin-bottom: 20px; }
.chips--events .chip { font-size: 0.85rem; padding: 6px 14px; min-height: 40px; }
.event-head { margin-bottom: 4px; }
.event-head .badge { text-decoration: none; }
.event-detail .section-title { font-size: 1.25rem; margin: 28px 0 14px; }
.event-detail .section-title:first-child { margin-top: 0; }
.event-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.event-dates li {
  padding: 8px 14px; background: var(--c-card, #fffdf9); border: 1px solid var(--c-ink, #1b1d22);
  font-family: var(--font-head, serif); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.95rem;
}
.event-dates li time { font-weight: inherit; }
.event-description, .event-conditions { max-width: 46em; line-height: 1.9; }
.event-official { margin: 22px 0 0; }
.event-official a {
  display: inline-flex; align-items: center; min-height: var(--tap, 44px); padding: 0 18px;
  border: 1px solid var(--c-ink, #1b1d22); background: var(--c-card, #fffdf9); color: var(--c-ink, #1b1d22); font-weight: 700; text-decoration: none;
  box-shadow: 3px 3px 0 var(--c-rule, #d8d0bf); transition: background-color 0.15s, color 0.15s;
}
.event-official a:hover { background: var(--c-ink, #1b1d22); color: var(--c-paper, #f7f3ea); }
.event-detail [data-cta] .kg-cta--inline { margin: 24px 0 0; }
.event-detail .shop-verify { margin-top: 24px; }

/* ===== 口コミ(店舗ページ。承認済みのみ) ===== */
.reviews { margin: 36px 0 0; }
.reviews__lead { color: var(--c-ink-2, #51555e); font-size: 0.88rem; margin: -14px 0 18px; }
.review-list { display: grid; gap: 14px; }
.review {
  padding: 16px 18px; border: 1px solid var(--c-ink, #1b1d22); border-left: 8px solid var(--c-ink, #1b1d22);
  background: var(--c-card, #fffdf9); box-shadow: 3px 3px 0 var(--c-rule, #d8d0bf);
}
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; }
.review__dish { font-family: var(--font-head, serif); font-weight: 800; font-size: 1.1rem; }
.review__rating { color: var(--c-warn-text, #6b4a00); letter-spacing: 0.1em; font-size: 0.95rem; white-space: nowrap; }
.review__body { margin: 0 0 8px; line-height: 1.85; }
.review__meta { margin: 0; font-size: 0.8rem; color: var(--c-ink-2, #51555e); }
.review__reply {
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--c-paper-2, #efe8d8); border-left: 3px solid var(--c-shu, #c62828); font-size: 0.9rem;
}
.review__reply-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  padding: 4px 8px; background: var(--c-shu, #c62828); color: #fff; margin: 0 0 6px;
}
.review__reply-body { margin: 0; }
.reviews__empty { padding: 20px 16px; }
.review-form { margin: 16px 0 0; }
.review-form__note { margin: 0; color: var(--c-ink-2, #51555e); font-size: 0.9rem; }
.btn-review {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap, 44px); padding: 0 22px;
  background: var(--c-ink, #1b1d22); color: var(--c-paper, #f7f3ea); font-weight: 700; text-decoration: none;
  border: 1px solid var(--c-ink, #1b1d22); box-shadow: 3px 3px 0 var(--c-rule, #d8d0bf); transition: background-color 0.15s;
}
.btn-review:hover { background: var(--c-shu, #c62828); border-color: var(--c-shu, #c62828); }

/* ===== はじめての方へ: 3 ステップ(丸数字) ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 20px; border: 1px solid var(--c-ink, #1b1d22);
  background: var(--c-card, #fffdf9); box-shadow: 3px 3px 0 var(--c-rule, #d8d0bf);
}
.step__num {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-head, serif); font-weight: 800; font-size: 1.35rem; color: var(--c-paper, #f7f3ea);
  background: var(--c-ink, #1b1d22); border: 2px solid var(--c-ink, #1b1d22); box-shadow: inset 0 0 0 2px var(--c-paper, #f7f3ea);
}
.step__body { min-width: 0; }
.step__title { font-size: 1.2rem; margin: 6px 0 6px; }
.step__body p { margin: 0; color: var(--c-ink, #1b1d22); line-height: 1.85; }
.step__body a { color: var(--c-ink, #1b1d22); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-shu, #c62828); }
@media (min-width: 821px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
}

/* ===== 宿泊: 広告表記・競馬場ごとの一覧・PR バッジ ===== */
.pr-notice {
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--c-card, #fffdf9); border: 1px solid var(--c-rule, #d8d0bf); border-left: 4px solid var(--c-gray, #6b6f78);
  font-size: 0.85rem; color: var(--c-ink-2, #51555e); max-width: 46em;
}
.stay-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.stay-jump .chip--link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap, 44px); padding: 8px 16px; border: 1px solid var(--c-ink, #1b1d22); background: var(--c-card, #fffdf9); font-size: 0.88rem; font-weight: 500; }
.stay-jump .chip--link:hover { background: var(--c-paper-2, #efe8d8); }
.stay-course { margin: 0 0 40px; }
.stay-course:last-of-type { margin-bottom: 0; }
.stay-course__lead { color: var(--c-ink-2, #51555e); font-size: 0.92rem; margin: -10px 0 18px; }
.stay-course__lead a { text-decoration: underline; text-underline-offset: 3px; }
.grid--lodging { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lodging-card { border-top: 6px solid #1f5fd0; }
.lodging-card .desc { flex: 0 0 auto; }
.lodging-notes { color: var(--c-ink-2, #51555e); font-size: 0.85rem; margin: 0 0 12px; }
.lodging-links { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.lodging-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--c-ink, #1b1d22); color: var(--c-ink, #1b1d22); background: var(--c-card, #fffdf9); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; transition: background-color 0.15s, color 0.15s;
}
.lodging-links a:hover { background: var(--c-ink, #1b1d22); color: var(--c-paper, #f7f3ea); }
.lodging-links a.lodging-links__pr { border-color: var(--c-gray, #6b6f78); color: #3f4a52; }
.lodging-links a.lodging-links__pr:hover { background: var(--c-gray, #6b6f78); color: #fff; }
.badge--pr { background: var(--c-gray, #6b6f78); color: #fff; }
.lodging-checked { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--c-ink, #1b1d22); font-size: 0.78rem; color: var(--c-ink-2, #51555e); }
.lodging-checked a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== v3(T26): 中央競馬 / 地方競馬(PHP 版だけが使う。静的版には該当要素が無い) ===== */
/* トップ「競馬場から探す」の中央 / 地方の見出し */
.course-group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-size: 1.25rem; font-weight: 800; margin: 8px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--c-ink, #1b1d22);
}
.course-group-title__note { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--c-ink-2, #51555e); }
.course-group { margin-top: 40px; }
.course-group-lead { color: var(--c-ink-2, #51555e); font-size: 0.9rem; max-width: 46em; margin: -6px 0 20px; }
/* 地方競馬の競馬場カード(枠番・イラストは JRA 専用なので出さない。券面の上辺だけ色帯) */
.course-card--nar { border-top: 6px solid var(--c-ink-2, #51555e); }
.course-card--nar .course-body { padding-top: 14px; }
.course-card--nar .card-foot { flex-wrap: wrap; gap: 4px 8px; }
.course-card--nar .card-foot span { white-space: nowrap; }
.course-card--nar .card-foot span:first-child { color: var(--c-shu, #c62828); font-weight: 700; }
/* 地方競馬の競馬場ページ */
.course-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.85rem; }
.course-kind__where { color: var(--c-ink-2, #51555e); font-weight: 700; letter-spacing: 0.06em; }
.course-access { max-width: 46em; margin: 0; line-height: 1.85; }
/* 検索: 「すべて / 中央競馬 / 地方競馬」と 地域・都道府県 */
.chips--scope { margin-bottom: 12px; }
.chips--scope .chip { min-width: 6.5em; justify-content: center; }
.search-form--scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-form--scope input { grid-column: 1 / -1; }
.scope-filter { margin-bottom: 16px; }
.scope-filter__selects { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-filter__selects select {
  font: inherit; font-size: 0.9rem; min-height: var(--tap, 44px); padding: 8px 36px 8px 14px; min-width: 12em; max-width: 100%;
  border: 1px solid var(--c-ink, #1b1d22); border-radius: 0; background-color: var(--c-card, #fffdf9); color: var(--c-ink, #1b1d22);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-ink, #1b1d22) 50%), linear-gradient(135deg, var(--c-ink, #1b1d22) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.scope-filter__selects select:focus { outline: none; border-color: var(--c-shu, #c62828); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.22); }
.empty--preparing p { margin: 0 0 14px; }
.chips--preparing { justify-content: center; margin: 0; }
@media (max-width: 820px) {
  .search-form--scope { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .search-form--scope { grid-template-columns: 1fr; }
  .scope-filter__selects select { flex: 1 1 100%; }
  .chips--scope .chip { flex: 1 1 0; min-width: 0; padding: 8px 6px; }
}

/* ===== T42: 写真主役のデザインに合わせた上書き(角丸・やわらかい影・朱は差し色だけ) ===== */
.event-dates li { border-radius: 999px; border-color: var(--c-rule, #e2dcd1); font-family: var(--font-body, sans-serif); }
.event-official a { border-radius: 999px; box-shadow: none; }
.review { border: 0; border-left: 4px solid var(--c-shu, #ad3b24); border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow); }
.review__dish { font-family: var(--font-body, sans-serif); font-weight: 700; }
.review__reply { border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0; }
.review__reply-label { border-radius: 999px; }
.btn-review { border-radius: 999px; box-shadow: none; background: var(--c-shu, #ad3b24); border-color: var(--c-shu, #ad3b24); color: #fff; }
.btn-review:hover { background: var(--c-shu-deep, #8a2d1a); border-color: var(--c-shu-deep, #8a2d1a); }
.step { border: 0; border-radius: var(--radius, 14px); box-shadow: var(--shadow); }
.step__num { font-family: var(--font-body, sans-serif); font-weight: 700; background: var(--c-shu, #ad3b24); border-color: var(--c-shu, #ad3b24); box-shadow: none; color: #fff; }
.pr-notice { border-radius: var(--radius-sm, 8px); }
.stay-jump .chip--link { border-radius: 999px; border-color: var(--c-rule, #e2dcd1); }
.lodging-card { border-top: 0; overflow: hidden; }
.lodging-links a { border-radius: 999px; }
/* 2026-10-27 宿泊施設の写真(楽天トラベルの施設写真。クレジットは左下に必須) */
.lodging-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--c-paper-2, #f2eee6); }
.lodging-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* 予約ボタン(主)と公式サイト(従)。2026-10-27 作り直し */
.lodging-links { flex-direction: column; align-items: stretch; gap: 10px; }
.lodging-links a.lodging-book {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 12px;
  border: 0; border-radius: 10px; background: var(--c-shu, #ad3b24); color: #fff;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0; white-space: nowrap; text-decoration: none; min-width: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08); transition: background-color .15s ease;
}
.lodging-links a.lodging-book::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.lodging-links a.lodging-book:hover { background: var(--c-shu-deep, #8a2d1a); color: #fff; }
.lodging-links a.lodging-book:focus-visible { outline: 3px solid var(--c-shu-soft, #f3d6cc); outline-offset: 2px; }
.lodging-links a.lodging-official {
  align-self: center; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none;
  color: var(--c-ink-2, #5a5650); font-size: 0.85rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.lodging-links a.lodging-official:hover { background: none; color: var(--c-ink, #1f1f1f); }
.pr-label { margin: 0 0 12px; font-size: 0.8rem; color: var(--c-ink-2, #5a5650); }
.pr-label strong, .pr-notice strong { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--c-ink-2, #5a5650); color: #fff; font-size: 0.75rem; }
@media (prefers-reduced-motion: reduce) { .lodging-links a.lodging-book { transition: none; } }
.lodging-photo__credit { position: absolute; left: 0; bottom: 0; padding: 3px 8px; font-size: 0.7rem; line-height: 1.4; color: #fff; background: rgba(20, 18, 16, 0.62); border-top-right-radius: 6px; }
.lodging-checked { border-top: 1px solid var(--c-rule-2, #ece7de); }
.course-group-title { border-bottom-color: var(--c-rule, #e2dcd1); font-family: var(--font-head, serif); }
.course-card--nar { border-top: 0; }
.course-card--nar .card-foot span:first-child { color: var(--c-shu, #ad3b24); }
.scope-filter__selects select { border-radius: var(--radius-sm, 8px); border-color: var(--c-rule, #e2dcd1); }
.kg-calendar__next { border-radius: var(--radius-sm, 8px); }
.kg-calendar__next-label, .kg-calendar__today, .kg-cta__badge { border-radius: 999px; }
.kg-calendar__race { font-family: var(--font-body, sans-serif); }
/* 写真について(/credits/) */
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: var(--c-card, #fff); }
.credits-table th, .credits-table td { padding: 8px 10px; border-bottom: 1px solid var(--c-rule, #e2dcd1); text-align: left; vertical-align: top; }
.credits-table th { background: var(--c-paper-2, #f2eee6); white-space: nowrap; }
.credits-table img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; }
.credits-table a { text-decoration: underline; text-underline-offset: 3px; }
.credits-wrap { overflow-x: auto; }
@media (max-width: 520px) {
  .credits-table thead { display: none; }
  .credits-table, .credits-table tbody, .credits-table tr, .credits-table td { display: block; width: 100%; }
  .credits-table tr { padding: 10px 0; border-bottom: 1px solid var(--c-rule, #e2dcd1); }
  .credits-table td { border: 0; padding: 2px 0; }
}
/* T44: 参考価格(二次情報)の「参考」チップと出典、口コミの支払額(SPEC §19) */
.ref-chip {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; vertical-align: 0.1em;
  font-size: 0.68rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.04em;
  color: var(--c-warn-text, #6b4a00); background: var(--c-warn-soft, #fbf0d6); border: 1px solid #e3c477;
}
.menu-refs__lead .ref-chip { margin: 0 2px 0 0; }
.menu-refs { margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm, 8px); background: var(--c-paper-2, #f2eee6); font-size: 0.82rem; line-height: 1.75; color: var(--c-ink-2, #5a5650); }
.menu-refs__lead { margin: 0 0 4px; }
.menu-refs__list { margin: 0; padding-left: 1.2em; overflow-wrap: anywhere; }
.menu-refs__list a { color: var(--c-ink, #1f1f1f); text-decoration: underline; text-underline-offset: 3px; }
.menu-refs__list time { font-variant-numeric: tabular-nums; }
.paid-note { margin: -6px 0 12px; font-size: 0.82rem; font-weight: 700; color: var(--c-ink, #1f1f1f); font-variant-numeric: tabular-nums; }
.paid-note__label { font-weight: 500; color: var(--c-ink-2, #5a5650); }
.info-list .info-paid span { font-variant-numeric: tabular-nums; }
.review__paid { margin: 4px 0 6px; font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.review__paid-note { margin-left: 4px; font-size: 0.76rem; font-weight: 500; color: var(--c-ink-2, #5a5650); }

/* ===== T47: トップの競馬場タイル(中央/地方タブ)・簡潔な検索フォーム・店舗検索ページ /search/ ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* タブ(role=tablist)。選択中は墨の地に白文字(.chip.is-active と同じ扱い) */
.course-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.course-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 20px; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 700; border-radius: 999px;
  border: 1px solid var(--c-rule); background: var(--c-card); color: var(--c-ink);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.course-tab:hover { border-color: var(--c-ink); }
.course-tab.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.course-tab:focus-visible { outline: 3px solid var(--c-shu); outline-offset: 2px; }
.course-tab__count { font-size: 0.75rem; font-weight: 500; opacity: 0.85; font-variant-numeric: tabular-nums; }
.course-panel:focus-visible { outline: 3px solid var(--c-shu); outline-offset: 6px; border-radius: var(--radius-sm); }
.course-panel__note { margin: 14px 0 0; font-size: 0.85rem; color: var(--c-ink-2); }
/* タイル: PC 6 列・タブレット 4〜5 列・スマホ 2 列。写真・説明・開催時期は載せない(競馬場ページで読む) */
.course-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.course-tile {
  display: flex; align-items: center; gap: 10px; min-height: 84px; padding: 12px 12px;
  background: var(--c-card); border: 1px solid var(--c-rule-2); border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); color: var(--c-ink); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.course-tile:hover { border-color: var(--c-shu); box-shadow: var(--shadow); }
.course-tile:focus-visible { outline: 3px solid var(--c-shu); outline-offset: 2px; }
.course-tile__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--c-shu-soft); color: var(--c-shu);
}
.course-tile__icon svg { width: 24px; height: 24px; display: block; }
.course-tile__nail { fill: var(--c-shu-soft); }
.course-tile--nar .course-tile__icon { background: var(--c-paper-2); color: var(--c-ink-2); }
.course-tile--nar .course-tile__nail { fill: var(--c-paper-2); }
.course-tile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.course-tile__name { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.35; overflow-wrap: anywhere; }
.course-tile__meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 0.74rem; color: var(--c-ink-2); line-height: 1.5; }
.course-tile__count { font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.course-tile__count--none { font-weight: 500; color: var(--c-ink-2); }
@media (max-width: 1100px) { .course-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .course-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .course-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .course-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .course-tile { min-height: 72px; padding: 10px; gap: 8px; }
  .course-tile__icon { width: 34px; height: 34px; }
  .course-tile__icon svg { width: 20px; height: 20px; }
  .course-tile__name { font-size: 0.92rem; }
  .course-tab { flex: 1 1 0; justify-content: center; padding: 8px 10px; }
}

/* T60: 記事一覧・店舗検索・イベント一覧の「すべて / 中央競馬 / 地方競馬」タブ(見た目はトップの .course-tab をそのまま使う。タブはリンク) */
a.course-tab { text-decoration: none; }
.kind-panel:focus-visible { outline: 3px solid var(--c-shu); outline-offset: 6px; border-radius: var(--radius-sm); }
[data-kind-out] { display: none !important; }
.kind-empty { margin-top: 8px; }
@media (max-width: 520px) {
  .kind-tabs { gap: 6px; }
  .kind-tabs .course-tab { gap: 4px; padding: 8px 6px; font-size: 0.9rem; }
}

/* トップの簡潔な検索フォーム(キーワード・競馬場・ジャンル → /search/) */
.search-form--top { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; }
.search-form__submit { min-height: var(--tap); white-space: nowrap; cursor: pointer; font: inherit; font-weight: 700; }
.more-link--search { margin-top: 4px; }
@media (max-width: 820px) {
  .search-form--top { grid-template-columns: 1fr 1fr; }
  .search-form--top input, .search-form--top .search-form__submit { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .search-form--top { grid-template-columns: 1fr; } }

/* 店舗検索ページ /search/ */
.page-head--search { padding: 32px 0 26px; }
.page-head--search p:not(.page-head__en) { color: var(--c-ink-2); max-width: 46em; margin: 0; }
.section--search { padding-top: 32px; }
.search-form--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-form--page input[type=search] { grid-column: 1 / -1; }
.search-form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.search-form__clear { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 0.9rem; color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.search-form__clear:hover { color: var(--c-shu); }
.search-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.search-summary .result-count { margin: 0; }
.search-conds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.search-cond {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  background: var(--c-shu-soft); color: var(--c-ink); font-size: 0.82rem; font-weight: 700; text-decoration: none;
}
.search-cond:hover { background: var(--c-paper-2); }
.search-cond__x { font-weight: 500; color: var(--c-ink-2); }
.empty--search .empty__tips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.empty--search .empty__tips a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
#search-empty { margin-top: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 0; }
.pager__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--c-rule); background: var(--c-card); color: var(--c-ink);
  font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none;
}
a.pager__link:hover { border-color: var(--c-ink); }
.pager__link.is-current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pager__link.is-disabled { color: var(--c-ink-2); opacity: 0.5; }
.pager__gap { color: var(--c-ink-2); padding: 0 2px; }
@media (max-width: 820px) { .search-form--page { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .search-form--page { grid-template-columns: 1fr; }
  .search-form__actions .search-form__submit { width: 100%; }
  .pager__link { min-width: 40px; padding: 0 10px; }
  .pager__prev, .pager__next { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-tile, .course-tab { transition: none; }
}
/* ===== T61: ヘッダー直下の「中央競馬 / 地方競馬」切り替え(/ と /nar/。普通のリンク・今のページに aria-current="page")。見た目は .course-tab の系統 ===== */
.top-kind { background: var(--c-paper); border-bottom: 1px solid var(--c-rule); padding: 10px 0; }
.top-kind__inner { display: flex; gap: 10px; }
.top-kind .top-kind__tab { flex: 0 1 260px; justify-content: center; min-height: 48px; padding: 8px 20px; font-size: 1.02rem; }
.top-kind .top-kind__tab[aria-current="page"] { cursor: default; }
@media (max-width: 520px) {
  .top-kind { padding: 8px 0; }
  .top-kind__inner { gap: 8px; }
  .top-kind .top-kind__tab { flex: 1 1 0; min-width: 0; padding: 8px 10px; gap: 6px; font-size: 0.98rem; }
}
