/* 各ページに共通するヘッダー・フッター・ボタン */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5%;
  border-bottom: 1px solid var(--color-border);
  }
.brand img {
  display: block;
  width: 110px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0);
  }
.desktop-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  }
.desktop-nav a, .site-footer a {
  text-decoration: none;
  font-size: 13px;
  }
.desktop-nav a:hover, .site-footer a:hover {
  text-decoration: underline;
  }
.menu-button {
  display: none;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  }
.site-footer {
  background: var(--color-surface);
  padding: 48px 8% 24px;
  }
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 24px 0;
  }
.footer-brand {
  font-size: 32px;
  letter-spacing: 4px;
  }
.footer-brand span {
  font-size: 12px;
  }
.preview-note {
  color: var(--color-muted);
  font-size: 11px;
  }
.text-link {
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  }
.button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  padding: 16px 24px;
  text-decoration: none;
  }
.mobile-menu {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  width: min(420px, 90vw);
  max-height: 85dvh;
  padding: 24px;
  }
.mobile-menu::backdrop {
  background: #0008;
  }
.mobile-menu button {
  display: block;
  margin-left: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  }
.mobile-menu nav {
  display: grid;
  gap: 24px;
  padding: 24px 0;
  }
.header-brands {
  position: relative;
}
.header-brands summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-brands summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.header-brands-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: max-content;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgb(0 0 0 / 10%);
}
.header-brands-links a {
  padding: 12px 16px;
}
.header-brands-links a:hover {
  background: var(--color-surface);
}
@media (max-width: 760px) {
  .header-brands {
    display: none;
  }
}
.mobile-menu .mobile-brands {
  border-top: 1px solid var(--color-border);
  gap: 16px;
  padding-bottom: 8px;
}
.mobile-brands-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sticky-actions {
  display: none;
  }
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--color-accent);
  padding: 12px;
  z-index: 10;
  }
.skip-link:focus {
  top: 12px;
  }
@media (max-width: 760px) {
  .site-header {
  flex-wrap: wrap;
  padding: 12px 6%;
  }
  .brand img {
  width: 95px;
  height: 50px;
  }
  .desktop-nav {
  width: 100%;
  gap: 18px;
  }
  .js-enabled .desktop-nav {
  display: none;
  }
  .js-enabled .menu-button {
  display: block;
  }
  .has-sticky {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .sticky-actions {
  position: fixed;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 2;
  }
  .sticky-actions a {
  padding: 23px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  }
  .sticky-actions a:last-child {
  background: var(--color-accent);
  }
}

/* IZAKAYA uses top actions; other pages keep their existing placement. */
@media (max-width: 760px) {
  .has-sticky-top {
    --mobile-action-height: 64px;
    padding-top: calc(var(--mobile-action-height) + env(safe-area-inset-top));
    padding-bottom: 0;
  }

  .has-sticky-top .sticky-actions {
    inset: 0 0 auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: 0;
    border-top: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .has-sticky-top .sticky-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--mobile-action-height);
    padding: 20px 10px;
  }

  .has-sticky-top #main {
    scroll-margin-top: calc(var(--mobile-action-height) + env(safe-area-inset-top) + 16px);
  }

  .has-sticky-top .skip-link:focus {
    top: calc(var(--mobile-action-height) + env(safe-area-inset-top) + 12px);
  }
}

/* Keep IZAKAYA navigation visible; mobile actions sit above the header. */
.has-sticky-top {
  --header-height: 97px;
  --header-top: 0px;
}
.has-sticky-top .site-header {
  position: sticky;
  top: var(--header-top);
  z-index: 5;
  background: var(--color-background);
}
.has-sticky-top #main {
  scroll-margin-top: calc(var(--header-top) + var(--header-height) + 16px);
}
@media (max-width: 760px) {
  .has-sticky-top {
    --header-height: 77px;
    --header-top: calc(var(--mobile-action-height) + 1px + env(safe-area-inset-top));
  }
  .has-sticky-top .sticky-actions {
    z-index: 6;
  }
}
