/* =========================
   header base
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(5px);
  z-index: 1000;
  transition: transform 0.25s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height, 80px);
}

/* =========================
   logo
========================= */

.logo img {
  display: block;
  height: var(--header-height, 80px);
  width: auto;
}

/* =========================
   nav (PC)
========================= */

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;

  max-width: 100%;
  margin: 0 auto;
  padding-right: 24px;
}

.nav {
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text, #403234);
}

.nav a.active {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  line-height: 1;

  background: linear-gradient(
    90deg,
    var(--color-brand-yellow, #F4CD1F) 0%,
    var(--color-brand-red, #E13935) 50%,
    var(--color-brand-wine, #86263E) 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 1px;
  height: 30px;
  background-color: var(--color-text, #403234);
  margin: 0 12px;
}

/* =========================
   hamburger (PCでは非表示)
========================= */

.hamburger {
  display: none;
}

/* =========================
   SP layout
========================= */

@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 24px;

    width: 32px;
    height: 24px;

    background: none;
    border: none;
    cursor: pointer;

    align-items: center;
    justify-content: center;
  }

  .hamburger-icon {
    font-size: 32px;
    line-height: 1;
    color: var(--color-text, #403234);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  .icon-close {
    display: none;
  }

  .site-header.is-menu-open .icon-menu {
    display: none;
  }

  .site-header.is-menu-open .icon-close {
    display: block;
  }

  /* PC用ナビを隠す → スライドメニュー化 */
  .nav-wrapper {
    position: fixed;
    top: var(--header-height, 80px);
    right: 0;

    width: 100%;
    height: calc(100vh - var(--header-height, 80px));

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  /* JSで is-open を付けたら表示 */
  .nav-wrapper.is-open {
    transform: translateX(0);
  }

  .nav {
    flex-direction: column;
    gap: 32px;
    padding-top: var(--header-height, 80px);
  }

  .nav a {
    font-size: 24px;
  }

  .divider {
    display: none;
  }
}
