:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde4ee;
  --brand: #0b5cad;
  --brand-dark: #08457f;
  --brand-soft: #e6f0fb;
  --hit: #2b8a3e;
  --hit-soft: #e6f4ea;
  --miss: #868e96;
  --accent: #e8590c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(20, 40, 80, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.75; overflow-wrap: anywhere;
}
a { color: var(--brand); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 1.4rem 0 .6rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .7rem; line-height: 1.45; }
.small { font-size: .82rem; color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-top: 14px; }
ul.plain { padding-left: 1.2em; }
ul.plain li { margin: .4em 0; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .8rem; }
.head-nav { display: flex; gap: 14px; font-size: .84rem; overflow-x: auto; white-space: nowrap; max-width: 100%; padding-bottom: 2px; }
.head-nav a { text-decoration: none; color: var(--muted); font-weight: 700; }
.head-nav a.on, .head-nav a:hover { color: var(--brand); }

/* ヒーロー */
.hero { margin: 0 -16px; padding: 28px 16px 24px; background: linear-gradient(180deg, #dceaf8 0%, var(--bg) 100%); }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-weight: 700; font-size: .88rem; }
.hero h1 { font-size: 1.75rem; margin: 0 0 10px; font-weight: 800; }
.hero p { margin: 0 0 16px; }
.rec-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.rec-card .k { margin: 0; font-size: .75rem; color: var(--muted); font-weight: 700; }
.rec-card .v { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); }
.rec-card .note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .78rem; color: var(--muted); }

