/* =========================================================================
   日光660耐久レース 公式サイト — v2 "PADDOCK BRUTAL"
   ブルータリズム × インダストリアル を白地・青・黄・黒で。
   規則は ../../DESIGN.md を参照（角丸なし／グラデなし／ぼかし影なし／トランジションなし）
   ========================================================================= */

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --blue: #1240f0;
  --yellow: #ffe100;
  --gray: #55595f;
  --tbd: #e02a1f;

  --bw: 4px;                                   /* 枠線の太さ */
  --sh: 8px;                                   /* ずらし影の量 */
  --shadow: var(--sh) var(--sh) 0 var(--black);

  --f-en: "Archivo Black", "Arial Black", sans-serif;
  --f-jp-d: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "Space Mono", "Courier New", monospace;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 76px;

  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px);
  --grid-line: rgb(18 64 240 / .075);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--black);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  /* 白地に青い方眼（工場の図面） */
  background-color: var(--white);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { background: var(--yellow); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--yellow); border: var(--bw) solid var(--black); padding: 8px 14px; font-weight: 900; }
.skip:focus { top: 8px; }

.mono { font-family: var(--f-mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.en { font-family: var(--f-en); letter-spacing: -.02em; }
.note { font-size: .84rem; color: var(--gray); line-height: 1.75; font-feature-settings: "halt"; }
.on-dark .note { color: #d9dde3; }
.hl { background: var(--yellow); padding: 0 .2em; font-weight: 700; }
.stack > * + * { margin-top: 28px; }
.stack-lg > * + * { margin-top: clamp(40px, 5vw, 64px); }
.lead { font-size: 1.08rem; line-height: 2; max-width: 44em; font-weight: 500; }

/* ---------- 共通パーツ ---------- */
.hazard { height: 24px; background: var(--hazard); border-block: var(--bw) solid var(--black); }
.hazard--thin { height: 12px; border: 0; }

.box {
  position: relative; background: var(--white);
  border: var(--bw) solid var(--black); box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 36px);
}
.box--blue { background: var(--blue); color: var(--white); }
.box--yellow { background: var(--yellow); }
.box--black { background: var(--black); color: var(--white); box-shadow: var(--sh) var(--sh) 0 var(--yellow); }
.box--flat { box-shadow: none; }
.tilt-l { transform: rotate(-1deg); }
.tilt-r { transform: rotate(1deg); }
/* ASCII 風の角マーク */
.plus::before, .plus::after { content: "+"; position: absolute; font-family: var(--f-mono); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--blue); }
.plus::before { left: -22px; top: -22px; }
.plus::after { right: -26px; bottom: -28px; }

.chip { display: inline-block; background: var(--black); color: var(--white); font-weight: 900; font-size: .82rem; padding: 2px 12px; line-height: 1.7; }
.chip--yellow { background: var(--yellow); color: var(--black); }
.chip--blue { background: var(--blue); }
.chip--line { background: var(--white); color: var(--black); border: 2px solid var(--black); }
.tag-mono { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .85em 1.4em; font-weight: 900; font-size: .98rem; line-height: 1.4; text-decoration: none;
  color: var(--black); background: var(--yellow);
  border: var(--bw) solid var(--black); box-shadow: 6px 6px 0 var(--black);
}
.btn::after { content: "→"; font-family: var(--f-mono); font-weight: 700; }
.btn:hover { background: var(--yellow); transform: translate(6px, 6px); box-shadow: none; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue); }
.btn--white { background: var(--white); }
.btn--white:hover { background: var(--white); }
.on-dark .btn { box-shadow: 6px 6px 0 var(--white); }
.on-dark .btn:hover { box-shadow: none; }
.btn.is-disabled { background: #e9e9e6; color: var(--gray); box-shadow: none; cursor: not-allowed; border-style: dashed; }
.btn.is-disabled::after { content: none; }
.btn.is-disabled:hover { transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 18px 22px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; height: var(--header-h);
  background: var(--white); border-bottom: var(--bw) solid var(--black);
}
.brand { display: flex; align-items: center; gap: 12px; padding-inline: var(--pad) 20px; margin-right: auto; text-decoration: none; }
.brand:hover { background: none; }
/* ロゴ：黒縁＋ずらした影で、ヘッダーに貼ったステッカー風に */
.brand__logo {
  flex: none; width: 58px; height: 58px;
  border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black);
  transform: rotate(-3deg);
}
.brand:hover .brand__logo { transform: rotate(-3deg) translate(4px, 4px); box-shadow: none; }
.brand__name { display: grid; line-height: 1.15; font-weight: 900; font-size: 1.02rem; white-space: nowrap; }
.brand__name small { font-weight: 700; font-size: .64rem; letter-spacing: .2em; color: var(--gray); }
.gnav > ul { list-style: none; display: flex; height: 100%; }
.gnav > ul > li { display: flex; position: relative; border-left: var(--bw) solid var(--black); }
.gnav a, .sub-toggle {
  display: flex; align-items: center; gap: 8px; padding: 0 18px;
  font: inherit; font-weight: 900; font-size: .95rem; letter-spacing: .02em; color: var(--black);
  text-decoration: none; background: var(--white); border: 0; cursor: pointer; white-space: nowrap;
}
.gnav a:hover, .sub-toggle:hover, .has-sub:hover > .sub-toggle { background: var(--black); color: var(--white); }
.gnav a[aria-current="page"], .sub-toggle.is-current { background: var(--blue); color: var(--white); }
.sub-toggle::after { content: "▼"; font-size: .6rem; }
.subnav {
  list-style: none; display: none; position: absolute; top: 100%; left: calc(-1 * var(--bw)); min-width: 300px;
  background: var(--white); border: var(--bw) solid var(--black); box-shadow: var(--shadow);
}
.has-sub:hover .subnav, .sub-toggle[aria-expanded="true"] + .subnav { display: block; }
.subnav li + li { border-top: 2px solid var(--black); }
.subnav a { justify-content: space-between; gap: 20px; padding: 14px 16px; }
.subnav small { font-family: var(--f-mono); font-size: .75rem; font-weight: 700; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: block; padding: 0 18px; border: 0; border-left: var(--bw) solid var(--black);
    background: var(--black); color: var(--white); font-family: var(--f-body); font-weight: 900; font-size: .9rem; letter-spacing: .06em; cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--yellow); color: var(--black); }
  .gnav { display: none; position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100svh - var(--header-h)); overflow-y: auto; background: var(--white); border-bottom: var(--bw) solid var(--black); }
  .gnav.is-open { display: block; }
  .gnav > ul { flex-direction: column; height: auto; }
  .gnav > ul > li { flex-direction: column; border-left: 0; border-top: 2px solid var(--black); }
  .gnav > ul > li:first-child { border-top: 0; }
  .gnav a, .sub-toggle { padding: 16px var(--pad); font-size: 1.05rem; width: 100%; }
  .sub-toggle { cursor: default; background: #efefec; font-size: .8rem; font-family: var(--f-mono); padding-block: 8px; }
  .sub-toggle:hover, .has-sub:hover > .sub-toggle, .sub-toggle.is-current { background: #efefec; color: var(--black); }
  .sub-toggle::after { content: none; }
  .subnav { display: block; position: static; min-width: 0; border: 0; box-shadow: none; }
  .subnav li { border-top: 2px solid var(--black); }
  .subnav a { padding-left: calc(var(--pad) + 16px); }
}

/* ---------- ヒーロー（トップ：フィニッシュの1枚） ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--black);
  height: calc(100svh - var(--header-h) - 24px); min-height: 480px; max-height: 1000px;
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.hero__cap {
  position: absolute; left: var(--pad); top: 18px;
  background: var(--black); color: var(--white); padding: 4px 12px;
  font-family: var(--f-mono); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
}
.hero__side {
  position: absolute; right: 14px; top: 18px; writing-mode: vertical-rl;
  background: var(--white); color: var(--black); border: 2px solid var(--black); padding: 12px 4px;
  font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .14em;
}
.hero__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) clamp(14px, 2.6vw, 34px); }
.hero__title {
  font-family: var(--f-jp-d); font-weight: 400; color: var(--white);
  /* 幅だけでなく高さにも追従させ、背の低い画面で車に被らないようにする */
  font-size: clamp(2.6rem, min(9.2vw, 14.5svh), 9.6rem); line-height: 1.02; letter-spacing: -.02em; white-space: nowrap;
  text-shadow: .045em .045em 0 var(--black);
}
.hero__title .n { font-family: var(--f-en); color: var(--yellow); letter-spacing: -.05em; font-size: 1.06em; margin-inline: .04em; }
/* 「準備中」のテープ */
.tape {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  background: var(--black); color: var(--yellow); padding: .42em 1em .46em;
  font-weight: 900; font-size: clamp(1rem, 2.1vw, 1.7rem); line-height: 1.3; letter-spacing: .06em;
  transform: rotate(-2.5deg); transform-origin: left bottom; margin-bottom: clamp(10px, 1.6vw, 22px);
  border-block: 10px solid transparent; border-image: var(--hazard) 10;
}
.tape b { background: var(--yellow); color: var(--black); padding: 0 .5em; }
@media (max-width: 700px) {
  .hero { height: calc(92svh - var(--header-h)); }
  .hero img { object-position: 52% 50%; }
  .hero__title { white-space: normal; font-size: clamp(2.8rem, 16.5vw, 6rem); line-height: 1.04; }
  .hero__side { display: none; }
}

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); border-bottom: var(--bw) solid var(--black); }
.crumb { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; color: var(--gray); }
.page-title {
  margin-top: 14px; font-family: var(--f-jp-d); font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 8.6rem); line-height: 1.08; letter-spacing: -.01em;
  text-shadow: .045em .045em 0 var(--yellow), -.028em -.028em 0 var(--blue);
}
.page-sub { display: inline-block; margin-top: clamp(14px, 2vw, 24px); background: var(--black); color: var(--white); font-weight: 900; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); padding: .15em .8em .2em; transform: rotate(-1.2deg); }
.page-head .lead { margin-top: 26px; }

