/* NipponGo answer pages. Generated by _i18n/nippongo/build_answers.py: do not edit by hand.
   Same palette and faces as the landing (site/apps/nippongo/index.html); light only, like the landing. */
:root {
  --washi: #F4EAE0; --washi-soft: #FAF4ED; --card: #FFFCF8;
  --shu: #D23B2C; --shu-deep: #A82C20; --kon: #1C2B4A; --ai: #2E4A78;
  --matcha: #5E7D4F; --matcha-deep: #46683B; --kin: #C9A24A; --kin-ink: #785E21;
  --sumi: #241C18; --sumi-soft: #574B43; --sumi-muted: #65584F;
  --line: rgba(36,28,24,0.12);
  --radius-sm: 14px; --radius-md: 20px; --radius-lg: 28px;
  --shadow: 0 26px 60px -28px rgba(40,22,16,0.42);
  --shadow-card: 0 18px 44px -30px rgba(40,22,16,0.36);
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif; color: var(--sumi); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  background: var(--washi) linear-gradient(180deg, var(--washi-soft) 0, var(--washi) 520px) no-repeat;
}
h1, h2, h3, .wordmark, .sb-bot { font-family: 'Shippori Mincho', serif; line-height: 1.22; letter-spacing: 0.002em; }
html[lang="ko"] body { font-family: 'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,sans-serif; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .sb-bot { font-family: 'Nanum Myeongjo','Noto Serif KR','Apple SD Gothic Neo',serif; }
html[lang="zh-Hans"] body { font-family: 'PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] .sb-bot { font-family: 'Songti SC','Noto Serif SC','SimSun',serif; }
html[lang="zh-Hant"] body { font-family: 'PingFang TC','Noto Sans TC','Microsoft JhengHei',system-ui,sans-serif; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] .sb-bot { font-family: 'Songti TC','Noto Serif TC','PMingLiU',serif; }
[lang="ja"] { font-family: 'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP','Yu Gothic','Meiryo',sans-serif; }
/* Korean wraps between words, never inside one; Chinese headings break at punctuation
   instead of mid-word (overflow-wrap still rescues a line that would not fit). */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header: an opaque layer; its shadow shows only once something scrolls under it */
header.top {
  position: sticky; top: 0; z-index: 50; background: var(--washi-soft);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
header.top.scrolled { box-shadow: 0 8px 30px -18px rgba(40,22,16,0.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(40,22,16,0.22); }
.wordmark { font-size: 1.34rem; font-weight: 700; color: var(--kon); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center; background: var(--shu-deep); color: #fff; font-weight: 700;
  font-size: 0.92rem; padding: 9px 18px; border-radius: 100px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(168,44,32,0.7);
}
.lang-switch { position: relative; }
.lang-switch > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 11px 7px 10px; font-weight: 700; font-size: 0.84rem; color: var(--kon);
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch svg { width: 16px; height: 16px; flex: none; stroke: var(--shu); fill: none; stroke-width: 1.6; }
.lang-switch .caret { width: 7px; height: 7px; border-right: 1.8px solid var(--sumi-muted); border-bottom: 1.8px solid var(--sumi-muted); transform: rotate(45deg) translate(-2px,-2px); transition: transform .18s ease; }
.lang-switch[open] .caret { transform: rotate(-135deg) translate(-2px,-2px); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 176px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 22px 46px -22px rgba(40,22,16,0.5); padding: 6px;
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 0.94rem; font-weight: 500; color: var(--sumi-soft); text-decoration: none; }
.lang-menu a:hover { background: rgba(210,59,44,0.08); color: var(--shu-deep); }
.lang-menu a[aria-current="true"] { color: var(--shu-deep); font-weight: 700; background: rgba(210,59,44,0.07); }

/* breadcrumb and hero */
.crumbs { padding-top: 22px; font-size: 0.88rem; color: var(--sumi-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; row-gap: 2px; }
.crumbs li + li::before { content: "\203A"; margin: 0 0.5em; color: var(--sumi-muted); }
.crumbs a { color: var(--sumi-soft); text-underline-offset: 3px; text-decoration-color: rgba(36,28,24,0.35); }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0 6px; }
.seal {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; margin-top: 4px;
  background: var(--shu-deep); color: #fff; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.32), 0 8px 18px -10px rgba(120,30,20,0.7);
}
.seal[lang="ja"] { font: 700 1.8rem/1 'Hiragino Mincho ProN','Yu Mincho','YuMincho','Noto Serif JP','Noto Serif CJK JP',serif; }
.eyebrow { color: var(--shu-deep); font-weight: 900; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
html[lang="ko"] .eyebrow, html[lang^="zh"] .eyebrow { letter-spacing: 0.04em; font-weight: 700; }
h1 { color: var(--kon); font-weight: 800; font-size: 2.05rem; margin-top: 6px; text-wrap: balance; hyphens: auto; }
.jp-title { margin-top: 4px; font-size: 1.05rem; color: var(--sumi-soft); }
.lead { margin-top: 12px; color: var(--sumi-soft); font-size: 1.06rem; max-width: 64ch; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; font-weight: 700; font-size: 0.9rem; color: var(--kon); white-space: nowrap; }
.when { margin-top: 10px; color: var(--sumi-soft); font-size: 0.97rem; }

/* sections */
.sec { margin-top: 40px; }
.sec > h2 { color: var(--kon); font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.sec > h3 { color: var(--kin-ink); font-family: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 22px 0 8px; }
html[lang="ko"] .sec > h3, html[lang^="zh"] .sec > h3 { letter-spacing: 0.02em; font-size: 0.9rem; }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--sumi-muted); max-width: 72ch; }
.romaji { font-style: italic; }

/* dishes */
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.dish { background: var(--card); border: 1px solid rgba(168,44,32,0.1); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); scroll-margin-top: 84px; }
.dish .cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kin-ink); }
html[lang="ko"] .dish .cat, html[lang^="zh"] .dish .cat { letter-spacing: 0.02em; font-size: 0.8rem; }
.dish h3 { color: var(--kon); font-size: 1.22rem; font-weight: 700; margin-top: 2px; }
.jp { margin-top: 4px; color: var(--sumi-soft); font-size: 0.92rem; }
.jp .ja-name { font-size: 1.12rem; font-weight: 700; color: var(--sumi); margin-right: 0.3em; }
.jp .kana { margin-right: 0.3em; }
.dish .line { margin-top: 10px; }
.price { margin-top: 12px; font-weight: 700; }
.price .unit { font-weight: 500; color: var(--sumi-soft); margin-left: 0.25em; }
.also { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px 28px; }
.also h3 { font-family: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kin-ink); margin-bottom: 4px; }
html[lang="ko"] .also h3, html[lang^="zh"] .also h3 { letter-spacing: 0.02em; font-size: 0.88rem; }
.also ul { list-style: none; }
.also li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.also a { font-weight: 700; color: var(--kon); text-underline-offset: 3px; text-decoration-color: rgba(28,43,74,0.3); margin-right: 0.4em; }
.also .ja { color: var(--sumi-soft); font-size: 0.92rem; }

