/* ウェブでオリモンを作る仕組み — 土台の見た目（読めることを守る）。見た目の案は looks/NN.css が上書きする（R-9・O-10 — 決まったらここに入れる） */
:root { --ink:#1c1b18; --paper:#fbf8f0; --card:#ffffff; --line:#6f6a5e; --accent:#1f5f3f; --warn:#8a3a12; }
* { box-sizing:border-box; }
html { font-size:18px; }
body { margin:0; padding:1.2rem 16px 3rem; background:var(--paper); color:var(--ink);
       font-family:"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif; line-height:1.7; }
main { max-width:40rem; margin:0 auto; }
h1 { font-size:1.4rem; margin:.2rem 0 .6rem; }
h2 { font-size:1.1rem; margin:1.6rem 0 .4rem; }
p { margin:.5rem 0; }
.card { background:var(--card); border:2px solid var(--line); border-radius:10px; padding:.9rem 1rem; margin:.8rem 0; }
.tag { display:inline-block; border:2px solid var(--warn); color:var(--warn); border-radius:999px; padding:0 .7rem; font-weight:bold; }
label { display:block; font-weight:bold; margin:.8rem 0 .2rem; }
select, textarea, input[type=text], input[type=password], input[type=number], input[type=date] {
  width:100%; min-height:48px; font:inherit; color:var(--ink); background:#fff; border:2px solid var(--line); border-radius:8px; padding:.4rem .6rem; }
button { min-height:48px; font:inherit; font-weight:bold; color:#fff; background:var(--accent); border:2px solid var(--accent);
         border-radius:8px; padding:.4rem 1.2rem; cursor:pointer; margin:.4rem .4rem .4rem 0; }
button.sub { color:var(--ink); background:#fff; border-color:var(--line); }
button.no { background:var(--warn); border-color:var(--warn); }
button:disabled { opacity:1; background:#55524a; border-color:#55524a; cursor:default; }
.msg { font-weight:bold; }
.msg.bad { color:var(--warn); }
a { color:var(--accent); font-weight:bold; overflow-wrap:anywhere; }
ul { padding-left:1.2rem; }
li { margin:.3rem 0; }
img.result { display:block; max-width:100%; height:auto; border:2px solid var(--line); border-radius:10px; background:#fff; }
.row { display:flex; flex-wrap:wrap; gap:.6rem; align-items:flex-end; }
.row > div { flex:1 1 9rem; }
.hero { margin:.2rem 0 .8rem; }
.kicker { margin:0; font-weight:bold; }
.lead { margin:.2rem 0 0; }
.form { counter-reset:step; }
.step { margin-top:1.1rem; }
.step h2 { font-size:1.1rem; margin:0 0 .1rem; }
.step[data-step] h2::before { counter-increment:step; content:counter(step) ". "; }
.send { margin-top:1.2rem; }
.oname b { font-size:1.5rem; margin:0 .5rem; }
.oname .olabel, .oname .osub { font-weight:bold; }
.save a { display:inline-block; min-height:48px; line-height:44px; padding:0 1.2rem; border:2px solid var(--accent); border-radius:8px; text-decoration:none; }
/* クリアコアの場面は、見た目の案が決まりを持つときだけ出す（土台では隠す） */
.stage, .replay { display:none; }
.birth { position:relative; }
.report { font-size:1.1rem; margin:.4rem 0; }
.scene:empty { display:none; }
.demo-bar { font-weight:bold; }
.lucky { margin:.2rem 0 0; }
.urlbox { margin:.6rem 0; }
.share { margin:.8rem 0; }
.share .sharelabel { font-weight:bold; margin-right:.6rem; }
.share a.xpost { display:inline-block; min-height:48px; line-height:44px; padding:0 1.2rem; border:2px solid var(--accent); border-radius:8px; text-decoration:none; margin:.2rem; }
.urlbox p { margin:.3rem 0; }
.mine li button.copy { margin-left:.6rem; }
.terms { margin:1rem 0; text-align:left; }
.terms h2 { font-size:1.1rem; margin:.4rem 0; }
.terms ol { padding-left:1.4rem; margin:.3rem 0; }
.terms li { margin:.4rem 0; }
.agree { display:flex; gap:.6rem; align-items:center; min-height:48px; margin:.6rem 0; }
.agree input { width:28px; height:28px; flex:none; }
.ts { margin:.4rem 0; min-height:0; }
.ts:empty { display:none; }
.lucky span { font-weight:bold; }
.demo-bar button { margin:.2rem; }
/* 確認ページ: OK と 出さない を 左右の端に離す（スマホで 押しまちがえない） */
.decide { display:flex; justify-content:space-between; gap:1.5rem; }
.decide button { margin:.4rem 0; min-height:56px; }
textarea { display:block; min-height:7rem; resize:vertical; line-height:1.6; }
.left { margin:.2rem 0 0; text-align:right; font-weight:bold; }
.hint { margin:.1rem 0 .4rem; }
