/* koenoe site: navy like the app icon, cream speech bubbles, Yusei Magic for headings. */
:root {
  --navy: #011a5c;
  --navy-2: #0b1e66;
  --cream: #fdf7e7;
  --paper: #fffbf2;
  --ink: #1d2340;
  --ink-soft: #545a75;
  --coral: #ed6b78;
  --coral-deep: #d9505e;
  --yellow: #fac22e;
  --mint: #33bd99;
  --line: #eadfc4;
  --hand: "Yusei Magic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.35; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- top bar ---------- */
.bar { background: var(--navy); color: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--hand); font-size: 1.35rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.bar nav { display: flex; gap: 16px; font-size: .9rem; }
.bar nav a { color: #dfe5ff; text-decoration: none; }
.bar nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(circle at 80% 10%, #13307f 0, transparent 45%), var(--navy);
  color: #fff;
  padding: 36px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 40px; } .hero { padding: 72px 0 96px; } }
.hero .app { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero .app img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.hero .app .name { font-family: var(--hand); font-size: 2.1rem; line-height: 1.1; }
.hero .app .kana { font-size: .95rem; color: #c8d1f5; }
.hero h1 { font-size: clamp(1.75rem, 6vw, 2.8rem); margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #dfe5ff; font-size: 1.05rem; max-width: 34em; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-weight: 600; font-size: .95rem;
}
.store .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

/* Talking character with a speech bubble */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.bubble {
  position: relative; background: var(--cream); color: var(--navy);
  font-family: var(--hand); font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  padding: 14px 26px; border-radius: 28px; margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; margin-left: -14px;
  border: 14px solid transparent; border-top: 18px solid var(--cream); border-bottom: 0;
}
.bubble .said { color: var(--coral-deep); }
.talker { position: relative; width: min(64vw, 300px); aspect-ratio: 828 / 900; }
.talker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.talker .open { animation: talk 1.6s steps(1, end) infinite; opacity: 0; }
.talker::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -2%; height: 9%;
  background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); z-index: -1;
}
@keyframes talk {
  0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: 0; } 24% { opacity: 1; }
  32% { opacity: 0; } 40% { opacity: 1; } 52% { opacity: 0; } 100% { opacity: 0; }
}
.talker.bounce { animation: hop 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hop {
  0%, 100% { transform: scale(1, 1); } 10% { transform: scale(.985, 1.03); } 26% { transform: scale(.985, 1.03); }
  42% { transform: scale(.985, 1.03); } 55% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .talker .open, .talker.bounce, .chars .open { animation: none; }
}

.wave { display: block; width: 100%; height: 48px; margin-top: -47px; position: relative; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--coral-deep); margin-bottom: 6px; }
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 40em; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Flow */
.flow { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li {
  list-style: none; background: #fff; border: 2px solid var(--line); border-radius: 22px;
  padding: 20px 18px 18px; position: relative;
}
.flow li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 8px;
}
.flow h3 { margin-bottom: .3em; }
.flow p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.flow { padding: 0; }

/* Features with a screenshot */
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } .feature.flip .shot { order: 2; } }
.shot { display: flex; justify-content: center; }
.phone {
  width: min(78vw, 300px); border-radius: 36px; overflow: hidden;
  border: 8px solid var(--navy); box-shadow: 0 18px 40px rgba(1,26,92,.25); background: #fff;
}
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.points .ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--cream); color: var(--navy); font-weight: 700; font-size: .95rem; margin-top: 2px;
}
.points b { display: block; }
.points span.t { color: var(--ink-soft); font-size: .95rem; }
.tint { background: var(--cream); }

/* Characters */
.chars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 560px) { .chars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .chars { grid-template-columns: repeat(5, 1fr); } }
.chars figure { margin: 0; border-radius: 20px; padding: 12px 10px 8px; text-align: center; }
.chars .pic { position: relative; aspect-ratio: 1; }
.chars .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.chars .open { opacity: 0; animation: talk 1.6s steps(1, end) infinite; }
.chars figcaption { font-family: var(--hand); color: var(--navy); margin-top: 4px; }

