/* JP Copywriter, site v9.
   One picture runs behind every page, from a sunny meadow down through the ground and out
   upside down in a city on the far side of the world. All reading happens on off-white panels.
   Colours: paper, ink, one blue. Type: Cormorant Garamond for display headings and the wordmark, Source Sans 3 for text (EN);
   Shippori Mincho + Noto Sans JP (JA). Small English headings are set in the sans, since
   Cormorant is too light below about 24px. */

:root {
  --paper: #fbfaf7;
  --panel: rgba(251, 250, 247, .95);
  --ink: #1b1e24;
  --mute: #555b66;
  --line: #d9d5cc;
  --blue: #23466b;
  --blue-dark: #183450;
  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
html:lang(ja) {
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #2a2119; color: var(--ink); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:lang(ja) body { font-size: 16px; line-height: 2; letter-spacing: .02em; font-feature-settings: "palt" 0; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 600; }
html:lang(en) h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { font-weight: 600; }
/* line breaks: English avoids one-word last lines; Japanese breaks between phrases, never mid-word */
p, li, dd, summary { text-wrap: pretty; }
html:lang(ja) :is(h1, h2, h3, p, li, dt, dd, summary, legend, label, small, b, .lead, .pull, .sub, .hint) { word-break: auto-phrase; line-break: strict; }
p { margin: 0 0 1em; }

/* the picture behind everything; stage.js slides it up as the page scrolls */
.ground { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: #2a2119; }
.ground img { position: absolute; top: 0; left: 50%; width: max(100vw, 115vh); height: auto; transform: translate3d(-50%, 0, 0); will-change: transform; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: a masthead rather than a toolbar. Wordmark with a small line under it, links in
   small spaced capitals whose underline draws in from the left, Contact as the one outlined button,
   and EN / JA as a quiet pair. It tightens once the page scrolls (stage.js sets .scrolled). */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height .3s; }
.scrolled .top { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .6); }
.mark { display: flex; flex-direction: column; gap: 5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark:hover { color: var(--ink); }
.mark-name { font: 600 28px/1 "Cormorant Garamond", Garamond, Georgia, serif; letter-spacing: .005em; }
.mark-sub { font: 400 12px/1.2 var(--sans); letter-spacing: .08em; color: var(--mute); transition: opacity .3s, max-height .3s; max-height: 2em; overflow: hidden; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ol { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ol a { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 0; color: var(--ink); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
html:lang(ja) .nav ol a { font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.nav ol a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav ol a:hover { color: var(--ink); }
.nav ol a:hover::after { transform: scaleX(1); }
.nav ol a[aria-current="page"] { color: var(--blue); }
.nav ol a[aria-current="page"]::after { transform: scaleX(1); height: 2px; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); text-decoration: none; font: 600 14px/1 var(--sans); transition: background .2s, color .2s; }
.nav-cta span { transition: transform .25s; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--blue); color: #fff; }
.nav-cta:hover span { transform: translateX(3px); }
.langs { display: flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--mute); }
.langs a { color: var(--mute); text-decoration: none; padding: 6px 2px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* panels: everything readable sits on off-white */
.panel { background: var(--panel); padding: clamp(28px, 5vw, 64px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55); }
.gap { height: 42vh; }
.gap.s { height: 22vh; }
.gap.l { height: 70vh; }

.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
html:lang(ja) .eyebrow { letter-spacing: .1em; font-size: 13px; }

/* hero */
.hero { padding-top: 16vh; }
.hero .panel { max-width: 760px; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 24px; }
html:lang(ja) .hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.45; letter-spacing: .01em; }
.nb { display: inline-block; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--mute); max-width: 34em; }
html:lang(ja) .lead { font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.button { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font: 600 16px/1 var(--sans); padding: 17px 26px; border-radius: 2px; }
.button:hover { background: var(--blue-dark); color: #fff; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* section heads */
.panel h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 18px; max-width: 20em; }
html:lang(ja) .panel h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.6; letter-spacing: .01em; }
.intro { color: var(--mute); max-width: 38em; margin-bottom: 40px; }
.intro:has(+ .intro) { margin-bottom: 1em; }

/* two columns compared */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--ink); }
.compare h3 { font: 600 15px/1.5 var(--sans); letter-spacing: .04em; padding: 18px 0 6px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.compare .ours h3 { color: var(--blue); }
.compare .theirs li { color: var(--mute); }
.pull { font: italic 500 clamp(28px, 3vw, 40px)/1.25 var(--serif); margin: 48px 0 0; max-width: 24em; }
html:lang(ja) .pull { font-style: normal; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.8; }

/* numbered list (services, steps) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: n; }
.rows > li { display: grid; grid-template-columns: 70px minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.rows > li::before { content: counter(n, decimal-leading-zero); font: italic 500 26px/1.1 var(--serif); color: var(--blue); }
.rows h3 { font-size: 21px; line-height: 1.35; }
html:lang(ja) .rows h3 { font-size: 20px; line-height: 1.6; }
.rows p { margin: 0 0 .5em; }
.rows .sub { display: block; font: 600 13px/1.5 var(--sans); letter-spacing: .06em; color: var(--mute); margin-top: 6px; }
.rows.compact > li { grid-template-columns: 70px minmax(0, 1fr); }
.rows.compact h3 { margin-bottom: 6px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.cols h3 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
html:lang(ja) .cols h3 { font-size: 19px; line-height: 1.6; }
.cols > div { border-top: 1px solid var(--ink); padding-top: 18px; }

.note { color: var(--mute); font-size: 15px; margin: 28px 0 0; }

.contact-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; align-items: end; }
.contact-cta > div:last-child { justify-self: end; }
.rows .more { display: inline-block; margin-top: 6px; font-size: 15px; }

/* questions */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 19px/1.45 var(--sans); }
html:lang(ja) .faq summary { font-size: 17px; font-weight: 600; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--blue); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; color: var(--mute); margin: -6px 0 24px; }

/* business details */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 4px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--mute); font-size: 15px; }
.facts dd { margin: 0; }

