:root {
  --bg: #fbf5ea;
  --bg2: #f4e9d6;
  --ink: #4a3b2f;
  --ink-soft: #7a6857;
  --accent: #e08a4c;
  --accent-dark: #c46f33;
  --card: #fffdf8;
  --line: #ead9bf;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 .6em; }
.en { color: var(--ink-soft); font-size: .92em; }
h2 .en, h3 .en { font-weight: 500; margin-left: .3em; font-size: .6em; letter-spacing: .04em; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: rgba(251, 245, 234, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav nav { display: flex; gap: 14px; overflow-x: auto; }
.nav nav a { text-decoration: none; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.nav nav a:hover { color: var(--accent-dark); }

/* layout */
.section { padding: 64px 20px; max-width: 1080px; margin: 0 auto; }
.tinted { max-width: none; background: var(--bg2); }
.tinted > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section > h2 { font-size: 1.7rem; text-align: center; margin-bottom: 1.2em; }
.note { text-align: center; color: var(--ink-soft); margin-bottom: 1.6em; }

.btn {
  display: inline-block; margin-top: .6em;
  padding: .7em 1.4em; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 3px 0 var(--accent-dark);
  transition: transform .1s;
}
.btn:hover { transform: translateY(-1px); }
.eyebrow { color: var(--accent-dark); font-weight: 700; font-size: .85rem; letter-spacing: .05em; }

/* phone frame for vertical video */
.phone {
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 8px 24px rgba(74, 59, 47, .15);
  aspect-ratio: 9 / 16; background: #eadcc5;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 56px 20px 40px;
}
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.hero .lead { font-size: 1.3rem; margin-bottom: 1em; }
.hero-video { max-width: 320px; justify-self: center; width: 100%; }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card h3 { font-size: 1.15rem; color: var(--accent-dark); }

/* characters */
.chars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.char { background: var(--card); border-radius: var(--radius); padding: 14px 14px 18px; text-align: center; border: 1px solid var(--line); }
.char img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 16px; background: #fff; margin-bottom: 10px; }
.char h3 { font-size: 1.25rem; }
.char p { font-size: .92rem; text-align: left; }

/* series */
.series { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sr { background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
a.sr { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
a.sr:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(74, 59, 47, .12); }
.sr img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.sr .more { display: inline-block; margin-top: .3em; font-size: .82rem; font-weight: 700; color: var(--accent-dark); }
.sr.soon { opacity: .75; }
.sr.soon .more { color: var(--ink-soft); }

/* series pages */
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cover-card { text-decoration: none; display: block; }
.cover-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(74, 59, 47, .14); transition: transform .15s; }
.cover-card:hover img { transform: translateY(-3px); }
.cover-card span { display: block; font-size: .9rem; font-weight: 500; margin-top: 6px; line-height: 1.5; }
.sr h3 { font-size: 1.05rem; }
.sr p { font-size: .9rem; }

/* works */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work { text-decoration: none; display: block; }
.work .phone { margin-bottom: 10px; transition: transform .15s; }
.work:hover .phone { transform: translateY(-3px); }
.tag { font-size: .78rem; color: var(--accent-dark); font-weight: 700; }
.work h3 { font-size: 1rem; margin: .1em 0 0; }
.work p { font-size: .85rem; }

/* book */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; margin-bottom: 32px; }
.cover { border-radius: 10px; box-shadow: 0 10px 28px rgba(74, 59, 47, .25); }
.book-text h3 { font-size: 1.6rem; margin-bottom: 0; }
.book-text .sub { margin-bottom: 1em; }
.small { font-size: .88rem; color: var(--ink-soft); }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pages img { border-radius: 12px; border: 1px solid var(--line); }

/* stamp */
.stamp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.stamp img { border-radius: var(--radius); background: #fff; }
.badge { display: inline-block; background: #fff; border: 2px dashed var(--accent); color: var(--accent-dark); border-radius: 999px; padding: .1em 1em; font-weight: 700; font-size: .9rem; }

/* contact */
.contact { text-align: center; }

/* footer */
.footer { text-align: center; padding: 36px 20px 48px; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 900px) {
  .chars { grid-template-columns: repeat(3, 1fr); }
  .series, .works { grid-template-columns: repeat(2, 1fr); }
  .covers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { padding: 8px 16px; }
  .nav-logo span { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px 16px 24px; gap: 28px; text-align: center; }
  .hero-video { max-width: 240px; }
  .section { padding: 48px 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .chars { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .works { gap: 14px; }
  .covers { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .series { gap: 12px; }
  .book { grid-template-columns: 1fr; gap: 20px; }
  .cover { max-width: 240px; margin: 0 auto; }
  .pages { gap: 8px; }
  .stamp { grid-template-columns: 1fr; gap: 18px; }
}

/* characters: top cards link to detail pages */
a.char { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
a.char:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(74, 59, 47, .12); }
.char .more { display: inline-block; margin-top: .2em; font-size: .82rem; font-weight: 700; color: var(--accent-dark); }

/* character detail pages */
.ch-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.ch-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ch-pics figure { margin: 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.ch-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 6px; }
.ch-text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ch-text h1 .en { font-size: .5em; font-weight: 500; margin-left: .3em; }
.ch-catch { font-size: 1.15rem; font-weight: 700; color: var(--accent-dark); }
.ch-catch .en { font-weight: 500; }
.ch-profile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.ch-profile div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.ch-profile dt { font-weight: 700; color: var(--accent-dark); font-size: .92rem; }
.ch-profile dd { margin: .2em 0 0; }
.ch-friends, .ch-others { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ch-mini { text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; font-size: .88rem; }
.ch-mini img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(74, 59, 47, .15); margin-bottom: 6px; transition: transform .15s; }
.ch-mini:hover img { transform: translateY(-3px); }
.ch-mini b { font-size: 1.05rem; }
.ch-book { margin-top: 1.6em; }
@media (max-width: 900px) {
  .ch-hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .ch-profile { grid-template-columns: 1fr; }
  .ch-mini { width: 120px; }
  .ch-mini img { width: 88px; height: 88px; }
}
.ch-items { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ch-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.ch-item h2 { font-size: 1.3rem; margin-bottom: .8em; }
.ch-item h3 { font-size: 1.1rem; color: var(--accent-dark); margin-top: .8em; }
.ch-item p { text-align: left; }
.ch-item-pic, .ch-swatch { width: 100%; max-width: 360px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin: 0 auto; display: block; background: #fff; border: 1px solid var(--line); }
.ch-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 12px; font-size: .8rem; color: var(--ink-soft); }
.ch-palette span { display: inline-flex; align-items: center; gap: 5px; }
.ch-palette i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(74, 59, 47, .25); display: inline-block; }
@media (max-width: 640px) { .ch-items { grid-template-columns: 1fr; } }
.ch-treasure + .ch-treasure { margin-top: 22px; padding-top: 22px; border-top: 2px dashed var(--line); }
.ch-items { align-items: start; }

/* rooms（ごまの おうち） */
.room-head { text-align: center; }
.room-map { position: relative; margin: 28px auto 10px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(74, 59, 47, .18); }
.room-map img { width: 100%; height: auto; }
.room-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; font-size: .95rem;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .15s;
}
.room-pin:hover, .room-pin:focus { transform: translate(-50%, -50%) scale(1.15); background: var(--accent-dark); }
.room-caption { margin-top: 6px; font-size: .88rem; }
.room-spots { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.room-spots li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; scroll-margin-top: 80px; }
.room-spots li:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 138, 76, .25); }
.room-spots p { margin-bottom: .3em; }
.room-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .9rem; }
.room-foot { text-align: center; }
.room-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 1.2em; }
.room-links a { color: var(--accent-dark); font-weight: 700; }
.ch-home { text-align: center; margin-top: 1.4em; }
.ch-home a { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
@media (max-width: 640px) {
  .room-spots { grid-template-columns: 1fr; }
  .room-pin { width: 24px; height: 24px; font-size: .72rem; border-width: 2px; }
  .room-map { margin-left: -6px; margin-right: -6px; border-radius: 14px; }
}
.room-pin { cursor: pointer; }
.room-things { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; }
.room-thing { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.room-thing:hover, .room-thing:focus { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74, 59, 47, .15); }
.room-thing img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-thing > span { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.room-thing-name { display: flex; flex-direction: column; padding-top: 3px; word-break: keep-all; overflow-wrap: anywhere; }
.room-thing-name .en { font-weight: 500; font-size: .78rem; }
.room-thing .room-num { width: 28px; height: 28px; font-size: .82rem; }
.room-dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: none; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.room-dlg::backdrop { background: rgba(60, 40, 25, .55); }
.room-dlg-pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg2); }
.room-dlg-body { padding: 18px 22px 20px; }
.room-dlg h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.2rem; }
.room-dlg h3 .en { margin-left: 0; }
.room-dlg-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255, 253, 248, .92); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.room-memory { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg2); border-left: 4px solid var(--accent); }
.room-memory h4 { margin: 0 0 .3em; font-size: .95rem; color: var(--accent-dark); }
.room-memory h4 .en { font-weight: 500; margin-left: .3em; font-size: .8em; }
.room-memory p { margin-bottom: .3em; }
.room-dlg-nav { display: flex; justify-content: space-between; margin-top: 14px; }
.room-dlg-nav button { font: inherit; font-weight: 700; color: var(--accent-dark); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.room-dlg-nav button:hover { background: var(--bg2); }
@media (max-width: 640px) {
  .room-things { grid-template-columns: 1fr 1fr; gap: 10px; }
  .room-thing > span { font-size: .85rem; padding: 8px 10px; }
  .room-dlg-body { padding: 14px 16px 16px; }
}

/* 絵の上の タッチ範囲（ふだんは見えない。カーソルを のせたときだけ 名前を出す） */
.room-spot { position: absolute; border-radius: 14px; border: 2px dashed transparent; transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.room-spot:hover, .room-spot:focus-visible { background: rgba(255, 253, 248, .16); border-color: rgba(255, 253, 248, .85); outline: none; }
.room-spot-label { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(74, 59, 47, .85); color: #fff; font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; }
.room-spot:hover .room-spot-label, .room-spot:focus-visible .room-spot-label { opacity: 1; }
.room-map img { cursor: default; }
@media (max-width: 640px) { .room-spot { min-width: 34px; min-height: 34px; } }
.room-spot.lbl-below .room-spot-label { bottom: auto; top: calc(100% + 6px); }
.room-spot.lbl-left .room-spot-label { left: 4px; transform: none; }
.room-spot.lbl-right .room-spot-label { left: auto; right: 4px; transform: none; }

/* ---- promo（2026-11-19）: とけい・かくれまめ・あさゆうよる・ためしよみ ---- */
.clock-cd { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto; }
.clock-face { width: 92px; height: 92px; padding: 0; border: none; background: none; cursor: pointer; flex: none; border-radius: 50%; box-shadow: 0 6px 16px rgba(74, 59, 47, .25); }
.clock-face svg { width: 100%; height: 100%; display: block; }
.clock-face.wiggle { animation: clock-wiggle .5s; }
@keyframes clock-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.clock-cd .hand-s { display: none; }
.clock-cd.is-moving .hand-s { display: inline; }
.clock-cd-text { margin: 0; text-align: left; font-weight: 700; line-height: 1.6; }
.clock-cd-text b { font-size: 1.6em; color: var(--accent-dark); }
.clock-cd-text .en { font-weight: 500; font-size: .8rem; }
.room-clock { text-align: center; margin-top: 18px; }
.room-clock .btn, .sample-end .btn, .book-promo .btn { display: inline-block; }
.book-promo { text-align: center; margin-top: 26px; }
.book-promo .ch-home { margin-top: 10px; }
.book-promo .sample-link { display: inline-block; margin: 6px 8px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent-dark); font-weight: 700; text-decoration: none; }

.mame { position: absolute; width: 3.6%; padding: 0; border: none; background: none; cursor: pointer; z-index: 3; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); transition: transform .2s; }
.mame img { width: 100%; height: auto; display: block; }
.mame:hover { transform: scale(1.12); }
.mame.found { filter: drop-shadow(0 0 6px rgba(255, 230, 120, .95)); }
.mame.jump { animation: mame-jump .6s; }
@keyframes mame-jump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-40%) scale(1.5); } 100% { transform: translateY(0) scale(1.15); } }
.mame-bar { text-align: center; margin: 10px auto 0; font-size: .92rem; }
.mame-progress { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--bg2); }
.mame-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: rgba(74, 59, 47, .92); color: #fff; padding: 12px 20px; border-radius: 16px; text-align: center; font-weight: 700; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .5s; }
.mame-toast span { font-weight: 500; font-size: .85em; }
.mame-toast.out { opacity: 0; }
.mame-reward-pic { width: 100%; max-height: 46vh; object-fit: cover; object-position: center 40%; }