/* Child character */
.child { background: var(--navy); color: #fff; }
.child .sub { color: #dfe5ff; }
.child .eyebrow { color: var(--yellow); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 2px 12px; vertical-align: middle; margin-left: 6px; font-family: var(--body); }
.child-grid { display: grid; gap: 28px; align-items: center; margin-top: 8px; }
@media (min-width: 860px) { .child-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.make { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.make .photo {
  width: 120px; height: 140px; border-radius: 16px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.3); transform: rotate(-4deg);
}
.make .arrow { font-size: 2rem; color: var(--yellow); }
.make .cands { display: flex; gap: 8px; }
.make .cand { width: 76px; height: 86px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; padding: 6px; }
.make .cand.pick { outline: 3px solid var(--yellow); outline-offset: 2px; }
.steps { padding-left: 1.3em; margin: 16px 0 0; }
.steps li { margin-bottom: 8px; }
.note { font-size: .9rem; color: #c8d1f5; margin-top: 14px; }

/* Privacy */
.privacy-grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 22px 20px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card .emoji { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; display: block; }

/* FAQ */
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--coral-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 14px; color: var(--ink-soft); }
.faq ol { padding-left: 1.3em; margin: 0 0 .6em; }

/* Closing + footer */
.closing { background: var(--navy); color: #fff; text-align: center; }
.closing .sub { color: #dfe5ff; }
.closing .row { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 18px; }
.closing .row img { width: 84px; }
@media (min-width: 560px) { .closing .row img { width: 110px; } }
footer { background: #00103d; color: #aab5e0; font-size: .88rem; padding: 28px 0 36px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: #dfe5ff; }

/* ---------- document pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
@media (min-width: 720px) { .doc { padding: 56px 28px 96px; } }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--navy); }
.doc h2 { font-size: 1.4rem; color: var(--navy); margin-top: 1.8em; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; font-family: var(--body); font-weight: 700; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); font-size: .9rem; }
.draft {
  background: #fff4d6; border: 2px solid var(--yellow); border-radius: 16px;
  padding: 14px 18px; margin: 18px 0 8px; font-size: .95rem;
}
.draft b { color: #8a5a00; }
.placeholder { background: #fff4d6; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.toc { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; }
.howto { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 6px 20px 10px; margin: 14px 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 12px 0; }
table.simple th, table.simple td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.simple th { width: 32%; color: var(--navy); }
@media (max-width: 560px) {
  table.simple, table.simple tbody, table.simple tr, table.simple th, table.simple td { display: block; width: 100%; }
  table.simple th { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- fixes found by rendering ---------- */
h1, h2, h3 { text-wrap: balance; }
.sub { text-wrap: pretty; }
.bar nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .bar nav { gap: 14px; font-size: .85rem; }
  .wide-only { display: none; }
}
.make .arrow .d { display: none; }
@media (max-width: 560px) {
  .make { flex-direction: column; gap: 6px; }
  .make .arrow .r { display: none; }
  .make .arrow .d { display: inline; }
}

/* Editor mock (made-up words, not a real recording) */
.mock { background: #fff; font-family: var(--body); color: var(--ink); padding: 14px 0 0; display: flex; flex-direction: column; }
.m-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 10px; font-size: .95rem; }
.m-back { font-size: 1.6rem; line-height: 1; color: var(--ink); }
.m-tools { color: var(--coral); letter-spacing: .3em; font-size: .9rem; }
.m-wave { display: block; width: calc(100% - 28px); height: 56px; margin: 0 14px; }
.m-time { font-size: .72rem; padding: 4px 14px 8px; border-bottom: 1px solid #eee; font-variant-numeric: tabular-nums; }
.m-lines { padding: 10px 14px 6px; display: grid; gap: 10px; flex: 1; }
.m-line { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline; font-size: 1.02rem; }
.m-t { font-size: .68rem; color: #8b8fa3; font-variant-numeric: tabular-nums; }
.m-line mark { background: #ffe58a; border-radius: 4px; padding: 0 2px; }
.m-line.cut span:last-child { color: #b9bccb; text-decoration: line-through; }
.m-bottom { background: #f6f6f6; padding: 10px 12px 14px; display: grid; gap: 10px; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-chip { display: grid; place-items: center; width: 64px; height: 46px; border-radius: 12px; background: #fbe3e5; color: var(--coral); font-size: 1rem; line-height: 1.1; }
.m-chip small { font-size: .55rem; }
.m-play { width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; }
.m-btn { flex: 1; text-align: center; background: var(--coral); color: #fff; border-radius: 999px; padding: 9px 0; font-size: .82rem; font-weight: 700; }
