/*==================================================
  0. 変数とリセット (Variable & Reset)
==================================================*/
:root {
  /* ベースカラー */
  --color-base-light: rgba(247, 243, 237, 1); /* ベースの薄いベージュ */
  --color-base-dark: rgba(232, 221, 209, 1); /* ボックスの濃いベージュ */
  --color-brand-brown: rgba(110, 78, 62, 1); /* ヘッダー/フッターの濃い茶色 */
  --color-brand-accent: rgba(
    209,
    148,
    123,
    1
  ); /* プライマリーボタンのアクセントカラー */

  /* テキストカラー */
  --color-text-dark: rgba(51, 51, 51, 1);
  --color-text-mid: rgba(102, 102, 102, 1);
  --color-text-light: rgba(255, 255, 255, 1);

  /* レイアウト */
  --max-width: 1000px; /* メインコンテンツの最大幅 */
  --spacing-default: 20px;
}

/* 全体のリセットと共通設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: rgba(51, 51, 51, 1);
  line-height: 1.6;
  background-color: rgba(247, 243, 237, 1);
  font-size: 16px;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/*==================================================
  1. 共通レイアウトとタイポグラフィ (Layout & Typography)
==================================================*/
body {
  /* ... 既存の設定はそのまま ... */

  /* 【必須の追加】: 擬似要素の基準点にする */
  position: relative;

  /* 【重要】: 前回までの background-image の設定はすべて削除してください */
  /* background-image: url(...), background-size: ..., background-position: ... は削除 */
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-default);
}

section {
  padding: 60px 0;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

h3 {
  font-size: 1.5rem;
  padding-bottom: 5px;
  margin: 40px 0 20px 0;
  text-align: left;
  border-bottom: 1px solid var(--color-base-dark);
}

.section-description {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-mid);
  margin-bottom: 30px;
}

/* 共通ボタン (Buttons) */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background-color: rgba(209, 148, 123, 1);
  color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(209, 148, 123, 1);
  margin-right: 10px;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 1);
  color: rgba(51, 51, 51, 1);
  border: 1px solid rgba(204, 204, 204, 1);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

/*==================================================
  2. ヘッダー (Header & Navigation)
==================================================*/
.header {
  background-color: rgba(110, 78, 62, 1);
  color: rgba(255, 255, 255, 1);
  padding: 15px var(--spacing-default);
  /* デフォルトのヘッダーの位置と見た目 */
  width: 100%;
  z-index: 1000; /* 他の要素の上に表示されるようにする */
  transition: all 0.3s ease; /* スクロール時の変化を滑らかにする */
  /* 既存の background-color: var(--color-brand-brown); はそのまま */
}
/* スクロール時に付与されるクラスのスタイル */
.header.scrolled {
  position: fixed; /* **画面上部に固定する** */
  top: 0;
  left: 0;

  /* 変化例1: 背景色を少し明るく/濃くする */
  background-color: rgba(93, 67, 53, 1);
  /* 変化例2: 影を付けて、コンテンツの上に浮いているように見せる */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

  /* ヘッダー全体を少しコンパクトにする */
  padding: 10px 0;
}

/* ヘッダーの inner 要素も調整 */
.header.scrolled .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ロゴのサイズを小さくする変化 */
.header.scrolled .logo-link .logo {
  font-size: 1.2rem; /* ロゴを小さくする */
  transition: font-size 0.3s ease;
}

/* ナビゲーションの文字サイズも小さくする変化 */
.header.scrolled .nav a {
  font-size: 0.85rem;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--color-text-light);
  font-weight: 500;
  padding-bottom: 5px;
  transition: opacity 0.3s;
}

/* アクティブなリンク（Menu/Access）のスタイル */
.nav a.current {
  font-weight: bold;
  border-bottom: 2px solid rgba(255, 255, 255, 1);
}

.nav a:hover {
  opacity: 0.8;
}

/*==================================================
  3. コンセプト (Concept Section)
==================================================*/
.concept-section {
  padding: 40px 0;
}