/* ---------- セクション ---------- */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--line { border-top: var(--bw) solid var(--black); }
.section--blue { background: var(--blue); color: var(--white); border-block: var(--bw) solid var(--black); }
.section--yellow { background: var(--yellow); border-block: var(--bw) solid var(--black); }
.section--white { background: var(--white); border-block: var(--bw) solid var(--black); }
.section--blue a:hover { background: var(--black); }

/* セクション名：和文を巨大に（英語には置き換えない）。補足があれば黒ラベルで添える */
/* 見出しは単語の途中で折り返さない（<wbr> の位置か、はみ出すときだけ折り返す） */
.page-title, .sec-name, .fset-title { word-break: keep-all; overflow-wrap: anywhere; }
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec-name {
  font-family: var(--f-jp-d); font-weight: 400;
  font-size: clamp(2.5rem, 8.2vw, 6.6rem); line-height: 1.1; letter-spacing: -.01em;
  text-shadow: .05em .05em 0 var(--yellow);
}
.sec-sub { display: inline-block; margin-top: 14px; background: var(--black); color: var(--white); font-weight: 900; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); padding: .15em .8em .2em; transform: rotate(-1.2deg); }
.section--blue .sec-name { text-shadow: .05em .05em 0 var(--black); }
.section--blue .sec-sub { background: var(--yellow); color: var(--black); }
.section--yellow .sec-name { text-shadow: .05em .05em 0 var(--white); }
.sec-head--s .sec-name { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }

