:root {
  --nav-height: 118px;
  --site-gutter: clamp(20px, 5vw, 84px);
  --nav-ink: #10253b;
  --nav-blue: #124f93;
}
html { scroll-padding-top: calc(var(--nav-height) + 12px); }
body > .skip { z-index: 100; }
.masthead {
  position: sticky; top: 0; z-index: 20; color: var(--nav-ink); background: white;
  border-bottom: 1px solid #cfd9e1; box-shadow: 0 2px 12px #163b5d0a;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.masthead a { color: inherit; text-decoration: none; }
.masthead-inner {
  display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); height: 70px;
  max-width: 1560px; margin-inline: auto; padding-inline: var(--site-gutter);
}
.masthead-brand {
  display: block; width: 126px; aspect-ratio: 880/194; margin-right: auto;
  position: relative; overflow: hidden; flex: none;
}
.masthead-brand img { position: absolute; width: 174.545455%; max-width: none; height: auto; left: -35.909091%; top: -154.639175%; filter: grayscale(1) contrast(6); }
.masthead .masthead-contact {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: .85rem; font-weight: 650; white-space: nowrap;
}
.masthead-contact::before {
  content: ""; width: 15px; height: 10px; border: 1.3px solid currentColor; border-radius: 1px;
  background: linear-gradient(33deg,transparent 48%,currentColor 50%,currentColor 55%,transparent 58%) left top/50% 65% no-repeat,
    linear-gradient(-33deg,transparent 48%,currentColor 50%,currentColor 55%,transparent 58%) right top/50% 65% no-repeat;
}
.masthead-contact:hover { text-decoration: underline; text-underline-offset: .35em; }
.global-nav {
  display: flex; align-items: stretch; justify-content: center; height: 47px;
  padding-inline: max(var(--site-gutter),calc((100% - 1360px)/2));
  background: #f8fafb; border-top: 1px solid #e1e7eb;
}
.global-nav a { flex: 1; display: grid; place-items: center; position: relative; padding: 0 10px; text-align: center; font-size: .91rem; line-height: 1.35; font-weight: 650; }
.global-nav a + a::before { content: ""; position: absolute; left: 0; top: 29%; bottom: 29%; border-left: 1px solid #cdd7df; }
.global-nav a:hover,.global-nav a:focus-visible { color: var(--nav-blue); box-shadow: inset 0 -3px var(--nav-blue); background: #eef4fa; }
.menu-toggle {
  display: flex; align-items: center; justify-content: center; gap: 11px; min-width: 109px;
  min-height: 42px; padding: 10px 16px; list-style: none; color: white; background: #112d48;
  cursor: pointer; font-size: .82rem; font-weight: 650; line-height: 1.25;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle:hover { background: var(--nav-blue); }
.menu-glyph { display: grid; gap: 4px; width: 20px; }
.menu-glyph i { height: 1.5px; width: 100%; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.site-menu[open] .menu-glyph i:first-child { transform: translateY(5.5px) rotate(45deg); }
.site-menu[open] .menu-glyph i:nth-child(2) { opacity: 0; }
.site-menu[open] .menu-glyph i:last-child { transform: translateY(-5.5px) rotate(-45deg); }
.menu-label-close,.site-menu[open] .menu-label-open { display: none; }
.site-menu[open] .menu-label-close { display: inline; }
.menu-panel {
  position: absolute; inset: 100% 0 auto; background: #fff; border-bottom: 3px solid #204e75;
  max-height: calc(100vh - var(--nav-height)); max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 26px 42px -19px #0c243b55;
}
.site-menu[open] .menu-panel { animation: menu-appear .2s ease-out; }
@keyframes menu-appear { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.menu-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: clamp(25px, 5vw, 85px); max-width: 1500px; margin: auto; padding: 36px var(--site-gutter) 40px; }
.masthead .menu-feature { display: flex; align-items: flex-end; min-height: 168px; padding: 20px; background: #b4d8e6 url('/assets/glass-circulation-small.webp') center 54%/cover; }
.menu-feature span { padding: 7px 12px; background: white; color: var(--nav-ink); font-size: 1.02rem; font-weight: 700; }
.menu-group h2 { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid #214a72; color: var(--nav-ink); font-size: 1rem; letter-spacing: .015em; }
.menu-group a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: .5rem; padding: 8px 0; border-bottom: 1px solid #dce4ea; font-size: .88rem; font-weight: 550; }
.menu-group a::after { content: ""; flex: none; width: 5px; height: 5px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); margin-right: 4px; }
.menu-group a:hover,.menu-feature:hover span { color: var(--nav-blue); text-decoration: underline; text-underline-offset: .25em; }
.masthead :is(a,summary):focus-visible { outline: 3px solid #3987e5; outline-offset: -3px; }
@media (max-width: 740px) {
  :root { --nav-height: 64px; }
  .masthead-inner { height: 63px; gap: 18px; padding-right: 0; }
  .global-nav { display: none; }
  .masthead-brand { width: 103px; }
  .menu-toggle { min-width: 66px; height: 63px; flex-direction: column; gap: 7px; padding: 6px; font-size: .62rem; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 16px 22px; padding-block: 20px 26px; }
  .masthead .menu-feature { grid-column: 1 / -1; min-height: 75px; padding: 14px; background-position: center 50%; }
  .menu-group a { min-height: 44px; }
}
@media (max-width: 400px) {
  .masthead-contact::before { display: none; }
  .masthead-inner { gap: 12px; }
  .menu-grid { gap: 16px; }
  .menu-group a { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu[open] .menu-panel { animation: none; }
  .menu-glyph i { transition: none; }
}