.concept-content {
  display: flex;
  background-color: var(--color-base-dark);
  padding: 30px;
  border-radius: 8px;
  gap: 30px;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.concept-image-box {
  width: 30%;
  min-width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 10px solid rgba(255, 255, 255, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.concept-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-text {
  width: 70%;
}

.concept-text h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 10px;
}

.concept-text p {
  margin-bottom: 20px;
}

.concept-buttons {
  display: flex;
  gap: 10px;
}

/*==================================================
  4. グリッドセクション (Commitment, Menu, Gallery)
==================================================*/

/* Grid 共通設定 */
.commitment-grid,
.menu-grid {
  display: grid;
  gap: 20px;
  margin: 0 auto;
}
.gallery-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-brand-brown);
}
/* 私たちのこだわり */
.commitment-grid {
  grid-template-columns: repeat(3, 1fr);
}

.commitment-item {
  background-color: rgba(232, 221, 209, 1);
  border-radius: 5px;
  overflow: hidden;
  padding-bottom: 10px;
  text-align: center;
}

.commitment-item img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* おすすめメニュー */
.menu-grid {
  grid-template-columns: repeat(3, 1fr);
}

.menu-item {
  display: flex;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(232, 221, 209, 1);
  border-radius: 5px;
  overflow: hidden;
}

.menu-item img {
  /* **追加/修正**：画像を収めるボックスを正方形にする */
  width: 100px;
  height: 100px; /* 適切な高さを設定 (例: 180px) */
  object-fit: cover; /* 画像がボックスに収まるようにトリミングし、縦横比を維持 */
  border-radius: 5px 5px 0 0;
  /* トランジション（ホバーエフェクト用） */
  transition: transform 0.3s ease;
}

.menu-details {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* メニューのテキスト詳細部分 */
.menu-details-full {
  padding: 15px 20px; /* **修正: 上下のパディングを増やしてゆとりを持たせる** */
}

/* メニュー名 */
.menu-details-full .menu-name {
  font-size: 1.25rem; /* **修正: フォントサイズを大きく** */
  font-weight: 700;
  color: rgba(110, 78, 62, 1); /* **修正: ブランドカラーを使って強調** */
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(232, 221, 209, 1); /* メニュー名と価格を区切る線 */
  padding-bottom: 8px;
}

/* 価格 */
.menu-details-full .menu-price {
  font-size: 1.3rem; /* **修正: 価格を最も大きく強調** */
  font-weight: 700;
  color: rgba(
    209,
    148,
    123,
    1
  ); /* **修正: アクセントカラーで価格を際立たせる** */
  margin-top: 5px;
  margin-bottom: 10px;
  display: block; /* 価格を独立させる */
}

/* 説明文 */
.menu-details-full .menu-desc {
  font-size: 0.9rem;
  color: rgba(
    102,
    102,
    102,
    1
  ); /* **修正: 少し薄い色にしてメイン情報と差別化** */
  margin-top: 10px;
  line-height: 1.5;
}
.menu-name {
  font-weight: bold;
}

.menu-price {
  font-size: 0.9rem;
  color: rgba(102, 102, 102, 1);
}

/* ギャラリー */
/*==================================================
  10. ギャラリー (Gallery)
  （画像を正方形にトリミングし、中央に美しく配置する）
==================================================*/

.gallery-grid {
  display: grid;
  /* 3列で均等に配置 */
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-default);
  margin-top: 30px;
}

.gallery-item {
  /* 枠自体を正方形にするための設定 */
  position: relative;
  width: 100%;
  /* padding-top を width と同じ値に設定することで、高さも幅と同じになり正方形になる */
  padding-top: 100%;
  overflow: hidden; /* はみ出した画像を隠す */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  /* 画像をアイテムの枠内に絶対配置し、枠いっぱいに広げる */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 画像をトリミングして枠いっぱいに表示 */
  object-fit: cover;

  display: block;
  transition: transform 0.3s ease-in-out;
}

