/* ==========================================================================
   Cafe & Library 「木漏れ日」 LP用スタイルシート
   ========================================================================== */

/* 1. デザインシステム (変数の定義) */
:root {
  /* カラーパレット (アースカラー & ソフトトーン) */
  --color-bg-main: #F4F0EA;       /* 温かみのあるベージュ */
  --color-bg-card: #FCFAF7;       /* オフホワイト */
  --color-text-main: #2C2B29;     /* 柔らかい黒 (ダークグレー) */
  --color-text-sub: #6E6A64;      /* くすんだグレーブラウン */
  --color-brand-dark: #1A2F1C;    /* 深いフォレストグリーン */
  --color-brand-medium: #2D4A30;  /* モスグリーン */
  --color-accent-brown: #3E2E20;  /* 落ち着いたウッドブラウン */
  --color-accent-gold: #C5A880;   /* 上品なゴールドアクセント */
  --color-white: #FFFFFF;

  /* フォントファミリー */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;

  /* 余白・サイズ */
  --container-max-width: 1200px;
  --header-height: 80px;

  /* すりガラス効果 */
  --glass-bg: rgba(252, 250, 247, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.35);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(26, 47, 28, 0.08);

  /* トランジション */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
}

/* 2. 基本リセット & 共通設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

body.menu-open,
body.loading {
  overflow: hidden; /* スマホナビ展開時およびロード中に背景スクロールを防止 */
}

/* ==========================================================================
   オープニング・ロード画面
   ========================================================================== */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-main);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  pointer-events: auto;
}

.loader-overlay.fade-out {
  opacity: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-brand-dark);
  letter-spacing: 0.25em;
  opacity: 0;
  animation: fade-in-logo 1.5s ease forwards;
}

.loader-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0;
  animation: fade-in-logo 1.5s ease 0.3s forwards;
}

.loader-line-wrap {
  width: 150px;
  height: 1px;
  background-color: rgba(197, 168, 128, 0.2);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.loader-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-accent-gold);
  transform: translateX(-100%);
  animation: load-progress 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fade-in-logo {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes load-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 見出し類は明朝体で統一 */
h1, h2, h3, h4, .logo-text, .section-tag, .tab-btn {
  font-family: var(--font-serif);
  font-weight: 500;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* 3. レイアウト共通パーツ */
.section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 100px 24px;
}

/* ワイドモニターで余白が不自然に広がらないように、メインコンテンツ領域に最大幅を指定 */
main {
  width: 100%;
}

/* セクションタグ */
.section-tag {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* 縦書き共通ユーティリティ */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* 4. ヘッダー (動的カラーシフト & OGP/スマホナビ対応) */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

/* 初期状態：ヒーローに重ねるグラデーションマスク */
.header-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 47, 28, 0.45) 0%, rgba(26, 47, 28, 0) 100%);
  z-index: -1;
  transition: var(--transition-smooth);
}

/* スクロール後のヘッダーマスク消去 */
.main-header.scrolled .header-overlay-mask {
  opacity: 0;
}

/* スクロール後のヘッダースタイル（すりガラス効果） */
.main-header.scrolled {
  background: var(--glass-bg);
  border-bottom: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

/* ヘッダー文字色の初期（ヒーロー表示時）カラー（白系） */
.main-header .logo-text {
  font-size: 1.4rem;
  color: var(--color-bg-card);
  letter-spacing: 0.1em;
  line-height: 1.2;
  transition: var(--transition-smooth);
}

.main-header .logo-sub {
  font-size: 0.65rem;
  color: rgba(252, 250, 247, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.header-nav-pc {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-header .nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-bg-card);
  padding: 8px 0;
  position: relative;
  transition: var(--transition-smooth);
}

.main-header .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-bg-card);
  transition: var(--transition-fast);
}

.main-header .nav-item:hover::after {
  width: 100%;
}

.main-header .nav-btn-action {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  background-color: transparent;
  color: var(--color-bg-card);
  padding: 10px 24px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-bg-card);
  transition: var(--transition-smooth);
}

