/* ==========================================================================
   ヘッダー & ナビゲーション

   対象: 画面上部の固定ヘッダー、ナビリンク、予約/CONTACTボタン、
         ハンバーガーメニュー（モバイル時）
   関連HTML: header.php / src/includes/_header.html
   ブレークポイント: 1024px以下 → モバイル表示、640px以下 → さらに縮小
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  flex-shrink: 0;
  margin: -2rem 0;
}

.logo a {
  display: block;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* Navigation List */
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-family: var(--font-english);
  text-transform: uppercase;
  color: var(--color-text-main);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-list a:hover {
  opacity: 0.7;
}

/* Reservation Button */
.btn-reservation {
  padding: 0.5rem 1.5rem;
  border: 1px solid #333;
  background: #333 !important;
  color: #fff !important;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-reservation:hover {
  background: #fff !important;
  color: #333 !important;
  opacity: 1;
}

/* Contact Button */
.btn-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  padding: 0.5rem 1.5rem;
  border: 1px solid #333;
  background: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: #333;
  color: #f8f8f8 !important;
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .header-container {
    padding: 0.8rem 1rem;
  }

  .logo img {
    height: 45px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    padding: 5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .nav-list a {
    font-size: 1rem;
  }

  .nav-list .btn-reservation,
  .nav-list .btn-contact {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
  }

  .nav-list .btn-reservation {
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #333;
  }

  .nav-list .btn-contact {
    background: transparent;
    color: #333 !important;
    border: 1px solid #333;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 3px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.6rem 0.8rem;
  }

  .logo img {
    height: 40px;
  }

  .nav {
    width: 100%;
    max-width: none;
    padding: 4rem 1.5rem;
  }

  .nav-list {
    gap: 1.5rem;
  }

  .nav-list a {
    font-size: 1rem;
  }
}

/* M5: ナビ日本語サブラベル */
.nav-label-ja {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-japanese);
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.6;
  line-height: 1.2;
  margin-bottom: 1px;
}

.btn-reservation .nav-label-ja,
.btn-contact .nav-label-ja {
  display: none;
}

@media (max-width: 1024px) {
  .nav-label-ja {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .btn-reservation .nav-label-ja,
  .btn-contact .nav-label-ja {
    display: block;
  }
}

/* Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* M1: スマホ追従型固定CTA */
.fixed-cta {
  display: none;
}

@media (max-width: 1024px) {
  .fixed-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: #333;
    padding: 0;
  }

  .fixed-cta__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-english);
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.3s ease;
  }

  .fixed-cta__link:hover {
    background: #555;
  }

  /* 固定CTAの高さ分、フッター下部にパディング追加 */
  body {
    padding-bottom: 52px;
  }
}