/* ホバーエフェクト（マウスオーバーで少し拡大し、立体感を出す） */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* フルメニューグリッド内のアイテム */
.menu-item-full {
  background-color: var(--color-text-light);
  border: 1px solid var(--color-base-dark);
  border-radius: 8px;
  overflow: hidden;
  /* 修正: シャドウを強調し、少し浮かび上がらせる */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.menu-item-full:hover {
  /* ホバーでわずかに持ち上がる効果を追加 */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.menu-item-full img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
/* ... 既存の menu-details-full などのスタイル ... */
/*==================================================
  5. アクセス (Access Section)
==================================================*/
.access-section h3 {
  text-align: center;
  border: none;
  margin-top: 0;
}

/* index.html（トップページ）のアクセス情報表示用 */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 10px;
}

.access-info {
  padding: 15px;
}

.access-info p {
  margin-bottom: 8px;
}

/* index.html（トップページ）の地図コンテナ */
.map-container {
  background-color: var(--color-base-dark);
  height: 250px; /* 小さめのサイズを維持 */
  border-radius: 5px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/*==================================================
  6. モーダル (Reservation Modal)
==================================================*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--color-base-light);
  margin: 10vh auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: var(--color-text-dark);
  text-decoration: none;
}

.modal-content h3 {
  text-align: left;
  color: var(--color-brand-brown);
  font-size: 1.5rem;
  margin-bottom: 5px;
  border-bottom: none;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  margin-bottom: 20px;
}

/* フォームのスタイル */
.form-group {
  margin-bottom: 15px;
}

.reservation-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}

.reservation-form input,
.reservation-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--color-text-light);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/*==================================================
  7. FAQ (Simple List Style - Image based)
==================================================*/
.faq-section {
  background: #fff7ef;
  border-radius: 18px;
  max-width: 640px;
  margin: 52px auto;
  padding: 36px 28px 32px 28px;
  box-shadow: 0 4px 17px rgba(180, 154, 123, 0.09);
}

.faq-section h2 {
  color: #906a43;
  margin-bottom: 22px;
  font-size: 1.7em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.faq-list {
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #f1e2d2;
  padding: 18px 0;
}

/* 質問の見出し（枠線なし、画像のようなパディング/色/太字のスタイル） */
.faq-question {
  background: none;
  /* border: 1px solid var(--color-brand-brown); <--- 枠線は無効のままにします */
  color: var(--color-brand-brown);
  text-align: left;
  font-size: 1.06em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  cursor: default;
  padding: 7px 10px; /* パディングは維持 */
  outline: none;
  display: inline-block;
  margin-bottom: 10px;
}

.faq-answer {
  display: block;
  color: #5f4431;
  font-size: 0.98em;
  line-height: 1.7;
  padding: 0 2px 5px 2px;
}

/* アコーディオン機能のためのスタイルは削除 */
.faq-item.active .faq-answer {
  display: block;
}

/* 質問の見出しをタップ可能にする */
.faq-question {
  /* ... 既存のfaq-questionのスタイル ... */
  cursor: pointer; /* クリックできることを示す */
  position: relative;
  padding-right: 30px; /* アイコン分のスペースを確保 */
  width: 100%; /* クリック範囲を広げる */
}

/* 質問の前にアコーディオン用の記号を追加 */
.faq-question::before {
  content: "Q";
  color: rgba(209, 148, 123, 1);
  font-size: 1.2em;
  font-weight: 700;
  margin-right: 10px;
}

/* 質問の右側に開閉アイコンを追加 */
.faq-question::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg); /* デフォルトは下向き */
  font-size: 0.8em;
  color: rgba(110, 78, 62, 1);
  transition: transform 0.3s ease;
}

/* FAQアイテムがアクティブな時のスタイル */
.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg); /* 開いた時は上向きに回転 */
}

/* 回答の初期状態（非表示）とアニメーション設定 */
.faq-answer {
  /* display: block; は JavaScript/CSSで制御するため一旦削除または調整 */
  color: #5f4431;
  font-size: 0.98em;
  line-height: 1.7;
  padding: 0 2px 5px 2px;

  /* アコーディオンの開閉をCSSで制御 */
  max-height: 0; /* 初期状態は高さを0にして非表示 */
  overflow: hidden; /* はみ出たコンテンツを隠す */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* 滑らかなアニメーション */
}

/* アクティブな時（開いている状態） */
.faq-item.active .faq-answer {
  max-height: 200px; /* 回答の最大高さを設定 (コンテンツに合わせて十分な値を設定) */
  padding-top: 10px; /* 質問との間にスペースを設ける */
}
/*==================================================
  8. アクセスページ (Access Page) - New Section
==================================================*/

/* 独立ページのセクション */
.access-page-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 0;
}

/* 大きな地図コンテナ（.map-lg） */
.map-lg {
  height: 400px; /* 高さを高くして地図を大きく見せる */
  margin-bottom: 40px;
  border: 2px solid var(--color-base-dark);
}

/* 詳細情報（表形式） */
.access-info-lg {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(232, 221, 209, 1);
  border-radius: 8px;
  padding: 20px 30px;
}

