/* 2026-10-23: 本サイト共通のメガメニュー（header-module.js が普通カードの全ページで読み込む）。
   以前はトップページ専用（body.home-page）だった。詳細度を変えないよう body.home-page → body:not(.__x) に置換。
   ヘッダーの背景色だけはトップページ固有のままにする（他ページのヘッダーの見た目は変えない）。 */
html body.home-page .home-mega-header{background:rgba(250,250,252,.96)!important;backdrop-filter:none!important;box-shadow:none!important;border-bottom:1px solid #e8e8ed!important;}
html body:not(.__x) .home-mega-header{z-index:1200!important;}
html body:not(.__x) .home-mega-header .dropdown-content{display:none!important;}
html body:not(.__x) .home-mega-panel[hidden],.home-mega-veil[hidden]{display:none!important;}
html body:not(.__x) .home-mega-panel{position:absolute;top:100%;left:0;width:100%;background:#fafafc!important;z-index:1201;box-shadow:none;border:0;max-height:calc(100dvh - 90px);overflow:auto;animation:homeMegaEnter .22s ease;}
html body:not(.__x) .home-mega-inner{width:min(1100px,87.5vw);margin:auto;padding:30px 0 38px;display:grid;grid-template-columns:1.35fr 1.1fr 1fr;gap:64px;}
html body:not(.__x) .home-mega-col{display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
html body:not(.__x) .home-mega-col p{font-size:12px!important;color:#86868b!important;margin:0 0 8px!important;font-weight:400!important;}
html body:not(.__x) .home-mega-col a{display:block;font-size:14px!important;font-weight:500!important;line-height:1.4!important;color:#1d1d1f!important;text-decoration:none!important;}
html body:not(.__x) .home-mega-primary a{font-size:18px!important;font-weight:600!important;letter-spacing:-.02em;}
html body:not(.__x) .home-mega-col a:hover{color:#0071e3!important;}
html body:not(.__x) .home-mega-col a:focus-visible{outline:2px solid #0071e3;outline-offset:5px;border-radius:3px;}
.home-mega-veil{position:fixed;inset:0;background:#0002;backdrop-filter:blur(7px);z-index:1199;}
@media(max-width:1100px){html body:not(.__x) .home-mega-inner{grid-template-columns:1fr;gap:28px;padding:28px 0;}html body:not(.__x) .home-mega-panel{position:fixed;top:80px;max-height:calc(100dvh - 80px);}html body:not(.__x) .home-mega-primary a{font-size:21px!important;}}
@keyframes homeMegaEnter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html body:not(.__x) .home-mega-panel{animation:none;}}

/* Consistent Japanese sans-serif typography within the expanded menu only. */
html body:not(.__x) .home-mega-panel .home-mega-col p,
html body:not(.__x) .home-mega-panel .home-mega-col a{font-family:inherit!important;letter-spacing:normal!important;}
html body:not(.__x) .home-mega-panel .home-mega-col p{font-size:12px!important;line-height:1.6!important;font-weight:400!important;color:#86868b!important;}
html body:not(.__x) .home-mega-panel .home-mega-col a{font-size:15px!important;line-height:1.7!important;font-weight:500!important;color:#29292c!important;}
html body:not(.__x) .home-mega-panel .home-mega-col a:hover{color:#0071e3!important;}

/* Reference hierarchy: prominent discovery links, compact supporting columns. */
html body:not(.__x) .home-mega-panel .home-mega-inner{grid-template-columns:1.65fr 1.05fr 1fr;gap:56px;padding:40px 0 48px;}
html body:not(.__x) .home-mega-panel .home-mega-col{gap:10px;}
html body:not(.__x) .home-mega-panel .home-mega-col p{font-size:13px!important;font-weight:400!important;margin-bottom:15px!important;color:#73737a!important;}
html body:not(.__x) .home-mega-panel .home-mega-col a{font-size:16px!important;font-weight:500!important;line-height:1.55!important;letter-spacing:-.015em!important;}
html body:not(.__x) .home-mega-panel .home-mega-primary a{font-size:20px!important;font-weight:600!important;line-height:1.5!important;letter-spacing:-.025em!important;}
@media(max-width:1100px){html body:not(.__x) .home-mega-panel .home-mega-inner{grid-template-columns:1fr;gap:28px;padding:28px 0;}html body:not(.__x) .home-mega-panel .home-mega-primary a{font-size:21px!important;}}

/* 普通カードの各ページには文字サイズを一括指定する強いルール（body, p:not(…)…{font-size:16px!important}）があり、
   上の指定が負けるため、パネルの id で同じ値をもう一度指定する。
   そのルールは :not(#xxx *) を9個含み id 9個分の強さなので、こちらは id 20個分（#home-mega-panel＋:not(#_m0〜18)）にする（p 用はさらに強いため）。 */
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col p,
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col a{font-family:inherit!important;letter-spacing:normal!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col p{font-size:12px!important;line-height:1.6!important;font-weight:400!important;color:#86868b!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col a{font-size:15px!important;line-height:1.7!important;font-weight:500!important;color:#29292c!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col a:hover{color:#0071e3!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col{gap:10px;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col p{font-size:13px!important;font-weight:400!important;margin-bottom:15px!important;color:#73737a!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-col a{font-size:16px!important;font-weight:500!important;line-height:1.55!important;letter-spacing:-.015em!important;}
html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-primary a{font-size:20px!important;font-weight:600!important;line-height:1.5!important;letter-spacing:-.025em!important;}
@media(max-width:1100px){html body #home-mega-panel:not(#_m0):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6):not(#_m7):not(#_m8):not(#_m9):not(#_m10):not(#_m11):not(#_m12):not(#_m13):not(#_m14):not(#_m15):not(#_m16):not(#_m17):not(#_m18) .home-mega-primary a{font-size:21px!important;}}
