/* 政治クイズで動物園 — 絵柄は輪郭なしの色面・丸い角（太い輪郭は 2026-10-25 に消した） */
:root{
  --bg:#f4f1ea; --card:#fffdf8; --ink:#2e2a26; --sub:#857c72; --ln:#3a2e2b; --soft:#ece6da;
  --green:#86c56f; --grass:#bfe0a0; --coin:#f4d35e; --warn:#f0a58c; --red:#c8553d; --water:#9fd0e6;
  --lit1:#fffbe9; --lit2:#efe6d3;
  --bw:3px; --sh:var(--ln); --edge:var(--ln);
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
}
/* 輪郭なし（2026-10-03〜・2026-10-25 に太い輪郭を消して、これだけに）：枠線を消し、影だけ淡く残す。
   html:root にする（2026-11-24）：10-25 に html[data-style="flat"] を html にしたら、上の :root に負けて黒い枠と濃い影が戻っていた */
html:root{--bw:0px;--sh:#d9cfbf;--edge:transparent;--bg:#efe9dd}
html .card,html .sheet-card,html .chip{box-shadow:0 2px 0 #e2d9ca}
html .choice:not(.is-right):not(.is-wrong):not(.is-dim){background:#f3ecdf}
html .card .btn:not(.main),html .sheet-card .btn:not(.main){background:#f3ecdf}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);overflow-x:hidden;
  font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic",-apple-system,sans-serif;
  font-size:15px;line-height:1.5;font-weight:600}
button{font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;cursor:pointer;touch-action:manipulation}
svg{display:block}
b{font-weight:800}
[hidden]{display:none !important}

/* ── 動物の動き（動きを減らす設定の人には止める） ── */
.zoo-animal{overflow:visible}
@media (prefers-reduced-motion:no-preference){
  .zoo-live .zoo-animal.is-genki, .zoo-pen-animal.is-genki{animation:zoo-hop .9s ease-in-out infinite}
  .zoo-live .zoo-spark, .zoo-pen-animal .zoo-spark{animation:zoo-twinkle 1.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
  /* ハシビロコウは元気でも動かない */
  .zoo-live .zoo-animal[data-animal="hashibiroko"], .zoo-pen-animal[data-animal="hashibiroko"]{animation:none}
}
.zoo-pen-animal{transform-box:fill-box;transform-origin:50% 100%}
@keyframes zoo-hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-5%)}}
@keyframes zoo-twinkle{50%{opacity:.35;transform:scale(.8)}}

/* ── 開園初日の試作 ── */
body.has-sheet{overflow:hidden}
.ic{width:1.25em;height:1.25em;flex:none;display:inline-block;vertical-align:-.22em}
.kari{font-style:normal;font-size:10px;font-weight:800;line-height:1;color:var(--sub);border:1.5px solid var(--sub);border-radius:5px;padding:1px 3px;margin-left:4px;vertical-align:.12em;white-space:nowrap}
.app{max-width:430px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:calc(10px + var(--safe-t)) 10px 0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:50px;padding:0 20px;border-radius:999px;background:var(--card);
  border:var(--bw) solid var(--ln);box-shadow:0 4px 0 var(--sh);font-size:16px;font-weight:800;white-space:nowrap}
.btn.main{background:var(--coin)}
.btn.small{min-height:38px;padding:0 12px;font-size:14px;box-shadow:0 3px 0 var(--sh)}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--sh)}
.btn:disabled{background:var(--soft);color:var(--sub);box-shadow:0 4px 0 #b9b0a3;border-color:#b9b0a3}
.btn small{font-size:12px;font-weight:600;margin-left:4px}
.chip{display:inline-flex;align-items:center;gap:3px;height:32px;padding:0 10px;border-radius:16px;background:var(--card);border:var(--bw) solid var(--ln);font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.chip.hearts{gap:1px;padding:0 7px}
.chip.hearts .ic{width:17px;height:17px}
.chip.good{background:#dff0cf}
.tag{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;background:var(--soft);font-size:12px;color:var(--sub)}
.tag.strong{background:var(--ln);color:#fffdf8}

/* 最初の1問 */
.first-top{text-align:center;padding:14px 0 12px}
.first-top h1{margin:0 auto;width:min(86%,320px)}
.first-top svg{width:100%;height:auto}
.first-logo{display:block;margin-top:2px;font-size:20px;font-weight:800;letter-spacing:.12em;color:#b9874f}
.card{background:var(--card);border:var(--bw) solid var(--ln);border-radius:22px;padding:16px 14px 18px}

/* クイズ */
.quiz{display:flex;flex-direction:column;gap:12px}
/* 答えたあと［つぎ］まで送るとき（app.js の showNext）、画面の下の端にぴったり付けず、影と「この問題、おかしい？」の頭まで見せる（2026-10-17） */
.quiz [data-act="next"]{scroll-margin-bottom:28px}
.q-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.q-head .tag:last-child{margin-left:auto}
.q-text{margin:2px 2px 4px;font-size:20px;line-height:1.45;font-weight:800}
.choices{display:flex;flex-direction:column;gap:10px}
.choice{min-height:54px;padding:8px 16px;border-radius:18px;background:var(--card);border:var(--bw) solid var(--ln);box-shadow:0 4px 0 var(--sh);font-size:17px;font-weight:800;text-align:left;line-height:1.35}
.choice:active{transform:translateY(3px);box-shadow:0 1px 0 var(--sh)}
.choice:disabled{box-shadow:none;transform:none}
/* 正解＝赤い丸／不正解＝青いバツ（2026-10-04 のぶさん「正解は赤で丸、不正解は青でバツ、が一般認識」。前は正解が緑・不正解が赤っぽい色で、印が無かった） */
.choice{position:relative}
.choice.is-right,.choice.is-wrong{padding-right:54px}
.choice.is-right{background:#fde2de;color:var(--ink)}
.choice.is-wrong{background:#dde9f8;color:var(--ink)}
.choice.is-right::after{content:"";position:absolute;right:16px;top:50%;width:26px;height:26px;margin-top:-13px;border-radius:50%;border:5px solid #e0483c;box-sizing:border-box}
.choice.is-wrong::after,.choice.is-wrong::before{content:"";position:absolute;right:15px;top:50%;width:28px;height:5px;margin-top:-2.5px;border-radius:3px;background:#3a78cf}
.choice.is-wrong::after{transform:rotate(45deg)}
.choice.is-wrong::before{transform:rotate(-45deg)}
.choice.is-dim{color:var(--sub);border-color:#b9b0a3}
.hint{align-self:center;color:var(--ink);font-size:14px;padding:8px 6px;text-underline-offset:3px}
.hint.yt-link{display:inline-flex;align-items:center;gap:6px}
.hint .ic.yt{width:22px;height:22px;flex:none}
.result{border-radius:16px;padding:10px 14px;background:var(--soft)}
.result.ok{background:#fdeeeb}
.result.ng{background:#e9f0fa}
.result b{font-size:17px;display:inline-flex;align-items:center;gap:8px}
.result.ok b{color:#d63d31}
.result.ng b{color:#2f6ac0}
.result.ok b::before{content:"";width:18px;height:18px;border-radius:50%;border:4px solid #e0483c;box-sizing:border-box}
.result.ng b::before{content:"✕";font-size:19px;line-height:1;font-weight:800}
.result p{margin:2px 0 0;font-size:14px;font-weight:600}
.verdict-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--sub)}
.verdict-row span{margin-right:auto}
.verdict-row .chip{height:30px;font-size:12px}
.verdict-row .chip.is-on{background:var(--ink);color:#fffdf8}

/* 園 */
.top{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 2px 10px}
.chips{display:flex;gap:6px}
.park{position:relative}
.park svg{width:100%;height:auto}
.zoo-pen[data-animal],.zoo-gate-sign{cursor:pointer}
.notice{align-self:center;margin:0 0 8px;padding:4px 12px;border-radius:14px;background:var(--warn);border:var(--bw) solid var(--ln);font-size:13px}
.is-open{padding-bottom:calc(96px + var(--safe-b))}
.bottom{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:430px;bottom:0;z-index:10;display:flex;justify-content:center;gap:10px;
  padding:10px 12px calc(14px + var(--safe-b));background:linear-gradient(transparent,var(--bg) 34%)}
.bottom .btn{flex:1;max-width:190px;min-height:56px}

/* 紙 */
.sheet{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet-bg{position:absolute;inset:0;background:rgba(46,42,38,.45)}
.sheet-card{position:relative;width:100%;max-width:430px;max-height:92dvh;overflow:auto;background:var(--card);border:var(--bw) solid var(--ln);border-bottom:0;
  border-radius:26px 26px 0 0;padding:18px 14px calc(22px + var(--safe-b));animation:sheet-up .22s ease-out}
.sheet-card.center{text-align:center}
@keyframes sheet-up{from{transform:translateY(40px);opacity:0}}
@media (prefers-reduced-motion:reduce){.sheet-card{animation:none}}
.sheet h2{margin:0;font-size:20px;font-weight:800}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 12px}
.sheet p{margin:6px 0 0;font-size:14px}
.sheet .row{display:flex;gap:10px;margin-top:16px}
.sheet .row .btn{flex:1}
.sheet input{width:100%;height:50px;margin-top:12px;padding:0 14px;border-radius:16px;border:var(--bw) solid var(--ln);background:#fff;font:inherit;font-size:16px;color:var(--ink)}
.sheet .quiz{padding-top:2px}
.sheet .quiz .q-head{padding-right:40px}
.x{position:absolute;right:10px;top:10px;width:38px;height:38px;border-radius:50%;background:var(--card);border:var(--bw) solid var(--ln);font-size:20px;font-weight:800;line-height:1;display:grid;place-items:center}

.arrive{display:flex;flex-direction:column;align-items:center;gap:10px}
.arrive-pic{width:min(72%,260px);border-radius:22px;background:linear-gradient(var(--lit1),var(--lit2));border:var(--bw) solid var(--ln);overflow:hidden}
.arrive-pic svg,.cage-pic svg,.cat-pic svg,.mail-pic svg,.oazuke-pic svg{width:100%;height:auto}
.arrive .btn{min-width:200px;margin-top:6px}
.arrive .arrive-share,.cage .cage-share{margin-top:8px}
.arrive-ask{margin:6px 0 0;font-weight:700}
.arrive .name-field{width:min(100%,300px)}
.name-field{display:flex;align-items:center;gap:8px;margin-top:12px}
.sheet .name-field input{flex:1;min-width:0;margin-top:0}
.name-field span{font-weight:800;white-space:nowrap}
.sheet .name-field input::placeholder{color:#857c72;font-weight:600}

.mail{text-align:center}
.mail-pic{width:92px;margin:0 auto 4px}
.mail-msg{color:var(--red)}

.done{display:flex;flex-direction:column;align-items:center;gap:10px}
.done .score{font-size:16px;margin:0}
.done .score b{font-size:26px}
.done .perfect{color:var(--red);font-size:28px}
@media (prefers-reduced-motion:no-preference){.done .perfect{animation:gain-pop .6s ease-out}}
.done .btn.done-share{display:inline-flex;align-items:center;justify-content:center;gap:8px}.done .btn.done-share .ic{width:20px;height:20px}
/* 全問正解の紙吹雪と、園の動物の跳ね（2026-10-22）。動きを減らす設定の人には出さない */
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.confetti i{position:absolute;top:-16px;width:8px;height:14px;border-radius:2px;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .confetti i{animation:confetti-fall linear forwards}
  .park.is-cheer .zoo-pen-animal{animation:zoo-cheer .6s ease-in-out 4}
  .park.is-cheer .zoo-pen-animal[data-animal="hashibiroko"]{animation:none}
}
@keyframes confetti-fall{0%{opacity:1;transform:translateY(0) rotate(0)}85%{opacity:1}100%{opacity:0;transform:translateY(105vh) rotate(720deg)}}
@keyframes zoo-cheer{0%,100%{transform:translateY(0)}45%{transform:translateY(-22%)}}
.oazuke{display:flex;align-items:center;gap:8px;padding:6px 16px 6px 8px;border-radius:18px;background:var(--soft)}
.oazuke-pic{width:76px;filter:grayscale(.85);opacity:.7}
.oazuke p{margin:0;font-size:15px}
.oazuke.is-ready .oazuke-pic{filter:none;opacity:1}
.goal-ask{margin:0;font-size:15px;color:var(--sub)}
.done .row{display:flex;gap:8px;justify-content:center;width:100%;margin-top:0}
.done .row .btn{min-width:0;flex:1;max-width:200px}
.cat-item{position:relative}
.cat-item.is-goal{background:linear-gradient(#fff6d6,#f6e6b4)}
.goal-tag{position:absolute;right:8px;top:8px;font-size:11px;font-weight:800;color:#fffdf8;background:var(--ink);border-radius:8px;padding:1px 6px}
.done .btn{min-width:200px;margin-top:6px}

.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}   /* 1行3つ（2026-10-21 のぶさん「1列2種から3種に」） */
.cat-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 8px 12px;border-radius:18px;border:var(--bw) solid var(--ln);background:linear-gradient(var(--lit1),var(--lit2))}
.cat-pic{position:relative;width:78%}
.cat-pic .have{position:absolute;left:-8px;top:0;min-width:28px;height:22px;padding:0 6px;border-radius:11px;background:var(--card);border:2px solid var(--edge);font-size:12px;display:grid;place-items:center}
.cat-item{min-width:0}.cat-item .btn{width:100%;padding:0 4px;white-space:nowrap}   /* 3列が中身で押し広げられて右にはみ出していた（2026-11-05） */
.foot{text-align:right;color:var(--sub);font-size:12px !important}

.cage-pic{border-radius:22px;background:linear-gradient(var(--lit1),var(--lit2));border:var(--bw) solid var(--ln);overflow:hidden;margin:0 40px 14px}
.cage .btn{width:100%}

.debug{position:static;width:fit-content;margin:6px auto 0;display:flex;gap:4px;align-items:center;font-size:11px;background:rgba(255,253,248,.92);border:2px solid var(--edge);border-radius:10px;padding:3px 5px}
.debug button{font-size:11px;border:1.5px solid var(--edge);border-radius:7px;padding:2px 6px;background:#fff}

.no-anim .sheet-card{animation:none}
.catalog .sheet-head,.cage .sheet-head{padding-right:0}
.catalog .sheet-head{margin-right:46px}

/* 助っ人（檻がいっぱいのときの入れ替え・2026-10-03） */
.helper h2{margin:0 0 4px}
.helper p{margin:0 0 12px;font-size:14px;color:var(--sub)}
.helper-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.helper-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px 8px;border-radius:16px;background:#f3ecdf;font-size:12px;font-weight:800;border:var(--bw) solid var(--ln)}
.helper-pic{width:70%}
.helper-pic svg{width:100%;height:auto}
.arrive-note{margin:0 0 8px;font-size:13px;color:var(--sub);text-align:center}

/* 箱庭をもう1つ（課金・準備中） */
.more-park small{display:block;font-size:12px;font-weight:500;margin-top:2px}
.more-park{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:14px 16px;border-radius:18px;background:var(--soft);color:var(--sub);border:var(--bw) dashed #b9b0a3}

/* 檻を大きく映す（2026-10-04） */
.cage-zoom{border-radius:20px;overflow:hidden;margin:0 0 12px}
.cage-zoom svg{width:100%;height:auto}
.cage-since{margin:2px 0 0;font-size:15px}
.cage-since b{margin-left:8px;font-size:13px;color:var(--sub);font-weight:800}
.cage-more{margin:2px 0 0;font-size:12px;color:var(--sub)}
.cage .btn.main{margin-top:12px}

/* 呼ぶ前の確認（2026-10-04） */
.ask{display:flex;flex-direction:column;align-items:center;gap:8px}
.ask-pic{width:120px}
.ask-pic svg{width:100%;height:auto}
.ask-text{margin:0;font-size:17px;text-align:center}
.ask-text b{font-size:19px}
.ask-note{margin:0;font-size:13px;color:var(--sub);text-align:center}
.ask .row{width:100%;justify-content:center;margin-top:8px}
.ask .row .btn{flex:1;max-width:180px}

/* 通貨の硬貨（数字のすぐ後ろ） */
.pval{display:inline-block;white-space:nowrap}
.pcoin{display:inline-block;margin-left:1px}
.pcoin .ic{width:1.05em;height:1.05em;vertical-align:-.18em}
.btn.main .pcoin circle{fill:#fffbe6}

/* きのうの入園料（2026-10-04） */
.fee{display:flex;flex-direction:column;align-items:center;gap:12px}
.fee-text{margin:0;font-size:17px;text-align:center}
.fee-text b{font-size:22px;margin:0 2px}
.fee .btn{min-width:220px}
.fee .btn.fee-share{display:inline-flex;align-items:center;justify-content:center;gap:8px}.fee .btn.fee-share .ic{width:20px;height:20px}   /* 入園者の数つきでシェア（2026-10-22） */
.sheet p.fee-got{margin:8px 0 0;font-size:30px;line-height:1.2;font-weight:800;text-align:center}   /* 受け取ったあと：もらった P（2026-10-09） */

/* 正解でもらった P（2026-10-04） */
.result{position:relative}
.gain{position:absolute;right:14px;top:9px;font-size:18px;font-weight:800;color:var(--ink);background:var(--coin);border-radius:14px;padding:1px 10px}
.gain .pcoin circle{fill:#fffbe6}
@media (prefers-reduced-motion:no-preference){.gain{animation:gain-pop .5s ease-out}}
@keyframes gain-pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.25);opacity:1}100%{transform:scale(1)}}

/* ── サーバーとつながったときだけ出る物（2026-10-08。登録の紙・メニュー・知らせ） ── */
.link{display:block;margin:0 auto;min-height:38px;padding:0 12px;font-size:13px;font-weight:700;color:var(--sub)}
.link.door{margin-top:14px;text-decoration:underline;text-underline-offset:3px}
.link.wipe{margin-top:18px;font-size:12px;color:var(--red)}
.chip.menu-btn{width:32px;padding:0;justify-content:center}
.chip.menu-btn .ic{width:18px;height:18px;vertical-align:0}
/* 赤い丸＝読んでいないお知らせ（メニューのボタンと「お知らせ」のボタン・2026-10-19） */
.chip.dot,.btn.dot{position:relative}
.chip.dot::after,.btn.dot::after{content:"";position:absolute;right:-5px;top:-6px;width:12px;height:12px;border-radius:50%;background:var(--red);border:2px solid var(--card)}
.btn.dot::after{right:14px;top:50%;margin-top:-6px}
/* お知らせの紙（1件ずつ枠＋赤い見出し＋日付＋文章・Caudex Days と同じ形） */
.news{display:flex;flex-direction:column;gap:12px}
.news h2{text-align:center}
.upd{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.upd li{padding:12px 14px;border-radius:16px;background:#f3ecdf;text-align:left}   /* 枠＝塗りの箱（POLIZOO は輪郭なし・これまでの問題の行と同じ色） */
.upd .uh{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}
.upd .uh b{color:var(--red);font-size:14px;font-weight:800}
.upd time{color:var(--sub);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.sheet .upd p{margin:0;font-size:15px;line-height:1.6;font-weight:600}
.toast{position:fixed;left:50%;top:calc(12px + var(--safe-t));transform:translateX(-50%);z-index:30;width:max-content;max-width:calc(100% - 24px);padding:8px 16px;border-radius:18px;
  background:var(--ink);color:#fffdf8;font-size:14px;font-weight:800;text-align:center}
/* 登録の紙。キーボードが出ているあいだは、紙をキーボードの上に置く（--kb・--vvh は app.js の fitKeyboard が入れる） */
.sheet.s-reg{bottom:var(--kb,0px)}
.sheet.s-reg .sheet-card{max-height:calc(var(--vvh,100dvh) * .94)}
.reg{display:flex;flex-direction:column;gap:10px;text-align:center}
.reg h2{font-size:18px;line-height:1.4}
.ph{display:inline-block}                       /* 句の切れ目でだけ折り返す */
.sheet .reg input{margin-top:2px}
.sheet .reg input.code{text-align:center;font-size:24px;letter-spacing:.3em;font-weight:800;font-variant-numeric:tabular-nums}
.sheet .reg input.code::placeholder{font-size:15px;letter-spacing:0;font-weight:600}
.sheet .reg input::placeholder{color:#b3aa9e;font-weight:600}
.sheet .reg p{margin:0}
.reg .btn{width:100%;margin-top:4px}
.sheet p.fine{margin:0;font-size:12px;line-height:1.6;color:var(--sub)}
.sheet p.fine.from{color:var(--ink);margin-top:-4px}   /* どこからメールが届くか：うすい字にしない・欄のすぐ下 */
.sheet p.fine.rule{font-size:11px;font-weight:500}
.sheet p.fine.menu-ver{text-align:center;font-size:11px;margin-top:4px}   /* 版の番号（メニューの一番下） */
.fine a{color:var(--ink);font-weight:700;text-underline-offset:3px;padding:6px 0;margin:-6px 0}
.sheet p.reg-err{margin:0;font-size:13px;color:var(--red);text-align:center}
.sheet p.reg-sent{font-size:14px;word-break:break-all}
/* メニュー */
.menu{display:flex;flex-direction:column;gap:10px;text-align:center}
.menu h2{margin-bottom:4px}
.menu .btn{width:100%}
.menu .home-note{margin:-4px 0 2px}
/* ホーム画面に追加の紙（2026-10-24・Caudex Days の .steps の写し） */
.home .lead{margin:0;font-size:14px;font-weight:700}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
.steps li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:16px;border:var(--bw) solid var(--ln);background:var(--bg);font-size:15px;min-width:0}
.steps .num{flex:none;width:24px;height:24px;border-radius:50%;background:var(--coin);border:2px solid var(--ln);display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:800;line-height:1}
.steps .sic{flex:none;width:42px;height:42px;border-radius:12px;background:var(--card);border:2px solid var(--ln);display:grid;place-items:center}
.steps .sic .ic{width:26px;height:26px}
.home-after{display:flex;align-items:center;gap:8px;margin:0;padding:9px 12px;border-radius:14px;background:var(--soft);font-size:13px;line-height:1.45;text-align:left}
.home-after .ic{flex:none;width:24px;height:24px}
.sheet p.menu-mail{margin:0;font-size:15px;word-break:break-all}
/* お知らせメールのスイッチ（フォームの部品は、絵柄の決まり＝輪郭なしより見やすさが先：線と色ではっきり出す） */
.sw-row{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:0 12px 0 16px;border-radius:16px;background:var(--card);border:2px solid var(--ln);font-size:15px;font-weight:700;color:var(--ink);text-align:left}
.sw-name{flex:1}
.sw-word{font-size:13px;min-width:2.4em;text-align:right}
.sw{position:relative;flex:none;width:52px;height:30px;border-radius:999px;background:#d9d2c4;border:2px solid var(--ln);transition:background .15s}
.sw i{position:absolute;left:2px;top:2px;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid var(--ln);box-sizing:border-box;transition:transform .15s}
.sw-row[aria-checked="true"] .sw{background:#86c56f}
.sw-row[aria-checked="true"] .sw i{transform:translateX(22px)}
.confirm{border-radius:16px;background:var(--soft);padding:12px 12px 14px}
.sheet .confirm p{margin:0 0 4px;text-align:center}
.sheet .confirm .row{margin-top:10px}
/* 紙の中のボタンはうすい色にそろえている（上の行）。確かめのボタンは、それより強く色を付ける */
.btn.warn,html .sheet-card .btn.warn{background:var(--warn)}
.btn.danger:not(:disabled),html .sheet-card .btn.danger:not(:disabled){background:var(--red);color:#fff}
.wipe-ask .ask-note{font-size:14px;color:var(--ink)}
/* 入力欄は、絵柄にかかわらず、はっきり見せる（2026-10-08 のぶさん「入力欄に関しては『輪郭なし』に限らないにしてUXを優先して欲しい」）。
   濃い線で囲む・中は白・選んでいるあいだは黄色の光の輪。輪郭なしの絵柄で線を消す決まり（--bw:0）は、入力欄には当てない */
.sheet input,html .sheet input{border:2px solid #6b5f55;background:#fff;box-shadow:inset 0 2px 0 #efe9dd}
.sheet input:focus,html .sheet input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px #f8d857}
.sheet .reg input::placeholder,html .sheet .reg input::placeholder{color:#857c72}
/* ゲームの進め方 */
.howto{display:flex;flex-direction:column;gap:12px}
.howto h2{text-align:center}
.howto ol{margin:0;padding:0;list-style:none;counter-reset:hw;display:flex;flex-direction:column;gap:10px}
.howto li{counter-increment:hw;position:relative;padding-left:34px;font-size:15px;line-height:1.5;font-weight:600}
.howto li::before{content:counter(hw);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:12px;background:var(--coin);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}
.sheet p.howto-goal{margin:2px 0 0;text-align:center;font-size:17px;font-weight:800}
.howto .btn{width:100%}
/* これまでの問題 */
.hist{display:flex;flex-direction:column;gap:12px}
.hist h2{text-align:center}
.hist-list{display:flex;flex-direction:column;gap:8px}
.hist-row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 12px;border-radius:16px;background:#f3ecdf;text-align:left;font-size:14px;font-weight:700;line-height:1.4}
.hist-row .hq{flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hist-row .hd{flex:none;font-size:12px;font-weight:600;color:var(--sub);font-variant-numeric:tabular-nums}
/* 一覧の○×の印。入口のページ（home.html）の main.hm と名前がぶつかって、入口が幅22pxに潰れた（2026-10-08・ver 0.1.50）ので qmark にした */
.qmark{flex:none;position:relative;width:22px;height:22px}
.qmark.ok{border-radius:50%;border:4px solid #e0483c;box-sizing:border-box}
.qmark.ng::before,.qmark.ng::after{content:"";position:absolute;left:0;top:50%;width:22px;height:4px;margin-top:-2px;border-radius:2px;background:#3a78cf}
.qmark.ng::before{transform:rotate(45deg)}.qmark.ng::after{transform:rotate(-45deg)}
.hist-one .choice{display:block;position:relative}
.hist-one .btn{width:100%;margin-top:10px}
.menu .btn+.btn{margin-top:0}
/* 園をシェア（2026-10-13）。下の列の右はしの丸いボタンと、画像の下見つきの紙 */
.bottom .btn.share-btn{flex:0 0 56px;max-width:56px;padding:0}
.bottom .btn.share-btn .ic{width:24px;height:24px}
.share{display:flex;flex-direction:column;gap:10px;text-align:center}
.share h2{margin-bottom:2px}
.share .btn{width:100%}
.share .btn+.btn{margin-top:0}
.share-img{display:grid;place-items:center;min-height:180px;border-radius:14px;background:var(--soft);overflow:hidden}
.share-img img{display:block;width:auto;max-width:100%;max-height:44dvh}

/* ── LP（トップ。初めての人に出す・2026-10-14）。出し分けは index.html の head（<html> に top-lp か game の印）。
   印が付かなかったとき（script が動かない）は LP もゲームも出る＝ゲームは読まれないので、LP だけが見える ── */
html.game #lp{display:none}
html.top-lp #app,html.top-lp #sheet,html.top-lp .debug,html.top-lp .proto-tag{display:none!important}
html.top-lp body{background:#bfe0a0}
html.top-lp .toast{top:calc(70px + var(--safe-t))}   /* LP の知らせ（「消しました」・lp.js の wipedNote）は、上の帯（ロゴ・ログイン）にかぶせない */
#lp{overflow-x:hidden;overflow-x:clip}   /* clip＝はみ出しは切るが、送りの入れ物にはしない（hidden だと、上の帯が付いてこない） */
.lp{max-width:960px;margin:0 auto;padding:0 16px 56px;font-weight:500;line-height:1.6;color:var(--ink)}
.lp img{display:block;max-width:100%;height:auto}
.lp-top{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 0 10px;position:sticky;top:0;z-index:5}
.lp-top::before{content:"";position:absolute;top:0;bottom:0;left:-100vmax;right:-100vmax;z-index:-1;background:rgba(191,224,160,.78);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.lp-top img{height:36px;width:auto}
.lp-btn{display:inline-block;background:var(--coin);color:var(--ink);font-weight:800;text-decoration:none;border:3px solid var(--ln);border-radius:999px;padding:12px 34px;font-size:18px;box-shadow:0 4px 0 var(--ln)}
.lp-btn:active{transform:translateY(2px);box-shadow:0 2px 0 var(--ln)}
.lp-btn.s{padding:6px 18px;font-size:14px;box-shadow:0 3px 0 var(--ln)}
.lp-nav{display:flex;align-items:center;gap:16px;flex-shrink:0}
.lp-nav a{white-space:nowrap}
.lp-login{color:var(--ln);font-weight:800;font-size:14px;text-decoration:underline;text-underline-offset:3px}
@media (max-width:360px){.lp-top img{height:28px}.lp-nav{gap:10px}.lp-nav .lp-btn.s{padding:6px 14px}}
.lp-hero{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:24px;margin-top:18px}
.lp-hero h1{margin:0}
.lp-hero h1 img{width:100%;max-width:520px}
.lp-hero-txt p{margin:6px 0 22px;font-size:20px;font-weight:800}
.lp-card{background:#fff;border-radius:24px;padding:18px 20px 20px;box-shadow:0 6px 0 rgba(58,46,43,.12);max-width:320px;justify-self:end;width:100%;box-sizing:border-box}
.lp-card small{display:block;font-size:14px;font-weight:800;color:var(--sub)}
.lp-card b{display:block;font-size:18px;margin:4px 0 10px}
.lp-card span{display:block;background:#f4f1ea;border-radius:999px;padding:8px 18px;margin-top:8px;font-weight:800;position:relative}
.lp-card span.on{background:#ffe9a8}
.lp-card span.on::after{content:"";position:absolute;right:16px;top:50%;width:16px;height:16px;margin-top:-11px;border:4px solid #e0703c;border-radius:50%}
.lp-crowd{position:relative;margin-top:18px}
.lp-crowd svg{display:block;width:100%;height:auto;position:relative;z-index:1}
.lp-crowd::after{content:"";position:absolute;left:50%;margin-left:-100vw;width:200vw;top:56%;bottom:0;background:#f0e0b8}
.lp h2{font-size:22px;font-weight:800;text-align:center;margin:44px 0 16px}
.lp-how{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;counter-reset:n;padding:0;margin:0;list-style:none}
.lp-how li{counter-increment:n;background:var(--card);border-radius:20px;padding:16px 14px;text-align:center;font-weight:700}
.lp-how li::before{content:counter(n);display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;line-height:1;margin:0 auto 8px;border-radius:50%;background:var(--coin);font-weight:800}
.lp-goal{text-align:center;font-size:18px;font-weight:800;margin:16px 0 0}
.lp-zoo{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.lp-zoo figure{width:calc((100% - 50px) / 6)}   /* 22種は6列・3列で割り切れない＝最後の行を真ん中に寄せる（2026-10-21） */
.lp-zoo figure{margin:0;background:#e4f2d6;border-radius:18px;padding:8px 4px 10px;text-align:center}
.lp-pic{display:block;width:84%;margin:0 auto}
.lp-pic svg{display:block;width:100%;height:auto}
.lp-zoo figcaption{font-weight:800;font-size:13px;line-height:1.3}
.lp-src{background:var(--card);border-radius:20px;padding:18px;max-width:560px;margin:0 auto;text-align:center;font-weight:700}
.lp-src p{margin:0}
.lp-src p+p{margin-top:6px;color:var(--sub);font-size:14px}
.lp-src a{color:var(--ink)}
.lp-yt{display:inline-block;width:1.4em;height:1em;vertical-align:-.12em;margin-right:6px}
.lp-go{text-align:center;margin-top:44px}
.lp-lead{position:relative;max-width:560px;margin:96px auto 0;background:#fff;border-radius:24px;padding:26px 14px 22px;box-shadow:0 6px 0 rgba(58,46,43,.12);text-align:center;font-size:19px;font-weight:800;line-height:1.7}
.lp-lead p{margin:0}
.lp-lead span{display:inline-block}
.lp-peek{position:absolute;left:0;right:0;top:-47px;display:flex;justify-content:center;gap:4px;pointer-events:none}
.lp-peek svg{width:74px;height:74px;display:block}
.lp-lead+.lp-go{margin-top:20px}
.lp-foot{text-align:center;font-size:13px;color:var(--sub);margin-top:40px;padding-bottom:calc(16px + var(--safe-b))}
.lp-foot a{color:var(--sub);margin:0 8px}
.lp-heart{background:var(--card);border-radius:20px;padding:16px 14px;text-align:center;margin:16px auto 0;max-width:560px}
.lp-hearts{display:flex;justify-content:center;gap:4px;margin-bottom:6px}
.lp-hearts svg{width:26px;height:26px}
.lp-heart b{display:block;font-size:18px}
.lp-heart p{margin:2px 0 0;font-size:15px;color:var(--sub)}
.lp-heart p span{display:inline-block}   /* 文の途中で折り返さない（「す。」だけが次の行に落ちた） */
.lp-more{text-align:center;font-size:18px;font-weight:800;margin:16px 0 0}
@media (max-width:700px){
  .lp-hero{grid-template-columns:1fr;gap:18px}
  .lp-hero-txt p{font-size:17px}
  .lp-card{justify-self:center}
  .lp-how{grid-template-columns:1fr 1fr}
  .lp-zoo figure{width:calc((100% - 20px) / 3)}
  .lp-crowd svg{width:180%;margin-left:-40%}   /* スマホでは行列を大きく（両はしは切る） */
  .lp-crowd{overflow:hidden;margin-left:-16px;margin-right:-16px}
  .lp h2{font-size:20px}
}

/* 園を横に2つ並べる（2026-10-16）：1つめ＝いまの園／2つめ＝準備中の敷地。手本＝Caudex Days の .racks・.rack */
.lands{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lands::-webkit-scrollbar{display:none}
.land{position:relative;flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:block;text-align:inherit}
.land.soon svg{opacity:.42;filter:grayscale(.6);pointer-events:none}
.soon-tag{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 22px;border-radius:18px;
  background:var(--card);border:var(--bw) dashed var(--ln);font-size:16px;font-weight:800;white-space:nowrap;box-shadow:0 4px 0 var(--sh)}
.soon-tag small{font-size:12px;font-weight:700;color:var(--sub)}
.ldots{display:flex;justify-content:center;padding-top:2px}
.ldot{width:36px;height:26px;display:grid;place-items:center}   /* 押せる広さは指の大きさ。見える丸は小さく */
.ldot::before{content:"";width:10px;height:10px;border-radius:50%;border:2px solid var(--ln);background:var(--card)}
.ldot.on::before{background:var(--ln)}
button.more-park{width:100%;text-align:left}

/* ご要望・不具合報告の紙（2026-10-16） */
.sheet .voice textarea{width:100%;min-height:120px;padding:12px 14px;border-radius:16px;border:2px solid #6b5f55;background:#fff;box-shadow:inset 0 2px 0 #efe9dd;
  font:inherit;font-size:16px;line-height:1.6;color:var(--ink);resize:vertical}
.sheet .voice textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px #f8d857}
.sheet .voice textarea::placeholder{color:#857c72;font-weight:600}
.sheet .voice h2{padding:0 40px}
.sheet .voice p.lead{margin-top:-4px;color:var(--ink)}
.voice .pick{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.voice .shot{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--soft);font-size:13px;font-weight:700}
.voice .shot img{width:48px;height:48px;object-fit:cover;border-radius:8px;border:2px solid var(--ln)}
.voice .shot .link{margin:0 0 0 auto}
/* 問題への指摘のリンク（答えたあと・これまでの問題の1問。2026-10-16 夜） */
.link.qbad{margin-top:-2px;text-decoration:underline;text-underline-offset:3px}

/* シェアの紙：きのうの入園者と上位◯%（2026-10-16） */
.share-rank{margin:0 0 4px;text-align:center;font-size:15px;font-weight:800;color:var(--ink)}
.done .btn.done-share{width:100%;max-width:408px;min-height:60px;font-size:18px}   /* 全問正解の日はシェアが主役（2026-10-25） */
/* iOS 26 のホーム画面アプリの上下のぼかし対策（2026-11-24・Apple の公式の方法ではない）。
   上下の端に何も描かない固定の帯（背景を文字に切り抜く・指は当たる）＋上の列を 24px 下げてぼかしの外へ（ホーム画面アプリの iPhone だけ）。
   0.1.165〜0.1.172 の試し（帯を塗る・背景の色・上の列を固定・スクロールを止める・透明の層など）は、古いホーム画面アプリでどれも効かなかった。
   ホーム画面に追加し直したら消えた＝iPhone は追加したときの状態を持ち続ける。追加し直したあとで、この形（試しの 0）ならくっきり・全部外すとぼやける、をのぶさんが確かめた。
   帯と 24px のどちらが効いているかは分けていない。追加し直したあとで他の形は試していない */
.edge-strip{display:none}
@supports (-webkit-touch-callout:none){@media (display-mode:standalone),(display-mode:fullscreen){
html.game .edge-strip{display:block;position:fixed;left:0;right:0;background-color:var(--bg);-webkit-background-clip:text;background-clip:text;z-index:99}
html.game .edge-strip.top{top:0;height:max(var(--safe-t),11px)}
html.game .edge-strip.bot{bottom:0;height:max(var(--safe-b),11px)}
html.game .app{padding-top:calc(34px + var(--safe-t))}
html.game .toast{top:calc(36px + var(--safe-t))}
}}
