@charset "UTF-8";

/* 全面黒板セクション */
.blackboard-section {
  width: 100%;
  min-height: calc(100vh - 75px);
  background-color: #1a1614;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
}

/* 木枠付き黒板のテクスチャ再現 */
.blackboard-frame {
  width: 100%;
  max-width: 1080px;
  min-height: 85vh;
  background-image: url('../images/blackboard.webp');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 0 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chalk-board {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chalk-header {
  margin-bottom: 2rem;
}

.chalk-sub {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #eed69b;
  display: block;
  margin-bottom: 0.4rem;
}

.chalk-title {
  font-family: var(--font-chalk);
  font-size: 3rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.chalk-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* チョークメニューリスト */
.chalk-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
  margin: 1.5rem 0 auto;
}

.chalk-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.9rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chalk-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #eed69b;
  transform: translateY(-2px);
}

.chalk-item-name {
  font-family: var(--font-chalk);
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: left;
}

.chalk-item-action {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #eed69b;
  font-weight: 600;
  text-transform: uppercase;
}

.chalk-loading {
  font-family: var(--font-chalk);
  color: #aaa;
  font-size: 1.4rem;
}

/* スクロール誘導 */
.scroll-indicator {
  margin-top: 2rem;
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s;
}

.scroll-indicator a:hover {
  color: #fff;
}

.arrow-down {
  font-size: 1.2rem;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* レギュラーメニューセクション */
.regular-menu-section {
  padding: 5rem 1.5rem;
  background-color: var(--bg-color);
}

.menu-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--cta-orange);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 1.5rem;
}

.cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 1.05rem;
}

.item-name {
  font-family: var(--font-sans);
}

.item-desc {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ========================================================
   3D写真浮遊・回転モーダル
======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  position: relative;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
}

/* 3D パースペクティブシーン */
.carousel-3d-scene {
  perspective: 1200px;
  width: 320px;
  height: 320px;
  margin-bottom: 1.5rem;
}

.carousel-3d-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 開いた瞬間の3D回転アニメーション */
.modal-overlay.active .carousel-3d-card {
  animation: floatSpin 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatSpin {
  0% {
    transform: rotateY(-180deg) scale(0.6) translateZ(-200px);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg) scale(1) translateZ(0);
    opacity: 1;
  }
}

.card-face {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(238, 214, 155, 0.3);
  border: 2px solid rgba(255,255,255,0.2);
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-caption {
  text-align: center;
  color: #fff;
}

.modal-caption h3 {
  font-family: var(--font-chalk);
  font-size: 2rem;
  color: #eed69b;
}

.modal-caption p {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* 中央フィーチャーエリア（2カラム：ポラロイド＋チョーク文） */
.obanzai-featured-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 860px;
  margin: auto 0;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .obanzai-featured-wrap {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    text-align: left;
  }
}

/* ポラロイド風カード */
.polaroid-card {
  position: relative;
  background-color: #fdfbf7;
  padding: 12px 12px 24px 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.3);
  transform: rotate(-3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 250px;
  flex-shrink: 0;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 20px 45px rgba(0,0,0,0.8);
}

/* マスキングテープ風の留め具 */
.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  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%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #222;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-chalk);
  font-size: 1.25rem;
  color: #333;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* 中央フィーチャーエリア（ポラロイド＋チョーク文） */
.obanzai-featured-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 920px;
  margin: auto 0;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .obanzai-featured-wrap {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    text-align: left;
  }
}

/* ポラロイド風カード（傾きなし・まっすぐ配置） */
.polaroid-card {
  position: relative;
  background-color: #fdfbf7;
  padding: 14px 14px 20px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.3);
  transform: none; /* 傾きを削除 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 310px;
  max-width: 85vw;
  flex-shrink: 0;
}

.polaroid-card:hover {
  transform: translateY(-3px); /* 傾けずに少しだけ上に浮き上がらせる上品なホバー効果 */
  box-shadow: 0 22px 50px rgba(0,0,0,0.85);
}

/* マスキングテープ（水平に合わせて中央配置） */
.polaroid-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  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%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #242424; /* 読み込み中は落ち着いたダークグレー */
  border-radius: 2px;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* ふわりと表示 */
}

/* 画像が読み込まれた時に適用 */
.polaroid-img-wrap img.is-loaded {
  opacity: 1;
}

/* 写真下の固定キャプション（Today's Obanzai） */
.polaroid-caption {
  font-family: var(--font-chalk);
  font-size: 1.35rem;
  color: #2b2b2b;
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* チョーク詳細テキスト */
.featured-chalk-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

@media (min-width: 768px) {
  .featured-chalk-info {
    align-items: flex-start;
  }
}

.featured-dish-name {
  font-family: var(--font-chalk);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.featured-dish-desc {
  font-family: var(--font-chalk); /* チョーク調の手書きフォントに変更 */
  font-size: 1.55rem;             /* 手書きフォントに合わせて読みやすい大きさに調整 */
  color: #eed69b;                 /* 料理名の白に対して、淡いクリーム色（黄色チョーク風）でアクセント */
  line-height: 1.45;
  max-width: 440px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(238, 214, 155, 0.25); /* チョークの粉っぽさを出す微細な発光 */
}