.access-info-lg h3 {
  text-align: center;
  border-bottom: 2px solid rgba(110, 78, 62, 1);
  color: rgba(110, 78, 62, 1);
  margin: 0 0 20px 0;
  padding-bottom: 10px;
}

.access-info-lg table {
  width: 100%;
  border-collapse: collapse;
}

.access-info-lg th,
.access-info-lg td {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px dotted rgba(232, 221, 209, 1); /* ドット線で区切る */
}

.access-info-lg th {
  width: 30%;
  font-weight: bold;
  color: rgba(102, 102, 102, 1);
  padding-left: 0;
}

.access-info-lg td {
  color: rgba(51, 51, 51, 1);
}

/* テーブルの最後の行は下線を削除 */
.access-info-lg tr:last-child th,
.access-info-lg tr:last-child td {
  border-bottom: none;
}

/*==================================================
  9. コンタクトフォーム (Contact Form) - New Section
==================================================*/
.contact-section {
  /* フォームを配置するセクションの最大幅を制限して中央に寄せます */
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 0;
}

.contact-form {
  background-color: rgba(255, 255, 255, 1); /* 背景を白くして見やすく */
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(232, 221, 209, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* フォームの共通グループ */
.contact-form .form-group {
  margin-bottom: 20px;
}

/* ラベルのスタイル */
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  color: rgba(110, 78, 62, 1); /* ブランドカラーを強調 */
}

/* 必須マークのスタイル */
.contact-form .required {
  color: rgba(204, 51, 51, 1); /* 赤色で必須を強調 */
  font-size: 0.8rem;
  font-weight: normal;
  background-color: rgba(255, 224, 224, 1);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
}

/* 入力フィールド (input, select, textarea) の共通スタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: "Noto Sans JP", sans-serif; /* テキストエリアのフォントを統一 */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(209, 148, 123, 1); /* フォーカス時にアクセントカラー */
  outline: none;
  box-shadow: 0 0 5px rgba(209, 148, 123, 0.5);
}

/* テキストエリアのサイズ調整 */
.contact-form textarea {
  resize: vertical; /* 縦方向のみリサイズ可能 */
}

/* 送信ボタンのスタイル（既存の .btn-primary を再利用） */
.contact-form .btn-submit {
  margin-top: 25px;
  font-size: 1.1rem;
  padding: 12px;
}

/* レスポンシブ調整（必要に応じて） */
@media (max-width: 640px) {
  .contact-form {
    padding: 20px;
    margin: 0 var(--spacing-default);
  }
}

/*==================================================
  10. アニメーション (Animation) - New Section
==================================================*/

/* アニメーションの初期状態（非表示）*/
.commitment-item,
.menu-item,
.menu-item-full,
.gallery-item {
  opacity: 0;
  transform: translateY(20px); /* 下から少し移動するアニメーション */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーションの時間と種類 */
}

/* JavaScriptで付与される表示状態 */
.commitment-item.is-show,
.menu-item.is-show,
.menu-item-full.is-show,
.gallery-item.is-show {
  opacity: 1; /* 不透明にして表示 */
  transform: translateY(0); /* 元の位置に戻す */
}

/* 要素の表示に時間差を設けて、動きに変化をつける（オプション） */
.menu-item:nth-child(2),
.menu-item-full:nth-child(2),
.gallery-item:nth-child(2) {
  transition-delay: 0.1s;
}