.main-header .nav-btn-action:hover {
  background-color: var(--color-bg-card);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* スクロール時のカラーシフト */
.main-header.scrolled .logo-text {
  color: var(--color-brand-dark);
}

.main-header.scrolled .logo-sub {
  color: var(--color-text-sub);
}

.main-header.scrolled .nav-item {
  color: var(--color-text-main);
}

.main-header.scrolled .nav-item::after {
  background-color: var(--color-brand-dark);
}

.main-header.scrolled .nav-btn-action {
  background-color: var(--color-brand-dark);
  color: var(--color-bg-card);
  border-color: var(--color-brand-dark);
}

.main-header.scrolled .nav-btn-action:hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 47, 28, 0.12);
}

/* スマホ用メニューボタン (デフォルト非表示) */
.menu-trigger {
  display: none;
}

/* SPオーバーレイメニュー（すりガラス効果） */
.sp-overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 47, 28, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.sp-overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.sp-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.sp-overlay-menu.active .sp-nav {
  transform: translateY(0);
}

.sp-nav-item {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-bg-card);
  letter-spacing: 0.15em;
}

.sp-nav-btn {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  background-color: var(--color-bg-card);
  color: var(--color-brand-dark);
  padding: 14px 45px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  margin-top: 15px;
  box-shadow: var(--glass-shadow);
}

/* 5. ヒーローセクション (スライダー & Ken Burns) */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 2s ease-in-out, transform 8s linear;
  filter: brightness(0.9) contrast(1.04); /* 写真の深みとキャッチコピーの視認性を高めるトーン調整 */
}

.slide.active {
  opacity: 1;
  transform: scale(1.16); /* ズーム幅を広げてKen Burnsの迫力を強化 */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 47, 28, 0.4) 0%, rgba(26, 47, 28, 0.1) 100%);
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  height: 60%;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.8;
  letter-spacing: 0.35em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  animation: tracking-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes tracking-in {
  0% {
    letter-spacing: -0.2em;
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  opacity: 0.8;
}

.scroll-icon {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* 6. コンセプト (About) セクション */
.about-section {
  background-color: var(--color-bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text-column {
  padding-right: 40px;
}

.about-section .section-title {
  font-size: 2.2rem;
  line-height: 1.8;
  letter-spacing: 0.25em;
  height: 520px;
  float: right;
  margin-left: 40px;
  color: var(--color-brand-dark);
}

.about-desc {
  overflow: hidden;
}

.about-desc p {
  margin-bottom: 25px;
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

/* 有機的な画像マスクシェイプ（森の図書館風） */
.organic-image-mask {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  box-shadow: 0 15px 40px rgba(26, 47, 28, 0.08);
  transition: border-radius 10s ease-in-out infinite alternate;
}

.organic-image-mask:hover {
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%;
}

.masked-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.organic-image-mask:hover .masked-img {
  transform: scale(1.08);
}

/* 7. メニューセクション */
.menu-section {
  background-color: var(--color-bg-card);
}

.center-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-center {
  font-size: 2rem;
  color: var(--color-brand-dark);
  letter-spacing: 0.15em;
  margin-top: 10px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(110, 106, 100, 0.15);
  padding-bottom: 1px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1rem;
  color: var(--color-text-sub);
  position: relative;
  transition: var(--transition-fast), transform 0.3s ease;
}

.tab-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

svg.tab-icon use {
  fill: currentColor;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-dark);
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-brand-dark);
  transform: translateY(-2px);
}

.tab-btn.active {
  color: var(--color-brand-dark);
  font-weight: 700;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-in-panel 0.6s ease;
}

@keyframes fade-in-panel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

.menu-item {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  background: var(--color-bg-main);
  border-radius: 4px;
  transition: var(--transition-fast);
  border: 1px solid rgba(26, 47, 28, 0.03);
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 47, 28, 0.04);
}

.menu-item-img-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(26, 47, 28, 0.06);
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.menu-item-info {
  flex-grow: 1;
  padding-right: 15px;
}

.menu-item-name {
  font-size: 1.05rem;
  color: var(--color-brand-dark);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.menu-item-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-accent-gold);
  white-space: nowrap;
  font-weight: 500;
  margin-left: auto;
  align-self: center;
}

/* 8. こだわり (Story) セクション */
.story-section {
  background-color: var(--color-bg-main);
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  position: relative;
}

/* S字タイムラインSVGのスタイル */
.story-timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ガイド線（背景の薄い線） */
.timeline-path-bg {
  stroke: rgba(45, 74, 48, 0.12);
  stroke-width: 2px;
}

/* スクロールでアクティブに伸びる実線 */
.timeline-path-active {
  stroke: var(--color-brand-medium);
  stroke-width: 2px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s ease-out;
}

/* タイムライン接続用の丸ドット */
.timeline-dot {
  fill: var(--color-bg-main);
  stroke: rgba(45, 74, 48, 0.25);
  stroke-width: 2px;
  transition: stroke 0.4s ease, fill 0.4s ease, transform 0.4s ease;
}

/* 線が通過した際のアクティブ表示 */
.timeline-dot.active {
  stroke: var(--color-brand-medium);
  fill: var(--color-brand-medium);
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.story-card.zigzag-right {
  grid-template-columns: 1.1fr 1fr;
}

.story-card.zigzag-right .story-image-wrap {
  order: 2;
}

.story-card.zigzag-right .story-text-wrap {
  order: 1;
}

.story-image-wrap .organic-image-mask {
  aspect-ratio: 4 / 3;
  border-radius: 30% 70% 40% 60% / 50% 40% 60% 50%;
}

.story-text-wrap {
  position: relative;
}

/* Story numbers removed for central timeline connection line design */
.story-meta {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  line-height: 1;
}

.story-card-title {
  font-size: 1.6rem;
  color: var(--color-brand-dark);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.story-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* 9. アクセス & ギャラリーセクション */
.access-gallery-section {
  background-color: var(--color-bg-card);
}

/* ギャラリーグリッド */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 80px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(26, 47, 28, 0.03);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

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

/* アクセスエリア */
.access-info-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(110, 106, 100, 0.15);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th, .info-table td {
  padding: 20px 10px;
  text-align: left;
  font-size: 0.9rem;
}

.info-table th {
  font-family: var(--font-serif);
  color: var(--color-brand-dark);
  width: 25%;
  font-weight: 500;
  vertical-align: top;
}

.info-table td {
  color: var(--color-text-sub);
}

/* マップハイジャック防止 & セピアカラー調整 */
.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(26, 47, 28, 0.05);
}

/* クリックして操作するためのオーバーレイ */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 47, 28, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition-fast);
}