.h3 { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 900; line-height: 1.45; }
.h3--bar { display: flex; align-items: center; gap: 12px; }
.h3--bar::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--yellow); border: 3px solid var(--black); }
.catch { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); font-weight: 900; line-height: 1.4; }

.cols-2, .cols-7-5, .cols-5-7 { display: grid; gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 860px) { .cols-2, .cols-7-5, .cols-5-7 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ニュース ---------- */
.news { list-style: none; border-top: var(--bw) solid var(--black); background: var(--white); }
.news li { border-bottom: var(--bw) solid var(--black); }
.news a, .news .row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 18px 10px; text-decoration: none; }
.news a::after { content: "→"; font-family: var(--f-mono); font-weight: 700; font-size: 1.2rem; }
.news a:hover { background: var(--yellow); }
.news time { font-family: var(--f-mono); font-weight: 700; font-size: .9rem; background: var(--black); color: var(--white); padding: 2px 10px; }
.news .cat { font-size: .78rem; font-weight: 900; border: 2px solid var(--black); background: var(--white); padding: 0 10px; line-height: 1.8; white-space: nowrap; }
.news .ttl { font-weight: 700; }
@media (max-width: 680px) {
  .news a, .news .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .news .cat { justify-self: start; }
  .news .ttl { grid-column: 1 / -1; grid-row: 2; }
  .news a::after { grid-column: 3; grid-row: 1; }
}

