@charset "UTF-8";
/* ==========================================================================
   発走・発売時間ページ 専用スタイル（yoshioka2026.css の後に読み込む）
   ========================================================================== */

/* ---- ページ見出し ---- */
.page-head { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2rem); }
.page-head h1 { font-size: var(--step-2); font-weight: 900; letter-spacing: 0.02em; margin: 0.6rem 0 0; }
.page-head h1 span { display: inline-block; }
.page-head .lead { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.9; margin: 1rem 0 0; max-width: 62ch; }
.page-head .lead b { color: var(--ink); font-weight: 800; }

.crumbs { font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 1.4rem; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 0.5em; }

/* ---- 日程タブ ---- */
section.block#schedule { padding-top: 0; }
.daytabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.4rem; }
.daytab {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.55em 1.3em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.daytab small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-faint); }
.daytab:hover { border-color: var(--ink); color: var(--ink); }
.daytab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.daytab[aria-selected="true"] small { color: var(--bg); opacity: 0.7; }

/* JS が無い場合はタブを隠して全日程を並べる */
html:not(.js) .daytabs { display: none; }
html.js .day[hidden] { display: none; }

/* ---- 日程カード ---- */
.day { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
html.js .day { margin-bottom: 0; }

.day-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
}
.day-head h2 { font-size: var(--step-1); font-weight: 900; letter-spacing: 0.02em; }
.day-head h2 small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-right: 0.8em; vertical-align: 0.2em; }
.day-head .gate-note { font-size: 0.8rem; color: var(--ink-faint); margin: 0; }

/* ---- 時間表 ---- */
.tstable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* 見出しと重複するのでスクリーンリーダー向けにのみ残す */
.tstable caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tstable th, .tstable td { text-align: center; padding: 0.72rem 0.5rem; border-bottom: 1px solid var(--line); }
.tstable thead th {
  font-family: var(--f-disp);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tstable thead tr:first-child th { padding-block: 0.6rem; }
.tstable thead th.grp { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.tstable thead th.sub { font-size: 0.72rem; letter-spacing: 0.04em; padding-block: 0.45rem; }

.tstable tbody tr { background: var(--surface); transition: background 0.18s; }
.tstable tbody tr:hover { background: var(--surface-2); }
.tstable tbody th {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 0.95rem;
  width: 4.5em;
}
.tstable td { font-size: 1rem; font-weight: 700; }
.tstable td.soft { font-weight: 600; color: var(--ink-soft); }
.tstable td.go { font-size: 1.12rem; font-weight: 800; }

/* 決勝レース */
.tstable tbody tr.final { background: var(--surface-2); }
.tstable tbody tr.final th { color: var(--accent); }
.tstable tbody tr.final td.go { color: var(--accent); }
.tstable tbody tr.final th::after {
  content: attr(data-badge);
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  background: var(--accent-bright);
  border-radius: 100px;
  padding: 0.15em 0;
  margin-top: 0.25em;
}

/* ---- スマホ：カード化 ---- */
@media (max-width: 720px) {
  .tstable thead { display: none; }
  .tstable, .tstable tbody, .tstable tr, .tstable th, .tstable td { display: block; }
  .tstable tbody tr {
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 0.7rem;
    padding: 0.8rem 1rem;
    display: grid;
    grid-template-columns: 4.5em 1fr;
    gap: 0.15rem 0.8rem;
    align-items: center;
  }
  .tstable tbody th {
    grid-row: 1 / span 4;
    width: auto;
    font-size: 1.3rem;
    border: 0;
    border-right: 1px solid var(--line);
    padding: 0 0.6rem 0 0;
    align-self: center;
  }
  .tstable tbody td {
    border: 0;
    padding: 0.1rem 0;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.98rem;
  }
  .tstable tbody td::before {
    content: attr(data-label);
    font-family: var(--f-disp);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
  }
  .tstable tbody tr.final th::after { font-size: 0.54rem; padding-inline: 0.3em; }
}

/* ---- 注記 ---- */
.tsnote {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-bright);
  border-radius: 3px;
  padding: 1rem 1.3rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.tsnote a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tsnote a:hover { color: var(--ink); }

.back-row { margin: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: 0.8rem; }
