/* styles.css : 全国高校寄付プロジェクト
 * 色のトークン・部品は「ゆるキャラ育成キャンペーン 試作」(2026-11-19) から引き継ぎ */
:root{
  --bg:#f6f7f8; --surface:#ffffff; --text:#1d2329; --muted:#5b6670; --line:#d9dee3; --line-strong:#b9c1c9;
  --accent:#1f5f99; --hl:#d9480f; --bar:#ee8a35; --bar-bg:#fbe7d2; --row-hover:#eef3f8;
  --c1:#fff8d6; --c2:#ffec8a; --c3:#ffd23f; --c4:#ffa63d; --c5:#ff7a59; --c6:#f0447c;
  --map-stroke:#ffffff; --mine-stroke:#1d2329;
  --chara-bg:#fff6e8; --chara-ink:#4a3426; --chara-sub:#7a5a44;
  --note-bg:#fff4e5; --note-line:#f0b37a; --note-text:#5a3510;
  --ok:#1e7a3c; --ok-bg:#e8f5ec; --ng:#b3261e; --ng-bg:#fdecea;
  --btn:#1d2329; --btn-text:#ffffff; --btn2-bg:#ffffff; --focus:#1f5f99;
  --demo-bg:#f1f3f5; --drop-bg:#fafbfc;
  --tk-bg:#1a1410; --tk-text:#ffd9a8; --tk-hl:#ffb347; --tk-sub:#c9a27a;
  --line-green:#06c755;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#14181c; --surface:#1b2026; --text:#e6eaee; --muted:#9aa5af; --line:#2c333b; --line-strong:#434c56;
    --accent:#7fb3e6; --hl:#ff8a4c; --bar:#e08a3a; --bar-bg:#3a2616; --row-hover:#222a33;
    --c1:#3a2616; --c2:#5c3413; --c3:#874814; --c4:#b8621a; --c5:#e08a3a; --c6:#f7c08a;
    --map-stroke:#14181c; --mine-stroke:#ffffff;
    --note-bg:#2a2017; --note-line:#8a5a2c; --note-text:#f3d9bd;
    --ok:#7fd69b; --ok-bg:#16291d; --ng:#ff9b92; --ng-bg:#2e1a19;
    --btn:#e6eaee; --btn-text:#14181c; --btn2-bg:#1b2026; --focus:#7fb3e6;
    --demo-bg:#181d22; --drop-bg:#171b20;
    color-scheme: dark;
  }
}
*{box-sizing:border-box}
html,body{margin:0}
html{overflow-x:hidden}
body{background:var(--bg);color:var(--text);font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,sans-serif;line-height:1.65;-webkit-text-size-adjust:100%;overflow-wrap:anywhere}
.wrap{max-width:1180px;margin:0 auto;padding-block:20px 40px;padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
[hidden]{display:none !important}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
a{color:var(--accent)}
.skip{position:absolute;left:-9999px;top:0;background:var(--surface);padding:8px 12px;z-index:10}
.skip:focus{left:8px;top:8px}
h2{font-size:18px;margin:0 0 12px;font-weight:700}
h3{font-size:16px;margin:0 0 8px;font-weight:700}
.muted{color:var(--muted)}
.small{font-size:14px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;min-width:0;margin-bottom:20px}
.panel:focus{outline:none}

/* ===== ヘッダー ===== */
.site-head{border-bottom:2px solid var(--text);padding-bottom:14px;margin-bottom:16px}
.kicker{font-size:13px;color:var(--muted);margin:0 0 2px}
h1{font-size:clamp(24px,5.4vw,34px);line-height:1.3;margin:0 0 4px;font-weight:700}
.period{margin:0 0 10px;font-size:14px;font-variant-numeric:tabular-nums;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.days{font-weight:700;color:var(--hl);font-size:16px}
.lead{margin:0 0 12px;font-size:15px}
.author{background:var(--note-bg);border:1px solid var(--note-line);border-radius:8px;padding:10px 14px;margin:0 0 12px;color:var(--note-text)}
.author-h{font-size:14px;margin:0 0 4px}
.author-msg{margin:0;font-size:14.5px}
.head-links{display:flex;flex-wrap:wrap;gap:8px}

/* ===== ボタン ===== */
.btn{font:inherit;font-size:16px;font-weight:700;border-radius:8px;padding:10px 16px;min-height:44px;cursor:pointer;border:1px solid var(--btn);background:var(--btn);color:var(--btn-text);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.sub{background:var(--btn2-bg);color:var(--text);border-color:var(--line-strong);font-weight:500}
.btn.big{font-size:16px;padding:12px 22px;min-height:48px}
.btn.line{background:var(--line-green);border-color:var(--line-green);color:#ffffff}

/* ===== 速報掲示板 ===== */
.ticker{background:var(--tk-bg);color:var(--tk-text);border-radius:8px;margin-bottom:20px;overflow:hidden;border:1px solid #000}
.ticker-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 0}
.ticker-h{font-size:13px;margin:0;color:var(--tk-hl);letter-spacing:.1em;display:flex;align-items:center;gap:6px}
.live-dot{width:8px;height:8px;border-radius:50%;background:#ff5a3c;box-shadow:0 0 6px #ff5a3c;animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.25}}
.ticker-pause{font:inherit;font-size:12px;color:var(--tk-sub);background:transparent;border:1px solid #5a4636;border-radius:4px;padding:2px 10px;min-height:32px;cursor:pointer}
.ticker-view{position:relative;overflow:hidden;padding:6px 0 10px;font-family:"Noto Sans JP",ui-monospace,monospace}
.ticker-track{display:flex;width:max-content;white-space:nowrap;will-change:transform;animation:tk var(--tk-dur,60s) linear infinite}
.ticker-view:hover .ticker-track,.ticker.paused .ticker-track{animation-play-state:paused}
@keyframes tk{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.tk-item{padding:0 28px 0 0;font-size:15px;font-weight:500}
.tk-item::before{content:"◆";color:var(--tk-hl);margin-right:10px;font-size:11px;vertical-align:2px}
.tk-name{color:#ffffff;font-weight:700}
.tk-title{color:var(--tk-hl);font-size:13px;border:1px solid var(--tk-hl);border-radius:3px;padding:0 4px;margin-right:6px}
.tk-pref{color:var(--tk-hl);font-weight:700}
.tk-new{animation:tknew 2.4s ease-out}
@keyframes tknew{0%,40%{background:#5a3008}100%{background:transparent}}
.ticker-list{display:none;list-style:none;margin:0;padding:0 10px;font-size:14px}
.ticker-list li{padding:3px 0;border-top:1px solid #33271d}
.ticker-list li:first-child{border-top:0}
.ticker-empty{padding:0 10px;font-size:14px;color:var(--tk-sub)}
@media (prefers-reduced-motion: reduce){
  .ticker-track{display:none}
  .ticker-list{display:block}
  .ticker-pause{display:none}
  .live-dot{animation:none}
}

/* ===== 見本モード ===== */
.mockbar{background:var(--demo-bg);border:2px dashed var(--line-strong);border-radius:8px;padding:12px 14px;margin-bottom:20px}
.mockbar h2{font-size:15px;margin:0 0 4px}
.mockbar p{margin:0 0 6px}
.mockbar .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mockbar select{width:auto}
.demo-badge{display:inline-block;font-size:13px;font-weight:700;background:var(--text);color:var(--bg);border-radius:3px;padding:0 6px;margin-right:6px;vertical-align:2px}

/* ===== フォーム ===== */
.tabs{display:flex;gap:0;margin:0 0 14px;border-bottom:2px solid var(--line)}
.tabs button{font:inherit;font-size:16px;font-weight:700;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-2px;padding:10px 14px;min-height:44px;color:var(--muted);cursor:pointer}
.tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--c4)}
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;max-width:760px}
.form .wide{grid-column:1 / -1}
@media (max-width:560px){.form{grid-template-columns:minmax(0,1fr)}}
.field{min-width:0;display:flex;flex-direction:column;gap:4px}
.field label{font-size:14.5px;font-weight:500}
.field .hint{margin:0;font-size:14px;color:var(--muted)}
.req{font-size:13px;color:var(--hl);border:1px solid var(--hl);border-radius:3px;padding:0 4px;margin-left:6px;vertical-align:1px;white-space:nowrap}
input[type=text],input[type=email],input[type=password],select{font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line-strong);border-radius:6px;padding:10px 10px;min-height:44px;width:100%;min-width:0}
[aria-invalid=true]{border-color:var(--ng) !important}
.err{margin:0;font-size:14px;color:var(--ng)}
.note{margin:0;font-size:14px;background:var(--note-bg);border:1px solid var(--note-line);color:var(--note-text);border-radius:6px;padding:8px 12px}
.check .cb{display:flex;gap:10px;align-items:flex-start;font-size:16px;cursor:pointer;padding:6px 0}
.check input[type=checkbox]{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--c5)}
#letter-name-box{margin:4px 0 0 32px;display:flex;flex-direction:column;gap:4px}
.form-actions{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.ts:empty{display:none}

/* ===== マイページ ===== */
.me-head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-bottom:10px}
.me-head h2{margin:0}
.me-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
@media (max-width:640px){.me-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.me-facts div{background:var(--bg);border-radius:6px;padding:6px 10px;min-width:0}
.me-facts dt{font-size:12px;color:var(--muted)}
.me-facts dd{margin:0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.today{margin:0 0 4px;font-weight:700}
.today.yet{color:var(--hl)}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.cards.one{grid-template-columns:minmax(0,1fr);max-width:600px}
@media (max-width:700px){.cards{grid-template-columns:minmax(0,1fr)}}
.card{position:relative;min-width:0;border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:120px minmax(0,1fr);background:var(--surface)}
@media (max-width:420px){.card{grid-template-columns:96px minmax(0,1fr)}}
.card-pic{background:var(--chara-bg);border-radius:8px 0 0 8px;display:flex;align-items:center;justify-content:center;position:relative}
.card-pic svg{display:block;width:100%;height:auto;max-width:120px}
.card-body{min-width:0;padding:10px 12px;display:flex;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums}
.tag{align-self:flex-start;font-size:11.5px;font-weight:700;color:var(--note-text);background:var(--note-bg);border:1px solid var(--note-line);border-radius:3px;padding:0 6px}
.cn{font-size:18px;font-weight:700;line-height:1.3}
.cp{font-size:13px;color:var(--muted)}
.big-num{font-size:22px;font-weight:700;line-height:1.3}
.big-num small{font-size:13px;font-weight:500;margin-left:2px}
.line-s{font-size:13.5px}
.line-s b{font-weight:700}
.prog{height:10px;background:var(--bar-bg);border-radius:5px;overflow:hidden;margin:2px 0}
.prog span{display:block;height:100%;background:var(--bar);border-radius:5px;transition:width .4s}
.remain{font-size:14px;color:var(--muted)}
.up{font-size:13px;color:var(--hl);font-weight:700}

/* ===== 申請 ===== */
.entry{margin-top:18px;border:1px solid var(--line-strong);border-radius:8px;padding:14px;background:var(--surface)}
.closed{background:var(--note-bg);border:1px solid var(--note-line);color:var(--note-text);border-radius:6px;padding:12px 14px;font-size:16px}
.closed p{margin:0 0 6px}
.drop{border:2px dashed var(--line-strong);border-radius:8px;padding:16px;text-align:center;background:var(--drop-bg);display:flex;flex-direction:column;align-items:center;gap:8px}
.drop.over{border-color:var(--hl);background:var(--note-bg)}
.drop p{margin:0;font-size:16px}
.ways{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:center;font-size:14px;color:var(--muted)}
.filebtn{position:relative;display:inline-block}
.filebtn input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.filebtn:focus-within .btn{outline:3px solid var(--focus);outline-offset:2px}
.preview{margin-top:12px;display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.preview img{max-width:min(240px,100%);max-height:240px;border:1px solid var(--line);border-radius:6px;display:block}
.preview p{margin:0;font-size:14px;color:var(--muted);min-width:0}
.entry-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.judging{font-size:14px;font-weight:700;color:var(--hl)}
.result:empty{display:none}
.result{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.msg{margin:0;border-radius:8px;padding:10px 12px;font-size:15px;border:1px solid var(--line)}
.msg.ok{background:var(--ok-bg);border-color:var(--ok)}
.msg.ng{background:var(--ng-bg);border-color:var(--ng)}
.msg.grow{background:var(--note-bg);border-color:var(--note-line);color:var(--note-text);font-weight:700}
.msg .why{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:2px}
.ba{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.ba.one{grid-template-columns:minmax(0,1fr)}
@media (max-width:480px){.ba{grid-template-columns:minmax(0,1fr)}}
.ba-box{background:var(--surface);border:1px solid var(--ok);border-radius:8px;padding:8px 10px;text-align:center}
.ba-k{display:block;font-size:13px;color:var(--muted)}
.ba-p{display:block;font-weight:700;font-size:16px}
.ba-n{display:block;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.ba-n .arr{color:var(--hl);margin:0 6px}
.demo-tag{display:inline-block;font-size:13px;font-weight:700;background:var(--text);color:var(--bg);border-radius:3px;padding:0 6px;margin-left:6px;vertical-align:2px}

/* 演出 */
.plus{position:absolute;left:50%;top:30%;transform:translateX(-50%);font-weight:700;font-size:22px;color:var(--hl);pointer-events:none;animation:plus 1.3s ease-out forwards;z-index:3}
@keyframes plus{0%{opacity:0;transform:translate(-50%,8px)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-44px)}}
.pop .card-pic svg{animation:pop .7s cubic-bezier(.3,1.6,.5,1)}
@keyframes pop{0%{transform:scale(1)}35%{transform:scale(1.28)}60%{transform:scale(.94)}100%{transform:scale(1)}}
.bit{position:absolute;left:50%;top:50%;width:12px;height:12px;pointer-events:none;z-index:3;animation:bit 1s ease-out forwards}
.bit svg{display:block;width:12px;height:12px}
@keyframes bit{0%{opacity:1;transform:translate(-50%,-50%) scale(.4)}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(1.2) rotate(140deg)}}
.celebrate{animation:cele .9s ease-out}
@keyframes cele{0%{transform:scale(.96);box-shadow:0 0 0 0 rgba(238,138,53,.7)}100%{transform:scale(1);box-shadow:0 0 0 14px rgba(238,138,53,0)}}
@media (prefers-reduced-motion: reduce){
  .plus,.pop .card-pic svg,.bit,.celebrate,.tk-new{animation:none}
  .plus,.bit{display:none}
  .prog span{transition:none}
}

/* 履歴 */
.history{margin-top:18px}
.history ol{list-style:none;margin:0;padding:0;font-size:14px}
.history li{border-top:1px solid var(--line);padding:8px 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;align-items:baseline;font-variant-numeric:tabular-nums}
.history time{color:var(--muted);white-space:nowrap}
.history .h-parts{display:flex;flex-wrap:wrap;gap:2px 14px}
@media (max-width:420px){.history li{grid-template-columns:minmax(0,1fr)}}

/* ===== 地図とランキング ===== */
.layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start}
.layout .panel{margin-bottom:0}
@media (max-width:980px){.layout{grid-template-columns:minmax(0,1fr)}.layout .panel{margin-bottom:20px}}
.mapbox{position:relative;container-type:inline-size}
svg.map{display:block;width:100%;height:auto;touch-action:manipulation}
.pf{fill:var(--c1);stroke:var(--map-stroke);stroke-width:.7;stroke-linejoin:round;cursor:pointer;outline:none;transition:fill .5s}
.s1{fill:var(--c1)}.s2{fill:var(--c2)}.s3{fill:var(--c3)}.s4{fill:var(--c4)}.s5{fill:var(--c5)}.s6{fill:var(--c6)}
.pf.mine{stroke:var(--mine-stroke);stroke-width:1.8}
.pf.on,.pf:focus-visible{stroke:var(--hl);stroke-width:3.4}
.inset{fill:none;stroke:var(--line-strong);stroke-width:1.2}
.inset-cap{fill:var(--muted);font-size:15px}
.cbox{position:absolute;right:0;bottom:0;width:44%;background:var(--chara-bg);color:var(--chara-ink);border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;min-height:120px;display:flex;align-items:center;pointer-events:none}
.cbox:not(.has){background:transparent;border-style:dashed}
.cbox-empty{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.ch{display:grid;grid-template-columns:84px minmax(0,1fr);gap:4px 8px;align-items:center;width:100%}
.ch-pic svg{display:block;width:84px;height:84px}
.ch-txt{display:flex;flex-direction:column;gap:1px;min-width:0;font-variant-numeric:tabular-nums}
.ch-k{font-size:11.5px;color:var(--chara-sub)}
.ch-n{font-size:17px;line-height:1.3;font-weight:700}
.ch-s{font-size:12.5px}
.ch-r{font-size:11.5px;color:var(--chara-sub)}
@container (max-width:560px){.cbox{position:static;width:auto;margin-top:8px}.ch{grid-template-columns:96px minmax(0,1fr)}.ch-pic svg{width:96px;height:96px}.ch-s{font-size:13.5px}.ch-r{font-size:12.5px}}
.legend{margin-top:10px}
.legend ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px}
.legend li{display:flex;align-items:center;gap:6px}
.sw{width:22px;height:14px;border-radius:2px;border:1px solid var(--line-strong);display:inline-block}
.sw.s1{background:var(--c1)}.sw.s2{background:var(--c2)}.sw.s3{background:var(--c3)}.sw.s4{background:var(--c4)}.sw.s5{background:var(--c5)}.sw.s6{background:var(--c6)}
.sw.mine{background:transparent;border:3px solid var(--mine-stroke)}
.hint{font-size:14px;color:var(--muted);margin:8px 0 0}
.rank-note{margin:-6px 0 8px}
.tblbox{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.rank{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
caption{text-align:left;font-size:14px;color:var(--muted);padding-bottom:6px}
thead th{font-size:12px;color:var(--muted);font-weight:500;text-align:left;border-bottom:1px solid var(--line-strong);padding:6px 6px;white-space:nowrap}
thead th.num{text-align:right}
tbody td,tbody th{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
tbody th{font-weight:500}
td.num{text-align:right;white-space:nowrap}
td.rk{color:var(--muted);font-weight:700}
tbody tr.me{background:var(--note-bg)}
/* ランキング表：行のどこをクリックしても県のくわしい情報が開く（キーボードは県名のボタン） */
table.rank tbody tr{cursor:pointer}
table.rank tbody tr:hover > *{background-color:var(--row-hover)}
tbody th.r-th{padding:0}
.r-pref{font:inherit;color:inherit;background:none;border:0;margin:0;padding:4px 6px;min-height:44px;width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:2px 4px;text-align:left;cursor:pointer;line-height:1.3}
.r-name{font-weight:700;white-space:nowrap}
.r-pic{width:30px;height:30px;flex:none;display:inline-block}
.r-pic svg{display:block;width:30px;height:30px}
.r-cnt{font-size:13px;line-height:1.35}
.r-c1{font-weight:700;white-space:nowrap}
.r-c2{color:var(--muted);white-space:nowrap}
thead th.r-cnt-h{white-space:normal;min-width:5.5em}
.r-rate{width:38%;min-width:6.5em}
.r-rate-in{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.r-pct{font-weight:700;white-space:nowrap}
.r-laps{display:inline-block;font-size:13px;font-weight:700;white-space:nowrap;line-height:1.5;padding:0 6px;border-radius:999px;background:var(--note-bg);border:1px solid var(--note-line);color:var(--note-text)}
.r-bar{display:block;flex:1 0 100%;height:10px;background:var(--bar-bg);border-radius:5px;overflow:hidden}
.r-bar i{display:block;height:100%;background:var(--bar);border-radius:5px;transition:width .4s}
.metag{margin-left:4px;font-size:10.5px;font-weight:700;color:var(--hl);border:1px solid var(--hl);border-radius:3px;padding:0 3px}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:420px){
  table.rank{font-size:14px}
  thead th,tbody td,tbody th{padding:4px 3px}
  tbody th.r-th{padding:0}
  .r-pref{padding:4px 3px}
  .r-pic,.r-pic svg{width:24px;height:24px}
  .metag{margin-left:0}
  .r-cnt{font-size:13px}
  .r-c2{display:block}
  .r-rate{min-width:5.5em}
}
@media (prefers-reduced-motion: reduce){ .r-bar i{transition:none} }

/* ===== フッター ===== */
.notes{margin-top:24px;font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.notes h2{font-size:14px;color:var(--text);margin:14px 0 4px}
.notes h2:first-child{margin-top:0}
.notes p{margin:0 0 6px}
.notes a{word-break:break-all}
.foot-links a{margin-right:8px}
.toast{position:fixed;left:50%;bottom:max(16px, env(safe-area-inset-bottom, 0px));transform:translateX(-50%);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:8px;font-size:14px;z-index:20;max-width:calc(100% - 32px)}
.noscript{padding:16px;text-align:center}

/* ボット判定（Turnstile）の欄：画像プレビューと重ならないように間隔をあける */
.ts{margin-top:12px;clear:both}
.ts:empty{display:none}

/* =====================================================================
 * テーマ「日本一周・すごろく鉄道の旅」（2026-11-20 追加）
 * body に class="rail" があるページ（index.html）だけに効く。
 * admin.html は class を付けていないので、上の元の見た目のまま。
 * 装飾はすべて CSS と自作のインラインSVGのみ。動きは transform / opacity だけ。
 * ===================================================================== */
.rail{
  --ink:#1c2b4f; --edge:#1c2b4f; --shadow:#1c2b4f;
  --sky:#bfe8fb; --sky2:#e3f6fe; --sea:#c7ecfb;
  --sun:#ffd23f; --shu:#e0442a; --leaf:#5fb534; --leaf-pale:#e8f6dc; --paper:#fff9e6;
  --bg:#eef8fe; --surface:#ffffff; --text:#1c2b4f; --muted:#44527a; --line:#c4d2e8; --line-strong:#1c2b4f;
  --accent:#1d5fae; --hl:#c8361d; --bar:#ffb62e; --bar-bg:#fff1c9; --row-hover:#eef6ff;
  --note-bg:#fff7d6; --note-line:#e0b21c; --note-text:#4a3a05;
  --focus:#1d5fae; --demo-bg:#f1f6fb; --drop-bg:#ffffff;
  --me-row:#fff4bf; --thead-bg:#1c2b4f; --thead-text:#ffffff; --cbox-empty:rgba(255,255,255,.88);
  --mine-stroke:#1f9e3a;
  font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,sans-serif;
  /* 空・太陽・雲（自作のインラインSVG） */
  background-color:var(--sky);
  background-image:
    radial-gradient(circle at calc(100% - 56px) 64px, var(--sun) 0 34px, rgba(255,210,63,.35) 35px 46px, transparent 47px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260'%3E%3Cg fill='%23ffffff' fill-opacity='.7'%3E%3Cellipse cx='70' cy='60' rx='46' ry='15'/%3E%3Cellipse cx='92' cy='48' rx='26' ry='17'/%3E%3Cellipse cx='62' cy='50' rx='18' ry='12'/%3E%3Cellipse cx='300' cy='170' rx='54' ry='16'/%3E%3Cellipse cx='326' cy='156' rx='30' ry='19'/%3E%3Cellipse cx='288' cy='158' rx='20' ry='13'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--sky) 0, var(--sky2) 900px);
  background-repeat:no-repeat, repeat, no-repeat;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .rail{
    --edge:#8ea6d6; --shadow:#000000; --sky:#0e1a30; --sky2:#132442; --sea:#12324a;
    --leaf-pale:#1d3313; --paper:#1f2c45;
    --bg:#14223b; --surface:#18263f; --text:#eef3ff; --muted:#a9b6d3; --line:#2f4166; --line-strong:#8ea6d6;
    --accent:#8fc0ff; --hl:#ff8a6b; --bar-bg:#3a2e10; --row-hover:#22324f;
    --note-bg:#2b2610; --note-line:#8a7320; --note-text:#f7e7a8;
    --focus:#8fc0ff; --demo-bg:#18263f; --drop-bg:#18263f;
    --me-row:#3a3410; --thead-bg:#2b3c5e; --thead-text:#eef3ff; --cbox-empty:rgba(24,38,63,.92);
    --mine-stroke:#9be15d;
  }
}
:root[data-theme="dark"] .rail{
  --edge:#8ea6d6; --shadow:#000000; --sky:#0e1a30; --sky2:#132442; --sea:#12324a;
  --leaf-pale:#1d3313; --paper:#1f2c45;
  --bg:#14223b; --surface:#18263f; --text:#eef3ff; --muted:#a9b6d3; --line:#2f4166; --line-strong:#8ea6d6;
  --accent:#8fc0ff; --hl:#ff8a6b; --bar-bg:#3a2e10; --row-hover:#22324f;
  --note-bg:#2b2610; --note-line:#8a7320; --note-text:#f7e7a8;
  --focus:#8fc0ff; --demo-bg:#18263f; --drop-bg:#18263f;
  --me-row:#3a3410; --thead-bg:#2b3c5e; --thead-text:#eef3ff; --cbox-empty:rgba(24,38,63,.92);
  --c1:#3a2616; --c2:#5c3413; --c3:#874814; --c4:#b8621a; --c5:#e08a3a; --c6:#f7c08a;
  --map-stroke:#14181c; --mine-stroke:#9be15d;
  --ok:#7fd69b; --ok-bg:#16291d; --ng:#ff9b92; --ng-bg:#2e1a19;
  color-scheme:dark;
}
.rail .wrap{padding-top:18px}
.rail h2{font-size:20px;font-weight:800}
.rail h3{font-size:17px;font-weight:800}

/* 見出しの「駅」マーク（路線図の駅の丸） */
.rail .panel h2::before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;background:#ffffff;border:4px solid var(--leaf);box-shadow:0 0 0 2px var(--edge);margin:0 10px 0 2px;vertical-align:0}
.rail .h-sub{display:inline-block;font-size:12px;font-weight:700;color:var(--muted);border:2px solid currentColor;border-radius:999px;padding:0 8px;margin-left:8px;vertical-align:3px;white-space:nowrap;line-height:1.5}

/* 共通の箱：太い濃紺の輪郭・大きめの角丸・ずらした影 */
.rail .panel{border:3px solid var(--edge);border-radius:18px;box-shadow:6px 6px 0 var(--shadow);padding:18px}
@media (max-width:420px){.rail .panel{padding:14px;box-shadow:4px 4px 0 var(--shadow)}}

/* ===== ヘッダー：駅名標風の看板＋きっぷ ===== */
.rail .site-head{border-bottom:0;padding-bottom:0;margin-bottom:18px}
.rail .sign{background:#ffffff;color:#1c2b4f;border:3px solid var(--edge);border-radius:14px;box-shadow:6px 6px 0 var(--shadow);padding:12px 16px 0;margin:4px 0 14px;text-align:center;overflow:hidden;max-width:820px}
.rail .sign .kicker{color:#44527a;font-weight:700;font-size:13.5px;margin:0}
.rail .sign h1{font-size:clamp(23px,6.2vw,42px);font-weight:800;letter-spacing:.05em;line-height:1.25;margin:2px 0 12px;word-break:auto-phrase;text-wrap:balance}
.rail .sign::after{content:"";display:block;height:16px;margin:0 -16px;border-top:3px solid #1c2b4f;background:linear-gradient(180deg,#e0442a 0 62%,#5fb534 62% 100%)}
.rail .period{gap:8px 10px;margin:0 0 14px;align-items:stretch;font-size:14px}
.rail .period > span{display:inline-flex;align-items:center;padding:6px 18px;color:#1c2b4f;font-weight:700;border:2px solid #1c2b4f;border-radius:6px;
  background:repeating-linear-gradient(45deg,rgba(95,181,52,.14) 0 4px,transparent 4px 8px),#ecf8df;
  -webkit-mask:radial-gradient(circle 7px at 0 50%,transparent 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 7px at 100% 50%,transparent 96%,#000) right/51% 100% no-repeat;
          mask:radial-gradient(circle 7px at 0 50%,transparent 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 7px at 100% 50%,transparent 96%,#000) right/51% 100% no-repeat}
.rail .period > .days{font-size:20px;font-weight:800;background:repeating-linear-gradient(45deg,rgba(224,68,42,.12) 0 4px,transparent 4px 8px),#ffe27a}
.rail .period > .days:empty{display:none}
.rail .head-body{background:var(--surface);border:3px solid var(--edge);border-radius:18px;box-shadow:6px 6px 0 var(--shadow);padding:16px 18px}
.rail .lead{font-size:16px;line-height:1.8}
.rail .author{border:2px dashed var(--note-line);border-radius:14px;padding:12px 16px}
.rail .author-h{font-weight:800}

/* ===== ボタン（押すと沈む） ===== */
.rail .btn{border:3px solid var(--edge);border-radius:14px;background:var(--shu);color:#ffffff;font-weight:800;box-shadow:0 4px 0 var(--shadow);transition:transform .08s ease-out;margin-bottom:4px}
.rail .btn:active:not(:disabled){transform:translateY(4px);box-shadow:none}
.rail .btn.sub{background:#ffffff;color:#1c2b4f;border-color:var(--edge);font-weight:700}
.rail .btn.big{background:var(--sun);color:#1c2b4f;font-size:18px;min-height:54px;padding:12px 30px}
.rail .btn.line{background:var(--line-green);color:#ffffff}
.rail .btn:disabled{background:#d5dbe6;color:#4d5873;box-shadow:none;opacity:1}

/* ===== 速報掲示板：駅の発車案内のLED表示風 ===== */
.rail .ticker{background:#17130f;color:#ffa726;border:3px solid var(--edge);border-radius:16px;box-shadow:6px 6px 0 var(--shadow);margin-bottom:22px}
.rail .ticker-head{padding:8px 12px 0}
.rail .ticker-h{font-size:14px;color:#ffb02e;border:2px solid #ffb02e;border-radius:6px;padding:1px 10px;letter-spacing:.2em}
.rail .live-dot{background:#9be15d;box-shadow:0 0 6px #9be15d}
.rail .ticker-pause{min-height:44px;min-width:64px;font-size:14px;font-weight:700;color:#ffb02e;border:2px solid #ffb02e;border-radius:10px;padding:2px 12px}
.rail .ticker-view{margin:8px 10px 12px;padding:10px 0;background:#0a0907;border:2px solid #3b3128;border-radius:8px;font-family:inherit;letter-spacing:.05em}
.rail .ticker-view::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(0,0,0,.42) 1px,transparent 1.5px);background-size:4px 4px}
.rail .tk-item{color:#ffa726;font-weight:700;text-shadow:0 0 4px rgba(255,167,38,.55)}
.rail .tk-item::before{color:#9be15d}
.rail .tk-name{color:#c6f24e;text-shadow:0 0 4px rgba(198,242,78,.5)}
.rail .tk-pref{color:#ffd84a}
.rail .tk-title{color:#c6f24e;border-color:#c6f24e}
.rail .ticker-list{color:#ffa726}
.rail .ticker-list .muted{color:#c9a27a}
.rail .ticker-list li{border-top-color:#3b3128}

/* ===== 見本モード ===== */
.rail .mockbar{border:3px dashed var(--edge);border-radius:16px;background:var(--surface)}

/* ===== 登録・ログイン：のりば案内 ===== */
.rail .noriba{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;background:#1c2b4f;color:#ffffff;border:3px solid var(--edge);border-radius:12px;padding:8px 14px;box-shadow:inset 8px 0 0 var(--sun)}
.rail .panel .noriba::before{margin-left:6px}
.rail .noriba .h-sub{color:#1c2b4f;background:var(--sun);border-color:var(--sun);margin-left:0}
.rail .tabs{border-bottom:3px solid var(--edge);gap:6px;flex-wrap:wrap}
.rail .tabs button{border:3px solid var(--edge);border-bottom:0;border-radius:12px 12px 0 0;background:var(--bg);color:var(--muted);margin-bottom:0;padding:10px 16px;font-weight:800}
.rail .tabs button[aria-selected="true"]{background:var(--sun);color:#1c2b4f}
.rail .field label{font-weight:700;font-size:15px}
.rail .req{background:#c8361d;color:#ffffff;border-color:#c8361d;border-radius:999px;padding:0 7px;font-weight:700}
.rail input[type=text],.rail input[type=email],.rail input[type=password],.rail select{font-size:17px;min-height:52px;padding:10px 14px;border:3px solid var(--edge);border-radius:12px;background:var(--surface)}
.rail input[type=text]:focus,.rail input[type=email]:focus,.rail input[type=password]:focus,.rail select:focus{box-shadow:0 0 0 4px var(--sun)}
.rail .note{border:2px dashed var(--note-line);border-radius:12px;padding:10px 14px}
.rail .check input[type=checkbox]{accent-color:var(--shu)}

/* ===== マイページ ===== */
.rail .me-head h2{font-size:22px;word-break:auto-phrase}
@media (max-width:420px){.rail .me-head h2{font-size:19px}}
.rail #me-email{font-size:15px;font-weight:700;word-break:break-all}
.rail .me-facts div{background:var(--bg);border:2px solid var(--edge);border-radius:12px;padding:8px 12px}
.rail .me-facts dt{font-weight:700}
.rail .me-facts dd{font-size:22px;font-weight:800}
.rail #me-title-name,.rail .stamp{display:inline-block;color:var(--hl);background:var(--surface);border:2.5px solid currentColor;border-radius:999px;padding:1px 12px;font-weight:800;box-shadow:inset 0 0 0 2px var(--surface),inset 0 0 0 3.5px currentColor;transform:rotate(-3deg);margin:3px 0}
.rail #me-title-name{font-size:15px}
.rail .today{display:inline-block;background:var(--leaf-pale);border:2px solid var(--edge);border-radius:999px;padding:3px 16px;font-weight:800;margin:4px 0 6px}
.rail .today.yet{background:var(--note-bg);color:var(--hl)}

/* 県のカード＝「駅」のカード */
.rail .cards{gap:18px}
.rail .card{border:3px solid var(--edge);border-radius:16px;box-shadow:5px 5px 0 var(--shadow)}
.rail .card-pic{border-right:3px solid var(--edge);border-radius:13px 0 0 13px;align-items:flex-end;padding-bottom:20px;background:linear-gradient(0deg,#d9b77a 0 24px,#5fb534 24px 30px,#d6f1fd 30px)}
.rail .card-body{padding:12px 14px 14px;gap:3px}
.rail .tag{background:var(--edge);color:var(--surface);border:0;border-radius:999px;padding:1px 10px;font-size:13px}
.rail .cn{font-size:25px;font-weight:800;align-self:flex-start;border-bottom:5px solid var(--shu);padding:0 4px;letter-spacing:.08em}
.rail .big-num{font-size:30px;font-weight:800}
.rail .up{font-weight:800}
/* 周回の進み＝線路。列車アイコンが進みの位置にいる */
.rail .prog{position:relative;height:36px;background:none;border-radius:0;overflow:visible;margin:4px 22px 4px}
.rail .prog::before{content:"";position:absolute;left:-8px;right:-8px;bottom:2px;height:12px;border-top:2px solid var(--edge);border-bottom:2px solid var(--edge);background:repeating-linear-gradient(90deg,#b98a57 0 4px,transparent 4px 11px)}
.rail .prog::after{content:"";position:absolute;right:-14px;bottom:0;width:10px;height:10px;border-radius:50%;background:#ffffff;border:3px solid var(--shu);box-shadow:0 0 0 2px var(--edge)}
.rail .prog > span:not(.train){position:absolute;left:0;bottom:6px;height:4px;background:var(--leaf);border-radius:0}
.rail .prog .train{position:absolute;bottom:10px;width:42px;height:25px;transform:translateX(-50%);background:none;border-radius:0;transition:none;display:block}
.rail .prog .train svg{display:block;width:42px;height:25px}

/* ===== 申請：きっぷ売り場の窓口 ===== */
.rail .entry{border:3px solid var(--edge);border-radius:18px;padding:0 16px 16px;background:var(--paper);box-shadow:5px 5px 0 var(--shadow);margin-top:22px}
.rail .entry > h3{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 -16px 14px;padding:10px 16px 14px;background:var(--shu);color:#ffffff;border-bottom:3px solid var(--edge);border-radius:15px 15px 0 0;font-size:19px;
  -webkit-mask:radial-gradient(circle 7px at 50% 100%,transparent 96%,#000) 0 0/28px 100% repeat-x;mask:radial-gradient(circle 7px at 50% 100%,transparent 96%,#000) 0 0/28px 100% repeat-x}
.rail .entry > h3 .h-sub{color:#ffffff;margin-left:0}
.rail .drop{border:3px dashed var(--edge);border-radius:60px 60px 14px 14px / 36px 36px 14px 14px;padding:22px 16px 16px;background:var(--surface)}
.rail .drop.over{border-color:var(--shu);background:var(--note-bg)}
.rail .preview img{border:3px solid var(--edge);border-radius:10px}
.rail .judging{font-weight:800}
.rail .msg{border:3px solid var(--line);border-radius:14px;padding:12px 14px;font-size:16px}
.rail .msg.ok{border-color:var(--ok);font-weight:800}
.rail .msg.ng{border-color:var(--ng)}
.rail .msg.grow{border-color:var(--note-line);border-style:dashed}
.rail .ba-box{border:2px solid var(--edge);border-radius:12px}
.rail .ba-n{font-size:26px;font-weight:800}
/* 合格時：控えめな紙吹雪と光（動きを減らす設定では出さない） */
.rail .celebrate{animation:rail-pop .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes rail-pop{0%{transform:scale(.97)}100%{transform:scale(1)}}
.rail .msg.ok.celebrate{position:relative;overflow:hidden}
.rail .msg.ok.celebrate::before{content:"";position:absolute;left:0;right:0;top:-30px;height:100%;pointer-events:none;opacity:0;background-repeat:no-repeat;background-size:10px 10px;
  background-image:radial-gradient(circle,#ffd23f 0 4px,transparent 4.5px),linear-gradient(#e0442a,#e0442a),radial-gradient(circle,#5fb534 0 4px,transparent 4.5px),linear-gradient(#6fb7e8,#6fb7e8),radial-gradient(circle,#e0442a 0 4px,transparent 4.5px),linear-gradient(#ffd23f,#ffd23f),radial-gradient(circle,#6fb7e8 0 4px,transparent 4.5px),linear-gradient(#5fb534,#5fb534),radial-gradient(circle,#ffd23f 0 4px,transparent 4.5px),linear-gradient(#e0442a,#e0442a);
  background-position:4% 10%,14% 40%,26% 4%,37% 30%,49% 12%,60% 44%,71% 2%,81% 34%,90% 16%,97% 46%;
  animation:rail-confetti 1.8s ease-in forwards}
@keyframes rail-confetti{0%{opacity:1;transform:translateY(0)}80%{opacity:.9}100%{opacity:0;transform:translateY(110px)}}
.rail .msg.ok.celebrate::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%);animation:rail-shine 1.1s ease-out .15s}
@keyframes rail-shine{0%{opacity:1;transform:translateX(-100%)}100%{opacity:1;transform:translateX(100%)}}

/* 履歴 */
.rail .history h3::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 2px var(--edge);margin-right:8px}
.rail .history li{border-top:2px dashed var(--line)}
.rail .history time{font-weight:700}

/* ===== 地図とランキング ===== */
.rail .mapbox{background:var(--sea);border:3px solid var(--edge);border-radius:14px;padding:6px}
/* 県境：テーマの輪郭色（濃紺）。線の太さは画面の上の太さで決める（non-scaling-stroke）ので、
 * 地図が小さく表示されても線が細くなりすぎず、大きく表示されても小さな県や島をつぶさない */
.rail .pf{stroke:var(--edge);stroke-width:1.1px;vector-effect:non-scaling-stroke}
.rail .pf.mine{stroke:var(--mine-stroke);stroke-width:2.4px}
.rail .pf.on,.rail .pf:focus-visible{stroke:var(--hl);stroke-width:3.5px}
@container (max-width:480px){
  .rail .pf{stroke-width:.8px}
  .rail .pf.mine{stroke-width:1.8px}
  .rail .pf.on,.rail .pf:focus-visible{stroke-width:3px}
}
@container (min-width:760px){ .rail .pf{stroke-width:1.4px} }
.rail .ch-more{font-weight:700;color:var(--accent)}
.rail .inset{stroke:var(--edge);stroke-dasharray:8 6;stroke-width:1.6}
.rail .inset-cap{fill:var(--text);font-weight:700}
.rail .cbox{right:6px;bottom:6px;border:3px solid var(--edge);border-radius:14px;box-shadow:4px 4px 0 var(--shadow)}
.rail .cbox:not(.has){background:var(--cbox-empty);border-style:dashed;box-shadow:none}
.rail .ch-n{font-size:19px;font-weight:800}
.rail .sw{border:2px solid var(--edge);border-radius:4px}
.rail .sw.mine{border:3px solid var(--mine-stroke)}
.rail .legend ul{font-weight:700}
.rail table.rank{border-collapse:separate;border-spacing:0}
.rail table.rank thead th{background:var(--thead-bg);color:var(--thead-text);font-weight:700;border-bottom:0;padding:8px 6px}
.rail table.rank thead th:first-child{border-radius:10px 0 0 10px}
.rail table.rank thead th:last-child{border-radius:0 10px 10px 0}
.rail table.rank tbody td,.rail table.rank tbody th{border-bottom:1px dashed var(--line)}
.rail td.rk{text-align:center;width:44px;height:40px;color:var(--text);font-weight:800}
.rail td.rk.m1,.rail td.rk.m2,.rail td.rk.m3{color:#1c2b4f;background-repeat:no-repeat;background-position:center}
.rail td.rk.m1{background-image:radial-gradient(circle,#f5c518 0 12px,#1c2b4f 12.5px 14.5px,transparent 15px)}
.rail td.rk.m2{background-image:radial-gradient(circle,#d3dae3 0 12px,#1c2b4f 12.5px 14.5px,transparent 15px)}
.rail td.rk.m3{background-image:radial-gradient(circle,#dd9a5e 0 12px,#1c2b4f 12.5px 14.5px,transparent 15px)}
.rail tbody tr.me th,.rail tbody tr.me td{background-color:var(--me-row)}
.rail tbody tr.me td:first-child{box-shadow:inset 7px 0 0 var(--leaf)}
.rail .metag{background:var(--leaf);color:#10260a;border:2px solid var(--edge);border-radius:999px;padding:0 6px;font-size:13px;white-space:nowrap;line-height:1.5}
.rail table.rank thead th.r-cnt-h{white-space:normal}
.rail .r-pct{font-weight:800}
.rail .r-laps{background:var(--sun);color:#1c2b4f;border:2px solid var(--edge)}
.rail .r-bar{height:12px;border:2px solid var(--edge);border-radius:999px;background:var(--surface)}
.rail .r-bar i{border-radius:0}
.rail .r-pref:focus-visible{outline-offset:-3px}

/* ===== 県のくわしい情報（ダイアログ）。スマホでは画面下からのシート ===== */
html.dlg-open{overflow:hidden}
.pdlg{--pd-h:min(88vh,860px);padding:0;width:min(640px,calc(100% - 32px));max-width:none;max-height:var(--pd-h);border:3px solid var(--edge,#1c2b4f);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:6px 6px 0 var(--shadow,#1c2b4f);overflow:hidden}
.pdlg::backdrop{background:rgba(14,24,48,.55)}
.pd-in{max-height:calc(var(--pd-h) - 6px);overflow-y:auto;overscroll-behavior:contain}
.pd-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px 10px 18px;background:var(--surface);border-bottom:3px solid var(--edge,#1c2b4f)}
.pd-ht{min-width:0}
.rail .pdlg h2{font-size:24px;margin:0;line-height:1.25;letter-spacing:.06em}
.pd-pos{margin:0;font-size:13.5px;font-weight:700;color:var(--muted)}
.pd-close{font:inherit;font-weight:800;font-size:15px;min-width:44px;min-height:44px;padding:6px 16px;border:3px solid var(--edge,#1c2b4f);border-radius:14px;background:#ffffff;color:#1c2b4f;box-shadow:0 3px 0 var(--shadow,#1c2b4f);cursor:pointer;flex:none}
.pd-close:active{transform:translateY(3px);box-shadow:none}
.pd-body{padding:12px 18px 22px;font-variant-numeric:tabular-nums}
.pd-hero{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;align-items:center}
.pd-pic{border:3px solid var(--edge,#1c2b4f);border-radius:14px;overflow:hidden;background:linear-gradient(0deg,#d9b77a 0 22px,#5fb534 22px 28px,#d6f1fd 28px);padding:6px 6px 14px}
.pd-pic svg{display:block;width:100%;height:auto}
.pd-htxt{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.pd-cname{font-size:18px;font-weight:800}
.pd-sub{display:block;font-size:14px;color:var(--muted);margin:2px 0}
.pd-sec{margin-top:14px;padding-top:12px;border-top:2px dashed var(--line)}
.rail .pd-sec h3{font-size:16px;margin:0 0 6px}
.pd-count,.pd-rate,.pd-okc{margin:0}
.pd-big{font-size:30px;font-weight:800;line-height:1.2}
.pd-big small{font-size:14px;margin-left:2px}
.pd-of{font-size:16px;font-weight:700;color:var(--muted)}
.pd-rate{font-size:15px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.pd-rate b{font-size:20px;font-weight:800}
.pd-bar{height:16px;margin:6px 0 4px;border:2px solid var(--edge,#1c2b4f);border-radius:999px;background:var(--surface);overflow:hidden}
.pd-bar span{display:block;height:100%;background:var(--bar)}
.pd-lead{margin:2px 0 6px;font-weight:800;color:var(--hl)}
.pd-note{margin:6px 0 0;font-size:14px;color:var(--muted)}
ol.pd-rank{margin:0;padding:0}
ol.pd-rank li{display:grid;grid-template-columns:2.4em minmax(0,1fr) auto;gap:2px 8px;align-items:center;padding:6px 8px;border-bottom:1px dashed var(--line)}
ol.pd-rank li.me{background:var(--me-row);box-shadow:inset 6px 0 0 var(--leaf);font-weight:700}
ol.pd-rank li.c-skip{display:block;text-align:center;color:var(--muted);padding:2px}
.c-rk{font-weight:800;text-align:center}
.c-who{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.c-name{font-weight:700;overflow-wrap:anywhere}
.c-title{font-size:11px;font-weight:700;color:var(--hl);border:1.5px solid currentColor;border-radius:999px;padding:0 6px;white-space:nowrap}
.c-lit{font-weight:800;white-space:nowrap}
ul.pd-gap{list-style:none;margin:6px 0 0;padding:0}
ul.pd-gap li{display:grid;grid-template-columns:3em 6.5em minmax(40px,1fr) 3.8em;gap:4px 8px;align-items:center;padding:5px 6px;border-radius:10px}
ul.pd-gap li.here{background:var(--me-row);font-weight:800}
ul.pd-gap li.pd-gap-skip{display:block;text-align:center;color:var(--muted);padding:0}
.g-rk{font-weight:800;text-align:right;font-size:13px}
.g-nm{font-weight:700;display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;min-width:0}
.g-here{font-size:13px;font-weight:800;background:var(--leaf);color:#10260a;border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:0 5px;line-height:1.4;white-space:nowrap}
.g-bar{display:block;height:14px;border:2px solid var(--edge,#1c2b4f);border-radius:999px;background:var(--surface);overflow:hidden}
.g-bar i{display:block;height:100%;background:var(--bar)}
ul.pd-gap li.here .g-bar i{background:var(--shu,#e0442a)}
.g-pct{font-weight:800;text-align:right;white-space:nowrap}
@media (max-width:640px){
  .pdlg{--pd-h:90vh;width:100%;max-width:100%;margin:auto 0 0;border-radius:18px 18px 0 0;border-bottom:0;box-shadow:none}
  .pd-body{padding:10px 14px calc(22px + env(safe-area-inset-bottom, 0px))}
  .pd-hero{grid-template-columns:112px minmax(0,1fr);gap:10px}
  ul.pd-gap li{grid-template-columns:2.6em 5.2em minmax(30px,1fr) 3.4em;gap:4px 6px;padding:5px 4px;font-size:14px}
}

/* ===== フッター（上に線路） ===== */
.rail .notes{position:relative;margin-top:46px;background:var(--surface);border:3px solid var(--edge);border-radius:18px;padding:18px;color:var(--muted)}
.rail .notes::before{content:"";position:absolute;left:-3px;right:-3px;top:-30px;height:12px;border-top:3px solid var(--edge);border-bottom:3px solid var(--edge);background:repeating-linear-gradient(90deg,#b98a57 0 5px,transparent 5px 16px)}
.rail .notes h2{font-weight:800}
.rail .foot-links a{display:inline-block;padding:10px 4px;font-weight:700}
.rail .toast{background:#1c2b4f;color:#ffffff;border:3px solid var(--sun);border-radius:999px;font-weight:700}

@media (prefers-reduced-motion: reduce){
  .rail .celebrate{animation:none}
  .rail .msg.ok.celebrate::before,.rail .msg.ok.celebrate::after{display:none}
  .rail .btn{transition:none}
}

/* =====================================================================
 * 参加を続けたくなる仕掛け（2026-11-21 追加）
 * 全国カウンター・今週の急上昇県・つぎの一手・スタンプ帳・共有カード・最終週のお知らせ
 * 動きは transform / opacity だけ。prefers-reduced-motion では出さない。
 * ===================================================================== */
/* 最終週のお知らせ（きっぷの横。落ち着いた色で、事実だけ） */
.lastweek{font-weight:700}
.rail .period > .lastweek{background:#ffffff;font-size:16px}

/* 全国カウンター */
.nation{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin-bottom:20px;overflow:hidden}
.rail .nation{border:3px solid var(--edge);border-radius:18px;box-shadow:6px 6px 0 var(--shadow)}
@media (max-width:420px){.rail .nation{box-shadow:4px 4px 0 var(--shadow);padding:12px}}
.nation-total{margin:0;font-size:15px;font-weight:700;line-height:1.6}
.nt-num{font-size:28px;font-weight:800;color:var(--hl);margin:0 2px;font-variant-numeric:tabular-nums}
.nt-sub{display:inline-block;font-size:13px;font-weight:700;color:var(--muted);margin-left:4px}
.nation-bar{height:16px;margin:8px 0 4px;border:2px solid var(--edge,#1c2b4f);border-radius:999px;background:var(--bar-bg);overflow:hidden}
.nation-bar span{display:block;height:100%;background:var(--bar);transition:width .5s}
.nation-next{margin:0;font-size:14px;font-weight:700}
.nation-all{margin:4px 0 0;font-size:16px;font-weight:800;color:var(--hl)}
.nation-cele{position:relative;margin-top:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;background:var(--note-bg);color:var(--note-text);border:3px solid var(--note-line);border-radius:14px;padding:8px 10px 8px 14px;overflow:hidden}
.nc-text{margin:0;font-weight:800;font-size:16px;min-width:0;flex:1 1 220px}
.nc-close{font:inherit;font-weight:800;font-size:14px;min-width:44px;min-height:44px;padding:4px 14px;border:2px solid var(--edge,#1c2b4f);border-radius:12px;background:#ffffff;color:#1c2b4f;cursor:pointer;flex:none}
.nc-bit{position:absolute;top:-12px;width:9px;height:12px;border-radius:2px;pointer-events:none;opacity:0;animation:nc-fall var(--d,1.2s) ease-in forwards}
@keyframes nc-fall{0%{opacity:1;transform:translateY(0) rotate(0)}85%{opacity:1}100%{opacity:0;transform:translateY(90px) rotate(var(--r,180deg))}}

/* 今週の急上昇県 */
.wk-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:700px){.wk-list{grid-template-columns:minmax(0,1fr)}}
.wk-item{display:grid;grid-template-columns:auto 60px minmax(0,1fr);grid-template-rows:auto auto;gap:0 8px;align-items:center;border:2px solid var(--edge,#1c2b4f);border-radius:14px;padding:6px 10px;background:var(--bg)}
.wk-rk{grid-row:1 / 3;font-weight:800;font-size:15px}
.wk-pic{grid-row:1 / 3;width:60px;height:60px;display:block}
.wk-pic svg{display:block;width:60px;height:60px}
.wk-txt{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;min-width:0}
.wk-name{font-size:17px;font-weight:800}
.wk-ch{font-size:14px;color:var(--muted)}
.wk-gain{font-weight:800;color:var(--hl);font-size:15px}
.wk-empty{margin:0;font-weight:800;font-size:16px;color:var(--hl)}
.wk-note{margin:8px 0 0}

/* つぎの一手（マイページの上部） */
.nextmove{border:3px solid var(--edge,#1c2b4f);border-radius:16px;background:var(--note-bg);color:var(--text);padding:10px 14px 10px;margin:0 0 12px;box-shadow:inset 8px 0 0 var(--sun,#ffd23f)}
.rail .nextmove h3.nm-h{display:inline-block;font-size:14px;font-weight:800;margin:0 0 4px;color:#1c2b4f;background:var(--sun,#ffd23f);border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:0 10px}
.nm-big{margin:0;font-size:clamp(18px,4.6vw,22px);font-weight:800;line-height:1.45;color:var(--hl)}
.nm-small{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:14px;font-weight:700}
.nm-small li::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--leaf,#5fb534);box-shadow:0 0 0 2px var(--edge,#1c2b4f);margin:0 8px 1px 2px}
.nm-note{margin:6px 0 0;font-size:12px;color:var(--muted)}
.msg.next{display:flex;flex-direction:column;gap:2px;background:var(--surface);border-color:var(--edge,#1c2b4f);border-style:solid}
.nx-k{align-self:flex-start;font-size:13px;font-weight:800;color:#1c2b4f;background:var(--sun,#ffd23f);border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:0 10px;margin-bottom:2px}
.nx-t{font-weight:800}
.share-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:14px}

/* スタンプ帳 */
.stampbook{margin:12px 0 4px;border:3px solid var(--edge,#1c2b4f);border-radius:16px;background:var(--paper,#fff9e6)}
.stampbook > summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:48px;padding:8px 14px;cursor:pointer;list-style:none;font-weight:800}
.stampbook > summary::-webkit-details-marker{display:none}
.stampbook > summary::after{content:"ひらく";margin-left:auto;font-size:13px;font-weight:700;border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:0 10px;background:var(--surface)}
.stampbook[open] > summary::after{content:"たたむ"}
.sb-h{font-size:17px}
.sb-count{font-size:14px;color:var(--muted)}
.sb-grid{list-style:none;margin:0;padding:4px 12px 14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 8px}
@media (max-width:560px){.sb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sb-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.sb-stamp{width:68px;height:68px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--line-strong);color:var(--muted);background:var(--surface);line-height:1.15;opacity:.75}
.sb-in{font-size:16px;font-weight:800}
.sb-rest{font-size:11px;font-weight:700}
.sb-name{font-size:11.5px;font-weight:700;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.sb-item.done .sb-stamp{opacity:1;border:3px solid #d33a1f;color:#d33a1f;background:#fff4ef;box-shadow:inset 0 0 0 3px #fff4ef,inset 0 0 0 5px #d33a1f;transform:rotate(-8deg)}
.sb-item.done .sb-name{color:var(--text)}
.sb-item.next .sb-stamp{opacity:1;border:3px dashed var(--edge,#1c2b4f);color:#1c2b4f;background:var(--sun,#ffd23f)}
.sb-item.next .sb-name{color:var(--text);font-weight:800}
.sb-item.press .sb-stamp{animation:sb-press .7s cubic-bezier(.3,1.4,.5,1)}
@keyframes sb-press{0%{opacity:0;transform:scale(1.9) rotate(-20deg)}55%{opacity:1;transform:scale(.9) rotate(-6deg)}75%{transform:scale(1.06) rotate(-9deg)}100%{transform:scale(1) rotate(-8deg)}}

/* 共有カードのダイアログ */
.sd-body{display:flex;flex-direction:column;align-items:center;gap:10px}
.sd-status{margin:0;font-weight:800;min-height:1.5em;text-align:center}
.sd-img{display:block;width:100%;max-width:420px;height:auto;border:3px solid var(--edge,#1c2b4f);border-radius:12px}
.sd-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 12px}
.sd-note{margin:0;max-width:420px}

@media (prefers-reduced-motion: reduce){
  .nc-bit{display:none}
  .nation-bar span{transition:none}
  .sb-item.press .sb-stamp{animation:none}
}

/* =====================================================================
 * 県の高校のアイコンと一覧（2026-11-21 追加）
 * アイコンは自作の単純な校舎のSVG（背景画像）。1校＝1つの span で軽くする。
 * まだ＝薄い輪郭だけ / 灯った＝明るい色＋窓に明かり / 2周め以降＝金色＋星 / あなたが灯した＝緑の輪＋小さな印
 * 動きは transform / opacity だけ。prefers-reduced-motion では出さない。
 * ===================================================================== */
.sc{position:relative;display:block;width:var(--sc,18px);height:var(--sc,18px);background:center/contain no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%231c2b4f' stroke-opacity='.4' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M6 8L10 3.5L14 8Z'/%3E%3Crect x='2.5' y='8' width='15' height='9.5'/%3E%3Crect x='8.8' y='13.4' width='2.4' height='4.1'/%3E%3C/g%3E%3C/svg%3E")}
.sc.sc1{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg stroke='%231c2b4f' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M6 8L10 3.5L14 8Z' fill='%23e0442a'/%3E%3Crect x='2.5' y='8' width='15' height='9.5' fill='%23fff4c2'/%3E%3Cg fill='%23ffb62e'%3E%3Crect x='4.4' y='10' width='2.6' height='2.4'/%3E%3Crect x='13' y='10' width='2.6' height='2.4'/%3E%3Crect x='4.4' y='13.8' width='2.6' height='2.4'/%3E%3Crect x='13' y='13.8' width='2.6' height='2.4'/%3E%3C/g%3E%3Crect x='8.8' y='13.4' width='2.4' height='4.1' fill='%237a4a1e'/%3E%3C/g%3E%3C/svg%3E")}
.sc.sc2{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg stroke='%231c2b4f' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M6 8L10 3.5L14 8Z' fill='%23c8361d'/%3E%3Crect x='2.5' y='8' width='15' height='9.5' fill='%23f5c518'/%3E%3Cg fill='%23fffbe6'%3E%3Crect x='4.4' y='10' width='2.6' height='2.4'/%3E%3Crect x='13' y='10' width='2.6' height='2.4'/%3E%3Crect x='4.4' y='13.8' width='2.6' height='2.4'/%3E%3Crect x='13' y='13.8' width='2.6' height='2.4'/%3E%3C/g%3E%3Crect x='8.8' y='13.4' width='2.4' height='4.1' fill='%237a4a1e'/%3E%3C/g%3E%3Cpath d='M16.4 .4Q16.8 3.2 19.6 3.6Q16.8 4 16.4 6.8Q16 4 13.2 3.6Q16 3.2 16.4 .4Z' fill='%23ffd23f' stroke='%231c2b4f' stroke-width='.8' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .sc:not(.sc1):not(.sc2){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23a9b6d3' stroke-opacity='.5' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M6 8L10 3.5L14 8Z'/%3E%3Crect x='2.5' y='8' width='15' height='9.5'/%3E%3Crect x='8.8' y='13.4' width='2.4' height='4.1'/%3E%3C/g%3E%3C/svg%3E")}
}
:root[data-theme="dark"] .sc:not(.sc1):not(.sc2){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23a9b6d3' stroke-opacity='.5' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M6 8L10 3.5L14 8Z'/%3E%3Crect x='2.5' y='8' width='15' height='9.5'/%3E%3Crect x='8.8' y='13.4' width='2.4' height='4.1'/%3E%3C/g%3E%3C/svg%3E")}
.sc.mine{border-radius:4px;box-shadow:0 0 0 2px var(--mine-stroke,#1f9e3a)}
.sc.mine::after{content:"";position:absolute;right:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--mine-stroke,#1f9e3a);box-shadow:0 0 0 1px var(--surface)}
.sc.nx{outline:1.5px dashed var(--hl);outline-offset:1px;border-radius:3px}
.sc.sel{outline:2.5px solid var(--focus);outline-offset:1px;border-radius:3px}
.sc.pop{animation:sc-pop .9s .3s cubic-bezier(.3,1.5,.5,1) both}
@keyframes sc-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.45)}100%{opacity:1;transform:scale(1)}}

.sc-lap{margin:0 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:15px}
.sc-goal{font-size:13px;font-weight:700;color:var(--muted)}
.sc-grid{display:grid;grid-template-columns:repeat(auto-fill,var(--sc));gap:3px;justify-content:start;max-height:380px;overflow-y:auto;overscroll-behavior:contain;
  padding:8px;border:2px solid var(--edge,#1c2b4f);border-radius:12px;background:var(--bg)}
.sc-grid.sz-l{--sc:26px}
.sc-grid.sz-m{--sc:22px}
.sc-grid.sz-s{--sc:18px}
.sc-grid.sz-xs{--sc:14px;gap:2px}
.sc-grid .sc{cursor:pointer}
.sc-grid:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sc-info{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:2em;margin:6px 0 2px;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.sc-see{font:inherit;font-size:14px;font-weight:800;min-height:36px;padding:2px 12px;border:2px solid var(--edge,#1c2b4f);border-radius:10px;background:#ffffff;color:#1c2b4f;cursor:pointer}
.sc-legend{list-style:none;margin:4px 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:14px;font-weight:700;color:var(--muted)}
.sc-legend li{display:flex;align-items:center;gap:6px}
.sc-legend .sc{--sc:18px}
.sc-list{margin-top:8px;border:2px solid var(--edge,#1c2b4f);border-radius:14px;background:var(--surface)}
.sc-list > summary{min-height:44px;display:flex;align-items:center;padding:6px 12px;font-weight:800;cursor:pointer}
.sc-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:end;padding:0 12px 6px}
.sc-flab{grid-column:1 / -1;font-size:14px;font-weight:700}
.rail .sc-tools input[type=text]{min-height:44px;font-size:16px;padding:6px 12px}
.rail .sc-tools .sc-next{margin:0;min-height:44px;padding:4px 12px;font-size:14px;white-space:nowrap}
.sc-count{grid-column:1 / -1;margin:0;font-size:14px;font-weight:700;color:var(--muted)}
.sc-count:empty{display:none}
.sc-msg{margin:0;padding:4px 12px 10px;font-weight:700;color:var(--muted)}
.sc-ol{list-style:none;margin:0;padding:0 4px 6px;max-height:420px;overflow-y:auto;overscroll-behavior:contain;border-top:2px dashed var(--line)}
.sc-row{display:grid;grid-template-columns:2.6em 20px minmax(0,1fr);gap:2px 8px;align-items:center;padding:6px 8px;border-bottom:1px dashed var(--line);font-size:14px}
.sc-row .sc{--sc:20px}
.sc-row.here{background:var(--me-row);box-shadow:inset 6px 0 0 var(--hl)}
.sc-row:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.sc-no{font-weight:800;text-align:right;color:var(--muted)}
.sc-tx{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0}
.sc-nm{font-weight:700;overflow-wrap:anywhere}
.sc-st{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}
.sc-st.on{color:var(--hl)}
.sc-nxtag{font-size:13px;font-weight:800;color:var(--hl);border:1.5px dashed var(--hl);border-radius:999px;padding:0 6px;white-space:nowrap}
.sc-row .metag{margin-left:0}
.sc-disc{margin-top:10px;padding:8px 12px;border:2px dashed var(--note-line);border-radius:12px;background:var(--note-bg);color:var(--note-text);font-size:14px;font-weight:700}
.sc-disc p{margin:2px 0}
.sc-disc .sc-src{font-weight:400}

/* 合格の結果：灯した高校の名前 */
.msg.lit-schools{background:var(--surface);border-color:var(--leaf,#5fb534);border-style:solid}
.msg.lit-schools:empty{display:none}
.ls-line{margin:0 0 2px;font-weight:700;overflow-wrap:anywhere}
.ls-name{font-weight:800}
.ls-btns{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:6px}
.rail .ls-btns .btn{margin:0;min-height:44px;padding:4px 14px;font-size:14px}
/* 申請の記録：灯した高校 */
.history .h-schools{grid-column:-2 / -1;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.history .h-schools:empty{display:none}

@media (prefers-reduced-motion: reduce){
  .sc.pop{animation:none}
}

/* =====================================================================
 * 合格のお祝い（2026-11-21 追加・同日に盛大に）
 * 画面を暗くして、回る光・花火・紙吹雪・ゆるキャラと、大きな文字だけを浮かび上がらせる。少しあとに「つぎの一手」を出す。
 * 動きは transform / opacity だけ。prefers-reduced-motion では動き・光・花火・紙吹雪を出さない。
 * ===================================================================== */
.cele{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(6,10,28,.93);color:#ffffff;overflow:hidden}
.cele:not([open]){display:none}
.cele::backdrop{background:rgba(6,10,28,.7)}
.cele-rays{position:absolute;left:50%;top:40%;width:240vmax;height:240vmax;margin:-120vmax 0 0 -120vmax;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,rgba(255,210,63,.26) 0deg 6deg,rgba(255,210,63,0) 6deg 18deg);
  -webkit-mask-image:radial-gradient(circle,#000 0%,rgba(0,0,0,.5) 18%,transparent 42%);mask-image:radial-gradient(circle,#000 0%,rgba(0,0,0,.5) 18%,transparent 42%);
  animation:cele-spin 40s linear infinite,cele-fade .8s ease-out both}
.cele-fx,.cele-confetti,.cele-flash{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.cele-flash{background:#ffffff;opacity:0;animation:cele-flash .55s ease-out,cele-flash2 .7s ease-out 1.9s}
.fw{position:absolute;width:9px;height:9px;margin:-4px 0 0 -4px;border-radius:50%;opacity:0;box-shadow:0 0 10px 2px rgba(255,255,255,.55);animation:fw 1.25s cubic-bezier(.1,.7,.3,1) forwards}
@keyframes fw{0%{opacity:1;transform:translate3d(0,0,0) scale(1.5)}60%{opacity:1}100%{opacity:0;transform:translate3d(var(--dx,0),calc(var(--dy,0) + 46px),0) scale(.3)}}
.cf{position:absolute;top:-28px;border-radius:2px;opacity:0;animation:cf-fall var(--d,3s) linear var(--dl,0s) 6}
.cf.round,.cn.round{border-radius:50%}
.cf.long{width:5px !important;height:26px !important;border-radius:3px}
@keyframes cf-fall{0%{opacity:1;transform:translate3d(0,0,0) rotate(0)}90%{opacity:1}100%{opacity:0;transform:translate3d(var(--x,0),108vh,0) rotate(var(--r,540deg))}}
.cn{position:absolute;bottom:-14px;width:10px;height:15px;border-radius:2px;opacity:0;animation:cn-shot 2.6s cubic-bezier(.15,.75,.4,1) var(--dl,0s) both}
@keyframes cn-shot{0%{opacity:1;transform:translate3d(0,0,0) rotate(0)}38%{opacity:1;transform:translate3d(var(--ux,0),var(--uy,-60vh),0) rotate(calc(var(--r,500deg) * .5))}100%{opacity:0;transform:translate3d(calc(var(--ux,0) * 1.25),12vh,0) rotate(var(--r,500deg))}}
.cele-in{position:relative;z-index:1;height:100%;overflow-y:auto;display:flex;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px))}
.cele-box{margin:auto;width:100%;max-width:760px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;animation:cele-shake .5s linear 1.9s}
.cele-top{display:flex;align-items:flex-end;justify-content:center;gap:clamp(6px,3vw,22px)}
.cele-ch{display:block;flex:none;width:clamp(54px,min(15vw,12.4vh),132px);height:clamp(54px,min(15vw,12.4vh),132px);animation:cele-pop .5s cubic-bezier(.3,1.6,.5,1) .15s both,cele-bounce .62s ease-in-out .7s infinite alternate}
.cele-ch.c2{animation-delay:.3s,1s}
.cele-ch svg{display:block;width:100%;height:100%;overflow:visible}
.cele-badge{margin:0 0 10px;font-size:clamp(21px,min(5.8vw,4.1vh),44px);font-weight:800;line-height:1.5;white-space:nowrap;color:#1c2b4f;background:#ffd23f;border:5px solid #ffffff;border-radius:999px;padding:0 clamp(12px,4vw,34px);box-shadow:0 0 0 6px rgba(255,210,63,.35),0 0 36px rgba(255,210,63,.7);animation:cele-stamp .55s cubic-bezier(.3,1.5,.5,1) both}
.rail .cele h2.cele-h,.cele-h{margin:0;font-size:clamp(27px,min(7.6vw,5.25vh),56px);font-weight:800;line-height:1.38;letter-spacing:.04em;color:#ffffff;text-shadow:0 4px 0 #1c2b4f,0 0 26px rgba(111,183,232,.6);animation:cele-up .55s ease-out .35s both}
.cele-you,.cele-did{display:block}
.cele-where{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:0 10px}
.cele-pref{display:inline-flex;flex-direction:column;align-items:center}
.cele-pref b{font-size:1.38em;line-height:1.2;color:#ffd23f;text-shadow:0 5px 0 #c8361d,0 0 30px rgba(255,210,63,.7)}
.cele-role{font-size:max(13px,.36em);line-height:1.5;letter-spacing:.08em;text-shadow:none;color:#1c2b4f;background:#ffffff;border-radius:999px;padding:0 12px}
.cele-and{font-size:.7em}
.cele-schools{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.cele-schools li{font-size:clamp(22px,min(6vw,3.9vh),42px);font-weight:800;line-height:1.4;color:#fff3b8;text-shadow:0 0 20px rgba(255,210,63,.85),0 3px 0 #1c2b4f;overflow-wrap:anywhere;animation:cele-lit .7s ease-out 1s both}
.cele-rescue{margin:2px 0 0;font-size:clamp(46px,min(13.5vw,9.75vh),104px);font-weight:800;line-height:1.15;letter-spacing:.06em;color:#ffd23f;text-shadow:0 6px 0 #c8361d,0 10px 0 #1c2b4f,0 0 40px rgba(255,210,63,.8);animation:cele-slam .6s cubic-bezier(.2,1.4,.4,1) 1.9s both,cele-beat 1s ease-in-out 2.6s infinite}
.cele-next{position:relative;visibility:hidden;opacity:0;width:100%;max-width:600px;margin-top:10px;background:#ffd23f;color:#1c2b4f;border:5px solid #ffffff;border-radius:22px;padding:22px 16px 14px;box-shadow:0 0 0 7px rgba(255,210,63,.4),0 0 50px rgba(255,210,63,.65)}
.cele-next.show{visibility:visible;opacity:1;animation:cele-slam .6s cubic-bezier(.2,1.4,.4,1) both,cele-beat 1.2s ease-in-out .7s infinite}
.cele-next-k{position:absolute;top:-19px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:17px;font-weight:800;color:#ffffff;background:#e0442a;border:3px solid #ffffff;border-radius:999px;padding:0 20px}
.cele-next-big{margin:0;font-size:clamp(19px,min(5.2vw,3.2vh),32px);font-weight:800;line-height:1.45;text-wrap:balance}
.cele-next-big span{display:block}
.cele-next-big .cnb-1{font-size:.82em}
.cele-next-small{margin:6px 0 0;font-size:clamp(14px,3.8vw,17px);font-weight:700}
.cele-next-small:empty{display:none}
.cele-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 14px;margin-top:6px}
@keyframes cele-spin{to{transform:rotate(360deg)}}
@keyframes cele-fade{0%{opacity:0}100%{opacity:1}}
@keyframes cele-flash{0%{opacity:.75}100%{opacity:0}}
@keyframes cele-flash2{0%{opacity:.6}100%{opacity:0}}
@keyframes cele-pop{0%{opacity:0;transform:scale(.3)}100%{opacity:1;transform:scale(1)}}
@keyframes cele-stamp{0%{opacity:0;transform:scale(2.6) rotate(-14deg)}60%{opacity:1;transform:scale(.92) rotate(-3deg)}100%{opacity:1;transform:scale(1) rotate(-3deg)}}
@keyframes cele-up{0%{opacity:0;transform:translateY(30px) scale(.9)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes cele-lit{0%{opacity:0;transform:scale(.7)}60%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes cele-slam{0%{opacity:0;transform:scale(3.4)}55%{opacity:1;transform:scale(.88)}75%{transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes cele-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes cele-bounce{0%{transform:translateY(0) rotate(-4deg)}100%{transform:translateY(-16px) rotate(4deg)}}
@keyframes cele-shake{0%,100%{transform:translate(0,0)}15%{transform:translate(-9px,5px)}30%{transform:translate(8px,-6px)}45%{transform:translate(-6px,-4px)}60%{transform:translate(6px,4px)}80%{transform:translate(-3px,2px)}}
@media (max-height:700px){.cele-box{gap:6px}.cele-ch{width:54px;height:54px}}
@media (prefers-reduced-motion: reduce){
  .cele-rays,.cele-badge,.cele-ch,.cele-ch.c2,.cele-h,.rail .cele h2.cele-h,.cele-schools li,.cele-rescue,.cele-next.show,.cele-box{animation:none}
  .cele-flash,.cf,.cn,.fw{display:none}
}


/* =====================================================================
 * どこからでも申請欄へ（画面の右下に固定するボタン。2026-11-23 追加）
 * ===================================================================== */
.jump{position:fixed;right:max(14px, env(safe-area-inset-right, 0px));bottom:max(16px, env(safe-area-inset-bottom, 0px));z-index:15;display:inline-flex;align-items:center;gap:6px;min-height:54px;padding:0 20px 0 16px;font:inherit;font-size:17px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:0 5px 0 #1c2b4f,0 8px 18px rgba(0,0,0,.28);cursor:pointer;transition:opacity .2s ease-out,transform .2s ease-out,visibility .2s}
.jump svg{width:20px;height:20px;flex:none}
.jump:active{transform:translateY(4px);box-shadow:0 1px 0 #1c2b4f}
.jump:focus-visible{outline:3px solid #ffffff;outline-offset:2px}
.jump.off{opacity:0;visibility:hidden;transform:translateY(14px);pointer-events:none}
@media (prefers-reduced-motion: reduce){.jump{transition:none}}
@media print{.jump{display:none}}
/* お知らせ（トースト）は、右下のボタンと重ならないよう、その上に出す */
.toast{bottom:calc(max(16px, env(safe-area-inset-bottom, 0px)) + 68px)}


/* =====================================================================
 * タイトルとミッション欄（2026-11-23 追加）
 * ===================================================================== */
.rail .sign .kicker{font-size:clamp(13.5px,3.7vw,17px);letter-spacing:.06em;color:#1c2b4f;font-weight:800}
.rail .sign h1{font-size:clamp(24px,6.6vw,46px);margin:4px 0 12px}
.h1-k,.h1-m{display:block}
.h1-k{width:fit-content;margin:2px auto 6px;font-size:max(13px,.5em);line-height:1.7;letter-spacing:.2em;color:#ffffff;background:#e0442a;border:2px solid #1c2b4f;border-radius:999px;padding:0 .9em 0 1.1em}
.rail .period > .period-k{background:#1c2b4f;color:#ffffff;font-weight:800;letter-spacing:.1em;-webkit-mask:none;mask:none;padding:6px 14px}
.mission{margin:22px 0 18px}
.rail .mission-h{margin:0 0 26px;text-align:center;font-weight:800;line-height:1.25;letter-spacing:.03em;font-size:clamp(27px,7.6vw,56px);color:#1c2b4f}
.mission-h span{display:block}
.mission-h .mh-1{font-size:.62em;margin-bottom:.15em}
.mission-h .mh-2{width:fit-content;max-width:100%;margin:0 auto;color:#e0442a;text-shadow:0 .07em 0 #1c2b4f;background:linear-gradient(transparent 68%,#ffd23f 68% 96%,transparent 96%);padding:0 .15em;transform:rotate(-1.5deg)}
.mission-card{position:relative;background:var(--surface,#ffffff);border:3px solid #1c2b4f;border-radius:18px;box-shadow:6px 6px 0 #1c2b4f;padding:30px 18px 16px}
.mission-tag{position:absolute;top:-19px;left:14px;margin:0;font-size:clamp(18px,5vw,24px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:10px;padding:0 16px;transform:rotate(-3deg);box-shadow:3px 3px 0 #1c2b4f}
.mission-main{margin:0 0 14px;font-size:clamp(16.5px,4.5vw,21px);font-weight:700;line-height:1.75}
.mission-main b{background:linear-gradient(transparent 60%,#ffe27a 60%)}
.mission em{font-style:normal;font-weight:800;color:#e0442a;white-space:nowrap}
.mission-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.mission-steps li{position:relative;display:flex;align-items:center;gap:12px;font-size:clamp(16px,4.2vw,18px);font-weight:700;line-height:1.65;background:#eef8ff;border:2px solid #1c2b4f;border-radius:14px;padding:10px 14px}
.mission-steps li + li::before{content:"";position:absolute;left:50%;top:-19px;margin-left:-10px;border:10px solid transparent;border-top:12px solid #1c2b4f;border-bottom:0}
.mission-steps .ms-goal{background:#fff3b8;border-width:3px;font-size:clamp(16.5px,4.6vw,20px)}
.mission-steps strong{font-size:1.2em;color:#e0442a}
.ms-ico{flex:none;width:44px;height:44px;border-radius:50%;background:#ffffff;border:2px solid #1c2b4f;display:grid;place-items:center}
.ms-ico svg{width:28px;height:28px;display:block}
.mission-note{margin:14px 0 0;font-size:14px;line-height:1.7;color:#44527a}
.manifesto{position:relative;margin:26px 0 0;padding:20px 18px;text-align:center;text-wrap:balance;font-size:clamp(16px,4.4vw,22px);font-weight:800;line-height:1.85;letter-spacing:.03em;color:#ffffff;background:#1c2b4f;border-radius:16px;box-shadow:0 0 0 3px #ffd23f inset,6px 6px 0 #e0442a}
.manifesto b{color:#ffd23f}

/* =====================================================================
 * 現在の状況（救った高校数と地元貢献レベル。2026-11-23 追加）
 * ===================================================================== */
.rail .head-body{margin-bottom:20px}
.rail .nation{padding:16px 18px}
.nation-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 6px}
.rail .nation-h{margin:0;font-size:clamp(15.5px,5vw,28px);letter-spacing:0;font-weight:800;line-height:1.3;color:#1c2b4f;background:linear-gradient(transparent 62%,#ffd23f 62% 94%,transparent 94%);padding:0 .1em}
.nation-lv{font-size:14px;font-weight:800;line-height:1.7;color:#ffffff;background:#e0442a;border:2px solid #1c2b4f;border-radius:999px;padding:0 14px;white-space:nowrap}
.rail .nation-total{font-size:clamp(16px,4.4vw,20px);font-weight:800;line-height:1.5}
.rail .nt-num{font-size:clamp(40px,11vw,60px);line-height:1.1;color:#e0442a;margin:0 4px;text-shadow:0 3px 0 #1c2b4f}
.rail .nation-bar{height:20px;margin:10px 0 6px}
.rail .nation-next{font-size:clamp(16px,4.2vw,18px);font-weight:700}
.nn-lv{color:#e0442a;font-weight:800}
.nn-num{font-size:1.35em;font-weight:800;color:#e0442a;margin:0 2px;font-variant-numeric:tabular-nums}

/* マイページ：ランプを灯した高校の一覧（2026-11-23 追加） */
.mylit{margin-top:22px}
.ml-count{display:inline-block;margin-left:10px;font-size:14px;font-weight:800;color:#ffffff;background:#e0442a;border:2px solid #1c2b4f;border-radius:999px;padding:0 12px;line-height:1.6;vertical-align:2px}
.ml-pref{margin:10px 0 14px}
.ml-name{margin:0 0 6px;font-weight:800;font-size:16px;color:#1c2b4f}
.ml-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 8px}
.ml-list li{font-size:14.5px;font-weight:700;line-height:1.5;color:#1c2b4f;background:#fff3b8;border:2px solid #1c2b4f;border-radius:10px;padding:3px 10px;overflow-wrap:anywhere}
.ml-list li::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:#ffd23f;border:2px solid #1c2b4f;margin-right:6px;box-shadow:0 0 6px #ffd23f}
.ml-x{margin-left:6px;color:#e0442a;font-weight:800}

/* くわしいルール・参加のしかたへの大きなボタン（2026-11-23 追加） */
.rule-cta{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0 0 24px}
.rule-btn{display:flex;align-items:center;gap:14px;padding:14px 18px;color:#1c2b4f;text-decoration:none;background:#ffd23f;border:3px solid #1c2b4f;border-radius:18px;box-shadow:6px 6px 0 #1c2b4f;transition:transform .08s ease-out,box-shadow .08s ease-out}
.rule-btn:hover{background:#ffdc5e}
.rule-btn:active{transform:translate(4px,4px);box-shadow:2px 2px 0 #1c2b4f}
.rule-btn:focus-visible{outline:3px solid #e0442a;outline-offset:3px}
.rb-ico{flex:none;width:52px;height:52px;border-radius:50%;background:#ffffff;border:3px solid #1c2b4f;display:grid;place-items:center}
.rb-ico svg{width:32px;height:32px;display:block}
.rb-text{flex:1;min-width:0;display:flex;flex-direction:column}
.rb-text b{font-size:clamp(17px,4.8vw,22px);font-weight:800;line-height:1.35}
.rb-text small{font-size:14px;font-weight:700;color:#44527a}
.rb-arrow{flex:none;font-size:26px;font-weight:800;line-height:1}
.rule-cta .btn.line{align-self:flex-start}
@media (prefers-reduced-motion: reduce){.rule-btn{transition:none}}

/* 今日の急上昇県：上位5県と順位の印（2026-11-23 追加） */
.wk-list{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.wk-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.wk-list{grid-template-columns:minmax(0,1fr)}}
.wk-item{position:relative}
.wk-mv{position:absolute;top:-10px;right:8px;font-size:13px;font-weight:800;line-height:1.6;padding:0 9px;border-radius:999px;border:2px solid #1c2b4f;background:#ffffff;color:#1c2b4f;white-space:nowrap}
.wk-mv.up{background:#e0442a;color:#ffffff}
.wk-mv.down{background:#3b6fd4;color:#ffffff}
.wk-mv.new{background:#ffd23f}
.wk-list{row-gap:16px;padding-top:8px}

/* =====================================================================
 * 背景の旅の風景（2026-11-23 追加）
 * 空と山なみは画面に固定し、雲はゆっくり流す。区画のあいだには、線路と列車のある風景の帯を入れる。
 * 絵はすべてこの企画のために描いた自作のSVG。動きは transform だけ。prefers-reduced-motion では止める。
 * ===================================================================== */
.rail{background-image:none;background-color:var(--sky)}
.rail::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(circle at calc(100% - 56px) 64px, var(--sun) 0 34px, rgba(255,210,63,.35) 35px 46px, transparent 47px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cpath d='M0 300V190l90-70 70 50 110-120 100 110 80-60 120 90 90-80 110 100 100-70 130 90 100-60 100 70v150z' fill='%239fd3f0'/%3E%3Cpath d='M270 50l-34 37 20 8 14-12 16 14 18-10zM160 170' fill='%23ffffff'/%3E%3Cpath d='M700 100l-26 23 16 6 12-9 14 10 12-6z' fill='%23ffffff'/%3E%3Cpath d='M0 300v-70c80-40 160-46 250-18 90 28 150 22 240-10 110-38 200-30 300 6 90 32 170 30 250-2 60-24 110-26 160-10v104z' fill='%23a8dd86'/%3E%3Cpath d='M0 300v-36c90-28 170-26 260-6 100 22 180 18 280-8 110-28 210-22 310 4 100 26 190 22 350-12v58z' fill='%237fcb5c'/%3E%3Cg fill='%234f9e3a'%3E%3Ccircle cx='120' cy='252' r='11'/%3E%3Ccircle cx='136' cy='256' r='8'/%3E%3Ccircle cx='560' cy='246' r='12'/%3E%3Ccircle cx='578' cy='251' r='8'/%3E%3Ccircle cx='980' cy='252' r='11'/%3E%3Ccircle cx='996' cy='257' r='7'/%3E%3C/g%3E%3Cg%3E%3Crect x='330' y='250' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M326 251l15-12 15 12z' fill='%23e0442a'/%3E%3Crect x='360' y='254' width='18' height='12' fill='%23fff9e6'/%3E%3Cpath d='M357 255l12-10 12 10z' fill='%233b6fd4'/%3E%3Crect x='800' y='248' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M796 249l15-12 15 12z' fill='%23ffb62e'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / auto max(180px, 34vh),
    linear-gradient(180deg, #8fd0f5 0, var(--sky) 45%, var(--sky2) 100%) no-repeat}
.rail::after{content:"";position:fixed;left:0;top:0;height:100vh;width:calc(100vw + 560px);z-index:-1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='380' viewBox='0 0 560 380'%3E%3Cg fill='%23ffffff'%3E%3Cg fill-opacity='.95'%3E%3Cellipse cx='110' cy='70' rx='70' ry='20'/%3E%3Cellipse cx='140' cy='52' rx='38' ry='24'/%3E%3Cellipse cx='96' cy='56' rx='26' ry='17'/%3E%3C/g%3E%3Cg fill-opacity='.85'%3E%3Cellipse cx='410' cy='200' rx='86' ry='22'/%3E%3Cellipse cx='448' cy='180' rx='44' ry='27'/%3E%3Cellipse cx='392' cy='184' rx='30' ry='19'/%3E%3C/g%3E%3Cg fill-opacity='.75'%3E%3Cellipse cx='200' cy='320' rx='52' ry='14'/%3E%3Cellipse cx='220' cy='308' rx='26' ry='16'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat left top / 560px 380px;animation:sky-drift 90s linear infinite}
@keyframes sky-drift{from{transform:translateX(0)}to{transform:translateX(-560px)}}
.scene{position:relative;height:120px;margin:4px 0 26px;overflow:hidden;border-radius:18px;border:3px solid #1c2b4f;box-shadow:6px 6px 0 #1c2b4f;background-color:#bfe8fb;background-repeat:repeat-x;background-position:left bottom 14px;background-size:auto 106px}
.scene.s1{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='120' viewBox='0 0 640 120'%3E%3Cpath d='M0 120V78l70-52 60 40 80-58 90 62 70-40 90 50 80-44 100 42v42z' fill='%238fc7ea'/%3E%3Cpath d='M210 8l-26 19 16 6 10-8 12 9 12-7z' fill='%23fff'/%3E%3Cpath d='M0 120V96c90-26 170-22 260-4 100 20 200 14 380-12v40z' fill='%237fcb5c'/%3E%3Cg fill='%234f9e3a'%3E%3Ccircle cx='60' cy='92' r='12'/%3E%3Ccircle cx='80' cy='97' r='9'/%3E%3Ccircle cx='500' cy='88' r='12'/%3E%3Ccircle cx='520' cy='94' r='9'/%3E%3C/g%3E%3Crect x='300' y='78' width='30' height='24' fill='%23fff9e6' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M294 80l21-17 21 17z' fill='%23e0442a' stroke='%231c2b4f' stroke-width='2'/%3E%3Crect x='311' y='88' width='8' height='14' fill='%231c2b4f'/%3E%3Crect x='350' y='84' width='24' height='18' fill='%23fff9e6' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M345 86l17-13 17 13z' fill='%233b6fd4' stroke='%231c2b4f' stroke-width='2'/%3E%3C/svg%3E")}
.scene.s2{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='120' viewBox='0 0 640 120'%3E%3Cpath d='M0 120V70h640v50z' fill='%237fc8ee'/%3E%3Cg stroke='%23ffffff' stroke-width='3' stroke-linecap='round' fill='none' opacity='.8'%3E%3Cpath d='M40 86q10-8 20 0t20 0'/%3E%3Cpath d='M260 96q10-8 20 0t20 0'/%3E%3Cpath d='M470 84q10-8 20 0t20 0'/%3E%3C/g%3E%3Cpath d='M150 70c20-30 70-34 100 0z' fill='%237fcb5c'/%3E%3Crect x='196' y='26' width='10' height='30' fill='%23fff' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M193 26h16l-8-10z' fill='%23e0442a' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M380 78h60l-10 14h-40z' fill='%23fff9e6' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M410 76V40l26 32z' fill='%23ffd23f' stroke='%231c2b4f' stroke-width='2'/%3E%3Cpath d='M0 120v-14c120-10 240-6 360 0s200 6 280-2v16z' fill='%23f2deaa'/%3E%3C/svg%3E")}
.scene.s3{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='120' viewBox='0 0 640 120'%3E%3Cpath d='M0 120V60c60-30 140-30 200 0 60 26 120 24 180-4 80-34 170-24 260 10v54z' fill='%23a8dd86'/%3E%3Cpath d='M0 120V98h640v22z' fill='%237fcb5c'/%3E%3Cg stroke='%231c2b4f' stroke-width='2'%3E%3Cpath d='M286 98V60M334 98V60' stroke='%23e0442a' stroke-width='7'/%3E%3Cpath d='M274 58h72M280 70h60' stroke='%23e0442a' stroke-width='7' stroke-linecap='round'/%3E%3C/g%3E%3Cg%3E%3Crect x='96' y='78' width='6' height='22' fill='%238a5a2b'/%3E%3Ccircle cx='99' cy='68' r='20' fill='%23ffb7d0'/%3E%3Ccircle cx='84' cy='78' r='12' fill='%23ffc9dc'/%3E%3Ccircle cx='114' cy='78' r='12' fill='%23ffc9dc'/%3E%3Crect x='516' y='78' width='6' height='22' fill='%238a5a2b'/%3E%3Ccircle cx='519' cy='68' r='20' fill='%23ffb7d0'/%3E%3Ccircle cx='504' cy='78' r='12' fill='%23ffc9dc'/%3E%3Ccircle cx='534' cy='78' r='12' fill='%23ffc9dc'/%3E%3C/g%3E%3Cg fill='%23ffd23f'%3E%3Crect x='420' y='86' width='40' height='4'/%3E%3Crect x='420' y='94' width='40' height='4'/%3E%3Crect x='170' y='88' width='40' height='4'/%3E%3Crect x='170' y='96' width='40' height='4'/%3E%3C/g%3E%3C/svg%3E")}
.scene::before{content:"";position:absolute;left:0;right:0;bottom:0;height:14px;border-top:3px solid #1c2b4f;background:repeating-linear-gradient(90deg,#b98a57 0 5px,#e8d3a8 5px 16px)}
.scene::after{content:"";position:absolute;left:0;bottom:9px;width:150px;height:40px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='40' viewBox='0 0 150 40'%3E%3Cg transform='translate(0 0)'%3E%3Crect x='2' y='6' width='66' height='24' rx='9' fill='%23ffffff' stroke='%231c2b4f' stroke-width='3'/%3E%3Crect x='2' y='20' width='66' height='4' fill='%23e0442a'/%3E%3Crect x='10' y='11' width='12' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Crect x='28' y='11' width='12' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Crect x='46' y='11' width='14' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Ccircle cx='18' cy='33' r='5' fill='%231c2b4f'/%3E%3Ccircle cx='52' cy='33' r='5' fill='%231c2b4f'/%3E%3C/g%3E%3Cg transform='translate(76 0)'%3E%3Crect x='2' y='6' width='66' height='24' rx='9' fill='%23ffd23f' stroke='%231c2b4f' stroke-width='3'/%3E%3Crect x='2' y='20' width='66' height='4' fill='%23e0442a'/%3E%3Crect x='10' y='11' width='12' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Crect x='28' y='11' width='12' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Crect x='46' y='11' width='14' height='8' rx='2' fill='%23d6f1fd' stroke='%231c2b4f' stroke-width='2'/%3E%3Ccircle cx='18' cy='33' r='5' fill='%231c2b4f'/%3E%3Ccircle cx='52' cy='33' r='5' fill='%231c2b4f'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;transform:translateX(-160px);animation:scene-train 22s linear infinite}
.scene.s2::after{animation-duration:27s;animation-delay:-9s}
.scene.s3::after{animation-duration:24s;animation-delay:-15s}
@keyframes scene-train{from{transform:translateX(-160px)}to{transform:translateX(min(100vw, 1200px))}}
@media (max-width:700px){.scene{height:96px;background-size:auto 82px}.scene::after{width:112px;height:30px;bottom:10px}}
@media (prefers-reduced-motion: reduce){
  .rail::after{animation:none}
  .scene::after{animation:none;transform:translateX(24px)}
}
@media print{.rail::before,.rail::after,.scene{display:none}}
/* 暗い配色のときは、風景を夜の色合いに落とす */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .rail::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cpath d='M0 300V190l90-70 70 50 110-120 100 110 80-60 120 90 90-80 110 100 100-70 130 90 100-60 100 70v150z' fill='%239fd3f0'/%3E%3Cpath d='M270 50l-34 37 20 8 14-12 16 14 18-10zM160 170' fill='%23ffffff'/%3E%3Cpath d='M700 100l-26 23 16 6 12-9 14 10 12-6z' fill='%23ffffff'/%3E%3Cpath d='M0 300v-70c80-40 160-46 250-18 90 28 150 22 240-10 110-38 200-30 300 6 90 32 170 30 250-2 60-24 110-26 160-10v104z' fill='%23a8dd86'/%3E%3Cpath d='M0 300v-36c90-28 170-26 260-6 100 22 180 18 280-8 110-28 210-22 310 4 100 26 190 22 350-12v58z' fill='%237fcb5c'/%3E%3Cg fill='%234f9e3a'%3E%3Ccircle cx='120' cy='252' r='11'/%3E%3Ccircle cx='136' cy='256' r='8'/%3E%3Ccircle cx='560' cy='246' r='12'/%3E%3Ccircle cx='578' cy='251' r='8'/%3E%3Ccircle cx='980' cy='252' r='11'/%3E%3Ccircle cx='996' cy='257' r='7'/%3E%3C/g%3E%3Cg%3E%3Crect x='330' y='250' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M326 251l15-12 15 12z' fill='%23e0442a'/%3E%3Crect x='360' y='254' width='18' height='12' fill='%23fff9e6'/%3E%3Cpath d='M357 255l12-10 12 10z' fill='%233b6fd4'/%3E%3Crect x='800' y='248' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M796 249l15-12 15 12z' fill='%23ffb62e'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / auto max(180px, 34vh),linear-gradient(180deg,#0a1426 0,var(--sky) 60%,var(--sky2) 100%) no-repeat;filter:brightness(.45) saturate(.8)}
  :root:not([data-theme="light"]) .rail::after{opacity:.18}
  :root:not([data-theme="light"]) .scene{filter:brightness(.6) saturate(.85)}
}
:root[data-theme="dark"] .rail::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cpath d='M0 300V190l90-70 70 50 110-120 100 110 80-60 120 90 90-80 110 100 100-70 130 90 100-60 100 70v150z' fill='%239fd3f0'/%3E%3Cpath d='M270 50l-34 37 20 8 14-12 16 14 18-10zM160 170' fill='%23ffffff'/%3E%3Cpath d='M700 100l-26 23 16 6 12-9 14 10 12-6z' fill='%23ffffff'/%3E%3Cpath d='M0 300v-70c80-40 160-46 250-18 90 28 150 22 240-10 110-38 200-30 300 6 90 32 170 30 250-2 60-24 110-26 160-10v104z' fill='%23a8dd86'/%3E%3Cpath d='M0 300v-36c90-28 170-26 260-6 100 22 180 18 280-8 110-28 210-22 310 4 100 26 190 22 350-12v58z' fill='%237fcb5c'/%3E%3Cg fill='%234f9e3a'%3E%3Ccircle cx='120' cy='252' r='11'/%3E%3Ccircle cx='136' cy='256' r='8'/%3E%3Ccircle cx='560' cy='246' r='12'/%3E%3Ccircle cx='578' cy='251' r='8'/%3E%3Ccircle cx='980' cy='252' r='11'/%3E%3Ccircle cx='996' cy='257' r='7'/%3E%3C/g%3E%3Cg%3E%3Crect x='330' y='250' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M326 251l15-12 15 12z' fill='%23e0442a'/%3E%3Crect x='360' y='254' width='18' height='12' fill='%23fff9e6'/%3E%3Cpath d='M357 255l12-10 12 10z' fill='%233b6fd4'/%3E%3Crect x='800' y='248' width='22' height='16' fill='%23fff9e6'/%3E%3Cpath d='M796 249l15-12 15 12z' fill='%23ffb62e'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / auto max(180px, 34vh),linear-gradient(180deg,#0a1426 0,var(--sky) 60%,var(--sky2) 100%) no-repeat;filter:brightness(.45) saturate(.8)}
:root[data-theme="dark"] .rail::after{opacity:.18}
:root[data-theme="dark"] .scene{filter:brightness(.6) saturate(.85)}

/* 看板の左に本の表紙（2026-11-23 追加） */
.sign-in{display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,26px)}
.sign-text{min-width:0}
.sign-cover{flex:none;display:block;width:clamp(62px,16vw,118px);height:auto;border:3px solid #1c2b4f;border-radius:4px;box-shadow:4px 4px 0 #1c2b4f;transform:rotate(-4deg);margin:2px 0 14px 2px;background:#ffffff}
@media (max-width:420px){.rail .sign{padding-left:10px;padding-right:10px}.rail .sign h1{font-size:clamp(20px,5.7vw,24px);letter-spacing:.02em}.rail .sign .kicker{font-size:13px;letter-spacing:0}}
/* SNS投稿のヒント（2026-11-23 追加） */
.sns-tips{margin:0 0 20px;padding:14px 14px 12px;background:#fff9e6;border:2px dashed #1c2b4f;border-radius:14px}
.st-h{margin:0 0 10px;font-size:clamp(16px,4.2vw,18px);font-weight:700;line-height:1.7}
.st-h b{color:#e0442a;font-weight:800;font-size:1.15em}
.st-badge{display:inline-block;margin-right:8px;font-size:13.5px;font-weight:800;line-height:1.7;color:#ffffff;background:#1c2b4f;border-radius:999px;padding:0 12px;vertical-align:1px}
.sns-tips ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.sns-tips li{font-size:clamp(14.5px,3.9vw,16px);font-weight:700;line-height:1.5;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;padding:4px 14px 4px 10px}
.sns-tips li::before{content:"✓";display:inline-block;margin-right:6px;color:#5fb534;font-weight:800}

.sns-tips + .sns-tips{margin-top:-8px}
.sns-tips li{border-radius:18px}

/* ヒントは押すと開くボタン式に（2026-11-23 追加） */
.tips-wrap{margin:0 0 22px;display:flex;flex-direction:column;gap:10px}
.tips-lead{margin:0;font-size:14px;font-weight:700;color:#44527a}
.tips{background:#fff9e6;border:3px solid #1c2b4f;border-radius:14px;box-shadow:0 4px 0 #1c2b4f;overflow:hidden}
.tips summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:8px 14px;cursor:pointer;list-style:none;font-weight:800;font-size:clamp(16px,4.4vw,18px);color:#1c2b4f;background:#ffd23f}
.tips summary::-webkit-details-marker{display:none}
.tips summary:focus-visible{outline:3px solid #e0442a;outline-offset:-3px}
.tp-open{flex:none;font-size:13.5px;font-weight:800;line-height:1.8;color:#ffffff;background:#1c2b4f;border-radius:999px;padding:0 14px;white-space:nowrap}
.tp-open::before{content:"ひらく ▼"}
.tips[open] .tp-open::before{content:"とじる ▲"}
.tips[open] summary{border-bottom:3px solid #1c2b4f}
.tp-body{padding:12px 14px 14px}
.tp-body .st-h{margin:0 0 10px}
.tp-body ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tp-body li{font-size:16px;font-weight:700;line-height:1.5;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:18px;padding:4px 14px 4px 10px}
.tp-body li::before{content:"✓";display:inline-block;margin-right:6px;color:#5fb534;font-weight:800}

/* 「みんなで現在まで救った高校数！」を1行いっぱいの大きさに（2026-11-23 追加）。枠の幅に合わせて文字が伸び縮みする */
.rail .nation{container-type:inline-size}
.nation-head{display:block;margin:0 0 10px}
.rail .nation-h{display:block;width:fit-content;max-width:100%;white-space:nowrap;letter-spacing:0;line-height:1.25;padding:0 .08em;margin:0 0 8px;
  font-size:clamp(15px,5.4vw,24px);font-size:min(6.5cqw,78px);font-weight:800;color:#e0442a;
  text-shadow:0 .06em 0 #1c2b4f;background:linear-gradient(transparent 58%,#ffd23f 58% 94%,transparent 94%)}
.nation-lv{display:inline-block}

/* =====================================================================
 * マイページの県ブロック（2026-11-23 作り直し）：県名を大きく、いまの状況と「あと◯校」を図で見せる
 * ===================================================================== */
.rail .card.pc2{display:block;padding:0 0 14px;overflow:hidden;font-variant-numeric:tabular-nums}
.pc-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:12px 16px 10px;background:#1c2b4f;color:#ffffff}
.pc-role{flex-basis:100%;font-size:14px;font-weight:800;color:#ffd23f;letter-spacing:.04em}
.pc-name{font-size:clamp(34px,10vw,48px);font-weight:800;line-height:1.15;letter-spacing:.04em}
.pc-rank{margin-left:auto;font-size:clamp(17px,4.8vw,22px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#ffd23f;border-radius:999px;padding:0 16px;white-space:nowrap}
.pc-rank.none{background:#ffffff;font-size:14px}
.pc-main{display:flex;align-items:center;gap:16px;padding:16px 16px 6px}
.pc-ch{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px}
.rail .pc2 .card-pic{width:104px;height:104px;border:3px solid #1c2b4f;border-radius:16px;padding:0 0 12px;background:linear-gradient(0deg,#d9b77a 0 16px,#5fb534 16px 21px,#d6f1fd 21px)}
.pc-chname{font-size:13px;font-weight:800;color:#1c2b4f;text-align:center;max-width:120px}
.pc-now{min-width:0;display:flex;flex-direction:column}
.pc-k{font-size:15px;font-weight:800;color:#44527a}
.pc-num{font-size:20px;font-weight:800;color:#1c2b4f;line-height:1.1}
.pc-num b{font-size:clamp(52px,15vw,72px);color:#e0442a;text-shadow:0 4px 0 #1c2b4f;margin-right:4px}
.pc-sub{font-size:14.5px;font-weight:700;color:#44527a;margin-top:4px}
.pc-road{margin:8px 16px 0;padding:10px 12px 8px;background:#eef8ff;border:2px solid #1c2b4f;border-radius:14px}
.pc-road-h{margin:0 0 2px;font-size:15px;font-weight:800;color:#1c2b4f}
.rail .pc2 .prog{margin:4px 26px 2px}
.pc-ends{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font-size:13px;font-weight:700;color:#44527a}
.pc-ends .pc-mid{font-size:15px;font-weight:800;color:#1c2b4f}
.pc-next{list-style:none;margin:12px 16px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.pc-next li{display:flex;align-items:center;gap:10px;background:#fff9e6;border:2px solid #1c2b4f;border-radius:14px;padding:8px 12px}
.pc-ico{flex:none;width:36px;height:36px;display:grid;place-items:center;font-size:19px;background:#ffffff;border:2px solid #1c2b4f;border-radius:50%}
.pc-t{min-width:0;font-size:clamp(15.5px,4.3vw,18px);font-weight:700;line-height:1.5;color:#1c2b4f}
.pc-t b{font-size:1.55em;font-weight:800;color:#e0442a;margin:0 2px;line-height:1}
.pc-t strong{font-weight:800}
.pc-foot{margin:12px 16px 0;font-size:14px;font-weight:700;color:#44527a}
@media (max-width:900px){.rail .cards{grid-template-columns:minmax(0,1fr)}}
/* 都道府県ランキング：きのうの順位とくらべた印（2026-11-23 追加） */
.r-mv{display:inline-block;margin-left:6px;font-size:13px;font-weight:800;line-height:1.6;padding:0 7px;border-radius:999px;border:2px solid #1c2b4f;background:#ffffff;color:#1c2b4f;white-space:nowrap;vertical-align:middle}
.r-mv.up{background:#e0442a;color:#ffffff}
.r-mv.down{background:#3b6fd4;color:#ffffff}
.r-mv.new{background:#ffd23f}
.r-mv.same{border-color:transparent;background:transparent;color:#8a96b3}
/* =====================================================================
 * ゆるキャラの成長（変身シーン。2026-11-23 追加）。土台は .cele（暗い全画面）を使う
 * ===================================================================== */
.evo-in{position:relative;z-index:1;height:100%;overflow-y:auto;display:flex;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px))}
.evo-box{margin:auto;width:100%;max-width:640px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.evo-badge{margin:0;font-size:clamp(18px,5vw,26px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#ffd23f;border:4px solid #ffffff;border-radius:999px;padding:0 22px;box-shadow:0 0 30px rgba(255,210,63,.7)}
.rail .cele h2.evo-h,.evo-h{margin:0;font-size:clamp(24px,6.6vw,44px);font-weight:800;line-height:1.35;color:#ffffff;text-shadow:0 4px 0 #1c2b4f;text-wrap:balance}
.evo-stage{position:relative;width:min(64vw,34vh,300px);aspect-ratio:1;margin:6px 0}
.evo-ring{position:absolute;inset:-6%;border-radius:50%;background:radial-gradient(circle,rgba(255,210,63,.55) 0 45%,rgba(255,210,63,0) 70%)}
.evo-ch{position:absolute;inset:0;display:block}
.evo-ch svg{display:block;width:100%;height:100%;overflow:visible}
.evo-flash{position:absolute;inset:-25%;border-radius:50%;background:radial-gradient(circle,#ffffff 0 42%,rgba(255,255,255,0) 70%);opacity:0}
.evo-old{opacity:0}
.evo-names{margin:0;display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(18px,5vw,26px);font-weight:800;color:rgba(255,255,255,.8)}
.evo-names b{color:#ffd23f}
.evo-names strong{font-size:1.5em;color:#ffffff;background:#e0442a;border:3px solid #ffffff;border-radius:999px;padding:0 20px;line-height:1.5}
.evo-msg{margin:2px 0 4px;font-size:clamp(15.5px,4.3vw,19px);font-weight:700;line-height:1.7;color:#ffffff;text-wrap:balance}
.evo-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 12px}
.evo.go .evo-ring{animation:evo-pulse 1.1s ease-in-out infinite alternate}
.evo.go .evo-old{animation:evo-old 2s ease-in both}
.evo.go .evo-flash{animation:evo-flash 1.3s ease-out 1.6s both}
.evo.go .evo-new{animation:evo-new .9s cubic-bezier(.3,1.6,.5,1) 2.2s both,evo-bob .7s ease-in-out 3.2s infinite alternate}
.evo.go .evo-names,.evo.go .evo-msg,.evo.go .evo-btns{animation:evo-in .5s ease-out 2.9s both}
@keyframes evo-pulse{from{transform:scale(.92);opacity:.7}to{transform:scale(1.08);opacity:1}}
@keyframes evo-old{0%{opacity:1;transform:rotate(0) scale(1)}12%{transform:rotate(-7deg) scale(1)}24%{transform:rotate(7deg) scale(1.02)}36%{transform:rotate(-9deg) scale(1.04)}48%{transform:rotate(9deg) scale(1.06)}60%{transform:rotate(-11deg) scale(1.08)}72%{transform:rotate(11deg) scale(1.1);opacity:1}100%{transform:rotate(0) scale(.5);opacity:0}}
@keyframes evo-flash{0%{opacity:0;transform:scale(.2)}35%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(1.7)}}
@keyframes evo-new{from{opacity:0;transform:scale(.25)}to{opacity:1;transform:scale(1)}}
@keyframes evo-bob{from{transform:translateY(0)}to{transform:translateY(-10px)}}
@keyframes evo-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){
  .evo.go .evo-ring,.evo.go .evo-old,.evo.go .evo-flash,.evo.go .evo-new,.evo.go .evo-names,.evo.go .evo-msg,.evo.go .evo-btns{animation:none}
  .evo-old,.evo-flash{display:none}
}

/* スタンプ帳の称号：意味の切れ目でだけ改行する（2026-11-23） */
.sb-seg{display:inline-block;white-space:nowrap}
/* ヒントのボタン：紺地に白い文字、「ひらく」を黄色に（2026-11-23 配色を逆に） */
.tips summary{background:#1c2b4f;color:#ffffff}
.tp-open{background:#ffd23f;color:#1c2b4f}
.tips summary:focus-visible{outline-color:#ffd23f}

/* 地図の拡大・縮小（2026-11-23 追加） */
.map{touch-action:pan-x pan-y}
.mapbox.zoomed .map{cursor:grab}
.mz{position:absolute;right:10px;top:10px;z-index:2;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.mz button{font:inherit;width:44px;height:44px;font-size:24px;font-weight:800;line-height:1;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:12px;box-shadow:0 3px 0 #1c2b4f;cursor:pointer;padding:0}
.mz button.mz-reset{width:auto;height:36px;font-size:14px;padding:0 10px}
.mz button:disabled{opacity:.45;cursor:default;box-shadow:none}
.mz button:active:not(:disabled){transform:translateY(3px);box-shadow:none}
.mz button:focus-visible{outline:3px solid #e0442a;outline-offset:2px}

/* 「みんなで／現在まで救った高校数！」を2行・中央ぞろえに（2026-11-23）。2行めが枠の幅いっぱいになる大きさ */
.nation-head{text-align:center}
.rail .nation-h{width:auto;max-width:none;margin:0 0 10px;padding:0;background:none;text-align:center;line-height:1.2;
  font-size:clamp(20px,7.4vw,34px);font-size:min(8.7cqw,104px)}
.nation-h span{display:block;width:fit-content;margin:0 auto;white-space:nowrap}
.nation-h .nh-2{padding:0 .08em;background:linear-gradient(transparent 58%,#ffd23f 58% 94%,transparent 94%)}

/* 県ブロックの「あと◯校」：2行に分ける（2026-11-23） */
.pc-t .pc-l1,.pc-t .pc-l2{display:block}
.pc-t .pc-l2{font-weight:800}
/* 共有画面：カードの種類の切り替え（2026-11-23 追加） */
.sd-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.sd-tab{font:inherit;font-size:14.5px;font-weight:800;line-height:1.4;min-height:44px;padding:6px 14px;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:999px;cursor:pointer}
.sd-tab.on{background:#1c2b4f;color:#ffffff}
.sd-tab:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.pc-chname{max-width:150px;font-size:13px}

/* ログイン時の「地元の高校生を救え！」のズーム演出（2026-11-23 追加） */
.hero-zoom{position:fixed;inset:0;z-index:30;pointer-events:none;display:grid;place-items:center;background:radial-gradient(circle,rgba(255,255,255,.92) 0 30%,rgba(255,255,255,.55) 60%,rgba(255,255,255,0) 80%);animation:hz-bg 2.7s ease-out both}
.hz-t{text-align:center;font-weight:800;line-height:1.25;padding:0 12px;animation:hz-zoom 2.7s cubic-bezier(.3,.9,.4,1) both}
.hz-1{display:block;font-size:clamp(17px,4.6vw,30px);color:#1c2b4f;margin-bottom:.2em}
.hz-2{display:block;white-space:nowrap;font-size:clamp(28px,8.2vw,72px);color:#e0442a;text-shadow:0 .07em 0 #1c2b4f;background:linear-gradient(transparent 68%,#ffd23f 68% 96%,transparent 96%);padding:0 .15em}
@keyframes hz-zoom{0%{opacity:0;transform:scale(1)}10%{opacity:1;transform:scale(1)}32%{opacity:1;transform:scale(.25)}58%{opacity:1;transform:scale(1.55)}74%{transform:scale(.95)}84%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@keyframes hz-bg{0%{opacity:0}10%{opacity:1}84%{opacity:1}100%{opacity:0}}
.mission-h .mh-2.zoom{animation:mh-zoom 2.4s cubic-bezier(.3,.9,.4,1) .1s both}
@keyframes mh-zoom{0%{transform:rotate(-1.5deg) scale(1)}30%{transform:rotate(-1.5deg) scale(.4)}60%{transform:rotate(-1.5deg) scale(1.35)}78%{transform:rotate(-1.5deg) scale(.96)}100%{transform:rotate(-1.5deg) scale(1)}}
@media (prefers-reduced-motion: reduce){.hero-zoom{display:none}.mission-h .mh-2.zoom{animation:none}}
.st-em{font-weight:800;background:linear-gradient(transparent 60%,#ffe27a 60%)}

/* =====================================================================
 * ゆるキャラのうしろの風景（空・雲・山・草。2026-11-23 追加）と、地図の県カードの作り直し
 * ===================================================================== */
.scenic{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fd0f5'/%3E%3Cstop offset='1' stop-color='%23e3f6fe'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='240' height='240' fill='url(%23s)'/%3E%3Ccircle cx='196' cy='44' r='20' fill='%23ffd23f'/%3E%3Ccircle cx='196' cy='44' r='28' fill='%23ffd23f' fill-opacity='.3'/%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='62' cy='52' rx='34' ry='11'/%3E%3Cellipse cx='78' cy='42' rx='19' ry='13'/%3E%3Cellipse cx='54' cy='44' rx='13' ry='9'/%3E%3Cellipse cx='150' cy='92' rx='24' ry='8' fill-opacity='.85'/%3E%3Cellipse cx='160' cy='85' rx='13' ry='9' fill-opacity='.85'/%3E%3C/g%3E%3Cpath d='M0 190V150l44-42 30 26 46-56 50 60 30-28 40 38v42z' fill='%239fd3f0'/%3E%3Cpath d='M120 78l-17 21 11 5 8-7 9 8 9-6z' fill='%23ffffff'/%3E%3Cpath d='M0 240v-62c40-18 80-18 120-4s80 12 120-8v74z' fill='%238fd36a'/%3E%3Cpath d='M0 240v-34c50-12 100-10 150 0 30 6 60 4 90-4v38z' fill='%236fbf4b'/%3E%3Cpath d='M0 240v-14h240v14z' fill='%23d9b77a'/%3E%3C/svg%3E") center bottom / cover no-repeat}
.rail .pc2 .card-pic.scenic{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fd0f5'/%3E%3Cstop offset='1' stop-color='%23e3f6fe'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='240' height='240' fill='url(%23s)'/%3E%3Ccircle cx='196' cy='44' r='20' fill='%23ffd23f'/%3E%3Ccircle cx='196' cy='44' r='28' fill='%23ffd23f' fill-opacity='.3'/%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='62' cy='52' rx='34' ry='11'/%3E%3Cellipse cx='78' cy='42' rx='19' ry='13'/%3E%3Cellipse cx='54' cy='44' rx='13' ry='9'/%3E%3Cellipse cx='150' cy='92' rx='24' ry='8' fill-opacity='.85'/%3E%3Cellipse cx='160' cy='85' rx='13' ry='9' fill-opacity='.85'/%3E%3C/g%3E%3Cpath d='M0 190V150l44-42 30 26 46-56 50 60 30-28 40 38v42z' fill='%239fd3f0'/%3E%3Cpath d='M120 78l-17 21 11 5 8-7 9 8 9-6z' fill='%23ffffff'/%3E%3Cpath d='M0 240v-62c40-18 80-18 120-4s80 12 120-8v74z' fill='%238fd36a'/%3E%3Cpath d='M0 240v-34c50-12 100-10 150 0 30 6 60 4 90-4v38z' fill='%236fbf4b'/%3E%3Cpath d='M0 240v-14h240v14z' fill='%23d9b77a'/%3E%3C/svg%3E") center bottom / cover no-repeat;padding-bottom:10px}
.rail .cbox.has{display:block;padding:0;min-height:0;overflow:hidden;background:#ffffff;color:#1c2b4f;border:3px solid #1c2b4f;border-radius:16px}
.cx{font-variant-numeric:tabular-nums}
.cx-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;background:#1c2b4f;color:#ffffff}
.cx-name{font-size:clamp(24px,7cqw,34px);font-weight:800;line-height:1.2;letter-spacing:.04em}
.cx-rank{flex:none;font-size:clamp(15px,4.4cqw,20px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#ffd23f;border-radius:999px;padding:0 14px;white-space:nowrap}
.cx-rank.none{background:#ffffff;font-size:13px}
.cx-body{display:flex;align-items:center;gap:14px;padding:12px 14px 6px}
.cx-ch{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px}
.cx-pic{width:104px;height:104px;border:3px solid #1c2b4f;border-radius:16px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px}
.cx-svg{width:84px;height:84px;transform-origin:50% 100%}
.cx-svg svg{display:block;width:100%;height:100%;overflow:visible}
.cx-chname{font-size:13px;font-weight:800;color:#1c2b4f;text-align:center;max-width:130px}
.cx-info{flex:1;min-width:0;display:flex;flex-direction:column}
.cx-k{font-size:14px;font-weight:800;color:#44527a}
.cx-num{font-size:18px;font-weight:800;line-height:1.1;color:#1c2b4f}
.cx-num b{font-size:clamp(44px,13cqw,60px);color:#e0442a;text-shadow:0 3px 0 #1c2b4f;margin-right:3px}
.cx-num small{font-size:14px;font-weight:700;color:#44527a;white-space:nowrap}
.cx-bar{display:block;height:16px;margin:8px 0 3px;background:#fff1c9;border:2px solid #1c2b4f;border-radius:999px;overflow:hidden}
.cx-bar i{display:block;height:100%;min-width:6px;background:#ffb62e}
.cx-pct{font-size:15px;font-weight:800;color:#1c2b4f}
.cx-next{display:flex;align-items:center;gap:8px;margin:6px 14px 0;padding:6px 12px;font-size:clamp(15px,4.2cqw,17px);font-weight:700;line-height:1.5;background:#fff9e6;border:2px solid #1c2b4f;border-radius:12px}
.cx-next b{font-size:1.5em;font-weight:800;color:#e0442a;margin:0 2px;line-height:1}
.cx-ico{flex:none;font-size:18px}
.cx-more{margin:8px 14px 12px;text-align:center;font-size:14px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;padding:4px 10px}
@container (min-width:561px){.rail .cbox.has{width:min(46%,420px)}.cx-pic{width:88px;height:88px}.cx-svg{width:70px;height:70px}.cx-num b{font-size:44px}.cx-name{font-size:26px}.cx-rank{font-size:16px}.cx-next{font-size:15px}}

/* マイページの県ブロック：全国順位を最大限に大きく（2026-11-23） */
.pc-head{align-items:flex-end}
.pc-name{font-size:clamp(30px,8.6vw,46px)}
.pc-rank{display:inline-flex;align-items:baseline;gap:2px;line-height:1;padding:4px 14px 6px;border:3px solid #ffffff;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.pc-rank .pr-k{font-size:clamp(14px,3.8vw,18px);margin-right:4px}
.pc-rank .pr-n{font-size:clamp(46px,13.5vw,64px);font-weight:800;line-height:.95;color:#e0442a;text-shadow:0 3px 0 #1c2b4f}
.pc-rank .pr-u{font-size:clamp(20px,5.6vw,28px);font-weight:800}
.pc-rank.none{align-items:center;padding:4px 14px;line-height:1.6}
.cx-l{display:block}

/* 「この画像で／ミッション報告する」ボタン：車掌がマイクで本部に連絡するデザイン（2026-11-23） */
.entry-actions{justify-content:center;margin-top:26px}
.rail .btn.big.cd-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:84px;padding:12px 22px 12px 14px;color:#ffffff;background:#1c2b4f;border:4px solid #1c2b4f;border-radius:20px;
  box-shadow:inset 0 0 0 3px #ffd23f,0 6px 0 #0b1533;text-align:center}
.rail .btn.big.cd-btn:active:not(:disabled){transform:translateY(6px);box-shadow:inset 0 0 0 3px #ffd23f}
.cd-ico{flex:none;width:60px;height:60px;border-radius:50%;background:#d6f1fd;border:3px solid #ffd23f;display:grid;place-items:center;overflow:hidden}
.cd-ico svg{width:54px;height:54px;display:block}
.cd-lines{display:flex;flex-direction:column;align-items:center;line-height:1.3;font-weight:800}
.cd-lines span:nth-of-type(1){font-size:clamp(15px,4.2vw,18px);color:#ffd23f}
.cd-lines span:nth-of-type(2){font-size:clamp(19px,5.4vw,24px);white-space:nowrap}
.cd-tag{position:absolute;left:50%;top:-17px;transform:translateX(-50%) rotate(-2deg);white-space:nowrap;font-size:13px;font-weight:800;line-height:1.7;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;padding:0 12px}
.cd-tag::after{content:"";position:absolute;left:28px;bottom:-9px;border:6px solid transparent;border-top:8px solid #1c2b4f;border-bottom:0}
.cd-wave{flex:none;display:flex;align-items:center;gap:3px;height:34px}
.cd-wave i{display:block;width:5px;border-radius:3px;background:#ffd23f;height:12px;transform-origin:50% 50%}
.cd-wave i:nth-child(2){height:26px}.cd-wave i:nth-child(3){height:18px}
.cd-btn:not(:disabled) .cd-wave i{animation:cd-wave .7s ease-in-out infinite alternate}
.cd-btn:not(:disabled) .cd-wave i:nth-child(2){animation-delay:.15s}.cd-btn:not(:disabled) .cd-wave i:nth-child(3){animation-delay:.3s}
@keyframes cd-wave{from{transform:scaleY(.45)}to{transform:scaleY(1.15)}}
@media (prefers-reduced-motion: reduce){.cd-btn:not(:disabled) .cd-wave i{animation:none}}
.rail .btn.big.cd-btn{max-width:100%;box-sizing:border-box;margin-bottom:6px}
@media (max-width:480px){.rail .btn.big.cd-btn{gap:8px;padding:10px 12px 10px 10px;min-height:76px}.cd-ico{width:48px;height:48px}.cd-ico svg{width:44px;height:44px}.cd-lines span:nth-of-type(2){font-size:clamp(15.5px,4.5vw,19px)}.cd-lines span:nth-of-type(1){font-size:14px}.cd-wave{gap:2px}.cd-wave i{width:4px}}

/* ミッションの文章を箇条書きに（2026-11-23） */
.mm-lead,.mm-tail{margin:0;font-size:clamp(16.5px,4.5vw,21px);font-weight:700;line-height:1.7}
.mm-list{list-style:none;margin:8px 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.mm-list li{position:relative;padding:6px 12px 6px 40px;font-size:clamp(17px,4.8vw,22px);font-weight:800;line-height:1.5;color:#1c2b4f;background:linear-gradient(90deg,#fff3b8,#fff9e6);border:2px solid #1c2b4f;border-radius:12px}
.mm-list li::before{content:"";position:absolute;left:12px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:#ffd23f;border:3px solid #1c2b4f;box-shadow:0 0 8px #ffd23f}
.mm-list li{font-size:clamp(16px,4.15vw,22px);padding-left:36px;padding-right:8px;letter-spacing:0}
.mm-list li::before{left:10px}
.mm-and{margin:2px 0;font-size:clamp(16.5px,4.5vw,21px);font-weight:700;line-height:1.7}
.tp-note{margin:10px 0 0;font-size:clamp(14.5px,3.9vw,16px);font-weight:800;line-height:1.6;color:#e0442a}

/* =====================================================================
 * 一緒に戦う仲間を誘う（招待リンク）・仲間増やしのヒント・速報の速さ（2026-11-23 追加）
 * ===================================================================== */
.ticker-ctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ticker-speed{display:flex;align-items:center;gap:4px}
.ts-k{font-size:12.5px;font-weight:800;color:#ffb62e;margin-right:2px}
.ts-b{font:inherit;font-size:12.5px;font-weight:800;line-height:1.4;min-height:36px;padding:4px 9px;color:#ffb62e;background:transparent;border:2px solid #ffb62e;border-radius:999px;cursor:pointer}
.ts-b.on{background:#ffb62e;color:#1a1410}
.ts-b:focus-visible{outline:3px solid #ffffff;outline-offset:2px}
.ref-banner{margin:0 0 14px;padding:10px 14px;font-size:clamp(16px,4.2vw,17px);font-weight:700;line-height:1.6;color:#1c2b4f;background:#fff3b8;border:3px solid #1c2b4f;border-radius:14px;box-shadow:4px 4px 0 #1c2b4f}
.ref-banner b{color:#e0442a;font-weight:800}
.invite-row{margin:14px 0 4px}
.invite-btn{font:inherit;width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 16px;color:#ffffff;background:#e0442a;border:3px solid #1c2b4f;border-radius:18px;box-shadow:6px 6px 0 #1c2b4f;cursor:pointer;transition:transform .08s ease-out,box-shadow .08s ease-out}
.invite-btn:active{transform:translate(4px,4px);box-shadow:2px 2px 0 #1c2b4f}
.invite-btn:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
.iv-ico{flex:none;width:48px;height:48px;border-radius:50%;background:#ffffff;border:3px solid #1c2b4f;display:grid;place-items:center;font-size:24px}
.iv-t{flex:1;min-width:0;display:flex;flex-direction:column}
.iv-t b{font-size:clamp(17px,4.8vw,22px);font-weight:800;line-height:1.35}
.iv-t small{font-size:14px;font-weight:700;color:#ffe9a8}
.iv-arrow{flex:none;font-size:24px;font-weight:800}
.inv-body{display:flex;flex-direction:column;gap:12px}
.inv-news{margin:0;padding:12px 14px;font-size:clamp(15.5px,4.3vw,18px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#fff3b8;border:3px solid #e0442a;border-radius:14px}
.inv-steps,.tp-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.inv-steps li{display:flex;align-items:center;gap:10px;font-size:clamp(16px,4.1vw,17px);font-weight:700;line-height:1.5;background:#eef8ff;border:2px solid #1c2b4f;border-radius:12px;padding:8px 12px}
.is-n{flex:none;width:30px;height:30px;border-radius:50%;background:#ffd23f;border:2px solid #1c2b4f;display:grid;place-items:center;font-weight:800}
.inv-steps b{color:#e0442a}
.inv-label{display:block;margin:6px 0 4px;font-size:14px;font-weight:800;color:#1c2b4f}
.inv-url{width:100%;box-sizing:border-box;font:inherit;font-size:15px;font-weight:700;color:#1c2b4f;background:#fff9e6;border:3px solid #1c2b4f;border-radius:12px;padding:10px 12px;min-height:48px}
.inv-actions{display:flex;flex-wrap:wrap;gap:8px 10px;margin-top:10px}
.rail .btn.inv-xbtn{background:#1c2b4f;color:#ffffff}
.inv-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.inv-stats > div{background:#eef8ff;border:2px solid #1c2b4f;border-radius:12px;padding:8px 6px;text-align:center}
.inv-stats > div.hl{background:#fff3b8}
.inv-stats span{display:block;font-size:12px;font-weight:800;color:#44527a;line-height:1.3}
.inv-stats b{font-size:clamp(26px,7.5vw,34px);font-weight:800;color:#e0442a;line-height:1.2}
.inv-stats small{font-size:13px;font-weight:800;margin-left:2px}
.rail .inv-h{margin:8px 0 0;font-size:17px;font-weight:800}
.inv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.inv-list li{display:flex;align-items:center;gap:10px;border:2px solid #1c2b4f;border-radius:12px;padding:6px 12px;background:#ffffff}
.inv-list li.done{background:#fff9e6}
.inv-ico{flex:none;font-size:20px}
.inv-t{min-width:0;display:flex;flex-direction:column}
.inv-t b{font-size:16px;font-weight:800;overflow-wrap:anywhere}
.inv-st{font-size:14px;font-weight:700;color:#44527a}
.inv-list li.done .inv-st{color:#e0442a;font-weight:800}
.tp-steps li{position:relative;display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;line-height:1.55;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:14px;padding:8px 12px}
.tp-body ol.tp-steps li::before{content:none}
.tp-steps li + li{margin-top:12px}
.tp-steps li + li::after{content:"";position:absolute;left:50%;top:-15px;margin-left:-8px;border:8px solid transparent;border-top:10px solid #1c2b4f;border-bottom:0}
.tp-steps li.goal{background:#fff3b8;border-width:3px}
.tps-ico{flex:none;width:38px;height:38px;border-radius:50%;background:#eef8ff;border:2px solid #1c2b4f;display:grid;place-items:center;font-size:19px}
.tp-steps em{font-style:normal;font-weight:800;color:#e0442a}
.h-reftag{display:inline-block;margin-right:6px;font-size:13px;font-weight:800;line-height:1.6;color:#ffffff;background:#e0442a;border-radius:999px;padding:0 8px}

/* 県の詳細画面：県名の右に全国順位を大きく（2026-11-23） */
#pref-dlg .pd-head{background:#1c2b4f;padding:10px 12px 10px 16px;gap:8px}
#pref-dlg .pd-ht{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px}
#pref-dlg #pd-title{margin:0;color:#ffffff;font-size:clamp(26px,7.6vw,40px);font-weight:800;line-height:1.15;letter-spacing:.03em}
#pref-dlg .pd-pos{margin:0;flex:none;display:inline-flex;align-items:baseline;gap:2px;line-height:1;color:#1c2b4f;background:#ffd23f;border:3px solid #ffffff;border-radius:999px;padding:4px 12px 6px;font-weight:800}
#pref-dlg .pd-pos .pr-k{font-size:clamp(13px,3.6vw,17px);margin-right:3px}
#pref-dlg .pd-pos .pr-n{font-size:clamp(40px,12vw,58px);line-height:.95;color:#e0442a;text-shadow:0 3px 0 #1c2b4f}
#pref-dlg .pd-pos .pr-u{font-size:clamp(18px,5vw,26px)}
#pref-dlg .pd-pos .pr-of{font-size:clamp(13px,3.3vw,15px);margin-left:4px;color:#44527a}
#pref-dlg .pd-pos.none{background:#ffffff;padding:6px 12px;font-size:14px}
#pref-dlg .pd-close{padding:6px 10px;font-size:14px}
.pd-pic.scenic{padding:6px 6px 12px}

/* =====================================================================
 * ゆるキャラをいつも動かす（ゆらゆら → ぴょんと跳ねる → きょろきょろ。2026-11-23 追加）
 * 動きは transform だけ。場所ごとに速さと始まりをずらして、そろって動かないようにする。
 * ===================================================================== */
@keyframes chara-idle{
  0%,100%{transform:translateY(0) rotate(0) scale(1,1)}
  10%{transform:translateY(-3%) rotate(-4deg) scale(1,1)}
  20%{transform:translateY(0) rotate(4deg) scale(1,1)}
  30%{transform:translateY(-3%) rotate(-3deg) scale(1,1)}
  40%{transform:translateY(0) rotate(0) scale(1,1)}
  46%{transform:translateY(0) rotate(0) scale(1.07,.92)}
  54%{transform:translateY(-16%) rotate(0) scale(.96,1.06)}
  62%{transform:translateY(0) rotate(0) scale(1.08,.9)}
  68%{transform:translateY(-5%) rotate(0) scale(1,1)}
  74%{transform:translateY(0) rotate(0) scale(1,1)}
  84%{transform:translateY(0) rotate(5deg) scale(1,1)}
  92%{transform:translateY(0) rotate(-5deg) scale(1,1)}
}
.card-pic svg,.cx-svg svg,.pd-pic svg,.wk-pic svg,.r-pic svg,.ch-pic svg{transform-origin:50% 92%;animation:chara-idle 4.4s ease-in-out infinite}
.card:nth-child(2) .card-pic svg{animation-delay:-1.9s;animation-duration:4.9s}
.pd-pic svg{animation-duration:3.8s}
.wk-item:nth-child(2n) .wk-pic svg{animation-delay:-1.3s}.wk-item:nth-child(3n) .wk-pic svg{animation-delay:-2.6s;animation-duration:5.2s}
.r-pic svg{animation-duration:5.6s}
#rank tr:nth-child(2n) .r-pic svg{animation-delay:-1.4s}#rank tr:nth-child(3n) .r-pic svg{animation-delay:-2.8s}#rank tr:nth-child(5n) .r-pic svg{animation-delay:-4.1s;animation-duration:4.6s}
@media (prefers-reduced-motion: reduce){.card-pic svg,.cx-svg svg,.pd-pic svg,.wk-pic svg,.r-pic svg,.ch-pic svg{animation:none}}
/* 地図の下の注意書き（2026-11-23） */
.map-tips{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.map-tips li{display:flex;align-items:center;gap:10px;font-size:clamp(16px,4.2vw,17px);font-weight:700;line-height:1.55;color:#1c2b4f;background:#fff9e6;border:2px solid #1c2b4f;border-radius:14px;padding:8px 12px}
.map-tips b{font-weight:800;color:#e0442a}
.mt-ico{flex:none;width:36px;height:36px;border-radius:50%;background:#ffffff;border:2px solid #1c2b4f;display:grid;place-items:center;font-size:18px}

/* 速報の速さ：ふだんは「速さ」ボタンだけ。押すと選択肢が開く（2026-11-23 作り直し） */
.ticker-speed{position:relative;display:block}
.ts-toggle{font:inherit;font-size:14px;font-weight:800;line-height:1.4;min-height:36px;padding:4px 12px;color:#ffb62e;background:transparent;border:2px solid #ffb62e;border-radius:10px;cursor:pointer}
.ts-toggle::after{content:" ▾"}
.ts-toggle[aria-expanded="true"]{background:#ffb62e;color:#1a1410}
.ts-toggle:focus-visible{outline:3px solid #ffffff;outline-offset:2px}
.ts-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:flex;flex-direction:column;gap:6px;padding:8px;background:#1a1410;border:2px solid #ffb62e;border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.45)}
.ts-menu[hidden]{display:none}
.ts-menu .ts-b{min-width:96px;min-height:40px;font-size:14px;white-space:nowrap}
.ticker.ts-open{overflow:visible;position:relative;z-index:6}
/* 地図：県を選んでいないときの点線の説明は出さない（空きも作らない。2026-11-23） */
.cbox:not(.has),.rail .cbox:not(.has){display:none}
/* ランキングの算出方法（押すと開く。2026-11-23） */
.rank-how{margin:0 0 12px}
.rank-how-p{margin:0;font-size:clamp(14.5px,3.9vw,16px);font-weight:700;line-height:1.75;color:#1c2b4f}

/* ランキングの下：タイトルの看板と「トップに戻る」（2026-11-23） */
.foot-sign{margin:26px 0 8px;display:flex;flex-direction:column;align-items:center;gap:18px}
.foot-sign .sign{width:100%;margin:0}
.rail .sign .sign-h1{font-size:clamp(24px,6.6vw,46px);font-weight:800;letter-spacing:.05em;line-height:1.25;margin:4px 0 12px;word-break:auto-phrase;text-wrap:balance}
.top-btn{font:inherit;display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:8px 28px 8px 14px;font-size:clamp(17px,4.8vw,20px);font-weight:800;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:0 5px 0 #1c2b4f;cursor:pointer;transition:transform .08s ease-out,box-shadow .08s ease-out}
.top-btn:active{transform:translateY(5px);box-shadow:none}
.top-btn:focus-visible{outline:3px solid #e0442a;outline-offset:3px}
.tb-ico{width:36px;height:36px;border-radius:50%;background:#ffffff;border:3px solid #1c2b4f;display:grid;place-items:center}
.tb-ico svg{width:20px;height:20px;display:block}
@media (max-width:420px){.rail .sign .sign-h1{font-size:clamp(20px,5.7vw,24px);letter-spacing:.02em}}
/* ヒントのボタン：見出しを1行に収める（2026-11-23） */
.tips summary{gap:6px;padding:8px 10px 8px 12px;font-size:clamp(13.5px,3.9vw,18px)}
.tp-name{white-space:nowrap;min-width:0}
.tp-open{font-size:clamp(13px,3.2vw,13.5px);padding:0 8px}
.nextmove + .mylit{margin:14px 0 16px;padding:12px 14px;background:#ffffff;border:3px solid #1c2b4f;border-radius:16px}
.nextmove + .mylit h3{margin:0 0 6px}
/* ランキングの算出方法：小さなボタンに（2026-11-23） */
.tips.rank-how{width:fit-content;max-width:100%;border-width:2px;border-radius:10px;box-shadow:none;background:#ffffff}
.tips.rank-how summary{min-height:28px;padding:2px 8px 2px 10px;gap:6px;font-size:11px;font-weight:700}
.tips.rank-how .tp-open{font-size:13px;line-height:1.6;padding:0 7px}
.tips.rank-how[open]{width:auto}
.tips.rank-how .tp-body{padding:8px 10px 10px}
.tips.rank-how .rank-how-p{font-size:12px;font-weight:500;line-height:1.7}
/* 「SNSへの投稿画像を自動でつくる」：仲間を誘うボタンと同じ大きさ・形（色は黄色。2026-11-23） */
.share-row{display:block;margin:16px 0 0}
.invite-btn.share-big{background:#ffd23f;color:#1c2b4f}
.invite-btn.share-big .iv-t small{color:#44527a}
.invite-btn.share-big:focus-visible{outline-color:#e0442a}
.invite-btn{min-height:112px;box-sizing:border-box}
.invite-btn{min-height:124px}
/* =====================================================================
 * シンプル化（2026-11-23）：題名の下の参加ボタン／報告欄をマイページの先頭に／ヒントを1つに
 * ===================================================================== */
.hero-cta{display:flex;align-items:center;gap:12px;max-width:820px;box-sizing:border-box;margin:0 0 16px;padding:12px 18px;color:#1c2b4f;text-decoration:none;position:relative;overflow:hidden;background:radial-gradient(130% 150% at 12% 128%,#bfe58a 0 46%,transparent 46.5%),radial-gradient(120% 140% at 88% 135%,#cdec9b 0 48%,transparent 48.5%),linear-gradient(180deg,#f3fbd9 0%,#e3f5b8 100%);border:3px solid #1c2b4f;border-radius:18px;box-shadow:6px 6px 0 #1c2b4f;transition:transform .08s ease-out,box-shadow .08s ease-out}
.hero-cta:active{transform:translate(4px,4px);box-shadow:2px 2px 0 #1c2b4f}
.hero-cta:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
.hc-ico{flex:none;width:52px;height:52px;border-radius:50%;background:#ffffff;border:3px solid #1c2b4f;display:grid;place-items:center;font-size:26px}
.hc-t{flex:1;min-width:0;display:flex;flex-direction:column}
.hc-t b{font-size:clamp(20px,5.8vw,28px);font-weight:800;line-height:1.3}
.hc-t small{font-size:14px;font-weight:700;color:#3f6b1f}
.hc-arrow{flex:none;font-size:26px;font-weight:800;color:#2f7d1e;animation:hc-nudge 1.2s ease-in-out infinite}
@keyframes hc-nudge{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
@media (prefers-reduced-motion: reduce){.hc-arrow{animation:none}}
#member > .entry{margin-top:6px;margin-bottom:22px}
.tip-sec{padding:12px 0;border-top:2px dashed #1c2b4f}
.tip-sec:first-child{border-top:0;padding-top:2px}
.tip-sec:last-child{padding-bottom:0}
.tip-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:clamp(16px,4.5vw,19px);font-weight:800;color:#1c2b4f}
.tips.tips-all summary{font-size:clamp(16px,4.6vw,20px);min-height:56px}

/* ===== 数える単位の表記統一：高校ポイント／周ポイント（達成率）（2026-11-24 追加） ===== */
.mission-def{margin:14px 0 0;font-size:clamp(14px,3.9vw,16px);font-weight:800;line-height:1.6;color:#1c2b4f;text-align:center}
.pt-nw{white-space:nowrap}
.pt-blk{display:block}
thead th.r-rate-h{white-space:normal}
.r-pct2{font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
.g-pct small{display:block;font-size:11px;font-weight:700}
ul.pd-gap li{grid-template-columns:3em 6.5em minmax(40px,1fr) auto}
@media (max-width:640px){ul.pd-gap li{grid-template-columns:2.6em 5.2em minmax(30px,1fr) auto}}
.ba-n .ba-u{font-size:.6em;margin-left:2px}
.inv-stats small{display:inline-block}
.cx-pct .pt-nw{display:inline-block}

/* 報告ボタンの中の「1日3回まで」（きっぷ風の小さな札） */
.cd-cap{display:inline-flex;align-items:center;gap:4px;margin-top:5px;padding:1px 10px;font-size:11.5px;font-weight:800;line-height:1.6;letter-spacing:.04em;color:#1c2b4f;background:#ffd23f;border-radius:5px;border-left:3px dashed #1c2b4f;border-right:3px dashed #1c2b4f;white-space:nowrap}
.rail .btn.big.cd-btn:disabled .cd-cap{background:#eef1f6;color:#4d5873;border-color:#8a94ab}

/* =====================================================================
 * スタートのランプ・週替わりの山・表彰・ラスト7日（2026-11-24 追加）
 * ===================================================================== */
/* 週の帯（題名の下・対抗戦期間の近く。1〜2行の細い帯。押すと小目標が開く） */

/* 先週の表彰（ランキングの上の小さな箱） */
.awards{margin:0 0 14px;padding:10px 14px;border:2px solid var(--edge,#1c2b4f);border-radius:14px;background:var(--note-bg,var(--surface));color:var(--text)}
.aw-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0 0 4px;font-size:15px;font-weight:800}
.aw-sub{font-size:11.5px;font-weight:700;color:var(--muted)}
.aw-list{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.aw-item{display:flex;align-items:flex-start;gap:6px;font-size:14px;line-height:1.5}
.aw-ico{flex:none;width:1.4em;text-align:center}
.aw-t{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.aw-k{font-size:12px;font-weight:700;color:var(--muted)}
.aw-p{font-weight:800}
.aw-n{font-size:12px;font-weight:700;white-space:nowrap}
.aw-lead{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;margin:6px 0 0;padding-top:5px;border-top:1.5px dashed var(--line-strong);font-size:14px}
.r-crown{font-size:14px;line-height:1}

/* マイページ上部のお祝い（自分の県が表彰されたとき） */
.me-award{margin:0 0 10px;padding:6px 12px;border:2px solid var(--edge,#1c2b4f);border-radius:12px;background:var(--sun,#ffd23f);color:#1c2b4f;font-size:14px;font-weight:800;line-height:1.5}

/* 折り返し 中間発表（12/13 12:00〜12/15。今日の急上昇県の上） */
.midterm{margin:0 0 20px;padding:12px 14px;border:3px solid var(--edge,#1c2b4f);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:inset 0 6px 0 var(--sun,#ffd23f)}
.mt-h{margin:4px 0 8px;font-size:clamp(16px,4.6vw,20px);font-weight:800}
.mt-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px 18px}
.mt-col{min-width:0}
.mt-sh{margin:0 0 4px;font-size:14px;font-weight:800;color:var(--muted)}
.mt-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mt-list li{display:grid;grid-template-columns:3em minmax(0,auto) 1fr;align-items:baseline;gap:6px;font-size:14px;padding:2px 0;border-bottom:1px dashed var(--line)}
.mt-list li.mt-none{display:block;color:var(--muted)}
.mt-rk{font-weight:800;font-variant-numeric:tabular-nums}
.mt-nm{white-space:nowrap}
.mt-v{text-align:right;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.mt-note{margin:4px 0 0;font-size:11.5px;color:var(--muted)}

/* 速報：参加者の最初のランプ */
.tk-firsttag{display:inline-block;margin-right:8px;padding:0 8px;border-radius:999px;background:var(--sun,#ffd23f);color:#1c2b4f;font-weight:800;text-shadow:none;white-space:nowrap}
.ticker-list .tk-firsttag{font-size:13px}

/* 合格のお祝い：参加者の最初のランプ（目立つ1行） */
.cele-first{margin:10px auto 0;max-width:34em;padding:6px 16px;border:3px solid #1c2b4f;border-radius:999px;background:#ffd23f;color:#1c2b4f;font-size:clamp(16px,4.6vw,22px);font-weight:800;line-height:1.4;text-align:center;animation:cele-first-in .5s ease-out .6s both}
@keyframes cele-first-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}
.msg.first-lamp{font-size:16px}
@media (prefers-reduced-motion: reduce){.cele-first{animation:none}}

/* 県の高校一覧：星渉からのスタートのランプ */
.sc-gifttag{font-size:13px;font-weight:800;color:#1c2b4f;background:var(--sun,#ffd23f);border-radius:999px;padding:0 6px;white-space:nowrap}
.sc.gift{border-radius:4px;box-shadow:0 0 0 2px var(--sun,#ffd23f)}
.nt-start{font-size:.8em}

/* =====================================================================
 * 全国みんなの目標・今日のミッション・きょうの印（2026-11-24 追加 第2弾）
 * 動きは transform / opacity だけ。prefers-reduced-motion では止める。
 * ===================================================================== */
/* 全国みんなの目標（「みんなで/現在まで救った高校数！」のすぐ下の小さな箱。横棒2本は常に縦に並べる） */
.ngoal{margin:-8px 0 20px;padding:10px 14px 12px;border:2px solid var(--edge,#1c2b4f);border-radius:14px;background:var(--surface);color:var(--text);box-sizing:border-box;max-width:100%;overflow:hidden}
.ng-h{margin:0 0 6px;font-size:clamp(15px,4.2vw,17px);font-weight:800;line-height:1.35}
.ng-row{min-width:0}
.ng-row + .ng-row{margin-top:8px}
.ng-t{margin:0 0 3px;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.ng-t b{font-weight:800;font-variant-numeric:tabular-nums}
.ng-left{font-size:12px;color:var(--muted);white-space:nowrap}
.ng-line{display:flex;align-items:center;gap:8px;min-width:0}
.ng-bar{position:relative;flex:1 1 auto;min-width:0;height:14px;border:2px solid var(--edge,#1c2b4f);border-radius:999px;background:var(--bar-bg);overflow:hidden}
.ng-fill{position:absolute;left:0;top:0;bottom:0;width:100%;background:var(--bar);transform-origin:left center;transform:scaleX(0);transition:transform .5s}
.ng-row.done .ng-fill{background:var(--leaf,#5fb534)}
.ng-marks{position:absolute;inset:0;pointer-events:none}
.ng-mark{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--edge,#1c2b4f);opacity:.55}
.ng-mark.on{opacity:1}
.ng-done{flex:none;font-size:13px;font-weight:800;color:#1c2b4f;background:var(--sun,#ffd23f);border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:0 8px;white-space:nowrap;animation:ng-pop .45s ease-out both}
@keyframes ng-pop{0%{opacity:0;transform:scale(.7)}100%{opacity:1;transform:scale(1)}}

/* 週の帯の中：きょうのおすすめ */
/* きっぷうりば：きょうのおすすめミッションの札 */
.day-mission{display:inline-block;margin:2px 0 8px;padding:3px 12px;border:2px solid var(--edge,#1c2b4f);border-radius:12px;background:var(--paper,#fff9e6);color:#1c2b4f;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
.day-mission b{font-weight:800}
.day-mission small{display:inline-block;font-size:11.5px;font-weight:700;color:#44527a}

/* スタンプ帳：見出しの横の「きょうの印 ✓／きょうはまだ」 */
.sb-today{font-size:13px;font-weight:800;border-radius:999px;padding:0 8px;border:2px solid var(--edge,#1c2b4f);background:var(--surface);color:var(--text);white-space:nowrap}
.sb-today.got{background:var(--leaf,#5fb534);color:#ffffff}
/* きょうの印（スタンプカレンダー。7列で折り返す） */
.scal{padding:2px 12px 14px;border-top:1.5px dashed var(--line-strong)}
.scal-h{margin:8px 0 6px;font-size:15px;font-weight:800}
.scal-sub{display:block;font-size:11.5px;font-weight:700;color:var(--muted)}
.scal-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.scal-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;aspect-ratio:1/1;max-height:56px;border:1.5px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);line-height:1.1;box-sizing:border-box}
.scal-d{font-size:12px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.scal-m{font-size:16px;font-weight:800;min-height:1.1em}
.scal-cell.got{border-color:#d33a1f;background:#fff4ef;color:#d33a1f}
.scal-cell.got .scal-d{color:#d33a1f}
.scal-cell.star{background:var(--sun,#ffd23f);color:#1c2b4f;border-color:#1c2b4f}
.scal-cell.star .scal-d{color:#1c2b4f}
.scal-cell.today{border:3px solid var(--edge,#1c2b4f);box-shadow:0 0 0 2px var(--sun,#ffd23f)}
.scal-cell.future{opacity:.45}
.scal-tags{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.scal-tag{font-size:13px;font-weight:800;border:2px solid var(--edge,#1c2b4f);border-radius:999px;padding:1px 10px;background:var(--surface);color:var(--text);white-space:nowrap}
.scal-tag.clear{background:#d33a1f;color:#ffffff}
.scal-tag.nation{background:var(--sun,#ffd23f);color:#1c2b4f}

@media (prefers-reduced-motion: reduce){
  .ng-fill{transition:none}
  .ng-done{animation:none}
}

/* ===== ゆるキャラの飾りと図鑑（2026-11-24 追加 第3弾） =====
 * 動きは transform / opacity だけ。prefers-reduced-motion では止める。 */
.dk-tw{transform-box:fill-box;transform-origin:50% 50%;animation:dk-tw 1.8s ease-in-out infinite}
@keyframes dk-tw{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.6)}}
.zk-row{margin:8px 0 4px}
.zk-btn{font:inherit;font-size:15px;font-weight:800;display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-height:44px;padding:6px 16px;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:999px;box-shadow:3px 3px 0 #1c2b4f;cursor:pointer;text-align:left}
.zk-btn small{font-size:11.5px;font-weight:700;color:#44527a}
.zk-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #1c2b4f}
.zk-btn:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.zk-count{margin:0 0 8px;font-size:15px;font-weight:800}
.zk-now{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:6px 10px;border:2px solid #1c2b4f;border-radius:14px;background:#fff9e6}
.zk-now-pic{flex:0 0 auto;width:84px;height:84px;border:2px solid #1c2b4f;border-radius:12px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.zk-now-pic svg{display:block;width:100%;height:auto}
.zk-now-t{margin:0;font-size:14px;font-weight:700;color:#1c2b4f;min-width:0;overflow-wrap:anywhere}
.zk-grid{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.zk-g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.zk-g4{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
.zk-grid > li{min-width:0;display:flex}
.zk-cell{font:inherit;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 4px 8px;border:2px solid #1c2b4f;border-radius:12px;background:#ffffff;color:#1c2b4f;text-align:center;line-height:1.3;box-sizing:border-box}
button.zk-cell{cursor:pointer}
button.zk-cell:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.zk-cell.on{background:#ffd23f;box-shadow:3px 3px 0 #1c2b4f}
.zk-cell.locked{border-style:dashed;border-color:#9fb0cf;background:#f3f5fa;color:#5b6670}
.zk-pic{position:relative;display:block;width:100%;max-width:96px;aspect-ratio:1/1}
.zk-pic svg{display:block;width:100%;height:100%}
.zk-deco.locked .zk-pic svg{filter:grayscale(1);opacity:.25}
.zk-ch.locked .zk-pic svg{filter:brightness(0);opacity:.13}
.zk-q{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;color:#9fb0cf}
.zk-name{font-size:14px;font-weight:800;overflow-wrap:anywhere}
.zk-kind,.zk-pref,.zk-stage{font-size:11.5px;font-weight:700;color:#44527a}
.zk-stage{display:inline-block;padding:0 6px;border-radius:999px;background:#e0442a;color:#ffffff}
.zk-act{font-size:11px;font-weight:800;color:#c8361d}
.zk-cell.on .zk-act{color:#1c2b4f}
.zk-how{font-size:11px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
@media (prefers-reduced-motion: reduce){
  .dk-tw{animation:none}
  .zk-btn:active{transform:none}
}

.zk-note{margin:2px 0 10px;padding:6px 10px;font-size:14px;line-height:1.6;font-weight:700;color:#4d5873;background:#f3f6fb;border:2px dashed #c9d2e6;border-radius:10px}

/* ===== 2026-11-27 追加：題名の看板の下の寄付の説明（1〜2行）／全国カウンターの注記 ===== */
.sign-gift{max-width:820px;box-sizing:border-box;margin:-4px 0 14px;padding:6px 8px;text-align:center;font-size:clamp(16px,3.45vw,18px);line-height:1.5;font-weight:800;letter-spacing:0;color:#1c2b4f;background:#fff8d6;border:2px solid #1c2b4f;border-radius:12px}
.sign-gift b{color:#e0442a}
.nt-note{display:block;margin-top:4px;font-size:12px;font-weight:700;line-height:1.5;color:var(--muted)}

/* ===== 2026-11-27 追加（第2回）：リーグの表彰・速報の紹介ぶん・宣伝の明記・小さい文字とボタン ===== */
/* リーグの1位（「先週の表彰」の箱と同じ見た目。ランキングの区画の上部） */
.lg-tops{margin:0 0 10px}
.lg-tops .aw-h{font-size:14.5px}
/* ランキングの表示の切り替え（総合/A/B/C）。小さく見せて、押せる範囲は44px */
.lg-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 6px}
.lg-tab{font:inherit;font-size:14px;font-weight:800;line-height:1.3;min-width:48px;min-height:44px;padding:4px 12px;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;cursor:pointer}
.lg-tab[aria-pressed="true"]{background:#1c2b4f;color:#ffffff}
.lg-tab:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.rank tr[hidden]{display:none}
/* マイページの県カード：リーグの中の順位（小さく1行） */
.pc-league{flex-basis:100%;text-align:right;font-size:13px;font-weight:800;line-height:1.4;color:#d6e2ff}
/* 速報：紹介で入ったぶん */
.tk-item.tk-ref .tk-name{font-weight:800}
/* ページのいちばん下：宣伝であることの明記 */
.foot-promo{margin-top:8px;font-weight:700}
/* スマホ（指で操作する端末・幅のせまい画面）では「ここにドラッグ」「貼り付け」を出さない */
@media (pointer: coarse), (max-width: 600px){ .drop .ways{display:none} }

/* 小さい文字の底上げ（2026-11-25 文字を大きく）：ラベル・バッジ・細かい数字は 13px、説明・注意書きは 14px に */
.ticker-pause,.me-facts dt,.ch-k,.ch-r,thead th,.rail .h-sub,.c-title,.sb-rest,.sb-name,.sc-st,.inv-stats span,
.r-pct2,.g-pct small,.cd-cap,
.aw-sub,.aw-k,.aw-n,.mt-v,.ng-left,.day-mission small,.scal-sub,.zk-btn small,.zk-kind,.zk-pref,.zk-stage,.zk-act{font-size:13px}
.nm-note,.tips.rank-how summary,.tips.rank-how .rank-how-p,.mt-note,.zk-how,.nt-note{font-size:14px}
@media (max-width:420px){ .r-cnt{font-size:13px} }

/* 押す範囲を 44px 以上に（見た目は大きく変えない） */
.ticker-pause{min-height:44px}
.ts-toggle,.ts-b,.ts-menu .ts-b{min-height:44px}
.mz button.mz-reset{height:44px}
.sc-see{min-height:44px}
.tips.rank-how summary{position:relative}
.tips.rank-how summary::before{content:"";position:absolute;left:0;right:0;top:-8px;bottom:-8px}

/* ===== 称号の県名入り（2026-11-24 追加）：スタンプ帳の札で、2県ぶんの「◯◯県民栄誉賞」を1県ずつ行を分ける ===== */
.sb-line{display:block}

/* ===== 2026-11-28 追加：星渉のことば・表示の段階・最初の1歩・30日ミッション・図書館のランプ・活動証明書 ===== */
/* 表示の段階：見せない区画（index.html の data-rv。表示だけ） */
.rv-off{display:none !important}
.rv-all{max-width:820px;margin:18px auto 8px;padding:0 4px;text-align:center}
.rv-all .small{margin:6px 0 0}
/* 星渉のことば（題名の看板の下。最初の2行＋「つづきを読む」） */
.hoshi-letter{max-width:820px;box-sizing:border-box;margin:0 0 14px;padding:10px 14px 8px;background:#fffdf6;border:2px solid #1c2b4f;border-radius:14px;box-shadow:0 4px 0 #1c2b4f;color:#1c2b4f}
.hl-det > summary{list-style:none;cursor:pointer}
.hl-det > summary::-webkit-details-marker{display:none}
.hl-p{display:block;margin:0 0 4px;font-size:clamp(16px,3.9vw,16.5px);font-weight:700;line-height:1.7}
.hl-det > summary .hl-p:first-child{font-weight:800}
.hl-more{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:800;color:#c8361d;text-decoration:underline;text-underline-offset:3px}
.hl-more::after{content:"つづきを読む ▼"}
.hl-det[open] > summary .hl-more{display:none}
.hl-det[open] > summary .hl-more::after{content:""}
.hl-sign{margin:2px 0 4px;text-align:right;font-size:15px;font-weight:800}
.hl-note{margin:6px 0 2px;padding-top:6px;border-top:1px dashed #b9c2da;font-size:14px;font-weight:700;line-height:1.6;color:#44527a}
.hl-det > summary:focus-visible{outline:3px solid #e0442a;outline-offset:2px;border-radius:6px}
/* 最初の1歩（ポイント獲得0回の人だけ） */
.first-step{margin:0 0 14px;padding:12px 14px 12px;background:#fff8d6;border:3px solid #1c2b4f;border-radius:18px;box-shadow:0 5px 0 #1c2b4f;color:#1c2b4f}
.fs-h{margin:0 0 8px;font-size:clamp(19px,5.4vw,24px);font-weight:800;line-height:1.35}
.fs-steps{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.fs-steps li{flex:1 1 auto;display:flex;align-items:center;gap:4px;padding:6px 10px;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;font-size:14px;font-weight:800;white-space:nowrap}
.fs-n{color:#e0442a;font-size:16px}
.fs-st{margin:0 0 6px;font-size:14px;font-weight:700;color:#44527a}
.fs-st:empty{display:none}
.fs-img,.cert-img{display:block;width:100%;max-width:420px;height:auto;margin:0 auto 10px;border:2px solid #1c2b4f;border-radius:12px;background:#ffffff}
.fs-btns,.cert-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 6px}
.first-step .small{margin:4px 0 0;color:#44527a}
/* きょうの30日ミッション（きっぷうりばのすぐ上） */
.m30{margin:0 0 14px;padding:12px 14px;background:#fffdf6;border:3px solid #1c2b4f;border-radius:18px;color:#1c2b4f}
.m30-h{margin:0 0 6px;font-size:clamp(17px,4.8vw,21px);font-weight:800;line-height:1.4}
.m30-t{margin:0 0 4px;font-size:clamp(18px,5vw,22px);font-weight:800;line-height:1.45;color:#c8361d}
.m30-d{display:inline-block;margin-right:8px;padding:0 8px;border-radius:999px;background:#1c2b4f;color:#ffd23f;font-size:13px;vertical-align:2px}
.m30-m{margin:0 0 6px;font-size:16px;font-weight:700;line-height:1.75}
.m30-pre{margin:0 0 6px;font-size:15px;font-weight:800;line-height:1.6}
.m30-why{margin:0 0 6px;border:2px solid #c9d2e6;border-radius:10px;background:#ffffff}
.m30-why > summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 12px;font-size:14.5px;font-weight:800}
.m30-why p{margin:0;padding:0 12px 10px;font-size:16px;line-height:1.75}
.m30-book{margin:0 0 8px;font-size:14px;font-weight:700;line-height:1.6;color:#44527a}
.m30-book a{color:#1f5f99;font-weight:800}
.m30-make{margin:6px 0 4px;padding:10px 12px;background:#eef8ff;border:2px solid #1c2b4f;border-radius:14px}
.m30-lab{display:block;margin:0 0 4px;font-size:14px;font-weight:800}
.m30-in{box-sizing:border-box;width:100%;min-height:44px;margin:0 0 8px;padding:8px 10px;font:inherit;font-size:16px;border:2px solid #1c2b4f;border-radius:10px;background:#ffffff;color:#1c2b4f}
.m30-btn{width:100%}
.m30-steps{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:2px 10px;font-size:14px;font-weight:700;color:#44527a}
.m30-n{color:#e0442a;margin-right:2px}
.m30-note{margin:6px 0 0;font-size:14px;font-weight:700;line-height:1.6;color:#44527a}
/* ログイン前：ミッションの説明の中の1行 */
.m30-line{margin:12px 0 14px;border:2px solid #1c2b4f;border-radius:12px;background:#fffdf6;color:#1c2b4f;text-align:left}
.m30-line > summary{cursor:pointer;min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;padding:6px 12px;font-weight:800;line-height:1.5}
.m30l-k{font-size:13px;color:#44527a}
.m30l-t{font-size:15.5px;color:#c8361d}
.m30l-body{padding:0 12px 10px}
/* 図書館のランプ */
.lib-lamps.big{grid-template-columns:1fr}
.lib-lead{margin:0 0 4px;line-height:1.7}
.lib-lamps{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.lib-lamp{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border:2px solid #9aa5bf;border-radius:12px;background:#eef0f4;color:#5b6670}
.lib-lamp.on{border-color:#1c2b4f;background:#fff4c2;color:#1c2b4f;box-shadow:0 0 0 3px rgba(255,210,63,.45)}
.lib-ico{flex:none;font-size:22px;line-height:1.2;filter:grayscale(1);opacity:.6}
.lib-lamp.on .lib-ico{filter:none;opacity:1}
.lib-t{min-width:0;display:flex;flex-direction:column;gap:1px}
.lib-k{font-size:13px;font-weight:700}
.lib-nm{font-size:14.5px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.lib-st{font-size:13px;font-weight:800}
.lib-lamp.on .lib-st{color:#c8361d}
.lib-src{margin:2px 0 0;font-size:14px;font-weight:700;line-height:1.5;color:#5b6670}
.lib-src a{color:#1f5f99}
.pc-lib{margin:10px 16px 0;padding:8px 10px;background:#fffdf6;border:2px solid #1c2b4f;border-radius:14px}
.pc-lib-h{margin:0;font-size:14px;font-weight:800;color:#1c2b4f}
.lib-line{margin:8px 0 0;padding:6px 10px;border-radius:10px;background:#fff4c2;border:2px solid #1c2b4f;color:#1c2b4f;font-size:14px;font-weight:800;line-height:1.5}
.tk-libtag{background:#ffe9a8}
.cele-lib{background:#fff4c2}
/* 県カード：周ポイント（達成率を大きく） */
.pc-rate{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;margin-top:4px;color:#1c2b4f}
.pc-rate b{font-size:22px;font-weight:800;color:#c8361d}
.pc-rate small{font-size:13px;font-weight:700;color:#44527a}
.rail .card.pc2.nochara .pc-main{padding-left:20px}
/* 期間後：活動証明書・県の記録 */
.cert{margin:0 0 14px;padding:12px 14px;background:#fffaf0;border:3px solid #1c2b4f;border-radius:18px;color:#1c2b4f}
.cert-h{margin:0 0 6px;font-size:clamp(19px,5.4vw,24px);font-weight:800}
.cert-st{margin:0 0 6px;font-size:14px;font-weight:700;color:#44527a}
.cert-st:empty{display:none}
.cert .small{margin:4px 0 0;color:#44527a}
.cert-soon{margin:0 0 10px;padding:6px 12px;border:2px dashed #9aa5bf;border-radius:12px;font-size:14px;font-weight:700;color:#44527a}
.rec-dl{margin:6px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
.rec-dl > div{padding:6px 10px;border:2px solid #c9d2e6;border-radius:10px;background:#ffffff}
.rec-dl dt{font-size:13px;font-weight:700;color:#5b6670}
.rec-dl dd{margin:0;font-size:15px;font-weight:800;color:#1c2b4f;overflow-wrap:anywhere}
.rec-who{margin:8px 0 0}
.rec-who-h{margin:0;font-size:14px;font-weight:800}
.rec-who-l{margin:2px 0 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}

/* ===== 2026-11-24 追加（トップページの整理） ===== */
/* 右下の報告ボタン・左下の案内係が、ページの最後の行を隠さないように下に余白 */
.wrap{padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px))}
/* ランキングの「47都道府県すべて見る」 */
.rank-more{margin:12px 0 0;text-align:center}
.rank-more[hidden]{display:none}
.rank-more .btn{min-height:48px;font-size:16px}
/* ミッション説明のすぐ下の「参加する」 */
.mission-cta{margin:16px 0 0}
.mission-cta[hidden]{display:none}
/* マイページの最後の「ぜんぶ見る」 */
.rv-all-me{margin:18px 0 0;text-align:center}
.rv-all-me[hidden]{display:none}

/* 2026-11-25 県の詳細：つぎの姿までのゲージ（ゲーム風）と、高校ポイントの右の全国順位 */
.pd-next{grid-column:1 / -1;margin-top:2px;padding:10px 12px 12px;border:3px solid #1c2b4f;border-radius:14px;background:#1c2b4f;color:#ffffff;box-shadow:0 4px 0 #0e1730;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif}
.pd-next p{margin:0}
.pn-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pn-k{flex:none;font-size:13px;font-weight:800;letter-spacing:.04em;color:#1c2b4f;background:#ffd23f;border-radius:999px;padding:1px 10px}
.pn-name{font-size:17px;font-weight:800;overflow-wrap:anywhere}
.pn-num{display:flex;align-items:baseline;gap:6px;margin-top:4px !important;line-height:1}
.pn-ato{font-size:16px;font-weight:800}
.pn-num b{font-size:clamp(40px,12vw,52px);font-weight:800;line-height:1;color:#ffd23f;text-shadow:0 3px 0 #0e1730;font-variant-numeric:tabular-nums}
.pn-u{font-size:16px;font-weight:800}
.pn-bar{height:16px;margin-top:8px;border:2px solid #ffffff;border-radius:999px;background:#0e1730;overflow:hidden}
.pn-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#ffd23f,#ff9a3c)}
.pd-next.max{display:flex;align-items:center;gap:8px}
.pd-count{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pd-cnum{flex:1;min-width:0}
.pd-crank{flex:none;display:inline-flex;align-items:baseline;gap:2px;line-height:1;color:#1c2b4f;background:#ffd23f;border:2.5px solid #1c2b4f;border-radius:12px;padding:5px 10px 6px;font-weight:800}
.pd-crank .cr-k{font-size:13px;margin-right:3px}
.pd-crank b{font-size:30px;line-height:.95;color:#e0442a;font-variant-numeric:tabular-nums}
.pd-crank .cr-u{font-size:16px}
.pd-crank.none{background:#ffffff;padding:6px 10px}
.pd-crank.none .cr-k{font-size:14px;margin:0}

/* 2026-11-25 県の詳細の作り直し：電車の景色（投稿された数・灯してくれた人）／電光掲示板の順位表／図書館のランプ（大きなアイコン2つ）／説明の折りたたみ */
.sg-scene{position:relative;overflow:hidden;border:3px solid #1c2b4f;border-radius:16px;background:linear-gradient(#58b7f0 0%,#a8defa 55%,#dff3ff 100%);padding:12px 10px 78px;box-shadow:0 4px 0 #1c2b4f}
.sg-sun{position:absolute;top:10px;right:14px;width:34px;height:34px;border-radius:50%;background:#ffd23f;box-shadow:0 0 0 6px rgba(255,210,63,.35)}
.sg-cloud{position:absolute;height:14px;border-radius:999px;background:#ffffff;opacity:.95}
.sg-cloud::before{content:"";position:absolute;left:22%;top:-8px;width:46%;height:18px;border-radius:999px;background:#ffffff}
.sg-cloud.c1{top:16px;left:8%;width:54px}
.sg-cloud.c2{top:96px;right:22%;width:40px;opacity:.8}
.sg-signs{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sg-sign{min-width:0;text-align:center;background:#ffffff;border:3px solid #1c2b4f;border-radius:12px;padding:0 4px 8px;box-shadow:0 4px 0 #1c2b4f;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif}
.sg-k{display:block;margin:0 -4px 4px;padding:3px 4px;border-radius:8px 8px 0 0;background:#1c2b4f;color:#ffffff;font-size:14px;font-weight:800;letter-spacing:.02em}
.sg-v{margin:0;display:flex;align-items:baseline;justify-content:center;gap:3px;line-height:1.05;border-bottom:5px solid #e0442a;padding-bottom:3px;margin:0 6px}
.sg-n{font-size:clamp(34px,10.5vw,46px);font-weight:800;color:#1c2b4f;font-variant-numeric:tabular-nums}
.sg-u{font-size:16px;font-weight:800;color:#1c2b4f}
.sg-ground{position:absolute;left:0;right:0;bottom:0;height:96px;z-index:1}
.sg-land{position:absolute;left:0;bottom:0;width:100%;height:100%;display:block}
.sg-train{position:absolute;left:0;bottom:8px;width:132px;height:30px;animation:sgTrain 9s linear infinite}
@keyframes sgTrain{from{transform:translateX(-140px)}to{transform:translateX(900px)}}
@media (prefers-reduced-motion:reduce){.sg-train{animation:none;transform:translateX(40px)}}

.led-board{background:#0a0907;border:4px solid #3b3128;border-radius:12px;padding:10px 8px 8px;color:#ffb83a;box-shadow:inset 0 0 0 2px #000000,0 4px 0 #1c2b4f;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Sans",system-ui,sans-serif;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.2px);background-size:4px 4px}
.led-board p{margin:0}
.led-title{display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:800;letter-spacing:.3em;color:#ffffff;text-indent:.3em}
.led-dot{width:8px;height:8px;border-radius:50%;background:#ff5a3c;box-shadow:0 0 6px #ff5a3c}
.led-msg{margin-top:6px !important;text-align:center;font-size:15px;font-weight:800;line-height:1.5;color:#7dff8a;text-shadow:0 0 6px rgba(125,255,138,.6)}
.led-t{width:100%;border-collapse:collapse;margin-top:8px;font-variant-numeric:tabular-nums}
.led-t th{font-size:13px;font-weight:800;color:#b9c2d8;text-align:right;padding:4px 6px;border-bottom:2px solid #3b3128;background:transparent;white-space:nowrap}
.led-t th.l,.led-t td.l{text-align:left}
.led-t td{padding:8px 6px;text-align:right;font-size:17px;font-weight:800;color:#ffb83a;text-shadow:0 0 6px rgba(255,184,58,.55);border-bottom:1px solid #2a231c;white-space:nowrap;background:transparent}
.led-t td.led-nm{white-space:normal}
.led-t td.led-rk{text-align:left;color:#ffffff;text-shadow:none;width:3.2em}
.led-t th:first-child{text-align:left}
.led-gap b{font-size:20px}
.led-gap small{font-size:13px;margin-left:2px}
.led-t tr.here td{background:#3a1410;color:#ffffff;text-shadow:0 0 6px rgba(255,255,255,.5)}
.led-here{display:inline-block;margin-left:6px;font-size:13px;font-weight:800;color:#0a0907;background:#ffd23f;border-radius:999px;padding:0 7px;text-shadow:none;vertical-align:middle}
.led-t td.led-skip{text-align:center;color:#6d6558;text-shadow:none;padding:0;font-size:14px;border-bottom:0}
.led-foot{margin-top:6px !important;font-size:13px;font-weight:700;color:#b9c2d8;text-align:right}

.lb-two{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lb-item{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:10px 6px 10px;border:3px solid #9aa5bf;border-radius:14px;background:#eef0f4;color:#5b6670}
.lb-item.on{border-color:#1c2b4f;background:#fff4c2;color:#1c2b4f;box-shadow:0 0 0 4px rgba(255,210,63,.5)}
.lb-ico{display:block;width:72px;height:72px}
.lb-ico svg{width:100%;height:100%;display:block}
.lb-roof,.lb-body{fill:#9aa5bf}.lb-col{fill:#c3cadb}.lb-lamp{fill:#7c869f}
.lb-item.on .lb-roof,.lb-item.on .lb-body{fill:#1c2b4f}.lb-item.on .lb-col{fill:#e0442a}
.lb-item.on .lb-lamp{fill:#ffd23f;filter:drop-shadow(0 0 5px #ffb300)}
.lb-nm{font-size:15px;font-weight:800;line-height:1.4;overflow-wrap:anywhere;color:#1c2b4f}
.lb-st{margin:0;font-size:14px;font-weight:800;line-height:1.3}
.lb-st b{font-size:24px;margin:0 2px;color:#e0442a;font-variant-numeric:tabular-nums}
.lb-item.on .lb-st b{font-size:18px}
.lb-k{font-size:13px;font-weight:700}
.lb-src{margin:8px 0 0}
.lb-src b{display:block;font-size:14px}

.pd-fold{margin-top:10px;border:2px solid var(--line-strong,#9aa5bf);border-radius:12px;background:var(--surface)}
.pd-fold > summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:4px 12px;cursor:pointer;list-style:none;font-size:14px;font-weight:800}
.pd-fold > summary::-webkit-details-marker{display:none}
.pd-fold > summary::after{content:"ひらく ▼";flex:none;font-size:13px;border:1.5px solid currentColor;border-radius:999px;padding:0 8px}
.pd-fold[open] > summary::after{content:"とじる ▲"}
.pd-fold > summary:focus-visible{outline:3px solid var(--sun,#ffd23f);outline-offset:2px}
.pd-fold > *:not(summary){margin-left:12px;margin-right:12px}
.pd-fold > *:last-child{margin-bottom:12px}

/* 2026-11-25 30日ミッションを「投稿内容に悩んだときのヒント」のボタンで開く形に（画像を選ぶ欄の直前） */
.m30-hint{margin:10px 0 12px}
.m30-hint > summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 14px;cursor:pointer;list-style:none;border:3px solid #1c2b4f;border-radius:14px;background:#ffd23f;color:#1c2b4f;font-size:16px;font-weight:800;line-height:1.4;box-shadow:0 4px 0 #1c2b4f}
.m30-hint > summary::-webkit-details-marker{display:none}
.m30-hint > summary:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.m30-hint .mh-ico{flex:none;font-size:22px}
.m30-hint .mh-t{flex:1;min-width:0}
.m30-hint .mh-open{flex:none;font-size:13px;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;padding:1px 10px;white-space:nowrap}
.m30-hint .mh-open::after{content:"ひらく ▼"}
.m30-hint[open] .mh-open::after{content:"とじる ▲"}
.m30-hint[open] > summary{box-shadow:0 2px 0 #1c2b4f}
.m30-hint > .m30{margin:10px 0 0}

/* 2026-11-25 著者からのご挨拶（見出しの下。ボタンを押すと開く） */
.greet{max-width:820px;box-sizing:border-box;margin:-4px 0 14px;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif}
.greet > summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:6px 14px;cursor:pointer;list-style:none;border:3px solid #1c2b4f;border-radius:16px;background:#fff8d6;color:#1c2b4f;font-size:clamp(18px,5vw,21px);font-weight:800;box-shadow:0 5px 0 #1c2b4f}
.greet > summary::-webkit-details-marker{display:none}
.greet > summary:focus-visible{outline:3px solid #e0442a;outline-offset:3px}
.greet .gr-ico{font-size:24px}
.greet .gr-open{font-size:14px;background:#1c2b4f;color:#ffd23f;border-radius:999px;padding:2px 12px;white-space:nowrap}
.greet .gr-open::after{content:"ひらく ▼"}
.greet[open] .gr-open::after{content:"とじる ▲"}
.greet[open] > summary{border-radius:16px 16px 0 0;box-shadow:none}
.gr-body{border:3px solid #1c2b4f;border-top:0;border-radius:0 0 16px 16px;background:#fffdf2;padding:18px 10px 20px;text-align:center;color:#1c2b4f;box-shadow:0 5px 0 #1c2b4f}
.gr-body p{margin:0 0 16px;font-weight:800;line-height:1.75}
.gr-l{font-size:clamp(16px,4.5vw,19px)}
.gr-big{font-size:clamp(21px,6.2vw,27px);line-height:1.55 !important}
.gr-red{color:#e0442a;font-weight:800}
.gr-l .gr-red{font-size:clamp(18px,5.2vw,22px)}
.gr-big .gr-red{background:linear-gradient(transparent 62%,#ffe680 62%)}
.gr-body .gr-last{margin-bottom:14px;font-size:clamp(18px,5vw,21px)}
/* 署名（2026-11-25 追加）。手書きふうの書体で、右寄せ気味に */
.gr-body .gr-sign{margin:0 8% 0 auto;width:fit-content;padding:0 6px 2px;border-bottom:2px solid #1c2b4f;font-family:"Klee One","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;font-size:clamp(24px,7vw,30px);font-weight:600;letter-spacing:.18em;line-height:1.4;color:#1c2b4f;transform:rotate(-3deg)}
.gr-sign-k{display:inline-block;margin-right:10px;font-family:"M PLUS Rounded 1c","Noto Sans JP",sans-serif;font-size:13px;font-weight:800;letter-spacing:.05em;vertical-align:middle;transform:rotate(3deg)}

/* 2026-11-25 「ミッションを受け取る」ボタン（押すとミッションの説明がひらく） */
.mget{margin:0 0 4px}
.mget > summary{display:flex;align-items:center;gap:9px;min-height:76px;padding:10px 10px;cursor:pointer;list-style:none;border:3px solid #1c2b4f;border-radius:18px;background:linear-gradient(#ff6a4a,#e0442a);color:#ffffff;box-shadow:0 7px 0 #1c2b4f;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif;animation:mgetPulse 1.8s ease-in-out infinite}
.mget > summary::-webkit-details-marker{display:none}
.mget > summary:focus-visible{outline:4px solid #ffd23f;outline-offset:3px}
.mget > summary:active{transform:translateY(4px);box-shadow:0 3px 0 #1c2b4f}
.mg-ico{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#ffd23f;border:3px solid #1c2b4f;font-size:28px}
.mg-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mg-b{white-space:nowrap;font-size:clamp(17px,5.4vw,25px);font-weight:800;line-height:1.3;text-shadow:0 2px 0 #1c2b4f}
.mg-b::after{content:"ミッションを受け取る"}
.mg-s{font-size:14px;font-weight:800;line-height:1.4;color:#fff3c4}
.mg-s::after{content:"ここを押すと、ミッションの内容がひらきます"}
.mg-arrow{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffffff;color:#e0442a;border:3px solid #1c2b4f;font-size:18px;font-weight:800}
.mg-arrow::after{content:"▼"}
.mget[open] > summary{animation:none;background:#1c2b4f;box-shadow:0 4px 0 #0e1730;min-height:56px}
.mget[open] .mg-ico{width:38px;height:38px;font-size:20px}
.mget[open] .mg-b{font-size:18px;text-shadow:none}
.mget[open] .mg-b::after{content:"ミッションの内容"}
.mget[open] .mg-s::after{content:"もう一度押すと、とじます"}
.mget[open] .mg-arrow::after{content:"▲"}
.mget > .mission-card{margin-top:34px}
@keyframes mgetPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.mget > summary{animation:none}}

/* 2026-11-25 「みんなで現在まで救った高校数！」：文字はすべて中央ぞろえ。数字のとなりに「前日より +◯校」。地元貢献レベルは廃止 */
.nation,.rail .nation{text-align:center}
.rail .nation-total,.nation-total{display:flex;flex-direction:column;align-items:center;gap:2px}
.nt-of{font-size:clamp(16px,4.4vw,20px);font-weight:800}
.nt-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 8px}
.rail .nation .nt-num{font-size:clamp(32px,9.6vw,60px);margin:0 2px 0 0}
.nt-main{white-space:nowrap;font-size:clamp(17px,4.8vw,26px);font-weight:800}
.nt-diff{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap;line-height:1;padding:5px 9px 6px;border:2.5px solid #1c2b4f;border-radius:999px;background:#ffffff;color:#1c2b4f;font-weight:800;box-shadow:0 3px 0 #1c2b4f}
.nt-diff .nd-k{font-size:13px}
.nt-diff b{font-size:clamp(18px,5vw,26px);font-variant-numeric:tabular-nums}
.nt-diff .nd-u{font-size:14px}
.nt-diff.up{background:#e9f9df}
.nt-diff.up b{color:#2f8f1f}
.nation .nt-note{text-align:center}
.nation-all{text-align:center}
.nation-cele{justify-content:center;text-align:center}

/* 2026-11-25 「ミッションを受け取る」：本部から入電したトランシーバーのイメージ。電話のバイブのように小きざみに震える */
.mget > summary{background:linear-gradient(#26375f,#1c2b4f);border-color:#ffd23f;box-shadow:0 0 0 3px #1c2b4f,0 8px 0 #0e1730;animation:mgetBuzz 2.4s linear infinite;min-height:88px}
.mg-ico{width:54px;height:54px;background:#ffd23f;border-radius:14px;font-size:0;animation:mgetIcoBuzz 2.4s linear infinite}
.mg-ico svg{width:44px;height:44px;display:block}
.tr-wave{fill:none;stroke:#e0442a;stroke-width:3;stroke-linecap:round;animation:mgetWave 1.2s ease-out infinite}
.tr-wave.w2{animation-delay:.25s}
.tr-led,.mg-led{animation:mgetBlink .6s steps(2,start) infinite}
.mg-call{display:inline-flex;align-items:center;gap:6px;width:fit-content;font-size:13px;font-weight:800;letter-spacing:.06em;line-height:1.5;color:#1c2b4f;background:#ffd23f;border-radius:999px;padding:0 10px}
.mg-led{display:inline-block;width:9px;height:9px;border-radius:50%;background:#e0442a;box-shadow:0 0 6px #ff5a3c}
.mg-b{color:#ffffff;text-shadow:0 2px 0 #0e1730}
.mg-s{color:#ffe9a6}
.mg-arrow{background:#e0442a;color:#ffffff;border-color:#ffd23f}
.mget[open] > summary{animation:none;border-color:#1c2b4f;box-shadow:0 4px 0 #0e1730;min-height:56px}
.mget[open] .mg-ico{animation:none;border-radius:10px}
.mget[open] .mg-ico svg{width:30px;height:30px}
.mget[open] .mg-call,.mget[open] .tr-wave{display:none}
.mget[open] .tr-led{animation:none}
@keyframes mgetBuzz{0%,28%,100%{transform:translate(0,0) rotate(0)}2%{transform:translate(-2px,0) rotate(-.6deg)}4%{transform:translate(2px,0) rotate(.6deg)}6%{transform:translate(-2px,0) rotate(-.6deg)}8%{transform:translate(2px,0) rotate(.6deg)}10%{transform:translate(-2px,0) rotate(-.6deg)}12%{transform:translate(2px,0) rotate(.6deg)}14%{transform:translate(0,0)}16%{transform:translate(-2px,0) rotate(-.6deg)}18%{transform:translate(2px,0) rotate(.6deg)}20%{transform:translate(-2px,0) rotate(-.6deg)}22%{transform:translate(2px,0) rotate(.6deg)}24%{transform:translate(-2px,0) rotate(-.6deg)}26%{transform:translate(2px,0) rotate(.6deg)}}
@keyframes mgetIcoBuzz{0%,28%,100%{transform:rotate(0)}3%,9%,17%,23%{transform:rotate(-9deg)}6%,12%,20%,26%{transform:rotate(9deg)}14%{transform:rotate(0)}}
@keyframes mgetWave{0%{opacity:0}30%{opacity:1}100%{opacity:0}}
@keyframes mgetBlink{to{visibility:hidden}}
@media (prefers-reduced-motion:reduce){.mget > summary,.mg-ico,.tr-wave,.tr-led,.mg-led{animation:none}}

/* 2026-11-25 救った高校数：数字をさらに大きく。数え上げの終わりにドーンと弾む */
.rail .nation .nt-num{display:inline-block;font-size:clamp(60px,18vw,104px);line-height:1;margin:0 4px 0 0;text-shadow:0 4px 0 #1c2b4f;transform-origin:50% 70%;will-change:transform}
.nt-main{font-size:clamp(22px,6.2vw,34px)}
.nt-of{font-size:clamp(17px,4.8vw,22px)}
.nt-row{gap:10px 12px}
.nt-num.boom{animation:ntBoom 1s cubic-bezier(.2,1.6,.4,1) 1}
.nt-num.bump{animation:ntBump .45s ease-out 1}
@keyframes ntBoom{0%{transform:scale(1)}25%{transform:scale(1.55) rotate(-3deg);text-shadow:0 6px 0 #1c2b4f,0 0 26px rgba(255,210,63,.95)}45%{transform:scale(.92) rotate(1deg)}65%{transform:scale(1.12)}100%{transform:scale(1);text-shadow:0 4px 0 #1c2b4f}}
@keyframes ntBump{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.nt-num.boom,.nt-num.bump{animation:none}}

/* 2026-11-25 マイページ「つぎの一手」：ゲームのステータス風（少ない文字・大きな数字のカード） */
.nextmove.game{background:#1c2b4f;color:#ffffff;border-color:#1c2b4f;box-shadow:0 6px 0 #0e1730;padding:12px 12px 12px;font-family:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Maru Gothic ProN","Hiragino Sans",system-ui,sans-serif}
.rail .nextmove.game h3.nm-h{font-size:15px;letter-spacing:.08em;margin:0 0 8px}
.nm-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nmc{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"ico n" "t t";align-items:center;gap:2px 8px;background:#ffffff;color:#1c2b4f;border:3px solid #ffd23f;border-radius:14px;padding:8px 10px 9px}
.nmc p{margin:0}
.nmc-ico{grid-area:ico;font-size:22px;line-height:1}
.nmc-n{grid-area:n;display:flex;align-items:baseline;gap:3px;line-height:1;font-weight:800;white-space:nowrap}
.nmc-ato,.nmc-u{font-size:14px}
.nmc-n b{font-size:clamp(28px,8.4vw,38px);color:#e0442a;font-variant-numeric:tabular-nums}
.nmc-t{grid-area:t;display:flex;flex-direction:column;line-height:1.35;min-width:0}
.nmc-t b{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.nmc-t span{font-size:13px;font-weight:700;color:#44527a;overflow-wrap:anywhere}
.nmc.top{grid-column:1 / -1;justify-content:center;grid-template-columns:auto auto;text-align:center;gap:4px 12px;background:#fff8d6;border-width:4px;padding:10px 12px;box-shadow:0 4px 0 #0e1730}
.nmc.top .nmc-ico{font-size:40px}
.nmc.top .nmc-ato,.nmc.top .nmc-u{font-size:17px}
.nmc.top .nmc-n b{font-size:clamp(52px,16vw,68px);text-shadow:0 3px 0 #1c2b4f}
.nmc.top .nmc-t b{font-size:clamp(18px,5vw,21px)}
.nmc.top .nmc-t span{font-size:14px}
.nextmove.game .nm-note{color:#c9d2e6;margin-top:8px}
.nmc.top .nmc-t{align-items:center}
.nmc{padding:8px 8px 9px}

/* 2026-11-25 マイページの4つのステータス（称号・ミッション報告・高校ポイント・メール）：すべて中央ぞろえ。改行は意味の切れ目で */
.rail .me-facts div,.me-facts div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:10px 8px;min-height:92px}
.rail .me-facts dt,.me-facts dt{text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.rail .me-facts dd,.me-facts dd{text-align:center;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere;max-width:100%}
.rail .me-facts dd#me-email{font-size:15px;font-weight:700;word-break:normal;overflow-wrap:anywhere;line-height:1.4}
.rail .me-facts dd#me-title-name{display:inline-block;text-align:center}
.me-facts .mf-n{display:block;font-size:26px;line-height:1.1}
.me-facts .mf-u{display:block;font-size:14px;font-weight:800;line-height:1.3}
.me-facts .mf-em{display:inline-block;max-width:100%;overflow-wrap:anywhere}

/* 2026-11-25 「ゆるキャラ図鑑をひらく」ボタン：このサイトの景色（青空と草原）に、いろいろな県のゆるキャラがずらりと並ぶ。上に本の題名ふうの札 */
.zk-row{margin:0 0 14px}
.zk-btn.zkb{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:12px 6px 0;overflow:hidden;border-radius:18px;border:4px solid #1c2b4f;background:linear-gradient(#7cc8f5 0%,#c9ecff 58%,#8fd18a 58%,#6fbf6a 100%);box-shadow:0 6px 0 #1c2b4f;text-align:center}
.zkb-t{position:relative;z-index:1;order:-1;display:flex;flex-direction:column;align-items:center;gap:1px;max-width:100%;padding:6px 16px 7px;background:#ffd23f;border:3px solid #1c2b4f;border-radius:14px;box-shadow:0 4px 0 #1c2b4f}
.zkb-t b{font-size:clamp(18px,5.3vw,22px);font-weight:800;line-height:1.3;color:#1c2b4f;white-space:nowrap}
.zkb-t b::before{content:"📖 "}
.zk-btn.zkb .zkb-t small{font-size:13px;font-weight:800;color:#1c2b4f;white-space:nowrap}
.zkb-bg{display:grid;grid-template-columns:repeat(5,1fr);width:100%;gap:0;align-items:end;justify-items:center;padding:2px 0 4px}
.zkb-c{display:block;width:100%;max-width:76px;aspect-ratio:1}
.zkb-c svg{width:100%;height:100%;display:block}
.zkb-c:nth-child(-n+5){transform:scale(.82) translateY(10px);opacity:.92}
.zk-btn.zkb:active{transform:translateY(4px);box-shadow:0 2px 0 #1c2b4f}

/* 2026-11-25 マイページの県カード：図書館のランプ（大きな建物のアイコン2つ＋「図書館のランプとは？」）、順位の3行表示 */
.pc-lib.lbc{padding:10px 12px 12px}
.lbc-what > summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;list-style:none;cursor:pointer;min-height:44px}
.lbc-what > summary::-webkit-details-marker{display:none}
.lbc-h{font-size:17px;font-weight:800;color:#1c2b4f}
.lbc-q{font-size:14px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:2.5px solid #1c2b4f;border-radius:999px;padding:3px 12px;box-shadow:0 3px 0 #1c2b4f;white-space:nowrap}
.lbc-q::after{content:" ▼"}
.lbc-what[open] .lbc-q::after{content:" ▲"}
.lbc-what > summary:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.lbc-a{margin:8px 0 4px;padding:10px 12px;border-radius:12px;background:#fff8d6;border:2px solid #1c2b4f;font-size:15px;font-weight:700;line-height:1.7;color:#1c2b4f}
.pc-lib.lbc .lb-two{margin-top:8px}
.pc-lib.lbc .lb-ico{width:84px;height:84px}
.pc-next .pc-t .pc-l1,.pc-next .pc-t .pc-l2{display:block}
.mylit + .cards,.history + .cards{margin-top:16px}

/* 2026-11-25 「一緒に戦う仲間を集める」：ゆるキャラがたくさん集まって、ぴょこぴょこ弾んでいる絵 */
.invite-btn.ivg{flex-direction:column;align-items:stretch;gap:6px;padding:10px 14px 12px;text-align:center;overflow:hidden}
.invite-btn.ivg .iv-t{align-items:center;text-align:center}
.iv-gang{display:flex;justify-content:center;align-items:flex-end;height:74px;margin:0 -8px;padding:6px 0 0;border-radius:12px;background:linear-gradient(#ffe9a6 0 68%,#8fd18a 68% 100%);border:3px solid #1c2b4f}
.ivg-c{flex:0 0 auto;width:62px;height:62px;margin:0 -9px;animation:ivgHop 1.4s ease-in-out infinite;animation-delay:calc(var(--k) * -0.2s)}
.ivg-c:nth-child(even){width:54px;height:54px}
.ivg-c svg{width:100%;height:100%;display:block}
@keyframes ivgHop{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media (prefers-reduced-motion:reduce){.ivg-c{animation:none}}
@media (max-width:380px){.ivg-c{width:54px;height:54px;margin:0 -10px}.ivg-c:nth-child(even){width:48px;height:48px}}
.invite-btn.ivg{min-height:0}
.invite-btn.ivg > .iv-arrow,.invite-btn.ivg > span:last-child:not(.iv-t):not(.iv-gang){display:none}

/* 2026-11-25 仲間を集める画面の3つの数字：すべて中央ぞろえ。上に2つ、下に1つ（横いっぱい）。改行は意味の切れ目で */
.inv-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.inv-stats > div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 8px 10px;border-width:3px;border-radius:14px;text-align:center}
.inv-stats > div.hl{grid-column:1 / -1;padding:12px 10px}
.inv-stats span{font-size:15px;line-height:1.4;color:#1c2b4f;word-break:keep-all}
.inv-stats .is-v{margin:0;display:flex;align-items:baseline;justify-content:center;gap:4px;line-height:1}
.inv-stats b{font-size:clamp(40px,11vw,48px);line-height:1}
.inv-stats small{font-size:16px;margin:0;color:#1c2b4f}

/* 2026-11-25 「この画像でミッション報告する」：画像を選んで押せるようになったら、電話のバイブのように小きざみに震える（見た目はそのまま） */
#btn-submit:not(:disabled){animation:mgetBuzz 2.4s linear infinite}
#btn-submit:not(:disabled):active{animation:none}
@media (prefers-reduced-motion:reduce){#btn-submit:not(:disabled){animation:none}}
#inv-title{font-size:clamp(17px,5.4vw,24px) !important;white-space:nowrap;letter-spacing:0}

/* パスワードを忘れたとき（2026-11-26 追加） */
.pwreset{margin-top:18px;border-top:2px dashed var(--line-strong);padding-top:12px}
.pwreset>summary{cursor:pointer;font-weight:800;font-size:16px;padding:10px 4px;min-height:44px;color:var(--text)}
.pwreset>summary:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.pwreset-steps{margin:8px 0 14px;padding-left:1.4em;font-size:15px;line-height:1.8}
.pwreset-steps li{margin-bottom:6px}

/* 公開の場所で見本モードになっていたときの警告（2026-11-26 追加） */
.mock-warn{position:sticky;top:0;z-index:9999;background:#b3261e;color:#fff;font-weight:800;font-size:16px;line-height:1.6;text-align:center;padding:12px 16px}

/* マイページの「あなたのミッション報告の記録」を折りたたむ（2026-11-26 追加） */
.hist-fold > summary{font-size:16px;min-height:52px;padding:6px 14px}
.hist-fold > summary h3{margin:0;padding:0;border:0;font-size:inherit;font-weight:800;line-height:1.4;text-align:left;flex:1 1 auto;min-width:0}
.hist-fold > summary::after{content:"ひらく ▼";font-size:14px;padding:2px 12px;white-space:nowrap}
.hist-fold[open] > summary::after{content:"とじる ▲"}
.hist-fold[open] > summary{border-bottom:2px dashed var(--line-strong,#9aa5bf);margin-bottom:10px}

/* 対抗戦期間と「ミッションスタートまで あと◯日」の札を、中央にそろえる（2026-11-26 追加） */
.period,.rail .period{justify-content:center;text-align:center}
.rail .period > span{justify-content:center;text-align:center}
.rail .period > #period-text{font-size:clamp(11.5px,3.45vw,14px);white-space:nowrap;padding-left:10px;padding-right:10px}

/* 今日の急上昇県の説明を「表示基準」のボタンに折りたたむ（2026-11-26 追加） */
.wk-fold{margin-top:12px}
.wk-fold > summary{font-size:15px}
.wk-fold > .wk-note{margin-top:8px}

/* つぎの一手：「上の県を抜くまで あと◯回」の図（2026-11-26 追加） */
.nm-chase{display:grid;gap:10px;margin:0 0 10px}
.chase{background:#ffffff;color:#1c2b4f;border:4px solid #ffd23f;border-radius:16px;padding:10px 10px 12px;box-shadow:0 4px 0 #0e1730;text-align:center}
.chase p{margin:0}
.chase-role{font-size:clamp(17px,4.8vw,20px);font-weight:800;line-height:1.3;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.chase-tag{font-size:13px;font-weight:800;background:#1c2b4f;color:#ffffff;border-radius:999px;padding:2px 10px;white-space:nowrap}
.chase-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:4px;margin-top:8px;padding:8px 4px 0;border-radius:12px;background:linear-gradient(#cfeeff 0 62%,#9bd67a 62% 100%)}
.chase.none .chase-row,.chase.top .chase-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.chase-side{display:flex;flex-direction:column;align-items:center;min-width:0;padding-bottom:6px}
.chase-pic{display:block;width:clamp(62px,19vw,84px);height:clamp(62px,19vw,84px)}
.chase-pic svg{width:100%;height:100%;display:block}
.chase-side.me .chase-pic{animation:chaseRun .7s ease-in-out infinite alternate}
.chase-side.back .chase-pic{transform:scale(.8);opacity:.85}
.chase-nm{font-size:clamp(15px,4.3vw,18px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.chase-rk{font-size:14px;font-weight:800;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;padding:0 10px;margin-top:2px;white-space:nowrap}
.chase-side.up .chase-rk{background:#ffd23f}
.chase-mid{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;padding:0 2px 8px;min-width:0}
.chase-n{display:flex;align-items:baseline;justify-content:center;gap:3px;font-weight:800;line-height:1;white-space:nowrap}
.chase-n span{font-size:16px}
.chase-n b{font-size:clamp(46px,14vw,62px);color:#e0442a;text-shadow:0 3px 0 #1c2b4f;font-variant-numeric:tabular-nums}
.chase-arrow{font-size:18px;letter-spacing:2px;color:#e0442a;line-height:1.2;animation:chaseArrow 1s linear infinite}
.chase-go{font-size:clamp(14px,4vw,16px);font-weight:800;white-space:nowrap}
.chase-crown{font-size:clamp(20px,6vw,26px);font-weight:800;color:#e0442a;white-space:nowrap}
.chase-sub{margin-top:8px !important;font-size:14px;font-weight:700;line-height:1.6;color:#44527a}
@keyframes chaseRun{from{transform:translateX(-3px)}to{transform:translateX(5px)}}
@keyframes chaseArrow{0%{opacity:.35;transform:translateX(-4px)}50%{opacity:1}100%{opacity:.35;transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.chase-side.me .chase-pic,.chase-arrow{animation:none}}

/* マイページの県別ブロック：見出しだけを出し、「くわしい情報」で開く（2026-11-26 追加） */
.pc-more{display:block}
.pc-more > summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:12px 14px 0;padding:6px 14px;cursor:pointer;list-style:none;font-size:16px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:0 4px 0 #1c2b4f}
.pc-more > summary::-webkit-details-marker{display:none}
.pc-more > summary::after{content:"ひらく ▼";font-size:14px;font-weight:800}
.pc-more[open] > summary::after{content:"とじる ▲"}
.pc-more[open] > summary{margin-bottom:12px;background:#ffffff;box-shadow:0 2px 0 #1c2b4f}
.pc-more > summary:active{transform:translateY(2px);box-shadow:0 2px 0 #1c2b4f}
.pc-more > summary:focus-visible{outline:3px solid #e0442a;outline-offset:3px}

/* ================================================================
 * パソコンなど、横に広い画面での整え（2026-11-26 追加）
 *   ここから下の指定は、画面の幅が 1000px 以上のときだけ効く。スマホの表示には一切影響しない。
 *   ねらい：ブロックごとに幅と位置がばらばらだったのを、同じ幅・中央ぞろえにそろえる。
 * ================================================================ */
@media (min-width:1000px){
  /* 全体を、読みやすい幅の1本の柱にして中央へ */
  .rail .wrap{max-width:1040px}
  /* 幅が 820px までで左に寄っていたブロックを、ほかと同じ幅にそろえる */
  .rail .sign,.greet,.hero-cta,.sign-gift,.hoshi-letter{max-width:none;margin-left:0;margin-right:0;width:100%}
  /* 入力フォームは、広がりすぎないように中央へ */
  .rail .form{max-width:820px;margin-left:auto;margin-right:auto}
  .pwreset{max-width:820px;margin-left:auto;margin-right:auto}
  /* つぎの一手：出身県と いま住む県の図を、横に2つ並べる（1つのときは中央に1つ） */
  .nm-chase{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .nm-chase > .chase:only-child{grid-column:1 / -1;max-width:560px;width:100%;margin-left:auto;margin-right:auto}
  .chase{display:flex;flex-direction:column}
  .chase-sub{margin-top:auto !important;padding-top:8px}
  .chase-n b{font-size:56px}
  .chase-pic{width:84px;height:84px}
  /* お祝いの画面：見出しが言葉の途中で折れないよう、箱を広げる */
  .evo-box{max-width:920px}
  .rail .cele h2.evo-h,.evo-h{font-size:40px}
  /* 横に長いボタン：中の絵・文字・矢印を、ひとかたまりで中央に置く（左に寄って右が空くのを直す） */
  .hero-cta,.rule-btn,.invite-btn.share-big,.mget > summary,.m30-hint > summary,.tips > summary,.lbc-what > summary,.pd-fold > summary{justify-content:center;text-align:center}
  .hero-cta .hc-t,.rule-btn .rb-text,.invite-btn.share-big .iv-t,.mget .mg-t,.m30-hint .mh-t{flex:0 1 auto;text-align:center;align-items:center}
  .hist-fold > summary h3{flex:0 1 auto;text-align:center}
  .hero-cta,.rule-btn,.invite-btn.share-big,.mget > summary,.m30-hint > summary{gap:16px}
  /* マイページの中身：見出し・案内文・一覧の札も中央にそろえる */
  #entry > h3,#entry-open > p{justify-content:center;text-align:center}
  #member > .today{display:block;width:fit-content;margin-left:auto;margin-right:auto}
  /* 2026-11-27 主催者の指示：パソコンでは「あなたがランプを灯した高校」を左揃えにする（以前は中央ぞろえ） */
  #mylit{text-align:left}
  #mylit .ml-list{justify-content:flex-start}
  #mylit h3,#mylit .mylit-h{justify-content:flex-start}
  .nextmove.game .nm-note,.rail .nextmove.game h3.nm-h{text-align:center}
  .rail .nextmove.game h3.nm-h{margin-left:auto;margin-right:auto;width:fit-content;display:block}
  .rv-all{max-width:none}
  .nmc{justify-content:center;grid-template-columns:auto auto;text-align:center}
  .nmc .nmc-t{align-items:center}
}

/* 週の帯：開く中身が無い日は、押せる見た目にしない（2026-11-26 小目標の不採用にともなう） */

/* 地図・ランキングの下の「図書館のランプ」の行：小さな「図書館のランプとは？」ボタンと説明（2026-11-26 追加） */
#rank-cap:empty{display:none}
.lib-line-t{display:block}
.lib-line-q{display:inline-flex;align-items:center;min-height:36px;margin-top:6px;padding:2px 12px;font:inherit;font-size:13px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:2.5px solid #1c2b4f;border-radius:999px;box-shadow:0 3px 0 #1c2b4f;cursor:pointer;white-space:nowrap}
.lib-line-q::after{content:" ▼"}
.lib-line-q.open::after{content:" ▲"}
.lib-line-q:active{transform:translateY(2px);box-shadow:0 1px 0 #1c2b4f}
.lib-line-q:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.lib-line-a{display:block;margin-top:8px;padding:8px 10px;font-size:14px;font-weight:700;line-height:1.7;text-align:left;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:10px}
.lib-line-a[hidden]{display:none}

/* ミッションの中の3つの説明：絵を上、文を下にして、意味の切れ目で改行した文を中央にそろえる（2026-11-26 主催者の指示） */
.mission-steps li{flex-direction:column;justify-content:center;text-align:center;gap:6px}
.mission-steps .ms-t{display:block;text-align:center;white-space:nowrap;font-size:clamp(15px,4.3vw,19px);line-height:1.7}
.mission-steps .ms-goal .ms-t{font-size:clamp(15px,4.4vw,20px)}

/* ミッションのまとめの文：意味の切れ目で改行して中央にそろえる（2026-11-26 主催者の指示） */
.mission-def{text-align:center;line-height:1.8}

/* パスワードの再設定（メールで自動）と、マイページのパスワード変更（2026-11-27 追加） */
.pwreset-lead{margin:10px 0 8px;font-size:15px;font-weight:700;line-height:1.7;display:flex;align-items:flex-start;gap:8px}
.pwreset-no{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#1c2b4f;color:#ffffff;font-size:14px;font-weight:800;margin-top:1px}
.pwreset-ok{margin:10px 0 0;padding:10px 12px;font-size:15px;font-weight:700;line-height:1.7;color:#1c2b4f;background:#ecf8df;border:2px solid #1c2b4f;border-radius:10px}
.pwreset-ok[hidden]{display:none}
#reset-req-form{margin-bottom:14px;padding-bottom:14px;border-bottom:2px dashed var(--line-strong)}
.pwchange{margin-top:16px}
.pwchange > summary{font-size:15px}
.pwchange > form{margin-top:10px;margin-bottom:12px}

/* マイページの県別ブロック：「応援率100%までの道のり」を読みやすく作り直し（2026-11-27 主催者の指示） */
.pc-road{text-align:center;padding:12px 12px 12px}
.pc-road p{margin:0}
.pc-road .pc-road-h{font-size:clamp(16px,4.6vw,19px);font-weight:800;margin:0 0 4px;white-space:nowrap}
.pc-road-now{display:flex;align-items:baseline;justify-content:center;gap:8px;font-weight:800;line-height:1.2;white-space:nowrap}
.pc-road-now span{font-size:15px;color:#44527a}
.pc-road-now b{font-size:clamp(26px,7.6vw,34px);color:#e0442a;text-shadow:0 2px 0 #1c2b4f}
.rail .pc2 .pc-road .prog{margin:10px 30px 2px;height:40px}
.rail .pc2 .pc-road .prog::before{content:"";position:absolute;left:0;right:0;bottom:6px;height:4px;background:#c9d2e6;border-radius:2px}
.rail .pc2 .pc-road .prog > span:not(.train):not(.pc-flag){z-index:1}
.rail .pc2 .pc-road .prog .train{z-index:2}
.rail .pc2 .pc-road .prog .pc-flag{position:absolute;right:-16px;bottom:8px;left:auto;width:auto;height:auto;background:none;font-size:22px;line-height:1}
.pc-road .pc-ends{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 4px;font-size:14px;font-weight:800;color:#1c2b4f}
.pc-road .pc-ends span{white-space:nowrap;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;padding:1px 10px;line-height:1.6}
.pc-road .pc-ends .pe-g{background:#ffd23f}
.pc-road-num{margin-top:10px !important;display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 6px;font-weight:800;color:#1c2b4f;line-height:1.3}
.pc-road-num b{font-size:clamp(24px,7vw,30px)}
.pc-road-num span{font-size:15px;white-space:nowrap}
.pc-road-num .pc-road-of{color:#44527a}
.pc-road-left{margin-top:6px !important;display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 6px;font-size:15px;font-weight:800;color:#1c2b4f;background:#fff3b8;border:2px solid #1c2b4f;border-radius:12px;padding:6px 10px;line-height:1.3}
.pc-road-left span{white-space:nowrap}
.pc-road-left b{font-size:clamp(22px,6.4vw,28px);color:#e0442a}

.pc-lib.at-end{margin-top:12px}

/* 2026-11-27 ゆるキャラの名前（1行め）と、いまの姿（2行め） */
.pc-chname .pc-chn-n,.pc-chname .pc-chn-s{display:block;text-align:center}
.pc-chname .pc-chn-s{font-weight:700;font-size:.92em;margin-top:2px}

/* 2026-11-27 称号のスタンプを押すと、スタンプ帳へ */
.me-facts .mf-title{cursor:pointer}
.me-facts .mf-go{appearance:none;font:inherit;font-size:12px;font-weight:800;line-height:1.3;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;padding:4px 10px;min-height:32px;cursor:pointer;max-width:100%;word-break:keep-all;overflow-wrap:anywhere}
.sb-lead{margin:4px 14px 8px;text-align:center;font-size:13px;font-weight:700;line-height:1.6}
.sb-lead span{display:block}
.sb-lead b{font-size:1.5em;color:#d33a1f;margin:0 2px}
@keyframes sbFlash{0%,100%{box-shadow:0 0 0 0 rgba(211,58,31,0)}30%,70%{box-shadow:0 0 0 4px rgba(211,58,31,.75)}}
.sb-item.sb-flash{animation:sbFlash 1.2s ease-in-out 2;border-radius:12px}

/* 2026-11-27 ゆるキャラの絵の上の「着せ替えをする」ボタン */
.pc-dress{appearance:none;font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:4px 10px;font-size:12px;font-weight:800;line-height:1.2;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;box-shadow:0 2px 0 #1c2b4f;cursor:pointer;white-space:nowrap;margin-bottom:2px}
.pc-dress:active{transform:translateY(2px);box-shadow:none}
/* ボタンで、ゆるキャラの枠が横に広がらないようにする（せまいスマホで右側の数字の場所を減らさない） */
.pc-dress{width:0;min-width:100%;padding:4px 2px;font-size:11px;gap:2px;box-sizing:border-box}
/* 2026-11-27 「一緒に戦う仲間を集める」のすぐ下の小さな補足 */
.invite-btn .iv-t .iv-sub{display:block;font-size:12px;font-weight:700;line-height:1.4;margin:1px 0 2px}

/* ===== おかえり順位速報（2026-11-27）。絵は自作（駅名標・列車）。動きは transform / opacity だけ ===== */
.rr-in{position:relative;z-index:1;height:100%;overflow-y:auto;display:flex;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px))}
.rr-box{margin:auto;width:100%;max-width:640px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.rr-rail{position:relative;width:100%;height:64px;overflow:hidden}
.rr-track{position:absolute;left:0;right:0;bottom:2px;height:6px;border-radius:3px;background:repeating-linear-gradient(90deg,#ffd23f 0 14px,transparent 14px 24px)}
.rr-train{position:absolute;left:50%;bottom:4px;width:220px;height:60px;margin-left:-110px}
.rr-train svg{display:block}
.rr.go .rr-train{animation:rrTrain 1.5s cubic-bezier(.2,.8,.3,1) both}
@keyframes rrTrain{0%{transform:translateX(-120vw)}100%{transform:translateX(0)}}
.rr-badge{margin:0;font-size:clamp(17px,4.8vw,24px);font-weight:800;line-height:1.6;color:#1c2b4f;background:#ffd23f;border:4px solid #ffffff;border-radius:999px;padding:0 20px;box-shadow:0 0 30px rgba(255,210,63,.7)}
.rr-h{margin:0;font-size:clamp(24px,7vw,36px);font-weight:800;line-height:1.3;color:#ffffff;text-shadow:0 3px 0 #1c2b4f}
.rr-list{list-style:none;margin:4px 0 0;padding:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;justify-items:center}
.rr-card{width:100%;max-width:420px;min-width:0}
.rr.go .rr-card{animation:rrPop .32s cubic-bezier(.2,1.3,.4,1) both;animation-delay:calc(.04s + var(--k,0) * .1s)}   /* 2026-11-28 早く出す（以前は .35秒待ってから .55秒かけていた） */
@keyframes rrPop{0%{opacity:0;transform:translateY(24px) scale(.92)}100%{opacity:1;transform:none}}
/* 駅名標のかたち */
.rr-sign{position:relative;background:#fffdf6;color:#1c2b4f;border:4px solid #1c2b4f;border-radius:18px;box-shadow:0 6px 0 #0b1330;padding:10px 12px 20px;overflow:hidden}
.rr-kind{display:inline-block;font-size:12px;font-weight:800;line-height:1.5;color:#ffffff;background:#1c2b4f;border-radius:999px;padding:0 10px}
.rr-pref{display:block;font-size:clamp(22px,6.4vw,30px);font-weight:800;line-height:1.3;letter-spacing:.06em;margin-top:2px}
.rr-body{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:4px}
.rr-ch{flex:none;width:92px;height:92px;border:3px solid #1c2b4f;border-radius:16px;overflow:hidden;display:block}
.rr-ch svg{display:block;width:100%;height:100%}
.rr-rank{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:0 4px;min-width:0}
.rr-rk-k,.rr-rk-u{font-size:20px;font-weight:800}
.rr-num{font-size:clamp(56px,17vw,76px);font-weight:800;line-height:1;color:#e0442a;font-variant-numeric:tabular-nums;text-shadow:0 3px 0 #1c2b4f}
.rr-of{flex-basis:100%;font-size:12px;font-weight:700;color:#44527a}
.rr-norank{font-size:20px;font-weight:800}
.rr-move{margin:8px 0 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 8px;border:3px solid #1c2b4f;border-radius:14px;padding:6px 10px;background:#eef3ff}
.rr-arrow{font-size:24px;font-weight:800;line-height:1}
.rr-mv-t{font-size:clamp(19px,5.4vw,24px);font-weight:800;line-height:1.3}
.rr-mv-s{flex-basis:100%;font-size:13px;font-weight:700;line-height:1.5;color:#44527a}
.rr-card.up .rr-move,.rr-card.in .rr-move{background:#ffe9a8}
.rr-card.up .rr-arrow,.rr-card.up .rr-mv-t,.rr-card.in .rr-arrow,.rr-card.in .rr-mv-t{color:#d33a1f}
.rr-card.down .rr-move{background:#dfe9ff}
.rr-card.down .rr-arrow,.rr-card.down .rr-mv-t{color:#1f4fb5}
.rr.go .rr-card.up .rr-arrow{animation:rrUp .7s ease-in-out 1.2s 3}
.rr.go .rr-card.down .rr-arrow{animation:rrDown .7s ease-in-out 1.2s 3}
.rr.go .rr-card.up .rr-ch svg,.rr.go .rr-card.in .rr-ch svg{animation:rrHop .5s ease-in-out 1.3s 4}
@keyframes rrUp{0%,100%{transform:none}50%{transform:translateY(-7px)}}
@keyframes rrDown{0%,100%{transform:none}50%{transform:translateY(7px)}}
@keyframes rrHop{0%,100%{transform:none}50%{transform:translateY(-8px)}}
.rr-line{position:absolute;left:0;right:0;bottom:0;height:12px;background:linear-gradient(90deg,#e0442a 0 50%,#2fa45a 50% 100%);border-top:3px solid #1c2b4f}
.rr-msg{margin:4px 0 0;font-size:15px;font-weight:700;line-height:1.6;color:#ffffff;max-width:460px}
.rr-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 12px}
@media (prefers-reduced-motion: reduce){
  .rr.go .rr-train,.rr.go .rr-card,.rr.go .rr-arrow,.rr.go .rr-ch svg{animation:none !important}
}
@media (min-width:1000px){
  .rr-box{max-width:920px}
  .rr-list.two{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 2県あるときは、スマホの1画面におさまるよう少し小さく */
.rr-rail{height:50px}
.rr-train{transform-origin:50% 100%;scale:.78}
.rr-list.two{gap:10px}
.rr-list.two .rr-sign{padding:8px 10px 18px}
.rr-list.two .rr-ch{width:72px;height:72px}
.rr-list.two .rr-pref{font-size:clamp(20px,5.6vw,26px)}
.rr-list.two .rr-num{font-size:clamp(48px,14vw,64px)}
.rr-list.two .rr-move{margin-top:6px;padding:4px 10px}

/* 2026-11-27 車掌さんのアイコン＋ふきだし（2行・中央ぞろえ） */
.rr-msg{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;max-width:460px}
.rr-cond{display:block;width:64px;height:64px;flex:none}
.rr-cond svg{display:block;width:100%;height:100%}
.rr-say{position:relative;display:block;background:#ffffff;color:#1c2b4f;border:3px solid #1c2b4f;border-radius:16px;padding:8px 14px;box-shadow:0 4px 0 #0b1330;max-width:100%;box-sizing:border-box}
.rr-say::before{content:"";position:absolute;left:50%;top:-9px;width:14px;height:14px;margin-left:-7px;background:#ffffff;border-left:3px solid #1c2b4f;border-top:3px solid #1c2b4f;transform:rotate(45deg)}
.rr-say-l{display:block;text-align:center;font-size:15px;font-weight:800;line-height:1.6}
.rr.go .rr-cond-hand{transform-box:fill-box;transform-origin:50% 100%;animation:rrWave .6s ease-in-out 1.4s 4}
@keyframes rrWave{0%,100%{transform:none}50%{transform:translateY(-5px) rotate(-12deg)}}
@media (prefers-reduced-motion: reduce){.rr.go .rr-cond-hand{animation:none !important}}
.rr-list.two ~ .rr-msg .rr-cond{width:52px;height:52px}
.rr-list.two ~ .rr-msg .rr-say{padding:5px 12px}
.rr-list.two ~ .rr-msg .rr-say-l{font-size:14px;line-height:1.5}

/* 2県＋車掌さんでも、スマホの1画面におさめる */
.rr-box:has(.rr-list.two){gap:7px}
.rr-list.two ~ .rr-msg{gap:3px;margin-top:0}
.rr-list.two ~ .rr-msg .rr-cond{width:46px;height:46px}

/* 2026-11-27 県の情報の「とじる」をわかりやすく：上のボタンは黄色に、下にはいつも出ている大きなボタン */
#pref-dlg .pd-close{background:#ffd23f;color:#1c2b4f;border-color:#ffffff;font-size:15px;font-weight:800;padding:6px 12px;white-space:nowrap;box-shadow:0 3px 0 #0b1330}
#pref-dlg .pd-foot{position:sticky;bottom:0;z-index:2;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#1c2b4f;border-top:3px solid #1c2b4f;box-shadow:0 -6px 14px rgba(14,24,48,.25)}
#pref-dlg .pd-close2{appearance:none;font:inherit;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:8px 14px;font-size:clamp(16px,4.6vw,19px);font-weight:800;line-height:1.3;color:#1c2b4f;background:#ffd23f;border:3px solid #ffffff;border-radius:999px;box-shadow:0 4px 0 #0b1330;cursor:pointer}
#pref-dlg .pd-close2:active{transform:translateY(3px);box-shadow:0 1px 0 #0b1330}
#pref-dlg .pd-close2:focus-visible{outline:3px solid #ffffff;outline-offset:2px}
#pref-dlg .pd-x{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border-radius:50%;background:#e0442a;color:#ffffff;font-size:16px;line-height:1;border:2px solid #1c2b4f}
/* せまいスマホでは、上の「とじる」を少し小さくして、県名が折り返さないようにする */
@media (max-width:360px){#pref-dlg .pd-close{font-size:13px;padding:6px 5px;min-width:0}}

/* 2026-11-27 速報は1画面におさめる（高いときは app.js の rrFit が全体をちぢめる。上をそろえてちぢめる） */
.rr-box{transform-origin:50% 0}
.rr-in{overscroll-behavior:contain}
@media (max-height:700px){.rr-rail{display:none}}

/* 2026-11-27 今日の急上昇県：県をタップすると、くわしい情報が開く */
.wk-hint{margin:0 0 8px;text-align:center;font-size:13px;font-weight:800;line-height:1.5;color:#1c2b4f}
.wk-hint:has(+ #wk-list:empty){display:none}
.wk-item.tap{cursor:pointer;-webkit-tap-highlight-color:transparent}
.wk-item.tap:active{transform:translateY(2px)}
.wk-item.tap:focus-visible{outline:3px solid #ffd23f;outline-offset:2px}

/* ===== 2026-11-27 Amazonレビューの報告：行き方の図・報告前のチェック・確認の画面 ===== */
.rv-how{margin-top:10px}
.rv-steps{list-style:none;margin:10px 0 6px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.rv-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;background:#fffdf6;border:2px solid #1c2b4f;border-radius:14px;padding:22px 8px 10px;min-width:0}
.rv-no{position:absolute;left:50%;top:-14px;margin-left:-15px;width:30px;height:30px;border-radius:50%;background:#e0442a;color:#ffffff;border:2px solid #1c2b4f;display:grid;place-items:center;font-weight:800;font-size:16px;line-height:1}
.rv-t{margin:0;font-size:13px;font-weight:700;line-height:1.55;text-align:center;min-height:4.65em}
.rv-t b{color:#e0442a;font-weight:800}
.rv-ph{display:block;width:100%;max-width:140px;height:auto}
.rv-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0 4px;padding:10px 12px;background:#fffdf6;border:2px solid #1c2b4f;border-radius:14px;cursor:pointer;text-align:left}
.rv-check input{flex:none;width:24px;height:24px;margin:2px 0 0;accent-color:#e0442a}
.rv-check-t{font-size:14px;font-weight:700;line-height:1.6;min-width:0}
.rv-check-t small{display:block;font-size:12px;font-weight:700;color:#44527a}
.rvdlg{padding:0;width:min(460px,calc(100% - 32px));max-width:none;max-height:min(92vh,760px);border:3px solid #1c2b4f;border-radius:18px;background:#fffdf6;color:#1c2b4f;box-shadow:6px 6px 0 #1c2b4f;overflow:hidden}
.rvdlg:not([open]){display:none}
.rvdlg::backdrop{background:rgba(14,24,48,.6)}
.rvd-in{max-height:min(92vh,760px);overflow-y:auto;padding:16px 16px 18px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.rvd-h{margin:0;font-size:clamp(18px,5vw,22px);font-weight:800;line-height:1.4}
.rvd-p{margin:0;font-size:14px;font-weight:700;line-height:1.7}
.rvd-p b{color:#e0442a;font-weight:800}
.rvd-fig{display:flex;flex-direction:column;align-items:center;gap:4px}
.rvd-fig .rv-ph{width:112px}
.rvd-cap{font-size:12px;font-weight:800;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;padding:1px 10px}
.rvd-q{margin:2px 0 0;font-size:clamp(16px,4.6vw,19px);font-weight:800;line-height:1.5}
.rvd-btns{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;max-width:320px}
.rvd-btns .btn{width:100%;justify-content:center;text-align:center}
@media (min-width:1000px){
  .rv-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rv-check{max-width:520px;margin-left:auto;margin-right:auto}
}

/* スマホでは1列：左に説明、右にスマホの絵（文字が細かく折れないように） */
.rv-sum{display:inline}
.rv-sum span{display:inline-block}
.rv-steps{grid-template-columns:minmax(0,1fr);gap:18px}
.rv-step{flex-direction:row;align-items:center;gap:10px;padding:16px 12px 12px}
.rv-no{left:14px;margin-left:0}
.rv-t{flex:1;min-width:0;min-height:0;text-align:left;font-size:15px;line-height:1.7}
.rv-ph{flex:none;width:118px;max-width:42%}
@media (min-width:1000px){
  .rv-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px}
  .rv-step{flex-direction:column;padding:22px 10px 12px}
  .rv-no{left:50%;margin-left:-15px}
  .rv-t{flex:none;text-align:center;font-size:14px;min-height:5.1em}
  .rv-ph{width:100%;max-width:150px}
}
/* 行き方の図：一覧のチェック印を出さない。見出しは少し小さく */
.rv-steps > li::before,.rv-steps > li::marker{content:none !important;display:none !important}
.rv-steps > li{list-style:none;padding-left:12px}
.rv-how > summary{font-size:13.5px;line-height:1.5}
.rv-how > summary .rv-sum{font-size:13px;line-height:1.5;flex:1;min-width:0}

/* 2026-11-27 灯してくれた人：1行めに名前、2行めに称号 */
.c-who.two{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:3px}
.c-who.two .c-l1{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0;max-width:100%}
.c-who.two .c-l2{display:block;min-height:19px;max-width:100%}
.c-who.two .c-title{display:inline-block;max-width:100%;white-space:normal;line-height:1.5}
/* チェック欄の文：言葉のとちゅうで折れないよう、まとまりごとに折り返す（むりな改行は入れない） */
.rv-check-t .rv-q{display:inline}
.rv-check-t .rv-q > span{display:inline-block}
.rv-check-t{flex:1}
@media (max-width:360px){.rv-check{gap:8px;padding:10px 8px}.rv-check input{width:22px;height:22px}.rv-check-t{font-size:13px}}

/* ===== 2026-11-27 AIで診断中の画面（白いうすい幕＋AIが画像をチェックする絵＋横に流れる文字） ===== */
.judging{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.jov{position:fixed;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.84);touch-action:none;overscroll-behavior:contain;animation:jovIn .25s ease-out both}
.jov[hidden]{display:none}
html.jov-on{overflow:hidden}
@keyframes jovIn{from{opacity:0}to{opacity:1}}
.jov-box{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 0 env(safe-area-inset-bottom,0px)}
.jov-fig{width:min(260px,70vw)}
.jov-fig svg{display:block;width:100%;height:auto;overflow:visible}
.jov-scan{animation:jovScan 1.8s ease-in-out infinite}
@keyframes jovScan{0%,100%{transform:translateY(0)}50%{transform:translateY(98px)}}
.jov-lens{transform-box:fill-box;transform-origin:50% 50%;animation:jovLens 2.4s ease-in-out infinite}
@keyframes jovLens{0%,100%{transform:translate(-18px,-10px)}25%{transform:translate(8px,-14px)}50%{transform:translate(10px,14px)}75%{transform:translate(-16px,16px)}}
.jov-bot{transform-box:fill-box;transform-origin:50% 100%;animation:jovBot 1.2s ease-in-out infinite}
@keyframes jovBot{0%,100%{transform:none}50%{transform:translateY(-5px)}}
.jov-eyes{transform-box:fill-box;transform-origin:50% 50%;animation:jovEyes 2.8s ease-in-out infinite}
@keyframes jovEyes{0%,44%,56%,100%{transform:none}50%{transform:scaleY(.15)}}
.jov-ant{animation:jovAnt .8s ease-in-out infinite}
@keyframes jovAnt{0%,100%{opacity:1}50%{opacity:.35}}
.jov-mq{width:100%;overflow:hidden;background:#1c2b4f;border-top:3px solid #ffd23f;border-bottom:3px solid #ffd23f;padding:8px 0}
.jov-track{display:flex;width:max-content;animation:jovMq 9s linear infinite}
.jov-track span{flex:none;padding:0 18px;color:#ffffff;font-size:clamp(20px,6vw,28px);font-weight:800;line-height:1.4;white-space:nowrap;letter-spacing:.06em}
@keyframes jovMq{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.jov-sub{margin:0;padding:0 16px;text-align:center;font-size:14px;font-weight:800;line-height:1.6;color:#1c2b4f}
.jov-sub span{display:inline-block}
@media (prefers-reduced-motion: reduce){
  .jov,.jov-scan,.jov-lens,.jov-bot,.jov-eyes,.jov-ant,.jov-track{animation:none !important}
  .jov-track{width:100%;justify-content:center}
  .jov-track span:not(:first-child){display:none}
}

/* ===== 2026-11-27 Amazonレビューの確認を「注意」の見た目に（赤い帯・注意の三角・黄色と紺のしま）。文は意味の切れ目でだけ改行 ===== */
.rvdlg.alert{border:4px solid #d33a1f;background:#ffffff;box-shadow:0 0 0 4px #ffd23f,8px 8px 0 4px #1c2b4f}
.rvdlg.alert .rvd-in{padding:0;gap:0;align-items:stretch}
.rvd-top{display:flex;align-items:center;justify-content:center;gap:10px;background:#d33a1f;color:#ffffff;padding:12px 14px}
.rvd-warn{flex:none;width:52px;height:47px;display:block}
.rvd-warn svg{display:block;width:100%;height:100%}
.rvdlg.alert.go .rvd-warn{animation:rvdShake .5s ease-in-out 2}
@keyframes rvdShake{0%,100%{transform:none}25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
.rvdlg.alert .rvd-h{margin:0;text-align:left;color:#ffffff;line-height:1.3}
.rvd-h1{display:block;font-size:clamp(20px,5.8vw,24px);font-weight:800;letter-spacing:.04em}
.rvd-h2{display:block;font-size:13px;font-weight:800;opacity:.95}
.rvd-stripe{height:12px;background:repeating-linear-gradient(-45deg,#ffd23f 0 12px,#1c2b4f 12px 24px)}
.rvd-body{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 16px 18px;text-align:center}
.rvdlg.alert .rvd-p{font-size:15px;font-weight:700;line-height:1.75;color:#1c2b4f}
.rvdlg.alert .rvd-p > span,.rvdlg.alert .rvd-q > span{display:block}
.rvdlg.alert .rvd-p.ng{background:#fff0ec;border:2px solid #d33a1f;border-radius:12px;padding:8px 12px;width:100%;box-sizing:border-box}
.rvdlg.alert .rvd-p b{color:#d33a1f}
.rvdlg.alert .rvd-fig .rv-ph{width:96px}
.rvdlg.alert .rvd-q{font-size:clamp(17px,4.8vw,20px);line-height:1.45}
@media (prefers-reduced-motion: reduce){.rvdlg.alert.go .rvd-warn{animation:none}}
@media (max-width:360px){.rvdlg.alert .rvd-p{font-size:13.5px}.rvdlg.alert .rvd-p.ng{padding:8px 4px}.rvd-body{padding:12px 12px 14px;gap:8px}}
@media (max-height:640px){.rvdlg.alert .rvd-fig{display:none}}
#rv-ok{font-size:clamp(15px,4.4vw,18px);white-space:nowrap;padding-left:6px;padding-right:6px}

/* ===== 2026-11-27 「どんな画像を出せばいい？」の説明を、絵つきカードに（主催者の指示：文字を読ませない） ===== */
.hx-nb{display:inline-block}
.tp-body .hx-tag{position:relative;margin:20px 0 0;padding:16px 8px 10px;background:#ffffff;border:3px solid #1c2b4f;border-radius:14px;text-align:center}
.hx-badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:#e0442a;color:#ffffff;font-size:14px;font-weight:800;line-height:1.5;padding:1px 14px;border-radius:999px;white-space:nowrap}
.tp-body .hx-lead{margin:0;font-size:15px;font-weight:800;color:#1c2b4f;line-height:1.5}
.tp-body .hx-word{margin:6px 0;padding:6px 2px;background:#ffd23f;border-radius:10px;font-size:clamp(15px,4.7vw,21px);font-weight:900;color:#1c2b4f;line-height:1.4;white-space:nowrap}
.tp-body .hx-sub{margin:0;font-size:14px;font-weight:700;color:#1c2b4f;line-height:1.5}
.tp-body .hx-free{margin:4px 0 0;font-size:14px;font-weight:700;color:#44527a;line-height:1.5}
.hx-idea{margin:10px 0 0;padding:10px 6px 12px;text-align:center;background:#eef3ff;border:2px solid #1c2b4f;border-radius:14px}
.hx-ico{font-size:22px;line-height:1;margin-right:4px;vertical-align:-2px}
.tp-body .hx-chip{display:inline-block;margin:6px 0 4px;padding:3px 8px;background:#ffffff;border:2px solid #1c2b4f;border-radius:10px;font-size:clamp(14px,4.3vw,18px);font-weight:900;color:#1c2b4f;line-height:1.5;white-space:nowrap}
.tp-body .hx-q{margin:0;font-size:15px;font-weight:800;color:#e0442a;line-height:1.5}
.tp-body .hx-a{margin:2px 0 0;font-size:clamp(15px,4.2vw,17px);font-weight:800;color:#1c2b4f;line-height:1.5}
.hx-a em{font-style:normal;background:linear-gradient(transparent 60%,#ffd23f 60%)}
.rvx{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.rvx-c{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:4px 10px;margin:0;padding:6px 8px 8px;border:3px solid #3d9a1f;border-radius:14px;background:#f1fbe9}
.rvx-c.ng{border-color:#e0442a;background:#fff0ed}
.rvx-c svg{display:block;width:68px;height:auto}
.rvx-c figcaption{min-width:0;color:#1c2b4f}
.rvx-mk{grid-column:1 / -1;display:block;margin:0;text-align:center;font-size:clamp(17px,4.9vw,20px);font-weight:900;color:#2e7d12;line-height:1.4}
.rvx-c.ng .rvx-mk{color:#e0442a}
.rvx-t{display:block;font-size:clamp(14.5px,4.1vw,16px);font-weight:800;line-height:1.5}
.rvx-t b{background:#ffd23f;border-radius:4px;padding:0 1px}
.rvx-why{display:block;margin-top:2px;font-size:14px;font-weight:700;color:#44527a;line-height:1.5}
.tp-body .rvx-once{display:flex;flex-direction:column;align-items:center;gap:4px;margin:8px 0 10px;padding:8px 8px;text-align:center;background:#ffffff;border:2px solid #1c2b4f;border-radius:14px}
.rvx-1{flex:none;background:#e0442a;color:#ffffff;border-radius:10px;padding:3px 10px;font-size:17px;font-weight:900;line-height:1.5;white-space:nowrap}
.rvx-o{min-width:0;font-size:clamp(14.5px,4.1vw,16px);font-weight:800;color:#1c2b4f;line-height:1.5}
.fx-flow{display:flex;flex-direction:column;margin:0}
.fx-s{position:relative;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 10px;background:#ffffff;border:3px solid #1c2b4f;border-radius:14px}
.fx-s.goal{background:#ffd23f}
.fx-n{position:absolute;top:-9px;left:-7px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#1c2b4f;color:#ffd23f;font-size:16px;font-weight:900;line-height:1}
.fx-s svg{flex:none;display:block;width:44px;height:41px}
.tp-body .fx-s p{min-width:0;margin:0;font-size:clamp(15px,4.3vw,17px);font-weight:800;color:#1c2b4f;line-height:1.45}
.fx-s p b{color:#e0442a}
.fx-ar{align-self:center;color:#e0442a;font-size:15px;line-height:1.5}
.tp-body .fx-any{margin:16px 0 6px;font-size:clamp(15px,4.3vw,17px);font-weight:800;color:#1c2b4f;text-align:center;line-height:1.5}
.fx-any b{background:linear-gradient(transparent 60%,#ffd23f 60%)}
.fx-tiles{display:grid;grid-template-columns:1fr;gap:6px}
.fx-t{display:flex;align-items:center;gap:10px;padding:6px 12px;background:#ffffff;border:2px solid #1c2b4f;border-radius:12px;text-align:center}
.fx-e{flex:none;font-size:28px;line-height:1.2}
.fx-tt{min-width:0;font-size:clamp(15px,4.3vw,17px);font-weight:800;color:#1c2b4f;line-height:1.45;text-align:left}
.tp-body .fx-hint{margin:6px 0 0;font-size:14px;font-weight:700;color:#44527a;line-height:1.5;text-align:center}
.fx-warn{margin:12px 0 0;padding:10px 10px 12px;background:#fff0ed;border:3px solid #e0442a;border-radius:14px;text-align:center}
.tp-body .fx-w-h{margin:0;font-size:15px;font-weight:900;color:#e0442a;line-height:1.5}
.tp-body .fx-w-t{margin:2px 0 0;font-size:clamp(14.5px,4.1vw,16px);font-weight:800;color:#1c2b4f;line-height:1.5}
.tp-body .fx-w-b{margin:4px 0 0;font-size:clamp(15px,4.3vw,17px);font-weight:800;color:#1c2b4f;line-height:1.6}
.fx-w-big{display:inline-block;background:#e0442a;color:#ffffff;border-radius:10px;padding:1px 12px;font-size:clamp(18px,5.2vw,21px);font-weight:900;white-space:nowrap}
.tp-body .fx-w-n{margin:10px 0 6px;padding-top:8px;border-top:2px dashed #e0442a;font-size:14px;font-weight:800;color:#1c2b4f;line-height:1.5}
.fx-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.fx-chip{background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;padding:2px 10px;font-size:14px;font-weight:800;color:#1c2b4f;line-height:1.5;white-space:nowrap}
@media (min-width:1000px){
  .rvx{grid-template-columns:1fr 1fr}
  .rvx-c{grid-template-columns:96px minmax(0,1fr)}
  .rvx-c svg{width:96px}
  .tp-body .rvx-once{flex-direction:row;justify-content:center;gap:12px}
  .fx-flow{flex-direction:row;align-items:stretch;gap:6px}
  .fx-s{flex:1 1 0;min-width:0}
  .fx-ar{transform:rotate(-90deg)}
  .fx-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fx-t{justify-content:center}
}

/* ===== 2026-11-27 その2（主催者の指示） ===== */
/* 「いちばん高い県が優勝」：大きく・後半は赤・1行ずつズームイン */
.mission-def{margin-top:20px;font-size:clamp(18px,5.3vw,26px);line-height:1.5}
.mission-def .md-l{display:block;white-space:nowrap}
.mission-def .md-r{color:#e0442a}
.mission-def .md-big{font-size:1.14em}
.mission-def.zm-ready .md-l{opacity:0;transform:scale(.2)}
.mission-def.zm-go .md-l{animation:mdZoom .6s cubic-bezier(.2,1.5,.4,1) both}
.mission-def.zm-go .md-l:nth-child(2){animation-delay:.55s}
.mission-def.zm-go .md-l:nth-child(3){animation-delay:1.1s}
.mission-def.zm-go .md-l:nth-child(4){animation-delay:1.65s}
@keyframes mdZoom{0%{opacity:0;transform:scale(.2)}70%{opacity:1;transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
/* マイページの称号のスタンプは1行 */
.rail #me-title-name{white-space:nowrap;max-width:none}
/* つぎの一手：カードは中央ぞろえ。ゆるキャラのカードは、その県のゆるキャラの絵 */
.nmc{grid-template-columns:minmax(0,1fr);grid-template-areas:"ico" "n" "t";justify-items:center;text-align:center;gap:2px}
.nmc.top{grid-template-columns:auto auto;grid-template-areas:"ico n" "t t";justify-items:center;gap:4px 12px}
.nmc-n{justify-content:center}
.nmc-t{align-items:center;max-width:100%}
.nmc-t b{display:block;line-height:1.4}
.nmc-t .hx-nb{max-width:100%}
.nmc-ico.ch{display:block;width:48px;height:48px;font-size:0}
.nmc.top .nmc-ico.ch{width:72px;height:72px}
.nmc-ico.ch svg{display:block;width:100%;height:100%}
/* リーグの1位：表彰台 */
.lg-tops.podium{padding:12px 10px;border:3px solid #1c2b4f;border-radius:16px;color:#ffffff;overflow:hidden;background:radial-gradient(140px 110px at 12% 0,rgba(255,210,63,.38),transparent 70%),radial-gradient(140px 110px at 88% 0,rgba(255,210,63,.38),transparent 70%),radial-gradient(3px 3px at 22% 30%,#ffd23f 50%,transparent 51%),radial-gradient(3px 3px at 71% 22%,#ffffff 50%,transparent 51%),radial-gradient(3px 3px at 48% 12%,#ff8f7a 50%,transparent 51%),radial-gradient(3px 3px at 90% 42%,#ffd23f 50%,transparent 51%),radial-gradient(3px 3px at 7% 48%,#ffffff 50%,transparent 51%),linear-gradient(180deg,#16233f 0%,#2b3f73 100%)}
.lg-tops.podium .pod-h{display:block;margin:0 0 10px;text-align:center}
.pod-h1{display:block;font-size:clamp(18px,5vw,22px);font-weight:900;color:#ffd23f;letter-spacing:.04em}
.lg-tops.podium .aw-sub{display:block;margin-top:2px;font-size:13px;font-weight:700;color:#dfe6f7;line-height:1.5}
.lg-tops.podium .pod-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end}
.pod{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}
.pod-lg{margin-bottom:4px;padding:0 10px;font-size:14px;font-weight:900;line-height:1.5;color:#1c2b4f;background:#ffd23f;border-radius:999px;white-space:nowrap}
.pod-who{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%}
.pod-ch{display:block;width:56px;height:56px}
.pod-ch svg{display:block;width:100%;height:100%}
.pod-q{display:grid;place-items:center;width:56px;height:56px;font-size:30px;font-weight:900;color:#8fa0c8}
.pod-p{font-size:clamp(15px,4.4vw,18px);font-weight:900;line-height:1.3;color:#ffffff;white-space:nowrap}
.pod-k{font-size:12px;font-weight:700;line-height:1.3;color:#dfe6f7;white-space:nowrap}
.pod-n{font-size:clamp(16px,4.6vw,19px);font-weight:900;line-height:1.2;color:#ffd23f;white-space:nowrap}
.pod-stand{display:flex;align-items:baseline;justify-content:center;gap:1px;box-sizing:border-box;width:100%;margin-top:4px;padding:5px 0 6px;color:#1c2b4f;font-weight:900;background:linear-gradient(180deg,#ffe27a,#f5b400);border:3px solid #1c2b4f;border-bottom:0;border-radius:8px 8px 0 0;box-shadow:inset 0 3px 0 rgba(255,255,255,.65)}
.pod-1{font-size:28px;line-height:1}
.pod-i{font-size:14px}
.pod-range{box-sizing:border-box;width:100%;padding:1px 0;font-size:11.5px;font-weight:800;line-height:1.5;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-top:0;border-radius:0 0 8px 8px;white-space:nowrap;overflow:hidden}
.pod-topic{margin:12px 0 0;padding:10px 8px 10px;background:#fff8d6;border:3px solid #ffd23f;border-radius:12px;color:#1c2b4f;text-align:center}
.pod-topic p{margin:0}
.pod-topic .pod-t0{display:inline-block;margin-bottom:4px;padding:0 12px;font-size:13px;font-weight:900;line-height:1.6;color:#ffffff;background:#e0442a;border-radius:999px}
.pod-topic .pod-t1{font-size:15px;font-weight:800;line-height:1.5}
.pod-topic .pod-t2{font-size:clamp(20px,5.8vw,25px);font-weight:900;line-height:1.35}
.pod-t2 b{color:#e0442a}
.pod-topic .pod-t3{margin-top:2px;font-size:14px;font-weight:700;line-height:1.5;color:#44527a}
@media (prefers-reduced-motion: reduce){ .mission-def.zm-go .md-l{animation:none;opacity:1;transform:none} }
@media (min-width:1000px){
  .lg-tops.podium .pod-list{max-width:560px;margin:0 auto;gap:14px}
  .pod-ch,.pod-q{width:72px;height:72px}
}
/* スマホ（箱が2列のとき）：称号とメールの箱は横いっぱいに。称号のスタンプを1行で大きく出すため */
@media (max-width:640px){
  .me-facts .mf-title,.me-facts > div:last-child{grid-column:1 / -1}
  .rail .me-facts .mf-title,.me-facts .mf-title{min-height:0}
  .rail .me-facts > div:last-child,.me-facts > div:last-child{min-height:0}
}

/* ===== 事前登録（2026-11-27 追加）。スマホの形が基本。パソコン向けは下の @media (min-width:1000px) の中だけ ===== */
.prereg{max-width:820px;box-sizing:border-box;margin:0 0 16px;padding:14px 14px 12px;text-align:center;color:#1c2b4f;background:linear-gradient(180deg,#fff8d6 0%,#ffe9a3 100%);border:3px solid #1c2b4f;border-radius:18px;box-shadow:6px 6px 0 #1c2b4f}
.prereg[hidden]{display:none}
.pr-badge{display:inline-block;margin:0 0 8px;padding:4px 14px;font-size:14px;font-weight:800;letter-spacing:.06em;color:#ffffff;background:#e0442a;border:2px solid #1c2b4f;border-radius:999px}
.pr-h{margin:0;font-size:15px;font-weight:800;line-height:1.3}
.pr-num{margin:2px 0 6px;line-height:1;font-variant-numeric:tabular-nums}
.pr-num b{font-size:clamp(40px,13vw,56px);font-weight:900;letter-spacing:.01em}
.pr-num .pr-unit{margin-left:4px;font-size:18px;font-weight:800}
.pr-bar{height:18px;margin:0 auto 6px;max-width:520px;box-sizing:border-box;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;overflow:hidden}
.pr-bar[hidden]{display:none}
.pr-bar i{display:block;height:100%;width:0;background:repeating-linear-gradient(45deg,#e0442a 0 8px,#f0694f 8px 16px);transition:width .6s ease-out}
.pr-next{margin:0 0 10px;font-size:15px;font-weight:700;line-height:1.5}
.pr-next[hidden]{display:none}
.pr-next b{font-size:18px;font-weight:900}
.pr-next .pr-left{font-weight:700;color:#3a4a70}
.pr-gift{margin:0 0 6px;padding:8px 10px;font-size:14px;font-weight:700;line-height:1.6;background:#ffffff;border:2px dashed #1c2b4f;border-radius:12px}
.pr-gift b{color:#c0301a}
.pr-fine{margin:0;font-size:12px;line-height:1.6;color:#3a4a70}
.pre-note{margin:0 0 12px;padding:8px 10px;font-size:14px;font-weight:700;line-height:1.6;text-align:center;color:#1c2b4f;background:#fff3c2;border:2px solid #1c2b4f;border-radius:12px}
.pre-note[hidden]{display:none}
.early-badge{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:center;margin:0 0 12px;padding:10px 12px;color:#1c2b4f;background:linear-gradient(180deg,#fff8d6 0%,#ffe9a3 100%);border:3px solid #1c2b4f;border-radius:14px;box-shadow:4px 4px 0 #1c2b4f}
.early-badge[hidden]{display:none}
.early-badge .eb-ico{grid-row:1 / span 2;font-size:30px;line-height:1}
.early-badge .eb-t{margin:0;line-height:1.3}
.early-badge .eb-k{display:block;font-size:12px;font-weight:700;color:#3a4a70}
.early-badge .eb-name{display:block;font-size:18px;font-weight:900}
.early-badge .eb-s{margin:0;font-size:13px;line-height:1.6}
@media (prefers-reduced-motion:reduce){.pr-bar i{transition:none}}
@media (min-width:1000px){
  .prereg{padding:18px 24px 16px;max-width:none;width:100%;margin-left:0;margin-right:0}   /* 上のボタンや挨拶の箱と同じ幅にそろえる（左に寄らないように） */
  .pr-h{font-size:17px}
  .pr-gift{font-size:15px}
  .pr-fine{font-size:13px}
  .early-badge{max-width:560px}
}
/* 2026-11-27 パソコンだけ：ミッション報告の「ロボットでないことのチェック」を、下の報告ボタンと同じく中央に置く（スマホの形は変えない） */
@media (min-width:1000px){
  #ts-submit:not(:empty){display:flex;justify-content:center}
}

/* 2026-11-27 リーグ1位の表彰台の下：そのリーグの順位へ移動するボタン（スマホの形が基本。パソコン向けは @media の中だけ） */
.pod-go{box-sizing:border-box;width:100%;margin:8px 0 3px;min-height:38px;padding:4px 2px;font:inherit;font-size:12px;font-weight:800;line-height:1.3;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:0 3px 0 #0b1226;cursor:pointer;white-space:nowrap}
.pod-go::after{content:" ▼";font-size:9px}
.pod-go:active{transform:translateY(2px);box-shadow:0 1px 0 #0b1226}
.pod-go:focus-visible{outline:3px solid #ffffff;outline-offset:2px}
#lg-tabs{scroll-margin-top:14px}
@media (min-width:1000px){
  .pod-go{font-size:14px;min-height:42px}
  .pod-go::after{font-size:11px}
}
@media (max-width:359px){
  .pod-go{font-size:11.5px}
  .pod-go::after{content:""}   /* とても狭い画面では、文字が台からはみ出さないよう▼を出さない */
}

/* ===== 2026-11-27 「くわしいルール」ボタンを、改札の横の駅員さんの窓口の形に（スマホの形が基本。パソコン向けは @media の中だけ） ===== */
.rule-btn.ekiin{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"sign sign sign" "win text arrow" "desk desk desk";gap:0 10px;align-items:center;padding:0;overflow:hidden;background:#fff8e1}
.rule-btn.ekiin:hover{background:#fffdf2}
.rule-btn.ekiin::after{content:"";grid-area:desk;height:10px;background:repeating-linear-gradient(90deg,#c9a66b 0 22px,#b8935a 22px 24px);border-top:3px solid #1c2b4f}   /* 窓口のカウンター */
.ek-sign{grid-area:sign;display:flex;align-items:center;gap:8px;padding:5px 12px;color:#ffffff;background:#1c2b4f;border-bottom:4px solid #2e9e5b;min-width:0}
.ek-i{flex:none;width:22px;height:22px;border-radius:50%;background:#ffd23f;color:#1c2b4f;font-size:15px;font-weight:900;line-height:22px;text-align:center;font-style:normal}
.ek-sign-t{flex:none;font-size:15px;font-weight:800;letter-spacing:.14em}
.ek-sign-s{flex:1;min-width:0;font-size:11px;font-weight:700;color:#cfd8ef;text-align:right;white-space:nowrap;overflow:hidden}
.ek-win{grid-area:win;align-self:stretch;width:84px;min-height:88px;display:flex;align-items:flex-end;background:#cfeeff;border-right:3px solid #1c2b4f;overflow:hidden}
.ek-win svg{display:block;width:84px;height:84px}
.rule-btn.ekiin .rb-text{grid-area:text;padding:8px 0}
.rule-btn.ekiin .rb-text b{font-size:clamp(16px,4.6vw,22px)}
.rule-btn.ekiin .rb-text small{font-size:13px}
.rule-btn.ekiin .rb-arrow{grid-area:arrow;padding-right:12px;font-size:22px}
@media (max-width:359px){ .ek-sign-s{display:none} }
@media (min-width:1000px){
  .rule-btn.ekiin{gap:0 18px;justify-content:stretch}
  .ek-sign{padding:7px 18px}
  .ek-sign-t{font-size:17px}
  .ek-sign-s{font-size:13px}
  .ek-win{width:112px;min-height:112px}
  .ek-win svg{width:112px;height:112px}
  .rule-btn.ekiin .rb-text{padding:12px 0}
  .rule-btn.ekiin .rb-text small{font-size:15px}
  .rule-btn.ekiin .rb-arrow{padding-right:22px;font-size:28px}
}

/* ===== 2026-11-27 パソコン版「今日の急上昇県」の作り直し（主催者の指示：文字が枠からはみ出していた）=====
 * 5枚の「駅の案内板」ふうの縦型カード。上から 順位の札 → ゆるキャラ → 県名 → ゆるキャラ名 → きょう増えた数（数字を大きく）。
 * スマホの形は変えない（ここはパソコン幅だけ）。 */
@media (min-width:1000px){
  .weekly .wk-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;row-gap:16px;padding-top:16px}
  .weekly .wk-item{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:16px 8px 0;text-align:center;overflow:hidden;background:linear-gradient(180deg,#eaf6ff 0,#eaf6ff 118px,#fffdf2 118px);border:3px solid #1c2b4f;border-radius:16px;box-shadow:5px 5px 0 #1c2b4f;transition:transform .08s ease-out,box-shadow .08s ease-out}
  .weekly .wk-item.tap:hover{transform:translate(-1px,-2px);box-shadow:7px 8px 0 #1c2b4f}
  .weekly .wk-item.tap:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #1c2b4f}
  .weekly .wk-rk{position:absolute;left:8px;top:8px;min-width:46px;padding:1px 8px;font-size:17px;font-weight:900;line-height:1.5;color:#ffffff;background:#1c2b4f;border:3px solid #1c2b4f;border-radius:999px;white-space:nowrap}
  .weekly .wk-item.rk1 .wk-rk{background:#ffd23f;color:#1c2b4f}
  .weekly .wk-item.rk2 .wk-rk{background:#dfe6f2;color:#1c2b4f}
  .weekly .wk-item.rk3 .wk-rk{background:#f0b27a;color:#1c2b4f}
  .weekly .wk-pic{width:96px;height:96px;margin-top:6px}
  .weekly .wk-pic svg{width:96px;height:96px}
  .weekly .wk-txt{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;gap:0;width:100%;min-width:0;margin-top:8px}
  .weekly .wk-name{max-width:100%;font-size:22px;font-weight:900;line-height:1.3;white-space:nowrap;color:#1c2b4f}
  .weekly .wk-ch{max-width:100%;font-size:13px;font-weight:700;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .weekly .wk-gain{display:flex;flex-direction:column;align-items:center;align-self:stretch;margin:10px -8px 0;padding:8px 4px 10px;font-size:13px;line-height:1.3;color:#ffffff;background:#1c2b4f;border-top:4px solid #2e9e5b}
  .weekly .wk-today{font-size:12px;font-weight:800;letter-spacing:.18em;color:#cfd8ef}
  .weekly .wk-gain .pt-nw{display:flex;flex-direction:column;align-items:center;white-space:nowrap}
  .weekly .wk-num{font-size:38px;font-weight:900;line-height:1.05;color:#ffd23f;font-variant-numeric:tabular-nums}
  .weekly .wk-unit{font-size:13px;font-weight:800;color:#ffffff}
  .weekly .wk-mv{top:8px;right:8px;font-size:13px}
  .weekly .wk-hint{font-size:15px;margin-bottom:4px}
}
@media (min-width:1000px) and (prefers-reduced-motion:reduce){ .weekly .wk-item{transition:none} }

/* 2026-11-28 「ゆるキャラ図鑑をひらく」ボタンのゆるキャラを、ふわふわ動かす（中の絵だけを動かすので、並びや大きさは変わらない） */
.zkb-c svg{animation:zkbFloat 3.2s ease-in-out infinite;animation-delay:calc(var(--k,0) * -0.45s)}
@keyframes zkbFloat{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-5px) rotate(-2deg)}75%{transform:translateY(-2px) rotate(2deg)}}
@media (prefers-reduced-motion:reduce){.zkb-c svg{animation:none}}

/* 2026-11-28 日本地図の中の県カード：閉じるボタン。カード自体は押せない設定なので、ボタンだけ押せるようにする。
 * 見出しの行（県名と順位）を狭くしないよう、カードのいちばん下に置く */
.cx-foot{margin:0;padding:0 10px 10px;text-align:center}
.cx-close{pointer-events:auto;box-sizing:border-box;min-width:120px;min-height:40px;padding:4px 18px;font:inherit;font-size:14px;font-weight:800;line-height:1.3;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:999px;box-shadow:0 3px 0 #1c2b4f;cursor:pointer}
.cx-close:active{transform:translateY(2px);box-shadow:0 1px 0 #1c2b4f}
.cx-close:focus-visible{outline:3px solid #e0442a;outline-offset:2px}

/* 2026-11-28 事前登録の印の下：開始日をカレンダーに入れるボタン */
.early-badge .eb-cal{grid-column:1 / -1;margin-top:8px;padding-top:8px;border-top:2px dashed #1c2b4f}
.early-badge .eb-cal[hidden]{display:none}
.eb-cal-t{margin:0 0 6px;font-size:14px;font-weight:800;line-height:1.5;text-align:center}
.eb-cal-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.eb-cal-b{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 6px;font:inherit;font-size:13px;font-weight:800;line-height:1.3;text-align:center;text-decoration:none;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:12px;box-shadow:3px 3px 0 #1c2b4f;cursor:pointer}
.eb-cal-b:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #1c2b4f}
.eb-cal-b:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.pre-note .pre-note-s{font-size:12px;font-weight:700;color:#3a4a70}
@media (min-width:1000px){ .eb-cal-t{font-size:15px} .eb-cal-b{font-size:14px} }

/* 2026-11-29 総点検の修正：読み込めなかったときのボタン／開始前の注記／メールが届かないときの案内 */
#me-loading .ml-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}
.fs-pre{margin:6px 0 4px;padding:8px 10px;font-size:14px;font-weight:700;line-height:1.6;color:#1c2b4f;background:#fff3b8;border:2px dashed #1c2b4f;border-radius:10px;text-align:center}
.fs-pre[hidden]{display:none}
.pwreset-help{margin:6px 0 10px;line-height:1.7}

/* 2026-11-29 トップの事前登録の枠の「カレンダーに入れる」／フッターの主催・運営 */
.prereg .pr-cal{margin-top:10px;padding-top:10px;border-top:2px dashed #1c2b4f}
.foot-org{margin:10px 0 4px;font-size:13px;line-height:1.8}
@media (min-width:1000px){ .prereg .pr-cal{max-width:440px;margin-left:auto;margin-right:auto} }

/* 2026-11-29 リーグ1位が同点のときの注記／退会の欄 */
.pod-tie{display:block;margin-top:2px;font-size:11px;font-weight:800;line-height:1.35;color:#ffe066}
.acctdel .ad-warn{margin:8px 0 10px;padding:10px 12px;font-size:14px;line-height:1.7;color:#1c2b4f;background:#fff0ee;border:2px solid #e0442a;border-radius:10px}
.acctdel .ad-warn p{margin:0 0 4px}
.acctdel .ad-warn ul{margin:0;padding-left:1.2em}

/* 2026-11-29 事前登録のお礼を絵で見せる（印／飾りをつけたゆるキャラ） */
.pr-gifts{margin:0 0 8px;padding:10px 8px 8px;background:#ffffff;border:3px solid #1c2b4f;border-radius:14px;box-shadow:3px 3px 0 #1c2b4f}
.pr-gifts-h{margin:0 0 8px;font-size:15px;font-weight:900;line-height:1.5;text-align:center;color:#1c2b4f}
.pr-gifts-h b{font-size:1.35em;color:#e0442a}
.pr-gift-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pr-g{position:relative;margin:0;padding:16px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:2px solid #1c2b4f;border-radius:12px}
.pr-g.g1{background:linear-gradient(180deg,#fff8d6 0%,#ffe88a 100%)}
.pr-g.g2{background:linear-gradient(180deg,#e3f6ff 0%,#bfe8fb 100%)}
.pr-g-tag{position:absolute;left:-2px;top:-2px;padding:1px 10px 2px;font-size:12px;font-weight:900;line-height:1.4;color:#fff;background:#e0442a;border:2px solid #1c2b4f;border-radius:10px 0 10px 0}
.pr-g-pic{display:block;width:92px;height:92px}
.pr-g-pic svg{display:block;width:100%;height:100%;overflow:visible}
.pr-g-badge svg{animation:prBadge 2.8s ease-in-out infinite;transform-origin:50% 40%}
.pr-g-chara svg{animation:prChara 3.2s ease-in-out infinite}
.pr-g figcaption{display:flex;flex-direction:column;gap:2px;font-size:clamp(10.5px,3.2vw,13px);line-height:1.4;color:#1c2b4f}
.pr-g figcaption b{font-weight:900;color:#c0301a}
.pr-g-s{font-size:clamp(10.5px,3vw,12px);font-weight:700}
.pr-gift-lim{margin:8px 0 0;font-size:13px;font-weight:700;line-height:1.5;text-align:center;color:#1c2b4f}
.pr-gift-lim b{background:linear-gradient(transparent 60%,#ffe066 60%)}
@keyframes prBadge{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes prChara{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){ .pr-g-badge svg,.pr-g-chara svg{animation:none} }
@media (min-width:1000px){
  .pr-gifts{max-width:560px;margin-left:auto;margin-right:auto;padding:14px 14px 10px}
  .pr-gifts-h{font-size:17px}
  .pr-g-pic{width:116px;height:116px}
  .pr-g figcaption{font-size:15px}
  .pr-g-s{font-size:13px}
}
@media (max-width:359px){ .pr-gifts{padding-left:5px;padding-right:5px} .pr-gift-row{gap:6px} .pr-g{padding-left:2px;padding-right:2px} .pr-g figcaption{font-size:10px} .pr-g-pic{width:80px;height:80px} }

/* 2026-11-29 マイページ：夜行列車の紺色（いまマイページを開いている、と分かるように）＋ 閉じる・開く */
#me-sec.is-member{position:relative;background:#24365f;border:3px solid #1c2b4f;border-radius:16px;box-shadow:4px 4px 0 #1c2b4f;padding-top:28px}
#me-sec.is-member::before{content:"";position:absolute;left:0;right:0;top:0;height:12px;border-radius:12px 12px 0 0;background:linear-gradient(180deg,#ffd23f 0,#ffd23f 6px,#e0442a 6px,#e0442a 12px)}
#me-sec.is-member #me-title{color:#ffffff}
.me-fold-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 14px;font:inherit;font-size:14px;font-weight:900;line-height:1.2;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;box-shadow:2px 2px 0 #0f1a36;cursor:pointer;white-space:nowrap}
.me-fold-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #0f1a36}
.me-fold-btn:focus-visible,.me-float:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
.me-fold-mk::before{content:"▲";font-size:11px}
#me-sec.me-closed .me-fold-mk::before{content:"▼"}
#me-sec.me-closed #member > :not(.me-head){display:none !important}
#me-sec.me-closed #btn-logout{display:none}
#me-sec.me-closed .me-head{margin-bottom:0}
#me-sec.is-member.me-closed{padding-bottom:14px}
.me-float{position:fixed;top:max(8px, env(safe-area-inset-top, 0px));right:max(8px, env(safe-area-inset-right, 0px));z-index:16;display:inline-flex;align-items:center;min-height:36px;padding:4px 12px;font:inherit;font-size:13px;font-weight:900;line-height:1.2;color:#ffffff;background:#24365f;border:2px solid #ffd23f;border-radius:999px;box-shadow:0 2px 6px rgba(15,26,54,.45);cursor:pointer;white-space:nowrap}
.me-float[hidden]{display:none}
/* 紺色の上に直接のる文字は、明るい色にする */
#me-sec.is-member #member > .small.muted,
#me-sec.is-member #cert-soon,
#me-sec.is-member #rv-all-me-note,
#me-sec.is-member #me-next-title{color:#e6ecfb}
#me-sec.is-member #cert-soon{border-color:#9fb0cf}

/* 2026-11-29 ログイン直後などにマイページの先頭へ動かすとき、画面の上に少し余白を残す */
#me-sec{scroll-margin-top:10px}

/* ===== 2026-11-29 事前登録の枠を、動きで目立たせる（踏切のランプ・光る札・しめきり・限定の帯） ===== */
.prereg{animation:prFrame 1.6s ease-in-out infinite}
@keyframes prFrame{0%,100%{box-shadow:6px 6px 0 #1c2b4f,0 0 0 0 rgba(224,68,42,0)}50%{box-shadow:6px 6px 0 #1c2b4f,0 0 0 5px rgba(255,210,63,.95)}}
.pr-sign{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 10px}
.pr-sign .pr-badge{position:relative;overflow:hidden;margin:0;padding:7px 18px;font-size:clamp(17px,5.2vw,22px);font-weight:900;line-height:1.3;letter-spacing:.04em;white-space:nowrap;border-width:3px;box-shadow:3px 3px 0 #1c2b4f;animation:prPulse 1.2s ease-in-out infinite}
.pr-sign .pr-badge::after{content:"";position:absolute;top:0;left:-60%;width:38%;height:100%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0));animation:prShine 2.4s ease-in-out infinite;pointer-events:none}
.pr-now{color:#ffe066;animation:prBlink 1s steps(1,end) infinite}
.pr-lamp{flex:0 0 auto;width:18px;height:18px;border-radius:50%;background:#e0442a;border:3px solid #1c2b4f;animation:prLamp 1s steps(1,end) infinite}
.pr-lamp.l2{animation-delay:.5s}
@keyframes prPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes prShine{0%{left:-60%}55%,100%{left:130%}}
@keyframes prBlink{0%,59%{color:#ffe066}60%,100%{color:#ffffff}}
@keyframes prLamp{0%,49%{background:#ff3b1f;box-shadow:0 0 0 3px rgba(255,59,31,.35),0 0 12px 4px rgba(255,90,40,.9)}50%,100%{background:#6b1d12;box-shadow:none}}
/* しめきり */
.pr-dead{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;margin:0 0 10px;padding:8px 10px;color:#ffffff;background:#e0442a;border:3px solid #1c2b4f;border-radius:12px;box-shadow:3px 3px 0 #1c2b4f;line-height:1.3}
.pr-dead-k{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;font-size:13px;font-weight:900;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;white-space:nowrap}
.pr-clock{display:inline-block;transform-origin:50% 60%;animation:prRing 1.4s ease-in-out infinite}
.pr-dead-d{font-size:clamp(19px,6vw,26px);font-weight:900;letter-spacing:.02em}
.pr-dead-left{padding:2px 10px;font-size:14px;font-weight:900;color:#e0442a;background:#ffffff;border:2px solid #1c2b4f;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums;animation:prPulse 1s ease-in-out infinite}
.pr-dead-left:empty{display:none}
@keyframes prRing{0%,60%,100%{transform:rotate(0)}10%,30%,50%{transform:rotate(-16deg)}20%,40%{transform:rotate(16deg)}}
/* お礼が2つもらえる！ */
.pr-gifts-h{font-size:clamp(16px,4.8vw,20px)}
.pr-gh2{position:relative;padding:0 4px}
.pr-gift-ico{display:inline-block;margin-right:2px;animation:prHop 1.1s ease-in-out infinite}
.pr-gifts-h b{display:inline-block;font-size:1.6em;line-height:1;animation:prPop 1.1s ease-in-out infinite}
.pr-gh2::before,.pr-gh2::after{content:"✨";position:absolute;top:-10px;font-size:14px;animation:prTwinkle 1.3s ease-in-out infinite}
.pr-gh2::before{left:-12px}
.pr-gh2::after{right:-12px;animation-delay:.65s}
@keyframes prHop{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-6px) rotate(-10deg)}60%{transform:translateY(0) rotate(8deg)}}
@keyframes prPop{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
@keyframes prTwinkle{0%,100%{opacity:.15;transform:scale(.6)}50%{opacity:1;transform:scale(1.2)}}
/* もらえるのは、12月1日までに登録した人だけ */
.pr-gift-lim{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin:10px 0 0;padding:8px 10px;font-size:clamp(14px,4.2vw,17px);font-weight:900;line-height:1.4;color:#1c2b4f;background:#ffe066;border:3px solid #1c2b4f;border-radius:12px;animation:prLim 1.2s ease-in-out infinite}
.pr-gift-lim b{background:none;color:#c0301a}
.pr-lim-tag{display:inline-block;padding:2px 10px;font-size:13px;color:#ffffff;background:#e0442a;border:2px solid #1c2b4f;border-radius:6px;white-space:nowrap;transform:rotate(-4deg);animation:prStamp 1.2s ease-in-out infinite}
.pr-lim-t{display:inline}
@keyframes prLim{0%,100%{background:#ffe066;box-shadow:0 0 0 0 rgba(224,68,42,0)}50%{background:#fff3b8;box-shadow:0 0 0 4px rgba(224,68,42,.55)}}
@keyframes prStamp{0%,100%{transform:rotate(-4deg) scale(1)}50%{transform:rotate(-4deg) scale(1.14)}}
@media (max-width:359px){ .pr-sign{gap:6px} .pr-lamp{width:14px;height:14px} .pr-sign .pr-badge{padding:6px 12px;font-size:16px} .pr-gh2::before{left:-6px} .pr-gh2::after{right:-6px} }
@media (prefers-reduced-motion:reduce){ .prereg,.pr-sign .pr-badge,.pr-sign .pr-badge::after,.pr-now,.pr-lamp,.pr-clock,.pr-dead-left,.pr-gift-ico,.pr-gifts-h b,.pr-gh2::before,.pr-gh2::after,.pr-gift-lim,.pr-lim-tag{animation:none} .pr-sign .pr-badge::after{display:none} }

/* 2026-11-29 「12月2日以降」の札（12月2日より前だけ、12月2日からできることの見出しに付く） */
.pre-tag{display:inline-block;margin-left:8px;padding:1px 9px;font-size:12px;font-weight:900;line-height:1.5;letter-spacing:0;color:#1c2b4f;background:#ffd23f;border:2px solid #1c2b4f;border-radius:999px;white-space:nowrap;vertical-align:middle;-webkit-text-stroke:0;text-shadow:none}
.mg-ico{position:relative}
.mg-ico > .pre-tag{position:absolute;left:50%;bottom:-11px;transform:translateX(-50%);margin:0;padding:0 6px;font-size:10px;line-height:1.5;color:#ffffff;background:#e0442a}
.nation-h > .pre-tag{display:block;width:fit-content;margin:6px auto 0}

/* 2026-11-29 しめきりを「まもなく出発」の案内に（主催者の指示：仰々しくせず、さわやかに。上の赤い帯の指定を上書きする） */
.prereg .pr-dead{display:block;position:relative;overflow:hidden;margin:0 0 12px;padding:10px 10px 30px;color:#1c2b4f;background:linear-gradient(180deg,#dff3ff 0%,#f4fbff 62%,#ffffff 100%);border:2px solid #7cc4ea;border-radius:14px;box-shadow:none;line-height:1.5;text-align:center}
.prereg .pr-dead p{margin:0}
.pr-dep-k{display:inline-flex;align-items:center;gap:6px;padding:2px 12px;font-size:13px;font-weight:800;letter-spacing:.06em;color:#1c2b4f;background:#ffffff;border:2px solid #7cc4ea;border-radius:999px}
.pr-sig{width:10px;height:10px;border-radius:50%;background:#3fb44a;box-shadow:0 0 0 3px rgba(63,180,74,.22);animation:prSig 2.4s ease-in-out infinite}
.prereg .pr-dead-d{margin-top:6px;font-size:clamp(15px,4.4vw,18px);font-weight:700;letter-spacing:0}
.prereg .pr-dead-d b{margin:0 2px;font-size:1.22em;font-weight:900;background:linear-gradient(transparent 62%,#fff0a8 62%)}
.pr-dep-left{margin-top:4px;font-size:13px;font-weight:700;color:#3a4a70}
.prereg .pr-dead-left{display:inline-block;margin-left:6px;padding:1px 10px;font-size:14px;font-weight:900;color:#1c2b4f;background:#ffffff;border:2px solid #7cc4ea;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums;animation:none}
.prereg .pr-dead-left:empty{display:none}
.pr-rail{position:absolute;left:0;right:0;bottom:0;height:26px;border-bottom:3px solid #9fb0cf;background:repeating-linear-gradient(90deg,transparent 0 10px,rgba(159,176,207,.55) 10px 13px) bottom / 100% 6px no-repeat}
.pr-train{position:absolute;bottom:0;left:0;width:64px;height:23px;animation:prDepart 9s linear infinite}
@keyframes prSig{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes prDepart{0%{left:-70px}14%{left:14px}34%{left:14px}100%{left:100%}}
@media (prefers-reduced-motion:reduce){ .pr-sig,.pr-train{animation:none} .pr-train{left:14px} }

/* 2026-11-29 「マイページを閉じる」を目立つ色に（紺色の上でも分かるよう、黄色の地に紺の文字）＋ いちばん下のボタン */
.me-float{color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;box-shadow:3px 3px 0 #1c2b4f;font-size:14px;min-height:40px;padding:4px 14px}
.me-float:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #1c2b4f}
.me-close-row{margin:18px 0 4px;text-align:center}
.me-close-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:6px 26px;font:inherit;font-size:16px;font-weight:900;line-height:1.3;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:3px 3px 0 #0f1a36;cursor:pointer;white-space:nowrap}
.me-close-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #0f1a36}
.me-close-btn:focus-visible{outline:3px solid #e0442a;outline-offset:2px}