/* ---------- 表 ---------- */
.spec { width: 100%; background: var(--white); border: var(--bw) solid var(--black); }
.spec th, .spec td { padding: 14px 18px; text-align: left; vertical-align: top; }
.spec th { width: 9.5em; background: var(--black); color: var(--white); font-weight: 900; font-size: .92rem; border-bottom: 2px solid var(--white); }
.spec td { border-bottom: 2px solid var(--black); font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec td strong { background: var(--yellow); padding: 0 .25em; font-weight: 900; }
.spec td .note { display: block; margin-top: 4px; font-weight: 400; }
.box--shadow-table { box-shadow: var(--shadow); }
.spec--legal th { width: 12.5em; }
.legal-text .rule-list { margin-top: 12px; }
.legal-text h2 + p { margin-top: 12px; }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding: 6px 14px; }
  .spec td { padding: 12px 14px 16px; }
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--bw) solid var(--black); background: var(--white); box-shadow: var(--shadow); }
.results { width: 100%; min-width: 780px; font-size: .92rem; }
.results th, .results td { padding: 12px 10px; text-align: left; vertical-align: middle; border-bottom: 2px solid var(--black); }
.results tbody tr:last-child td { border-bottom: 0; }
.results thead th { background: var(--black); color: var(--white); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; white-space: nowrap; border-bottom: 0; }
.results .pos { font-family: var(--f-en); font-size: 1.5rem; width: 3.4rem; text-align: center; border-right: 2px solid var(--black); }
.results tbody tr:first-child .pos { background: var(--yellow); }
.results tbody tr:nth-child(2) .pos, .results tbody tr:nth-child(3) .pos { background: var(--blue); color: var(--white); }
.results .no { width: 4rem; text-align: center; }
.results .no span { display: inline-block; min-width: 2.8em; border: 3px solid var(--black); background: var(--white); font-family: var(--f-en); font-size: 1rem; line-height: 1.5; padding: 0 4px; }
.results .team { font-weight: 900; line-height: 1.5; }
.results .car { font-size: .8rem; color: var(--gray); white-space: nowrap; }
.results .r { text-align: right; white-space: nowrap; }
.results .laps { font-family: var(--f-en); font-size: 1.3rem; }
.results .m { font-family: var(--f-mono); }
.best-mark { background: var(--yellow); padding: 0 4px; font-weight: 700; }

.compare { width: 100%; min-width: 620px; font-size: .94rem; }
.compare th, .compare td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--black); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--black); color: var(--white); font-size: .82rem; border-bottom: 0; }
.compare thead th:last-child { background: var(--blue); }
.compare tbody th { width: 8em; font-weight: 900; border-right: 2px solid var(--black); }
.compare td:nth-child(2) { color: var(--gray); }
.compare td:last-child { font-weight: 900; background: #fff8bf; border-left: 2px solid var(--black); }

/* ---------- 数字パネル（黒い目地で仕切る） ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--bw); background: var(--black); border: var(--bw) solid var(--black); box-shadow: var(--shadow); }
.stats > div { background: var(--white); padding: 18px 16px 16px; }
.stats b { display: block; font-family: var(--f-en); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 1.9vw, 3rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.stats b small { font-family: var(--f-body); font-weight: 900; font-size: .38em; letter-spacing: 0; margin-left: .2em; }
.stats span { display: block; margin-top: 10px; font-size: .8rem; font-weight: 700; line-height: 1.5; color: var(--gray); }
.stats .is-hot { background: var(--yellow); }
.stats .is-hot span { color: var(--black); }
.stats .is-blue { background: var(--blue); color: var(--white); }
.stats .is-blue span { color: var(--white); }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 大会理念 ---------- */
.motto { font-family: var(--f-jp-d); font-size: clamp(1.5rem, 1rem + 2.4vw, 2.7rem); line-height: 1.35; }
.motto span { display: inline-block; }

/* ---------- カレンダー（4戦） ---------- */
.rounds { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.rounds li { position: relative; background: var(--white); color: var(--black); border: var(--bw) solid var(--black); box-shadow: var(--shadow); padding: 16px 18px 20px; }
.rounds li:nth-child(even) { transform: translateY(22px); }
.rounds .rd { font-family: var(--f-mono); font-weight: 700; font-size: .9rem; background: var(--black); color: var(--white); padding: 1px 10px; }
.rounds .tag { position: absolute; top: -14px; right: -10px; background: var(--yellow); border: 3px solid var(--black); font-weight: 900; font-size: .78rem; padding: 0 10px; transform: rotate(4deg); }
.rounds .mo { font-family: var(--f-en); font-size: clamp(3rem, 2rem + 3.4vw, 5rem); line-height: 1; letter-spacing: -.05em; margin-top: 12px; }
.rounds .mo small { font-family: var(--f-body); font-weight: 900; font-size: .3em; letter-spacing: 0; margin-left: .2em; }
.rounds p { margin-top: 8px; font-size: .86rem; font-weight: 700; line-height: 1.6; color: var(--gray); }
.section--blue .rounds li { box-shadow: var(--sh) var(--sh) 0 var(--black); }
@media (max-width: 860px) {
  .rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rounds li:nth-child(even) { transform: none; }
}

/* ---------- 用語と説明／手順／リスト ---------- */
.defs { list-style: none; border: var(--bw) solid var(--black); background: var(--white); box-shadow: var(--shadow); }
.defs > li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); }
.defs > li + li { border-top: 2px solid var(--black); }
.defs h3 { background: var(--yellow); border-right: 2px solid var(--black); padding: 18px 16px; font-size: 1.05rem; font-weight: 900; line-height: 1.5; }
.defs h3 .note { display: block; color: var(--black); font-weight: 700; }
.defs p { padding: 18px 20px; font-size: .96rem; }
.defs--dark h3 { background: var(--black); color: var(--white); }
@media (max-width: 620px) { .defs > li { grid-template-columns: minmax(0, 1fr); } .defs h3 { border-right: 0; border-bottom: 2px solid var(--black); padding-block: 10px; } }

