:root {
  --site-green: #173f35;
  --site-ink: #243c34;
  --site-line: #d7ddd5;
}
.site-header,
.site-header *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}
.site-header,
.site-footer {
  font:
    16px/1.7 "Yu Gothic",
    sans-serif;
  color: var(--site-ink);
  background: white;
}
.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid #a4792e;
  outline-offset: 4px;
}
.site-header [hidden] {
  display: none !important;
}
[data-site-include="header"] {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--site-line);
}
.site-brand {
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-brand img {
  display: block;
  width: 158px;
  height: 15px;
  object-fit: contain;
  max-width: 100%;
}
.site-navigation {
  flex: 1;
  max-width: 970px;
  min-width: 0;
}
.site-global-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.site-global-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 6px;
  text-align: center;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}
.site-global-nav small {
  font: 10px/1.5 sans-serif;
  color: #5d6b63;
  margin-top: 3px;
}
.site-global-nav a[aria-current="page"] {
  font-weight: 700;
  background: #f6f5ef;
}
.site-global-nav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--site-green);
}
.site-menu {
  font:
    14px "Yu Gothic",
    sans-serif;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--site-ink);
  background: white;
  border: 1px solid var(--site-line);
  cursor: pointer;
}
.site-footer {
  padding: 48px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--site-line);
}
.site-footer strong {
  font:
    18px Georgia,
    serif;
  letter-spacing: 0.08em;
}
.site-footer p,
.site-footer small {
  font-size: 11px;
  margin: 8px 0 0;
}
.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
.site-footer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header {
    gap: 16px;
    padding: 12px 16px;
  }
  .site-global-nav a {
    font-size: 12px;
  }
  .site-global-nav small {
    font-size: 9px;
  }
}
@media (max-width: 767px) {
  .site-header {
    min-height: 74px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-navigation {
    flex-basis: 100%;
    max-width: none;
  }
  .site-global-nav {
    grid-template-columns: 1fr;
  }
  .site-global-nav a {
    min-height: 48px;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
  }
  .site-global-nav small {
    margin: 0;
    font-size: 10px;
  }
  .site-global-nav a[aria-current="page"]:after {
    inset: 8px auto 8px 0;
    width: 3px;
    height: auto;
  }
  .site-menu {
    margin-left: auto;
  }
  .site-footer {
    display: block;
    padding: 36px 16px 100px;
  }
  .site-footer nav {
    gap: 16px;
    margin: 18px 0;
  }
}
@media print {
  [data-site-include="header"],
  .site-footer {
    display: none !important;
  }
}
/* The logo scrolls normally; only the menu bar remains pinned. */
[data-site-include="header"] {
  display: contents;
  position: static;
}
.site-header {
  display: contents;
}
.site-logo-strip {
  background: #fff;
  border-bottom: 1px solid #eceee9;
  padding: 18px max(24px, calc((100% - 1200px) / 2));
  height: 100px;
  display: flex;
  align-items: center;
}
.site-logo-strip .site-brand img {
  width: 142px;
  height: auto;
  aspect-ratio: 523.53/206.02;
}
.site-menu-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--site-line);
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-menu-bar .site-navigation {
  max-width: 1200px;
}
.site-menu-bar .site-global-nav a {
  min-height: 72px;
}
.site-logo-strip .site-brand {
  min-height: 44px;
}
@media (max-width: 767px) {
  .site-logo-strip {
    height: 86px;
    padding: 14px 16px;
  }
  .site-logo-strip .site-brand img {
    width: 130px;
  }
  .site-menu-bar {
    min-height: 58px;
    padding: 6px 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-menu-bar .site-global-nav a {
    min-height: 48px;
  }
  .site-menu-bar .site-navigation {
    max-height: calc(100svh - 130px);
    overflow: auto;
  }
  .site-menu-bar .site-menu {
    margin: 0;
  }
  .site-menu-bar .site-navigation:not([hidden]) {
    margin-top: 6px;
  }
}
@media print {
  .site-logo-strip,
  .site-menu-bar {
    display: none !important;
  }
}

/* Center the upper Yamaha logo across all shared-header pages. */
.site-logo-strip {
  justify-content: center;
}

/* Company logo remains alongside the global menu. */
.site-menu-bar {
  gap: 24px;
}
.site-company-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.site-company-brand img {
  display: block;
  width: 158px;
  height: 15px;
  object-fit: contain;
}
.site-menu-bar .site-navigation {
  max-width: 1000px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-menu-bar {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 767px) {
  .site-menu-bar {
    justify-content: space-between;
    gap: 0 12px;
  }
  .site-menu-bar .site-navigation {
    flex-basis: 100%;
  }
}
