/* 色とフォントは brand.css（~/hazure-note/brand/ の写し）から取る */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--choco);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.6;
}
a { color: var(--turf-deep); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }

/* 頭 */
.top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 10px;
}
.top img { width: 44px; height: 44px; border-radius: 50%; }
.top .t1 { font-weight: 900; font-size: 18px; line-height: 1.2; }
.top .t1 b { color: var(--turf-deep); }
.top .t2 { font-size: 12px; color: var(--hood); }
.top button { margin-left: auto; }

.fake {
  background: var(--spark); color: var(--choco);
  font-weight: 800; font-size: 13px; text-align: center;
  border-radius: 10px; padding: 6px 10px; margin: 4px 0 12px;
}

/* 入口 */
.card {
  background: #fff; border: 2px solid var(--mist); border-radius: 16px;
  padding: 18px 16px; margin: 12px 0;
}
.gate { text-align: center; }
.gate img { width: 140px; height: auto; }
.gate h1 { font-size: 20px; font-weight: 900; margin: 6px 0 4px; }
.gate p { margin: 4px 0 14px; font-size: 14px; color: var(--hood); }
.gate input {
  width: 100%; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .08em;
  text-align: center; padding: 12px; border-radius: 12px;
  border: 2px solid var(--hood); background: var(--cream); color: var(--choco);
}
.gate input:focus { outline: 3px solid var(--spark); border-color: var(--turf-deep); }
.btn {
  display: inline-block; font: inherit; font-weight: 800; cursor: pointer;
  border: 0; border-radius: 999px; padding: 12px 22px; font-size: 16px;
  background: var(--turf); color: #fff; margin-top: 12px; width: 100%;
}
.btn:disabled { opacity: .6; }
.btn.sub {
  background: transparent; color: var(--hood); border: 2px solid var(--mist);
  padding: 4px 12px; font-size: 12px; width: auto; margin: 0;
}
.err { color: var(--hazure); font-weight: 800; font-size: 14px; min-height: 1.6em; margin: 8px 0 0; }

/* 場のタブ */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; position: sticky; top: 0; background: var(--cream); z-index: 2; }
.tabs button {
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  border: 2px solid var(--turf); color: var(--turf-deep); background: #fff;
  border-radius: 999px; padding: 6px 16px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--turf); color: #fff; }

/* レース */
.race { background: #fff; border: 2px solid var(--mist); border-radius: 16px; margin: 10px 0; overflow: hidden; }
.race summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center;
}
.race summary::-webkit-details-marker { display: none; }
.rno {
  grid-row: span 2; background: var(--choco); color: var(--cream);
  font-weight: 900; border-radius: 10px; padding: 4px 8px; font-size: 15px; min-width: 44px; text-align: center;
}
.rname { font-weight: 900; font-size: 15px; line-height: 1.3; }
.rmeta { font-size: 12px; color: var(--hood); grid-column: 2; }
.rtop { grid-row: span 2; font-size: 13px; font-weight: 800; color: var(--turf-deep); text-align: right; }
.rtop .mk { font-size: 18px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { white-space: nowrap; font-size: 11px; font-weight: 800; color: var(--hood); text-align: left; padding: 4px 8px; border-top: 1px solid var(--mist); }
td { padding: 6px 8px; border-top: 1px solid var(--mist); vertical-align: middle; }
td.mk { width: 2em; text-align: center; font-weight: 900; font-size: 16px; }
td.mk.m0 { color: var(--hazure); }
td.mk.m1 { color: var(--turf-deep); }
td.no { width: 2.2em; text-align: center; font-weight: 800; }
td.nm { font-weight: 800; }

.bar { display: flex; align-items: center; gap: 6px; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--turf); min-width: 2px; }
.bar span { font-size: 12px; font-weight: 800; white-space: nowrap; }

.note { font-size: 12px; color: var(--hood); margin: 18px 0 0; }
.foot {
  margin-top: 28px; background: var(--turf-deep); color: var(--cream);
  border-radius: 14px; padding: 14px 16px; font-size: 13px; text-align: center;
}
.foot b { font-weight: 900; }
.foot a { color: var(--cream); }

/* 免責・特商法 */
.doc h1 { font-size: 20px; font-weight: 900; }
.doc h2 { font-size: 16px; font-weight: 900; color: var(--turf-deep); margin-top: 24px; }
.doc dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 10px; font-size: 14px; }
.doc dt { font-weight: 800; color: var(--hood); }
.doc dd { margin: 0; }
.doc li { font-size: 14px; margin: 4px 0; }
.todo { background: var(--spark); border-radius: 4px; padding: 0 4px; font-weight: 800; }

[hidden] { display: none !important; }

/* 設計案（11-05）で足したもの */
.sec { font-size: 17px; font-weight: 900; margin: 22px 0 6px; }
.sec small { font-size: 11px; font-weight: 800; color: var(--hood); margin-left: 6px; }
.how { font-size: 13px; padding: 12px 14px; }
.how b { font-weight: 900; }
.how .g { color: var(--turf-deep); }
.star { font-style: normal; color: var(--gold); font-size: 12px; font-weight: 900; margin-right: 6px; }
.race.feat { border-color: var(--gold); }
td.od { width: 4.6em; text-align: right; font-weight: 800; color: var(--turf-deep); white-space: nowrap; }
td.pr { width: 30%; }
tr.why td { border-top: 0; padding-top: 0; font-size: 12px; color: var(--hood); }
td.plus { color: var(--gold); font-weight: 900; }
td.minus { color: var(--hazure); font-weight: 900; }
#results td, #results th { text-align: center; }
td.nm { font-size: 13px; white-space: nowrap; }
@media (max-width: 420px) { td.pr { width: 22%; } .bar span { font-size: 11px; } td, th { padding-left: 5px; padding-right: 5px; } }
td.now { width: 3.6em; text-align: right; font-weight: 800; white-space: nowrap; font-size: 13px; }
td.now.tbd { color: var(--hood); font-size: 10px; font-weight: 500; }
td.now.cheap { background: var(--spark); color: var(--choco); }
.bar i { flex: 0 0 auto; }
