/* ===== Navigation ===== */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(26,22,18,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

#nav.hidden {
  transform: translateY(-100%);
}

/* ── ロゴ ── */
.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  line-height: 1.3;
  transition: color 0.3s;
}

.nav-logo-sub {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  margin-top: 2px;
}

/* ── ナビリンク ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.85);
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

/* ── 言語切替 ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 32px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(245,240,232,0.5);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}

.lang-btn.active,
.lang-btn:hover { color: var(--gold-light); }

.lang-divider {
  color: rgba(245,240,232,0.25);
  font-size: 0.65rem;
}

/* ── ハンバーガーメニュー ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  margin-left: 20px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── モバイルメニュー ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26,22,18,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text-on-dark);
}

.mobile-menu .lang-switcher {
  margin-left: 0;
  margin-top: 16px;
}

@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
