@font-face {
  font-family: 'KoushoFont', 'KoushoFont';
  src: url('SawarabiGothic-Regular.ttf') format('truetype');
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'MS Mincho', 'Hiragino Mincho Pro', '游明朝', 'Source Han Serif', serif;
  background-repeat: repeat;
  background-size: auto;
  color: #f0f0f0;
  background-color: #000000;
  background-image: url('fabric-of-squares.png');
  background-repeat: repeat;
  background-size: auto;
}

section {
  position: relative;
  text-align: center;
  color: white;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hamburger {
  display: none; /* Hidden by default on PC */
  font-size: 2em;
  color: #FFD700;
  padding: 1em;
  cursor: pointer;
  z-index: 1001;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(to right, #000000, #1c1c1c);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center; /* Center nav-links on PC */
  background: linear-gradient(to right, #000000, #1c1c1c);
  border-bottom: 2px solid #444;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  height: auto; /* Allow nav to adjust height based on content */
  align-items: center; /* Vertically center items in nav */
}

nav .nav-links a {
  color: #f5f5f5;
  text-align: center;
  padding: 1em;
  text-decoration: none;
  border-left: 1px solid #FFD700;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  transform: translateY(0);
}

nav .nav-links a:first-child {
  border-left: none;
}

nav .nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid #FFD700;
  transform: translateY(-2px);
}


section h2,
section p {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: inline-block;
  padding: 1em;
  margin: 1em auto;
}

.menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1em 0;
  max-width: 600px;
  margin: auto;
}

footer {
  background-color: #f0f0f0;
  color: #333;
  text-align: center;
  padding: 1em;
}

.section-title {
  font-size: 3.6em;
  font-family: 'MS Mincho', serif;
  color: #ffffff;
  margin: 1.5em 0 0.5em 0;
  text-align: center;
  border-top: 2px solid #FFD700;
  padding-top: 0.5em;
}

.course-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 1em;
}

.course-box {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2em 1.4em;
  border-radius: 12px;
  width: 360px; /* restaurant_index.htmlの元々の定義に合わせる */
  color: #fff;
}

.course-box h3 {
  text-align: center;
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 0.5em;
}

.course-box p {
  margin: 0.3em 0;
}


.section-content {
  background-color: transparent;
  padding: 1.5em;
  border-radius: 12px;
  margin: 0.5em auto;
  color: #ffffff;
  max-width: 1000px;
}

.header-text-box {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 1em 2em;
  display: inline-block;
  border-radius: 8px;
  margin: 0 auto;
}

.fixed-phone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e0bf00ac;
  color: #fff;
  padding: 0.8em 1.2em;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

/* セクション上部にナビゲーションの高さ分の余白を確保 */
.section-anchor {
  position: relative;
  top: -60px;
}

/* ドリンク2列レイアウト */
.drink-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  flex-wrap: wrap;
  align-items: flex-start;
}
.drink-columns h3 {
  grid-column: span 2;
  margin-top: 1em;
  font-size: 1.2em;
  color: #222;
}

/* ヒーロー動画上のタイトル */
.overlay-title {
  position: absolute;
  top: 110px;
  left: 30px;
  font-size: 9em;
  font-family: 'KoushoFont', 'MS Mincho', serif;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 0 3px #000,
    0 0 10px #000,
    2px 2px 2px #000,
    -2px -2px 2px #000;
  z-index: 10;
  pointer-events: none;
}