/* how to order */
.place { scroll-margin-top: 84px; }
.place > .jp { margin-top: -8px; }
.steps { margin: 14px 0 0 1.3em; max-width: 72ch; }
.steps li { margin-top: 6px; padding-left: 0.2em; }
.steps li::marker { color: var(--shu-deep); font-weight: 700; }
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 18px; }
.phrases { background: var(--card); border: 1px solid rgba(168,44,32,0.1); border-radius: var(--radius-sm); padding: 14px 16px; }
.phrases h3 { font-family: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kin-ink); }
html[lang="ko"] .phrases h3, html[lang^="zh"] .phrases h3 { letter-spacing: 0.02em; font-size: 0.88rem; }
.phrases ul { list-style: none; }
.phrases li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.phrases li:last-child { border-bottom: 0; padding-bottom: 0; }
.ja-phrase { font-size: 1.08rem; font-weight: 700; color: var(--sumi); margin-right: 0.35em; }
.phrases .romaji { color: var(--sumi-soft); font-size: 0.92rem; }
.mean { display: block; color: var(--sumi); font-size: 0.95rem; }

/* walks */
.start { color: var(--sumi-soft); }
.start b { color: var(--sumi); margin-right: 0.3em; }
.stops { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 14px; max-width: 780px; }
.stops li {
  counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--card); border: 1px solid rgba(168,44,32,0.09); border-radius: var(--radius-sm); padding: 14px 16px;
}
.stops li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--kon); color: #fff; font: 500 0.92rem/1 'DM Mono', ui-monospace, monospace;
}
.stops h3 { color: var(--kon); font-size: 1.12rem; font-weight: 700; }
.stops h3 .ja { display: block; font-size: 0.94rem; font-weight: 500; color: var(--sumi-soft); margin-top: 2px; }
.stops p { margin-top: 6px; }
.shield { margin-top: 18px; max-width: 780px; background: rgba(201,162,74,0.12); border-left: 3px solid var(--kin); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 0.95rem; }

