/* Japanese pages (/ja/...): Noto Sans JP / Noto Serif JP (Regular and Medium), no tracking, looser leading.
   Loaded after the shared stylesheets; every rule is scoped to html[lang="ja"]. */
html[lang="ja"] {
  --font-sans: 'Noto Sans JP', 'Instrument Sans', system-ui, sans-serif;
  --font-serif: 'Noto Serif JP', 'Instrument Serif', Georgia, serif;
  --ls-display: 0; --ls-h2: 0; --ls-serif: 0; --ls-action: 0; --ls-statement: 0; --ls-giant: 0;
  /* Japanese glyphs are denser: scale the big headlines down about 20% */
  --fs-display: clamp(40px, 5.2vw, 88px); --fs-h2-xl: clamp(38px, 5.4vw, 76px); --fs-h2-cta: clamp(38px, 6.4vw, 94px);
  --fs-h2-lg: clamp(32px, 4.6vw, 64px); --fs-h2-md: clamp(30px, 3.9vw, 54px); --fs-statement: clamp(22px, 2.5vw, 34px);
  --lh-display: 1.3; --lh-h2: 1.35; --lh-h2-tight: 1.3; --lh-statement: 1.5; --lh-body: 1.85; --lh-giant: 1;
}
html[lang="ja"] body { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; line-height: 1.85; }
html[lang="ja"] *, html[lang="ja"] *::before, html[lang="ja"] *::after { letter-spacing: 0 !important; }
html[lang="ja"] :is(h1, h2, h3, .t-display, .t-h2-xl, .t-h2-cta, .t-h2-lg, .t-h2-md) { line-height: 1.3 !important; font-weight: 500; text-wrap: balance; }
html[lang="ja"] :is(.t-statement, .st-statement, .t-lead, .of-service__lead, .of-model__lead, .of-collab__lead, .st-hero__lead, .detail-lead, .ct-hero__lead) { line-height: 1.6; }
html[lang="ja"] :is(p, li, figcaption, .accordion__panel, .detail-block__body, .st-body, .st-body-lg, .of-body-lg) { line-height: 1.85; }
html[lang="ja"] .serif--italic, html[lang="ja"] em, html[lang="ja"] i { font-style: normal; }
html[lang="ja"] .serif, html[lang="ja"] blockquote { line-height: 1.6; font-weight: 400; }
html[lang="ja"] .nav-link, html[lang="ja"] .action { line-height: 1.5; }
/* the big word "raft" and numerals stay Latin display */
html[lang="ja"] .about__giant { line-height: .8 !important; font-family: 'Instrument Sans', var(--font-sans); letter-spacing: -.0707em !important; }
html[lang="ja"] .detail-stats .num { font-family: 'Instrument Serif', var(--font-serif); }
/* page-specific display sizes, scaled for Japanese */
html[lang="ja"] .ct-hero h1 { font-size: clamp(44px, 6.6vw, 100px); }
html[lang="ja"] .st-hero h1 { font-size: clamp(38px, 5.4vw, 96px); }
html[lang="ja"] .st-h2-md { font-size: clamp(28px, 2.2vw, 40px); }
html[lang="ja"] .st-h2-lg { font-size: clamp(32px, 3.3vw, 60px); }
html[lang="ja"] .st-h2-xl { font-size: clamp(36px, 4vw, 72px); }
html[lang="ja"] .of-h2 { font-size: clamp(36px, 4vw, 72px); }
html[lang="ja"] .of-h2-sm { font-size: clamp(28px, 2.8vw, 50px); }
html[lang="ja"] .of-h2-md { font-size: clamp(28px, 3.1vw, 56px); }
html[lang="ja"] .of-hero h1 { font-size: clamp(24px, 3.4vw, 60px); line-height: 1.5 !important; }
html[lang="ja"] .j-head h1 { font-size: clamp(30px, 5.4vw, 68px); }
html[lang="ja"] .detail-intro h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.4 !important; }
html[lang="ja"] .next__link h2 { font-size: clamp(30px, 2.8vw, 48px); line-height: 1.6 !important; }
/* Studio hero on phones: two lines, so the photo slideshow stays in view. The long line is 11 characters wide. */
@media (max-width: 49.99rem) {
  html[lang="ja"] .st-hero h1 { font-size: calc((100vw - 2 * var(--gutter)) / 11.4); line-height: 1.3 !important; white-space: nowrap; }
}

/* mobile menu: full-width Japanese glyphs read larger than the tight Latin, so step the links down */
html[lang="ja"] .nav-mobile .nav-link { font-size: clamp(30px, 9.4vw, 48px); line-height: 1.25; padding: .1em 0; }
html[lang="ja"] .work-hero h1 { font-size: clamp(64px, 7.78vw, 112px); }
/* Offerings: service descriptions. Full-width Japanese glyphs at the English size run to six lines, so step down to match the English block height */
html[lang="ja"] .of-service__lead { font-size: clamp(17px, 1.32vw, 24px); line-height: 1.7; }
/* Projects headline on phones: size to the 7-character line so it holds two lines */
@media (max-width: 49.99rem) {
  html[lang="ja"] .work-hero h1 { font-size: calc((100vw - 2 * var(--gutter)) / 7.4); white-space: nowrap; }
}
/* Studio hero paragraph: a step smaller so it runs one line shorter */
html[lang="ja"] .st-hero__lead { font-size: clamp(21px, 2.1vw, 38px); line-height: 1.55; }
/* Home headline stays in English on the Japanese page: restore the Latin display styling */
html[lang="ja"] h1.t-display[lang="en"] { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 400; font-size: var(--fs-display-en, clamp(49px, 6.5vw, 109px)); line-height: 1.02 !important; letter-spacing: -.065em !important; text-wrap: wrap; }
html[lang="ja"] .lang-switch__btn[lang="ja"] { font-family: var(--font-sans); }
/* Only Regular (400) and Medium (500) are loaded, so anything set to bold uses Medium */
html[lang="ja"] :is(.st-hero__name, .st-why h3, .detail-meta .k, strong, b) { font-weight: 500; }
