/* Japanese pages (/ja/). Archivo and Geist have no Japanese glyphs, so kana and kanji fall
   through to Noto Sans JP while Latin words keep the brand fonts. Japanese also needs open
   tracking (the English display type is set tight) and taller lines. */
:root:lang(ja){
  --sc-font-display:"Archivo","Noto Sans JP",system-ui,sans-serif;
  --sc-font-text:"Geist","Noto Sans JP",system-ui,sans-serif;
  --sc-track-normal:.02em;
  --sc-track-snug:.02em;
  --sc-track-tight:.01em;
}
:lang(ja) body{line-height:1.85;font-feature-settings:"palt" 0}
:lang(ja) h1,:lang(ja) h2,:lang(ja) h3,:lang(ja) .sc-display{
  line-height:1.35;font-weight:700;letter-spacing:.02em;
  word-break:auto-phrase;line-break:strict;text-wrap:balance;   /* break between phrases, not inside words */
}
:lang(ja) p,:lang(ja) li,:lang(ja) blockquote{line-break:strict;word-break:auto-phrase}
/* Japanese reads larger at the same size: step the biggest headings down a little */
:lang(ja) .phero h1{font-size:clamp(2rem,4.4vw,3.6rem)}
:lang(ja) .sec-head h2,:lang(ja) .split h2{font-size:clamp(1.6rem,3.2vw,2.6rem)}
:lang(ja) .close h2{font-size:clamp(1.8rem,3.6vw,3rem)}
:lang(ja) .dna-title{font-size:clamp(1.8rem,3.4vw,3rem)}
/* the menu's big links */
:lang(ja) .menu__text{letter-spacing:.04em;font-weight:600}
/* Latin-only labels (EN switch, mono meta) keep their own look */
:lang(ja) [lang="en"]{letter-spacing:normal}
/* Japanese has no spaces: let grid columns shrink and allow a break anywhere as a last resort,
   so a long sentence never pushes the layout wider than the phone */
:lang(ja) .note>*,:lang(ja) .split>*,:lang(ja) .contact-grid>*,:lang(ja) .phero__grid>*{min-width:0}
:lang(ja) p,:lang(ja) li,:lang(ja) blockquote,:lang(ja) td,:lang(ja) h1,:lang(ja) h2,:lang(ja) h3{overflow-wrap:anywhere}
