/* ============================================================
   わくラボ 管理画面（紺 × オレンジ）
   枠：lib/ui.php ／ ダッシュボード：kanri.php ／ 子ども登録：touroku.php
   ============================================================ */

:root {
  --navy-900: #121a30;
  --navy-800: #18213a;
  --navy-700: #1f2a48;
  --navy-600: #28365a;
  --navy-500: #34446e;
  --line: rgba(160, 180, 220, .18);
  --orange: #ff8a1f;
  --orange-2: #ff9d3d;
  --orange-dark: #e06a00;
  --blue: #3d7bff;
  --blue-2: #1f9bff;
  --green: #2dbd6e;
  --pink: #ff4f7a;
  --teal: #2cc1a4;
  --ink: #1b2440;
  --muted: #6b7690;
  --paper: #ffffff;
  --radius: 16px;
  --head-h: 64px;
  --side-w: 184px;
  --right-w: 278px;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.app { font-family: var(--font); color: var(--ink); background: var(--navy-800); min-height: 100vh; -webkit-font-smoothing: antialiased; }
:where(body.app) a { color: inherit; }
button, input, select, textarea { font: inherit; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.app-head { position: fixed; inset: 0 0 auto; height: var(--head-h); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 20px;
  background: var(--navy-800); border-bottom: 1px solid rgba(0, 0, 0, .3); color: #fff; }
.app-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; min-width: calc(var(--side-w) - 20px); }
.app-logo svg { width: 42px; height: 42px; }
.app-logo span { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.app-user-name { white-space: nowrap; }
.app-logo b { font-size: 30px; font-weight: 800; color: var(--orange); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.app-logo small { font-size: 10px; font-weight: 800; letter-spacing: .28em; margin-top: 3px; text-align: right; }

.app-topnav { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--navy-700); border: 1px solid var(--line); }
.app-topnav-item { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: #e8ecf6;
  font-weight: 800; font-size: 14.5px; white-space: nowrap; border: 2px solid transparent; transition: background .15s; }
.app-topnav-item .ic { width: 17px; height: 17px; }
.app-topnav-item:hover { background: rgba(255, 255, 255, .08); }
.app-topnav-item.is-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 2px 8px rgba(255, 138, 31, .4); }
.app-topnav-item.is-toggle.is-active { border-color: var(--orange); background: rgba(255, 138, 31, .08); }
.app-topnav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }

.app-head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-search { display: flex; align-items: center; gap: 8px; height: 40px; width: 180px; padding: 0 14px; border-radius: 12px; background: var(--navy-700); border: 1px solid var(--line); color: #9aa6c4; }
.app-search input { background: none !important; border: 0 !important; box-shadow: none !important; color: #fff; width: 100%; height: auto; min-height: 0; padding: 0; margin: 0; outline: none; font-size: 14px; }
.app-bell { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-700); border: 1px solid var(--line); color: #fff; }
.app-user { position: relative; }
.app-user summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px; border-radius: 12px; background: var(--navy-700); border: 1px solid var(--line); cursor: pointer; font-weight: 800; font-size: 14px; }
.app-user summary::-webkit-details-marker { display: none; }
.app-user-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffd9a8, #ff9d3d); color: var(--navy-800); font-weight: 800; }
.app-user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; padding: 8px; border-radius: 14px; background: var(--navy-700); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.app-user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; }
.app-user-menu a:hover { background: rgba(255, 255, 255, .08); }
.app-burger { display: none; }

/* ------------------------------------------------------------
   左メニュー
   ------------------------------------------------------------ */
.app-side { position: fixed; left: 0; top: var(--head-h); bottom: 0; width: var(--side-w); z-index: 30; background: var(--navy-800); color: #fff; overflow: visible; }
.app-sidenav { display: flex; flex-direction: column; padding: 12px 0; }
.app-sidenav-item { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 20px; text-decoration: none; font-weight: 800; font-size: 16px; color: #eef1f8; transition: background .15s; }
.app-sidenav-item .ic { width: 23px; height: 23px; }
.app-sidenav-item:hover { background: rgba(255, 255, 255, .06); }
.app-sidenav-item.is-active { background: linear-gradient(90deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 4px 14px rgba(255, 138, 31, .35); }
.app-sidenav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 18px; }

/* ------------------------------------------------------------
   本文
   ------------------------------------------------------------ */
.app-main { margin-left: var(--side-w); padding-top: var(--head-h); min-height: 100vh; }
.app-flash { margin: 16px 24px 0; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.app-flash--ok { background: #e6f8ee; color: #146b3a; }
.app-flash--error { background: #fff0ea; color: #a53a12; }
.app-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #d5dbe8;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.app-btn .ic { width: 16px; height: 16px; }
.app-btn--orange { background: linear-gradient(180deg, var(--orange-2), var(--orange)); border-color: transparent; color: #fff !important; box-shadow: 0 3px 0 var(--orange-dark); }
.app-btn--navy { background: var(--navy-700); border-color: transparent; color: #fff !important; }

/* 旧デザインの中身を載せるページ（活動・設定・CSV・ログイン管理・冒険の書） */
.app-main--page { background: #eef1f7; }
.app-page { padding: 24px 28px 60px; max-width: 1280px; }
.app-page-title { margin: 0 0 18px; font-size: 26px; font-weight: 800; color: var(--ink); }
.app-page-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.app--rpg .rpg-bg, .app--rpg .rpg-outro { display: none !important; }
.app--rpg .app-page .rpg-panel { margin-bottom: 22px; }
.app--rpg { background: #eef1f7; }

/* ------------------------------------------------------------
   ダッシュボード
   ------------------------------------------------------------ */
.app--dash { overflow: hidden; }
.app-main--dash { position: relative; height: 100vh; margin-right: var(--right-w); }

/* マップ：画像の比率(1672:941)を保ったまま、枠いっぱいに敷く */
.dash-map { position: absolute; inset: var(--head-h) 0 0 0; overflow: hidden; container-type: size; background: #9fd28a; }
.dash-map-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.68cqh); aspect-ratio: 1672 / 941; transform: translate(-50%, -50%);
  background: center / cover no-repeat; }
.dash-map-stage.is-empty { background: repeating-linear-gradient(45deg, #cfe8c4 0 20px, #c2e0b5 20px 40px); display: grid; place-items: center; }
.dash-map-placeholder { font-weight: 800; font-size: 40px; color: rgba(27, 36, 64, .5); text-align: center; }
.dash-map-placeholder small { font-size: 14px; }

.map-bubble { position: absolute; margin: 0; padding: 10px 16px; border-radius: 22px; background: #fff; color: #2156c9; font-weight: 800; font-size: clamp(12px, 1.2cqw, 18px);
  line-height: 1.35; text-align: center; transform: translate(-50%, -50%) rotate(var(--rot, -6deg)); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); white-space: nowrap; pointer-events: none; }
.map-bubble::after { content: ""; position: absolute; left: 32%; bottom: -12px; border: 8px solid transparent; border-top: 14px solid #fff; border-bottom: 0; transform: rotate(14deg); }
.map-char { position: absolute; transform: translate(-50%, -85%); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .3)); pointer-events: none; animation: map-bob 3s ease-in-out infinite; }
@keyframes map-bob { 50% { transform: translate(-50%, -88%); } }

.map-spot { position: absolute; transform: translate(-50%, -50%); z-index: 3; }
.map-spot.is-open { z-index: 6; }
.map-spot-btn { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; cursor: pointer;
  background: rgba(24, 33, 58, .92); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: transform .12s; }
.map-spot-btn:hover { transform: translateY(-2px); }
.map-spot-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.map-spot-ic .ic { width: 24px; height: 24px; }
.map-spot-ic--blue { background: linear-gradient(180deg, #4f8dff, #2f66e0); }
.map-spot-ic--orange { background: linear-gradient(180deg, #ff9d3d, #ff7a14); }
.map-spot-name { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 0 4px; }
.map-spot-name b { font-size: clamp(15px, 1.35cqw, 21px); letter-spacing: .04em; }
.map-spot-name small { font-size: 12px; font-weight: 700; opacity: .9; }
.map-spot-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); }
.map-spot-go .ic { width: 16px; height: 16px; stroke-width: 3; }
.map-pop { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: 280px; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: pop-in .18s ease-out; }
.map-pop::before { content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.map-pop-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.map-pop-title small { font-size: 12px; color: var(--muted); }
.map-pop-desc { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: #3c4660; }
.map-pop-stat { margin: 0 0 10px; font-weight: 700; }
.map-pop-stat b { font-size: 24px; color: var(--orange-dark); }
.map-pop-links { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-greet { position: absolute; left: 28px; top: 16px; display: flex; gap: 16px; align-items: center; padding: 16px 26px 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); z-index: 4; }
.dash-greet-sun { width: 54px; height: 54px; color: #ff9d1a; stroke-width: 2.4; fill: #ffc43d; }
.dash-greet-head { margin: 0 0 4px !important; font-size: 21px; font-weight: 800; color: var(--ink) !important; }
.dash-greet p { margin: 0; font-size: 14px; line-height: 1.6; color: #4c5670; font-weight: 700; }

/* 左下：今進んでいること（左メニューの上にかぶせる） */
.dash-progress { position: absolute; left: 12px; bottom: 52px; width: 328px; z-index: 35; padding: 14px 16px 10px; border-radius: 16px; color: #fff;
  background: rgba(24, 33, 58, .96); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); }
.dash-progress ul { list-style: none; margin: 0; padding: 0; }
.dash-progress li a { display: grid; grid-template-columns: 22px 1fr 66px 38px; align-items: center; gap: 10px; padding: 9px 2px; text-decoration: none; font-size: 13px; font-weight: 700; }
.dash-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #c9d2e6; }
.dash-check .ic { width: 14px; height: 14px; stroke-width: 3.4; opacity: 0; }
.dash-check.is-on { background: var(--teal); border-color: var(--teal); }
.dash-check.is-on .ic { opacity: 1; }
.dash-progress-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.dash-bar i { display: block; height: 100%; width: var(--v); background: var(--c); border-radius: 99px; }
.dash-pct { text-align: right; font-size: 12px; }

/* 右のパネル */
.dash-right { position: fixed; right: 0; top: var(--head-h); bottom: 0; width: var(--right-w); padding: 8px 8px 12px; overflow-y: auto; background: var(--navy-800);
  display: flex; flex-direction: column; gap: 8px; color: #fff; }
.dash-card, .dash-now { background: var(--navy-700); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; }
.dash-card-head h2 .ic { width: 20px; height: 20px; }
.dash-card-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: #c7cfe2; text-decoration: none; }
.dash-card-head a .ic { width: 13px; height: 13px; }
.dash-empty { margin: 4px 2px 8px; font-size: 12.5px; color: #aab4cc; line-height: 1.6; }

.dash-now { display: flex; align-items: center; gap: 10px; padding: 12px 12px; }
.dash-now-text { flex: 1; min-width: 0; }
.dash-now-sun { width: 50px; height: 50px; color: #ff9d1a; fill: #ffc43d; stroke-width: 2.2; }
.dash-now-sun.is-cloudy { color: #b9c6dc; fill: #dfe7f3; }
.dash-now-date { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dash-now-date b { font-size: 25px; letter-spacing: .02em; }
.dash-now-place { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.dash-now-place .ic { width: 15px; height: 15px; }
.dash-now-temp { margin-left: 6px; color: #aab4cc; font-weight: 700; }

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-stat { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .12s; }
.dash-stat:hover { transform: translateY(-2px); }
.dash-stat-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: #fff; }
.dash-stat-ic .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.dash-stat-ic--green { background: linear-gradient(180deg, #43d488, #1fae5e); }
.dash-stat-ic--orange { background: linear-gradient(180deg, #ffb057, #ff8a1f); }
.dash-stat-ic--pink { background: linear-gradient(180deg, #ff7a9a, #ff4f7a); }
.dash-stat-ic--blue { background: linear-gradient(180deg, #4f8dff, #2f66e0); }
.dash-stat-body { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.dash-stat-body small { font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.dash-stat-body b { font-size: 22px; font-weight: 800; margin-top: 2px; }
.dash-stat-body b i { font-style: normal; font-size: 12px; margin-left: 1px; }
.dash-stat-body em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--green); }
.dash-stat-body em.is-down { color: var(--pink); }

.dash-log { list-style: none; margin: 0; padding: 0; }
.dash-log li { display: grid; grid-template-columns: 32px 40px 1fr; align-items: start; gap: 8px; padding: 7px 0; }
.dash-log-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.dash-log-ic .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.dash-log time { font-size: 12px; font-weight: 700; color: #c7cfe2; padding-top: 6px; }
.dash-log-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-log-body b { font-size: 12.5px; line-height: 1.35; }
.dash-log-body small { font-size: 11px; color: #aab4cc; }

.dash-members { list-style: none; margin: 0; padding: 0; }
.dash-members li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-top: 1px solid var(--line); }
.dash-members li:first-child { border-top: 0; }
.dash-member-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f1e3cc; color: var(--navy-800); font-weight: 800; overflow: hidden; flex: none; border: 2px solid #fff; }
.dash-member-av img { width: 130%; height: 130%; object-fit: cover; object-position: 50% 12%; }
.dash-member-body { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.dash-member-body b { font-size: 13px; }
.dash-member-body small { font-size: 11px; color: #aab4cc; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff8a1f; }
.dash-dot.is-on { background: #37d67a; }

/* ------------------------------------------------------------
   アバターのマス目
   ------------------------------------------------------------ */
.av-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 138px)); gap: 12px; }
.av-card { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; }
.av-card input { position: absolute; opacity: 0; pointer-events: none; }
.av-card-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; aspect-ratio: 1 / 1.08; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #e8f1ff, #d6e5fb); border: 2px solid #d6def0; transition: transform .12s, border-color .12s; }
.av-card:hover .av-card-box { transform: translateY(-2px); }
.av-card-img { position: absolute; inset: 6% 6% 22%; width: 88%; height: 72%; object-fit: contain; }
.av-card-name { position: relative; z-index: 1; width: 100%; padding: 5px 4px 6px; background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.av-card-name small { display: block; font-size: 10.5px; color: var(--muted); }
.av-card-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; opacity: 0; transform: scale(.6); transition: .15s; }
.av-card-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.av-card input:checked + .av-card-box { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 31, .3); }
.av-card input:checked + .av-card-box .av-card-check { opacity: 1; transform: none; }
.av-card input:focus-visible + .av-card-box { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.av-card.is-locked .av-card-box { background: linear-gradient(180deg, #eef0f4, #dfe3ea); border-color: #d8dde6; }
.av-card-shadow { position: absolute; inset: 8% 10% 26%; width: 80%; height: 66%; object-fit: contain; filter: brightness(0) opacity(.07); }
.av-lock { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); color: #8b93a6; }
.av-lock svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.av-card.is-locked .av-card-name { background: transparent; color: #6b7386; }

/* ------------------------------------------------------------
   子ども登録・カード発行（touroku.php）
   ------------------------------------------------------------ */
.app-main--reg { background: #eef3fa; min-height: 100vh; }
.reg { padding: 16px 22px 20px; }
.reg-hero { position: relative; min-height: 250px; border-radius: 20px; overflow: hidden; padding: 22px 30px 44px; color: var(--ink);
  background: var(--reg-bg, linear-gradient(180deg, #8fd0f7, #cdeec0)) center 40% / cover no-repeat; box-shadow: 0 10px 28px rgba(20, 33, 61, .18); }
.reg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); }
.reg-sign { position: relative; display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 18px 30px 20px 22px; transform: rotate(-3deg);
  font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; line-height: 1.2; color: #4a2508; letter-spacing: .03em;
  background: repeating-linear-gradient(178deg, rgba(110, 60, 20, .1) 0 2px, transparent 2px 8px), linear-gradient(180deg, #edc68e, #d09a5a);
  border-radius: 10px; box-shadow: inset 0 0 0 4px #9a6130, 0 6px 0 #6b3d17, 0 14px 20px rgba(0, 0, 0, .25); text-shadow: 0 1px 0 rgba(255, 226, 170, .8); }
.reg-sign .paw { font-size: 1.2em; color: #6b3d17; }
.reg-lead { position: relative; margin: 14px 0 0 12px; font-weight: 800; font-size: 14.5px; line-height: 1.8; color: #2a2f45; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); transform: rotate(-2deg); }
.reg-navi { position: absolute; right: 3%; bottom: -8px; width: min(240px, 20%); }
.reg-navi img { width: 100%; display: block; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .3)); }
.reg-bubble { position: absolute; right: calc(3% + min(240px, 20%) - 10px); top: 26px; margin: 0; padding: 18px 26px; border-radius: 40px; background: #fff; font-weight: 800;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; color: var(--ink); text-align: center; transform: rotate(-6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.reg-bubble::after { content: ""; position: absolute; right: -14px; top: 55%; border: 12px solid transparent; border-left: 22px solid #fff; border-right: 0; }

.reg-panel { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 10px 28px rgba(20, 33, 61, .12); }
.reg-panel h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 800; }

/* 手順（1 写真 → 2 アバター → 3 発行） */
.reg-steps { position: relative; z-index: 2; display: flex; justify-content: center; gap: 0; width: fit-content; margin: -30px auto 0; padding: 8px 10px; list-style: none;
  background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(20, 33, 61, .16); counter-reset: none; }
.reg-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 18px; font-weight: 800; font-size: 14px; color: #8a93a8; white-space: nowrap; }
.reg-steps li + li::before { content: ""; width: 34px; height: 2px; margin-right: 14px; margin-left: -10px; background: #d7deec; }
.reg-steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8edf6; color: #6b7690; font-size: 14px; }
.reg-steps li.is-current { color: var(--ink); }
.reg-steps li.is-current span { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 31, .2); }
.reg-steps li.is-done { color: var(--green); }
.reg-steps li.is-done span { background: var(--green); color: #fff; font-size: 0; }
.reg-steps li.is-done span::after { content: "✓"; font-size: 15px; }
.reg-steps li.is-done + li::before { background: var(--green); }

.reg-body { display: grid; grid-template-columns: minmax(270px, 320px) 1fr; grid-template-areas: "photo avatar" "photo issue"; gap: 16px; margin-top: 16px; align-items: stretch; }
.reg-panel--photo { grid-area: photo; display: flex; flex-direction: column; gap: 12px; }
.reg-panel--avatar { grid-area: avatar; }
.reg-panel--issue { grid-area: issue; }
.reg-panel h2 small { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.reg-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 15px; flex: none; }

.reg-ai-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(180deg, #3c8cff, #1f63e6); box-shadow: 0 5px 0 #1447b0, 0 10px 20px rgba(31, 99, 230, .3); transition: transform .08s, box-shadow .08s; }
.reg-ai-btn .ic { width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .2); }
.reg-ai-btn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-ai-btn b { font-size: clamp(15px, 1.15vw, 18px); white-space: nowrap; }
.reg-ai-btn small { font-size: 13px; font-weight: 700; opacity: .92; }
.reg-ai-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1447b0; }
.reg-ai-btn:disabled, .reg-sub-btn:disabled { filter: grayscale(.8); opacity: .55; cursor: not-allowed; }
.reg-sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-sub-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; border: 2px solid #d7deec;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14.5px; cursor: pointer; }
.reg-sub-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.reg-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff7ec; border: 2px solid #ffd9b0;
  font-weight: 700; font-size: 13px; line-height: 1.6; color: #4c3a24; cursor: pointer; }
.reg-consent b { color: var(--orange-dark); }
.reg-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.reg-consent.is-warn { border-color: #f97316; background: #fff0e0; animation: shake .35s; }
.reg-consent:has(input:checked) { background: #ecfbf2; border-color: #9fe0bb; color: #1c5a37; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.reg-tips { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: #f3f6fc; display: grid; gap: 8px; font-size: 13px; font-weight: 800; color: #2a3350; }
.reg-tips li { display: flex; align-items: center; gap: 10px; }
.reg-tips span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-size: 15px; }
.reg-note { display: flex; gap: 6px; margin: auto 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.reg-note .ic { width: 15px; height: 15px; margin-top: 2px; }

/* アバター：横いっぱいに */
.av-grid--fill { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1500px) { .av-grid--fill { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.av-grid--fill .av-card-box { aspect-ratio: 1 / 1; }
.av-card.is-empty .av-card-box { background: repeating-linear-gradient(135deg, #fff7ec 0 10px, #fff0de 10px 20px); border: 2px dashed var(--orange); }
.av-empty { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(255, 138, 31, .4); animation: twinkle 2s ease-in-out infinite; }
.av-empty .ic { width: 22px; height: 22px; }
.av-card.is-empty .av-card-name { background: transparent; color: var(--orange-dark); }
.av-card.is-empty .av-card-name small { display: none; }

.reg-hint { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #f3f6fc; font-size: 13px; font-weight: 800; color: #2a3350; }
.reg-hint img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }

/* 3：なまえと発行 */
.reg-issue-row { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: end; }
.reg-fields { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(160px, 1fr); gap: 14px; margin: 0; padding: 0; border: 0; }
.reg-fields label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.reg-fields label small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.reg-fields input[type=text], .reg-fields select { height: 50px; padding: 0 14px; border-radius: 12px; border: 2px solid #d7deec; font-size: 17px; background: #fff; width: 100%; }
.reg-fields input:focus, .reg-fields select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(255, 138, 31, .15); }
.mini-card { width: 118px; padding: 8px 8px 6px; border-radius: 12px; text-align: center; color: #4a2a05; transform: rotate(-4deg);
  background: linear-gradient(145deg, #fff3c4, #ffd263 40%, #f5b21e 70%, #ffe28a); box-shadow: 0 0 0 3px #d59a16, 0 8px 16px rgba(0, 0, 0, .2); }
.mini-card-title { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; background: #6b3d17; color: #ffe9b8; border-radius: 4px; padding: 1px 0; }
.mini-card-av { display: block; margin: 6px auto 4px; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff, #eaf6ff); border: 3px solid #fff4d6; }
.mini-card-av img { width: 100%; height: 100%; object-fit: contain; }
.mini-card-name { margin: 0; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card-lv { margin: 0; font-size: 14px; font-weight: 800; font-style: italic; text-align: right; }
.cta-issue.is-waiting { filter: saturate(.55); }

/* いちばん大事なボタン：カードを発行する */
.cta-issue { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 30px 0 22px; border: 0; border-radius: 18px; cursor: pointer;
  font-weight: 800; font-size: 21px; letter-spacing: .04em; color: #fff; background: linear-gradient(180deg, #ffb057, #ff8a1f 50%, #f07400);
  box-shadow: 0 7px 0 #b85400, 0 16px 26px rgba(200, 90, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .08s, box-shadow .08s, filter .15s; }
.cta-issue .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.cta-issue .cta-card { width: 40px; height: 40px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .22); }
.cta-issue:hover { filter: brightness(1.05); }
.cta-issue:active { transform: translateY(6px); box-shadow: 0 1px 0 #b85400, 0 6px 12px rgba(200, 90, 0, .3); }
.cta-issue:disabled { filter: grayscale(.7); opacity: .6; cursor: not-allowed; transform: none; }
.cta-issue::before { content: "✦"; position: absolute; left: -14px; top: -16px; font-size: 28px; color: #ffd23f; text-shadow: 0 0 10px rgba(255, 210, 63, .9); animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .4; transform: scale(.8); } }

/* ------------------------------------------------------------
   モーダル（撮影・生成中・完成・発行・ひみつ）
   ------------------------------------------------------------ */
.mdl { border: 0; padding: 0; border-radius: 22px; color: #fff; background: var(--navy-800); width: min(760px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.mdl::backdrop { background: rgba(8, 14, 30, .62); backdrop-filter: blur(2px); }
.mdl[open] { animation: mdl-in .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes mdl-in { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.mdl-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mdl-head .app-logo { min-width: 0; }
.mdl-head .app-logo b { font-size: 22px; }
.mdl-head .app-logo svg { width: 32px; height: 32px; }
.mdl-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.mdl-x .ic { width: 26px; height: 26px; }
.mdl-body { padding: 22px 26px 26px; }
.mdl-actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.mdl-btn { min-width: 200px; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 800; font-size: 17px; color: #fff; }
.mdl-btn--orange { background: linear-gradient(180deg, #ffb057, #ff8a1f); box-shadow: 0 5px 0 #b85400; }
.mdl-btn--navy { background: var(--navy-600); border: 1px solid var(--line); box-shadow: 0 5px 0 #0f1629; }
.mdl-btn:active { transform: translateY(4px); box-shadow: none; }

/* 撮影 */
.shoot { display: grid; grid-template-columns: 130px 1fr 130px; gap: 18px; align-items: center; }
.shoot-side { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.shoot-side button { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; border: 2px solid #5b6c96; background: var(--navy-700); color: #fff; cursor: pointer; }
.shoot-side button .ic { width: 38px; height: 38px; }
.shoot-side button:hover { border-color: var(--orange); }
.shoot-view { position: relative; aspect-ratio: 1 / 1; max-height: 360px; margin: 0 auto; width: 100%; border-radius: 12px; overflow: hidden; background: #0c1222; display: grid; place-items: center; }
.shoot-view video, .shoot-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shoot-view video { transform: scaleX(-1); }
.shoot-frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50% 50% 46% 46%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.shoot-empty { font-weight: 800; color: #aab4cc; text-align: center; font-size: 14px; }
.shoot-hint { margin: 14px 0 0; text-align: center; font-weight: 700; font-size: 14px; color: #dbe2f2; }

/* 生成中 */
.gen { position: relative; padding: 26px 24px 24px; text-align: center; background: linear-gradient(180deg, rgba(24, 33, 58, .5), rgba(24, 33, 58, .95)), var(--reg-bg-gen, none) center / cover; }
.gen-row { display: flex; align-items: center; justify-content: center; gap: 22px; }
.gen-photo, .gen-result { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .1); border: 4px solid rgba(255, 255, 255, .8); }
.gen-magic { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(140, 220, 255, .55), rgba(60, 140, 255, .2) 60%, transparent 70%); animation: gen-pulse 1.4s ease-in-out infinite; }
.gen-magic svg { width: 70%; height: 70%; fill: rgba(255, 255, 255, .55); }
@keyframes gen-pulse { 50% { transform: scale(1.08); filter: brightness(1.3); } }
.gen-arrow { font-size: 40px; color: var(--orange); font-weight: 800; }
.gen-bar { width: min(420px, 90%); height: 16px; margin: 22px auto 0; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; border: 2px solid rgba(255, 255, 255, .3); }
.gen-bar i { display: block; height: 100%; width: 8%; border-radius: 99px; background: linear-gradient(90deg, #ffd23f, #ff8a1f); transition: width .6s ease; }
.gen-text { margin: 14px 0 0; font-weight: 800; font-size: 18px; line-height: 1.6; }
.gen-text small { display: block; font-size: 14px; color: #c7cfe2; }
.gen-navi { position: absolute; right: 14px; bottom: 6px; width: 110px; animation: map-bob 2.4s ease-in-out infinite; }

/* 完成 */
.done-hero { position: relative; text-align: center; padding: 10px 0 0; }
.done-title { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.done-ring { position: relative; width: 250px; height: 250px; margin: 16px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #dff3ff 0 45%, #7cc7ff 62%, rgba(60, 140, 255, 0) 72%); }
.done-ring img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3)); }
.done-tag { display: inline-block; margin-top: -18px; position: relative; padding: 6px 18px; border-radius: 999px; background: var(--navy-900); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkles i { position: absolute; width: 10px; height: 14px; border-radius: 2px; animation: spark-fall 2.4s ease-in forwards; }
@keyframes spark-fall { from { transform: translateY(-40px) rotate(0); opacity: 1; } to { transform: translate(var(--dx), 520px) rotate(var(--rot)); opacity: .9; } }
.mock-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: #aab4cc; }

/* 冒険者の証 */
.issued { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.adv-card { position: relative; aspect-ratio: 5 / 7; border-radius: 18px; padding: 14px; color: #4a2a05;
  background: linear-gradient(145deg, #fff3c4, #ffd263 35%, #f5b21e 60%, #ffe28a); box-shadow: 0 0 0 4px #d59a16, 0 0 40px rgba(255, 210, 90, .8), 0 16px 30px rgba(0, 0, 0, .4);
  animation: card-in .9s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes card-in { from { transform: scale(.4) rotate(-18deg); opacity: 0; } 60% { transform: scale(1.06) rotate(3deg); opacity: 1; } }
.adv-card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%);
  background-size: 250% 100%; animation: card-shine 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes card-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.adv-card-title { margin: 0 auto; width: fit-content; padding: 4px 18px; border-radius: 8px; background: #6b3d17; color: #ffe9b8; font-weight: 800; font-size: 18px; letter-spacing: .1em; transform: rotate(-3deg); }
.adv-card-av { margin: 10px auto 0; width: 78%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff, #eaf6ff); border: 4px solid #fff4d6; }
.adv-card-av img { width: 100%; height: 100%; object-fit: contain; }
.adv-card-name { margin: 8px 0 0; text-align: center; font-weight: 800; font-size: 20px; }
.adv-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-weight: 800; }
.adv-card-foot b { font-size: 26px; font-style: italic; }
.adv-card-foot small { font-size: 11px; letter-spacing: .2em; }
.issued-text h3 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; font-weight: 800; }
.issued-text h3 em { font-style: normal; color: #ffd23f; }
.issued-navi { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.issued-navi img { width: 120px; }
.issued-navi p { margin: 0 0 40px; padding: 12px 16px; border-radius: 18px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.5; transform: rotate(-4deg); }

/* ひみつ（ロック中のアバターを押したとき） */
.secret { text-align: center; color: var(--ink); background: #fff; }
.secret .mdl-body { padding: 30px 26px 26px; }
.secret h3 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.secret p { margin: 0; font-weight: 700; line-height: 1.8; color: #3c4660; }
.secret p b { color: var(--orange-dark); font-size: 1.2em; }

/* ------------------------------------------------------------
   準備中・プロジェクト・活動記録
   ------------------------------------------------------------ */
.soon { display: grid; place-items: center; min-height: calc(100vh - var(--head-h)); padding: 30px; background: #eef3fa; }
.soon-card { max-width: 520px; text-align: center; background: #fff; padding: 34px 30px; border-radius: 22px; box-shadow: 0 12px 30px rgba(20, 33, 61, .14); }
.soon-card img { width: 160px; }
.soon-card h1 { margin: 10px 0 8px; font-size: 24px; }
.soon-card p { margin: 0 0 18px; line-height: 1.8; color: #4c5670; font-weight: 700; }
.plain { padding: 26px 30px 60px; background: #eef3fa; min-height: calc(100vh - var(--head-h)); }
.plain h1 { margin: 0 0 18px; font-size: 26px; }
.plain-card { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(20, 33, 61, .08); margin-bottom: 18px; }
.plain-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plain-table th, .plain-table td { padding: 10px 8px; border-bottom: 1px solid #e6eaf2; text-align: left; vertical-align: middle; }
.plain-table th { font-size: 12px; color: var(--muted); }
.plain-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.plain-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; }
.plain-form input, .plain-form select { height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #d5dbe8; font-size: 14px; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 1500px) {
  .app-search { width: 130px; }
  .app-topnav-item { padding: 0 11px; font-size: 13.5px; }
}
@media (max-width: 1420px) {
  .app-search { display: none; }
}
@media (max-width: 1280px) {
  :root { --right-w: 250px; }
  .app-topnav-item .ic { display: none; }
  .app-search { display: none; }
  .reg-body { grid-template-columns: 1fr; grid-template-areas: "photo" "avatar" "issue"; }
  .reg-issue-row { grid-template-columns: 1fr auto; }
  .reg-issue-row .cta-issue { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 1080px) {
  .app-logo { min-width: 0; }
  .app-topnav { display: none; }
  .app-user-name { display: none; }
}
@media (max-width: 720px) {
  .app-logo b { font-size: 22px; white-space: nowrap; }
  .app-logo svg { width: 32px; height: 32px; }
  .app-head { gap: 10px; padding: 0 10px; }
  .reg { padding: 10px; }
  .reg-hero { padding: 20px 18px 120px; min-height: 0; }
  .reg-navi { width: 130px; right: 6px; }
  .reg-bubble { position: relative; right: auto; top: auto; margin-top: 16px; display: inline-block; font-size: 15px; }
  .reg-bubble::after { display: none; }
  .reg-steps { width: auto; margin: -24px 0 0; justify-content: space-between; }
  .reg-steps li { padding: 4px 4px; font-size: 11px; flex-direction: column; gap: 4px; }
  .reg-steps li + li::before { display: none; }
  .av-grid, .av-grid--fill { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .reg-fields { grid-template-columns: 1fr; }
  .reg-issue-row { grid-template-columns: 1fr; }
  .mini-card { display: none; }
  .cta-issue { width: 100%; justify-content: center; }
  .shoot { grid-template-columns: 1fr 1fr; }
  .shoot-view { grid-column: 1 / -1; grid-row: 1; }
  .issued { grid-template-columns: 1fr; }
  .adv-card { width: 240px; margin: 0 auto; }
  .mdl-btn { min-width: 0; width: 100%; }
  .app-page { padding: 16px 12px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .app-head, .app-side, .dash-right, .no-print { display: none !important; }
  .app-main { margin: 0; padding: 0; }
}

/* 3Dアイコン・空のキャラ（全体マップ） */
.map-spot-ic .spot-ic-img { width: 118%; height: 118%; object-fit: contain; margin: -9%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.map-spot-ic:has(.spot-ic-img) { background: #fff; }
.dash-sky { height: 32%; z-index: 2; }

/* ============================================================
   レスポンシブ（全体マップ＋共通の枠）
   PC：3カラム ／ iPad(721〜1080)：アイコンのレール＋地図を横いっぱい＋下に2列
   スマホ(〜720)：地図は指で動かす・ピンチで拡大、下に固定メニュー、スポットは下から出るシート
   ============================================================ */
.app-bnav, .app-scrim, .dash-today, .dash-swipe, .dash-map-hint, .dash-zoom { display: none; }
.dash-map-view { position: absolute; inset: 0; overflow: hidden; }

/* キャラ：タップでセリフ */
.map-char { z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.map-char img { display: block; width: 100%; height: auto; pointer-events: none; }
.map-say { position: absolute; z-index: 8; margin: 0; width: max-content; max-width: 220px; padding: 10px 16px; border-radius: 18px; background: #fff; color: #2156c9;
  font-weight: 800; font-size: 15px; line-height: 1.45; text-align: center; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  animation: say-in .2s ease-out; pointer-events: none; }
.map-say::after { content: ""; position: absolute; left: 50%; bottom: -10px; border: 8px solid transparent; border-top: 12px solid #fff; border-bottom: 0; transform: translateX(-50%); }
@keyframes say-in { from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)) scale(.9); } }

/* ミッションがあるスポットの「！」 */
.map-spot-btn { position: relative; }
.map-bang { position: absolute; right: -9px; top: -11px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ff3b3b; color: #fff;
  font-weight: 900; font-size: 16px; line-height: 1; box-shadow: 0 0 0 3px #fff, 0 4px 8px rgba(0, 0, 0, .3); animation: bang 1.6s ease-in-out infinite; }
.map-bang::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #ff3b3b; animation: bang-ring 1.6s ease-out infinite; }
@keyframes bang { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18) rotate(-8deg); } 30% { transform: scale(1); } }
@keyframes bang-ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* スポットのミッション（PCのふきだし・iPad/スマホのシート共通） */
.map-pop-missions { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.map-pop-missions li { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff4e6; }
.map-pop-missions span { grid-row: span 2; font-size: 24px; text-align: center; }
.map-pop-missions b { font-size: 14px; line-height: 1.35; }
.map-pop-missions small { font-size: 12px; font-weight: 800; color: #b75a00; }

/* ---- iPad・スマホ共通 ---- */
@media (max-width: 1080px) {
  .app--dash { overflow: auto; }
  .app-main--dash { margin-right: 0; height: auto; min-height: 0; }
  .dash-map { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1672 / 941; }
  .dash-map-view { overflow: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
  .dash-map-view::-webkit-scrollbar { display: none; }
  .dash-map-stage { position: relative; left: 0; top: 0; transform: none; width: calc(100cqw * var(--z, 1)); transition: width .15s; }
  .dash-map-stage.is-pinching { transition: none; }
  .map-bubble { display: none; }
  .map-pop { display: none !important; }
  .dash-greet { left: 12px; top: 12px; padding: 8px 14px 8px 10px; gap: 10px; pointer-events: none; }
  .dash-greet p:not(.dash-greet-head) { display: none; }
  .dash-greet-sun { width: 34px; height: 34px; }
  .dash-greet-head { margin: 0 !important; font-size: 16px; }
  .dash-sky { pointer-events: none; }

  .dash-zoom { display: flex; }
  .dash-map-hint { display: block; position: absolute; left: 50%; bottom: 12px; z-index: 4; margin: 0; padding: 8px 16px; border-radius: 999px; transform: translateX(-50%);
    background: rgba(24, 33, 58, .88); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: hint-out .6s 7s forwards; }
  .dash-map-hint b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ff3b3b; }
  @keyframes hint-out { to { opacity: 0; visibility: hidden; } }

  /* 地図の下 */
  .dash-today, .dash-swipe { display: block; margin: 12px; padding: 14px; border-radius: 16px; background: var(--navy-700); border: 1px solid var(--line); color: #fff; }
  .dash-today ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-today li a { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
  .dash-today-ic { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px; background: #fff1de; font-size: 28px; }
  .dash-today-body { flex: 1; min-width: 0; line-height: 1.3; }
  .dash-today-body b { display: block; margin-bottom: 4px; font-size: 15px; }
  .dash-today-body em { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 11px; font-style: normal; vertical-align: 2px; white-space: nowrap; }
  .dash-today-body small { display: inline-block; margin-right: 10px; font-size: 12.5px; font-weight: 800; color: #b75a00; }
  .dash-today li a > .ic { color: #b0b8cc; }
  .dash-swipe ul { list-style: none; margin: 0 -14px; padding: 0 14px 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dash-swipe ul::-webkit-scrollbar { display: none; }
  .dash-swipe li { flex: 0 0 min(64%, 240px); scroll-snap-align: start; }
  .dash-swipe li a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; border-top: 5px solid var(--c); }
  .dash-swipe b { min-height: 2.8em; font-size: 14px; line-height: 1.4; }
  .dash-swipe strong { font-size: 30px; line-height: 1; color: var(--c); }
  .dash-swipe strong i { font-size: 15px; font-style: normal; }
  .dash-swipe .dash-bar { background: #eef1f6; }
  .dash-swipe .dash-bar i { background: var(--c); }
  .dash-right { position: static; width: auto; overflow: visible; padding: 0 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; background: none; }
  .dash-right > .dash-now { grid-column: 1 / -1; }

  /* 下から出るシート */
  .dash-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 14, 28, .5); animation: sheet-fade .2s; }
  .dash-sheet-panel { position: relative; width: min(560px, 100%); max-height: 82vh; overflow-y: auto; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
    background: #fff; color: var(--ink); animation: sheet-up .24s ease-out; }
  .dash-sheet-panel::before { content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; border-radius: 3px; background: #d5dbe8; transform: translateX(-50%); }
  .dash-sheet-x { position: absolute; right: 10px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f3f8; color: var(--ink); cursor: pointer; }
  .dash-sheet-body .map-pop-title { padding-right: 50px; font-size: 20px; }
  .dash-sheet-body .map-pop-title small { margin-left: 4px; }
  .dash-sheet-body .map-pop-desc { font-size: 15px; }
  .dash-sheet-body .map-pop-missions b { font-size: 15px; }
  .dash-sheet-body .map-pop-links .app-btn { flex: 1 1 auto; min-height: 50px; font-size: 15px; }
  @keyframes sheet-fade { from { opacity: 0; } }
  @keyframes sheet-up { from { transform: translateY(40%); } }
}

/* ---- iPad：左はアイコンのレール ---- */
@media (min-width: 721px) and (max-width: 1080px) {
  :root { --side-w: 84px; }
  .app-side { overflow-y: auto; scrollbar-width: none; }
  .app-sidenav { padding: 6px 0; }
  .app-sidenav-item { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 58px; margin: 2px 6px; padding: 8px 2px; border-radius: 12px;
    font-size: 10.5px; line-height: 1.2; text-align: center; }
  .app-sidenav-item .ic { width: 24px; height: 24px; }
  .app-sidenav hr { margin: 6px 12px; }
  .app-side .dash-progress { display: none; }
}

/* ---- スマホ ---- */
@media (max-width: 720px) {
  :root { --side-w: 0px; --bnav-h: 64px; }
  .app-burger { display: grid; order: 9; gap: 5px; padding: 10px; margin-right: -6px; background: none; border: 0; cursor: pointer; }
  .app-burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: #fff; }
  .app-side { width: 260px; bottom: 0; z-index: 60; overflow-y: auto; transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 30px rgba(0, 0, 0, .35);
    padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .app-nav-open .app-side { transform: none; }
  .app-nav-open .app-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
  .app-side .dash-progress { display: none; }
  .app-main { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 12px); }
  .app-bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--bnav-h) + env(safe-area-inset-bottom));
    padding: 0 2px env(safe-area-inset-bottom); background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -6px 18px rgba(0, 0, 0, .25); }
  .app-bnav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; padding: 6px 2px; border: 0; background: none;
    color: #c7cfe2; font-size: 10.5px; font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; }
  .app-bnav-item > span:last-child { max-width: 100%; overflow-wrap: anywhere; }
  .app-bnav-item .ic { width: 25px; height: 25px; }
  .app-bnav-item.is-active { color: var(--orange-2); }
  .app-bnav-item.is-active .ic { stroke-width: 2.6; }
  .app-bnav-burger { display: grid; align-content: center; gap: 4px; width: 22px; height: 25px; }
  .app-bnav-burger i { height: 3px; border-radius: 2px; background: currentColor; }

  /* 地図：高さを決めて、横は指で動かす */
  .dash-map { aspect-ratio: auto; height: min(62svh, 560px); }
  .dash-map-stage { width: calc(177.68cqh * var(--z, 1)); }
  .dash-greet { left: 10px; top: 10px; padding: 5px 12px 5px 5px; gap: 6px; }
  .dash-greet-head { font-size: 14px; }
  .map-spot-btn { gap: 6px; min-height: 48px; padding: 6px 12px 6px 6px; }
  .map-spot-ic { width: 34px; height: 34px; }
  .map-spot-name b { font-size: 14px; }
  .map-spot-name small, .map-spot-go { display: none; }
  .map-bang { right: -14px; top: -16px; width: 30px; height: 30px; font-size: 18px; }
  .dash-today, .dash-swipe { margin: 12px 10px; }
  .dash-today ul { grid-template-columns: 1fr; }
  .dash-right { grid-template-columns: 1fr; padding: 0 10px 16px; }
}
@media print { .app-bnav, .app-scrim { display: none !important; } }

/* ============================================================
   さわって楽しい（トップのマップ）… js/sound.js ＋ js/dashboard.js
   ============================================================ */
.dash-tools { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.dash-sound, .dash-zoom { flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.dash-sound { display: flex; }
.dash-sound button, .dash-zoom button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: rgba(24, 33, 58, .92); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.dash-sound button + button, .dash-zoom button + button { border-top: 1px solid rgba(255, 255, 255, .15); }
.dash-sound [data-sound="se"] .off, .dash-sound [data-sound="se"][aria-pressed="false"] .on { display: none; }
.dash-sound [data-sound="se"][aria-pressed="false"] .off { display: inline; }
.dash-sound [aria-pressed="true"] { background: linear-gradient(180deg, var(--orange-2), var(--orange)); }
.dash-sound [data-sound="bgm"][aria-pressed="false"] span { opacity: .75; filter: grayscale(1) brightness(1.6); }

.map-toy { position: absolute; z-index: 1; padding: 0; border: 0; border-radius: 30%; background: transparent no-repeat; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.map-toy--shop { transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.map-toy--shop.is-boing { z-index: 2; animation: toy-boing .95s cubic-bezier(.28, .84, .42, 1); }
@keyframes toy-boing { 12% { transform: scale(1.09, .86); } 30% { transform: scale(.94, 1.12); } 48% { transform: scale(1.04, .95); } 64% { transform: scale(.98, 1.03); } 80% { transform: scale(1.01, .99); } }
.map-toy:focus-visible { outline-offset: -4px; }

.map-char.is-hop { animation: char-hop .75s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes char-hop {
  0% { transform: translate(-50%, -85%); }
  12% { transform: translate(-50%, -80%) scale(1.12, .86); }
  45% { transform: translate(-50%, -140%) rotate(360deg) scale(.95, 1.08); }
  70% { transform: translate(-50%, -85%) rotate(360deg) scale(1.14, .86); }
  85% { transform: translate(-50%, -92%) rotate(360deg) scale(.97, 1.04); }
  100% { transform: translate(-50%, -85%) rotate(360deg); }
}

.dash-sun { display: grid; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 50%; }
.dash-sun.is-spin .ic { animation: sun-spin .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes sun-spin { 50% { transform: rotate(90deg) scale(1.3); } to { transform: rotate(180deg); } }

/* 虹（おひさまを3回タップ） */
.fx-rainbow { position: absolute; left: 4%; top: 6%; z-index: 3; width: 92%; height: 80%; pointer-events: none; animation: rb-out 1.2s 6s forwards; }
.fx-rainbow path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; opacity: .72; animation: rb-draw 1.6s ease-out forwards; }
@keyframes rb-draw { to { stroke-dashoffset: 0; } }
@keyframes rb-out { to { opacity: 0; } }

/* はじけるつぶ（ハート・星・水しぶき） */
.fx-layer { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.fx-p { position: absolute; font-size: 22px; line-height: 1; text-shadow: 0 2px 3px rgba(0, 0, 0, .2); }
.fx-p--drop { width: 10px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, #7fd3ff 45%, #2a8fd8); box-shadow: 0 1px 2px rgba(0, 60, 120, .3); }
.fx-ring { position: absolute; width: 60px; height: 24px; margin: -12px 0 0 -30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); }

/* ぽよんと沈むボタン */
.app--dash :is(.map-spot-btn, .app-btn, .dash-stat, .dash-today li a, .dash-swipe li a, .dash-sound button, .dash-zoom button, .dash-sheet-x), .app-sidenav-item, .app-bnav-item {
  transition: transform .5s cubic-bezier(.34, 1.9, .5, 1), background .15s, box-shadow .15s; }
.app--dash :is(.map-spot-btn, .app-btn, .dash-stat, .dash-today li a, .dash-swipe li a, .dash-sound button, .dash-zoom button, .dash-sheet-x):active, .app-sidenav-item:active, .app-bnav-item:active {
  transform: scale(.9) translateY(3px); transition-duration: .07s; }

/* 子ども登録：おうちで事前登録した子（touroku.php） */
.reg-pre { position: relative; z-index: 1; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 252, 244, .96); box-shadow: inset 0 0 0 2px #ffd9a8, 0 8px 20px rgba(0, 0, 0, .12); }
.reg-pre header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.reg-pre h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.reg-pre h2 em { margin-left: 8px; padding: 1px 10px; border-radius: 99px; background: var(--orange); color: #fff; font-style: normal; font-size: 13px; vertical-align: 2px; }
.reg-pre-find { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; margin-left: auto; border-radius: 12px; border: 1.5px solid #d9dfea; background: #fff; }
.reg-pre-find input { width: 150px; border: 0; outline: none; font: inherit; font-size: 16px; font-weight: 800; background: none; }
.reg-pre-reload { font-size: 13px; font-weight: 800; color: #2156c9; }
.reg-pre-now { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #e6f8ee; color: #146b3a; font-weight: 700; font-size: 14px; }
.reg-pre-now a { margin-left: 8px; font-size: 12.5px; }
.reg-pre-none { margin: 4px 0; font-size: 13.5px; font-weight: 700; color: #6b5a3e; }
.reg-pre-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.reg-pre-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #efe3cb; }
.reg-pre-list li.is-now { box-shadow: inset 0 0 0 3px #2dbd6e; }
.reg-pre-code { flex: none; padding: 4px 10px; border-radius: 10px; background: #238a3d; color: #fff; font-weight: 900; font-size: 20px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.reg-pre-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.reg-pre-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-pre-name small { color: var(--muted); font-size: 11.5px; }
.reg-pre-list form { margin: 0; }
.reg-pre-x { min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: #f1f3f8; color: #6b7690; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.zone-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.zone-pick legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.zone-pick legend small { margin-left: 6px; font-weight: 700; color: var(--muted); font-size: 12px; }
.zone-pick label { display: inline-flex; margin: 0 6px 6px 0; cursor: pointer; }
.zone-pick input { position: absolute; opacity: 0; }
.zone-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid #d9dfea; background: #fff; font-weight: 800; font-size: 15px; }
.zone-pick input:checked + span { border-color: #2a9d48; background: #e8f7ee; color: #1b7a44; }
.zone-pick input:focus-visible + span { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.reg-fields .zone-pick, .bk-edit-fields .zone-pick { display: flex; flex-wrap: wrap; align-items: flex-start; }

/* 小学校の上から 風船（js/dashboard.js）… 位置は 地図の絵の % */
.map-balloons { position: absolute; left: 14%; top: 14%; width: 22%; height: 6%; z-index: 1; pointer-events: none; }
.map-balloon { position: absolute; bottom: 0; width: clamp(14px, 1.6cqw, 26px); aspect-ratio: .82; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 8%, transparent 22%), var(--c); box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .2); }
.map-balloon::before { content: ""; position: absolute; left: 50%; bottom: -3px; width: 5px; height: 4px; background: var(--c); transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.map-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 2.2em; background: rgba(80, 80, 80, .55); }

/* ============================================================
   上のナビは廃止（左のメニューに統合）／左右のパネルを しまう・出す
   ============================================================ */
.app-topnav { display: none !important; }
.app-fold { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.app-fold span { position: relative; width: 18px; height: 14px; border: 2px solid currentColor; border-radius: 3px; }
.app-fold span::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: currentColor; }
.app-fold:hover { background: rgba(255, 255, 255, .16); }
.app-fold--right { position: fixed; z-index: 45; top: calc(var(--head-h) + 10px); right: calc(var(--right-w) + 10px); background: rgba(24, 33, 58, .88); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: right .25s; }
.app-fold--right span::before { left: auto; right: 4px; }
.app-side, .dash-right, .app-main { transition: transform .25s ease, margin .25s ease, width .25s ease; }
@media (min-width: 721px) {
  body.fold-side { --side-w: 0px; }
  body.fold-side .app-side { transform: translateX(-100%); }
  body.fold-side .app-logo { min-width: 0; }
}
@media (min-width: 1081px) {
  body.fold-right { --right-w: 0px; }
  body.fold-right .dash-right { transform: translateX(100%); }
}
@media (max-width: 1080px) { .app-fold--right { display: none; } }
@media (max-width: 720px) { .app-fold--left { display: none; } }

/* ============================================================
   PC：ダッシュボードは 地図が画面いっぱい、その上に 半透明の左右パネル
   ============================================================ */
@media (min-width: 1081px) {
  .app--dash .dash-map { position: fixed; inset: 0; z-index: 0; }
  .app--dash .dash-map-stage { left: calc(50% + (var(--side-w) - var(--right-w)) / 2); width: max(calc(100cqw + 120px), 177.68cqh); transition: left .25s ease; }
  .app--dash .app-head { background: rgba(18, 26, 48, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(255, 255, 255, .08); }
  .app--dash .app-side { background: rgba(24, 33, 58, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 6px 0 24px rgba(0, 0, 0, .18); }
  .app--dash .dash-right { background: rgba(11, 31, 58, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: -6px 0 24px rgba(0, 0, 0, .18); z-index: 30; }
  .app--dash .dash-card, .app--dash .dash-now { background: rgba(31, 42, 72, .72); }
  .app--dash .dash-greet { left: calc(var(--side-w) + 22px); top: calc(var(--head-h) + 16px); transition: left .25s; }
  .app--dash .dash-tools { right: calc(var(--right-w) + 10px); top: calc(var(--head-h) + 58px); transition: right .25s; }
}

/* ============================================================
   まちが生きている（木のゆれ・白鳥・車・川のきらめき・雲・花びら・えんとつ）
   ============================================================ */
.lv-tree, .lv-swan, .lv-car { position: absolute; z-index: 1; background-repeat: no-repeat; will-change: transform; pointer-events: none; }
.lv-tree { transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 46%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 48% 50% at 50% 46%, #000 60%, transparent 100%);
  animation: lv-sway 4.6s ease-in-out var(--d, 0s) infinite; }
@keyframes lv-sway { 0%, 100% { transform: rotate(0) skewX(0); } 30% { transform: rotate(var(--a, .8deg)) skewX(.6deg); } 55% { transform: rotate(calc(var(--a, .8deg) * -.4)) skewX(-.3deg); } 80% { transform: rotate(calc(var(--a, .8deg) * .5)); } }
.lv-swan { pointer-events: auto; padding: 0; border: 0; cursor: pointer; border-radius: 50%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  animation: lv-bob 2.8s ease-in-out var(--d, 0s) infinite, lv-glide 16s ease-in-out var(--d, 0s) infinite; }
@keyframes lv-bob { 50% { translate: 0 -8%; } }
@keyframes lv-glide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(22%); } }
.lv-swan.is-splash { animation: lv-dip .6s ease-out; }
@keyframes lv-dip { 40% { translate: 0 10%; transform: scale(1.1, .9); } }
.lv-car { -webkit-mask-image: radial-gradient(ellipse 45% 48% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 45% 48% at 50% 50%, #000 55%, transparent 100%); animation: lv-drive 18s ease-in-out var(--d, 0s) infinite; }
.lv-car--down { --dy: 55%; } .lv-car--up { --dy: -55%; }
@keyframes lv-drive { 0%, 60%, 100% { transform: translateY(0); } 72% { transform: translateY(var(--dy)); } 88% { transform: translateY(var(--dy)); } }
.lv-river { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.lv-river i { position: absolute; inset: -20% -40%; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .22) 24px 26px, transparent 28px 60px), repeating-linear-gradient(70deg, transparent 0 40px, rgba(180, 235, 255, .2) 42px 45px, transparent 47px 90px);
  animation: lv-flow 9s linear infinite; will-change: transform; }
@keyframes lv-flow { to { transform: translate3d(60px, 90px, 0); } }
.lv-glints { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lv-glint { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: lv-glint 2.6s ease-in-out infinite; }
@keyframes lv-glint { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }
.lv-cloud { position: absolute; z-index: 1; top: 2%; width: 9%; aspect-ratio: 2.4; border-radius: 999px; background: #fff; opacity: .85; filter: blur(1px); pointer-events: none; will-change: transform;
  box-shadow: 1.6vw -.9vw 0 .2vw #fff, 3.4vw 0 0 -.1vw #fff; animation: lv-cloud 90s linear infinite; }
.lv-cloud.c1 { top: 1%; animation-delay: -10s; }
.lv-cloud.c2 { top: 5%; width: 7%; opacity: .75; animation-duration: 120s; animation-delay: -70s; }
.lv-cloud.c3 { top: 3%; width: 6%; opacity: .7; animation-duration: 105s; animation-delay: -40s; }
@keyframes lv-cloud { from { transform: translate3d(-15vw, 0, 0); left: 0; } to { transform: translate3d(0, 0, 0); left: 105%; } }
.lv-petals { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.lv-chimney { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; }
.lv-puff { position: absolute; left: 0; top: 0; font-size: clamp(12px, 1.3cqw, 20px); line-height: 1; will-change: transform, opacity; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.map-toy--school { transform-origin: 50% 100%; border-radius: 8px; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.map-toy--school.is-boing { z-index: 2; animation: toy-boing .95s cubic-bezier(.28, .84, .42, 1); }
@media (prefers-reduced-motion: reduce) { .lv-tree, .lv-swan, .lv-car, .lv-river i, .lv-cloud, .lv-glint { animation: none !important; } .lv-petals { display: none; } }
.app-user-av { overflow: hidden; }
.app-user-av img { width: 130%; height: 130%; object-fit: cover; object-position: 50% 8%; }

/* 二重に見える（幽体離脱）対策：絵を 動かさない。白鳥は その場で 波紋と きらめきだけ */
.lv-car { display: none !important; }
.lv-swan { background: none !important; -webkit-mask-image: none; mask-image: none; animation: none !important; overflow: visible; }
.lv-swan i { position: absolute; left: 50%; top: 78%; width: 120%; aspect-ratio: 2.6; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); transform: translate(-50%, -50%) scale(.3); opacity: 0;
  animation: lv-ripple 3.2s ease-out var(--d, 0s) infinite; pointer-events: none; }
.lv-swan i + i { animation-delay: calc(var(--d, 0s) - 1.6s); }
@keyframes lv-ripple { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.lv-swan::after { content: ""; position: absolute; inset: 10% 15% 25%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 70%); opacity: 0; animation: lv-shine 4s ease-in-out var(--d, 0s) infinite; mix-blend-mode: screen; }
@keyframes lv-shine { 50% { opacity: .7; } }
.lv-swan.is-splash i { animation-duration: .8s; }
/* 木のゆれは ごく小さく（ふちが ずれて見えないように） */
.lv-tree { --a: .35deg !important; }
@keyframes lv-sway { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(var(--a)); } 70% { transform: rotate(calc(var(--a) * -.6)); } }

/* 吹き出し：プワッと出る／消える（js/dashboard.js がタイプライターで文字を出す） */
.map-bubble { z-index: 4; min-width: 3em; min-height: 1.4em; transform-origin: 30% 110%; }
.map-bubble.is-out { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(.2); transition: opacity .25s, transform .3s ease-in; }
.map-bubble.is-in { opacity: 1; animation: bubble-pop .55s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bubble-pop { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(.2); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(1); } }
/* 学校：絵は切り取らない（二重にならないよう）。タップの 当たり判定だけ */
.map-toy--school { background: none !important; -webkit-mask-image: none; mask-image: none; }
.map-toy--school.is-boing { animation: none; }
/* PC：地図の上（富士山）が見えるように、上ぞろえ */
@media (min-width: 1081px) {
  .app--dash .dash-map-stage { top: calc(var(--head-h) - 16px); transform: translateX(-50%); width: max(calc(100cqw + 120px), calc((100cqh - var(--head-h) + 16px) * 1.7768)); }
}

/* 東平山マップ：コメントする（下の枠）と、出てきて しゃべる キャラ */
.cm-bar { position: absolute; z-index: 6; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: min(640px, calc(100% - 24px));
  padding: 8px 8px 8px 10px; border-radius: 999px; background: rgba(255, 252, 244, .95); box-shadow: 0 10px 26px rgba(0, 0, 0, .3), inset 0 0 0 2px #f1d9a8; }
.cm-me { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #fff4e0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffb366; }
.cm-me--txt { display: grid; place-items: center; font-weight: 900; color: #e06a00; }
.cm-bar input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; background: none; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); }
.cm-send { flex: none; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 900; font-size: 15px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #ffa14a, #ff8a1f 55%, #f07400); box-shadow: 0 4px 0 #c45f00; transition: transform .4s cubic-bezier(.34, 1.9, .5, 1); }
.cm-send:active { transform: scale(.93) translateY(3px); transition-duration: .07s; }
.cm-send:disabled { opacity: .6; }
.cm-stage { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.cm-actor { position: absolute; bottom: 70px; display: flex; flex-direction: column-reverse; align-items: center; animation: cm-in .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.cm-actor.is-out { animation: cm-out .6s ease-in forwards; }
.cm-av { width: clamp(90px, 9vw, 140px); height: auto; aspect-ratio: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); animation: cm-bob 2.2s ease-in-out .6s infinite; }
img.cm-av { max-height: 180px; object-fit: contain; }
.cm-av--txt { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(180deg, #ffd9a8, #ff9d3d); color: #fff; font-size: 44px; font-weight: 900; }
.cm-say { position: relative; margin: 0 0 12px; max-width: 280px; padding: 10px 16px 12px; border-radius: 20px; background: #fff; color: #1b2440; font-weight: 800; font-size: 16px; line-height: 1.5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25); animation: bubble-pop2 .5s .25s cubic-bezier(.3, 1.8, .5, 1) both; }
.cm-say::after { content: ""; position: absolute; left: 50%; bottom: -12px; border: 9px solid transparent; border-top: 13px solid #fff; border-bottom: 0; transform: translateX(-50%); }
.cm-say b { display: block; font-size: 12px; color: #e06a00; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes cm-in { from { transform: translateY(120%); opacity: 0; } }
@keyframes cm-out { to { transform: translateY(130%); opacity: 0; } }
@keyframes cm-bob { 50% { transform: translateY(-6px); } }
@keyframes bubble-pop2 { from { transform: scale(.2); opacity: 0; } }
@media (min-width: 1081px) {
  .app--dash .cm-bar { left: calc(50% + (var(--side-w) - var(--right-w)) / 2); width: min(640px, calc(100% - var(--side-w) - var(--right-w) - 40px)); }
  .app--dash .cm-stage { left: var(--side-w); right: var(--right-w); top: var(--head-h); }
}
@media (max-width: 1080px) { .cm-bar { bottom: 10px; } .dash-map-hint { bottom: 76px; } }

/* ============================================================
   右のパネル（ChatGPTのデザイン案どおり：木の枠・クリームのカード・木の看板見出し）
   ============================================================ */
.dash-right.rp { gap: 10px; padding: 10px 10px 14px; color: #3b2a14;
  background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 12px), linear-gradient(180deg, #b8793e, #9a5f2a) !important;
  box-shadow: inset 0 0 0 4px #6b3a12, inset 0 0 0 7px #d9a560, -6px 0 24px rgba(0, 0, 0, .25) !important; backdrop-filter: none !important; }
.rp-card { padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #fbefd8); box-shadow: inset 0 0 0 2px #f1d9a8, 0 3px 0 #7a4a1c; }
.rp-plank { position: relative; display: flex; align-items: center; gap: 8px; margin: 4px 0 -2px; padding: 8px 14px; border-radius: 12px; color: #fff; font-size: 17px; font-weight: 900;
  background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px), linear-gradient(180deg, #8a5220, #6b3a12); box-shadow: inset 0 0 0 2px #c48a4e, 0 3px 0 #4a2508; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.rp-plank .ic { width: 20px; height: 20px; }
.rp-plank a { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: #fffaf0; color: #6b3a12; font-size: 11.5px; text-shadow: none; text-decoration: none; }
.rp-now { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.rp-now-ic { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.rp-date { margin: 0; font-size: 12px; font-weight: 800; }
.rp-clock { margin: 0; font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: .02em; color: #1b2440; font-variant-numeric: tabular-nums; }
.rp-place { display: flex; align-items: center; gap: 3px; margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.rp-place .ic { width: 14px; height: 14px; }
.rp-temp { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-weight: 800; font-size: 13px; }
.rp-temp b { font-size: 26px; color: #e8661a; }
.rp-temp small { padding-left: 8px; border-left: 1px solid #e3d2b0; font-size: 10.5px; line-height: 1.3; }
.rp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.rp-tile { display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 8px; border-radius: 12px; background: #fff; color: #3b2a14; text-decoration: none; box-shadow: inset 0 0 0 1.5px #efe0c2;
  transition: transform .45s cubic-bezier(.34, 1.9, .5, 1); }
.rp-tile:active { transform: scale(.94); transition-duration: .07s; }
.rp-tile img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.rp-tile span { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.rp-tile small { font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.rp-tile b { font-size: 26px; font-weight: 900; }
.rp-tile i { font-style: normal; font-size: 12px; margin-left: 1px; color: #3b2a14; }
.rp-tile--green b { color: #1f8a4a; } .rp-tile--orange b { color: #e8412d; } .rp-tile--pink b { color: #1f6fe0; } .rp-tile--blue b { color: #e8661a; }
.rp-people ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
.rp-people li { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.rp-av { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: visible; background: radial-gradient(circle, #eaf6ff, #cfe7fb); box-shadow: 0 0 0 3px #fff, 0 2px 5px rgba(0, 0, 0, .2); }
.rp-av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.rp-av i { font-style: normal; font-weight: 900; font-size: 22px; color: #e06a00; }
.rp-av em { position: absolute; right: -1px; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #ffb400; box-shadow: 0 0 0 2px #fff; }
.rp-av em.is-on { background: #2dbd6e; }
.rp-people b { max-width: 100%; margin-top: 4px; font-size: 11.5px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-people small { font-size: 10px; font-weight: 700; color: #7a6a52; }
.rp-none { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.6; color: #6b5a3e; text-align: center; }

/* 地図の左上：天気カード */
.dash-greet.wx { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; max-width: 460px; border-radius: 20px;
  background: rgba(255, 252, 244, .96); box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 0 0 2px #f1d9a8; }
.wx-now { width: 78px; height: 78px; }
.wx-now img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.wx-main { min-width: 0; }
.wx-temp { display: flex; align-items: baseline; gap: 4px; margin: 0 !important; color: #1b2440 !important; }
.wx-temp b { font-size: 38px; font-weight: 900; line-height: 1; color: #e8661a; }
.wx-temp small { font-size: 16px; font-weight: 900; }
.wx-temp span { margin-left: 6px; font-size: 16px; font-weight: 900; }
.wx-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0 !important; font-size: 12.5px !important; font-weight: 800 !important; color: #4c5670 !important; line-height: 1.4 !important; }
.wx-hi { color: #e8412d; } .wx-lo { color: #2f66e0; }
.wx-say { margin: 6px 0 0 !important; padding-top: 6px; border-top: 1px dashed #e3d2b0; font-size: 13px !important; font-weight: 800 !important; color: #2156c9 !important; line-height: 1.45 !important; }
.wx-next { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 10px; border-radius: 14px; background: #eef6ff; text-align: center; line-height: 1.1; }
.wx-next small { font-size: 11px; font-weight: 900; color: #2f66e0; }
.wx-next img { width: 40px; height: 40px; object-fit: contain; }
.wx-next b { font-size: 16px; color: #e8412d; }
.wx-next span { font-size: 12px; font-weight: 800; color: #2f66e0; }
.wx-next em { font-style: normal; font-size: 11px; font-weight: 800; color: #4c5670; }
@media (max-width: 1080px) {
  .dash-greet.wx .wx-sub, .dash-greet.wx .wx-say { display: flex !important; }
  .dash-greet.wx { max-width: calc(100% - 80px); padding: 8px 10px; gap: 8px; }
  .wx-now { width: 52px; height: 52px; } .wx-temp b { font-size: 28px; }
}
@media (max-width: 720px) { .dash-greet.wx .wx-say, .wx-next { display: none !important; } }

/* 泳ぐ・歩く（js/dashboard.js） */
.lv-walkers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lv-walker { position: absolute; transform: translate(-50%, -88%); will-change: left, top; }
.lv-walker img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.lv-walker--rb img, .lv-walker--rg img, .lv-walker--cb img { animation: none; }
.lv-walker--swan img { animation: lv-float 2.8s ease-in-out infinite; }
@keyframes lv-step { 50% { translate: 0 -6%; } }
@keyframes lv-float { 50% { translate: 0 -5%; } }
/* コマの無いキャラ（イモッチ）は ゆらゆら */
.map-char.is-sway img { transform-origin: 50% 90%; animation: char-sway 2.8s ease-in-out infinite; }
@keyframes char-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-3%); } }
/* 木は もっと ゆらゆら */
.lv-tree { --a: .8deg !important; animation-duration: 3.6s !important; }
/* コメント：大きく、その日ずっと いる */
.cm-bar { width: min(820px, calc(100% - 24px)); padding: 10px 10px 10px 12px; gap: 12px; }
.cm-me { width: 58px; height: 58px; }
.cm-bar input { height: 60px; font-size: 19px; }
.cm-send { min-height: 58px; padding: 0 26px; font-size: 18px; }
@media (min-width: 1081px) { .app--dash .cm-bar { width: min(820px, calc(100% - var(--side-w) - var(--right-w) - 40px)); } }
.cm-stage { pointer-events: none; }
.cm-actor { bottom: auto; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; pointer-events: auto; transform: translateX(-50%); }
.cm-actor { animation: cm-in .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.cm-actor.is-quiet .cm-say { opacity: 0; transform: scale(.4) translateY(20px); pointer-events: none; }
.cm-actor.is-quiet { animation: none; }
.cm-say { transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
.cm-say b small { margin-left: 6px; color: #8a93a8; font-size: 10.5px; }
.cm-av { width: clamp(80px, 7vw, 120px); }
@keyframes cm-in { from { transform: translate(-50%, 60%); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@media (min-width: 1081px) { .app--dash .cm-stage { bottom: 110px; } }
/* おうちで事前登録した子のカード：番号と名前を上、ボタンを下（文字が縦に くずれない） */
.reg-pre-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.reg-pre-list li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "code name" "act act"; gap: 10px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 2px #ffe0b8, 0 4px 10px rgba(80, 50, 10, .08); }
.reg-pre-code { grid-area: code; padding: 6px 14px; border-radius: 12px; font-size: 26px; box-shadow: 0 3px 0 #1b6e30; }
.reg-pre-name { grid-area: name; min-width: 0; }
.reg-pre-name b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-pre-name small { display: block; margin-top: 3px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.reg-pre-list li > a, .reg-pre-list li > form { grid-area: act; }
.reg-pre-list li > a { display: flex; justify-content: center; min-height: 50px; font-size: 16px; }
.reg-pre-list li { grid-template-areas: "code name" "go x"; grid-template-columns: 1fr auto; }
.reg-pre-list li > .reg-pre-code { grid-area: code; justify-self: start; }
.reg-pre-list li > a { grid-area: go; }
.reg-pre-list li > form { grid-area: x; }
.reg-pre-x { min-height: 50px; padding: 0 14px; }
.dash-rl { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; cursor: pointer; background: linear-gradient(135deg, #b98cff, #7a5cf6); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: rl-throb2 2s ease-in-out infinite; }
.dash-rl img { width: 32px; height: 32px; }
@keyframes rl-throb2 { 50% { transform: scale(1.08) rotate(-6deg); } }
/* ドラッグで 動かせる キャラ */
.map-char, .cm-actor { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-char img, .cm-actor img { -webkit-user-drag: none; user-select: none; }
.map-char.is-dragging, .cm-actor.is-dragging { cursor: grabbing; z-index: 9; animation: none !important; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .35)); }
.map-char.is-dragging img { transform: scale(1.08) rotate(-4deg); transition: transform .15s; }

/* 場所の げんき度（ドクロ → 芽 → 花 → キラキラ） */
.sh { display: grid !important; place-items: center; padding: 0 !important; background: #fff !important; color: transparent !important; }
.sh img { width: 118%; height: 118%; object-fit: contain; }
.sh--0 { background: #3b2d4a !important; box-shadow: 0 0 0 3px #fff, 0 0 12px 4px rgba(120, 60, 180, .6) !important; animation: sh-wobble 2.4s ease-in-out infinite !important; }
.sh--0::after { display: none; }
.sh--1 { box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(0, 0, 0, .25) !important; animation: none !important; }
.sh--2 { box-shadow: 0 0 0 3px #fff, 0 0 10px 3px rgba(255, 140, 190, .6) !important; animation: sh-bloom 2.6s ease-in-out infinite !important; }
.sh--3 { background: #fff8d0 !important; box-shadow: 0 0 0 3px #fff, 0 0 16px 6px rgba(255, 210, 60, .85) !important; animation: sh-shine 1.8s ease-in-out infinite !important; }
@keyframes sh-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-2px); } }
@keyframes sh-bloom { 50% { transform: scale(1.12); } }
@keyframes sh-shine { 50% { transform: scale(1.15) rotate(10deg); filter: brightness(1.2); } }
.sh-aura { position: absolute; z-index: 1; width: 14%; aspect-ratio: 1.6; border-radius: 50%; transform: translate(-50%, -40%); pointer-events: none; }
.sh-aura--0 { background: radial-gradient(ellipse, rgba(70, 30, 110, .38), transparent 68%); mix-blend-mode: multiply; animation: sh-fog 5s ease-in-out infinite; }
.sh-aura--3 { background: radial-gradient(ellipse, rgba(255, 225, 120, .55), transparent 65%); mix-blend-mode: screen; animation: sh-fog 3s ease-in-out infinite; }
.sh-aura--1, .sh-aura--2 { display: none; }
@keyframes sh-fog { 50% { transform: translate(-50%, -40%) scale(1.12); opacity: .75; } }

/* ============ 子ども登録：3つの手順を横ならび（見本どおり） ============ */
.reg-lead { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: min(560px, 52%); margin: 16px 0 0; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 250, 236, .95); box-shadow: inset 0 0 0 2px #f1d9a8, 0 6px 16px rgba(60, 40, 10, .15); text-shadow: none; line-height: 1.7; }
.reg-lead-ic { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(180deg, #c98a4b, #9a5d27); color: #fff; }
.reg-lead-ic .ic { width: 30px; height: 30px; }
.reg-body { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "photo avatar issue"; align-items: stretch; }
.reg-panel { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; border-radius: 20px; background: #fffaf0; box-shadow: inset 0 0 0 3px #e9c98f, 0 10px 26px rgba(80, 50, 10, .15); }
.reg-panel h2 { margin: 0; font-size: clamp(19px, 1.5vw, 24px); color: #3d1f06; }
.reg-num { width: 44px; height: 44px; font-size: 24px; box-shadow: 0 0 0 4px #fff, 0 3px 8px rgba(0, 0, 0, .2); }
.reg-panel--avatar .reg-num { background: #2fb45f; }
.reg-panel--issue .reg-num { background: #3d7bff; }
.reg-panel-lead { margin: -4px 0 0; font-size: 13.5px; font-weight: 700; color: #5a4a36; line-height: 1.6; }
.reg-consent { font-size: 12.5px; padding: 8px 12px; }

/* ① 写真 */
.reg-shot { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: visible; background: linear-gradient(180deg, #bfe6ff, #e8f6ff); box-shadow: inset 0 0 0 2px #cfe3f5; }
.reg-shot > img#reg-shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.reg-shot-frame { position: absolute; inset: 14% 26%; z-index: 1; pointer-events: none;
  background: linear-gradient(#f5b82e, #f5b82e) 0 0 / 22px 4px, linear-gradient(#f5b82e, #f5b82e) 0 0 / 4px 22px,
    linear-gradient(#f5b82e, #f5b82e) 100% 0 / 22px 4px, linear-gradient(#f5b82e, #f5b82e) 100% 0 / 4px 22px,
    linear-gradient(#f5b82e, #f5b82e) 0 100% / 22px 4px, linear-gradient(#f5b82e, #f5b82e) 0 100% / 4px 22px,
    linear-gradient(#f5b82e, #f5b82e) 100% 100% / 22px 4px, linear-gradient(#f5b82e, #f5b82e) 100% 100% / 4px 22px; background-repeat: no-repeat; }
.reg-shot-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: #4a6a8a; }
.reg-shot-empty .ic { width: 44px; height: 44px; color: #6b93ba; }
.reg-shot-navi { position: absolute; left: -18px; bottom: -22px; z-index: 2; width: 34%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.reg-shot-say { position: absolute; left: -10px; top: 10px; z-index: 2; padding: 10px 12px; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; color: #3d1f06; transform: rotate(-8deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.reg-big-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; border: 0; border-radius: 16px; cursor: pointer; color: #fff;
  font: inherit; font-weight: 800; font-size: clamp(18px, 1.4vw, 22px); background: linear-gradient(180deg, #ffa14a, #ff8a1f 55%, #f07400); box-shadow: 0 6px 0 #c45f00, 0 12px 20px rgba(255, 138, 31, .3); }
.reg-big-btn .ic { width: 30px; height: 30px; }
.reg-big-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #c45f00; }
.reg-panel--photo .reg-sub-btn { min-height: 48px; font-size: 15px; }

/* ② アバター */
.reg-avbig { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff 0 20%, #cdeafe 60%, #9fd4f7); box-shadow: inset 0 0 0 2px #cfe3f5; }
.reg-avbig img { height: 92%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.reg-avbig-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; font-weight: 800; font-size: 14px; color: #4a6a8a; background: rgba(255, 255, 255, .55); }
.reg-avbig-empty .ic { width: 40px; height: 40px; color: #6b93ba; }
.reg-avbig.has-av .reg-avbig-empty { display: none; }
.reg-panel--avatar .av-grid--fill { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.reg-panel--avatar .av-card-name { font-size: 10px; padding: 3px 2px; }
.reg-panel--avatar .av-card-name small { display: none; }
.reg-panel--avatar .av-card-check { width: 20px; height: 20px; top: 3px; right: 3px; }
.reg-panel--avatar .av-card-check::after { left: 5px; top: 2px; width: 5px; height: 9px; }
.reg-panel--avatar .reg-hint { margin: auto 0 0; font-size: 12.5px; background: #fff3d6; }

/* ③ 発行 */
.reg-panel--issue .reg-issue-row { display: grid; grid-template-columns: 1fr 118px; grid-template-areas: "f c" "b b"; gap: 14px 14px; align-items: start; flex: 1; }
.reg-panel--issue .reg-fields { grid-area: f; grid-template-columns: 1fr; gap: 10px; }
.reg-panel--issue .mini-card { grid-area: c; margin-top: 8px; }
.reg-panel--issue .cta-issue { grid-area: b; align-self: end; width: 100%; justify-content: center; min-height: 76px; font-size: clamp(19px, 1.5vw, 24px); }
.reg-panel--issue .reg-fields input[type=text], .reg-panel--issue .reg-fields select { height: 48px; }

/* 下の帯 */
.reg-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; padding: 12px 18px; border-radius: 18px; background: rgba(255, 250, 236, .95); box-shadow: inset 0 0 0 2px #f1d9a8; }
.reg-foot-sign { padding: 8px 16px; border-radius: 10px; color: #fff3d6; background: linear-gradient(180deg, #8a5a2b, #6b3d17); font-size: 15px; white-space: nowrap; }
.reg-foot .reg-tips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 8px 14px; background: #fff; }
.reg-foot .reg-note { margin: 0 0 0 auto; font-size: 12px; }

@media (max-width: 1280px) {
  .reg-body { grid-template-columns: 1fr 1fr; grid-template-areas: "photo avatar" "issue issue"; }
}
@media (max-width: 820px) {
  .reg-body { grid-template-columns: 1fr; grid-template-areas: "photo" "avatar" "issue"; }
  .reg-lead { max-width: none; }
  .reg-panel--issue .reg-issue-row { grid-template-columns: 1fr; grid-template-areas: "f" "b"; }
  .reg-foot .reg-note { margin: 0; }
}
.reg-panel--issue .reg-issue-row { position: relative; grid-template-columns: 1fr; grid-template-areas: "f" "b"; }
.reg-panel--issue .reg-fields { grid-template-columns: 1fr 1fr 118px; gap: 10px 12px; }
.reg-panel--issue .reg-fields > label:first-child { grid-column: 1 / 3; }
.reg-panel--issue .reg-fields > label:nth-child(2) { grid-column: 1; }
.reg-panel--issue .reg-fields > label:nth-child(3) { grid-column: 2; }
.reg-panel--issue .reg-fields .zone-pick { grid-column: 1 / -1; }
.reg-panel--issue .reg-fields > label:not(:first-child) small, .reg-panel--issue .zone-pick legend small { display: none; }
.reg-panel--issue .mini-card { position: absolute; right: 0; top: 4px; margin: 0; }
.reg-panel--issue .zone-pick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.reg-panel--issue .zone-pick legend { float: left; grid-column: 1 / -1; margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.reg-panel--issue .zone-pick label span { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; text-align: center; line-height: 1.3; font-size: 12.5px; }
.reg-panel--issue .zone-pick label { display: block; margin: 0; } .reg-panel--issue .zone-pick label span { width: 100%; box-sizing: border-box; }
.reg-panel--issue .zone-pick label span { word-break: keep-all; overflow-wrap: anywhere; }
/* スマホ：ファーストビューは 地図が画面いっぱい（ヘッダーと下ナビの間） */
@media (max-width: 720px) {
  .app--dash .dash-map { height: calc(100vh - var(--head-h) - var(--bnav-h)); height: calc(100svh - var(--head-h) - var(--bnav-h) - env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) { .app--dash .dash-map-hint { bottom: 100px; } }
.reg-pre-photo { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #dcf6e6; color: #1b7a44; font-style: normal; font-size: 11.5px; font-weight: 800; }
/* 左メニュー：文字を折り返さない */
:root { --side-w: 212px; }
.app-sidenav-item { gap: 12px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.app-sidenav-item > span, .app-sidenav-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-sidenav-item .ic { flex: none; }
@media (min-width: 721px) and (max-width: 1080px) {
  :root { --side-w: 100px; }
  .app-sidenav-item { font-size: 10px; letter-spacing: -.02em; padding: 8px 2px; gap: 4px; }
}
@media (max-width: 720px) { :root { --side-w: 0px; } .app-side { width: 260px; } }

/* ============ 右上の 木のボタン（効果音・BGM・パネルのしまう） ============ */
.dash-sound { gap: 16px; overflow: visible; border-radius: 0; box-shadow: none; }
.dash-sound button.wt { position: relative; display: block; width: 76px; height: 86px; padding: 0; border: 4px solid #8a5222; border-radius: 20px; overflow: visible;
  background: radial-gradient(120% 70% at 35% 15%, rgba(255, 255, 255, .55), transparent 45%), linear-gradient(180deg, #ffb24a, #f07d12);
  box-shadow: inset 0 -5px 0 rgba(120, 50, 0, .22), 0 5px 0 #5c3212, 0 10px 16px rgba(0, 0, 0, .35); transition: transform .1s, filter .2s; }
.dash-sound button.wt + button.wt { border-top: 4px solid #8a5222; }
.dash-sound button.wt--bgm { background: radial-gradient(120% 70% at 35% 15%, rgba(255, 255, 255, .55), transparent 45%), linear-gradient(180deg, #4fb4ff, #1f6fe0); }
.dash-sound button.wt:active { transform: translateY(4px); box-shadow: inset 0 -5px 0 rgba(120, 50, 0, .22), 0 1px 0 #5c3212, 0 4px 8px rgba(0, 0, 0, .3); }
.wt img { position: absolute; left: 50%; top: 5px; width: 50px; height: 50px; transform: translateX(-50%); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.wt-lb { position: absolute; left: -4px; right: -4px; bottom: -4px; height: 26px; display: grid; place-items: center; border-radius: 4px 4px 18px 18px;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .12) 0 2px, transparent 2px 7px), linear-gradient(180deg, #c07a3c, #8a5222);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 0 0 2px #6b3a14; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 0 #4a2708; }
.wt-lb::before, .wt-lb::after { content: ""; position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe0a6, #b7792f 60%, #6b3a14); }
.wt-lb::before { left: 6px; } .wt-lb::after { right: 6px; }
.wt::before { content: ""; position: absolute; left: -14px; top: 22px; width: 26px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M22 4C10 3 3 10 4 20c9 1 17-5 18-16z' fill='%234caf3a'/%3E%3Cpath d='M22 4 6 19' stroke='%232e7d22' stroke-width='1.6'/%3E%3Cpath d='M20 16C12 15 6 21 8 29c7 0 13-5 12-13z' fill='%2366c24a'/%3E%3C/svg%3E") no-repeat center / contain; }
.wt--bgm::before { left: auto; right: -14px; transform: scaleX(-1); top: -8px; }
.wt-off { display: none; position: absolute; right: -8px; top: -8px; padding: 2px 6px; border-radius: 999px; background: #e0413a; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 900; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.dash-sound button.wt[aria-pressed="false"] { filter: saturate(.25) brightness(.95); }
.dash-sound button.wt[aria-pressed="false"] .wt-off { display: block; }
.dash-sound button.wt[aria-pressed="false"] img { opacity: .75; }

/* パネルを しまう／出す：木の札 */
@media (min-width: 1081px) {
  .app-fold--right { width: 48px; height: 76px; border: 4px solid #8a5222; border-radius: 12px 22px 22px 12px; color: #5a2e0a;
    background: repeating-linear-gradient(178deg, rgba(140, 80, 20, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, #f6d6a2, #e2b273);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(120, 60, 10, .2), 0 4px 0 #5c3212, 0 8px 14px rgba(0, 0, 0, .3); }
  .app-fold--right:hover { background: repeating-linear-gradient(178deg, rgba(140, 80, 20, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, #fbe2b8, #e8bd82); }
  .app-fold--right span { width: 14px; height: 14px; border: solid currentColor; border-width: 0 0 4px 4px; border-radius: 2px; transform: translateX(3px) rotate(45deg); }
  .app-fold--right span::before { display: none; }
  body.fold-right .app-fold--right span { transform: translateX(-3px) rotate(-135deg); }
  body:not(.fold-right) .app-fold--right span { transform: translateX(3px) rotate(45deg); }
  .app--dash .dash-tools { top: calc(var(--head-h) + 100px); gap: 14px; }
}
.dash-rl { margin-top: 4px; }

/* わくわくルーレット：地図の右下に 大きな絵のボタン */
.dash-rl.dash-rl--big { position: absolute; right: 14px; bottom: 90px; z-index: 6; width: clamp(120px, 12vw, 190px); height: auto; aspect-ratio: 1; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; animation: rl-bob 3s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.dash-rl.dash-rl--big img { width: 100%; height: 100%; object-fit: contain; }
.dash-rl.dash-rl--big:hover { animation-play-state: paused; transform: scale(1.06) rotate(-3deg); }
.dash-rl.dash-rl--big:active { transform: scale(.95); }
@keyframes rl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 1081px) { .app--dash .dash-rl.dash-rl--big { position: fixed; right: calc(var(--right-w) + 18px); bottom: 24px; transition: right .25s; } }
@media (max-width: 720px) { .dash-rl.dash-rl--big { width: 112px; right: 8px; bottom: 92px; } }
@media (prefers-reduced-motion: reduce) { .dash-rl.dash-rl--big { animation: none; } }
@media (min-width: 1081px) { .app--dash .dash-rl.dash-rl--big { bottom: 100px; } }
@media (max-width: 720px) { .dash-rl.dash-rl--big { bottom: 142px; } }
.app-logo-img { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
@media (max-width: 720px) { .app-logo-img { height: 44px; } }
@media (max-width: 720px) { .dash-rl.dash-rl--big { bottom: 200px; } }
@media (min-width: 721px) and (max-width: 1080px) { .dash-rl.dash-rl--big { bottom: 150px; } }
@media (min-width: 1081px) { .app--dash .dash-rl.dash-rl--big { bottom: 150px; } }
/* 子ども登録：スマホ */
@media (max-width: 720px) {
  .reg-hero { padding-bottom: 90px; }
  .reg-bubble { display: none; }
  .reg-lead { font-size: 13px; padding: 10px 12px; gap: 10px; }
  .reg-lead-ic { width: 42px; height: 42px; }
  .reg-panel--issue .reg-fields { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .reg-panel--issue .reg-fields > label:first-child, .reg-panel--issue .reg-fields .zone-pick { grid-column: 1 / -1 !important; }
  .reg-panel--issue .reg-fields > label:nth-child(2) { grid-column: 1 !important; }
  .reg-panel--issue .reg-fields > label:nth-child(3) { grid-column: 2 !important; }
  .reg-panel--issue .zone-pick label span { min-height: 42px; font-size: 13px; }
  .reg-panel--issue h2 { margin-bottom: 8px; }
  .reg-panel--issue .cta-issue { font-size: 18px; white-space: nowrap; min-height: 64px; padding: 0 16px; }
  .reg-foot .reg-tips { width: 100%; }
}
/* 子ども登録：スマホのファーストビュー */
.reg-fv-sp { display: none; }
@media (max-width: 720px) {
  .reg-fv-sp { position: relative; display: block; margin: 0 0 12px; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 20px rgba(20, 33, 61, .18); }
  .reg-fv-sp img { display: block; width: 100%; height: auto; }
  .reg-fv-cta { position: absolute; left: 6%; top: 63.2%; width: 55.7%; height: 14.5%; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
  .reg-fv-cta:active { background: rgba(0, 0, 0, .08); }
  .reg-fv-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .reg-fv-sp + .reg-hero { display: none; }
}

/* ===== 子ども登録：PCの見出し（スマホFVと同じ構成） ===== */
@media (min-width: 721px) {
  .reg-hero { min-height: 400px; padding: 26px 36px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow: hidden; }
  .reg-hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 70%); }
  .reg-hero .reg-sign { font-size: clamp(30px, 2.6vw, 44px); }
  .reg-lead2 { position: relative; z-index: 1; margin: 0 0 0 8px; max-width: 56%; color: #2a2f45; text-shadow: 0 0 10px #fff, 0 0 4px #fff; }
  .reg-lead2 b { display: block; font-size: clamp(22px, 1.9vw, 32px); font-weight: 900; line-height: 1.45; }
  .reg-lead2 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 800; }
  .reg-hero-cta { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; width: min(480px, 52%); min-height: 92px; padding: 10px 24px; border: 0; border-radius: 22px; cursor: pointer; color: #fff; text-align: left;
    background: linear-gradient(180deg, #ffa14a, #ff8a1f 55%, #f07400); box-shadow: 0 0 0 8px rgba(255, 250, 238, .95), 0 7px 0 8px #e9d2a8, 0 16px 28px rgba(160, 80, 0, .3); font: inherit; }
  .reg-hero-cta > .ic:first-child { width: 58px; height: 58px; padding: 10px; border-radius: 14px; background: #fff; color: #ff7a00; flex: none; }
  .reg-hero-cta span { flex: 1; display: grid; gap: 2px; }
  .reg-hero-cta b { font-size: clamp(26px, 2.2vw, 36px); font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(150, 60, 0, .35); }
  .reg-hero-cta small { font-size: 15px; font-weight: 800; opacity: .95; }
  .reg-hero-cta > .ic:last-child { width: 30px; height: 30px; }
  .reg-hero-cta:hover { filter: brightness(1.05); }
  .reg-hero-cta:active { transform: translateY(4px); }
  .reg-boy { position: absolute; right: 2%; bottom: 0; z-index: 1; height: 96%; width: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }
  .reg-hero .reg-navi { right: auto; left: calc(98% - 96% * .6 - 150px); bottom: -6px; width: 190px; z-index: 2; }
  .reg-bubble--pc { right: 30%; top: 22px; left: auto; z-index: 3; font-size: 16px; line-height: 1.5; }
  .reg-hero .reg-bubble:not(.reg-bubble--pc) { display: none; }
}
@media (min-width: 721px) and (max-width: 1280px) {
  .reg-lead2, .reg-hero-cta { max-width: 60%; width: auto; }
  .reg-boy { height: 78%; }
  .reg-hero .reg-navi { width: 140px; left: auto; right: 26%; }
  .reg-bubble--pc { display: none; }
}
@media (min-width: 1281px) {
  .reg-hero .reg-navi { left: auto; right: calc(2% + 210px); width: 160px; bottom: -8px; }
  .reg-bubble--pc { right: calc(2% + 250px); }
}
@media (min-width: 721px) and (max-width: 1280px) { .reg-hero .reg-navi { display: none; } }
.reg-hero-cta b { white-space: nowrap; } @media (min-width: 721px) and (max-width: 1080px) { .reg-hero-cta b { font-size: 24px; } .reg-hero-cta { gap: 12px; padding: 10px 16px; } .reg-hero-cta > .ic:first-child { width: 48px; height: 48px; } }

/* ===== スマホの下メニュー：木の台に クリーム色のタイル（見本どおり） ===== */
@media (max-width: 720px) {
  :root { --bnav-h: 78px; }
  .app-bnav { gap: 5px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 0; overflow: visible;
    background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, #b8753a, #8a5222 70%, #6b3d17);
    box-shadow: inset 0 3px 0 rgba(255, 220, 160, .35), 0 -6px 18px rgba(0, 0, 0, .25); }
  .app-bnav::before, .app-bnav::after { content: ""; position: absolute; top: -14px; width: 34px; height: 40px; pointer-events: none; z-index: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 40'%3E%3Cpath d='M30 4C14 3 4 13 5 27c12 1 23-8 25-23z' fill='%234caf3a'/%3E%3Cpath d='M30 4 8 26' stroke='%232e7d22' stroke-width='2'/%3E%3Cpath d='M26 22C15 21 7 29 10 39c10 0 17-7 16-17z' fill='%2366c24a'/%3E%3C/svg%3E") no-repeat center / contain; }
  .app-bnav::before { left: -4px; transform: scaleX(-1); }
  .app-bnav::after { right: -4px; }
  .app-bnav-item { position: relative; gap: 1px; min-height: 60px; padding: 4px 1px 5px; border-radius: 14px; color: #5a2e0a; font-size: 9.5px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap;
    background: linear-gradient(180deg, #fff8ea, #f6e3c0); box-shadow: inset 0 -3px 0 rgba(160, 100, 40, .18), 0 3px 0 #5c3212; }
  .app-bnav-item > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .app-bnav-ei { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
  .app-bnav-item .ic { width: 28px; height: 28px; color: #8a5222; }
  .app-bnav-burger { width: 26px; height: 30px; gap: 5px; }
  .app-bnav-burger i { height: 5px; border-radius: 3px; background: #6b3d17; }
  .app-bnav-item.is-active { color: #fff; transform: translateY(-6px); text-shadow: 0 1px 0 #c2410c, 0 0 2px #c2410c;
    background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .5), transparent 60%), linear-gradient(180deg, #ffc23d, #ff8a1f);
    box-shadow: inset 0 0 0 2px #ffe08a, 0 4px 0 #b85400, 0 0 16px rgba(255, 190, 60, .7); }
  .app-bnav-item.is-active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -10px; height: 4px; border-radius: 3px; background: #ffe066; box-shadow: 0 0 8px #ffd23d; }
  .app-bnav-item.is-active .ic { color: #fff; }
}

/* ===== 今日の天気：木の枠のカード（見本どおり） ===== */
.dash-greet.wx.wx2 { display: block; width: min(440px, calc(100% - 20px)); max-width: none; padding: 30px 10px 10px; border-radius: 22px; overflow: visible;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, #c07a3c, #8a5222);
  box-shadow: inset 0 0 0 3px #6b3a14, inset 0 3px 0 5px rgba(255, 220, 160, .3), 0 12px 26px rgba(0, 0, 0, .3); }
.wx2::before, .wx2::after { content: ""; position: absolute; width: 44px; height: 50px; pointer-events: none; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 40'%3E%3Cpath d='M30 4C14 3 4 13 5 27c12 1 23-8 25-23z' fill='%234caf3a'/%3E%3Cpath d='M30 4 8 26' stroke='%232e7d22' stroke-width='2'/%3E%3Cpath d='M26 22C15 21 7 29 10 39c10 0 17-7 16-17z' fill='%2366c24a'/%3E%3C/svg%3E") no-repeat center / contain; }
.wx2::before { left: -14px; top: -14px; transform: scaleX(-1); }
.wx2::after { right: -12px; top: -10px; }
.wx2-plank { position: absolute; left: 22px; top: -18px; z-index: 4; display: flex; align-items: center; gap: 6px; margin: 0 !important; padding: 6px 18px 6px 10px; border-radius: 10px;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .12) 0 2px, transparent 2px 8px), linear-gradient(180deg, #a86a32, #7a4417); color: #fff !important; font-size: 19px !important; font-weight: 900 !important; letter-spacing: .06em;
  text-shadow: 0 2px 0 #3d1f06; box-shadow: inset 0 0 0 2px #5c3212, 0 4px 8px rgba(0, 0, 0, .3); transform: rotate(-2deg); }
.wx2-plank img { width: 32px; height: 32px; }
.wx2-loc { position: absolute; right: 18px; top: 4px; z-index: 4; display: flex; align-items: center; gap: 4px; margin: 0 !important; padding: 4px 12px; border-radius: 999px; background: #fffaf0; color: #1b2440 !important; font-size: 12px !important; font-weight: 800 !important; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.wx2-loc .ic { width: 14px; height: 14px; }
.wx2-in { position: relative; display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr auto; min-height: 230px; border-radius: 14px; overflow: hidden;
  background: var(--wx-scene) left bottom / auto 62% no-repeat, linear-gradient(180deg, #9ed6ff, #d9f0ff 55%, #eaf6ff); box-shadow: inset 0 0 0 3px #f6dfb2; }
.wx2 .wx-now { grid-row: 1; align-self: start; justify-self: center; width: 96px; height: 96px; margin-top: 10px; }
.wx2-info { grid-column: 2; grid-row: 1; margin: 10px 10px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 252, 244, .9); align-self: start; }
.wx2-date { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px !important; font-weight: 900 !important; color: #1b2440 !important; }
.wx2-date em { padding: 1px 10px; border-radius: 999px; background: #ff8a1f; color: #fff; font-style: normal; font-size: 12px; }
.wx2-row { display: flex; align-items: center; gap: 10px; }
.wx2-temp { margin: 0 !important; color: #1b2440 !important; line-height: 1; }
.wx2-temp b { font-size: 50px; font-weight: 900; letter-spacing: -.02em; }
.wx2-temp small { font-size: 20px; font-weight: 900; }
.wx2-hl, .wx2-more { margin: 0; }
.wx2-hl { padding-left: 10px; border-left: 1.5px solid #e2d3b4; }
.wx2-hl div, .wx2-more div { display: flex; align-items: baseline; gap: 6px; }
.wx2-hl dt, .wx2-more dt { font-size: 11.5px; font-weight: 800; color: #3b3f55; }
.wx2-hl dd, .wx2-more dd { margin: 0; font-size: 18px; font-weight: 900; }
.wx2-hl dd small, .wx2-more dd small { font-size: 11px; }
.wx2 .hi { color: #f07400; font-style: normal; } .wx2 .lo { color: #1f8ae0; font-style: normal; }
.wx2-more { display: flex; gap: 12px; margin-top: 4px; padding-top: 4px; border-top: 1.5px solid #e2d3b4; }
.wx2-more dd { font-size: 14px; color: #1b2440; }
.wx2-next { grid-column: 1 / 2; grid-row: 2; display: flex; align-items: center; gap: 6px; margin: 0 0 8px 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 252, 244, .95); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); width: max-content; }
.wx2-next img { width: 34px; height: 34px; }
.wx2-next span { display: grid; }
.wx2-next small { font-size: 10.5px; font-weight: 800; color: #3b3f55; }
.wx2-next b { font-size: 16px; font-weight: 900; color: #3b3f55; }
.wx2-say { position: absolute; right: 98px; bottom: 66px; z-index: 2; margin: 0 !important; padding: 6px 10px; border-radius: 16px; background: #fff8d9; color: #3b2a14 !important; font-size: 11.5px !important; font-weight: 900 !important; line-height: 1.3; max-width: 120px; text-align: center; transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); border: 0 !important; }
.wx2-kids { position: absolute; right: 0; bottom: 0; z-index: 1; width: 170px; height: auto; pointer-events: none; }
@media (min-width: 1081px) { .app--dash .dash-greet.wx.wx2 { top: calc(var(--head-h) + 30px); } }
@media (max-width: 720px) {
  .dash-greet.wx.wx2 { width: calc(100% - 84px); padding: 24px 6px 6px; }
  .wx2-plank { font-size: 14px !important; top: -14px; left: 12px; } .wx2-plank img { width: 22px; height: 22px; }
  .wx2-loc, .wx2-kids, .wx2-say, .wx2-next { display: none !important; }
  .wx2-in { min-height: 0; grid-template-columns: 70px 1fr; background: linear-gradient(180deg, #9ed6ff, #eaf6ff); }
  .wx2 .wx-now { width: 56px; height: 56px; margin-top: 6px; }
  .wx2-info { margin: 6px; padding: 6px 8px; }
  .wx2-temp b { font-size: 32px; } .wx2-hl dd { font-size: 14px; } .wx2-more { display: none; }
}
@media (min-width: 721px) {
  .wx2-in { min-height: 262px; }
  .wx2-info { position: relative; z-index: 2; }
  .wx2-kids { width: 150px; }
  .wx2-say { right: 118px; bottom: 58px; }
}

/* ===== おうちで事前登録した子：木の枠カード（見本どおり） ===== */
.reg-pre { padding: 34px 14px 14px; border-radius: 22px; overflow: visible;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, #c07a3c, #8a5222);
  box-shadow: inset 0 0 0 3px #6b3a14, 0 12px 26px rgba(0, 0, 0, .2); }
.reg-pre > header { position: static; margin: 0 0 10px; }
.reg-pre h2 { position: absolute; left: 22px; top: -20px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 10px; border-radius: 10px; color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .04em;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .12) 0 2px, transparent 2px 8px), linear-gradient(180deg, #a86a32, #7a4417); text-shadow: 0 2px 0 #3d1f06; box-shadow: inset 0 0 0 2px #5c3212, 0 4px 8px rgba(0, 0, 0, .3); }
.reg-pre-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff3dc; color: #8a5222; }
.reg-pre-ic .ic { width: 20px; height: 20px; }
.reg-pre h2 em { background: #ff8a1f; }
.reg-pre-find { background: #fffaf0; }
.reg-pre-reload { color: #fff3dc; }
.reg-pre-none, .reg-pre-now { background: #fffaf0; border-radius: 12px; padding: 10px 14px; }
.reg-pre-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.reg-pre-list li { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "face main" "time time" "acts acts"; gap: 10px 16px; padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0, #fbefd6); box-shadow: inset 0 0 0 2px #f1d9a8; }
.reg-pre-face { grid-area: face; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: #cfeaff; box-shadow: 0 0 0 5px #fff, 0 4px 10px rgba(0, 0, 0, .15); align-self: center; }
.reg-pre-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.reg-pre-main { grid-area: main; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reg-pre-list li .reg-pre-code { display: grid; justify-items: center; justify-self: stretch; padding: 6px 12px 8px; border-radius: 14px; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: .06em;
  background: linear-gradient(180deg, #34c267, #1f9a4b); box-shadow: inset 0 0 0 2px #7fe0a0, 0 4px 0 #177a3a; }
.reg-pre-code small { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.reg-pre-list li .reg-pre-name { display: block; font-size: 14px; font-weight: 800; color: #3b2a14; }
.reg-pre-list li .reg-pre-name b { font-size: 24px; font-weight: 900; color: #1b2440; }
.reg-pre-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-pre-tags i { padding: 3px 14px; border-radius: 999px; font-style: normal; font-weight: 800; font-size: 14px; }
.t-age { background: #cfe8ff; color: #1b4f8a; } .t-zone { background: #cdf3d6; color: #1b7a44; } .t-photo { background: #ffe6c7; color: #a54d00; }
.reg-pre-time { grid-area: time; display: flex; align-items: center; gap: 8px; padding-left: 4px; font-weight: 800; font-size: 15px; color: #1b2440; }
.reg-pre-time .ic { width: 22px; height: 22px; }
.reg-pre-acts { grid-area: acts; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.reg-pre-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: 14px; color: #fff !important; font-weight: 900; font-size: 20px; text-decoration: none;
  background: linear-gradient(180deg, #ffa14a, #ff8a1f 55%, #f07400); box-shadow: 0 5px 0 #c45f00, 0 8px 14px rgba(255, 138, 31, .3); }
.reg-pre-go .ic { width: 28px; height: 28px; }
.reg-pre-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #c45f00; }
.reg-pre-list li .reg-pre-x { display: flex; align-items: center; gap: 6px; min-height: 58px; padding: 0 18px; border-radius: 14px; background: #f3f4f6; color: #1b2440; font-weight: 900; font-size: 17px; box-shadow: inset 0 0 0 1.5px #d9dfea, 0 4px 0 #c9ced8; }
.reg-pre-x span { color: #e0413a; font-size: 20px; }
@media (max-width: 720px) {
  .reg-pre-list li { grid-template-columns: 84px 1fr; padding: 12px; }
  .reg-pre-face { width: 84px; height: 84px; }
  .reg-pre-list li .reg-pre-name b { font-size: 19px; }
  .reg-pre-time { font-size: 13px; }
  .reg-pre h2 { font-size: 16px; left: 12px; }
}
@media (min-width: 721px) {
  .reg-pre { width: fit-content; min-width: min(600px, 100%); max-width: 100%; }
  .reg-pre-list { grid-template-columns: repeat(auto-fit, minmax(460px, 560px)); }
}
@media (min-width: 721px) {
  .reg-pre { width: auto; }
  .reg-pre:has(.reg-pre-list li:only-child), .reg-pre:not(:has(.reg-pre-list)) { max-width: 640px; }
}
.reg-pre { margin-bottom: 44px; }

/* ===== 天気：さいしょは 小さな札。さわると 大きなカード ===== */
.wx2-mini, .wx2-x { display: none; }
.dash-greet.wx.wx2.is-mini { width: auto; padding: 0; background: none; box-shadow: none; }
.wx2.is-mini::before, .wx2.is-mini::after { display: none; }
.wx2.is-mini > :not(.wx2-mini) { display: none !important; }
.wx2.is-mini .wx2-mini { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: inherit;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .12) 0 2px, transparent 2px 8px), linear-gradient(180deg, #b8753a, #8a5222); box-shadow: inset 0 0 0 2px #5c3212, inset 0 3px 0 rgba(255, 220, 160, .35), 0 6px 14px rgba(0, 0, 0, .3); animation: wx-hint 3.2s ease-in-out infinite; }
.wx2-mini img { width: 44px; height: 44px; }
.wx2-mini b { font-size: 26px; font-weight: 900; text-shadow: 0 2px 0 #3d1f06; }
.wx2-mini b small { font-size: 14px; }
.wx2-mini span { font-size: 13px; font-weight: 900; text-shadow: 0 1px 0 #3d1f06; }
.wx2-mini:hover { filter: brightness(1.08); }
.wx2:not(.is-mini) { animation: wx-open .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: top left; }
.wx2:not(.is-mini) .wx2-x { display: grid; place-items: center; position: absolute; right: -12px; top: -14px; z-index: 6; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fffaf0; color: #6b3a14; font-size: 16px; font-weight: 900; box-shadow: inset 0 0 0 2px #8a5222, 0 3px 6px rgba(0, 0, 0, .3); }
.wx2:not(.is-mini)::after { right: 22px; }
@keyframes wx-open { from { transform: scale(.4); opacity: 0; } }
@keyframes wx-hint { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }

/* ===== ルーレット：さいしょは 小さく ===== */
.dash-rl.dash-rl--big { width: clamp(84px, 7vw, 110px) !important; transition: width .35s cubic-bezier(.3, 1.6, .5, 1); }
.dash-rl.dash-rl--big.is-big { width: clamp(170px, 14vw, 220px) !important; animation: none; }
.rl-tap { display: none; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: #ff8a1f; color: #fff; font-style: normal; font-size: 13px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 0 #c45f00; }
.dash-rl.is-big .rl-tap { display: block; }
@media (max-width: 720px) {
  .dash-rl.dash-rl--big { width: 78px !important; }
  .dash-rl.dash-rl--big.is-big { width: 150px !important; }
  .wx2.is-mini .wx2-mini { padding: 4px 12px 4px 6px; } .wx2-mini img { width: 34px; height: 34px; } .wx2-mini b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wx2.is-mini .wx2-mini, .wx2:not(.is-mini) { animation: none; } }

/* ===== 左メニュー：スマホの下メニューと同じ ポップな木とタイル ===== */
@media (min-width: 721px) {
  .app-side { background: repeating-linear-gradient(90deg, rgba(90, 40, 5, .08) 0 2px, transparent 2px 10px), linear-gradient(90deg, #9a5e2a, #7a4417); box-shadow: inset -3px 0 0 #5c3212, 4px 0 14px rgba(0, 0, 0, .25); }
  .app--dash .app-side { background: repeating-linear-gradient(90deg, rgba(90, 40, 5, .08) 0 2px, transparent 2px 10px), linear-gradient(90deg, rgba(154, 94, 42, .92), rgba(122, 68, 23, .92)); }
  .app-sidenav { gap: 6px; padding: 12px 10px; }
  .app-sidenav-item { height: auto; min-height: 46px; padding: 5px 10px 5px 6px; gap: 10px; border-radius: 14px; color: #5a2e0a; font-weight: 900;
    background: linear-gradient(180deg, #fff8ea, #f6e3c0); box-shadow: inset 0 -3px 0 rgba(160, 100, 40, .18), 0 3px 0 #5c3212; transition: transform .15s, filter .15s; }
  .app-sidenav-item:hover { background: linear-gradient(180deg, #fffdf6, #fbeccf); transform: translateX(3px); }
  .app-sidenav-item .ic { color: #8a5222; }
  .app-sidenav-ei { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .6); }
  .app-sidenav-ei img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
  .app-sidenav-item.is-active { color: #fff; text-shadow: 0 1px 0 #c2410c, 0 0 2px #c2410c;
    background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .45), transparent 60%), linear-gradient(180deg, #ffc23d, #ff8a1f);
    box-shadow: inset 0 0 0 2px #ffe08a, 0 3px 0 #b85400, 0 0 14px rgba(255, 190, 60, .6); transform: translateX(4px); }
  .app-sidenav-item.is-active .app-sidenav-ei { background: rgba(255, 255, 255, .85); }
  .app-sidenav hr { border-top: 2px dashed rgba(255, 230, 190, .35); margin: 6px 8px; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .app-sidenav { gap: 5px; padding: 8px 6px; }
  .app-sidenav-item { flex-direction: column; gap: 2px; min-height: 64px; padding: 5px 2px; margin: 0; }
  .app-sidenav-item:hover, .app-sidenav-item.is-active { transform: none; }
}
.reg-body + .reg-pre, .reg-body ~ .reg-pre { margin-top: 44px; }

/* ===== 背景の絵（app_header の 'bg'） ===== */
.app-main.has-page-bg { background: linear-gradient(180deg, rgba(238, 243, 250, .35), rgba(238, 243, 250, .7) 60%, rgba(238, 243, 250, .85)), var(--page-bg) center top / cover no-repeat fixed; min-height: 100vh; }
.has-page-bg .soon, .has-page-bg .plain, .has-page-bg .app-page { background: transparent; }
.has-page-bg .soon > * { backdrop-filter: blur(2px); }
/* 動物キャラ：町の地面に立つ（小さめ・さがして見つける） */
.map-char { transform: translate(-50%, -100%); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); animation: none; }
.map-char::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25); filter: blur(2px); z-index: -1; }
.map-char img { transform-origin: 50% 100%; animation: char-idle 2.6s ease-in-out infinite; }
.map-char:hover img { animation: char-hop .6s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes char-idle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
.cm-av { width: clamp(64px, 5vw, 86px) !important; }
@media (max-width: 720px) { .map-char { min-width: 34px; } }
/* 天気：はじめは大きく。「ちいさく」ボタンで札に */
.wx2:not(.is-mini) .wx2-x { width: auto; height: 34px; padding: 0 14px 0 8px; gap: 4px; right: -10px; top: -16px; border-radius: 999px; display: flex; align-items: center;
  background: #fffaf0; color: #6b3a14; font-size: 13px; font-weight: 900; animation: wx-x-hint 2.4s ease-in-out 1s 3; }
.wx2-x span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #8a5222; color: #fff; font-size: 16px; line-height: 1; }
.wx2-x:hover { background: #fff1dc; }
@keyframes wx-x-hint { 0%, 100% { transform: none; } 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.wx2.is-mini .wx2-mini::after { content: "ひらく"; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); font-size: 11px; font-weight: 900; }
/* 動物キャラ：さわると 大きくなる（足もとを起点に） */
.map-char { transition: transform .1s; }
.map-char img { transition: scale .45s cubic-bezier(.3, 1.6, .5, 1); scale: 1; }
.map-char.is-big { z-index: 8; }
.map-char.is-big img { scale: 3.2; }
.map-char.is-big::after { transform: scaleX(2.4); }
.map-char:not(.is-big)::before { content: ""; position: absolute; left: 50%; top: -14px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 8px 3px rgba(255, 210, 63, .8); animation: find-me 1.8s ease-in-out infinite; }
@keyframes find-me { 0%, 100% { transform: translateY(0) scale(.8); opacity: .6; } 50% { transform: translateY(-4px) scale(1.1); opacity: 1; } }
/* コメントのキャラ：地図の地面に立つ（小さめ・さわると大きく） */
.cm-stage.is-in-map { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.cm-stage.is-in-map .cm-actor { width: 3.4%; transform: translate(-50%, -100%); flex-direction: column-reverse; }
.cm-stage.is-in-map .cm-av { width: 100% !important; max-height: none; animation: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transform-origin: 50% 100%; transition: scale .45s cubic-bezier(.3, 1.6, .5, 1); }
.cm-stage.is-in-map .cm-av--txt { width: 100% !important; height: auto; aspect-ratio: 1; font-size: clamp(12px, 1.2vw, 22px); }
.cm-stage.is-in-map .cm-actor:not(.is-quiet) .cm-av, .cm-stage.is-in-map .cm-actor:hover .cm-av { scale: 2.6; }
.cm-stage.is-in-map .cm-say { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; width: max-content; max-width: 220px; }
.cm-stage.is-in-map .cm-actor:not(.is-quiet) .cm-say, .cm-stage.is-in-map .cm-actor:hover .cm-say { margin-bottom: calc(160% + 10px); }
.cm-stage.is-in-map .cm-actor:not(.is-quiet) .cm-av--txt, .cm-stage.is-in-map .cm-actor:hover .cm-av--txt { scale: 1.7; }
/* 桜の木：さわると花びら */
.map-toy--sakura { background: none !important; border-radius: 50%; }
.map-toy--sakura.is-shake { animation: none; }
.fx-petal { position: fixed; z-index: 95; width: 11px; height: 8px; border-radius: 80% 10% 80% 10%; pointer-events: none; box-shadow: inset -1px -1px 0 rgba(230, 110, 150, .35); }

/* ===== スマホのファーストビュー：アイコンの大きさを そろえる ＋ ポップな天気 ===== */
@media (max-width: 720px) {
  /* 右のボタン列：48px にそろえる */
  .app--dash .dash-tools { top: 10px; right: 8px; gap: 8px; }
  .dash-sound { gap: 8px; }
  .dash-sound button.wt { width: 48px; height: 54px; border-width: 3px; border-radius: 14px; }
  .dash-sound button.wt + button.wt { border-top-width: 3px; }
  .wt img { width: 30px; height: 30px; top: 3px; }
  .wt-lb { height: 17px; font-size: 9px; letter-spacing: 0; }
  .wt-lb::before, .wt-lb::after, .wt::before { display: none; }
  .wt-off { font-size: 8.5px; padding: 1px 4px; right: -6px; top: -6px; }
  .dash-zoom button { width: 48px; height: 40px; font-size: 18px; }
  .dash-ct { width: 56px !important; right: 8px !important; bottom: auto !important; top: 244px; border-radius: 16px; padding: 4px; }
  .dash-ct b { font-size: 9px; bottom: -9px; padding: 1px 6px; }
  .dash-rl.dash-rl--big { width: 70px !important; right: 4px; bottom: 186px; }
  .dash-rl.dash-rl--big.is-big { width: 140px !important; }
  /* コメント欄：入力をひろく */
  .cm-bar { padding: 6px; gap: 6px; }
  .cm-me { width: 36px !important; height: 36px !important; }
  .cm-send { min-height: 44px !important; padding: 0 14px !important; font-size: 14px !important; }
  #cm-input::placeholder { font-size: 13px; }
  .dash-map-hint { bottom: 86px !important; font-size: 12px; }
  .cm-stage.is-in-map .cm-actor:not(.is-quiet) .cm-av, .cm-stage.is-in-map .cm-actor:hover .cm-av { scale: 1.6; }
  .cm-stage.is-in-map .cm-actor:not(.is-quiet) .cm-av--txt { scale: 1.3; }
  .cm-stage.is-in-map .cm-say { max-width: 170px; font-size: 12px; padding: 6px 10px; }

  /* 天気：ポップなカプセル */
  .dash-greet.wx.wx2 { left: 8px; top: 10px; width: calc(100% - 76px); padding: 0; border-radius: 22px; background: none; box-shadow: none; }
  .wx2::before, .wx2::after, .wx2-plank, .wx2-loc { display: none !important; }
  .wx2-in { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto; align-items: center; gap: 0 8px; min-height: 0; padding: 8px 12px 8px 6px; border-radius: 22px; overflow: visible;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .55), transparent 55%), linear-gradient(135deg, #5cc6ff, #2f8bff 60%, #6a6bff); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6), 0 5px 0 #1f5fc4, 0 10px 18px rgba(20, 60, 140, .35); }
  .wx2 .wx-now { grid-row: 1; width: 58px; height: 58px; margin: -14px 0 -8px -4px; animation: wx-sun-bob 3s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
  @keyframes wx-sun-bob { 50% { transform: translateY(-4px) rotate(6deg); } }
  .wx2-info { grid-column: 2; margin: 0; padding: 0; background: none; }
  .wx2-date { display: none !important; }
  .wx2-row { gap: 8px; }
  .wx2-temp { color: #fff !important; }
  .wx2-temp b { font-size: 34px; -webkit-text-stroke: 2px #1f5fc4; paint-order: stroke fill; text-shadow: 0 3px 0 #1f5fc4; }
  .wx2-temp small { font-size: 16px; }
  .wx2-hl { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; }
  .wx2-hl div { gap: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
  .wx2-hl dt { font-size: 10px; } .wx2-hl dd { font-size: 13px; }
  .wx2-info::after { content: attr(data-label); }
  .wx2-next { display: flex !important; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin: 0; padding: 3px 8px 3px 4px; gap: 3px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: none; }
  .wx2-next img { width: 26px; height: 26px; }
  .wx2-next small { font-size: 0; } .wx2-next small::before { content: "あした"; font-size: 9.5px; }
  .wx2-next b { font-size: 11.5px; }
  .wx2:not(.is-mini) .wx2-x { right: -6px; top: -12px; height: 26px; padding: 0 8px 0 4px; font-size: 11px; }
  .wx2-x span { width: 16px; height: 16px; font-size: 13px; }
  .wx2.is-mini .wx2-mini { background: linear-gradient(135deg, #5cc6ff, #2f8bff); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 4px 0 #1f5fc4; }
}
@media (max-width: 720px) {
  .dash-greet.wx2 p.wx2-temp { display: flex; align-items: baseline; }
  .wx2-in { grid-template-columns: 56px auto 1fr; }
  .wx2-next { grid-column: 3 !important; }
  .wx2-info { grid-column: 2; }
}
@media (max-width: 720px) {
  .wx2-hl dt, .wx2-hl dd, .wx2-next b, .wx2-next small { white-space: nowrap; }
  .wx2-hl div { padding: 1px 7px; }
  .wx2-temp b { font-size: 30px; }
  .wx2-in { gap: 0 6px; padding-right: 8px; }
  .wx2-next { padding: 2px 6px 2px 3px; } .wx2-next img { width: 22px; height: 22px; } .wx2-next b { font-size: 10.5px; }
  .dash-map-hint { animation: hint-out .6s ease 5s forwards; }
  @keyframes hint-out { to { opacity: 0; visibility: hidden; } }
}
/* マップのキャラの 小さな吹き出し（いつも出ている） */
.mc-say { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 2; transform: translateX(-50%); width: max-content; max-width: 150px; padding: 4px 9px; border-radius: 12px; background: #fff; color: #3b2a14;
  font-size: 11.5px; font-weight: 900; line-height: 1.35; text-align: center; white-space: nowrap; box-shadow: 0 3px 8px rgba(0, 0, 0, .22), inset 0 0 0 2px #ffcf8a; pointer-events: none; }
.mc-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mc-say.is-pop { animation: mc-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes mc-pop { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.map-char.is-big .mc-say { bottom: calc(320% + 12px); }
.map-char:not(.is-big)::before { top: -26px; display: none; }
@media (max-width: 720px) { .mc-say { font-size: 10px; padding: 3px 7px; max-width: 120px; } }

/* ===== ミニゲームは 左下に まとめる ===== */
.dash-games { position: absolute; z-index: 6; left: 14px; bottom: 96px; display: flex; align-items: flex-end; gap: 8px; padding: 22px 10px 10px; border-radius: 20px;
  background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .1) 0 2px, transparent 2px 9px), linear-gradient(180deg, rgba(192, 122, 60, .95), rgba(138, 82, 34, .95)); box-shadow: inset 0 0 0 3px #6b3a14, 0 10px 22px rgba(0, 0, 0, .3); }
.dash-games-title { position: absolute; left: 12px; top: -14px; margin: 0; padding: 3px 14px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 900; background: linear-gradient(180deg, #ffa14a, #f07400); box-shadow: 0 3px 0 #c45f00; text-shadow: 0 1px 0 #a04a00; }
.dg-btn { position: relative; display: grid; justify-items: center; gap: 2px; width: clamp(78px, 6.4vw, 104px); padding: 0; border: 0; background: none; cursor: pointer; animation: none !important; }
.dg-btn img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.dg-btn:hover img { transform: translateY(-6px) scale(1.08) rotate(-4deg); }
.dg-btn:active img { transform: scale(.92); }
.dg-btn b { padding: 2px 8px; border-radius: 999px; background: #fffaf0; color: #5a2e0a; font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 2px 0 #6b3a14; }
.dg-btn:nth-child(2) img { animation: dg-bob 3s ease-in-out infinite; } .dg-btn:nth-child(3) img { animation: dg-bob 3s ease-in-out -1s infinite; } .dg-btn:nth-child(4) img { animation: dg-bob 3s ease-in-out -2s infinite; }
@keyframes dg-bob { 50% { transform: translateY(-4px); } }
@media (min-width: 1081px) { .app--dash .dash-games { position: fixed; left: calc(var(--side-w) + 16px); bottom: 100px; transition: left .25s; } }
@media (max-width: 720px) {
  .dash-games { left: 6px; bottom: 84px; gap: 4px; padding: 16px 6px 6px; border-radius: 16px; }
  .dash-games-title { font-size: 11px; top: -11px; padding: 2px 10px; }
  .dg-btn { width: 58px; } .dg-btn b { font-size: 8.5px; padding: 1px 5px; }
}
@media (prefers-reduced-motion: reduce) { .dg-btn img { animation: none !important; } }
.dg-btn b { display: none; } .dg-btn { width: clamp(96px, 7.6vw, 124px); } @media (max-width: 720px) { .dg-btn { width: 70px; } }
@media (max-width: 720px) { .dg-btn { width: 62px; } .dash-games { padding: 14px 5px 5px; } }

/* ===== 左メニュー：「あそぶ」「かんり」タブ ===== */
.app-sidetabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 10px 0; padding: 4px; border-radius: 14px; background: rgba(60, 30, 5, .45); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.app-sidetabs button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: transparent; color: #ffe9c4; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.app-sidetabs button img { width: 22px; height: 22px; }
.app-sidetabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #ffc23d, #ff8a1f); box-shadow: 0 3px 0 #b85400; text-shadow: 0 1px 0 #c2410c; }
.app-sidetabs button[data-side-tab="admin"][aria-selected="true"] { background: linear-gradient(180deg, #7aa8ff, #3d6fe0); box-shadow: 0 3px 0 #22469e; text-shadow: 0 1px 0 #22469e; }
.app-sidenav[data-side-panel="admin"] .app-sidenav-item.is-active { background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .45), transparent 60%), linear-gradient(180deg, #7aa8ff, #3d6fe0); box-shadow: inset 0 0 0 2px #b9d0ff, 0 3px 0 #22469e; }
@media (min-width: 721px) and (max-width: 1080px) {
  .app-sidetabs { grid-template-columns: 1fr; margin: 6px 6px 0; }
  .app-sidetabs button { flex-direction: column; min-height: 46px; font-size: 10px; gap: 0; }
}
@media (max-width: 720px) { .app-sidetabs { margin: 12px 12px 4px; } }
/* コメントのキャラ：右上の × で けせる */
.cm-x { position: absolute; right: -8px; top: -8px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #6b3a14; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer;
  box-shadow: inset 0 0 0 2px #8a5222, 0 2px 4px rgba(0, 0, 0, .3); }
.cm-x:hover { background: #ffe1d6; color: #c2410c; transform: scale(1.1); }
.cm-actor.is-bye { animation: cm-bye .35s ease-in forwards; }
@keyframes cm-bye { to { transform: translate(-50%, -100%) scale(0) rotate(20deg); opacity: 0; } }
@media (max-width: 720px) { .cm-x { width: 20px; height: 20px; font-size: 13px; } }
/* ゲーム：ドックは 3つ＋右はしに 大きな「ゲーム」 */
.dg-btn.dg-more { display: none; }
.dg-btn.dg-center { width: clamp(118px, 9.4vw, 150px); margin-left: 4px; }
.dg-btn.dg-center img { animation: dg-glow 2s ease-in-out infinite !important; }
@keyframes dg-glow { 50% { transform: translateY(-5px) scale(1.04); filter: drop-shadow(0 0 14px rgba(255, 220, 80, .9)) drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); } }
@media (max-width: 720px) { .dg-btn.dg-center { width: 82px; } }
.gc { width: min(860px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; }
.gc::backdrop { background: rgba(30, 20, 5, .55); backdrop-filter: blur(3px); }
.gc[open] .gc-in { animation: zk-pop-in .45s cubic-bezier(.3, 1.6, .5, 1); }
.gc-in { position: relative; padding: 22px; border-radius: 26px; max-height: 92vh; overflow: auto; background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .08) 0 2px, transparent 2px 10px), linear-gradient(180deg, #c98a4b, #9a5d27); box-shadow: inset 0 0 0 4px #6b3a14, 0 24px 60px rgba(0, 0, 0, .45); }
.gc-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fffaf0; color: #6b3a14; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: inset 0 0 0 3px #8a5222; }
.gc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 900; text-shadow: 0 3px 0 #3d1f06; }
.gc-title img { width: 64px; height: auto; }
.gc-lead { margin: 0 0 14px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 250, 238, .95); font-weight: 800; font-size: 14px; color: #3b2a14; }
.gc-lead b { color: #e06a00; }
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gc-card { display: grid; justify-items: center; gap: 4px; padding: 10px 8px 12px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; color: #3b2a14; background: linear-gradient(180deg, #fffaf0, #fbefd6); box-shadow: inset 0 0 0 2px #f1d9a8, 0 4px 0 #6b3a14; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.gc-card:hover { transform: translateY(-6px) rotate(-1deg) scale(1.03); }
.gc-card img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
.gc-card b { font-size: 16px; font-weight: 900; }
.gc-card small { font-size: 12px; font-weight: 700; color: #6b5a3e; line-height: 1.4; }
@media (max-width: 720px) { .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gc-in { padding: 14px; } }
/* 左メニューの下：大きな「ゲーム」 */
.side-game { display: grid; justify-items: center; gap: 2px; margin: 8px 12px 14px; padding: 6px 4px 10px; border-radius: 18px; text-decoration: none; background: radial-gradient(circle at 50% 35%, rgba(255, 230, 140, .35), transparent 65%); }
.side-game[hidden] { display: none; }
.side-game img { width: 100%; max-width: 180px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); animation: dg-glow 2s ease-in-out infinite; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.side-game:hover img { transform: scale(1.08) rotate(-3deg); }
.side-game span { padding: 3px 12px; border-radius: 999px; background: #fffaf0; color: #e06a00; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 2px 0 #6b3a14; }
@media (min-width: 721px) and (max-width: 1080px) { .side-game { margin: 6px; } .side-game span { font-size: 9px; padding: 2px 6px; } }

/* ===== スマホFV：すっきり（天気は左にたたむ・ゲームは1つ・コメントは小さく） ===== */
.dg-btn.dg-center { display: none; }
@media (max-width: 720px) {
  /* 天気：左はしの 小さな札 */
  .dash-greet.wx.wx2.is-mini { left: 0; top: 12px; width: auto; }
  .wx2.is-mini .wx2-mini { padding: 4px 10px 4px 6px; border-radius: 0 16px 16px 0; gap: 4px; background: linear-gradient(135deg, #5cc6ff, #2f8bff); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 3px 0 #1f5fc4; animation: none; }
  .wx2.is-mini .wx2-mini img { width: 30px; height: 30px; }
  .wx2.is-mini .wx2-mini b { font-size: 18px; }
  .wx2.is-mini .wx2-mini span, .wx2.is-mini .wx2-mini::after { display: none; }
  /* 右のボタン列：ズームは しまう（ゆび2本で OK） */
  .dash-zoom { display: none !important; }
  .dash-sound button.wt { width: 44px; height: 48px; }
  .wt img { width: 26px; height: 26px; }
  .wt-lb { height: 15px; font-size: 8px; }
  /* ゲーム：「ゲーム」1つだけ（タップで 一覧） */
  .dash-games { left: 6px; bottom: 76px; padding: 0; background: none; box-shadow: none; }
  .dash-games-title, .dash-games .dg-btn:not(.dg-center) { display: none !important; }
  .dash-games .dg-btn.dg-center { display: grid; width: 74px; margin: 0; }
  .dash-games .dg-btn.dg-center img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
  /* コメント：小さめ */
  .cm-bar { left: auto !important; right: 8px; bottom: 10px !important; transform: none; width: calc(100% - 96px) !important; max-width: 300px; min-height: 0; padding: 4px 4px 4px 12px !important; gap: 4px; border-radius: 999px; }
  .cm-me { display: none !important; }
  #cm-input { height: 38px; font-size: 13px; }
  .cm-send { min-height: 38px !important; width: 38px; padding: 0 !important; border-radius: 50%; display: grid; place-items: center; }
  .cm-send-tx { display: none; }
  .dash-map-hint { display: none !important; }
}
/* 場所の吹き出し：ひとまわり小さく */
.map-spot-btn { gap: 7px !important; padding: 5px 6px 5px 5px !important; border-radius: 10px; }
.map-spot-ic { width: 32px !important; height: 32px !important; border-radius: 8px; }
.map-spot-ic img, .map-spot-ic .ic { max-width: 26px; max-height: 26px; }
.map-spot-name b { font-size: clamp(12.5px, 1.1cqw, 17px) !important; }
.map-spot-name small { font-size: 10.5px; }
.map-spot-go { width: 24px !important; height: 24px !important; }
@media (max-width: 720px) {
  .map-spot-btn { min-height: 0 !important; padding: 4px 8px 4px 4px !important; gap: 5px !important; }
  .map-spot-ic { width: 26px !important; height: 26px !important; }
  .map-spot-name b { font-size: 11.5px !important; }
}

/* ===== スマホのメニュー（右上 ≡ で出る引き出し）：木の板＋ポップなタイル ===== */
@media (max-width: 720px) {
  .app-side { width: min(300px, 84vw); padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 12px);
    background: repeating-linear-gradient(90deg, rgba(90, 40, 5, .08) 0 2px, transparent 2px 10px), linear-gradient(90deg, #a8672f, #7a4417); box-shadow: 8px 0 30px rgba(0, 0, 0, .4); }
  .app-sidetabs { margin: 14px 12px 6px; }
  .app-sidetabs button { min-height: 44px; font-size: 15px; }
  .app-sidenav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px; }
  .app-sidenav[hidden] { display: none; }
  .app-sidenav-item { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 92px; padding: 10px 6px; border-radius: 18px; text-align: center;
    color: #5a2e0a; font-size: 13px; font-weight: 900; white-space: normal; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere;
    background: linear-gradient(180deg, #fff8ea, #f6e3c0); box-shadow: inset 0 -3px 0 rgba(160, 100, 40, .18), 0 4px 0 #5c3212; }
  .app-sidenav-item > span:last-child { overflow: visible; text-overflow: clip; }
  .app-sidenav-ei { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .7); flex: none; }
  .app-sidenav-ei img { width: 40px !important; height: 40px !important; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
  .app-sidenav-item.is-active { color: #fff; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .45), transparent 60%), linear-gradient(180deg, #ffc23d, #ff8a1f); box-shadow: inset 0 0 0 2px #ffe08a, 0 4px 0 #b85400; }
  .app-sidenav[data-side-panel="admin"] .app-sidenav-item.is-active { background: linear-gradient(180deg, #7aa8ff, #3d6fe0); box-shadow: inset 0 0 0 2px #b9d0ff, 0 4px 0 #22469e; }
  .app-sidenav-item:active { transform: translateY(3px) scale(.97); }
  .side-game { margin: 10px 30px 16px; }
  .side-game img { max-width: 150px; }
}

/* ===== スマホのメニュー：木の立て札（ChatGPT案「かわいい森の木製メニュー」） ===== */
@media (max-width: 720px) {
  .app-side { width: min(340px, 88vw); background: #6b3d17 var(--menu-bg, none) center top / cover no-repeat; }
  .app-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60, 30, 5, .15), transparent 60%); pointer-events: none; }
  .app-sidetabs { position: relative; z-index: 1; margin: 16px 14px 10px; padding: 5px; border-radius: 14px;
    background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .14) 0 2px, transparent 2px 8px), linear-gradient(180deg, #9a5e2a, #6b3d17); box-shadow: inset 0 0 0 2px #4a2708, 0 4px 0 #3d1f06; }
  .app-sidenav { position: relative; z-index: 1; display: flex !important; flex-direction: column; gap: 8px; padding: 4px 14px 4px 8px; }
  .app-sidenav[hidden] { display: none !important; }
  .app-sidenav-item { position: relative; flex-direction: row !important; justify-content: flex-start; gap: 0; min-height: 64px; padding: 0 30px 0 92px !important; border-radius: 10px 16px 16px 10px;
    font-size: 17px !important; letter-spacing: .02em; color: #4a2708 !important; text-align: left; text-shadow: 0 1px 0 rgba(255, 240, 210, .8);
    background: repeating-linear-gradient(176deg, rgba(120, 70, 20, .1) 0 2px, transparent 2px 9px), radial-gradient(120% 80% at 30% 20%, #f7d9a3, #e4b574 70%, #d49d57) !important;
    box-shadow: inset 0 0 0 2px rgba(120, 60, 10, .35), inset 0 3px 0 rgba(255, 240, 210, .6), 0 4px 0 #5c3212, 0 7px 10px rgba(0, 0, 0, .25) !important;
    clip-path: polygon(0 4%, 90% 0, 100% 50%, 90% 100%, 0 96%); transform: rotate(var(--tilt, 0deg)); }
  .app-sidenav-item:nth-child(3n+1) { --tilt: -1.2deg; margin-left: 4px; }
  .app-sidenav-item:nth-child(3n+2) { --tilt: .8deg; margin-left: 12px; }
  .app-sidenav-item:nth-child(3n) { --tilt: -.4deg; margin-left: 0; }
  .app-sidenav-item::after { content: "›"; position: absolute; right: 22px; top: 50%; transform: translateY(-52%); font-size: 26px; font-weight: 900; color: #6b3a14; }
  .app-sidenav-item::before { content: ""; position: absolute; left: 80px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe0a6, #8a5222 70%); box-shadow: 0 38px 0 0 #8a5222; }
  .app-sidenav-ei { position: absolute !important; left: -6px; top: 50%; width: 92px !important; height: 80px !important; transform: translateY(-50%) rotate(-6deg); background: none !important; border-radius: 0 !important; }
  .app-sidenav-ei img { width: 84px !important; height: 72px !important; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .3)) !important; }
  .app-sidenav-item:nth-child(even) .app-sidenav-ei { transform: translateY(-50%) rotate(5deg); }
  .app-sidenav-item.is-active { color: #fff !important; text-shadow: 0 2px 0 #b85400 !important;
    background: radial-gradient(120% 80% at 30% 20%, #ffd57a, #ff9d2e 70%, #f07400) !important; box-shadow: inset 0 0 0 2px #ffe08a, 0 4px 0 #b85400, 0 0 16px rgba(255, 190, 60, .6) !important; }
  .app-sidenav-item.is-active::after { color: #fff; }
  .app-sidenav[data-side-panel="admin"] .app-sidenav-item.is-active { background: radial-gradient(120% 80% at 30% 20%, #a9c8ff, #4f86f0 70%, #2f66e0) !important; box-shadow: inset 0 0 0 2px #cfe0ff, 0 4px 0 #22469e !important; text-shadow: 0 2px 0 #22469e !important; }
  .app-sidenav-item:active { transform: rotate(var(--tilt, 0deg)) translateY(3px); }
  /* 葉っぱを ところどころ */
  .app-sidenav-item:nth-child(2) > span:last-child::after, .app-sidenav-item:nth-child(5) > span:last-child::after, .app-sidenav-item:nth-child(7) > span:last-child::after {
    content: ""; position: absolute; right: 48px; bottom: -6px; width: 26px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M30 4C14 3 4 13 5 27c12 1 23-8 25-23z' fill='%234caf3a'/%3E%3Cpath d='M30 4 8 26' stroke='%232e7d22' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain; }
  .side-game { position: relative; z-index: 1; margin: 8px 20px 20px; }
}
@media (max-width: 720px) { .app-sidenav-item { clip-path: none !important; border-radius: 8px 30px 30px 8px / 8px 50% 50% 8px !important; overflow: visible !important; } .app-sidenav-item > span:last-child { overflow: visible !important; } }

/* 登録③：ラベルと注意書きを1行に（2026-09-26 縦を詰める） */
.reg-panel--issue .reg-fields > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.reg-panel--issue .reg-fields > label > input, .reg-panel--issue .reg-fields > label > select { flex: 1 0 100%; }
@media (max-width: 720px) { .reg-panel--avatar .reg-hint { display: none; } }
@media (max-width: 720px) {
  .reg-hero .reg-lead2 small { display: none !important; }
  .reg-shot { aspect-ratio: 16 / 10; }
  .reg-avbig:not(.has-av) { aspect-ratio: 16 / 7; }
  .reg-panel { padding: 14px; }
}

/* ============================================================
   地図の下（iPad・スマホ）… 2026-09-27 作り直し
   ・紺の四角リスト → 木の板の上に「絵つきミッションカード」を横スクロール
   ・天気は地図の札と同じなので出さない／数字は1列4つ／今日きた人は1列／メンバーはたたむ
   ============================================================ */
.dt-strip { list-style: none; margin: 0; padding: 0; }
.rp-count { margin-left: 6px; padding: 1px 9px; border-radius: 99px; background: #ffb13d; color: #5a2e0a; font-size: 12px; text-shadow: none; }
.rp-fold > summary { list-style: none; cursor: pointer; }
.rp-fold > summary::-webkit-details-marker { display: none; }
.rp-chev { margin-left: auto; width: 10px; height: 10px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.rp-fold[open] .rp-chev { transform: rotate(225deg) translate(-2px, -2px); }
.rp-fold[open] > .rp-card { margin-top: 10px; }
@media (max-width: 1080px) {
  .dash-today { margin: 0 !important; padding: 12px 10px 4px !important; border: 0 !important; border-radius: 0 !important; color: #3b2a14 !important;
    background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 12px), linear-gradient(180deg, #b8793e, #a86a33) !important;
    box-shadow: inset 0 4px 0 #6b3a12, inset 0 7px 0 #d9a560 !important; }
  .dash-today .rp-plank { margin: 0 0 10px; }
  .dash-today .rp-plank a { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: #fffaf0; color: #6b3a12; font-size: 11.5px; text-shadow: none; text-decoration: none; }
  .dash-today .dt-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px 18px; margin: 0 -10px; scroll-padding-left: 18px; text-align: left; scrollbar-width: none; }
  .dt-strip::-webkit-scrollbar { display: none; }
  .dash-today .dt-strip li { flex: none; width: 148px; scroll-snap-align: start; transform: rotate(var(--tilt, 0deg)); }
  .dt-strip li:last-child { margin-right: 14px; }
  .dash-today .dt-strip a { display: flex; flex-direction: column; height: 100%; padding: 6px 6px 8px; border-radius: 16px; text-decoration: none; color: #3b2a14;
    background: linear-gradient(180deg, #fffaf0, #fbefd8); box-shadow: inset 0 0 0 2px #f1d9a8, 0 4px 0 #6b3a12, 0 8px 12px rgba(40, 20, 0, .25); }
  .dt-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; background: #ffe9c7; }
  .dt-img img { width: 100%; height: 100%; object-fit: cover; }
  .dt-img em { position: absolute; left: -2px; top: 6px; padding: 2px 8px 2px 7px; border-radius: 0 99px 99px 0; background: linear-gradient(180deg, #ff6b4a, #e8412d); color: #fff;
    font-size: 10.5px; font-weight: 900; font-style: normal; box-shadow: 0 2px 0 #a82a18; }
  .dt-strip b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin: 7px 2px 5px; font-size: 13px; font-weight: 900; line-height: 1.3; }
  .dt-rw { display: flex; gap: 8px; margin: auto 2px 0; }
  .dt-rw i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 900; font-size: 12.5px; color: #b75a00; }
  .dt-rw i::before { content: ""; width: 16px; height: 16px; background-position: center; background-size: contain; background-repeat: no-repeat; }
  .dt-exp::before { background-image: url(../assets/rpg/ei/star.webp); }
  .dt-rn::before { background-image: url(../assets/rpg/ei/coin.webp); }
  .dash-right.rp { margin: 0; border-radius: 0; padding-top: 4px !important; box-shadow: inset 4px 0 0 #6b3a12, inset -4px 0 0 #6b3a12 !important; background: linear-gradient(180deg, #a86a33, #9a5f2a) !important; }
  .dash-today { box-shadow: inset 4px 0 0 #6b3a12, inset -4px 0 0 #6b3a12, inset 0 4px 0 #6b3a12 !important; }
  .dash-right .rp-now { display: none; }
}
@media (max-width: 720px) {
  .rp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .rp-tile { flex-direction: column; justify-content: center; gap: 0; min-height: 0; padding: 6px 2px 5px; text-align: center; }
  .rp-tile img { width: 30px; height: 30px; }
  .rp-tile span { align-items: center; }
  .rp-tile small { order: 2; font-size: 9.5px; letter-spacing: -.02em; }
  .rp-tile b { font-size: 21px; line-height: 1.05; }
  .rp-people:not(.rp-members) ul { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
  .rp-people:not(.rp-members) ul::-webkit-scrollbar { display: none; }
  .rp-people:not(.rp-members) li { flex: none; width: 58px; }
  .rp-plank { font-size: 15.5px; padding: 7px 12px; }
}
/* 右パネル：天気は地図の天気カードと重なるので 時計だけ／メンバー名が「…」で切れないよう3列 */
.rp-now .rp-temp { display: none; }
.rp-members ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reg-panel--issue .cta-issue span { white-space: nowrap; }
@media (min-width: 721px) { .reg-panel--issue .cta-issue { font-size: clamp(17px, 1.3vw, 21px); } }

/* ============ 公開サイト化（2026-09-27）：ゲストの ログインボタン／スポンサーは 見るだけ ============ */
.app-login { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: linear-gradient(180deg, #ffa14a, #ff8a1f); color: #fff; font-weight: 900; font-size: 14px; text-decoration: none; box-shadow: 0 3px 0 #c45f00; white-space: nowrap; }
.app-login .ic { width: 18px; height: 18px; }
.app-user-note { margin: 0 0 4px; padding: 6px 10px; border-radius: 10px; background: #fff0dc; color: #c25e00; font-size: 12px; font-weight: 800; }
/* スポンサー：書きこみの ボタン・フォームは 出さない（サーバー側でも ことわる） */
.is-readonly form[method="post" i] button, .is-readonly form[method="post" i] [type=submit], .is-readonly .us-addbox, .is-readonly .spa-add, .is-readonly .mk-add, .is-readonly .mk-add-btn,
.is-readonly [data-edit], .is-readonly [data-avatar], .is-readonly [data-del], .is-readonly .bk-more, .is-readonly .us-more, .is-readonly .nk-add, .is-readonly .reg-pre { display: none !important; }
.is-readonly form[method="post" i] :is(input, select, textarea, label) { pointer-events: none; }
.is-readonly form[method="post" i] :is(input, select, textarea) { background: #f6f2ea !important; }
.is-readonly .bk-add, .is-readonly a[href="card_print.php"], .is-readonly a[href="touroku.php"], .is-readonly .bk-cam, .is-readonly .nk-pen, .is-readonly .bk-card-actions { display: none !important; }
/* ミッション：リスト／マップの きりかえ（木の板の 2つボタン） */
.mtab { position: relative; z-index: 6; display: flex; gap: 6px; width: fit-content; margin: 0 auto 14px; padding: 5px; border-radius: 18px;
  background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 10px), linear-gradient(180deg, #b8793e, #8a5220); box-shadow: inset 0 0 0 2px #6b3a12, 0 5px 0 #4a2508, 0 10px 18px rgba(0, 0, 0, .25); }
.mtab-a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 10px; border-radius: 13px; color: #fff; font-weight: 900; font-size: 15px; text-decoration: none; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); }
.mtab-a img { width: 28px; height: 28px; }
.mtab-a:hover { transform: translateY(-2px); }
.mtab-a.is-on { background: linear-gradient(180deg, #fffaf0, #fbe7c2); color: #6b3a12; text-shadow: none; box-shadow: 0 3px 0 #d8b27a; }
.ms-map { position: relative; }
.ms-map > .mtab { position: absolute; left: 20px; top: 150px; margin: 0; }
@media (max-width: 720px) { .ms-map > .mtab { left: 50%; top: auto; bottom: 10px; transform: translateX(-50%); } }
@media (max-width: 720px) { .mtab-a { padding: 0 12px 0 8px; font-size: 14px; } .mtab-a img { width: 24px; height: 24px; } }
/* 天気：吹き出しは 1行、場所の札は「ちいさく」と重ならない位置に */
.wx2-say { white-space: nowrap; word-break: keep-all; }
.wx2:not(.is-mini) .wx2-loc { right: 120px !important; }

/* ============ おしらせの 看板（トップの右下）2026-09-27 ============ */
.nb { position: absolute; z-index: 7; right: 16px; bottom: 16px; width: min(360px, 34vw); aspect-ratio: 900 / 547; filter: drop-shadow(0 10px 16px rgba(40, 20, 0, .35));
  transform-origin: 80% 100%; animation: nb-in .7s .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.app--dash .nb { right: calc(var(--right-w, 0px) + 16px); }
body.fold-right.app--dash .nb { right: 16px; }
.nb[hidden] { display: none; }
@keyframes nb-in { from { transform: translateY(40px) rotate(4deg) scale(.6); opacity: 0; } }
.nb.is-bye { animation: nb-bye .26s ease-in forwards; }
@keyframes nb-bye { to { transform: translateY(30px) rotate(6deg) scale(.5); opacity: 0; } }
.nb-img { display: block; width: 100%; height: 100%; animation: nb-sway 5s ease-in-out 1.2s infinite; transform-origin: 50% 100%; }
@keyframes nb-sway { 50% { transform: rotate(-.8deg); } }
.nb-hit { position: absolute; top: 36%; height: 50%; border-radius: 12px; transition: background .2s, transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.nb-hit--1 { left: 5%; width: 44%; } .nb-hit--2 { left: 51%; width: 44%; }
.nb-hit:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px) rotate(-1deg); }
.nb-x { position: absolute; right: 3%; top: 15%; width: 12%; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.nb-x:hover { background: rgba(255, 255, 255, .25); }
.nb-open { position: absolute; z-index: 7; right: calc(var(--right-w, 0px) + 16px); bottom: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; font: inherit; font-weight: 900; font-size: 15px; background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px), linear-gradient(180deg, #b8793e, #8a5220); box-shadow: inset 0 0 0 2px #6b3a12, 0 4px 0 #4a2508; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.nb-open[hidden] { display: none; }
.nb-open img { width: 30px; height: 30px; animation: nb-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes nb-ring { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(16deg); } 84% { transform: rotate(-14deg); } 92% { transform: rotate(8deg); } }
body.fold-right.app--dash .nb-open { right: 16px; }
@media (max-width: 1080px) { .app--dash .nb, .app--dash .nb-open { right: 12px; } .nb { width: min(340px, 46vw); } }
@media (max-width: 720px) { .nb { width: 62vw; right: 8px !important; bottom: 70px; } .nb-open { right: 8px !important; bottom: 70px; min-height: 38px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .nb, .nb-img, .nb-open img { animation: none; } }
/* おしらせ：無地の紙に 文字（日付 小／見出し 大きくポップ／下の行） */
.nb { container-type: inline-size; }
.nb-paper { position: absolute; top: 40%; width: 40%; height: 44%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; text-align: center; pointer-events: none;
  font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 900; line-height: 1.12; transform: rotate(-1deg); }
.nb-paper--1 { left: 7%; } .nb-paper--2 { left: 53%; transform: rotate(1deg); }
.nb-paper small { font-size: 5.6cqw; color: #4a2508; }
.nb-paper b { font-size: 8.4cqw; letter-spacing: .01em; word-break: keep-all; -webkit-text-stroke: .7cqw #fff; paint-order: stroke fill;
  filter: drop-shadow(0 .5cqw 0 rgba(90, 40, 0, .35)); }
.nb-paper--1 b { background: linear-gradient(180deg, #4fb3ff, #1f6fe0 55%, #ff8a1f 56%, #f07400); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; filter: drop-shadow(0 0 0 #fff) drop-shadow(.35cqw .35cqw 0 #fff) drop-shadow(-.35cqw -.35cqw 0 #fff) drop-shadow(0 .6cqw 0 rgba(20, 60, 140, .45)); }
.nb-paper--2 b { color: #ff8a1f; background: none; filter: drop-shadow(.4cqw .4cqw 0 #5a2a8a) drop-shadow(-.4cqw -.4cqw 0 #5a2a8a) drop-shadow(0 .8cqw 0 #3a1560); -webkit-text-stroke: .5cqw #ffe27a; }
.nb-paper em { font-style: normal; font-size: 4.6cqw; color: #e8412d; padding: .5cqw 1.6cqw; border-radius: 99px; background: rgba(255, 226, 150, .75); word-break: keep-all; }
.nb-paper--2 em { color: #fff; background: #6b3aa8; }
.nb-paper::before, .nb-paper::after { content: ""; position: absolute; width: 9cqw; height: 9cqw; background: center / contain no-repeat; }
.nb-paper--1::before { left: -3%; top: 4%; background-image: url(../assets/rpg/ei/heart.webp); }
.nb-paper--1::after { right: -2%; bottom: 4%; background-image: url(../assets/rpg/ei/star.webp); }
.nb-paper--2::before { left: -4%; top: 2%; background-image: url(../assets/rpg/ei/party.webp); }
.nb-paper--2::after { right: -3%; bottom: 6%; background-image: url(../assets/rpg/ei/star.webp); }
@media (min-width: 721px) { .nb, .nb-open { bottom: 88px !important; } }
.nb-paper { padding: 0 1.5cqw; box-sizing: border-box; overflow: hidden; }
.nb-paper b { font-size: 6.6cqw; line-height: 1.1; word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.nb-paper--1 b { background: none; color: #1f6fe0; -webkit-text-stroke: .6cqw #fff; paint-order: stroke fill; filter: drop-shadow(0 .5cqw 0 #ff8a1f); }
.nb-paper--2 b { font-size: 6.2cqw; }
.nb-paper small { font-size: 4.6cqw; }
.nb-paper em { font-size: 3.8cqw; }
.nb-paper::before, .nb-paper::after { width: 7cqw; height: 7cqw; }
.nb-paper b { white-space: nowrap; overflow-wrap: normal; font-size: 9cqw; }
.nb-paper em { white-space: normal; word-break: normal; line-break: strict; max-width: 100%; }
.nb-paper em { white-space: nowrap; }
.nb-paper--1::after, .nb-paper--2::after { bottom: -6%; right: -4%; }

/* ============ ヘッダー：ロゴの右に 町の名前「ヒガシヒマラヤ」（2026-09-27） ============ */
.town-tag { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-left: 10px; text-decoration: none; line-height: 1; font-family: "M PLUS Rounded 1c", sans-serif; }
.town-tag-jp { display: flex; }
.town-tag-jp i { font-style: normal; font-weight: 900; font-size: 19px; color: var(--c); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); display: inline-block; }
.town-tag-jp i:nth-child(odd) { transform: rotate(-5deg); } .town-tag-jp i:nth-child(even) { transform: translateY(2px) rotate(5deg); }
.town-tag:hover .town-tag-jp i { animation: tt-hop2 .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes tt-hop2 { 40% { translate: 0 -5px; } }
.town-tag-en { margin-left: 4px; padding: 2px 8px 3px; border-radius: 6px; font-weight: 900; font-size: 9px; letter-spacing: .18em; color: #fff; background: linear-gradient(180deg, #b8793e, #8a5220); box-shadow: inset 0 0 0 1.5px #6b3a12; }
@media (max-width: 720px) { .town-tag { margin-left: 4px; } .town-tag-jp i { font-size: 13px; -webkit-text-stroke: 3px #fff; } .town-tag-en { font-size: 7px; padding: 1px 5px 2px; } }
.map-char--hassy.is-pose img { animation: hassy-pose .45s cubic-bezier(.3, 1.8, .5, 1); transform-origin: 50% 100%; }
@keyframes hassy-pose { 0% { transform: scale(.85, 1.1); } 50% { transform: scale(1.08, .94) translateY(-4px); } }

/* ===== ようこそ ハッシー（トップを ひらいたとき） ===== */
.wel { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; cursor: pointer; }
.wel-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(255, 240, 180, .55), rgba(20, 10, 0, .45) 70%); animation: wel-fade .5s both; transition: opacity 1s; }
.wel.is-go .wel-glow { opacity: 0; }
@keyframes wel-fade { from { opacity: 0; } }
.wel-guy { position: relative; width: min(30vw, 300px); margin-top: 14vh; transition: transform 1.25s cubic-bezier(.55, -0.2, .35, 1); animation: wel-in .8s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes wel-in { from { transform: translateY(60vh) scale(.3) rotate(-12deg); } }
.wel-guy img { display: block; width: 100%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .35)); animation: wel-hop 1s .9s ease-in-out infinite; }
@keyframes wel-hop { 50% { transform: translateY(-14px) rotate(-3deg); } }
.wel-say { position: absolute; left: 50%; bottom: 100%; margin: 0 0 2px; transform: translateX(-50%); width: min(92vw, 640px); text-align: center; animation: wel-pop .6s .5s cubic-bezier(.3, 1.7, .5, 1) both; transition: opacity .3s; }
.wel-title { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(60, 25, 0, .35)); animation: wel-sway 2.4s 1.2s ease-in-out infinite; }
@keyframes wel-sway { 50% { transform: translateY(-5px) rotate(-1.2deg); } }
.wel-say small { display: inline-block; margin-top: -2px; padding: 7px 20px 8px; border-radius: 999px; font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 900; font-size: clamp(13px, 1.7vw, 18px); letter-spacing: .06em; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #7a4418, #5a2e0c); box-shadow: inset 0 0 0 2px #ffd23d, inset 0 3px 0 rgba(255, 255, 255, .25), 0 4px 0 #3a1c06, 0 8px 16px rgba(0, 0, 0, .3); animation: wel-pop .45s 1s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes wel-pop { from { transform: translateX(-50%) scale(.2); opacity: 0; } }
.wel-say small { animation-name: wel-pop2; }
@keyframes wel-pop2 { from { transform: scale(.2); opacity: 0; } }
.wel.is-go .wel-say { opacity: 0; }
.wel.is-go .wel-guy img { animation: none; }
@media (min-width: 721px) { .wel-guy { width: min(26vw, 260px, 30vh); margin-top: 34vh; } .wel-say { width: min(92vw, 560px, 58vh); } }
@media (max-width: 720px) { .wel-guy { width: 50vw; } }

/* ===== キャラさがし（左下の あそぶ の上） ===== */
.fd { position: absolute; left: 0; bottom: calc(100% + 12px); width: 100%; min-width: 280px; padding: 10px 12px 10px; border-radius: 18px; box-sizing: border-box;
  background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 10px), linear-gradient(180deg, #fffaf0, #fbefd8); box-shadow: inset 0 0 0 2px #f1d9a8, 0 4px 0 #6b3a12, 0 10px 18px rgba(0, 0, 0, .25); font-family: "M PLUS Rounded 1c", sans-serif; }
.fd.is-bump { animation: fd-bump .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fd-bump { 40% { transform: scale(1.06) rotate(-1deg); } }
.fd-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; }
.fd-title b { font-weight: 900; font-size: 16px; color: #6b3a12; }
.fd-n { font-weight: 900; font-size: 14px; color: #8a7a60; } .fd-n em { font-style: normal; font-size: 26px; color: #ff8a1f; margin-right: 2px; }
.fd-bar { height: 14px; border-radius: 99px; background: #eadcc0; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .15); overflow: hidden; }
.fd-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, #ffc21a 0 8px, #ff8a1f 8px 16px); transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
.fd.is-done .fd-bar i { background: repeating-linear-gradient(-45deg, #5cd67a 0 8px, #2dbd6e 8px 16px); }
.fd-faces { list-style: none; display: flex; gap: 4px; margin: 8px 0 0; padding: 0; }
.fd-faces li { flex: 1; aspect-ratio: 1; min-width: 0; border-radius: 50%; overflow: hidden; background: #e6dcc8; box-shadow: inset 0 0 0 2px #fff; }
.fd-faces img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: brightness(0) opacity(.25); transition: filter .4s; }
.fd-faces li.is-on { background: #fff4d6; box-shadow: inset 0 0 0 2px #ffc21a; }
.fd-faces li.is-on img { filter: none; animation: fd-face .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fd-face { from { transform: scale(.3); } }
.fd-pop { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 2px; width: max-content; max-width: 88vw; padding: 12px 22px 14px 22px; border-radius: 24px; text-align: center;
  background: #fff; box-shadow: 0 0 0 5px #ffc21a, 0 12px 26px rgba(0, 0, 0, .3); animation: fd-in .5s cubic-bezier(.3, 1.8, .5, 1); transition: opacity .35s, transform .35s; }
.fd-pop::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -12px; border: 12px solid transparent; border-top-color: #fff; }
.fd-pop.is-out { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); }
@keyframes fd-in { from { transform: translateX(-50%) translateY(30px) scale(.3); opacity: 0; } }
.fd-pop-face { width: 70px; height: 70px; margin-top: -48px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.fd-pop b { font-weight: 900; font-size: 26px; color: #ff5a3c; } .fd-pop b em { font-style: normal; font-size: 42px; color: #ff8a1f; margin-right: 2px; -webkit-text-stroke: 1.5px #fff; }
.fd-pop span { font-weight: 800; font-size: 13px; color: #6b5a3e; }
.fd-pop.is-comp { box-shadow: 0 0 0 5px #ffd23d, 0 0 30px rgba(255, 210, 60, .9), 0 12px 26px rgba(0, 0, 0, .3); }
.fd-pop.is-comp b { font-size: 40px; background: linear-gradient(180deg, #fffbe0, #ffe27a 40%, #f5a90e 70%, #c27400); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #7a3a00; filter: drop-shadow(0 3px 0 #8a4400); }
.fd-pop-row { display: flex; gap: 2px; margin-top: 4px; } .fd-pop-row img { width: 34px; height: 34px; object-fit: contain; animation: fd-face .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.fd-confetti { position: fixed; inset: 0; z-index: 130; width: 100vw; height: 100vh; pointer-events: none; }
@media (max-width: 1080px) { .fd { min-width: 230px; padding: 7px 9px; } .fd-title b { font-size: 13px; } .fd-n em { font-size: 20px; } .fd-faces { display: none; } }
@media (max-width: 720px) { .fd { min-width: 180px; bottom: calc(100% + 8px); } }

/* キャラさがし：木の札のタイトル＋コインの数字（2026-09-27） */
.fd { padding-top: 20px; overflow: visible; }
.fd-tab { position: absolute; left: 12px; top: -16px; display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 14px 5px 8px; border-radius: 10px; transform: rotate(-2deg);
  background: repeating-linear-gradient(178deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 8px), linear-gradient(180deg, #5cc8ff, #1f7fe0); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 3px 0 #0f4aa8, 0 6px 10px rgba(0, 0, 0, .2); }
.fd-tab svg { width: 20px; height: 20px; fill: rgba(255, 255, 255, .35); stroke: #fff; stroke-width: 2.6; stroke-linecap: round; animation: fd-look 2.4s ease-in-out infinite; }
@keyframes fd-look { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-2px, -1px) rotate(-8deg); } 60% { transform: translate(2px, 1px) rotate(8deg); } }
.fd-tab b { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: .06em; text-shadow: 0 2px 0 #0f4aa8; }
.fd-title { align-items: center; margin-bottom: 7px; }
.fd-lead { font-size: 12px; font-weight: 800; color: #8a6a3e; }
.fd-n { display: grid; place-items: center; grid-auto-flow: column; align-items: baseline; gap: 1px; min-width: 62px; height: 40px; padding: 0 10px; border-radius: 99px;
  background: radial-gradient(circle at 35% 30%, #fff6c0, #ffd23d 55%, #f5a90e); box-shadow: inset 0 -3px 0 rgba(150, 80, 0, .25), 0 0 0 2px #fff, 0 3px 0 #b36b00; }
.fd-n em { font-size: 24px; color: #8a4400; text-shadow: 0 1px 0 #fff; margin: 0; } .fd-n small { font-size: 13px; font-weight: 900; color: #a8660a; }
.fd.is-bump .fd-n { animation: fd-coin .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fd-coin { 40% { transform: scale(1.3) rotate(-10deg); } }
.fd-bar { position: relative; height: 16px; overflow: visible; }
.fd-bar i { border-radius: 99px; }
.fd-star { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: #d8cfc0; text-shadow: 0 0 0 #fff, 0 2px 0 rgba(0, 0, 0, .15); transition: color .4s; }
.fd.is-done .fd-star { color: #ffc21a; animation: fd-coin 1s ease-in-out infinite; }
@media (max-width: 1080px) { .fd-lead { display: none; } .fd-tab b { font-size: 12px; } .fd-tab svg { width: 16px; height: 16px; } .fd-n { height: 32px; min-width: 52px; } .fd-n em { font-size: 19px; } }

/* あそぶ（ゲームアイコン）：少し小さく・下へ。コメント欄は 右よせにして 重ならないように */
.dg-btn { width: clamp(60px, 4.8vw, 80px); }
@media (min-width: 1081px) {
  .app--dash .dash-games { bottom: 18px; }
  .app--dash .cm-bar { left: auto; right: calc(var(--right-w) + 18px); transform: none; width: min(520px, calc(100% - var(--side-w) - var(--right-w) - 360px)); }
  body.fold-right.app--dash .cm-bar { right: 18px; }
}
.fd-lead { white-space: nowrap; }
/* 左メニュー：ゲームの下に Produced by Forwards（いつも表示） */
.side-credit { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 14px 12px 8px; padding: 8px 10px; border-radius: 14px; text-decoration: none; background: rgba(255, 250, 238, .9); box-shadow: inset 0 0 0 1.5px #e3cfa6, 0 3px 0 rgba(90, 50, 10, .35); }
.side-credit small { font-size: 9.5px; font-weight: 700; color: #8a7a60; letter-spacing: .05em; }
.side-credit img { width: 110px; height: auto; display: block; }
.side-credit span { font-size: 10px; font-weight: 800; color: #5a4a36; }
body.fold-side .side-credit { display: none; }
.wx2:not(.is-mini) .wx2-in { background: var(--wx-scene) center bottom / cover no-repeat, #bfe6fb; }
/* 小さな カワセミ（タキミン）が 川の上を すーっと 飛んでいく */
.map-kawasemi { position: absolute; left: 0; top: 0; width: 3.2%; z-index: 4; pointer-events: none; animation: kw-fly 26s linear infinite; }
.map-kawasemi img { display: block; width: 100%; animation: kw-flap .28s ease-in-out infinite alternate; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
@keyframes kw-flap { to { transform: translateY(-3px) scaleY(.88) rotate(-6deg); } }
@keyframes kw-fly {
  0% { transform: translate(-60%, 0); left: 2%; top: 58%; }
  20% { left: 14%; top: 50%; }
  35% { left: 22%; top: 62%; }
  50% { left: 36%; top: 44%; }
  65% { left: 52%; top: 36%; }
  80% { left: 70%; top: 30%; }
  100% { left: 104%; top: 22%; }
}
@media (prefers-reduced-motion: reduce) { .map-kawasemi { display: none; } }
/* はばたきコマがあるとき：CSSの ゆらしは やめて、川の上を 低く まっすぐ */
.map-kawasemi.has-frames { width: 4.2%; animation: kw-river 14s cubic-bezier(.45, .05, .55, .95) infinite; }
.map-kawasemi.has-frames img { animation: kw-bob .5s ease-in-out infinite alternate; }
@keyframes kw-bob { to { transform: translateY(-2px) rotate(-2deg); } }
@keyframes kw-river {
  0% { left: -6%; top: 64%; opacity: 1; }
  30% { left: 12%; top: 57%; }
  45% { left: 20%; top: 52%; }
  60% { left: 30%; top: 47%; }
  78% { left: 46%; top: 40%; }
  100% { left: 106%; top: 26%; opacity: 1; }
}
/* 雲：絵の中の 本物の雲を 切りぬいて、その場で ゆっくり 流れて 形が ふわっと かわる（CSSの 白い だんごは やめた） */
.lv-cloud { display: none !important; }
.lv-cloud2 { position: absolute; z-index: 1; height: auto; pointer-events: none; will-change: transform; animation: lv-drift var(--d) ease-in-out infinite alternate; }
@keyframes lv-drift { 0% { transform: translateX(0) scale(1, 1); } 50% { transform: translateX(calc(var(--dx) * 8)) scale(1.04, .97); } 100% { transform: translateX(calc(var(--dx) * 16)) scale(.98, 1.03); opacity: .92; } }
@media (prefers-reduced-motion: reduce) { .lv-cloud2 { animation: none; } }
.map-kawasemi.has-frames { width: 3.6%; z-index: 5; animation-name: kw-river2; animation-duration: 16s; }
@keyframes kw-river2 {
  0% { left: -5%; top: 44%; }
  25% { left: 13%; top: 38%; }
  45% { left: 26%; top: 33%; }
  65% { left: 44%; top: 27%; }
  85% { left: 70%; top: 20%; }
  100% { left: 106%; top: 14%; }
}
/* パネルに かくれない 真ん中の帯を とぶ（左の川から 公園の上を ぬけて 右の空へ） */
@keyframes kw-river2 {
  0% { left: 8%; top: 56%; }
  20% { left: 24%; top: 52%; }
  40% { left: 38%; top: 47%; }
  60% { left: 52%; top: 40%; }
  80% { left: 66%; top: 30%; }
  100% { left: 96%; top: 18%; }
}
/* スマホ：ロゴと ヒガシヒマラヤが ぶつからないように／キャラさがしは 小さく */
@media (max-width: 720px) {
  .app-logo-img { width: 104px !important; height: auto; }
  .town-tag { margin-left: 2px; } .town-tag-en { display: none; } .town-tag-jp i { font-size: 12px; -webkit-text-stroke: 2.5px #fff; }
  .fd { min-width: 0; width: 150px; padding: 16px 8px 6px; }
  .fd-title { margin: 0 0 4px; } .fd-n { height: 26px; min-width: 44px; padding: 0 6px; } .fd-n em { font-size: 16px; } .fd-n small { font-size: 10px; }
  .fd-bar { height: 10px; } .fd-star { font-size: 16px; }
  .fd-tab { top: -13px; padding: 3px 10px 4px 6px; } .fd-tab b { font-size: 11px; } .fd-tab svg { width: 14px; height: 14px; }
  .fd-pop { left: 0; transform: none; } .fd-pop b { font-size: 20px; } .fd-pop b em { font-size: 30px; } .fd-pop-face { width: 52px; height: 52px; margin-top: -36px; }
  @keyframes fd-in { from { transform: translateY(30px) scale(.3); opacity: 0; } }
  .fd-pop.is-out { transform: translateY(10px) scale(.9); }
}
@media (max-width: 400px) { .app-logo-img { width: 88px !important; } .town-tag-jp i { font-size: 11px; } .app-bell { display: none !important; } .app-login { padding: 0 12px; font-size: 13px; } }
/* マップの 背景動画：絵の上に ぴったり（うごき出したら ふわっと 出す）。動画に 動きがあるので、絵を うごかしていた 小物は かくす */
.map-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .8s; }
body.has-map-video .map-video { opacity: 1; }
body.has-map-video :is(.lv-tree, .lv-swan, .lv-river, .lv-glints, .lv-cloud2) { display: none !important; }
/* とんでいる タキミン：タップで とまって じこしょうかい */
.map-kawasemi { pointer-events: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.map-kawasemi img { transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.map-kawasemi:hover img { filter: drop-shadow(0 0 8px #fff6a0) drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
.map-kawasemi.is-talk { animation-play-state: paused !important; z-index: 20; }
.map-kawasemi.is-talk img { transform: scale(2.4); }
.kw-say { position: absolute; left: 50%; bottom: calc(100% + 70px); transform: translateX(-50%) scale(.3); opacity: 0; width: max-content; max-width: 260px; padding: 10px 16px 12px; border-radius: 20px; text-align: left;
  background: #fff; box-shadow: 0 0 0 4px #5fc8ff, 0 10px 20px rgba(0, 0, 0, .25); font-family: "M PLUS Rounded 1c", sans-serif; pointer-events: none; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .25s; }
.kw-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff; }
.map-kawasemi.is-talk .kw-say { transform: translateX(-50%) scale(1); opacity: 1; }
.kw-say b { display: block; font-size: 15px; font-weight: 900; color: #1f6fe0; line-height: 1.4; }
.kw-say small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: #5a4a36; line-height: 1.5; }
@media (max-width: 720px) { .kw-say { max-width: 200px; bottom: calc(100% + 48px); } .map-kawasemi.is-talk img { transform: scale(2); } }
/* PC：マップを 少し 右へ（左の 電車が 見えるように） */
@media (min-width: 1081px) {
  .app--dash .dash-map-stage { left: calc(var(--side-w) - 75px) !important; transform: none !important; }
  body.fold-side.app--dash .dash-map-stage { left: -75px !important; }

}
/* スポットの吹き出し：下が 切れるときは 上に ひらく */
.map-pop.is-up { top: auto; bottom: calc(100% + 10px); }
.map-pop.is-up::before { top: auto; bottom: -8px; }
.map-pop { max-height: calc(100vh - 120px); overflow-y: auto; }

/* ===== ゲームの おわりに「ほかの ゲームで あそぶ！」 ===== */
.hub { margin: 12px -6px 0; padding: 10px 6px 4px; border-top: 2px dashed rgba(160, 110, 40, .3); }
.hub-t { margin: 0 0 8px !important; font-weight: 900 !important; font-size: 14px !important; color: #b35c00; text-align: center; }
.hub-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hub-row::-webkit-scrollbar { display: none; }
.hub-g { flex: none; width: 70px; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; font: inherit; }
.hub-g img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.hub-g span { font-size: 10.5px; font-weight: 900; color: #5a3a14; white-space: nowrap; }
.hub-g:hover img { transform: translateY(-4px) scale(1.08) rotate(-3deg); }
.hub-g:active img { transform: scale(.92); }
.rl-hub { position: absolute; z-index: 6; left: 8%; right: 8%; bottom: 14%; animation: rl-hub-in .45s cubic-bezier(.3,1.6,.5,1); padding: 8px 10px 2px; border-radius: 18px; background: rgba(255, 250, 238, .96); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.rl-hub .hub { margin: 0; padding-top: 2px; border: 0; }
@keyframes rl-hub-in { from { transform: translateY(30px) scale(.8); opacity: 0; } }

/* ===== ゲームクリア：金の「大成功！」ロゴ（ChatGPT）＋ キャラの ひとこと（全ゲーム共通） ===== */
.win-title { display: block; width: 100%; max-width: 420px; height: auto; margin: -6px auto 0; filter: drop-shadow(0 8px 12px rgba(80, 30, 0, .35)); animation: win-in .9s cubic-bezier(.25, 1.7, .45, 1) both, win-float 2.4s 1s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes win-in { 0% { transform: scale(2.4) rotate(-10deg); opacity: 0; filter: brightness(3) drop-shadow(0 0 30px #fff6a0); } 55% { transform: scale(.92) rotate(2deg); opacity: 1; } 75% { transform: scale(1.06) rotate(-1deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes win-float { 50% { transform: translateY(-5px) scale(1.02); } }
.win-say { display: inline-block; margin: 2px 0 10px !important; padding: 6px 18px 7px; border-radius: 999px; position: relative;
  font-weight: 900 !important; font-size: clamp(16px, 3.2vmin, 21px) !important; line-height: 1.3 !important; color: #fff !important; letter-spacing: .03em;
  background: linear-gradient(180deg, #ff8a4a, #e8412d); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #9a1f10, 0 6px 12px rgba(150, 30, 10, .3);
  text-shadow: 0 2px 0 rgba(120, 20, 0, .45); animation: win-pop .5s .6s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes win-pop { from { transform: scale(.3); opacity: 0; } }
.ry2-say { background: linear-gradient(180deg, #5fc8ff, #1e7fe0); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #0b3f7a, 0 6px 12px rgba(20, 60, 140, .3); }
.cr3-say { background: linear-gradient(180deg, #ff7fc4, #a03ad8); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #5c1a8a, 0 6px 12px rgba(100, 30, 140, .3); }
.vg-say, .kj-say { background: linear-gradient(180deg, #5cd67a, #1f8a3a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #0f5a22, 0 6px 12px rgba(20, 100, 40, .3); }
@media (prefers-reduced-motion: reduce) { .win-title, .win-say { animation: none; } }

/* クリアの カード：中身が はみ出さない（ロゴ・バッジ・ほかのゲーム） */
:is(.ct-card, .tw-card, .kj-card, .sb-card, .vg-card, .wt2-card, .mk2-card, .cr3-card, .ry2-card).is-win,
:is(.ct-card, .tw-card, .kj-card, .sb-card, .vg-card, .wt2-card, .mk2-card, .cr3-card, .ry2-card).is-clear { box-sizing: border-box; max-width: calc(100% - 16px); min-width: 0; overflow: visible; }
:is(.mk2-badge, .cr3-badge, .ry2-badge, .wt2-badge) { max-width: 100%; box-sizing: border-box; font-size: clamp(22px, 5vmin, 38px) !important; }
:is(.mk2-badge, .cr3-badge, .ry2-badge, .wt2-badge, .ct-badge, .tw-badge, .kj-badge, .sb-badge, .vg-badge) { white-space: nowrap; flex-wrap: nowrap !important; justify-content: center; padding: 6px 16px !important; font-size: clamp(20px, 6.4vw, 34px) !important; }
:is(.mk2-badge, .cr3-badge, .ry2-badge, .wt2-badge, .ct-badge, .tw-badge, .kj-badge, .sb-badge, .vg-badge) img { width: 1.1em !important; height: auto; flex: none; }
:is(.mk2-badge, .cr3-badge, .ry2-badge, .wt2-badge, .ct-badge, .tw-badge, .kj-badge, .sb-badge, .vg-badge) small { font-size: .55em; }
/* スマホでも 天気の札を タップで ひらける（pointer-events を もどす） */
@media (max-width: 1080px) { .dash-greet.wx2, .dash-greet.wx2 * { pointer-events: auto; } .wx2.is-mini .wx2-mini { cursor: pointer; } }
/* スマホ（〜440px）：ロゴと ヒガシヒマラヤが 重ならないように（iPhone Pro 402px など） */
@media (max-width: 440px) {
  .app-logo, .app-logo-img, .town-tag { flex: none; }
  .app-logo-img { width: 88px !important; }
  .town-tag-jp i { font-size: 11px; }
  .app-bell { display: none !important; }
  .app-login { padding: 0 12px; font-size: 13px; }
}
