/* KantanWa site. Light only. Fonts are self-hosted subsets (assets/fonts). */
@font-face { font-family: "Klee"; src: url(assets/fonts/klee-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zen"; src: url(assets/fonts/zen-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen"; src: url(assets/fonts/zen-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #22262e;
  --ink-2: #4a5160;
  --ai: #1f3557;          /* noren indigo */
  --ai-deep: #172843;
  --paper: #ffffff;
  --sky: #eef3f7;         /* morning-sky wash */
  --line: #d6dde6;
  --amber: #b45309;       /* chapter 1 */
  --amber-tint: #fff8eb;
  --amber-edge: #f5d9a8;
  --teal: #0f766e;        /* chapter 2 */
  --teal-tint: #effbf8;
  --teal-edge: #a7e3d8;
  --plum: #86198f;        /* chapter 3 */
  --plum-tint: #fcf3fd;
  --plum-edge: #ebc3ef;
  --focus: #b45309;
  --radius-s: 6px;
  --radius-m: 14px;
  --display: "Klee", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Zen", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #8a3f06; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(28px, 4.6vw, 42px); color: var(--ai); max-width: 22ch; }
h3 { font-size: 21px; }
p { margin: 0 0 .9em; }
[lang="ja"].jp, .jp[lang="ja"] { word-break: keep-all; overflow-wrap: anywhere; }
ruby rt { font-family: var(--body); font-size: .5em; font-weight: 400; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s); z-index: 20; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }
.small { font-size: 15px; color: var(--ink-2); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin-top: 14px; }

/* ── top bar ── */
.top { background: var(--ai); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 21px/1 var(--display); min-height: 44px; }
.brand img { border-radius: 9px; }
.brand:hover { color: #fff; }
.top nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; color: #fff; text-decoration: none; font-size: 15px; padding: 12px 10px; white-space: nowrap; border-radius: var(--radius-s); }
.top nav a:hover { background: var(--ai-deep); color: #fff; }
.top :focus-visible { outline-color: #fff; }
.brand { flex: none; }
@media (max-width: 719px) {
  .top nav li:nth-child(-n+3) { display: none; }
  .top nav a { padding: 12px 8px; }
}

/* ── hero: the noren ── */
.noren { background: var(--ai); color: #fff; position: relative; padding: 36px 0 0; }
/* the curtain's slits: the indigo hangs in panels over the white page */
/* the curtain's hem: a stitched line near the bottom edge */
.noren::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 0;
  border-top: 2px dashed rgba(255, 255, 255, .3); pointer-events: none;
}
.noren :focus-visible { outline-color: #ffd28a; }
.hero { position: relative; z-index: 1; display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 0; }
.hero-mark {
  margin: 0; font: 600 44px/1 var(--display); color: #fff; display: flex; align-items: baseline; gap: 6px;
}
.hero-mark .plus { font-size: .5em; color: #ffd28a; }
.hero-copy h1 { font-size: clamp(46px, 9vw, 76px); line-height: 1.02; }
.hero-name { font-size: 16px; color: #d5deeb; margin: 10px 0 22px; }
.hero-name i { font-style: normal; color: #fff; }
.hero-lede { font: 600 clamp(24px, 3.6vw, 32px)/1.35 var(--display); color: #fff; max-width: 22ch; margin-bottom: 14px; }
.hero-sub { color: #dfe6f0; max-width: 46ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px;
  border: 1.5px solid #8ea2c4; border-radius: 10px; color: #fff; font: 700 17px/1.1 var(--body);
}
.store small { display: block; font-size: 12px; font-weight: 400; color: #d5deeb; margin-bottom: 2px; }

/* the live line card */
.talk {
  margin: 0; background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(23, 40, 67, .08), 0 18px 40px -18px rgba(23, 40, 67, .55);
  max-width: 440px; width: 100%; justify-self: center; margin-bottom: 40px;
}
.talk-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.talk-body { padding: 14px 16px 16px; }
.talk-who { display: flex; align-items: center; gap: 10px; }
.talk-who .face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid var(--amber-edge); }
.talk-who p { margin: 0; line-height: 1.2; font-size: 16px; }
.talk-who p span { color: var(--ink-2); font-size: 14px; }
.talk-who small { color: var(--ink-2); font-size: 13px; }
.listen {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px 0 16px;
  border: 0; border-radius: 999px; background: var(--amber); color: #fff; font: 700 16px/1 var(--body); cursor: pointer;
}
.listen:hover { background: #8a3f06; }
.listen .i-stop { display: none; }
.listen.playing .i-play { display: none; }
.listen.playing .i-stop { display: inline; }
.line { margin-top: 12px; background: var(--amber-tint); border: 1px solid var(--amber-edge); border-radius: 12px; padding: 12px 14px 10px; }
.line .jp { font: 600 26px/1.9 var(--display); margin: 0; }
.line .en { font-size: 15px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.5; }
.no-ruby rt { visibility: hidden; }
.no-en .en { display: none; }
.talk-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 400 15px/1 var(--body); cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--ai); color: #fff; font-weight: 700; }
.tog { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; min-height: 44px; cursor: pointer; }
@media (min-width: 768px) {
  .talk { max-width: 460px; }
  .talk-tools { flex-wrap: nowrap; gap: 12px; }
  .seg button { padding: 0 11px; }
  .tog { gap: 5px; white-space: nowrap; }
}
.tog input { width: 20px; height: 20px; accent-color: var(--ai); margin: 0; }

@media (min-width: 900px) {
  .noren { padding-top: 64px; }
  .hero { grid-template-columns: auto minmax(0, 1fr) 460px; gap: 40px; align-items: start; }
  .hero-mark { writing-mode: vertical-rl; font-size: 96px; gap: 10px; padding-top: 4px; }
  .hero-mark .plus { font-size: .38em; }
  .talk { margin: 0 0 -96px; }   /* the card hangs below the curtain */
  .noren + .sec { padding-top: 184px; }
}

/* ── sections ── */
.sec { padding: 72px 0; }
.sec-sky { background: var(--sky); }
@media (min-width: 900px) { .sec { padding: 104px 0; } }

/* how it works: a real sequence, so numbered */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.steps .n {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--amber-tint); border: 1.5px solid var(--amber); color: var(--amber); font: 600 20px/1 var(--display);
}
.steps p { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { position: relative; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 56px; right: -28px; border-top: 2px dotted var(--amber-edge); z-index: -1; }
}

.notes-row { display: grid; gap: 32px; margin-top: 64px; align-items: start; }
.notes-copy h3 { font-size: 26px; color: var(--ai); margin-bottom: 12px; }
.notes-copy p { max-width: 52ch; }
@media (min-width: 900px) { .notes-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.notes { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px 16px 14px; background: var(--paper); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 10px; overflow-x: auto; }
.tabs button {
  min-height: 48px; padding: 0 12px; border: 0; background: none; color: var(--ink-2); font: 400 15px/1 var(--body);
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--amber); }
.tabs button span { font-family: var(--display); margin-right: 4px; }
.words { margin: 0; display: grid; gap: 10px; }
.words div { display: grid; grid-template-columns: minmax(6.5em, auto) 1fr; gap: 12px; align-items: baseline; }
.words dt { font: 600 21px/1.6 var(--display); }
.words dd { margin: 0; color: var(--ink-2); }
.lv { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ai); color: #fff; vertical-align: 2px; margin-left: 4px; }
.g-form { font: 600 26px/1.3 var(--display); }
.ex { background: var(--sky); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.ex span { font: 600 18px/1.7 var(--display); }
.pane b { font: 600 20px/1.6 var(--display); }
.tip { font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--amber-edge); padding-left: 10px; }
.notes-src { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }
.reg-polite, .words div.reg-polite { display: none; }
.is-polite .reg-polite { display: block; }
.is-polite .words div.reg-polite { display: grid; }
.is-polite .reg-casual, .is-polite .words div.reg-casual { display: none; }
.hero > *, .notes-row > *, .choice > *, .map > *, .prices > * { min-width: 0; }

/* choice demo */
.choice { display: grid; gap: 24px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .choice { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.choice-pic { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.choice-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .35s ease; }
.choice-pic img.fading { opacity: 0; }
.result {
  position: absolute; left: 12px; bottom: 12px; margin: 0; background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font: 600 17px/1.3 var(--display);
}
.bubble { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; }
.bubble .who { font-size: 14px; font-weight: 700; color: var(--amber); margin: 0 0 2px; }
.bubble .jp { font: 600 22px/1.85 var(--display); margin: 0; }
.bubble .en { color: var(--ink-2); font-size: 15px; margin: 0; }
.bubble.reply { margin-top: 16px; border-color: var(--amber-edge); background: var(--amber-tint); }
.you-say { font-size: 15px; font-weight: 700; color: var(--ai); margin: 20px 0 8px; }
.opts { display: grid; gap: 10px; }
.opt {
  text-align: left; width: 100%; min-height: 64px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--teal-edge); background: var(--paper); color: var(--ink); font: inherit;
}
.opt:hover { border-color: var(--teal); }
.opt[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); box-shadow: inset 4px 0 0 var(--teal); }
.opt .jp { display: block; font: 600 20px/1.85 var(--display); }
.opt .en { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.4; }

.map { display: grid; gap: 28px; margin-top: 80px; align-items: center; }
.map-copy h3 { font-size: 30px; color: var(--plum); margin-bottom: 14px; }
.ch3-jp { margin-right: 8px; }
.map-copy p { max-width: 50ch; }
.map-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; }
.map-shots img { border-radius: 18px; border: 6px solid #2b2f38; box-shadow: 0 16px 30px -18px rgba(23, 40, 67, .6); }
.map-shots img:nth-child(2) { margin-top: 40px; }
@media (min-width: 900px) { .map { grid-template-columns: 1fr 1fr; gap: 64px; } .map-shots { justify-self: end; } }

/* cast */
.cast { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cast { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cast { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }
.cast img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 120px 120px var(--radius-m) var(--radius-m); background: var(--sky); }
.cast h3 { margin: 12px 0 4px; font-size: 21px; }
.cast h3 span { color: var(--ink-2); font-size: 17px; margin-left: 4px; }
.cast p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* places: a sideways strip */
.places {
  list-style: none; margin: 36px 0 0; padding: 0 var(--gutter) 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
}
@media (min-width: 1200px) { .places { padding-left: calc((100vw - 1160px) / 2 + var(--gutter)); } }
.places li { scroll-snap-align: start; }
.places img { border-radius: var(--radius-m); aspect-ratio: 1; object-fit: cover; }
.places p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.places p span { font: 600 18px/1.4 var(--display); color: var(--ink); margin-right: 6px; }
.album-note { margin: 32px 0 0; max-width: 62ch; font-size: 17px; }

/* chapters: three spines in the app's chapter colours */
.chapters { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .chapters { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ch { border-radius: var(--radius-m); padding: 22px 22px 18px; border: 1.5px solid; border-top-width: 10px; }
.ch .ch-jp { font: 600 44px/1.1 var(--display); margin: 0 0 10px; }
.ch h3 { font-size: 22px; margin-bottom: 8px; }
.ch p { color: var(--ink-2); font-size: 16px; }
.ch .ch-count { font-weight: 700; margin: 14px 0 0; }
.ch1 { background: var(--amber-tint); border-color: var(--amber-edge); border-top-color: var(--amber); }
.ch1 .ch-jp, .ch1 .ch-count { color: var(--amber); }
.ch2 { background: var(--teal-tint); border-color: var(--teal-edge); border-top-color: var(--teal); }
.ch2 .ch-jp, .ch2 .ch-count { color: var(--teal); }
.ch3 { background: var(--plum-tint); border-color: var(--plum-edge); border-top-color: var(--plum); }
.ch3 .ch-jp, .ch3 .ch-count { color: var(--plum); }

/* price */
.prices { display: grid; gap: 20px; margin-top: 40px; align-items: stretch; }
@media (min-width: 820px) { .prices { grid-template-columns: 1fr 1.25fr; gap: 28px; } }
.price { background: var(--paper); border-radius: var(--radius-m); padding: 26px 24px 20px; border: 1.5px solid var(--line); }
.price h3 { font-size: 24px; color: var(--ai); }
.price .amount { font: 600 34px/1.2 var(--display); margin: 8px 0 12px; }
.price .amount span { font-size: 20px; color: var(--ink-2); }
.price.full { border: 2px solid var(--amber); }
.price .vn { font-size: 15px; color: var(--ink-2); margin-top: -6px; }
.price ul { margin: 0 0 14px; padding-left: 1.2em; }
.price li { margin-bottom: 4px; }
.price li::marker { color: var(--amber); }

/* privacy band: the noren again, plain */
.privacy-band { background: var(--ai); color: #fff; padding: 72px 0; }
.privacy-band h2 { color: #fff; }
.privacy-band a { color: #ffd28a; }
.privacy-band a:hover { color: #fff; }
.privacy-band :focus-visible { outline-color: #ffd28a; }
.promises { list-style: none; margin: 32px 0 28px; padding: 0; display: grid; gap: 14px 40px; }
@media (min-width: 760px) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li { color: #dfe6f0; padding-left: 18px; border-left: 3px solid #ffd28a; }
.promises b { color: #fff; }

/* faq */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px;
  font: 700 18px/1.4 var(--body); padding: 12px 0;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font: 600 26px/1 var(--display); color: var(--amber); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); max-width: 64ch; }

/* footer */
.foot { background: var(--sky); padding: 48px 0 40px; font-size: 15px; }
.foot-in { display: grid; gap: 18px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-brand p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.foot-brand b { color: var(--ink); font: 600 20px/1.3 var(--display); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-block; padding: 10px 0; }
.credits, .copy { color: var(--ink-2); margin: 0; max-width: 80ch; }

/* the one load moment: the noren settles */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-mark { animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }
  .talk { animation: settle .8s .12s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-pic img { transition: none; }
}

/* plain pages (privacy, support) */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(34px, 6vw, 48px); color: var(--ai); margin-bottom: 18px; }
.page h2 { font-size: 24px; margin: 32px 0 8px; max-width: none; }
.page p { max-width: 66ch; }
.page .lede { color: var(--ink); }
.page .updated { font-size: 15px; color: var(--ink-2); margin-top: 40px; }
