:root{--bg:#f6f7fb;--card:#fff;--text:#1f2937;--muted:#6b7280;--line:#e5e7eb;--main:#2563eb;--red:#dc2626}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}.app{max-width:980px;margin:0 auto;padding:16px 12px 80px}.hero,.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0;box-shadow:0 3px 12px rgba(15,23,42,.04)}h1{font-size:24px;margin:0 0 10px}h2{font-size:18px;margin:10px 0}.hero p,.small,.meta{color:var(--muted);font-size:13px}.homeGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.bigBtn,.btn{border:0;border-radius:14px;background:var(--main);color:#fff;padding:12px 14px;font-weight:700;cursor:pointer}.bigBtn{min-height:70px;font-size:17px}.btn{font-size:14px;min-height:42px}.btn.blue{background:#0ea5e9}.btn.light{background:#10b981}.btn.gray{background:#64748b}.btn.red{background:var(--red)}.smallBtn{min-height:30px;padding:6px 10px;font-size:12px}.btnRow{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.split{display:flex;align-items:center;justify-content:space-between;gap:10px}.split.mini{margin-bottom:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.field label{display:block;font-size:12px;color:var(--muted);margin:0 0 4px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}select[multiple]{height:auto}textarea{min-height:80px}.sectionTitle{font-weight:800;margin:20px 0 8px;border-left:5px solid var(--main);padding-left:8px}.tableWrap{overflow-x:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{border-bottom:1px solid var(--line);padding:8px;text-align:left;white-space:nowrap}th{font-size:12px;color:var(--muted);background:#f8fafc}.raceCard{display:flex;gap:12px}.raceNo{width:54px;height:54px;border-radius:14px;background:#111827;color:white;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;flex:0 0 auto}.raceNo span{font-size:12px;margin-left:2px}.raceMain{flex:1;min-width:0}.raceTitle{font-weight:800;font-size:17px}.resultLine{padding:6px 0;border-bottom:1px dashed #eef2f7}.resultBlock{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px;margin:10px 0}.betRow{margin:6px 0}.modalBack{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:12px;z-index:10}.modal{max-width:720px;width:100%;max-height:90vh;overflow:auto;background:white;border-radius:18px;padding:16px}.notice{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:14px;padding:12px;margin:12px 0}.metric{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px}.metric b{font-size:22px}.err{color:var(--red)}@media(max-width:700px){.homeGrid,.grid2,.grid3{grid-template-columns:1fr}.split{align-items:flex-start}.raceCard{display:block}.raceNo{margin-bottom:10px}}

/* Rev907: レース情報入力 出馬表の横幅調整 */
.horseInputWrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.horseInputTable{table-layout:fixed;min-width:680px}
.horseInputTable .colNo{width:54px}
.horseInputTable .colName{width:210px}
.horseInputTable .colOdds{width:96px}
.horseInputTable .colPast{width:82px}
.horseInputTable th,.horseInputTable td{padding:8px 6px}
.horseNameInput{min-width:9.5em;white-space:nowrap;overflow:visible}
.oddsInput{min-width:5.6em;text-align:right;font-variant-numeric:tabular-nums}
.pastInput{min-width:4.2em;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:700px){.horseInputTable{min-width:660px}.horseInputTable .colName{width:205px}.horseInputTable .colOdds{width:94px}.horseInputTable .colPast{width:80px}}
/* Rev908: レース情報入力の出馬表は横スクロール時も馬番を固定表示 */
.horseInputWrap{position:relative}
.horseInputTable th:first-child,.horseInputTable td:first-child{
  position:sticky;
  left:0;
  z-index:3;
  background:#fff;
  box-shadow:2px 0 0 var(--line);
}
.horseInputTable thead th:first-child{
  z-index:5;
  background:#f8fafc;
}
.horseInputTable .c-no{
  font-weight:700;
  text-align:center;
}