/* 艇番 */
.b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: .78rem; font-weight: 800; border: 1px solid #c9d1db; line-height: 1; }
.b1 { background: #fff; color: #222; } .b2 { background: #1f1f1f; color: #fff; border-color: #1f1f1f; } .b3 { background: #e03131; color: #fff; border-color: #e03131; }
.b4 { background: #1c7ed6; color: #fff; border-color: #1c7ed6; } .b5 { background: #f5c518; color: #222; border-color: #e0b400; } .b6 { background: #2b8a3e; color: #fff; border-color: #2b8a3e; }
.combo { display: inline-flex; align-items: center; gap: 2px; }
.combo i { font-style: normal; color: var(--muted); font-size: .7rem; }

/* 場とレース */
.day-h { margin-top: 1.6rem; }
.venue h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.venue .g { font-size: .72rem; background: var(--brand-soft); color: var(--brand-dark); padding: 1px 7px; border-radius: 99px; }
.venue .ttl { font-size: .8rem; color: var(--muted); font-weight: 400; }
.race { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; }
.race summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; }
.race summary::-webkit-details-marker { display: none; }
.race summary .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .84rem; width: 3.1em; }
.race summary .rn { font-weight: 800; width: 2.4em; }
.race summary .sub { font-size: .78rem; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race summary .fav { margin-left: auto; }
.star { color: var(--accent); font-weight: 800; }
.hit { background: var(--hit-soft); color: var(--hit); font-size: .74rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.miss { color: var(--miss); font-size: .8rem; }
.race-body { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
table.boats { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.boats th { text-align: left; font-size: .72rem; color: var(--muted); font-weight: 700; padding: 6px 4px; }
table.boats td { padding: 5px 4px; border-top: 1px solid #eef2f7; }
table.boats .nm { white-space: nowrap; }
.rank { font-size: .72rem; color: var(--muted); }
td.bar { position: relative; width: 38%; }
td.bar span { display: block; height: 14px; background: var(--brand); border-radius: 3px; opacity: .85; }
td.bar em { position: absolute; right: 4px; top: 5px; font-style: normal; font-size: .76rem; font-weight: 700; }
td.in3 { width: 3.5em; text-align: right; color: var(--muted); }
.top6-h { margin: 12px 0 4px; font-weight: 700; font-size: .88rem; }
ol.top6 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
ol.top6 li { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: var(--bg); border-radius: 8px; padding: 5px 8px; font-size: .8rem; }
.res { margin-top: 10px; font-size: .88rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 表・箱 */
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; font-size: .9rem; }
table.tbl th, table.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.tbl th { font-size: .78rem; color: var(--muted); }
.box { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }
.ad-slot { margin: 18px 0; padding: 22px; background: #e9ecef; color: #868e96; text-align: center; font-size: .8rem; border-radius: 8px; }
.more { text-align: right; font-weight: 700; }

/* フッター */
.site-footer { margin-top: 48px; padding: 24px 0 40px; background: #1c2430; color: #c5ccd6; font-size: .84rem; }
.site-footer .small { color: #8a94a3; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.4rem; }
  .rec-card .v { font-size: 1.2rem; }
  ol.top6 { grid-template-columns: repeat(2, 1fr); }
  .race summary .sub { display: none; }
}
.race { scroll-margin-top: 110px; }
.stats { display: block; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.stats b { color: var(--accent); }
table.boats .nm { white-space: normal; }
table.boats th:last-child, td.in3 { white-space: nowrap; width: 3.2em; }
td.bar { width: 30%; min-width: 90px; }
td.bar em { top: 4px; }

/* キャラクターの一言 */
.talk { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.talk img { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #dceaf8; box-shadow: var(--shadow); }
.talk.ken img { background: #ffe8d6; }
.bubble { position: relative; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .92rem; }
.bubble::before { content: ""; position: absolute; left: -7px; top: 22px; border: 7px solid transparent; border-left: 0; border-right-color: var(--surface); }
.bubble b { display: block; font-size: .74rem; color: var(--brand); }
.talk.ken .bubble b { color: var(--accent); }
.bubble strong { font-size: 1.05rem; }
/* 今日の見どころ */
.hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.hl { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.hl.wild { border-top-color: var(--accent); }
.hl.star { border-top-color: #f5c518; }
.hl-k { font-size: .74rem; font-weight: 800; color: var(--muted); }
.hl-r { font-weight: 800; font-size: 1.05rem; }
.hl-v { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hl:hover { transform: translateY(-1px); }
/* 場のボタン */
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.vchips a { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: .84rem; font-weight: 700; text-decoration: none; color: var(--text); }
.vchips a i { font-style: normal; color: var(--accent); font-size: .74rem; margin-left: 4px; }
.venue { scroll-margin-top: 70px; }
.venue .g.big { background: #fff3bf; color: #8a6d00; }
@media (max-width: 560px) { .hls { grid-template-columns: 1fr; } .talk img { width: 52px; height: 52px; } }

/* ロゴ・場の一言・おっちゃん・グラフ */
.logo-img { width: 32px; height: 32px; }
.vnote { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; font-size: .82rem; color: var(--muted); }
.vnote img { width: 28px; height: 28px; border-radius: 50%; background: #dceaf8; flex: none; }
.talk.occhan img { background: #fff3bf; }
.talk.occhan .bubble b { color: #8a6d00; }
.chart { margin: 8px 0 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.chart svg { width: 100%; height: auto; font-size: 11px; fill: var(--muted); }
.chart .gl { stroke: #eef2f7; }
.chart .ref { stroke: var(--accent); stroke-dasharray: 5 4; }
.chart .reft { fill: var(--accent); }
.chart .even { stroke: #2b8a3e; stroke-width: 1; opacity: .5; }
.chart .dl { fill: none; stroke: #9bb7d6; stroke-width: 1.2; }
.chart .al { fill: none; stroke: var(--brand-dark); stroke-width: 3; }
.chart figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.chart .k { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--brand-dark); vertical-align: middle; margin: 0 4px 0 10px; }
.chart .k.dl { border-top: 1px solid #9bb7d6; }
.chart .k.ref { border-top: 2px dashed var(--accent); }
ul.check { list-style: none; padding-left: 0; }

/* フォーム・コメント */
.form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.form button { justify-self: start; font: inherit; font-weight: 800; padding: 10px 22px; border: 0; border-radius: 99px; background: var(--brand); color: #fff; cursor: pointer; }
.form button:disabled { opacity: .5; }
.req { font-size: .7rem; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 5px; margin-left: 6px; font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: .86rem; } .form-msg.ok { color: var(--hit); } .form-msg.ng { color: #e03131; }
.c-list { list-style: none; padding: 0; margin: 0 0 12px; }
.c-list li { background: var(--surface); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.c-list li b { margin-right: 8px; } .c-list li p { margin: 2px 0 0; }

/* 連載への案内 */
.note-card { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px; background: linear-gradient(90deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.note-card img { width: 56px; height: 56px; border-radius: 50%; background: #dceaf8; flex: none; }
.note-card > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.nc-k { font-size: .74rem; font-weight: 800; color: var(--accent); }
.nc-go { font-weight: 800; color: var(--accent); white-space: nowrap; }

.ref-note { background: #fff8e1; border: 1px solid #f5d77a; border-radius: 10px; padding: 10px 14px; font-size: .86rem; margin: 10px 0; }