.menu-item:nth-child(3),
.menu-item-full:nth-child(3),
.gallery-item:nth-child(3) {
  transition-delay: 0.2s;
}
/*==================================================
  10. フッター (Footer)
==================================================*/
.footer {
  background-color: rgba(110, 78, 62, 1);
  color: rgba(255, 255, 255, 1);
  padding: 20px var(--spacing-default);
  margin-top: 50px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-logo {
  font-weight: bold;
}

.footer-links a {
  margin-left: 15px;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.copyright {
  opacity: 0.7;
}

/*==================================================
  11. レスポンシブ (Responsive Design)
==================================================*/
@media (max-width: 768px) {
  /* ヘッダー */
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .nav ul {
    justify-content: center;
  }

  /* コンセプト */
  .concept-content {
    flex-direction: column;
    text-align: center;
  }
  .concept-image-box,
  .concept-text {
    width: 100%;
  }
  .concept-text h2 {
    text-align: center;
  }

  /* グリッドレイアウト */
  .commitment-grid,
  .menu-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* アクセス */
  .access-content {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 200px;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* グリッドレイアウト */
  .commitment-grid,
  .menu-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  /* ... 既存のスタイル ... */

  /* アクセス */
  .access-content {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 200px;
  }
  /* 独立したアクセスページの地図も縮小 */
  .map-lg {
    height: 300px;
  }
}
/*==================================================
  12. モーダル (Reservation Modal) 
==================================================*/
.modal {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding-top: 50px;
}

.modal-content {
  background-color: rgba(247, 243, 237, 1);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  animation: modalopen 0.4s;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  color: rgba(170, 170, 170, 1);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.close-button:hover,
.close-button:focus {
  color: rgba(51, 51, 51, 1);
  text-decoration: none;
  cursor: pointer;
}

/*==================================================
  13. サイド背景画像と透明度 (Side Background Images)
==================================================*/

/* --------------------------------------
 * 共通設定（左右共通）
 * -------------------------------------- */
body {
  /* position: relative; は body の既存のスタイルに設定されていることを確認 */
}

body::before,
body::after {
  content: "";
  display: block;
  position: fixed; /* 画面に固定 */
  top: 0;
  height: 100vh; /* 画面いっぱいの高さ */
  z-index: -1; /* コンテンツの下に隠す */
  pointer-events: none; /* クリックや選択を無効化 */
  background-size: cover; /* 画像を覆うように拡大 */
  background-repeat: no-repeat;
}

/* --------------------------------------
 * 左側の画像 (::before) - 例: コーヒー豆のクローズアップ
 * -------------------------------------- */
body::before {
  left: 0;
  /* コンテンツ幅の外側（左側の余白）の幅を計算 */
  width: calc(50% - (var(--max-width) / 2));
  background-position: 10% center; /* 画像を左端に寄せる */

  /* 【左側の画像パスと透明度】 */
  background-image: url("./assets/side_image_left.jpg");
  opacity: 0.3; /* 例: 20%の透明度 */
}

/* --------------------------------------
 * 右側の画像 (::after) - 例: コーヒーを飲む人
 * -------------------------------------- */
body::after {
  right: 0;
  /* コンテンツ幅の外側（右側の余白）の幅を計算 */
  width: calc(50% - (var(--max-width) / 2));
  background-position: 70% center; /* 画像を右端に寄せる */

  /* 【右側の画像パスと透明度】 */
  background-image: url("./assets/side_image_right.jpg");
  opacity: 0.4; /* 例: 40%の透明度 (左と変えています) */
}

/* (オプション) スマートフォンなど画面幅が狭い場合はサイド画像を非表示にする */
@media (max-width: 1040px) {
  /* コンテンツ最大幅1000px + 余白20px x 2 を考慮 */
  body::before,
  body::after {
    display: none;
  }
}
/* ギャラリー拡大画像用のスタイル */
#galleryModal .modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px; /* 最大幅を制限 */
    height: auto;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* アニメーション */
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* 閉じるボタン */
#galleryModal .close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

#galleryModal .close-button:hover,
#galleryModal .close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ズームインアニメーション */
@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* レスポンシブ対応 */
@media only screen and (max-width: 700px) {
    #galleryModal .modal-content {
        width: 100%;
    }
}
/* 閉じるボタン（既存）
#galleryModal .close-button { ... } */

/* 【追加】モーダル内のナビゲーションボタンのスタイル */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 2.5rem; /* 大きめの矢印 */
    z-index: 1002; /* モーダルコンテンツより手前 */
    transition: background 0.3s, opacity 0.3s;
    border-radius: 50%; /* 丸いボタン */
    line-height: 1; /* 縦方向のズレを解消 */
}

.modal-nav-btn:hover {
    background: var(--color-brand-accent);
}

.modal-nav-btn:disabled {
    opacity: 0.3; /* 最初と最後の画像では薄く表示 */
    cursor: default;
}

/* 左右の位置調整 */
.prev-nav-btn {
    left: 20px;
}

.next-nav-btn {
    right: 20px;
}

/* レスポンシブ: 小さい画面ではボタンを小さく/端に寄せる */
@media only screen and (max-width: 700px) {
    .modal-nav-btn {
        font-size: 2rem;
        padding: 5px 10px;
    }
    .prev-nav-btn {
        left: 5px;
    }
    .next-nav-btn {
        right: 5px;
    }
}