/* Shared header v3. Existing im-* tokens retained for compatibility. */
:root {
    --im-navy: #1a1f2e; --im-navy-l: #2a3148;
    --im-gold: #c9a84c; --im-gold-d: #8b6914; --im-gold-l: #e8dfc8;
    --im-cream: #faf9f6; --im-border: #d7ded9;
    --im-text: #202b35; --im-text-m: #4e5e65; --im-text-l: #4e5e65; --im-white: #fff;
    --im-font-serif: 'Shippori Mincho', 'Yu Mincho', serif;
    --im-font-display: Georgia, serif;
    --im-font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --h2-sticky-height: 48px;
}
html { scroll-padding-top: calc(var(--h2-sticky-height) + 16px); }
.site-header, .global-nav, .h2-site-information, .sp-overlay-menu, .market-ticker { box-sizing: border-box; font-family: var(--im-font-body); }
.site-header *, .global-nav *, .h2-site-information *, .sp-overlay-menu *, .market-ticker * { box-sizing: border-box; }
.site-header [hidden], .global-nav [hidden], .sp-overlay-menu[hidden], .sp-overlay-menu [hidden] { display: none !important; }
.h2-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.h2-skip-link { position: fixed; left: 12px; top: 8px; padding: 12px 18px; z-index: 9999; background: #fff; color: #173f2c; border: 2px solid #246144; transform: translateY(-150%); }
.h2-skip-link:focus { transform: translateY(0); }
.site-header :is(a,button,input):focus-visible,
.global-nav :is(a,button,summary):focus-visible,
.h2-site-information :is(a,button):focus-visible,
.sp-overlay-menu :is(a,button,input,summary):focus-visible,
.market-ticker :is(a,summary):focus-visible { outline: 3px solid #397b57; outline-offset: 3px; }
.global-nav > .global-nav-inner > .h2-nav-item > .h2-nav-entry > a:focus-visible,
.global-nav > .global-nav-inner > .h2-nav-item > .h2-nav-entry > details > summary:focus-visible,
.global-nav > .global-nav-inner > .h2-tools-disclosure > summary:focus-visible { outline-color: #f1d482; outline-offset: -4px; }
.site-header { width: 100%; position: relative; background: #fff; border-left: 4px solid var(--im-gold); color: var(--im-text); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 12px 24px; min-height: 84px; }
.logo-area { min-width: 0; }
.logo-en { display: block; color: #6b5827; font-family: var(--im-font-display); font-size: 10px; line-height: 1.1; letter-spacing: 3px; }
.logo-en-one { font-family: 'Times New Roman', Times, serif; font-variant-numeric: lining-nums; }
.site-header .logo { margin: 3px 0 0; color: var(--im-text); font-family: var(--im-font-serif); font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: 1px; }
.logo a { color: inherit; text-decoration: none; }
.logo a:hover { color: var(--im-gold-d); }
.site-header .tagline { margin: 4px 0 0; color: var(--im-text-m); font-size: 12px; line-height: 1.5; }
.search-form { display: flex; align-items: center; width: 300px; flex: 0 1 300px; border: 1px solid #a6b4ab; border-radius: 6px; background: #f7f9f7; }
.search-input, .sp-search-input { min-width: 0; flex: 1; width: 100%; margin: 0; padding: 11px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--im-text); font: 16px/1.5 var(--im-font-body); }
.search-input::placeholder, .sp-search-input::placeholder { color: #58655d; opacity: 1; }
.search-btn, .sp-search-btn { flex: 0 0 54px; min-height: 44px; padding: 8px; margin: 0; border: 0; border-left: 1px solid #cdd8ce; border-radius: 0 5px 5px 0; color: #214d34; background: #edf4ee; font: 600 14px/1.4 var(--im-font-body); cursor: pointer; }
.search-btn:hover, .sp-search-btn:hover { background: #dfece2; }
.h2-mobile-actions { display: none; }
.nav-sentinel { height: 0; }
.global-nav { position: sticky; top: 0; z-index: 1200; width: 100%; background: var(--im-navy); color: #f5f6f7; }
.global-nav-inner { display: flex; align-items: stretch; justify-content: center; position: relative; max-width: 1240px; margin: 0 auto; padding: 0 10px; }
.h2-nav-item { display: flex; min-width: 0; }
.h2-nav-entry { display: flex; align-items: stretch; }
.gnav-link { display: flex; align-items: center; min-height: 48px; padding: 11px 8px 11px 12px; color: #f5f6f7; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.5; }
.gnav-link:hover, .h2-nav-disclosure > summary:hover { background: #303b4f; color: #fff; }
.h2-current-genre > .h2-nav-entry { background: #303b4f; box-shadow: inset 0 -3px #d9c077; }
.h2-current-genre .gnav-link { color: #f3dd9c; }
.h2-nav-disclosure { margin: 0; padding: 0; }
.h2-nav-disclosure > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 32px; min-height: 48px; padding: 8px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; color: #f5f6f7; }
.h2-nav-disclosure > summary::-webkit-details-marker { display: none; }
.h2-chevron { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.h2-nav-disclosure[open] > summary .h2-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.h2-tools-disclosure { margin-left: 10px; border-left: 1px solid #586175; }
.h2-tools-disclosure > summary { padding-inline: 12px; }
.h2-dropdown { position: absolute; top: 100%; left: 12px; right: 12px; max-width: 900px; margin: 0 auto; padding: 0; border: 1px solid #adbdaf; border-top: 3px solid var(--im-gold); border-radius: 0 0 8px 8px; background: #fff; color: var(--im-text); box-shadow: 0 8px 18px rgb(21 36 29 / 14%); max-height: var(--h2-panel-height, calc(100dvh - 160px)); overflow-y: auto; overscroll-behavior: contain; }
.h2-dropdown-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #d7e1d9; background: #f0f5f1; }
.h2-dropdown-title > span { font-size: 16px; font-weight: 700; color: #284c36; }
.h2-dropdown-title a { font-size: 13px; color: #24583a; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.h2-purpose-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 18px 20px; }
.h2-purpose-group { min-width: 0; }
.h2-group-heading { margin: 0 0 7px; font-size: 13px; line-height: 1.6; font-weight: 700; color: #465c4d; }
.h2-purpose-group ul, .h2-mobile-fold > ul { list-style: none; margin: 0; padding: 0; }
.h2-purpose-group li { margin: 0; padding: 0; }
.h2-purpose-group a, .h2-mobile-fold > ul a { display: block; padding: 9px 6px; color: #213a2a; font-size: 14px; line-height: 1.65; text-decoration: none; overflow-wrap: anywhere; border-radius: 4px; }
.h2-purpose-group a:hover, .h2-mobile-fold > ul a:hover { background: #eef4ef; text-decoration: underline; text-underline-offset: 3px; }
.h2-purpose-group a[aria-current="page"] { background: #e5efe7; box-shadow: inset 3px 0 #397b57; font-weight: 700; }
.h2-tools-dropdown { max-width: 1120px; }
.h2-tools-dropdown .h2-purpose-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.h2-site-information { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 18px; padding: 8px max(16px,calc((100% - 1180px)/2)); border-bottom: 1px solid #dce2dd; background: #faf9f6; color: #4c5850; }
.h2-site-information > p { margin: 0; font-size: 12px; line-height: 1.6; }
.h2-site-information nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; }
.h2-site-information a { color: #46554a; font-size: 12px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.h2-site-information a:hover { color: #1e4e30; }
.h2-share { background: transparent; border: 0; padding: 3px; color: #46554a; cursor: pointer; font: 12px/1.6 var(--im-font-body); text-decoration: underline; text-underline-offset: 3px; }
.market-ticker { padding: 0 16px 8px; background: #f7faf7; border-bottom: 1px solid #dce2dd; }
.market-ticker > summary { min-height: 40px; padding: 10px 0; font-size: 13px; color: #284c36; cursor: pointer; }
.h2-ticker-hint { margin-left: 6px; }
.ticker-note { color: #536057; font-size: 12px; line-height: 1.7; padding: 4px 0 10px; }
.ticker-widget-slot { max-width: 1240px; margin: 0 auto; }
.h2-ticker-slot, .ticker-widget-slot .tradingview-widget-container { min-height: 46px; }
.ticker-widget-slot iframe { display: block; width: 100%; }
.h2-ticker-fallback { display: inline-block; padding: 8px 0; font-size: 13px; color: #24583a; text-decoration: underline; }
.sp-overlay-menu { position: fixed; inset: 0; z-index: 2000; color: var(--im-text); background: #fff; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; }
.sp-overlay-menu.is-open { visibility: visible; }
.sp-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #b7c8bd; border-left: 4px solid var(--im-gold); background: #fff; }
.sp-menu-logo { font-size: 18px; font-weight: 700; margin: 0; color: #263d2e; }
.sp-menu-close { border: 1px solid #a5b4a9; border-radius: 6px; background: #f5f8f5; padding: 8px 12px; min-height: 44px; color: #243e2e; cursor: pointer; font: 600 14px/1.5 var(--im-font-body); }
.sp-menu-body { max-width: 720px; margin: 0 auto; padding: 18px 16px 30px; }
.sp-menu-search { margin-bottom: 18px; }
.sp-menu-search > label { display: block; margin-bottom: 6px; color: #3e5145; font-size: 14px; font-weight: 700; }
.h2-search-fields { display: flex; align-items: center; border: 1px solid #a6b4ab; border-radius: 6px; background: #f7f9f7; }
.sp-menu-nav { margin: 18px 0; }
.sp-menu-nav > .h2-group-heading { margin-bottom: 10px; }
.h2-mobile-genre { position: relative; border: 1px solid #b7c8bd; border-radius: 7px; margin-bottom: 10px; background: #fff; }
.sp-menu-link { display: block; padding: 12px; min-height: 44px; color: #243d2d; font-size: 15px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.sp-menu-link:hover { background: #f1f6f2; text-decoration: underline; }
.h2-mobile-genre.h2-current-genre > .sp-menu-link { background: #eaf2ec; box-shadow: inset 3px 0 #397b57; }
.h2-mobile-genre > .sp-menu-link { padding-right: 82px; }
.h2-mobile-genre > details { margin: 0; padding: 0 12px; }
.h2-mobile-genre > details[open] { border-top: 1px solid #dce5de; }
.h2-mobile-genre > details > summary { position: absolute; right: 4px; top: 0; color: #3c5343; min-height: 48px; min-width: 72px; padding: 14px 8px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.h2-mobile-purpose { padding-bottom: 12px; }
.h2-mobile-purpose .h2-purpose-group + .h2-purpose-group { margin-top: 10px; border-top: 1px solid #dce5de; padding-top: 12px; }
.h2-mobile-fold { border: 1px solid #b7c8bd; border-radius: 7px; margin: 12px 0; padding: 0 12px; background: #f5f8f5; }
.h2-mobile-fold > summary { min-height: 48px; padding: 14px 0; color: #2d4c37; font-size: 15px; line-height: 1.5; font-weight: 700; cursor: pointer; }
.h2-mobile-fold .h2-purpose-group { margin: 10px 0 14px; }
.h2-mobile-fold a { min-height: 44px; }
.sp-menu-sub { padding-top: 18px; margin-top: 20px; border-top: 1px solid #b7c8bd; }
.sp-menu-sub .sp-menu-link { font-size: 14px; font-weight: 400; padding: 10px 0; }
.sp-menu-sub .h2-share { min-height: 44px; font-size: 14px; text-align: left; }
@media (min-width:1025px) {
    .sp-overlay-menu { display: none; }
    .container .side-banner.left-banner, .container .side-banner.right-banner { top: calc(var(--h2-sticky-height) + 12px) !important; max-height: calc(100dvh - var(--h2-sticky-height) - 24px) !important; }
}
@media (min-width:1025px) and (max-width:1140px) {
    .global-nav-inner { padding-inline: 4px; }
    .gnav-link { font-size: 13px; padding-inline: 6px; }
    .h2-tools-disclosure { margin-left: 4px; }
    .h2-tools-disclosure > summary { padding-inline: 7px; }
}
@media (max-width:1024px) {
    :root { --h2-sticky-height: 72px; }
    .site-header { position: sticky; top: 0; z-index: 1200; border-bottom: 1px solid #dce2dd; }
    .header-inner { padding: 10px 12px; min-height: 72px; gap: 8px; }
    .logo-area { flex: 1 1 auto; }
    .site-header .logo { font-size: 18px; letter-spacing: 0; overflow-wrap: anywhere; line-height: 1.4; }
    .logo-en { font-size: 9px; letter-spacing: 2px; }
    .site-header .tagline { display: none; }
    .h2-desktop-search, .global-nav, .market-ticker { display: none; }
    .h2-mobile-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
    .h2-mobile-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 48px; min-height: 48px; margin: 0; padding: 5px 2px; border: 1px solid #a6b4ab; border-radius: 6px; background: #fff; color: #273e2e; font: 12px/1.2 var(--im-font-body); cursor: pointer; }
    .h2-mobile-button:hover { background: #edf4ef; }
    #hamburgerBtn { width: 54px; }
    .h2-mobile-button > span:last-child { white-space: nowrap; }
    .h2-menu-icon { font-family: Arial,sans-serif; font-size: 21px; line-height: 17px; }
    .h2-search-icon { display: block; position: relative; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; margin-bottom: 3px; }
    .h2-search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
    .h2-site-information { padding: 8px 14px; }
    .h2-site-information > p { font-size: 12px; }
    .h2-site-information nav { display: none; }
}
@media (max-width:380px) {
    .header-inner { padding-inline: 8px; }
    .site-header .logo { font-size: 16px; }
    .h2-mobile-actions { gap: 4px; }
    .h2-mobile-button { width: 44px; font-size: 11px; }
    .logo-en { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) {
    .site-header *, .global-nav *, .sp-overlay-menu * { scroll-behavior: auto; }
}
