/* Puku LP — トンマナは本番アプリ (persona-api/puku/assets/style.css :root) から踏襲
 * 構成の参考: AIDesigner run 60e1b279 (refine) / 515704f7 (generate)
 */

:root {
  --bg: #fef9f3;
  --bg-warm: #fbf2e7;
  --primary: #ff8a65;
  --primary-dark: #d84315;
  --primary-soft: #ffccbc;
  --accent: #66bb6a;
  --accent-dark: #4ca050;
  --accent-light: #a5d6a7;
  --accent-pale: #c8e6c9;
  --gold: #ffd54f;
  --gold-dark: #f57f17;
  --gold-pale: #fff3c4;
  --sky: #81d4fa;
  --sky-dark: #0288d1;
  --sky-bg: #e3f2fd;
  --pink: #f8bbd0;
  --text: #3e2723;
  --text-light: #5d4037;
  --muted: #8d6e63;
  --card: #ffffff;
  --border: #ffccbc;
  --line: #f0e6db;
  --green-bg: #f0fdf4;
  --yellow-bg: #fffbe7;
  --shadow-card: 0 8px 0 #e8dfd2;
  --shadow-coral: 0 8px 0 var(--primary-dark);
  --shadow-mint: 0 8px 0 var(--accent-dark);
  --shadow-gold: 0 8px 0 var(--gold-dark);
  --font-ja: "M PLUS Rounded 1c", -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Plus Jakarta Sans", "M PLUS Rounded 1c", sans-serif;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ja);
  font-weight: 700;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(165, 214, 167, 0.22) 0%, transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(255, 213, 79, 0.14) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 138, 101, 0.06) 0%, transparent 70%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-ja);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
p { margin: 0; }
.en { font-family: var(--font-en); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 840px; }