.map-overlay-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-bg-card);
  background: var(--color-brand-dark);
  padding: 10px 20px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  box-shadow: var(--glass-shadow);
  pointer-events: none;
  transition: var(--transition-fast);
}

.map-container:hover .map-overlay-text {
  background: var(--color-accent-gold);
}

.map-overlay.active {
  opacity: 0;
  pointer-events: none;
}

#google-map {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* 初期は操作無効 */
  
  /* アンティーク・セピア調フィルタ（アースカラー調和） */
  filter: sepia(45%) contrast(95%) saturate(85%);
  -webkit-filter: sepia(45%) contrast(95%) saturate(85%);
  transition: var(--transition-smooth);
}

#google-map.active {
  pointer-events: auto; /* クリック後に操作有効 */
  filter: none; /* 操作時はフルカラーで見やすく */
  -webkit-filter: none;
}

/* 10. CVセクション (すりガラスディテール強化) */
.contact-cv-section {
  background-image: url('../assets/komorebi_interior.webp?v=20260616');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
}

.contact-cv-section .section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 550px;
  background-color: rgba(26, 47, 28, 0.35);
}

/* すりガラスカード (立体感 & ゴールド影の強化) */
.glass-cv-card {
  width: 100%;
  max-width: 800px;
  padding: 60px 40px;
  text-align: center;
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 4px;
  
  /* ゴールド・アンバー系ソフト影のブレンド */
  box-shadow: 
    var(--glass-shadow),
    0 15px 45px -5px rgba(197, 168, 128, 0.16);
}

