/* Language navigation stays visible on every screen; the Japanese design is retained. */
.site-header{gap:18px}
.desktop-nav{margin-left:auto;gap:24px}
.language-switch{display:flex;align-items:center;gap:1px;flex-shrink:0;font:12px/1.4 Georgia,serif;letter-spacing:.04em}
.language-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:44px;text-decoration:none}
.language-switch a[aria-current="true"]{font-weight:700;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:6px}
.language-switch a:hover{color:var(--gold)}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3,html[lang="en"] h4{letter-spacing:0;overflow-wrap:break-word}
html[lang="en"] .hero h1{font-size:clamp(48px,5.2vw,76px);line-height:1.15;max-width:7em}
html[lang="en"] .hero h2{font-size:clamp(26px,2.7vw,38px);line-height:1.35;letter-spacing:0}
html[lang="en"] .hero-description{max-width:38em;letter-spacing:0;line-height:1.8;padding-right:24px}
html[lang="en"] .text-link{letter-spacing:0}
html[lang="en"] .desktop-nav{letter-spacing:0}
html[lang="en"] .source-links a{overflow-wrap:anywhere}
html[lang="en"] .talk{grid-template-columns:135px minmax(0,1fr)}
html[lang="en"] .talk-date>span:last-child{white-space:normal;text-align:center}
html[lang="en"] .genealogy-area>.text-link{white-space:normal}
html[lang="en"] .image-scroll:after{content:'Scroll horizontally and vertically to view the chart.'}
html[lang="en"] .dialog-toolbar p{line-height:1.4}
html[lang="en"] .contact h1,html[lang="en"] .contact h2{letter-spacing:0}
@media(max-width:1150px){.desktop-nav{display:none}.site-header .language-switch{margin-left:auto}.site-header .menu-toggle{border:0;background:none;display:flex;flex-direction:column;justify-content:center;gap:8px;width:44px;height:44px;padding:8px 2px;flex-shrink:0}.menu-toggle span{display:block;background:var(--ink);height:1px;width:29px}}
@media(max-width:760px){.site-header{gap:8px;padding:0 5%}.brand.brand-wordmark{white-space:normal;font-size:10px;letter-spacing:.015em;gap:7px;max-width:none;flex:1}.brand-wordmark span{max-width:115px}.brand-wordmark .brand-crest{width:25px}.language-switch a{min-width:32px}.language-switch{font-size:11px}.site-header .menu-toggle{width:36px}.hero-actions{flex-wrap:wrap}html[lang="en"] .hero h1{font-size:clamp(44px,11vw,70px);max-width:none}html[lang="en"] .hero h2{font-size:clamp(25px,6.5vw,36px);line-height:1.4}html[lang="en"] .hero-description{font-size:13px;padding-right:0}html[lang="en"] .hero-description br{display:none}html[lang="en"] .talk{grid-template-columns:94px minmax(0,1fr)}html[lang="en"] .talk-date{font-size:11px}html[lang="en"] .section h2{font-size:clamp(26px,6.6vw,38px);line-height:1.3}html[lang="en"] .genealogy-area{column-gap:18px}html[lang="en"] .dialog-toolbar{flex-wrap:wrap;gap:6px}html[lang="en"] .dialog-toolbar>div{flex-basis:100%}html[lang="en"] .dialog-toolbar>[data-close-genealogy]{margin-left:auto}html[lang="en"] .image-scroll:after{min-width:0;width:100%;max-width:90vw}}