/* ── Buttons: 緑=主要 / コーラル=行動 / アウトライン=副 ───────── */
.btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 18px 28px;
  min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn.mint    { background: var(--accent);  color: #fff; box-shadow: var(--shadow-mint),  inset 0 3px 0 rgba(255,255,255,0.25); text-shadow: 0 2px 0 rgba(0,0,0,0.1); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-coral), inset 0 3px 0 rgba(255,255,255,0.3);  text-shadow: 0 2px 0 rgba(0,0,0,0.1); }
.btn.outline { background: #fff; color: var(--text); box-shadow: var(--shadow-card), inset 0 0 0 3px var(--line); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(8px); box-shadow: 0 0 0 transparent !important; }
.btn.lg { padding: 22px 36px; font-size: 1.25rem; min-height: 68px; }
.btn.sm { padding: 12px 18px; font-size: 0.95rem; min-height: 44px; border-radius: 18px; box-shadow: 0 5px 0 var(--primary-dark); }
.btn.sm:active { transform: translateY(5px); }
.btn .arrow { width: 22px; height: 22px; flex: none; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(254, 249, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(232, 223, 210, 0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-en); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.brand small { font-family: var(--font-ja); font-weight: 800; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.site-nav { display: none; gap: 28px; font-size: 0.95rem; font-weight: 800; }
.site-nav a { text-decoration: none; color: var(--text-light); }
.site-nav a:hover { color: var(--primary-dark); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 24px 0 56px; }
.hero-card {
  position: relative;
  background: linear-gradient(170deg, #dcefdc 0%, #b7dfb9 55%, #9ad49e 100%);
  border-radius: 40px;
  border: 4px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 0 #86c58b;
  padding: 40px 24px 96px;
  text-align: center;
  overflow: visible;
}
.hero-card::before, .hero-card::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-card::before { width: 140px; height: 140px; left: -30px; top: 40px; background: rgba(255, 213, 79, 0.35); }
.hero-card::after  { width: 90px;  height: 90px;  right: 8%; top: 24px; background: rgba(129, 212, 250, 0.45); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
.hero-copy { text-align: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 18px;
  word-break: keep-all;
  line-height: 1.5;
}
.hero h1 { font-size: clamp(2rem, 8.5vw, 3.6rem); line-height: 1.25; word-break: keep-all; }
.hero-lead { margin-top: 18px; font-size: 1.05rem; color: var(--text-light); font-weight: 700; }
.hero-mascot { width: min(260px, 62vw); margin: 0 auto; animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-actions {
  position: relative; z-index: 2;
  margin-top: -44px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 12px;
}
.hero-actions .btn { width: 100%; max-width: 380px; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
.section-head h2 .mark { display: block; width: 64px; height: 8px; border-radius: 999px; background: var(--gold); margin: 14px auto 0; }
.section-head p { margin-top: 16px; color: var(--text-light); font-size: 1rem; }

/* ── Feature cards ──────────────────────────────────────────── */
.features { display: grid; grid-template-columns: 1fr; gap: 28px; }
.feature {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 12px; background: var(--feature-color, var(--accent)); }
.feature-figure { width: 132px; height: 132px; border-radius: 50%; background: var(--feature-bg, var(--green-bg)); display: grid; place-items: center; margin: 8px 0 20px; }
.feature-figure img { width: 104px; height: 104px; object-fit: contain; }
.feature h3 { font-size: 1.7rem; color: var(--feature-color-dark, var(--accent-dark)); }
.feature .kid { margin-top: 8px; font-size: 1.05rem; font-weight: 800; word-break: keep-all; }
.feature .parent { margin-top: 12px; font-size: 0.95rem; color: var(--text-light); font-weight: 700; }
.feature-foot { margin-top: auto; width: 100%; padding-top: 20px; }
.tag {
  display: inline-block; width: 100%;
  background: var(--feature-bg, var(--green-bg));
  color: var(--feature-color-dark, var(--accent-dark));
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem; font-weight: 800;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; list-style: none; margin: 0; padding: 0; }
.stat { background: var(--yellow-bg); border-radius: var(--radius-sm); padding: 12px 6px; }
.stat b { display: block; font-family: var(--font-en); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--gold-dark); }
.stat span { font-size: 0.8rem; color: var(--text-light); }

.feature.talk  { --feature-color: var(--accent); --feature-color-dark: var(--accent-dark); --feature-bg: var(--green-bg); }
.feature.learn { --feature-color: var(--gold);   --feature-color-dark: var(--gold-dark);   --feature-bg: var(--yellow-bg); }
.feature.read  { --feature-color: var(--sky);    --feature-color-dark: var(--sky-dark);    --feature-bg: var(--sky-bg); }

/* ── Age classes ────────────────────────────────────────────── */
.ages-wrap { background: rgba(255,255,255,0.55); border: 2px solid #fff; border-radius: 40px; padding: 36px 20px; box-shadow: 0 10px 0 rgba(232, 223, 210, 0.7); }
.ages { display: grid; grid-template-columns: 1fr; gap: 14px; }
.age {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 0 var(--line);
  padding: 20px 20px 18px;
  border-top: 6px solid var(--age-color, var(--accent));
}
.age-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px dashed var(--line); margin-bottom: 10px; }
.age-head h3 { font-size: 1.25rem; }
.age-head .years { font-size: 0.85rem; color: var(--muted); font-weight: 800; white-space: nowrap; }
.age p { font-size: 0.95rem; color: var(--text-light); }
.age.c1 { --age-color: var(--pink); }
.age.c2 { --age-color: var(--gold); }
.age.c3 { --age-color: var(--accent-light); }
.age.c4 { --age-color: var(--accent); }
.age.c5 { --age-color: var(--sky); }
.age.c6 { --age-color: var(--primary); }
.ages-note { margin: 24px auto 0; max-width: 640px; text-align: center; font-size: 0.92rem; color: var(--muted); background: var(--bg); border-radius: var(--radius-sm); padding: 14px 18px; }

/* ── Parents ────────────────────────────────────────────────── */
.parents { background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.parents .section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.trust { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trust-item { background: var(--bg); border-radius: var(--radius-md); padding: 22px 22px 20px; display: flex; gap: 16px; align-items: flex-start; }
.trust-icon { flex: none; width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 var(--line); display: grid; place-items: center; color: var(--trust-color, var(--primary)); }
.trust-icon svg { width: 24px; height: 24px; }
.trust-item h3 { font-size: 1.1rem; }
.trust-item p { margin-top: 6px; font-size: 0.95rem; color: var(--text-light); }
.trust-item a { color: var(--primary-dark); }
.trust-item.t1 { --trust-color: var(--primary); }
.trust-item.t2 { --trust-color: var(--sky-dark); }
.trust-item.t3 { --trust-color: var(--accent-dark); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius-md); box-shadow: 0 5px 0 var(--line); border: 2px solid transparent; overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--primary-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; font-size: 1.02rem; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--primary-dark); transition: transform 0.25s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; font-size: 0.95rem; color: var(--text-light); }

/* ── Bottom CTA ─────────────────────────────────────────────── */
.cta { padding: 24px 0 96px; }
.cta-card { background: var(--card); border-radius: 40px; box-shadow: var(--shadow-card); padding: 40px 24px; text-align: center; display: grid; gap: 20px; justify-items: center; }
.cta-card img { width: 150px; height: 150px; object-fit: contain; }
.cta-card h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.cta-card .btn { width: 100%; max-width: 380px; }
.cta-card p { font-size: 0.9rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 2px solid var(--line); padding: 40px 0 48px; text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 800; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); }
.copyright { margin-top: 24px; font-size: 0.8rem; color: #bcaaa4; font-family: var(--font-en); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .ages { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust-item { flex-direction: column; }
  .footer-links { flex-direction: row; justify-content: center; gap: 32px; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero { padding: 40px 0 72px; }
  .hero-card { padding: 56px 56px 104px; text-align: left; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
  .hero-copy { text-align: left; }
  .hero-lead { font-size: 1.15rem; max-width: 30em; }
  .hero-mascot { width: 300px; }
  .hero-actions { flex-direction: row; justify-content: center; margin-top: -48px; }
  .hero-actions .btn { width: auto; min-width: 260px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .ages { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ages-wrap { padding: 48px 40px; }
  .section { padding: 80px 0; }
  .cta-card { grid-template-columns: auto 1fr; text-align: left; justify-items: start; padding: 44px 56px; column-gap: 36px; }
  .cta-card img { grid-row: 1 / span 3; }
  .cta-card .btn { width: auto; }
}
