.shared-site-header { box-sizing:border-box; min-height:64px; padding:8px max(16px,calc((100% - 1180px)/2)); display:flex; align-items:center; gap:12px; background:#12283a; color:#f3f7f9; border-bottom:1px solid #526b7a; font-family:system-ui,sans-serif; }
.shared-site-header *, .shared-site-footer * { box-sizing:border-box; }
.shared-site-brand { margin-right:auto; color:#fff!important; font-size:16px; font-weight:700; text-decoration:none; }
.shared-menu { position:relative; }
.shared-menu summary, .shared-post, .shared-language button, .shared-site-footer button { min-height:44px; padding:9px 12px; border:1px solid #8da6b2; border-radius:6px; background:#234857; color:#fff!important; font:inherit; cursor:pointer; }
.shared-menu summary { display:flex; align-items:center; list-style:none; }
.shared-menu summary::-webkit-details-marker { display:none; }
.shared-menu nav { position:absolute; z-index:1000; top:calc(100% + 4px); right:0; min-width:210px; padding:6px; display:grid; background:#12283a; border:1px solid #8da6b2; border-radius:6px; }
.shared-menu nav a, .shared-footer-links a, .page-context-links a { min-height:44px; display:inline-flex; align-items:center; padding:7px 10px; color:inherit; font-size:14px; }
.shared-menu nav a { color:#fff; }
.shared-post { display:inline-flex; align-items:center; justify-content:center; background:#285c66; text-decoration:none; white-space:nowrap; }
.shared-language { display:flex; gap:4px; }
.shared-language:has(>.shared-language-caption) { display:grid; grid-template-columns:repeat(2,1fr); gap:2px 4px; }
.shared-language-caption { grid-column:1/-1; text-align:center; color:#dbe8f6; font-size:16px; line-height:1.25; letter-spacing:normal; }
.shared-language button { min-width:44px; padding:6px; }
.shared-language button[aria-pressed=true] { background:#326774; }
body .shared-site-footer { box-sizing:border-box; max-width:1180px; margin:28px auto 0; padding:20px 0; border-top:1px solid #718a97; color:inherit; font-family:system-ui,sans-serif; }
.shared-footer-links { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:12px; }
.shared-related{margin:0 0 12px;padding:0;border:1px solid #718a97;border-radius:6px}
.shared-related summary{min-height:44px;display:flex;align-items:center;padding:8px 12px;cursor:pointer;color:inherit}
.shared-related-links{display:flex;flex-wrap:wrap;gap:4px;padding:4px 8px}
.shared-related-links a{min-height:44px;display:inline-flex;align-items:center;padding:7px 10px;color:inherit;font-size:14px}
.shared-site-footer :focus-visible, .shared-site-header :focus-visible { outline:3px solid #ffcd73; outline-offset:3px; }
.page-context-links { max-width:1180px; margin:8px auto; display:flex; flex-wrap:wrap; gap:4px; }
@media(max-width:720px) { .shared-site-header { gap:4px; padding:6px 8px; } .shared-site-brand { font-size:13px; line-height:1.2; } .shared-menu summary,.shared-post { padding:6px; font-size:13px; } .shared-language button { min-width:44px; } .shared-site-footer,.page-context-links { margin-left:14px; margin-right:14px; } }

.page-footer-context { max-width:1180px; margin:20px auto 0; }
@media(max-width:720px) { .page-footer-context { margin-inline:14px; } }

body details.shared-menu { box-sizing:border-box; margin:0; padding:0; border:0; background:transparent; }
body .shared-menu > summary { min-height:44px; margin:0; }
body .shared-site-header .header-report-actions { display:inline-flex; align-items:center; gap:4px; margin:0; padding:0; }
.shared-post-compact { display:none; }
@media(max-width:720px) {
 body .shared-site-brand { min-width:0; flex:1 1 auto; font-size:0; white-space:nowrap; }
 body .shared-site-brand::after { content:'勧誘マップ'; font-size:14px; }
 html:lang(en) body .shared-site-brand::after { content:'Kanyu Map'; }
 body .shared-post-label { display:none; }
 body .shared-post-compact { display:inline; font-size:14px; }
 body .shared-site-header .shared-post { min-width:44px; padding:6px; }
 body .shared-site-header .shared-language { flex:0 0 auto; gap:2px; }
 body .shared-site-header .shared-language button { flex:0 0 44px; width:44px; min-width:44px; max-width:44px; padding:0; font-size:14px; }
}

body .page-context-links { box-sizing:border-box; width:min(1180px,calc(100% - 28px)); margin:8px auto; }
body .shared-site-header .shared-language { padding:0; border:0; }
@media(min-width:721px) {
 body details.shared-menu > summary { display:none; }
 body details.shared-menu nav { position:static; display:flex; min-width:0; padding:0; gap:2px; background:transparent; border:0; }
}
body[data-design] .shared-site-footer, body .shared-site-footer { background:#1a3040; color:#f1f7f9; border:1px solid #718a97; border-radius:6px; padding:16px; }
body .shared-site-footer a { color:#e6f1f5; }
@media(min-width:721px) {
 body:not([data-map-page="japan"]):not(.is-embedded):not([data-report-embedded]) { padding-bottom:38px; }
}

/* Desktop navigation is visible in the initial HTML, before scripts run. */
body .shared-menu { position:relative; margin:0; padding:0; border:0; background:transparent; }
body .shared-menu-toggle { display:none; min-height:44px; padding:9px 12px; border:1px solid #8da6b2; border-radius:6px; background:#234857; color:#fff; font:inherit; cursor:pointer; }
body .shared-menu nav { position:static; display:flex; min-width:0; padding:0; gap:2px; background:transparent; border:0; }
@media(max-width:720px) {
 body .shared-menu-toggle { display:block; padding:6px; font-size:14px; }
 body .shared-menu nav { display:none; position:absolute; z-index:1000; top:calc(100% + 4px); right:0; min-width:210px; padding:6px; background:#12283a; border:1px solid #8da6b2; border-radius:6px; }
 body .shared-menu[data-open="true"] nav { display:grid; }
}
body .shared-site-header .shared-site-brand { display:inline-flex; align-items:center; min-height:44px; }
body .shared-site-header .shared-language button { font-size:14px!important; }
body .shared-site-header .operator-support-square { flex:0 0 76px; width:76px; font-size:14px!important; }
body .shared-site-header .operator-support-square > .operator-support-visible { font-size:14px!important; }
body[data-design] .shared-site-footer :is(a,button), body .shared-site-footer :is(a,button), body .shared-site-footer .operator-support-footer { font-size:14px!important; }
@media(max-width:720px) {
 body .shared-site-header .shared-site-brand { min-width:84px; }
 body .shared-site-header .shared-menu-toggle { padding:6px!important; font-size:14px!important; }
}
@media(max-width:720px) {
 body .shared-site-header { gap:3px; }
 body .shared-site-header .shared-site-brand { min-width:66px; }
 body .shared-site-header .shared-menu-toggle { min-width:48px; white-space:nowrap; }
 body .shared-site-header .operator-support-square { flex-basis:76px; width:76px; }
}
/* Keep the settings control below the shared navigation on every page. */
body[data-design] .shared-site-footer, body .shared-site-footer { display:block; }
/* The history facts are a compact, wrapping grid; values remain untruncated. */
body[data-workspace="company"] .company-history .company-facts {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
 gap:12px;
}
body[data-workspace="company"] .company-history .company-facts > div {
 min-width:0;
 padding:10px 12px;
 border:1px solid #617987;
 border-radius:6px;
 background:#142b3b;
 overflow-wrap:anywhere;
}
body[data-workspace="company"] .company-history .company-facts dd { margin:4px 0 0; }
body .shared-footer-links { gap:4px; margin-bottom:12px; }
body .shared-footer-links a { line-height:1.4; }
@media(max-width:720px) {
 body .shared-footer-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 body .shared-footer-links a { min-width:0; overflow-wrap:anywhere; }
}
body[data-design] .shared-site-footer .shared-footer-links, body .shared-site-footer .shared-footer-links { padding:0; border:0; background:transparent; }