/* routes */
.opts { display: grid; gap: 16px; max-width: 820px; }
.opt { background: var(--card); border: 1px solid rgba(168,44,32,0.1); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); }
.opt > h2, .opt > h3 { color: var(--kon); font-size: 1.22rem; font-weight: 700; margin: 0; }
.sum { margin-top: 4px; font-weight: 700; }
.legs { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.leg { border-left: 4px solid var(--lc, var(--sumi-muted)); padding: 2px 0 2px 14px; }
.ln { font-weight: 700; }
.ln .ja { font-weight: 500; color: var(--sumi-soft); margin-left: 0.3em; }
.stn .ja { color: var(--sumi-soft); font-size: 0.92rem; }
.arrow { color: var(--sumi-muted); padding: 0 0.15em; }
.meta { font-size: 0.9rem; color: var(--sumi-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; list-style: none; }
.chip { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--line); }
.chip.ic { color: var(--matcha-deep); background: rgba(94,125,79,0.12); border-color: rgba(94,125,79,0.28); }
.chip.jr { color: var(--ai); background: rgba(46,74,120,0.1); border-color: rgba(46,74,120,0.26); }
.chip.no { color: #716358; background: rgba(133,116,104,0.1); }
.wn { margin-top: 6px; font-size: 0.95rem; color: var(--sumi-soft); }
.pass { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.pair { scroll-margin-top: 84px; }
.jrbox { max-width: 820px; background: var(--card); border: 1px solid rgba(46,74,120,0.22); border-radius: var(--radius-md); padding: 20px 22px; }
.jrbox > h2 { font-size: 1.3rem; margin-bottom: 8px; }
.calc { display: inline-block; margin-top: 10px; padding: 6px 0; font-weight: 700; color: var(--shu-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tip { max-width: 820px; background: var(--card); border: 1px solid rgba(168,44,32,0.12); border-left: 4px solid var(--shu-deep); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 18px 22px; }
.tip .kicker { color: var(--shu-deep); font-weight: 900; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
html[lang="ko"] .tip .kicker, html[lang^="zh"] .tip .kicker { letter-spacing: 0.04em; font-weight: 700; }
.tip > h2 { font-size: 1.24rem; margin: 4px 0 8px; color: var(--kon); }
.tip ol { margin: 10px 0 0 1.3em; }
.tip li { margin-top: 5px; }
.staff { margin-top: 12px; }
.staff b { margin-right: 0.4em; }
.staff .ja { font-size: 1.1rem; font-weight: 700; }

/* link lists */
.links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 10px; }
.links a {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; text-decoration: none; transition: border-color .15s ease;
}
.links a:hover { border-color: rgba(210,59,44,0.45); }
.links .t { display: block; font-weight: 700; color: var(--kon); }
.links .s { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--sumi-muted); }
.calc-line { margin-top: 18px; }

/* sources */
.sources { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--line); padding-top: 14px; }
.sources summary { cursor: pointer; font-weight: 700; color: var(--kon); padding: 6px 0; }
.sources p { font-size: 0.9rem; color: var(--sumi-muted); margin-top: 4px; }
.sources ul { margin: 8px 0 0 1.2em; font-size: 0.9rem; color: var(--sumi-soft); }
.sources li { margin-top: 4px; }
.sources a { overflow-wrap: anywhere; text-underline-offset: 2px; }

/* closing call to action, the landing's own card */
.cta { padding: 56px 0; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: var(--radius-lg); padding: 48px 26px;
  background: radial-gradient(130% 130% at 50% -10%, #34406a, #1a2340 62%), linear-gradient(160deg, #26305a, #161d38);
  border: 1px solid rgba(201,162,74,0.28); box-shadow: var(--shadow);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 82% 116%, rgba(210,59,44,0.34), transparent 58%),
              radial-gradient(50% 90% at 14% -10%, rgba(201,162,74,0.24), transparent 60%);
}
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; font-size: 1.9rem; }
.cta-card p { color: rgba(255,255,255,0.88); margin: 12px auto 24px; max-width: 54ch; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--sumi); text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06); padding: 11px 18px; border-radius: 14px; box-shadow: 0 12px 26px -16px rgba(0,0,0,0.6);
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.sb-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.sb-top { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.02em; color: var(--sumi-soft); }
.sb-bot { font-size: 1rem; font-weight: 700; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--sumi-muted); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--shu-deep); }

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .wordmark { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.86rem; }
  .lang-switch > summary { padding: 7px 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .seal { width: 46px; height: 46px; }
  .seal[lang="ja"] { font-size: 1.5rem; }
  h1 { font-size: 1.8rem; }
  .sec > h2 { font-size: 1.32rem; }
  .dish, .opt { padding: 16px; }
  .stops li { padding: 12px 14px; gap: 12px; }
}