.time-btns { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.time-btn { font: inherit; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.time-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.room-map[data-time="night"] .room-spot-label { background: rgba(20, 30, 60, .9); }

.sample-head { text-align: center; padding-bottom: 16px; }
.lang-btns { display: inline-flex; gap: 6px; margin-top: 8px; }
.lang-btns button { font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.lang-btns button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sample { max-width: 980px; margin: 0 auto 56px; padding: 0 16px; }
.sample-page { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.sample-page.on { display: grid; }
.sample-page img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 14px; box-shadow: 0 8px 24px rgba(74, 59, 47, .18); background: var(--bg2); }
.sample-text { font-size: 1.45rem; line-height: 2; font-weight: 500; margin: 0; letter-spacing: .04em; }
.sample-text:lang(ko) { font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.sample-end { grid-template-columns: 1fr; text-align: center; }
.sample-end-in { padding: 30px 10px; }
.sample-end-lead { font-size: 1.6rem; font-weight: 700; }
.sample-end-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.sample-end-links a, .sample-end-links button { font: inherit; color: var(--accent-dark); font-weight: 700; background: none; border: none; cursor: pointer; text-decoration: underline; }
.sample-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.sample-nav button { font: inherit; font-size: 1.3rem; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent-dark); cursor: pointer; }
.sample-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .sample-page { grid-template-columns: 1fr; gap: 14px; }
  .sample-page img { max-height: 60vh; }
  .sample-text { font-size: 1.15rem; text-align: center; }
  .mame { width: 5%; min-width: 22px; }
  .clock-face { width: 78px; height: 78px; }
}

/* ---- あそぶ（2026-11-19）: なかま しんだん・ぬりえ ---- */
.quiz { max-width: 720px; text-align: center; }
.quiz-faces { display: flex; justify-content: center; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.quiz-faces img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid var(--line); }
.quiz-go, .quiz-save, .quiz-share { font: inherit; cursor: pointer; border: none; }
.quiz-step { color: var(--ink-soft); }
.quiz-text { font-size: 1.5rem; margin-top: 4px; }
.quiz-answers { display: grid; gap: 10px; margin-top: 20px; }
.quiz-a { font: inherit; text-align: left; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.quiz-a:hover, .quiz-a:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.quiz-a span { display: block; font-weight: 700; font-size: 1.05rem; }
.quiz-a small { color: var(--ink-soft); }
.quiz-card { width: min(320px, 80%); margin: 0 auto 18px; border-radius: 18px; box-shadow: 0 10px 28px rgba(74, 59, 47, .2); }
.quiz-title b { color: var(--accent-dark); font-size: 1.3em; }
.quiz-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.quiz-share { background: var(--card); color: var(--accent-dark); border: 2px solid var(--accent); }
.quiz-again { font: inherit; color: var(--accent-dark); font-weight: 700; background: none; border: none; text-decoration: underline; cursor: pointer; }
.nurie { text-align: center; }
.nurie-free { display: inline-block; margin: 8px auto 26px; padding: 14px 22px; border-radius: 16px; background: var(--bg2); border: 2px dashed var(--accent); font-weight: 700; line-height: 1.7; }
.nurie-free .en { font-weight: 500; }
.nurie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.nurie-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nurie-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.nurie-card > span { display: flex; flex-direction: column; padding: 10px 14px 14px; }
.nurie-card em { font-style: normal; color: var(--accent-dark); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.play-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.play-links a { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent-dark); font-weight: 700; text-decoration: none; background: var(--card); }

/* 雪・花びら（promo.js）。文字の じゃまに ならない ように うすく、さわれない ように */
.sky-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.is-spring .room-map[data-time]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 80% 10%, rgba(255, 220, 230, .35), transparent 60%); mix-blend-mode: soft-light; }

/* ---- あそぶ 2（2026-11-19）: まちがいさがし・かぞえよう・ことば・かべがみ・えほんの なかまたち・できるまで・いりぐち ---- */
.mg, .kz, .kt, .wp, .bn, .mk, .hub { text-align: center; }
.mg-tabs, .kz-modes { display: flex; justify-content: center; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.mg-tab, .kz-mode { font: inherit; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.mg-tab.on, .kz-mode.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mg-status { font-weight: 700; }
.mg-status b { color: var(--accent-dark); font-size: 1.4em; }
.mg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1200px; margin: 0 auto; }
.mg-pic { position: relative; border-radius: 14px; overflow: hidden; cursor: crosshair; box-shadow: 0 6px 18px rgba(74, 59, 47, .15); }
.mg-pic img { width: 100%; height: auto; display: block; }
.mg-mark { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #e0464c; box-shadow: 0 0 0 2px #fff; pointer-events: none; animation: mg-pop .3s; }
.mg-mark.ans { border-color: #4a7fd0; border-style: dashed; }
@keyframes mg-pop { from { transform: translate(-50%, -50%) scale(.3); } to { transform: translate(-50%, -50%) scale(1); } }
.mg-btns { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.mg-btns button, .kz-again { font: inherit; color: var(--accent-dark); font-weight: 700; background: none; border: none; text-decoration: underline; cursor: pointer; }
.mg-done { font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 760px) { .mg-pair { grid-template-columns: 1fr; } }

.kz-stage { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 18px 0; flex-wrap: wrap; }
.kz-mame { width: 130px; height: auto; transition: transform .2s; }
.kz-mame.tappable { cursor: pointer; filter: drop-shadow(0 0 8px rgba(224, 138, 76, .6)); }
.kz-mame.wave { animation: kz-wave 1s; }
@keyframes kz-wave { 0%,100% { transform: rotate(0) translateY(0); } 20% { transform: rotate(-10deg) translateY(-14px); } 40% { transform: rotate(10deg) translateY(-14px); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.kz-clock { width: 120px; }
.kz-clock.wiggle { animation: clock-wiggle .4s; }
.kz-say { width: 100%; font-weight: 700; font-size: 1.15rem; min-height: 1.8em; }
.kz-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 620px; margin: 14px auto 0; }
.kz-num { font: inherit; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.kz-num b { display: block; font-size: 1.6rem; color: var(--accent-dark); }
.kz-num i { font-style: normal; font-size: .55rem; letter-spacing: 1px; color: var(--ink-soft); word-break: break-all; }
.kz-big { font-size: 4rem; font-weight: 700; color: var(--accent-dark); margin: 0; line-height: 1.2; }
.kz-word { font-size: 1.4rem; font-weight: 700; }

.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; text-align: left; margin-top: 18px; }
.kt-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 8px; }
.kt-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.kt-book { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
.kt-card p { margin: 4px 12px; display: flex; align-items: center; gap: 6px; }
.kt-ja { font-size: 1.3rem; font-weight: 700; }
.kt-en, .kt-ko { color: var(--ink-soft); }
.kt-ko { font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.kt-card button { font-size: .9rem; border: none; background: var(--bg2); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; flex: none; }

.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; text-align: left; margin-top: 18px; }
.wp-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wp-card img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.wp-card.is-phone img { object-fit: contain; background: #e9dfcf; }
.wp-card > span { display: flex; flex-direction: column; padding: 10px 14px 14px; }
.wp-card small { color: var(--ink-soft); }
.wp-card em { font-style: normal; color: var(--accent-dark); font-weight: 700; margin-top: 4px; font-size: .9rem; }

.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; text-align: left; margin-top: 18px; }
.bn-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bn-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.bn-card > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 14px; }
.bn-card em { font-style: normal; font-size: .92rem; line-height: 1.6; }
.bn-card small { font-size: .78rem; }

.mk { max-width: 860px; }
.mk h2 { margin-top: 28px; }
.mk-steps { list-style: none; padding: 0; text-align: left; display: grid; gap: 12px; }
.mk-steps li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.mk-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.mk-steps h3 { margin-bottom: 4px; }
.mk-steps p { margin: 0; }
.mk-steps figure { margin: 10px 0 0; }
.mk-steps figure img { max-width: 260px; border-radius: 12px; border: 1px solid var(--line); }
.mk-steps figcaption { font-size: .8rem; color: var(--ink-soft); }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.hub-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 18px; transition: transform .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hub-i { font-size: 2.2rem; }

/* ---- A. フォローへの みち（2026-11-19） ---- */
.follow { max-width: 720px; margin: 8px auto 36px; padding: 22px 20px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.follow-lead { margin: 0 0 12px; font-weight: 500; }
.follow-btns { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; margin: 0; }
.follow-line { color: var(--accent-dark); font-weight: 700; font-size: .92rem; }
.quiz-follow { margin: 18px auto 6px; padding: 16px; background: var(--bg2); border-radius: 18px; max-width: 520px; }
.quiz-follow p { margin: 0 0 10px; }
.cheer { position: fixed; left: 50%; bottom: 16px; z-index: 50; width: min(440px, calc(100% - 32px)); transform: translate(-50%, 140%); transition: transform .35s ease;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(74, 59, 47, .18); padding: 16px 44px 16px 18px; text-align: left; }
.cheer.on { transform: translate(-50%, 0); }
.cheer p { margin: 0 0 10px; font-size: .95rem; }
.cheer .btn { padding: 8px 18px; font-size: .9rem; }
.cheer-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }
.mame-secret { display: block; margin: 12px 0 4px; }
.mame-secret img { width: 120px; border-radius: 14px; border: 1px solid var(--line); display: block; margin: 6px auto; }
@media (prefers-reduced-motion: reduce) { .cheer { transition: none; } }
