/* モチョロ 公開サイト。色は prototype/ZukanProto/Theme.swift の「ねんど」の色に合わせている。 */
@font-face {
  font-family: "Mocho Maru";
  src: url("../assets/fonts/ZenMaruGothic-Black.subset.woff") format("woff");
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: "Mocho Maru";
  src: url("../assets/fonts/ZenMaruGothic-Bold.subset.woff") format("woff");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Mocho Maru";
  src: url("../assets/fonts/ZenMaruGothic-Medium.subset.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #3A3F5C;
  --sub: #6A5F4E;
  --cream: #FFF4E3;
  --lip: #EBD9BC;
  --white: #FFFFFF;
  --apricot: #F79A52;
  --blue: #7DB8FF;   --blue-lip: #4E8FDE;   --blue-stage: #D9ECFF;
  --orange: #FFB45E; --orange-lip: #E18B2B; --orange-stage: #FFF0D2;
  --green: #8FD97A;  --green-lip: #5EB04A;  --green-stage: #EAF7DC;
  --pink: #FF8FB3;   --pink-lip: #E0608A;   --pink-stage: #FFE6EE;
  --coral: #FF8B7B;  --coral-lip: #D9604F;  --coral-stage: #FFEDE6;
  --purple: #B79CFF; --purple-lip: #8A6BE0; --purple-stage: #F1ECFF;
  --mint: #8FD9C0;   --mint-lip: #57A98C;   --mint-stage: #E3F6EE;
  --yellow: #FFD45C; --yellow-lip: #E0AE2A;
  --sun: #FFC12E;
  --font: "Mocho Maru", "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", ui-rounded, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.35; letter-spacing: 0.01em; }
:focus-visible { outline: 3px solid var(--blue-lip); outline-offset: 3px; border-radius: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ねんどのボタン：表の色の下に、厚みの色が見える */
.clay {
  --fill: var(--white); --edge: var(--lip); --depth: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px;
  background: var(--fill); color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 var(--depth) 0 var(--edge);
  font-weight: 900; font-size: 17px; line-height: 1.3; text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-user-select: none; user-select: none;
}
.clay:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--depth) + 2px) 0 var(--edge); }
.clay:active, .clay.is-down { transform: translateY(calc(var(--depth) - 2px)); box-shadow: 0 2px 0 var(--edge); }
.clay.sun { --fill: var(--sun); --edge: var(--yellow-lip); }
.clay.navy { --fill: var(--ink); --edge: #23273D; color: #fff; }
.clay.big { min-height: 68px; font-size: 20px; padding: 12px 34px; }
.clay.small { min-height: 44px; font-size: 14px; padding: 6px 18px; --depth: 4px; }
.clay[aria-disabled="true"] { cursor: default; }
.clay[aria-disabled="true"]:hover { transform: none; box-shadow: 0 var(--depth) 0 var(--edge); }

/* あたま */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 244, 227, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--lip); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a.link { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--sub); }
.top nav a.link:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) { .top nav a.link { display: none; } }

/* いちばん上 */
.hero { position: relative; padding: clamp(20px, 5vw, 56px) 0 clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(20px, 4vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: 14px; color: var(--sub);
  box-shadow: 0 3px 0 var(--lip);
}
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--apricot); }
.hero h1 { margin-top: 18px; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.22; letter-spacing: .02em; }
.hero h1 .mark { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .36em;
  background: var(--yellow); border-radius: 999px; z-index: -1; opacity: .85;
}
.hero .lead { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--sub); font-weight: 700; max-width: 30em; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 14px; align-items: center; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--sub); }
.pillrow { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: rgba(255,255,255,.75); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; color: var(--sub); }

