@charset "UTF-8";

/* ========================================================
   1. メニューページ全体のベース設定
======================================================== */
.menu-page {
  background-color: #faf9f5; /* 温かみのあるオフホワイト（生成り） */
  color: #1a1a1a;
}

/* ========================================================
   2. 全面黒板セクション（縦1列・中央揃え・余白改善版）
======================================================== */
.blackboard-section {
  width: 100%;
  background-color: #faf9f5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px 60px;
  position: relative;
  box-sizing: border-box;
}

/* 木枠付き黒板：縦横比を保ちつつ、十分な高さを確保 */
.blackboard-frame {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1 / 1.25; /* 縦長比率で黒板の上下キャンバスを自然に確保 */
  min-height: 720px;     /* PCでの最小高さを担保 */
  background-image: url('../images/blackboard.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 黒板内コンテンツ：上下にしっかりスペースを空けて等間隔に配置 */
.chalk-board {
  width: 100%;
  height: 100%;
  padding: 120px 40px 30px; /* 木枠から文字を離すセーフエリア */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上部・中央・下部を均等に離す */
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* 上部日付ヘッダー */
.chalk-header {
  width: 100%;
  text-align: center;
}

.chalk-sub {
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: #eed69b;
  display: block;
  margin-bottom: 0.3rem;
}

.chalk-title {
  font-family: var(--font-chalk, cursive);
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* 中央：ポラロイド ＋ 料理名・説明（上下の空きスペースを均等に吸い取る） */
.obanzai-featured-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  /*margin: auto 0; /* ★これが最重要：上下の余白を均等に確保して中央にゆったり浮き上がらせる */
  margin: 10px 0 20px;
}

.polaroid-card {
  position: relative;
  background-color: #fdfbf7;
  padding: 8px 8px 12px 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.3);
  width: 280px !important;
  max-width: 60vw;
  flex-shrink: 0;
  cursor: pointer; /* ポインターカーソルを表示 */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid-card:hover {
  transform: translateY(-4px) scale(1.02); /* ホバー時に軽く浮き上がる演出 */
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.75), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 30px;
  background-color: rgba(235, 230, 218, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(1px);
}

.polaroid-img-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #242424;
  border-radius: 2px;
}

/* ポラロイド内の画像（ここが重要：枠からはみ出さないよう100%に固定） */
.polaroid-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.polaroid-img-wrap img.is-loaded {
  opacity: 1;
}

.polaroid-caption {
  font-family: var(--font-chalk, cursive);
  font-size: 1.05rem;
  color: #2b2b2b;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* 中央料理テキスト */
.featured-chalk-info {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

/* 各料理ブロック */
.obanzai-item-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.featured-dish-name {
  font-family: var(--font-chalk, cursive);
  font-size: 1.65rem;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.featured-dish-desc {
  font-family: var(--font-chalk, cursive);
  font-size: 1.1rem;
  color: #eed69b;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(238, 214, 155, 0.2);
}

/* 料理間の仕切り線（重複を解消） */
.chalk-item-divider {
  width: 140px;
  height: 1px;
  border-top: 1px dashed rgba(238, 214, 155, 0.3);
  margin: 0.2rem auto;
}

/* 最下部案内バー */
.chalk-bottom-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-bottom: 40px;
}

.square-guide-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.square-link-accent {
  color: #eed69b;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.2s;
}

.square-link-accent:hover {
  opacity: 0.8;
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s;
}

.scroll-indicator a:hover {
  color: #fff;
}

.arrow-down {
  font-size: 1.1rem;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========================================================
   3. レギュラーメニューセクション（2カラム・リスト形式）
======================================================== */
.regular-menu-section {
  padding: 5rem 1.5rem 6rem;
  background-color: #faf9f5;
  color: #1a1a1a;
}

.menu-container {
  max-width: 1040px;
  margin: 0 auto;
}

/* セクション見出し */
.menu-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.menu-section-eyebrow {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  color: #ea5426; /* テーマオレンジ */
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.menu-section-title {
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: #111417;
  font-weight: 500;
  margin: 0;
}

/* ガイドテキストのCSS（邪魔にならない上品なトーン） */
.menu-section-hint {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.82rem;
  color: #767676;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

.menu-section-hint .hint-icon {
  color: #ea5426;
  font-size: 0.7rem;
  margin: 0 0.15rem;
}

/* 2カラムグリッド */
.regular-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 4.5rem;
}

@media (min-width: 768px) {
  .regular-menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* カテゴリタイトル */
.cat-title {
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #111;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #111417;
  margin: 0 0 1.8rem 0;
}

/* リストアイテム */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

/* 静的料理名（動画なし） */
.item-name-static {
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* 動画再生トリガー付き料理名（クリック可能ボタン） */
.item-name-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.item-name-btn:hover {
  color: #ea5426;
  text-decoration: underline;
}

/* 写真付きメニューボタン */
.item-name-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif, "Georgia", serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}

.item-name-btn:hover {
  color: #ea5426;
  text-decoration: underline;
}

/* カメラアイコン表示（上品で控えめなサイズと透明度） */
.item-name-btn .photo-icon {
  font-size: 0.82rem;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.item-name-btn:hover .photo-icon {
  opacity: 1;
  transform: scale(1.15);
}

/* 価格 */
.item-price {
  font-family: var(--font-sans, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* 説明文 */
.item-desc {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
}

/* 下部誘導バー */
.menu-footer-callout {
  margin-top: 4.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #666;
  padding-top: 2rem;
  border-top: 1px solid #e8e5dc;
}

.menu-order-link {
  color: #ea5426;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.menu-order-link:hover {
  opacity: 0.8;
}

/* ========================================================
   写真拡大モーダル（Lightbox）
======================================================== */
.image-modal {
  display: none; /* ★初期状態は完全に非表示 */
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* JSで開いた時だけ flex で表示 */
.image-modal.is-active {
  display: flex !important;
  opacity: 1;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.image-modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

/* 拡大された時の画像 */
#modal-expanded-img {
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 4px solid #fdfbf7;
}

.image-close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.image-close-btn:hover {
  color: #ea5426;
}

.image-modal-caption {
  font-family: var(--font-chalk, cursive);
  font-size: 1.25rem;
  color: #eed69b;
  margin-top: 0.8rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* ========================================================
   スマホ時のヘッダーはみ出し＆横スクロール完全防止
======================================================== */
@media (max-width: 768px) {
  /* 1. ページ全体ではみ出しを強制カット */
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* 4. 黒板の左右に適切な余白を確保し、画面いっぱいに張り付かないようにする */
  .blackboard-section {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 20px 16px 40px !important; /* 左右に16pxのゆとりを確保 */
    box-sizing: border-box !important;
  }

  .blackboard-frame {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .menu-page,
  .blackboard-section,
  .regular-menu-section {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .chalk-board {
    padding: 36px 16px 40px;
    padding-bottom: 40px !important;
    gap: 0.6rem;
  }

  .chalk-sub {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .chalk-title {
    font-size: 1.75rem;
    word-break: break-word;
  }

  /* ポラロイド写真：画面幅に応じて縮小できるように設定 */
  .polaroid-card {
    width: 190px !important;
    max-width: 55vw !important; /* 画面幅の半分強に制限して絶対にはみ出させない */
    padding: 6px 6px 8px 6px;
  }

  .polaroid-tape {
    top: -9px;
    width: 55px;
    height: 16px;
  }

  .polaroid-caption {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  .featured-dish-name {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .featured-dish-desc {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .chalk-bottom-bar {
    gap: 0.35rem;
    padding-top: 0.4rem;
    margin-bottom: 40px;
  }

  .square-guide-text {
    font-size: 0.78rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  /* レギュラーメニューセクションのスマホ最適化 */
  .regular-menu-section {
    padding: 3.5rem 1rem 4rem;
  }

  .menu-section-header {
    margin-bottom: 2.5rem;
  }

  .menu-section-title {
    font-size: 2rem;
  }

  .regular-menu-grid {
    gap: 2.5rem;
  }

  /* 料理名と価格の折り返し崩れ防止 */
  .item-head {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .item-name-btn,
  .item-name-static {
    font-size: 0.98rem;
    word-break: break-word; /* 長い料理名でも綺麗に折り返す */
  }

  .item-price {
    font-size: 0.95rem;
  }
}

/* ========================================================
   スマホ横画面（Landscape）時の黒板はみ出し・重なり完全解消
======================================================== */
@media (max-width: 950px) and (orientation: landscape) {
  /* 1. 黒板セクション全体のパディングを抑える */
  .blackboard-section {
    padding: 12px 16px 28px !important;
  }

  /* 2. 横画面時に黒板が横に広がりすぎないよう最大幅をスマートに制限 */
  .blackboard-frame {
    max-width: 520px !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
  }

  /* 3. 黒板内部のパディングと間隔を詰めて縦スペースを確保 */
  .chalk-board {
    padding: 24px 16px 36px !important; /* 下部余白を確保して枠への干渉を防止 */
    gap: 0.4rem !important;
  }

  .chalk-sub {
    font-size: 0.65rem !important;
  }

  .chalk-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* 4. ポラロイド写真をコンパクトにして高さを節約 */
  .polaroid-card {
    width: 140px !important;
    max-width: 35vw !important;
    padding: 5px 5px 6px 5px !important;
  }

  .polaroid-tape {
    top: -7px !important;
    width: 45px !important;
    height: 14px !important;
  }

  .polaroid-caption {
    font-size: 0.75rem !important;
    margin-top: 2px !important;
  }

  /* 5. 料理名と説明文のサイズ調整 */
  .featured-dish-name {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }

  .featured-dish-desc {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  .chalk-item-divider {
    margin: 0.2rem auto !important;
  }

  /* 6. 最下部リンク・誘導テキスト（木枠に重ならないよう浮かす） */
  .chalk-bottom-bar {
    padding-top: 0.3rem !important;
    margin-bottom: 10px !important;
    gap: 0.25rem !important;
  }

  .square-guide-text {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .scroll-indicator {
    font-size: 0.68rem !important;
    margin-top: 2px !important;
  }
}

