@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- デザインシステム & 変数 --- */
:root {
  --bg-primary: #101622;     /* 深みのあるダークマッドブルー */
  --bg-secondary: #1a2234;   /* 中間のマッドブルー */
  --bg-tertiary: #242f48;    /* 明るめのマッドブルー */
  --accent: #e67e22;         /* 渋みと温かみのあるアースオレンジ */
  --accent-hover: #ff9f43;   /* ソフトなライトオレンジ */
  --text-primary: #ffffff;
  --text-secondary: #c2c9d6; /* ブルーグレーがかったテキスト */
  --text-muted: #727f96;
  --border-color: rgba(230, 126, 34, 0.25);
  --border-color-hover: rgba(230, 126, 34, 0.6);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* --- リセット & ベーススタイル --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* --- タイポグラフィ --- */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.05em;
}

p, span, li, a, button {
  font-family: var(--font-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- ナビゲーションヘッダー --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  background: linear-gradient(to bottom, rgba(230, 126, 34, 0.85) 0%, rgba(230, 126, 34, 0) 100%);
}

header.scrolled {
  padding: 1rem 10%;
  background: rgba(230, 126, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  transition: var(--transition-smooth);
  object-fit: cover;
}

.logo-container:hover .logo {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-primary); /* オレンジ背景の上で濃いマッドブルーに変化させて際立たせる */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bg-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* モバイルメニュー用ハンバーガー */
.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px;
  transition: var(--transition-smooth);
}

/* --- フッター --- */
footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 10% 2rem;
  color: var(--text-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-info {
  text-align: right;
  font-size: 0.9rem;
}

.footer-info p {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* --- ヒーロー・メインビジュアル (index.html) --- */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 10;
  padding: 0 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.btn-premium {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-premium:hover {
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.btn-premium:hover::before {
  left: 0;
}

/* --- コンテンツ共通セクション --- */
.page-header {
  padding: 12rem 10% 4rem;
  text-align: center;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 3rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--accent);
  margin: 1rem auto 0;
}

.page-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.section-container {
  padding: 5rem 10%;
  background-color: var(--bg-primary);
}

/* --- メニューページ (menu.html) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.menu-category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.menu-category-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.menu-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

.menu-category-card:hover::before {
  transform: scaleX(1);
}

.category-title-wrapper {
  margin-bottom: 2rem;
  text-align: center;
}

.category-title {
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.menu-category-card:hover .category-icon {
  background-color: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  position: relative;
}

.menu-item-name {
  font-size: 1.05rem;
  font-weight: 500;
  background-color: var(--bg-secondary);
  padding-right: 0.5rem;
  z-index: 10;
}

.menu-item-leader {
  flex-grow: 1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
  height: 1px;
}

.menu-item-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--bg-secondary);
  padding-left: 0.5rem;
  z-index: 10;
}

.menu-item-price::before {
  content: '¥';
  font-size: 0.9rem;
  margin-right: 2px;
  font-weight: 400;
}

/* --- ギャラリーページ (gallery.html) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 幾つかの画像サイズを変則にしてモダンなモザイク感を出す */
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-info-text {
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-info-text {
  transform: translateY(0);
}

.gallery-info-text h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.gallery-info-text p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* ギャラリーモーダル (Lightbox) */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.98);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  position: absolute;
  bottom: -45px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2010;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* --- アクセスページ (access.html) --- */
.access-flex {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.access-info-panel {
  flex: 1 1 350px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 3rem;
}

.info-group {
  margin-bottom: 2.5rem;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-primary);
}

.info-value.phone {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.map-container {
  flex: 1.5 1 500px;
  height: 480px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* 地図本来の明るい（白い）背景表示にするため、ダークフィルタは無効化 */
}

/* --- スクロールアニメーション用 --- */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- アニメーションキーフレーム --- */
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- モバイルレスポンシブ対応 --- */
@media screen and (max-width: 968px) {
  header {
    padding: 1.5rem 5%;
  }
  
  header.scrolled {
    padding: 1rem 5%;
  }

  .nav-links {
    position: fixed;
    right: 0px;
    top: 0px;
    height: 100vh;
    width: 60%;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .burger {
    display: block;
  }

  /* ハンバーガーメニュー切り替えアニメーション */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 3rem;
  }

  .page-header {
    padding: 10rem 5% 3rem;
  }

  .section-container {
    padding: 4rem 5%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item.wide {
    grid-column: span 1;
  }
  
  .gallery-item.tall {
    grid-row: span 1;
  }

  .access-flex {
    gap: 2rem;
  }
  
  .map-container {
    height: 350px;
  }
}