/* 表示時にアニメーションでフェードイン */
.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 当店のこだわり セクション === */
/* 各こだわり項目を囲むボックス */
.section-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* デスクトップで2列表示 */
  gap: 1em;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
  align-items: start;
}
.feature-item { /* 当店のこだわり各項目 */
  background-color: #000000;
  padding: 1em;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 200px; /* 高さを統一（必要に応じて調整） */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
/* 1. 厳選された最高級の肉（最初のボックス） */
.feature-item:first-child {
  grid-column: span 2;
  max-width: 800px; /* 横長表示の最大幅 */
  margin: 0 auto; /* 中央寄せ */
}
/* 当店のこだわり各項目のテキスト */
.feature-item p {
  font-size: 1.15em;
  line-height: 1.6;
  color: #f0f0f0;
  margin: 0;
  padding: 0.2em 0;
}
.feature-item p strong {
  font-size: 1.15em;
}
/* 当店でしか味わえない～ */
.commitment-closing-text {
  background-color: transparent;
  padding: 1em 2em;
  border: none;
  font-size: 1.1em;
  line-height: 1.8;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  margin: 1em auto 1em;
  box-sizing: border-box;
}


/* === コース セクション === */
.course-list {
  display: grid;
  grid-template-columns: 1fr; /* 1列表示 */
  gap: 0.3em 1em;
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0 0;
  text-align: left;
}
.course-list li {
  font-size: 1.2em; /* 文字の大きさ */
}
.course-list li::before {
  content: "・";
  margin-right: 0.4em;
}

/* 飲み放題情報コンテナ */
.course-section-drink-info {
  margin-top: 2em;
  margin-bottom: 2em;
  padding: 0;
  background-color: transparent; /* コンテナの背景は透明 */
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: none;
}
/* 飲み放題タイトル「全コース ビール付き〜」 */
.drink-info-title {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.2em;
  color: #FFD700;
  padding: 0.5em 1em;
  background-color: transparent; /* 背景を透明にする */
}
/* 飲み放題リスト全体 */
.drink-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列表示 */
  gap: 0.5em 2em;
  list-style: none;
  padding: 1em 1em;
  margin: 0;
  font-size: 1em;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.7); /* リストの背景は半透明の黒 */
  border-radius: 10px;
  color: #ffffff;
  line-height: 1.8;
  
}
.drink-list li {
  padding-left: 1em;
  position: relative;
  line-height: 1.2; /* 品書きテキストの行間を詰める */
}
.drink-list li::before {
  content: "・";
  color: #FFD700; /* 記号の色を黄にする */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  line-height: 1;
}
/* === 単品 セクション & ドリンクセクション（共通スタイル） === */
#single .section-box-grid, #drink .section-box-grid { /* ドリンクセクションも適用 */
  grid-auto-rows: minmax(auto, 1fr);
  align-items: stretch;
}
.section-box-grid .menu-category {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.0em; /* 枠内の全体的な余白 */
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  width: 400px; /* 左右2列で表示されることを考慮した幅の目安 */
  max-width: 400px; /* 各ボックスの最大幅を統一 */
  min-width: 180px; /* 最低幅を設定して、小さくなりすぎないように */
}
.section-box-grid .menu-category h3 {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 1em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5em;
  text-align: center;
}
/* 各メニューカテゴリー内のリスト（ul） */
.menu-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.4; /* 全体の行間を調整 */
}
/* 各メニュー項目（li） */
.menu-items-list li {
  font-size: 1.1em; /* 基本の文字サイズ */
  color: #ffffff;
  margin-bottom: 0.2em; /* 各行の下マージン */
  position: relative;
  text-align: left; /* liのテキストアラインメントは左寄せに */
  overflow-wrap: break-word; /* 長い単語の改行 */
  line-height: 1.2; /* 品書きテキストの行間を詰める */

  display: flex; /* liをFlexコンテナにする */
  justify-content: space-between; /* メニュー名と価格を両端に配置 */
  align-items: flex-start; /* 縦方向の開始位置に揃える */
  padding-left: 0; /* Remove bullet point indentation */
}
/* 箇条書きの点 */
.menu-items-list li::before {
  content: none; /* Remove bullet point */
}
/* メニュー名部分 */
.menu-items-list li .menu-name { /* 新しく定義 */
  flex-grow: 1; /* 残りのスペースを埋める */
  text-align: left; /* 左揃え */
}
/* 価格部分 */
.menu-items-list li .price {
  font-weight: bold;
  color: #FFD700;
  margin-left: 1em; /* メニュー名と価格の間のスペースを広げる */
  white-space: nowrap; /* 価格が途中で改行されないように */
  flex-shrink: 0; /* 価格が縮まないように */
}
/* 説明文部分 */
.menu-items-list li .description {
  display: block;
  font-size: 0.85em;
  color: #cccccc;
  line-height: 1.3;
  margin-top: 0.2em;
  margin-left: 0; /* Align with other text when bullet is removed */
  flex-basis: 100%; /* New line and full width */
}


/* === お店の雰囲気 セクション（横並び3枚表示用） === */
.atmosphere-grid {
  display: flex;
  flex-wrap: wrap; /* 小画面で折り返す */
  justify-content: center; /* 中央寄せ */
  gap: 20px; /* 写真間の余白 */
  margin-top: 20px;
  max-width: 1000px; /* 全体の最大幅を調整 */
  margin-left: auto;
  margin-right: auto;
}