.card-tag {
  display: block;
  font-size: 0.8rem;
  color: var(--color-accent-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.card-title {
  font-size: 2.2rem;
  color: var(--color-brand-dark);
  letter-spacing: 0.15em;
  margin-bottom: 25px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cv-button-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.primary-cv-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  padding: 18px 45px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  border-radius: 2px;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 15px rgba(26, 47, 28, 0.15);
  border: 1px solid var(--color-brand-dark);
  transition: var(--transition-smooth);
}

.primary-cv-btn:hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  box-shadow: 0 12px 30px -5px rgba(26, 47, 28, 0.22), 0 4px 15px rgba(197, 168, 128, 0.15);
  transform: translateY(-3px);
}

.cv-btn-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.primary-cv-btn:hover .cv-btn-icon {
  transform: translateX(5px);
}

.cv-notice {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  opacity: 0.8;
}

/* 11. フッター */
.main-footer {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  padding: 60px 0 30px 0;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--color-accent-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.sns-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-bg-main);
}

.sns-link:hover {
  background-color: var(--color-white);
  color: var(--color-brand-dark);
}

.sns-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(252, 250, 247, 0.4);
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* 12. アニメーション制御用のスクロールリビール & 時間差フェードイン */
.scroll-reveal {
  /* 親コンテナ全体のフェード設定 */
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
}

/* 時間差フェードインアイテム（About/Story） */
.reveal-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* 画像マスクフェードインも連動して滑らかに */
.organic-image-mask {
  opacity: 0;
  transform: scale(0.97) rotate(-1deg);
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), border-radius 10s ease-in-out infinite alternate;
}

.scroll-reveal.revealed .organic-image-mask {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* スタッガー効果用ディレイ定義 */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.7s;
}


/* ==========================================================================
   レスポンシブデザイン (メディアクエリ - モバイルファースト調整)
   ========================================================================== */