.stage {
  position: relative; width: min(100%, 460px); margin: 0 auto; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFE9A6 0%, #FFB45E 100%);
  box-shadow: 0 12px 0 #EFA24A, 0 34px 50px rgba(225, 139, 43, .22);
}
.stage::before { content: ""; position: absolute; inset: 12% 6% 0 6%; border-radius: 50%; background: rgba(255,255,255,.35); }
.stage .mocho-btn { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 12%; border-radius: 50%; }
.stage .mocho { width: 74%; }
.bubble {
  position: absolute; left: 50%; top: -4%; transform: translateX(-50%);
  background: #fff; border-radius: 999px; padding: 8px 22px; white-space: nowrap;
  font-weight: 900; font-size: clamp(16px, 2.4vw, 20px);
  box-shadow: 0 5px 0 var(--lip);
  z-index: 2; pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 4px; box-shadow: 4px 4px 0 var(--lip); }
.bubble.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: translateX(-50%) scale(.6); } 100% { transform: translateX(-50%) scale(1); } }

.float { position: absolute; border-radius: 50%; pointer-events: none; animation: bob 5s ease-in-out infinite; }
.float.a { width: 54px; height: 54px; background: var(--blue); box-shadow: 0 6px 0 var(--blue-lip); left: -2%; top: 16%; }
.float.b { width: 36px; height: 36px; background: var(--pink); box-shadow: 0 5px 0 var(--pink-lip); right: 2%; top: 6%; animation-delay: -1.6s; }
.float.c { width: 44px; height: 44px; background: var(--green); box-shadow: 0 6px 0 var(--green-lip); right: -3%; bottom: 22%; animation-delay: -3s; }
.float.d { width: 28px; height: 28px; background: var(--purple); box-shadow: 0 4px 0 var(--purple-lip); left: 4%; bottom: 12%; animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .art { order: -1; padding-top: 30px; }
  .stage { width: min(66%, 300px); }
  .hero h1 { font-size: clamp(32px, 9vw, 56px); }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta, .pillrow { justify-content: center; }
}

/* もちょ（絵は MochoroArt をそのまま写した SVG） */
.mocho { display: block; overflow: visible; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); will-change: transform; }
.mocho.squish { animation: squish .55s cubic-bezier(.3, 1.4, .5, 1); }
.mocho.hop { animation: hop .5s ease-out; }
.mocho.melt { transform: scale(1.22, .56); transition: transform 1.2s ease-in-out; }
.mocho.flip { transform-origin: 50% 56%; transform: rotate(180deg); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes squish { 0% { transform: scale(1, 1) rotate(0); } 25% { transform: scale(1.14, .84) rotate(5deg); } 60% { transform: scale(.95, 1.07) rotate(-2deg); } 100% { transform: scale(1, 1) rotate(0); } }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 35% { transform: translateY(-22%) scale(.94, 1.08); } 70% { transform: translateY(0) scale(1.1, .9); } 100% { transform: translateY(0) scale(1, 1); } }

/* 区切りごとの大きな板 */
section { scroll-margin-top: 72px; }
.slab { border-radius: clamp(28px, 5vw, 48px); padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px); background: #fff; box-shadow: 0 10px 0 var(--lip); }
.block { padding: clamp(28px, 5vw, 56px) 0; }
.head { text-align: center; max-width: 34em; margin: 0 auto clamp(22px, 4vw, 40px); }
.head .tag { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .12em; padding: 4px 16px; border-radius: 999px; background: var(--cream); color: var(--sub); }
.head h2 { margin-top: 12px; font-size: clamp(26px, 4.4vw, 40px); }
.head p { margin-top: 12px; color: var(--sub); font-weight: 700; }