.atmosphere-card {
  position: relative;
  width: calc(33.333% - 20px); /* 3枚横並びの基本幅 */
  max-width: 300px; /* 個々のカードの最大幅 */
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atmosphere-card img {
  display: block;
  width: 100%;
  height: 200px; /* 画像の高さを固定して揃える */
  object-fit: cover; /* 画像が枠に合わせて切り取られるように */
  border-radius: 16px;
}

.atmosphere-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* お店の雰囲気写真の説明文のスタイルを分離 */
.atmosphere-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto; /* 説明文の高さは内容に合わせる */
  min-height: 25%; /* 最小高さを設定 */
  background: rgba(255, 255, 255, 0.75);
  color: #000;
  font-size: 13px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* manual-menu-item: 手動調整が必要なメニュー項目全体を囲む */
.manual-menu-item {
  text-align: left; /* 左揃えを保証 */
  margin-bottom: 1.5em; /* 項目間の余白 */
  padding-left: 0; /* インデントなし */
}

/* manual-menu-item 内のメニュー名 */
.manual-menu-item .menu-name {
  font-size: 1.1em;
  color: #ffffff;
  display: block; /* メニュー名を常に新しい行に */
}

/* manual-menu-item 内の金額（複数価格対応のため inline-block） */
.manual-menu-item .price {
  font-weight: bold;
  color: #FFD700;
  font-size: 1.1em;
  display: inline-block; /* / (3枚) も含め、横並びにするため */
  white-space: nowrap; /* 金額グループの改行を防ぐ */
  margin-top: 0.2em; /* メニュー名との間隔 */
}

/* manual-description-line: 手動で配置する説明書き */
.manual-description-line {
  display: block; /* 常に新しい行に表示 */
  font-size: 0.85em; /* 標準の説明文と同じフォントサイズ */
  color: #cccccc; /* 標準の説明文と同じ色 */
  line-height: 1.3;
  margin-top: 0.5em; /* 上の項目からの余白 */
  margin-left: 0; /* インデントなし */
  text-align: left; /* 左揃え */
}
/* === お店の雰囲気 セクション（横並び3枚表示用） === */
/* === お店の雰囲気 セクション（横並び表示・連続ループ） === */

/*
  CSS変数を使って、画面サイズごとにカードの大きさや移動距離を定義します。
  これにより、PCでもスマホでも同じアニメーションを適用できます。
*/
:root {
  --card-width: 360px;
  --card-height: 240px;
  --gap: 40px;
  /* アニメーションで移動する距離を計算 */
  --scroll-distance: calc(-3 * (var(--card-width) + var(--gap)));
  /* アニメーションさせる全体の幅を計算 */
  --grid-width: calc(6 * (var(--card-width) + var(--gap)));
}

/* === お店の雰囲気 セクション（ループスライダー） === */

/* 横スクロールアニメーションの定義 */
@keyframes loop-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* スライダー全体のコンテナ */
.loop-slider {
  display: flex;
  width: 100%;
  overflow: hidden; /* はみ出した部分は隠します */
  margin: 40px 0;
}

/* スクロールするリスト（ul）のスタイル */
.loop-slider ul {
  display: flex; /* リスト項目を横並びに */
  flex-shrink: 0;
  padding-left: 0;
  margin: 0;
  animation: loop-scroll 40s linear infinite;
}

/* 各画像アイテム（li）のスタイル */
.loop-slider li {
  list-style: none;
  width: 400px; /* カード1枚の幅 */
  margin: 0 15px; /* カード間の余白 */
  /* クリック時に他の要素と重なるため、上下に余白を設ける */
  padding: 20px 0;
}

/* リンク（a）のスタイル */
.loop-slider li a {
  display: block;
  text-decoration: none;
  color: #f0f0f0;
  text-align: center;
  position: relative; /* z-indexとtransformの基準にする */
  transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out; /* 変形と影を滑らかに */
}

/*
 * ▼▼▼ 変更箇所 ▼▼▼
 * クリックでフォーカスが当たった時に、リンク要素全体を拡大して浮き上がらせる。
 * マウスが乗っても停止する記述は削除しました。
 */
.loop-slider li a:focus {
  transform: scale(1.2); /* 1.2倍に拡大 */
  z-index: 10; /* 他の要素より手前に表示 */
  outline: none; /* フォーカス時の青い枠線を消す */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* 影を付けて立体感を出す */
  border-radius: 10px; /* 影の形を整える */
  background: #1c1c1c; /* 背景色を追加して下の要素が透けないように */
}

/* 画像（img）のスタイル */
.loop-slider li img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* 説明文（span）のスタイル */
.loop-slider li span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 15px 15px; /* 説明文の余白を調整 */
}


