/*
  Three faces, each cut to this page by landing/build_font.py, for the same
  reason the app bundles its own: a browser with no Japanese face falls
  back to whatever has the codepoint, and that is how Simplified Chinese
  forms end up on a page about Japanese words.
    Tangoya JP      Noto Sans JP, the body, kana/kanji only (unicode-range)
    Tangoya Mincho  Shippori Mincho SemiBold, the display face: the word on
                    a tag, the kinds, the big numbers, the headlines
    Tangoya Brush   Yuji Syuku, the three characters of the noren
*/
@font-face {
  font-family: 'Tangoya JP';
  src: url('../fonts/tangoya-landing-jp.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: 'Tangoya Mincho';
  src: url('../fonts/tangoya-landing-mincho.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Tangoya Brush';
  src: url('../fonts/tangoya-landing-brush.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}

/* The app's 暖簾 palette (PLAN-shop-facelift §2.1): 生成り ground, 晒 cards,
   墨 text, 藍 indigo, 朱 only on the hanko and the stamps. Light only: the page
   does not follow a dark preference (the app's 夜藍 is not drawn here yet).
   The block between the markers is GENERATED from the app's ShopColors by
   test/web_home/sync_test.dart (--update-goldens rewrites it; the test
   fails when it is out of date), so a palette change in the app reaches
   this page too. */
/* landing-tokens:start */
:root {
  color-scheme: light;
  --ground: #f4efe4;
  --card: #fffdf8;
  --ink: #1e1e1c;
  --muted: #625f5a;
  --ai: #1b2e5a;
  --noren: #1b2e5a;
  --on-noren: #fffdf8;
  --fill: #1b2e5a;
  --rod: #1e1e1c;
  --hanada: #3b5a8c;
  --asagi: #dce4ee;
  --shu: #b5402a;
  --on-shu: #fffdf8;
  --right: #2f6b4f;
  --wrong: #a8243a;
  --between: #9c5a12;
  --line: #1b2e5a4d;
  --hair: #1b2e5a2e;
}
/* landing-tokens:end */
:root { --shadow: 0 2px 0 rgba(0, 0, 0, .25); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Tangoya JP', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[lang="ja"] { font-feature-settings: 'palt' 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--hanada); }
a:hover { color: var(--ai); }
img { display: block; }
button { font: inherit; color: inherit; }
/* The cut holds every character the page sets in it except ≈, which Shippori Mincho lacks:
   that one falls through to the system face, as it does in the app. */
.mincho { font-family: 'Tangoya Mincho', system-ui, 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 600; }
.brush { font-family: 'Tangoya Brush', 'Tangoya Mincho', serif; font-weight: 400; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hanada); }

/* ------------------------------------------------------------- buttons */
.btn-out {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ai); border-radius: 4px; background: var(--card); color: var(--ai);
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.btn-out:hover { background: var(--asagi); color: var(--ai); }
/* Apple's "Download on the App Store" badge (img/app-store-badge.svg), as Apple draws it: 40px is its
   minimum height, and it is not recoloured. In the nav and under the closing's Start. */
.store { display: inline-flex; line-height: 0; flex: none; }
.store img { width: 120px; height: 40px; }
.hanko {
  width: 76px; height: 76px; border-radius: 50%; flex: none; cursor: pointer; border: 0; text-decoration: none;
  background: var(--shu); color: var(--on-shu);
  box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 5px var(--on-shu);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px;
  transition: transform .15s;
}
.hanko:hover { transform: scale(1.04); color: var(--on-shu); }
.hanko:active { transform: scale(.98); }
.cta { display: flex; align-items: center; gap: 20px; }
.cta .big { font-size: 24px; line-height: 1.2; }
.cta .note { font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.next {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; width: 100%;
  border: 0; border-radius: 4px; background: var(--noren); color: var(--on-noren); font-weight: 500; font-size: 16px; cursor: pointer;
}
.next:hover { filter: brightness(1.1); }
.quiet { background: none; border: 0; padding: 6px 4px; color: var(--hanada); font-size: 15px; text-decoration: underline; cursor: pointer; }
.quiet:hover { color: var(--ai); }
:focus-visible { outline: 3px solid var(--hanada); outline-offset: 3px; border-radius: 4px; }
.hanko:focus-visible { border-radius: 50%; }

/* --------------------------------------------------------------- noren */
.rod { height: 4px; background: var(--rod); }
.panel {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--noren); color: var(--on-noren); box-shadow: var(--shadow);
}
.big-noren { display: flex; gap: 8px; height: 150px; }
.big-noren .panel { flex: 1; font-size: 64px; }
.big-noren .plain { flex: .6; }
.top-nav { display: flex; justify-content: flex-end; align-items: center; gap: 26px; padding: 16px 0 0; font-size: 15px; }
.closing-noren { display: flex; gap: 8px; height: 200px; }
.closing-noren .panel { flex: 1; font-size: 88px; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: start; padding: 48px 0 96px;
}
.hero-copy { padding-top: 32px; }
h1 { margin-top: 16px; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 32em; }
.lede strong { color: var(--ink); font-weight: 500; }
.hero .cta { margin-top: 36px; }

.card { background: var(--card); border: 1px solid var(--hair); border-radius: 4px; }
.numbers { padding: 24px; width: min(480px, 100%); justify-self: end; }
.numbers .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.numbers .label { font-weight: 700; }
.numbers .count { font-size: 52px; line-height: 1.05; color: var(--ai); font-variant-numeric: tabular-nums; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.skill { padding: 14px 16px; }
.skill .name { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.skill .name span { font-weight: 400; color: var(--muted); }
.skill .pct { font-size: 30px; line-height: 1.1; color: var(--ai); font-variant-numeric: tabular-nums; }
.skill .shown { font-size: 13px; color: var(--muted); margin-top: 6px; }
.skill .shown b { color: var(--ai); font-weight: 700; }
.gauge { height: 6px; border-radius: 3px; background: var(--asagi); overflow: hidden; margin-top: 8px; }
.gauge i { display: block; height: 100%; background: var(--fill); }
.fineprint { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }
svg.ic { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------ sections */
section { padding: 80px 0; }
.band { background: var(--card); border-block: 1px solid var(--hair); }
.stall {
  display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px;
  background: var(--noren); color: var(--on-noren);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.stall .k { font-size: 18px; letter-spacing: 0; text-transform: none; }
.section-head { max-width: 40em; margin-top: 40px; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-head p + p { margin-top: 14px; font-size: 17px; }
.more { font-size: 15px; font-weight: 500; }


/* closing */
.closing { text-align: center; background: var(--card); border-top: 1px solid var(--hair); padding: 72px 0 80px; }
.closing h2 { margin-top: 44px; }
.closing p { margin: 14px auto 0; max-width: 32em; font-size: 18px; color: var(--muted); }
.closing .cta { justify-content: center; margin-top: 32px; text-align: left; }
.closing .store-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.closing .store-row p { margin: 0; font-size: 15px; }

footer { padding: 40px 0 56px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
footer .foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: var(--ink); }
footer .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
footer .brand .panel { width: 34px; height: 34px; font-size: 18px; }
footer .brand .en { color: var(--muted); font-weight: 500; }
footer p { max-width: 70em; }
footer p + p { margin-top: 10px; }


/* ------------------------------------------------------------ responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 24px 0 64px; }
  .hero-copy { padding-top: 8px; }
  .numbers { justify-self: center; }
  section { padding: 64px 0; }
  .big-noren { height: 110px; }
  .big-noren .panel { font-size: 44px; }
  .big-noren .plain { display: none; }
  .closing-noren { height: 150px; }
  .closing-noren .panel { font-size: 60px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top-nav { gap: 18px; }
  .top-nav .hide-narrow { display: none; }
  .lede { font-size: 18px; }
  .numbers { padding: 16px; }
  .numbers .count { font-size: 44px; }
  .skills { gap: 10px; }
  .skill { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hanko { transition: none; }
}