.steps { list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps > li { position: relative; background: var(--white); border: var(--bw) solid var(--black); padding: 22px 24px 22px 124px; }
.steps > li::before {
  counter-increment: s; content: "手順 " counter(s);
  position: absolute; left: -10px; top: 18px; background: var(--blue); color: var(--white);
  font-family: var(--f-mono); font-weight: 700; font-size: .95rem; padding: 4px 14px; border: 3px solid var(--black); transform: rotate(-3deg);
}
.steps h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 6px; }
.steps p, .steps ul { font-size: .96rem; }
.steps ul { padding-left: 1.3em; }
@media (max-width: 620px) { .steps > li { padding: 46px 18px 20px; } .steps > li::before { top: -16px; left: 10px; } }

.rule-list { list-style: none; border-top: var(--bw) solid currentColor; }
.rule-list li { position: relative; padding: 13px 0 13px 30px; border-bottom: 2px solid currentColor; font-size: .97rem; font-weight: 500; }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 12px; height: 12px; background: var(--blue); }
.section--blue .rule-list li::before, .box--blue .rule-list li::before { background: var(--yellow); }

.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bw); background: var(--black); border: var(--bw) solid var(--black); box-shadow: var(--shadow); }
.checks li { position: relative; background: var(--white); padding: 16px 16px 16px 52px; font-size: .95rem; font-weight: 700; line-height: 1.65; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; background: var(--yellow); border: 3px solid var(--black); }
.checks li::after { content: ""; position: absolute; left: 24px; top: 20px; width: 6px; height: 12px; border: solid var(--black); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (max-width: 700px) { .checks { grid-template-columns: minmax(0, 1fr); } }

.docs { list-style: none; display: grid; gap: 16px; }
.docs a { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--white); border: var(--bw) solid var(--black); box-shadow: 6px 6px 0 var(--black); padding: 14px 18px; text-decoration: none; }
.docs a::after { content: "→"; font-family: var(--f-mono); font-weight: 700; font-size: 1.2rem; }
.docs a:hover { background: var(--yellow); transform: translate(6px, 6px); box-shadow: none; }
.docs .fmt { font-family: var(--f-mono); font-weight: 700; font-size: .82rem; background: var(--blue); color: var(--white); text-align: center; padding: 4px 0; }
.docs b { font-weight: 900; font-size: 1.05rem; }
.docs small { display: block; font-size: .82rem; color: var(--gray); font-weight: 500; }

.faq { display: grid; gap: 14px; }
.faq details { background: var(--white); border: var(--bw) solid var(--black); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.6rem; gap: 10px; align-items: center; padding: 16px 18px; font-weight: 900; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-en); font-size: 1.5rem; line-height: 1; color: var(--blue); }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 700; font-size: 1.5rem; line-height: 1; text-align: right; }
.faq details[open] summary { background: var(--yellow); border-bottom: 2px solid var(--black); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 16px 18px 18px 60px; font-size: .96rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 3px solid var(--black); padding: 3px 12px; font-size: .88rem; font-weight: 700; }

/* 注意書き（ハザードの帯つき） */
.notice { position: relative; background: var(--yellow); border: var(--bw) solid var(--black); box-shadow: var(--shadow); padding: clamp(34px, 4vw, 46px) clamp(20px, 3vw, 36px) clamp(22px, 3vw, 32px); }
.notice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--hazard); border-bottom: var(--bw) solid var(--black); }
.notice b.ttl { display: block; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); font-weight: 900; line-height: 1.5; margin-bottom: 6px; }
.notice--white { background: var(--white); }