/* === 単品・ドリンクメニューのレイアウト調整（柔軟な高さ） === */

/*
 * 1. グリッドの配置設定を変更します。
 * 'align-items: start' にすることで、同じ行にあるボックスの高さが
 * それぞれのコンテンツ量に応じて柔軟に変わるようになります。
 */
#drink .section-box-grid,
#single .section-box-grid {
  align-items:baseline; /* 高さを揃えず、各ボックスを上端に配置 */
   row-gap: 0.3em; /* 上下のボックス間の間隔を狭める */
}

/*
 * 2. 単品・ドリンクメニューの各ボックスのスタイルを調整します。
 * 固定の高さをやめ、コンテンツに応じた柔軟な高さに戻します。
 */
#drink .section-box-grid .menu-category,
#single .section-box-grid .menu-category {
  height: auto; /* 固定の高さを解除し、自動の高さに */
  min-height: 200px; /* ボックスの最小の高さを280pxに設定 */
  padding: 1.0em 1.0em; /* 内側の余白を調整 */

  /* flexboxの設定（コンテンツは上揃え）*/
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/*
 * 3. スクロール関連のスタイルをリセットします。
 * ボックスの高さが内容に応じて変わるため、スクロールは不要になります。
 */
#drink .section-box-grid .menu-category .menu-items-list,
#single .section-box-grid .menu-category .menu-items-list {
  overflow-y: visible; /* スクロールを解除 */
  flex-grow: 0;        /* 伸びる設定を解除 */
  padding-right: 0;    /* スクロールバー用の余白を削除 */
}

/* スクロールバーのスタイル指定も不要なため削除します */
#drink .section-box-grid .menu-category .menu-items-list::-webkit-scrollbar,
#single .section-box-grid .menu-category .menu-items-list::-webkit-scrollbar {
  display: none;
}

/* === 単品・ドリンクメニューのセクション自体の余白を調整 === */

/*
 * 単品・ドリンクのセクションに設定されている最小の高さを解除し、
 * 中のコンテンツ（メニューボックス）の高さに合うように自動調整します。
 */
#single,
#drink {
  min-height: auto; /* 最小の高さを解除 */
  justify-content: flex-start; /* セクション内のコンテンツを上揃えに配置 */
  padding-bottom: 1em; /* セクションの下部に適切な余白を設ける */
}

/*
 * 単品・ドリンクメニューのセクション内にある.section-contentの余白を調整します。
 */
#single .section-content,
#drink .section-content {
  padding: 1em; /* パディングを削減*/
  margin: 0.2em auto; /* マージンを削減*/
}
.menu-category img {
  width: 70%;         /* 親要素の幅の70%に設定 */
  max-width: 100%;    /* 親要素の100%を超えないようにする（はみ出し防止） */
  height: auto;       /* 縦横比を維持して高さを自動調整 */
  display: block;     /* ブロック要素として扱い、前後の要素と改行する */
  margin: 0 auto 1em; /* 上下のマージンを調整し、画像を水平方向の中央に配置 */
  border-radius: 8px; /* 角の丸みの半径を調整 (例: 8px, 10px, 50%などで円形にも) */
}

/* ジャパニーズウイスキーのメニューボックス（ID指定）のスタイル調整 */
#japanese-whisky-category {
  background-color: transparent; /* 背景を透明にする */
  border: none;                /* 枠線をなくす */
}


.price-note {
  display: block;
  margin-top: auto;
  margin-bottom: 0.5em;
  margin-right: 1.5em;
  font-size: 0.8em;
  color: #cccccc;
  background: transparent;
  text-align: right;
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.img-modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.img-modal-close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
}

.img-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 0.5em;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
}

.img-modal-nav.prev {
  left: 20px;
}
.img-modal-nav.next {
  right: 20px;
}