/* ヘッダー、ロゴ、グローバルナビゲーションの定義をここに集約する。 */
:root { --header-height: 84px; }
.site-header {
  min-height: var(--header-height);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eeeeea;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; }
.brand-mark { color: var(--olive); width: 28px; height: 30px; }
.brand-name { font-size: 26px; line-height: 1; font-weight: 600; letter-spacing: .12em; margin-right: -.12em; white-space: nowrap; }
.primary-nav { font-size: 14px; font-weight: 500; letter-spacing: .025em; }
.nav-list { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); margin: 0; padding: 0; }
.nav-list > li > a,.nav-catalog > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; position: relative; white-space: nowrap; }
.nav-list > li > a::after,.nav-catalog > summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  border-bottom: 2px solid var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s;
}
.nav-list > li > a:hover::after,.nav-list > li > a[aria-current]::after,
.nav-catalog[open] > summary::after,.nav-catalog.is-current-group > summary::after { transform: scaleX(1); }
.nav-catalog.is-current-group > summary,.nav-list a[aria-current] { color: var(--olive); font-weight: 600; }
.nav-support-start { border-left: 1px solid var(--line); padding-left: clamp(18px,2vw,30px); }
.nav-chevron { width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); transition: transform .18s; }
.nav-catalog[open] .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-catalog { position: relative; }
.nav-catalog-panel {
  position: absolute;
  left: -24px;
  top: calc(100% + 18px);
  width: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 32px #30332d12;
}
.nav-panel-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.nav-catalog-panel a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 10px 12px; font-size: 15px; line-height: 1.6; }
.nav-catalog-panel a:hover,.nav-catalog-panel a[aria-current] { background: #f1f2eb; }
.nav-catalog-panel .nav-catalog-all { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px; }
.menu-toggle { display: none; border: 0; background: transparent; }
.menu-lines { width: 23px; height: 11px; border-block: 1px solid; transition: transform .18s; }
.menu-label { font-size: 14px; }
.menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(-25deg); }

@media (min-width:1001px) and (max-width:1150px) {
  .site-header { padding-inline: 28px; gap: 25px; }
  .nav-list { gap: 18px; }
  .nav-support-start { padding-left: 18px; }
  .brand-name { font-size: 24px; }
}
@media (max-width:1000px) {
  :root { --header-height: 76px; }
  .site-header { padding: 12px var(--page-gutter); flex-wrap: wrap; gap: 0; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: 26px; height: 28px; }
  .primary-nav { width: 100%; }
  .nav-list { display: block; }
  .nav-list > li > a,.nav-catalog > summary { min-height: 56px; justify-content: space-between; font-size: 16px; border-bottom: 1px solid #eeeeea; }
  .nav-list > li > a::after,.nav-catalog > summary::after { display: none; }
  .nav-list > li > a[aria-current] { box-shadow: inset 3px 0 var(--olive); padding-left: 14px; background: #f5f6f0; }
  .nav-support-start { border-left: 0; padding-left: 0; margin-top: 16px; }
  .nav-catalog-panel { position: static; width: auto; padding: 16px; border: 0; background: #f5f4ef; box-shadow: none; }
  .nav-catalog-panel a { min-height: 48px; }
  .nav-panel-label { margin-left: 12px; }
  html:not(.js-enabled) .site-header { position: static; }
  html:not(.js-enabled) .primary-nav { margin-top: 18px; }
  .js-enabled .site-header { flex-wrap: nowrap; }
  .js-enabled .menu-toggle { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 7px; padding: 4px 0; min-width: 56px; min-height: 48px; }
  .js-enabled .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px var(--page-gutter) 28px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px #30332d0c;
  }
  .js-enabled .primary-nav.is-open { display: block; }
}
@media (max-width:360px) {
  .site-header { padding-inline: 20px; }
  .brand-name { font-size: 23px; }
  .brand { gap: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .nav-list > li > a::after,.nav-catalog > summary::after,.nav-chevron,.menu-lines { transition: none; }
}
@media print { .site-header { display: none; } }