/* あそびば */
.playground { background: var(--blue-stage); box-shadow: 0 10px 0 #B9CDE6; }
.playground .head .tag { background: #fff; }
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.tab { --fill: #fff; --edge: #B9CDE6; }
.tab[aria-selected="true"] { --fill: var(--ink); --edge: #23273D; color: #fff; }
.game { max-width: 760px; margin: 0 auto; }
.game[hidden] { display: none; }
.sayline {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 96px; margin-bottom: 18px;
}
.sayline .mocho { width: 84px; flex: none; }
.say {
  position: relative; background: #fff; border-radius: 26px; padding: 12px 22px;
  font-weight: 900; font-size: clamp(20px, 4.6vw, 30px); line-height: 1.3; letter-spacing: .04em;
  box-shadow: 0 5px 0 #B9CDE6; min-width: 7em; text-align: center;
}
.say::before { content: ""; position: absolute; left: -7px; top: 50%; width: 16px; height: 16px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.say.pop { animation: pop2 .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop2 { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.4vw, 18px); }
.card {
  --fill: #fff; --edge: #B9CDE6;
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%;
  background: var(--fill); border-radius: clamp(20px, 4vw, 32px);
  box-shadow: 0 7px 0 var(--edge);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card svg { width: 72%; height: 72%; pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--edge); }
.card:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--edge); }
.card.boing svg { animation: boing .5s cubic-bezier(.3, 1.6, .5, 1); }
.card.nope { animation: nope .4s ease; }
.card.right { --fill: #FFF6CF; --edge: var(--yellow-lip); }
.card.dim { opacity: .45; }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-6deg); } 60% { transform: scale(.94) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.quiz .cards { max-width: 620px; margin: 0 auto; }
.stars { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.star { width: 38px; height: 38px; }
.star path { fill: #fff; stroke: #B9CDE6; stroke-width: 2; transition: fill .2s; }
.star.on path { fill: var(--yellow); stroke: var(--yellow-lip); }
.star.on { animation: boing .5s cubic-bezier(.3, 1.6, .5, 1); }
.hint { margin-top: 16px; text-align: center; font-size: 13px; color: var(--sub); font-weight: 700; }
.win {
  margin: 22px auto 0; max-width: 560px; text-align: center;
  background: #fff; border-radius: 30px; padding: 24px 20px; box-shadow: 0 7px 0 #B9CDE6;
}
.win[hidden] { display: none; }
.win h3 { font-size: clamp(20px, 4vw, 26px); }
.win p { margin: 8px 0 18px; color: var(--sub); font-weight: 700; }
.win .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.confetti { position: fixed; left: 0; top: 0; width: 14px; height: 14px; border-radius: 4px; pointer-events: none; z-index: 60; animation: fall 1.4s ease-in forwards; }
@keyframes fall { 0% { transform: translate(var(--x0), var(--y0)) rotate(0); opacity: 1; } 100% { transform: translate(var(--x1), var(--y1)) rotate(var(--r)); opacity: 0; } }

/* できること */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.4vw, 20px); }
.cat { border-radius: 28px; padding: 20px 18px 22px; background: var(--stage); box-shadow: 0 7px 0 var(--edge); }
.cat .dot { width: 58px; height: 58px; border-radius: 50%; background: var(--fill); box-shadow: 0 5px 0 var(--deep); display: grid; place-items: center; }
.cat .dot svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cat h3 { margin-top: 14px; font-size: 20px; }
.cat p { margin-top: 6px; font-size: 14px; color: var(--sub); font-weight: 700; line-height: 1.7; }
.cat.vehicle { --stage: var(--blue-stage); --edge: #B9CDE6; --fill: var(--blue); --deep: var(--blue-lip); }
.cat.animal { --stage: var(--orange-stage); --edge: #EBD3A6; --fill: var(--orange); --deep: var(--orange-lip); }
.cat.food { --stage: var(--coral-stage); --edge: #F3C3B8; --fill: var(--coral); --deep: var(--coral-lip); }
.cat.number { --stage: var(--green-stage); --edge: #BFDDA0; --fill: var(--green); --deep: var(--green-lip); }
.cat.play { --stage: var(--pink-stage); --edge: #F3BFD0; --fill: var(--pink); --deep: var(--pink-lip); }
.cat.greet { --stage: var(--purple-stage); --edge: #CFC2F3; --fill: var(--purple); --deep: var(--purple-lip); }
@media (max-width: 820px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cat { padding: 16px 14px 18px; border-radius: 22px; } .cat h3 { font-size: 18px; } .cat p { font-size: 13px; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 24px); margin-top: clamp(14px, 3vw, 24px); }
.feature { border-radius: 32px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 8px 0 var(--edge); background: var(--stage); }
.feature.home { --stage: var(--mint-stage); --edge: #B4DCCB; }
.feature.parent { --stage: #fff; --edge: var(--lip); }
.feature .tag { display: inline-block; font-size: 13px; font-weight: 900; padding: 3px 14px; border-radius: 999px; background: #fff; color: var(--sub); }
.feature.parent .tag { background: var(--cream); }
.feature h3 { margin-top: 12px; font-size: clamp(20px, 3vw, 26px); }
.feature p { margin-top: 10px; color: var(--sub); font-weight: 700; font-size: 15px; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { position: relative; padding-left: 30px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.feature li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); box-shadow: 0 3px 0 var(--mint-lip); }
.feature.parent li::before { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-lip); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* あんしん */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.4vw, 20px); }
.trust div { background: var(--cream); border-radius: 26px; padding: 22px 18px; text-align: center; }
.trust b { display: block; font-weight: 900; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.4; }
.trust span { display: block; margin-top: 8px; font-size: 14px; color: var(--sub); font-weight: 700; line-height: 1.7; }
.trust svg { width: 46px; height: 46px; margin: 0 auto 12px; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* りょうきん */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 24px); max-width: 820px; margin: 0 auto; }
.plan { border-radius: 32px; padding: clamp(22px, 4vw, 32px); text-align: center; background: #fff; box-shadow: 0 8px 0 var(--lip); }
.plan.pay { background: #FFF6CF; box-shadow: 0 8px 0 var(--yellow-lip); }
.plan .k { font-weight: 900; font-size: 15px; color: var(--sub); }
.plan .v { margin-top: 6px; font-weight: 900; font-size: clamp(38px, 7vw, 54px); line-height: 1.15; }
.plan .v small { font-size: .42em; margin-left: 4px; }
.plan p { margin-top: 10px; font-weight: 700; color: var(--sub); font-size: 15px; }
.price-note { max-width: 820px; margin: 18px auto 0; font-size: 13px; color: var(--sub); text-align: center; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }

/* よくある質問 */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: 0 5px 0 var(--lip); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 900; position: relative; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; border-right: 4px solid var(--apricot); border-bottom: 4px solid var(--apricot); border-radius: 2px; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--sub); font-weight: 500; }
.faq details p + p { margin-top: -8px; }

/* さいごの よびかけ */
.final { text-align: center; background: linear-gradient(180deg, #FFE9A6 0%, #FFB45E 100%); box-shadow: 0 10px 0 #EFA24A; position: relative; overflow: hidden; }
.final .mocho { width: 150px; margin: 0 auto 6px; }
.final h2 { font-size: clamp(26px, 4.6vw, 42px); }
.final p { margin-top: 10px; font-weight: 700; }
.final .row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* あしもと */
footer { padding: 36px 0 110px; text-align: center; color: var(--sub); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 14px; }
footer nav a { font-weight: 700; text-decoration: none; padding: 6px 4px; }
footer nav a:hover { text-decoration: underline; }
footer small { font-size: 12px; }

/* スマホで下に出る ボタン */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 244, 227, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; gap: 10px; align-items: center; justify-content: center;
  transform: translateY(110%); transition: transform .3s ease;
  box-shadow: 0 -2px 0 var(--lip);
}
.dock.show { transform: translateY(0); }
.dock img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.dock .txt { flex: 1; min-width: 0; font-weight: 900; font-size: 14px; line-height: 1.35; }
.dock .txt small { display: block; font-weight: 700; font-size: 11px; color: var(--sub); }
.dock .clay { flex: none; }
@media (min-width: 821px) { .dock { display: none; } }

/* きまりのページ（プライバシーポリシー など） */
.doc { padding: clamp(20px, 4vw, 44px) 0 clamp(36px, 6vw, 72px); }
.doc .slab { max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(26px, 4.6vw, 38px); }
.doc .date { margin-top: 8px; color: var(--sub); font-size: 14px; font-weight: 700; }
.doc .summary { margin-top: 22px; background: var(--mint-stage); border-radius: 24px; padding: 18px 20px; }
.doc .summary b { font-weight: 900; }
.doc .summary ul { margin: 8px 0 0; padding-left: 1.3em; }
.doc h2 { margin-top: 36px; font-size: clamp(19px, 3vw, 23px); padding-left: 14px; border-left: 8px solid var(--apricot); border-radius: 4px; }
.doc h3 { margin-top: 22px; font-size: 17px; }
.doc p, .doc ul, .doc ol, .doc table { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-top: 4px; }
.doc a { color: #2F6FC4; font-weight: 700; word-break: break-all; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.7; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--cream); }
.doc th { font-weight: 900; background: var(--cream); white-space: nowrap; }
.doc thead th:first-child { border-radius: 14px 0 0 14px; } .doc thead th:last-child { border-radius: 0 14px 14px 0; }
.doc .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc .contact { margin-top: 14px; background: var(--cream); border-radius: 22px; padding: 16px 20px; font-weight: 700; }
.doc .back { margin-top: 32px; text-align: center; }
@media (max-width: 560px) {
  .doc table.stack thead { display: none; }
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; width: 100%; }
  .doc table.stack tr { background: var(--cream); border-radius: 18px; padding: 10px 14px; margin-top: 10px; }
  .doc table.stack td { border: 0; padding: 2px 0; }
  .doc table.stack td::before { content: attr(data-th); display: block; font-size: 12px; font-weight: 900; color: var(--sub); margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .mocho.squish, .mocho.hop, .card.boing svg, .star.on, .bubble.pop, .say.pop { animation: none; }
  .mocho, .clay, .card { transition: none; }
}

/* あそびば：アプリの あそびを 3つ */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 16px); max-width: 620px; margin: 0 auto 20px; }
.pick {
  --edge: #B9CDE6;
  display: grid; justify-items: center; gap: 2px; padding: 12px 6px 12px;
  background: #fff; border-radius: 24px; box-shadow: 0 6px 0 var(--edge);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.pick svg { width: clamp(44px, 12vw, 64px); height: clamp(44px, 12vw, 64px); }
.pick b { font-weight: 900; font-size: clamp(15px, 3.6vw, 19px); line-height: 1.3; }
.pick span { font-size: 12px; font-weight: 700; color: var(--sub); line-height: 1.4; }
.pick:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge); }
.pick:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.pick[aria-selected="true"] { background: #FFF6CF; --edge: var(--yellow-lip); }
@media (max-width: 480px) { .pick span { display: none; } }
.arena { max-width: 560px; margin: 0 auto; }
.arena .sayline { min-height: 64px; margin-bottom: 12px; }
.arena .say::before { display: none; }
.stagebox {
  position: relative; width: 100%; aspect-ratio: 390 / 470; max-height: 78vh; margin: 0 auto;
  border-radius: clamp(22px, 5vw, 34px); overflow: hidden; background: #fff;
  box-shadow: 0 8px 0 #B9CDE6;
}
@media (min-width: 700px) { .stagebox { aspect-ratio: 1 / 1; } }
.stagebox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.playpanel { margin-top: 18px; -webkit-user-select: none; user-select: none; }
.playpanel:empty { display: none; }

/* おとなのページの見本（色と寸法は ParentView.swift に合わせている） */
.parent { display: grid; grid-template-columns: 1fr minmax(0, 390px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.parent-copy .tag { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .12em; padding: 4px 16px; border-radius: 999px; background: #fff; color: var(--sub); }
.parent-copy h2 { margin-top: 12px; font-size: clamp(26px, 4.4vw, 40px); }
.parent-copy p { margin-top: 14px; color: var(--sub); font-weight: 700; }
.parent-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.parent-copy li { position: relative; padding-left: 32px; font-weight: 700; line-height: 1.6; }
.parent-copy li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-lip); }
.parent-copy .sample-note { font-size: 13px; font-weight: 500; }
.phone {
  width: 100%; max-width: 390px; margin: 0 auto; padding: 10px;
  background: #3A3F5C; border-radius: 52px; box-shadow: 0 10px 0 #23273D, 0 30px 50px rgba(58, 63, 92, .22);
}
.pp {
  background: var(--cream); border-radius: 42px; padding: 20px 18px 24px; color: var(--ink);
  max-height: 640px; overflow-y: auto; scrollbar-width: none;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif; font-weight: 500; line-height: 1.5;
}
.pp::-webkit-scrollbar { display: none; }
.pp-head { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--sub); }
.pp-back { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pp-back svg { width: 20px; height: 20px; }
.pp-name { margin-top: 18px; padding: 0 4px; font-family: var(--font); font-weight: 900; font-size: 34px; line-height: 1.2; }
.pp-age { padding: 0 4px; margin-top: 4px; font-size: 15px; color: var(--sub); }
.pp-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 30px 4px 10px; }
.pp-sec b { font-size: 20px; font-weight: 700; }
.pp-sec span { font-size: 15px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
.pp-card { background: #fff; border-radius: 22px; }
.pp-nums { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0; }
.pp-nums div { text-align: center; padding: 0 6px; border-left: 1px solid #F1ECE2; }
.pp-nums div:first-child { border-left: 0; }
.pp-nums strong { display: block; font-family: var(--font); font-weight: 900; font-size: 36px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pp-nums span { display: block; margin-top: 4px; font-size: 13px; color: var(--sub); }
.pp-sub { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid #F1ECE2; font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.pp-report { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 0; min-height: 132px; }
.pp-face { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #FBF6EC; display: grid; place-items: center; }
.pp-face .mocho { width: 36px; height: 32px; }
.pp-rt { font-size: 17px; font-weight: 700; }
.pp-rb { margin-top: 4px; font-size: 14px; line-height: 1.65; color: rgba(58, 63, 92, .8); }
.pp-next { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 18px; }
.pp-dots { display: flex; gap: 6px; }
.pp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(58, 63, 92, .15); }
.pp-dots i.on { background: var(--ink); }
.pp-next button { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 999px; background: #FBF6EC; font-size: 14px; font-weight: 600; font-family: inherit; }
.pp-next button:active { background: #F1ECE2; }
.pp-next svg { width: 12px; height: 12px; }
.pp-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-top: 1px solid #F1ECE2; font-size: 16px; font-weight: 600; }
.pp-link svg { width: 14px; height: 14px; }
.pp-bars { display: grid; gap: 14px; padding: 18px; }
.pp-bars div { display: grid; grid-template-columns: 96px 1fr 58px; align-items: center; gap: 12px; }
.pp-bars span { font-size: 16px; font-weight: 600; }
.pp-bars i { position: relative; height: 8px; border-radius: 999px; background: #F1ECE2; overflow: hidden; }
.pp-bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); min-width: 8px; border-radius: 999px; background: #FFC12E; }
.pp-bars em { font-style: normal; text-align: right; font-size: 14px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
.pp-note { padding: 0 18px 14px; font-size: 12px; color: rgba(106, 95, 78, .85); }
.pp-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; padding: 18px; }
.pp-badges div { display: grid; justify-items: center; gap: 6px; }
.pp-badges i { width: 48px; height: 48px; border-radius: 50%; background: #FBF6EC; display: grid; place-items: center; font-style: normal; }
.pp-badges .on i { background: rgba(255, 193, 46, .85); }
.pp-badges svg { width: 24px; height: 24px; }
.pp-badges i b { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.pp-badges span { font-size: 11px; color: rgba(106, 95, 78, .6); white-space: nowrap; }
.pp-badges .on span { color: var(--ink); }
.duo.one { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 820px) {
  .parent { grid-template-columns: minmax(0, 1fr); }
  .parent-copy { text-align: center; }
  .parent-copy ul { display: inline-grid; text-align: left; }
  .pp { max-height: none; overflow: visible; }
}
@media (max-width: 380px) { .pp-bars div { grid-template-columns: 80px 1fr 52px; gap: 8px; } .pp-sub { font-size: 11px; padding: 12px; } }
