/* Japanese edition: scoped font stack and spacing, including in-place language switching. */
html[lang="ja"]{--display:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,IronDIN,Oswald,sans-serif;--jp-body:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,Arial,Helvetica,sans-serif}
html[lang="ja"] body{font-family:var(--jp-body);line-height:1.8;font-feature-settings:"palt"}
html[lang="ja"] h1,html[lang="ja"] .display{letter-spacing:0;line-height:1.08;font-weight:800}
html[lang="ja"] h1{font-size:clamp(44px,6.4vw,104px)}
html[lang="ja"] .eyebrow,html[lang="ja"] .feature-label p,html[lang="ja"] .hero-art figcaption,html[lang="ja"] .story-card .eyebrow{letter-spacing:.12em}
html[lang="ja"] .brand,html[lang="ja"] .ic-brand{font-family:IronDIN,Oswald,'Arial Narrow','Helvetica Neue',sans-serif}
html[lang="ja"] .chapter-head .display,html[lang="ja"] .shelf-heading .display,html[lang="ja"] .join-section .display{line-height:1.15}
html[lang="ja"] .story-card strong,html[lang="ja"] .daily-grid h3,html[lang="ja"] .power-node h3,html[lang="ja"] .compare-row h3,html[lang="ja"] .download-card h3,html[lang="ja"] .music-strip h3,html[lang="ja"] .life-line h3{line-height:1.25}
html[lang="ja"] .lead,html[lang="ja"] .world-question,html[lang="ja"] .world-questions{font-family:var(--jp-body)}
html[lang="ja"] .ic-langs a[lang="ja"]{font-family:var(--jp-body)}

/* Retain the original Latin display face for the unchanged English song title. */
html[lang="ja"] .song-page h1[lang="en"]{font-family:IronDIN,Oswald,"Arial Narrow","Helvetica Neue",sans-serif;font-size:clamp(42px,7vw,84px);font-weight:700;letter-spacing:-1px}
@media(max-width:640px){html[lang="ja"] .song-page h1[lang="en"]{font-size:44px}}

/* Preserve meaningful name units in narrow story cards. Explicit <wbr> boundaries
   keep surnames and the regnal suffix intact without changing stored text. */
@media(max-width:640px){
 html[lang="ja"] .story-card strong{font-size:24px;word-break:keep-all;overflow-wrap:normal}
}
