/* Opt-in shared header/footer; page content is outside this scope. */
:is(#shared-chrome,.library-chrome),:is(#shared-chrome,.library-chrome) *{all:revert}
:is(#shared-chrome,.library-chrome),:is(#shared-chrome,.library-chrome) *{box-sizing:border-box}
:is(#shared-chrome,.library-chrome){display:block;width:100%;height:auto;margin:0;padding:0;background:#fff;color:#24364d;font-family:inherit;font-weight:500;line-height:1.8}
:is(#shared-chrome,.library-chrome) a{color:inherit;text-decoration:none}
:is(#shared-chrome,.library-chrome) a:hover{text-decoration:underline}
:is(#shared-chrome,.library-chrome) a:focus-visible,:is(#shared-chrome,.library-chrome) button:focus-visible{outline:3px solid #4c83b5;outline-offset:6px}
:is(#shared-chrome,.library-chrome) .header-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;width:100%;max-width:none;margin:0;min-height:106px;padding:24px 40px;gap:24px}
:is(#shared-chrome,.library-chrome) .brand{display:inline-flex;align-items:center;gap:13px;font-size:23px;font-weight:700;line-height:1.5;white-space:nowrap}
:is(#shared-chrome,.library-chrome) .brand img{display:block;width:61px;height:61px;object-fit:contain;flex-shrink:0}
:is(#shared-chrome,.library-chrome) .brand:hover{text-decoration:none}
:is(#shared-chrome,.library-chrome) .brand:hover img{opacity:.9}
:is(#shared-chrome,.library-chrome) .site-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:20px;margin-left:auto;width:auto;padding:0;font-size:14px}
:is(#shared-chrome,.library-chrome) .site-nav a{display:block;padding:0;white-space:nowrap;text-decoration:none}
:is(#shared-chrome,.library-chrome) .nav-line-label{position:relative;display:inline-block}
:is(#shared-chrome,.library-chrome) .nav-line-label::after{content:'';position:absolute;left:0;right:0;bottom:-2px;border-bottom:1px solid currentColor;opacity:0;transform:translateY(5px);transition:opacity .25s,transform .25s}
:is(#shared-chrome,.library-chrome) .site-nav a:is(:hover,:focus-visible,[aria-current=page]) .nav-line-label::after{opacity:1;transform:translateY(0)}
:is(#shared-chrome,.library-chrome) .site-nav .nav-contact{display:inline-flex;justify-content:center;align-items:center;gap:10px;width:240px;max-width:100%;min-height:56px;padding:13px 16px;border:0;border-radius:8px;background:#244e85;color:#fff;font-size:15px;font-weight:700;line-height:2.05;box-shadow:0 4px 2px rgba(20,47,83,.28);transition:translate .15s,box-shadow .15s,background .15s}
:is(#shared-chrome,.library-chrome) .site-nav .nav-contact:hover{background:#173c6c}
:is(#shared-chrome,.library-chrome) .site-nav .nav-contact:active{translate:0 4px;box-shadow:none}
:is(#shared-chrome,.library-chrome) .mail-icon{font-family:'Kaede Material Mail';font-size:20px;font-style:normal;font-weight:400;line-height:1;font-feature-settings:'liga'}
:is(#shared-chrome,.library-chrome) .fullscreen-toggle{display:none}
:is(#shared-chrome,.library-chrome).site-footer{padding:80px 0 32px}
:is(#shared-chrome,.library-chrome).site-footer>.container{width:min(1640px,calc(100% - 80px));max-width:none;margin:auto;padding:0}
:is(#shared-chrome,.library-chrome) .footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:48px}
:is(#shared-chrome,.library-chrome) .footer-address{font-size:13px;color:#53677a;margin:20px 0 0 74px;font-style:normal;text-align:left;line-height:1.9}
:is(#shared-chrome,.library-chrome) .footer-links{display:grid;grid-template-columns:repeat(2,auto);gap:16px 32px;font-size:14px;margin:0;padding:0}
:is(#shared-chrome,.library-chrome) .footer-bottom{display:flex;align-items:flex-end;justify-content:space-between;position:relative;gap:24px;border-top:1px solid #d6e1eb;min-height:116px;padding:26px 52px 0 0;margin-top:56px;font-size:12px}
:is(#shared-chrome,.library-chrome) .footer-bottom small{font-size:inherit}
:is(#shared-chrome,.library-chrome) .page-top-pill{display:inline-flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #244e85;border-radius:24px;padding:12px 7px;color:#244e85;text-decoration:none;position:absolute;right:calc((100% - 100vw) / 2 + 14px);bottom:0;width:28px;height:90px;flex-shrink:0}
:is(#shared-chrome,.library-chrome) .page-top-icon{font-family:'Kaede Material Expand','Material Symbols Rounded';font-feature-settings:'liga';font-size:16px;line-height:1;transform:rotate(180deg)}
:is(#shared-chrome,.library-chrome) .page-top-text{writing-mode:vertical-rl;white-space:nowrap;font-size:10px;line-height:1;letter-spacing:.04em}
@media(hover:hover) and (pointer:fine){:is(#shared-chrome,.library-chrome) .site-nav .nav-contact:hover{translate:0 2px;box-shadow:0 2px 1px rgba(20,47,83,.28)}}
@media(max-width:1200px){:is(#shared-chrome,.library-chrome) .brand{font-size:17px}:is(#shared-chrome,.library-chrome) .footer-top{flex-direction:column}}
@media(max-width:959px){
:is(#shared-chrome,.library-chrome) .header-inner{flex-wrap:nowrap;min-height:88px;gap:12px;padding:calc(16px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 16px max(14px,env(safe-area-inset-left))}
:is(#shared-chrome,.library-chrome) .brand{flex:1;min-width:0;max-width:none;font-size:14px;line-height:1.5;gap:6px;white-space:normal}
:is(#shared-chrome,.library-chrome) .brand img{width:38px;height:38px}
:is(#shared-chrome,.library-chrome) .brand span{max-width:none;text-wrap:initial;line-height:1.5}
.has-fullscreen-menu :is(#shared-chrome,.library-chrome) .site-nav{display:none}
:is(#shared-chrome,.library-chrome) .fullscreen-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:58px;min-width:58px;height:56px;flex-shrink:0;padding:6px;border:1px solid #244e85;border-radius:4px;background:transparent;color:#244e85;font:inherit;font-size:11px;line-height:1.2;cursor:pointer}
}
@media(max-width:800px){
:is(#shared-chrome,.library-chrome).site-footer{padding:48px 0 28px}
:is(#shared-chrome,.library-chrome).site-footer>.container{width:calc(100% - 28px)}
:is(#shared-chrome,.library-chrome) .footer-top{gap:28px}
:is(#shared-chrome,.library-chrome) .footer-address{margin:20px 0 0}
:is(#shared-chrome,.library-chrome) .footer-links{grid-template-columns:1fr;gap:14px}
:is(#shared-chrome,.library-chrome) .footer-bottom{flex-direction:column;align-items:flex-start;gap:16px;margin-top:32px;min-height:103px}
}
@media(prefers-reduced-motion:reduce){:is(#shared-chrome,.library-chrome) .nav-line-label::after,:is(#shared-chrome,.library-chrome) .site-nav .nav-contact{transition:none}}
:is(#shared-chrome,.library-chrome) .menu-lines{position:relative;display:block;width:24px;height:20px}
:is(#shared-chrome,.library-chrome) .menu-lines i{position:absolute;left:0;width:24px;height:2px;background:currentColor;border-radius:1px}
:is(#shared-chrome,.library-chrome) .menu-lines i:nth-child(1){top:0}
:is(#shared-chrome,.library-chrome) .menu-lines i:nth-child(2){top:9px}
:is(#shared-chrome,.library-chrome) .menu-lines i:nth-child(3){top:18px}

:is(#shared-chrome,.library-chrome) .menu-toggle{display:none}

/* Compact desktop navigation, before switching to the fullscreen menu. */
@media(min-width:1280px) and (max-width:1439px){
:is(#shared-chrome,.library-chrome) .header-inner{padding-inline:32px;gap:20px}
:is(#shared-chrome,.library-chrome).site-header .brand{font-size:18px;gap:10px}
:is(#shared-chrome,.library-chrome).site-header .brand img{width:48px;height:48px}
:is(#shared-chrome,.library-chrome) .site-nav{gap:16px}
}
/* Position inherited footer bullets relative to their own links. */
:is(#shared-chrome,.library-chrome) .footer-links a{position:relative;padding-left:15px}
:is(#shared-chrome,.library-chrome) .footer-links a::before{content:'';position:absolute;left:0;top:.9em;width:5px;height:5px;border-radius:50%;background:#244e85}

/* Approved responsive chrome, shared by the library and all seven pages. */
:root :is(#shared-chrome,.library-chrome) .brand img,
:root .fullscreen-menu .brand img{width:61px;height:61px;flex-shrink:0}
:root :is(#shared-chrome,.library-chrome) .header-inner{min-height:109px}
@media(min-width:960px){
 :root :is(#shared-chrome,.library-chrome) .header-inner{padding:24px 40px;gap:24px}
 :root :is(#shared-chrome,.library-chrome).site-header .brand{flex:0 0 auto;font-size:23px;gap:13px;white-space:nowrap}
 :root :is(#shared-chrome,.library-chrome) .site-nav{display:flex;gap:20px;flex-direction:row}
 :root :is(#shared-chrome,.library-chrome) .site-nav .nav-contact{width:180px;flex-shrink:0}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle{display:none}
}
@media(min-width:960px) and (max-width:1439px){
 :root :is(#shared-chrome,.library-chrome) .header-inner{padding-inline:24px;gap:20px}
 :root :is(#shared-chrome,.library-chrome) .site-nav{gap:14px}
 :root :is(#shared-chrome,.library-chrome) .site-nav .nav-contact{width:170px;flex-shrink:0}
}
@media(min-width:960px) and (max-width:1279px){
 :root :is(#shared-chrome,.library-chrome).site-header .brand{font-size:18px;gap:10px}
 :root :is(#shared-chrome,.library-chrome) .header-inner{padding-inline:16px;gap:16px}
 :root :is(#shared-chrome,.library-chrome) .site-nav{font-size:13px;gap:12px}
 :root :is(#shared-chrome,.library-chrome) .site-nav .nav-contact{width:140px}
 :root :is(#shared-chrome,.library-chrome) .site-nav a:not(.nav-contact){display:flex;align-items:center;justify-content:center;min-height:56px;text-align:center;line-height:1.3}
 :root :is(#shared-chrome,.library-chrome) .nav-break{display:block}
}
@media(max-width:959px){
 :root .fullscreen-menu-bar{min-height:109px}
 :root :is(#shared-chrome,.library-chrome).site-header .brand{font-size:14px;gap:6px;white-space:normal}
}
@media(min-width:801px) and (max-width:1279px){
 :root :is(#shared-chrome,.library-chrome) .footer-top{flex-direction:column;gap:28px}
 :root :is(#shared-chrome,.library-chrome).site-footer>.container{width:calc(100% - 48px)}
 :root :is(#shared-chrome,.library-chrome).site-footer .brand{font-size:18px;gap:10px;white-space:nowrap}
 :root :is(#shared-chrome,.library-chrome) .footer-links{flex:none;width:100%;max-width:none;min-width:0;grid-template-columns:1fr;gap:16px}
 :root :is(#shared-chrome,.library-chrome) .footer-links a{word-break:normal;overflow-wrap:anywhere}
}
@media(max-width:1279px){
 :root :is(#shared-chrome,.library-chrome).site-footer .brand{white-space:normal}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-top>div:first-child{width:100%;text-align:center}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-top>div:first-child>.brand{display:flex;flex-direction:column;align-items:center;width:100%;margin-inline:auto;gap:8px;font-size:16px!important;text-align:center}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-address{margin:8px 0 0;text-align:center}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-links{width:100%;gap:0;text-align:center}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-links a{padding:12px 0;font-weight:700}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-links a+a{border-top:1px solid #d6e1eb}
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-links a::before{content:none}
}
/* Separate the contact action from the text navigation. */
@media(min-width:960px){
 :root :is(#shared-chrome,.library-chrome) .site-nav .nav-contact{margin-left:14px}
}
@media(min-width:960px) and (max-width:1279px){
 :root :is(#shared-chrome,.library-chrome) .header-inner{gap:12px}
 :root :is(#shared-chrome,.library-chrome) .site-nav{gap:10px}
 :root :is(#shared-chrome,.library-chrome) .site-nav .nav-contact{margin-left:0}
}
/* Keep the complete company name on one line beside the unchanged logo. */
@media(max-width:959px){
 :root :is(#shared-chrome,.library-chrome).site-header .brand,
 :root .fullscreen-menu .brand{white-space:nowrap;font-size:clamp(8px,calc((100vw - 165px) / 17),14px)}
 :root :is(#shared-chrome,.library-chrome).site-header .brand span,
 :root .fullscreen-menu .brand span{white-space:nowrap}
}
/* Bring the mobile brand closer to the left edge in both menu states. */
@media(max-width:959px){
 :root :is(#shared-chrome,.library-chrome) .header-inner,
 :root .fullscreen-menu-bar{padding-left:max(4px,env(safe-area-inset-left))}
}
/* Give two-line navigation items more horizontal breathing room. */
@media(min-width:960px) and (max-width:1279px){
 :root :is(#shared-chrome,.library-chrome) .site-nav{gap:clamp(10px,calc(10px + (100vw - 960px) * .22),24px)}
}
/* Two-line desktop navigation uses a text-only contact action. */
@media(min-width:960px) and (max-width:1279px){
 :root :is(#shared-chrome,.library-chrome).site-header .nav-contact .mail-icon{display:none}
}
/* Tighten the space between the header symbol and company name. */
:root :is(#shared-chrome,.library-chrome).site-header .brand,
:root .fullscreen-menu .brand{gap:4px}
/* Balance the brand and menu control without shrinking the symbol. */
@media(max-width:959px){
 :root :is(#shared-chrome,.library-chrome).site-header .brand,
 :root .fullscreen-menu .brand{font-size:clamp(10px,calc((100vw - 147px) / 17),14px)}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle,
 :root .fullscreen-menu .fullscreen-toggle{position:relative;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;gap:0}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle .menu-lines,
 :root .fullscreen-menu .fullscreen-toggle .menu-lines{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle>span:last-child,
 :root .fullscreen-menu .fullscreen-toggle>span:last-child{position:absolute;left:0;right:0;bottom:1px;text-align:center;font-size:9px;line-height:12px;white-space:nowrap}
}
@media(min-width:600px) and (max-width:959px){
 :root :is(#shared-chrome,.library-chrome).site-header .brand img,
 :root .fullscreen-menu .brand img{width:72px;height:72px}
 :root :is(#shared-chrome,.library-chrome).site-header .brand,
 :root .fullscreen-menu .brand{font-size:23px}
}
/* Raise only the hamburger strokes; keep the label and close icon in place. */
@media(max-width:959px){
 :root :is(#shared-chrome,.library-chrome).site-header .fullscreen-toggle .menu-lines{top:calc(50% - 3px)}
}

/* Progressive fallback: common.js may set .js without a dialog controller. */
@media(max-width:959px){
 :root:not(.has-fullscreen-menu) :is(#shared-chrome,.library-chrome).site-header .header-inner{flex-wrap:wrap}
 :root:not(.has-fullscreen-menu) :is(#shared-chrome,.library-chrome).site-header .site-nav{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 16px;width:100%;margin:0;padding:12px 0 0}
 :root:not(.has-fullscreen-menu) :is(#shared-chrome,.library-chrome).site-header .site-nav a{white-space:normal}
 :root:not(.has-fullscreen-menu) :is(#shared-chrome,.library-chrome).site-header .fullscreen-toggle{display:none}
}

/* Compact mobile menu control; retain a 48px touch target. */
@media(max-width:959px){
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle .menu-lines,
 :root .fullscreen-menu .fullscreen-toggle .menu-lines{width:22px;height:18px}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle .menu-lines i,
 :root .fullscreen-menu .fullscreen-toggle .menu-lines i{width:22px}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle .menu-lines i:nth-child(2){top:8px}
 :root :is(#shared-chrome,.library-chrome) .fullscreen-toggle .menu-lines i:nth-child(3){top:16px}
 :root .fullscreen-menu .menu-close .menu-lines{top:calc(50% - 3px)}
 :root .fullscreen-menu .menu-close .menu-lines i{top:8px}
}

/* スマホのフッターメニューにホームへの導線を表示 */
:root :is(#shared-chrome,.library-chrome).site-footer .footer-links .footer-home-mobile{display:none}
@media(max-width:1279px){
 :root :is(#shared-chrome,.library-chrome).site-footer .footer-links .footer-home-mobile{display:block}
}

/* Page Top は下線を出さず、ホバー時に全体を薄くする */
:root :is(#shared-chrome,.library-chrome) .page-top-pill:hover{ text-decoration:none;opacity:.6 }