/* ---------- 写真 ---------- */
.photo { position: relative; background: var(--white); border: var(--bw) solid var(--black); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: -4px; bottom: -4px; background: var(--black); color: var(--white); font-family: var(--f-mono); font-weight: 700; font-size: .74rem; padding: 3px 10px; }
.photo--blue { box-shadow: var(--sh) var(--sh) 0 var(--blue); }
.photo--yellow { box-shadow: var(--sh) var(--sh) 0 var(--yellow); }

.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 24px; align-items: start; }
.collage .c-a { grid-column: 1 / span 8; aspect-ratio: 16 / 9; transform: rotate(-1deg); }
.collage .c-b { grid-column: 9 / span 4; aspect-ratio: 4 / 5; transform: rotate(1.5deg) translateY(36px); }
.collage .c-c { grid-column: 2 / span 5; aspect-ratio: 3 / 2; transform: rotate(1deg); }
.collage .c-d { grid-column: 7 / span 5; aspect-ratio: 3 / 2; transform: rotate(-1.5deg) translateY(28px); }
@media (max-width: 760px) {
  .collage { gap: 22px 14px; }
  .collage .c-a, .collage .c-c { grid-column: 1 / -1; }
  .collage .c-b { grid-column: 1 / span 6; transform: rotate(1.5deg); }
  .collage .c-d { grid-column: 7 / span 6; aspect-ratio: 4 / 5; transform: rotate(-1.5deg); }
}

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.gallery .photo { grid-column: span 4; aspect-ratio: 3 / 2; }
.gallery .photo:nth-child(3n+1) { transform: rotate(-.8deg); }
.gallery .photo:nth-child(3n) { transform: rotate(.8deg); }
.gallery .g-wide { grid-column: span 8; aspect-ratio: auto; }
.gallery .g-tall { grid-column: span 4; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { gap: 18px 14px; } .gallery .photo { grid-column: span 6; } .gallery .g-wide, .gallery .g-tall { grid-column: 1 / -1; aspect-ratio: 3 / 2; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-pair .photo { aspect-ratio: 4 / 3; }
.photo-pair .photo:first-child { transform: rotate(-1deg); }
.photo-pair .photo:last-child { transform: rotate(1deg); }

/* ---------- 表彰台 ---------- */
.podium { list-style: none; border: var(--bw) solid var(--black); background: var(--white); box-shadow: var(--shadow); }
.podium li { display: grid; grid-template-columns: 4rem 3.8rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 0 16px 0 0; }
.podium li + li { border-top: 2px solid var(--black); }
.podium .p small { font-family: var(--f-body); font-weight: 900; font-size: .5em; margin: .5em 0 0 1px; }
.podium .p { align-self: stretch; display: flex; align-items: center; justify-content: center; font-family: var(--f-en); font-size: 1.7rem; border-right: 2px solid var(--black); padding: 14px 0; }
.podium li:first-child .p { background: var(--yellow); }
.podium li:not(:first-child) .p { background: var(--blue); color: var(--white); }
.podium .no { font-family: var(--f-en); font-size: 1rem; border: 3px solid var(--black); text-align: center; line-height: 1.6; }
.podium .t { font-weight: 900; line-height: 1.5; padding: 12px 0; }
.podium .t small { display: block; font-weight: 500; font-size: .8rem; color: var(--gray); }
.podium .l { font-family: var(--f-en); font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.podium .l small { font-family: var(--f-body); font-weight: 900; font-size: .5em; margin-left: 3px; }
@media (max-width: 560px) { .podium li { grid-template-columns: 3.2rem 3.2rem minmax(0, 1fr); } .podium .l { grid-column: 2 / -1; padding-bottom: 12px; font-size: 1.2rem; } }

/* ---------- 協賛 ---------- */
.sponsors { list-style: none; border: var(--bw) solid var(--black); background: var(--white); box-shadow: var(--shadow); }
.sponsors li { display: grid; grid-template-columns: minmax(11em, 3fr) minmax(0, 7fr); gap: 4px 20px; padding: 16px 20px; align-items: baseline; }
.sponsors li + li { border-top: 2px solid var(--black); }
.sponsors b { font-size: 1.12rem; font-weight: 900; }
.sponsors span { font-size: .93rem; font-weight: 500; }
@media (max-width: 560px) { .sponsors li { grid-template-columns: minmax(0, 1fr); } }

.panel-grid { display: grid; gap: var(--bw); background: var(--black); border: var(--bw) solid var(--black); box-shadow: var(--shadow); }
.panel-grid > * { background: var(--white); padding: 22px 22px 26px; }
.panel-grid h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: 8px; }
.panel-grid p { font-size: .93rem; }
.merits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.merits > :nth-child(1), .merits > :nth-child(5) { background: var(--yellow); }
.merits > :nth-child(3) { background: var(--blue); color: var(--white); }
.returns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.returns h3 { border-bottom: 3px solid var(--black); padding-bottom: 8px; }
.returns ul { list-style: none; font-size: .9rem; line-height: 1.6; font-weight: 500; }
.returns li { position: relative; padding: 6px 0 6px 18px; }
.returns li::before { content: ""; position: absolute; left: 0; top: .95em; width: 9px; height: 9px; background: var(--black); }
.returns li.new::after { content: "新規"; font-family: var(--f-mono); font-weight: 700; font-size: .7rem; background: var(--blue); color: var(--white); padding: 0 6px; margin-left: 6px; }
.tiers { list-style: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiers b { display: block; font-size: 1.2rem; font-weight: 900; }
.tiers span { display: block; margin-top: 6px; font-size: .86rem; font-weight: 500; line-height: 1.65; }
.tiers li:first-child { background: var(--yellow); }
.tiers li:nth-child(2) { background: var(--blue); color: var(--white); }
@media (max-width: 960px) {
  .merits, .returns, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers li:last-child { grid-column: span 2; }
}
@media (max-width: 560px) { .merits, .returns, .tiers { grid-template-columns: minmax(0, 1fr); } .tiers li:last-child { grid-column: auto; } }

/* ---------- アクセス・お問い合わせ ---------- */
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: var(--bw) solid var(--black); box-shadow: var(--shadow); background: #e9e9e6; }
@media (max-width: 560px) { .map { aspect-ratio: 1 / 1; } }
.contact-mail { display: inline-block; font-family: var(--f-en); font-size: clamp(1.25rem, .7rem + 2.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.3; text-decoration: none; background: var(--yellow); border: var(--bw) solid var(--black); box-shadow: var(--shadow); padding: .35em .6em; word-break: break-all; }
.contact-mail:hover { transform: translate(var(--sh), var(--sh)); box-shadow: none; }

/* ---------- フッター ---------- */
.site-footer { background: var(--black); color: var(--white); font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 36px; padding-block: clamp(44px, 6vw, 72px) 28px; }
.footer-logo img {
  width: clamp(120px, 14vw, 168px); height: auto;
  border: 4px solid var(--yellow); box-shadow: 8px 8px 0 var(--blue);
  transform: rotate(-3deg);
}
.site-footer .org { margin-top: 18px; line-height: 1.9; }
.site-footer h2 { font-size: .82rem; font-weight: 900; letter-spacing: .12em; color: var(--yellow); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { background: var(--blue); }
.site-footer .disclaimer { grid-column: 1 / -1; border-top: 2px solid #3a3a3a; padding-top: 20px; font-size: .78rem; color: #c3c7cc; line-height: 1.8; }
.site-footer .copy { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .76rem; color: #c3c7cc; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- エントリーフォーム ---------- */
.req, .opt { white-space: nowrap; display: inline-block; margin-left: 8px; padding: 0 7px; font-size: .7rem; font-weight: 900; line-height: 1.7; letter-spacing: .04em; vertical-align: .15em; border: 2px solid var(--black); }
.req { background: var(--yellow); color: var(--black); }
.opt { background: var(--white); color: var(--gray); border-color: var(--gray); }
.sec-sub .req { margin: 0 4px 0 0; }

.form-steps {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; overflow-x: auto;
  margin-bottom: clamp(28px, 4vw, 44px); background: var(--white); border: var(--bw) solid var(--black);
}
.form-steps a { flex: 1 0 auto; padding: 12px 18px; text-align: center; font-weight: 900; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.form-steps a + a { border-left: var(--bw) solid var(--black); }
.form-steps a:hover { background: var(--black); color: var(--white); }

.fset { margin: 0; padding: clamp(20px, 3vw, 36px); min-width: 0; background: var(--white); border: var(--bw) solid var(--black); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 70px); }
.fset + .fset { margin-top: clamp(40px, 5vw, 64px); }
.fset-title { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--f-jp-d); font-weight: 400; font-size: clamp(1.7rem, 1rem + 2.4vw, 2.7rem); line-height: 1.2; text-shadow: .05em .05em 0 var(--yellow); }
.fset-title + * { clear: both; }
.fset-desc { margin-bottom: 22px; font-weight: 500; }

.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.fgrid .full { grid-column: 1 / -1; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .field > .lbl { display: block; padding: 0; margin-bottom: 7px; font-weight: 900; font-size: .95rem; line-height: 1.5; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select {
  display: block; width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--black);
  background: var(--white); border: 3px solid var(--black); border-radius: 0; box-shadow: none; appearance: none;
}
.field select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(-45deg, transparent 50%, var(--black) 50%); background-position: right 16px center, right 10px center; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: 4px solid var(--blue); outline-offset: 0; background-color: #fffbe0; }
.field input::placeholder { color: #9a9ea4; }
.hint { margin-top: 6px; font-size: .8rem; color: var(--gray); line-height: 1.6; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sub-field { display: block; }
.sub-field > span { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; }
.sub-field input { display: block; width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem; border: 3px solid var(--black); border-radius: 0; appearance: none; }
.sub-field input:focus { outline: 4px solid var(--blue); outline-offset: 0; background: #fffbe0; }

.choices { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.choices--col { flex-direction: column; align-items: flex-start; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice > span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; font-weight: 700; background: var(--white); border: 3px solid var(--black); }
.choice > span::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--white); border: 3px solid var(--black); }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { background: var(--yellow); box-shadow: 4px 4px 0 var(--black); }
.choice input:checked + span::before { background: var(--black); box-shadow: inset 0 0 0 3px var(--yellow); }
.choice input:focus-visible + span { outline: 4px solid var(--blue); outline-offset: 2px; }
.choice--big > span { padding: 14px 20px 14px 14px; font-size: 1.05rem; font-weight: 900; }

.drivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.driver { display: grid; gap: 14px; align-content: start; padding: 18px 18px 20px; background: #fafaf6; border: 3px solid var(--black); }
.driver--opt { border-style: dashed; }
.driver h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 900; }
.driver h3 .req, .driver h3 .opt { margin-left: auto; }
.dtag { display: grid; place-items: center; width: 34px; height: 34px; background: var(--black); color: var(--yellow); font-family: var(--f-en); font-size: 1.1rem; }
.driver .field > label { font-size: .88rem; margin-bottom: 5px; }

.pledge { max-height: 240px; overflow: auto; margin-top: 10px; padding: 16px 18px; font-size: .93rem; background: #fafaf6; border: 3px solid var(--black); }
.pledge p + p { margin-top: 10px; }

.is-error input:not([type="radio"]):not([type="checkbox"]), .is-error select, .is-error .choice > span { border-color: var(--tbd); background-color: #fff1ef; }
.err-msg { margin-top: 6px; color: var(--tbd); font-size: .85rem; font-weight: 900; }
.err-msg::before { content: "▲ "; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: clamp(32px, 4vw, 48px); }
.form-error { flex-basis: 100%; padding: 12px 16px; color: var(--white); background: var(--tbd); border: 3px solid var(--black); font-weight: 900; }
.btn:disabled { background: #e9e9e6; color: var(--gray); border-style: dashed; box-shadow: none; cursor: not-allowed; transform: none; }
.btn:disabled::after { content: none; }
button.btn { font-family: inherit; cursor: pointer; }
.confirm .spec th { width: 17em; }
.confirm .spec td.is-empty { color: #9a9ea4; }
.confirm:focus, #entry-done:focus { outline: none; }

@media (max-width: 760px) {
  .fgrid, .drivers { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .confirm .spec th { width: auto; }
}

/* ---------- デモ用：要確認マーカー ---------- */
.tbd { display: inline-block; font-family: var(--f-body); font-size: .78rem; font-weight: 900; line-height: 1.5; color: var(--tbd); background: var(--white); border: 2px dashed var(--tbd); padding: 0 6px; margin-inline: 2px; vertical-align: .1em; }
.hide-tbd .tbd { display: none; }
.demo-bar { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--white); border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); font-size: .78rem; font-weight: 700; padding: 6px 8px 6px 12px; }
.demo-bar b { font-family: var(--f-mono); }
.demo-bar button { font: inherit; font-weight: 900; background: var(--black); color: var(--white); border: 0; padding: 4px 10px; cursor: pointer; }

/* ---------- 小さい画面では枠と影を少し細く ---------- */
@media (max-width: 560px) {
  :root { --bw: 3px; --sh: 5px; }
  .tilt-l, .tilt-r { transform: none; }
  .plus::before, .plus::after { content: none; }
}