/* long text (privacy) */
.prose { max-width: 860px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px) !important; margin: 36px 0 10px !important; }
.prose h2:first-child { margin-top: 0 !important; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }

/* form */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 8px; }
form .full { grid-column: 1 / -1; }
fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
fieldset[hidden] { display: none; }
legend { display: flex; align-items: center; gap: 14px; float: left; width: 100%; grid-column: 1 / -1; padding: 0 0 4px; margin-bottom: 4px; font: 600 28px/1.25 var(--serif); border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
html:lang(ja) legend { font-size: 19px; font-weight: 600; }
legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 14px/1 var(--sans); flex: none; }
.types { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.type { position: relative; margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 28px 16px 16px; background: #fff; border: 1px solid #6f7584; border-radius: 2px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type b { font: 600 16px/1.3 var(--sans); }
html:lang(ja) .type b { font-family: var(--serif); font-size: 15px; letter-spacing: 0; }
.type small { font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--mute); }
.type:hover { border-color: var(--ink); }
.type:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.type:has(input:checked) b { color: var(--blue); }
.type:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.type:has(input:checked)::after { content: "\2713"; position: absolute; top: 10px; right: 12px; color: var(--blue); font: 600 14px/1 var(--sans); }
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; background: #fff; border: 1px solid #6f7584; border-radius: 999px; font-weight: 400; font-size: 15px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.checks input, .consent input { width: auto; accent-color: var(--blue); margin: 0; }
.consent { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; }
.opt { font-weight: 400; color: var(--mute); font-size: 13px; margin-left: 4px; }
.hint { font-size: 13px; color: var(--mute); margin: 6px 0 0; line-height: 1.6; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #6f7584; border-radius: 2px; padding: 12px 14px; }
textarea { min-height: 180px; resize: vertical; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button { justify-self: start; background: var(--blue); color: #fff; border: 0; border-radius: 2px; font: 600 16px/1 var(--sans); padding: 17px 34px; cursor: pointer; }
button:hover { background: var(--blue-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: #fff; }
.msg.show { display: block; }

/* footer */
footer { background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer .reviewed { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* inner pages: page title panel */
.page-head { padding-top: 12vh; }
.page-head .panel { max-width: 860px; }
.page-head h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.06; letter-spacing: -.015em; margin-bottom: 18px; }
html:lang(ja) .page-head h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.5; letter-spacing: .01em; }

@media (max-width: 1080px) {
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mark-sub { display: none; }
  .nav, .nav ol { gap: 20px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  /* phone and small tablet: the links stay visible (hidden menus are found less often),
     in a second row under the wordmark; Contact and EN / JA stay on the first row */
  .top .wrap, .scrolled .top .wrap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0 14px; min-height: 0; padding-top: 12px; }
  .nav { display: contents; }
  .nav ol { grid-column: 1 / -1; grid-row: 2; gap: 22px; overflow-x: auto; white-space: nowrap; padding: 6px 0 4px; margin-top: 6px; border-top: 1px solid var(--line); }
  .nav ol a { font-size: 12px; }
  .langs { grid-column: 2; grid-row: 1; }
  .nav-cta { grid-column: 3; grid-row: 1; padding: 9px 14px; font-size: 13px; }
  .nav-cta { white-space: nowrap; gap: 6px; }
  html:lang(ja) .nav-cta { padding: 9px 12px; font-size: 12px; }
  .nav-cta span { display: none; }
  .mark-name { font-size: 25px; }
  footer .reviewed { display: block; margin: 4px 0 0; padding: 0; border: 0; }
  .facts > div { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
  fieldset { grid-template-columns: 1fr; }
  .contact-cta > div:last-child { justify-self: start; }
  .compare, .cols, .contact-cta, form { grid-template-columns: 1fr; }
  .compare { gap: 0; }
  .compare .ours { margin-top: 24px; }
  .rows > li, .rows.compact > li { grid-template-columns: 1fr; gap: 4px; }
  .gap { height: 30vh; } .gap.l { height: 50vh; }
  .hero { padding-top: 8vh; }
}
/* the redline figure (JA home): a machine-translated passage marked up like a proof, beside the
   rewrite, each with what a reader thinks in the first three seconds. Marks use the one blue. */
.redline { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 48px; margin: 8px 0 0; padding-top: 30px; border-top: 1px solid var(--ink); }
.rl-side { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.notes, .fixes { align-self: start; }
.rl-tag { font: 600 13px/1.4 var(--sans); letter-spacing: .1em; color: var(--mute); margin: 0 0 12px; }
.rl-side.good .rl-tag { color: var(--blue); }
.sheet { position: relative; background: #fff; border: 1px solid var(--line); padding: 26px 26px 24px; box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .5); }
.sheet-h { font: 600 20px/1.75 var(--serif); margin: 0 0 12px; }
.sheet-b { font-size: 15px; line-height: 2.1; margin: 0; }
.redline mark { background: none; color: inherit; text-decoration: underline wavy var(--blue) 1.5px; text-underline-offset: .34em; text-decoration-skip-ink: none; }
.redline mark::after, .notes li::before { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 11px/1 var(--sans); }
.redline mark::after { content: attr(data-n); vertical-align: super; margin: 0 1px 0 3px; }
.notes, .fixes { list-style: none; margin: 18px 0 0; padding: 0; }
.notes { counter-reset: k; }
.notes li, .fixes li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; color: var(--mute); }
.notes li { counter-increment: k; }
.notes li::before { content: counter(k); position: absolute; left: 0; top: 13px; }
.notes b { color: var(--ink); font-weight: 600; margin-right: .6em; }
.fixes li { color: var(--ink); }
.fixes li::before { content: "\2713"; position: absolute; left: 3px; top: 9px; color: var(--blue); font: 600 15px/1.8 var(--sans); }
.rl-sub { font: 600 12px/1.4 var(--sans); letter-spacing: .1em; color: var(--mute); margin: 26px 0 14px; }
.reader { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reader li { position: relative; padding: 16px 12px 0 0; border-top: 2px solid #8a909b; font-size: 14px; line-height: 1.7; }
.reader li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid #8a909b; }
.reader li span { display: block; font: 600 12px/1 var(--sans); color: var(--mute); margin-bottom: 6px; letter-spacing: .06em; }
.reader em { display: block; font-style: normal; font-weight: 600; margin-top: 6px; }
.reader li:last-child::before { background: var(--ink); border-color: var(--ink); }
.good .reader li { border-top-color: var(--blue); }
.good .reader li::before { border-color: var(--blue); }
.good .reader li:last-child::before { background: var(--blue); }
.good .reader em { color: var(--blue); }
.redline figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--mute); }
html:lang(ja) :is(.rl-tag, .rl-sub, figcaption) { word-break: auto-phrase; line-break: strict; }
@media (max-width: 860px) {
  .redline { grid-template-columns: 1fr; gap: 48px; }
  .rl-side { display: block; }
  .sheet { padding: 20px 18px; }
  .sheet-h { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) { .ground img { will-change: auto; } }

/* ---- v10-fonts: typeface comparison sets (sample only) ----
   now: Cormorant Garamond + Source Sans 3 / Shippori Mincho + Noto Sans JP (v9 as it was)
   a:   all gothic. EN headings Source Sans 3 bold; JA headings Zen Kaku Gothic New, text Noto Sans JP
   b:   light mincho headings. EN headings Libre Baskerville; JA headings Zen Old Mincho at 500
   c:   most readable. As A, but JA text in BIZ UDPGothic
   The wordmark stays in Cormorant Garamond in every set. */
html[data-font="a"], html[data-font="c"] { --serif: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; }
html[data-font="b"] { --serif: "Libre Baskerville", Georgia, "Times New Roman", serif; }
html[data-font="a"]:lang(ja), html[data-font="c"]:lang(ja) { --serif: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }
html[data-font="b"]:lang(ja) { --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; }
html[data-font="c"]:lang(ja) { --sans: "BIZ UDPGothic", "Hiragino Sans", sans-serif; }

/* A and C: sans headings want to be bold and set a little tighter */
html[data-font="a"]:lang(en) :is(h1, h2), html[data-font="c"]:lang(en) :is(h1, h2) { font-weight: 600; letter-spacing: -.02em; }
html[data-font="a"]:lang(en) .hero h1, html[data-font="c"]:lang(en) .hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.08; }
html[data-font="a"]:lang(en) .panel h2, html[data-font="c"]:lang(en) .panel h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
html[data-font="a"]:lang(en) .page-head h1, html[data-font="c"]:lang(en) .page-head h1 { font-size: clamp(36px, 4.6vw, 58px); }
html[data-font="a"]:lang(ja) :is(h1, h2, h3, legend, .sheet-h), html[data-font="c"]:lang(ja) :is(h1, h2, h3, legend, .sheet-h) { font-weight: 700; }

/* B: Libre Baskerville is much wider than Cormorant, so the sizes come down; mincho at 500 */
html[data-font="b"]:lang(en) :is(h1, h2) { font-weight: 400; letter-spacing: -.02em; }
html[data-font="b"]:lang(en) .hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.15; }
html[data-font="b"]:lang(en) .panel h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.22; }
html[data-font="b"]:lang(en) .page-head h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.15; }
html[data-font="b"]:lang(en) .pull { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.45; }
html[data-font="b"]:lang(en) .rows > li::before { font-size: 20px; }
html[data-font="b"]:lang(ja) :is(h1, h2, h3, legend, .sheet-h) { font-weight: 500; }

/* Japanese fonts have no italic; never let the browser slant them */
html[data-font]:lang(ja) :is(.pull, .rows > li::before) { font-style: normal; }

/* the comparison bar itself: ink panel, white text (about 16:1) */
.fontbar { position: fixed; left: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 24px); padding: 8px 10px; background: #1b1e24; color: #fff; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); font: 500 13px/1 "Noto Sans JP", "Hiragino Sans", sans-serif; letter-spacing: 0; }
.fontbar span { padding: 0 6px 0 2px; color: #d6d9df; }
.fontbar button { font: inherit; padding: 8px 11px; border: 1px solid #8a909c; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.fontbar button:hover { border-color: #fff; }
.fontbar button[aria-pressed="true"] { background: #fff; color: #1b1e24; border-color: #fff; }

/* v12: the redline figure on the English home. The sheets stay in Japanese, so they get the
   Japanese faces; an English back-translation (.gloss) sits under each sheet. */
html:lang(en) .sheet[lang="ja"] { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; word-break: auto-phrase; line-break: strict; }
html:lang(en) .sheet[lang="ja"] .sheet-h { font-family: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; }
.gloss { font-size: 15px; line-height: 1.6; color: var(--mute); font-style: italic; margin: 10px 0 0; }
.rl-side:has(> .gloss) { grid-row: span 6; }
/* v13: the English figure is now all English; a lead line spans both columns. */
.rl-lead { grid-column: 1 / -1; margin: 0; font: italic 400 clamp(19px, 1.9vw, 24px)/1.45 var(--serif); color: var(--ink); }
