/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(74, 55, 40, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay .menu-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FAF8F5;
  padding: 1rem 2rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s ease;
  font-family: 'Noto Serif JP', serif;
}

.mobile-menu-overlay .menu-link:hover {
  color: #C4A574;
}

.mobile-menu-overlay .menu-divider {
  width: 40px;
  height: 2px;
  background: #C4A574;
  margin: 0.5rem auto;
  opacity: 0;
  transform: scaleX(0);
}

/* ハンバーガーボタン */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: #4A3728;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span {
  background: #FAF8F5;
}

.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* スクロール済みヘッダーのハンバーガー色 */
.header-scrolled .hamburger span {
  background: #4A3728;
}

.hamburger.is-active span {
  background: #FAF8F5 !important;
}

/* デスクトップナビリンクのホバーエフェクト */
.nav-link {
  position: relative;
  color: #4A3728;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C4A574;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #8B6F47;
}

.nav-link:hover::after {
  width: 100%;
}

/* 透過ヘッダー時のナビリンク色 */
.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header-transparent .nav-link:hover {
  color: #C4A574;
}

.header-transparent .hamburger span {
  background: #FAF8F5;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}