@media (max-width: 991px) {
  .about-grid {
    gap: 50px;
  }
  
  .story-card {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .story-timeline-svg {
    display: none !important;
  }

  /* スマホ時はガタつき防止のため左揃え (Left-aligned) を基本とする */
  body {
    text-align: left;
  }

  .section-container {
    padding: 60px 20px;
  }

  /* PC用ナビゲーション非表示、ハンバーガーボタン表示 */
  .header-nav-pc {
    display: none;
  }

  .menu-trigger {
    display: block;
    position: relative;
    width: 28px;
    height: 20px;
    z-index: 1001; /* オーバーレイより上 */
  }

  .menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-bg-card); /* 初期（ヒーロー上）は白 */
    transition: var(--transition-smooth);
  }

  /* スクロール時またはメニュー開閉時のトリガー色変更 */
  .main-header.scrolled .menu-trigger span,
  body.menu-open .menu-trigger span {
    background-color: var(--color-brand-dark);
  }

  .menu-trigger span:nth-child(1) { top: 0; }
  .menu-trigger span:nth-child(2) { top: 9px; }
  .menu-trigger span:nth-child(3) { top: 18px; }

  /* アクティブ時のアニメーション（クロス） */
  .menu-trigger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-trigger.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-trigger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ヒーロータイトルの縮小調整（高さの低いスマホでも綺麗に収まる設計） */
  .hero-title {
    font-size: calc(1.6rem + 1vh);
    letter-spacing: 0.25em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  }

  /* スマホ表示時は「縦書きテキスト」を読みやすさ重視で「横書き」に自動変換 */
  .vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto !important;
    float: none !important;
    margin-left: 0 !important;
  }

  .about-section .section-title {
    font-size: 1.5rem;
    height: auto;
    float: none;
    margin-left: 0;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text-column {
    padding-right: 0;
  }

  .about-desc p {
    text-align: left; /* 左揃えの徹底 */
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  /* Aboutの画像マスクをスマホ向けにアスペクト比16:10に変更（縦スクロール負荷軽減） */
  .about-image-column .organic-image-mask {
    aspect-ratio: 16 / 10;
    border-radius: 30% 70% 40% 60% / 50% 40% 60% 50%;
  }

  /* メニューの調整 */
  .menu-tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  /* 480px以下のスマートフォン向け：メニュー表示の崩れ防止グリッド定義 */
  @media (max-width: 480px) {
    .menu-item {
      display: grid;
      grid-template-areas: 
        "img name price"
        "img desc desc";
      grid-template-columns: 80px 1fr auto;
      gap: 8px 12px;
      align-items: start;
      padding: 14px;
    }
    .menu-item-img-wrap {
      grid-area: img;
      width: 80px;
      height: 80px;
      margin-top: 2px;
    }
    .menu-item-info {
      display: contents; /* 直属のグリッドアイテムのように振る舞わせる */
    }
    .menu-item-name {
      grid-area: name;
      margin-bottom: 0;
      font-size: 0.95rem;
      line-height: 1.3;
    }
    .menu-item-desc {
      grid-area: desc;
      font-size: 0.8rem;
      line-height: 1.5;
    }
    .menu-item-price {
      grid-area: price;
      font-size: 1.05rem;
      margin-left: 0;
      align-self: start;
      line-height: 1.3;
    }
  }

  /* ストーリーカードを1カラム化 & Zigzag of 解除 */
  .story-list {
    gap: 60px;
  }

  .story-card, .story-card.zigzag-right {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-card.zigzag-right .story-image-wrap {
    order: 0;
  }

  .story-card.zigzag-right .story-text-wrap {
    order: 0;
  }

  /* ストーリー画像のスマホアスペクト比調整とマスク形状の最適化 */
  .story-image-wrap .organic-image-mask {
    aspect-ratio: 16 / 10;
    border-radius: 25% 75% 35% 65% / 40% 40% 60% 60%;
  }

  .story-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .story-card-desc {
    text-align: left; /* 左揃えの徹底 */
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* ギャラリー & アクセス of 調整 */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
  }

  .access-info-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* スマホ（500px以下）時にテーブルを縦並びに崩す（改行の防止と横幅の有効活用） */
  @media (max-width: 500px) {
    .info-table tr {
      display: flex;
      flex-direction: column;
      padding: 12px 0;
    }
    .info-table th, .info-table td {
      display: block;
      width: 100% !important;
      padding: 0;
    }
    .info-table th {
      margin-bottom: 4px;
      font-size: 0.9rem;
      color: var(--color-brand-dark);
    }
    .info-table td {
      font-size: 0.85rem;
      line-height: 1.6;
    }
  }

  .info-table th {
    width: 30%;
  }

  .map-container {
    min-height: 250px;
  }

  /* CVセクションの調整 */
  .contact-cv-section {
    background-attachment: scroll; /* モバイルでのパララックススクロールがたつき防止 */
  }

  .glass-cv-card {
    padding: 35px 20px;
  }

  .card-title {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .card-desc {
    font-size: 0.85rem;
    margin-bottom: 30px;
  }

  .primary-cv-btn,
  .secondary-cv-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .cv-contact-form input[type="text"],
  .cv-contact-form input[type="email"],
  .cv-contact-form select,
  .cv-contact-form textarea {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

}

/* ==========================================================================
   ページトップへ戻る追従ボタン (Back to Top)
   ========================================================================== */
.pagetop-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 68px;
  border-radius: 26px; /* 縦長カプセル型 */
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--color-brand-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagetop-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pagetop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagetop-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.pagetop-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ホバー時の美しいエフェクト */
.pagetop-btn:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: var(--color-bg-card);
  box-shadow: 0 12px 24px rgba(26, 47, 28, 0.15);
}

.pagetop-btn:hover .pagetop-icon {
  transform: translateY(-3px);
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .pagetop-btn {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 60px;
    border-radius: 23px;
  }
  .pagetop-icon {
    width: 16px;
    height: 16px;
  }
  .pagetop-text {
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   CVセクション拡張（予約＆お問い合わせグリッド）
   ========================================================================== */
.cv-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

@media (min-width: 769px) {
  .cv-grid-layout {
    grid-template-columns: 1fr 1px 1.2fr;
    gap: 50px;
    align-items: start;
  }
}

.cv-action-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.cv-action-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.cv-action-desc {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: 25px;
  line-height: 1.6;
}

.cv-divider {
  background-color: rgba(110, 106, 100, 0.2);
  height: 1px;
  width: 100%;
}

@media (min-width: 769px) {
  .cv-divider {
    height: 100%;
    min-height: 300px;
    width: 1px;
  }
}

/* フォームの共通装飾 */
.cv-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cv-contact-form .form-group {
  position: relative;
}

.cv-contact-form input[type="text"],
.cv-contact-form input[type="email"],
.cv-contact-form select,
.cv-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(110, 106, 100, 0.25);
  border-radius: 3px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.cv-contact-form input[type="text"]:focus,
.cv-contact-form input[type="email"]:focus,
.cv-contact-form select:focus,
.cv-contact-form textarea:focus {
  background-color: var(--color-white);
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.cv-contact-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6A64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.cv-contact-form select:invalid {
  color: #a09c96;
}

.cv-contact-form textarea {
  resize: vertical;
}

/* セカンダリCVボタン (メール送信ボタン) */
.secondary-cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: transparent;
  color: var(--color-brand-dark);
  border: 1px solid var(--color-brand-dark);
  padding: 14px 30px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.secondary-cv-btn:hover {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 47, 28, 0.12);
}

.secondary-cv-btn:hover .cv-btn-icon {
  transform: translateX(3px);
}

/* フォーム送信後の完了メッセージ */
.form-response-message {
  margin-top: 15px;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.form-response-message.success {
  opacity: 1;
  transform: translateY(0);
  color: var(--color-brand-medium);
  font-weight: 500;
}

.form-response-message.error {
  opacity: 1;
  transform: translateY(0);
  color: #b33939;
  font-weight: 500;
}

/* ==========================================================================
   トースト通知 (準備中アラート用)
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: var(--glass-shadow), 0 10px 30px rgba(197, 168, 128, 0.12);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.toast-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast-message {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-brand-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .toast-notification {
    width: calc(100% - 40px);
    max-width: 380px;
    padding: 12px 20px;
    border-radius: 20px;
    bottom: 30px;
  }

  .toast-message {
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.5;
    display: block;
    text-align: center;
  }
}

/* ==========================================================================
   デモ用ご予約モーダル
   ========================================================================== */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(26, 47, 28, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.demo-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-content {
  background: var(--color-bg-card);
  border: var(--glass-border);
  border-radius: 4px;
  padding: 40px 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--glass-shadow), 0 20px 50px rgba(26, 47, 28, 0.15);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.demo-modal-overlay.show .demo-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--color-text-sub);
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-brand-dark);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-brand-dark);
  margin-bottom: 10px;
  letter-spacing: 0.15em;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-reserve-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-reserve-form .form-group {
  position: relative;
}

.modal-reserve-form .form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-reserve-form input[type="text"],
.modal-reserve-form input[type="email"],
.modal-reserve-form input[type="date"],
.modal-reserve-form select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background-color: var(--color-bg-main);
  border: 1px solid rgba(110, 106, 100, 0.25);
  border-radius: 3px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.modal-reserve-form input[type="text"]:focus,
.modal-reserve-form input[type="email"]:focus,
.modal-reserve-form input[type="date"]:focus,
.modal-reserve-form select:focus {
  background-color: var(--color-white);
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.modal-reserve-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6A64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.modal-reserve-form select:invalid {
  color: #a09c96;
}

.modal-reserve-form .primary-cv-btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
  margin-top: 10px;
}

.modal-result-message {
  margin-top: 15px;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.modal-result-message.success {
  opacity: 1;
  transform: translateY(0);
  color: var(--color-brand-medium);
  font-weight: 500;
}

/* 電話リンクなどのスタイル調整 */
.tel-link, .email-link {
  color: var(--color-brand-medium);
  transition: var(--transition-fast);
  text-decoration: underline;
}

.tel-link:hover, .email-link:hover {
  color: var(--color-accent-gold);
}

@media (max-width: 768px) {
  .demo-modal-content {
    padding: 30px 20px;
    max-width: 100%;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-desc {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .modal-reserve-form input[type="text"],
  .modal-reserve-form input[type="email"],
  .modal-reserve-form input[type="date"],
  .modal-reserve-form select {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

