/* J301 | GLOBAL | COMPONENT:language-selector-state | START
   Shared states for full, compact and mobile site headers. Artwork controls
   remain independent. The active locale also retains aria-current.
   Inactive borders stay muted; the selected locale uses the brand red.
   The white AI badge retains a strong contrast on the active background. */
:root{--j301-locale-border:#d6a9b5;--j301-locale-active:#bc002d;--j301-locale-hover-border:#b96e82;--j301-locale-hover-background:#fcf4f6}
.j301 :is(.language-switch,.compact-language) > .locale-choice{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;min-width:34px;height:28px;min-height:28px;padding:0;gap:4px;border:1px solid var(--j301-locale-border);border-radius:5px;background:#fff;color:#bc002d;box-shadow:none;text-decoration:none}
.j301 .compact-language > .locale-choice{width:30px;min-width:30px;height:26px;min-height:26px}
.j301 :is(.language-switch,.compact-language) > .locale-choice--ja{width:auto;min-width:45px;padding-inline:6px}
.j301 .compact-language > .locale-choice--ja{min-width:43px;padding-inline:5px}
.j301 :is(.language-switch,.compact-language) > .locale-choice:is(:hover,:focus-visible){border-color:var(--j301-locale-hover-border);background:var(--j301-locale-hover-background);box-shadow:none}
.j301 :is(.language-switch,.compact-language) > .locale-choice[aria-current]{border-color:var(--j301-locale-active);background:var(--j301-locale-active);color:#fff;box-shadow:none}
.locale-ai-badge{display:inline!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#bc002d!important;border-radius:0!important;font:600 10px/1.2 Arial,sans-serif!important;letter-spacing:0!important;text-decoration:none!important}
.locale-choice[aria-current] .locale-ai-badge,.error-languages [aria-current] .locale-ai-badge{color:#fff!important}
.j301 :is(.language-switch,.compact-language) > .locale-choice:focus-visible{outline:2px solid #bc002d;outline-offset:3px}
.error-languages a{border-color:var(--j301-locale-border);border-radius:5px;background:#fff;color:#bc002d}
.error-languages a:is(:hover,:focus-visible){border-color:var(--j301-locale-hover-border);background:var(--j301-locale-hover-background)}
.error-languages a[aria-current]{border-color:var(--j301-locale-active);background:var(--j301-locale-active);color:#fff}
/* J301 | GLOBAL | COMPONENT:language-selector-state | END */

/* J301 | PAGE:concepts | COMPONENT:content-language-label | START
   This label describes artwork editions, independently of the site locale. */
.edition-switch{align-items:center;flex-wrap:wrap;row-gap:3px}
.edition-switch-label{margin-right:8px;font-size:inherit;line-height:1.5;color:var(--color-muted,#53627a)}
@media(max-width:480px){.support-panel-head{flex-wrap:wrap;gap:3px 8px}.edition-switch-label{margin-right:4px}}
/* J301 | PAGE:concepts | COMPONENT:content-language-label | END */

/* J301 | LOCALISATION:ja | TYPOGRAPHY:system-japanese-fallbacks | START
   Original Kozuka files stay untouched. No external font download is added. */
html[lang=ja] body,html[lang=ja] button,html[lang=ja] select,html[lang=ja] input,html[lang=ja] textarea{font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif}
html[lang=ja] .j301 p,html[lang=ja] .j301 li{line-height:1.9;line-break:strict;overflow-wrap:anywhere}
html[lang=ja] :is(.eyebrow,.section-label,.toc-title,.rubric-eyebrow){letter-spacing:.06em;text-transform:none}
html[lang=ja] :is(.rubric-title,.hero-title){line-height:1.45;letter-spacing:.015em;overflow-wrap:anywhere;word-break:normal}
html[lang=ja] .j301 :is(h2,h3){line-height:1.6;word-break:normal;overflow-wrap:anywhere;letter-spacing:.01em}
html[lang=ja] .j301 .site-nav{gap:clamp(10px,1.5vw,24px)}
html[lang=ja] .j301 .site-nav a{font-size:1rem;white-space:nowrap}
html[lang=ja] .j301 .compact-nav a{font-size:.79rem}
html[lang=ja] .j301 .pack-title h3{font-size:1.18rem}
html[lang=ja] .j301 .compact-pack .situation{line-height:1.9}
html[lang=ja] .j301 .tagline{font-family:Arial,sans-serif;line-height:1.6}
/* J301 | LOCALISATION:ja | TYPOGRAPHY:system-japanese-fallbacks | END */

/* J301 | LOCALISATION:ja | COMPONENT:non-sticky-ai-notice | START */
.localisation-banner{display:flex;align-items:center;justify-content:center;gap:8px 16px;position:relative;flex:none;box-sizing:border-box;width:100%;max-width:1280px;margin:0 auto 14px;padding:10px 45px 10px 18px;background:#f5f2ef;border:1px solid #e4ded8;border-radius:8px;color:#4c5e78;font-size:12px;line-height:1.8}
.localisation-banner[hidden]{display:none!important}
.localisation-banner p{margin:0!important;font-size:inherit!important;line-height:inherit!important}
.localisation-banner a{flex-shrink:0;color:#bc002d;text-underline-offset:3px}
.localisation-banner button{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:32px;min-height:32px;border:0;border-radius:5px;background:transparent;color:#53627a;font-size:22px;cursor:pointer}
.localisation-banner button:hover{background:#ebe5e0}
.localisation-banner :focus-visible{outline:2px solid #bc002d;outline-offset:3px}
.localisation-disclosure{box-sizing:border-box;width:100%;flex-basis:100%;margin:10px 0 0;padding:18px 0 0;border-top:1px solid #ddd7d2;text-align:left;color:#53627a;font-size:12px;line-height:1.9}
.localisation-disclosure p{max-width:100%;margin:0 0 7px!important;font-size:inherit!important;line-height:inherit!important}
.localisation-disclosure a{color:#bc002d;text-underline-offset:3px}
.contact-language-note,.pdf-language-notice{color:#53627a;font-size:.78rem!important;line-height:1.8!important;margin:12px 0 18px}
.phone-language-note{display:block;color:#53627a;font-size:.78rem!important;line-height:1.8;margin-top:5px}
/***** Reader notices stay in the parent interface, outside every artwork. *****/
.viewer-page>.localisation-banner{max-width:none;margin:0;border-radius:0;border-width:0 0 1px;font-size:11px;padding-block:6px}
.viewer-page .localisation-disclosure{margin:4px 0 0;padding:7px 0 2px;font-size:10px;line-height:1.7}
.viewer-page .localisation-disclosure p{margin-bottom:3px!important}
.viewer-page .contact-language-note{font-size:11px!important;margin:5px 0}
@media(max-width:760px){
 .localisation-banner{flex-wrap:wrap;justify-content:flex-start;gap:2px 10px;margin-bottom:0;border-radius:0;font-size:11px;padding:9px 42px 9px 14px}
 .localisation-banner p{flex-basis:100%}
 .localisation-disclosure{font-size:11px;padding-top:14px}
 .viewer-page .localisation-disclosure{font-size:10px;line-height:1.65;padding-top:6px}
 html[lang=ja] .j301 .site-nav a{font-size:.95rem}
 html[lang=ja] .j301 .compact-nav a{font-size:.75rem}
}
/* J301 | LOCALISATION:ja | COMPONENT:non-sticky-ai-notice | END */

/* J301 | LOCALISATION:ja | PAGE:404 | START */
html[lang=ja] .error-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.error-page>.localisation-banner{max-width:850px}
.error-page .localisation-disclosure{margin-top:22px}
/* J301 | LOCALISATION:ja | PAGE:404 | END */
