/* ==================================================
   縄文時代の世界 — メインスタイルシート
   
   【テキストの編集方法】
   HTMLファイルを直接開いてください。
   <span class="ja">日本語テキスト</span>
   <span class="en">English text</span>
   の形式で各ページに書かれています。
   
   【色の変更】
   このファイルの :root 変数を変更してください。
   ================================================== */

/* ─── Google Fonts ─── */
/* index.html の <head> に読み込み設定があります */

/* ─── CSS変数（サイトのカラーパレット） ─── */
:root {
  --bg:          #f8f6f3;   /* ページ背景（クリーム色） */
  --fg:          #2c2018;   /* メインテキスト（濃いこげ茶） hsl(24 20% 15%) */
  --primary:     #b84c2a;   /* アクセントカラー（テラコッタ） hsl(15 58% 45%) */
  --secondary:   #a07830;   /* サブカラー（オークル） hsl(35 45% 45%) */
  --amber:       #f59e0b;   /* アンバー（精神世界ページ） */
  --muted:       #e7e2da;   /* ミュート背景 hsl(36 20% 88%) */
  --muted-fg:    #756357;   /* ミュートテキスト hsl(24 15% 40%) */
  --dark:        #0d0b09;   /* ダーク背景 */
  --dark2:       #1a1817;   /* フッター背景 */
  --card-bg:     #fcfaf8;   /* カード背景 hsl(36 40% 98%) */
  --earth:       #fcfaf8;   /* アースセクション背景 hsl(36 40% 98%) */
  --border:      #d6ccc2;   /* ボーダー hsl(30 20% 80%) */
  --white:       #ffffff;
}

/* ─── リセット & ベース ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

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

a { text-decoration: none; color: inherit; }

/* ─── 言語切替（CSSで制御） ─── */
html.lang-ja .en { display: none !important; }
html.lang-en .ja { display: none !important; }

/* ─── コンテナ ─── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px;  margin: 0 auto; padding: 0 24px; }

/* ─── セクション ─── */
.section       { padding: 96px 0; }
.light-section { background: var(--bg); }
.dark-section  { background: var(--dark); }
.earth-section { background: var(--earth); }

/* ─── ダークセクション 自動テキスト継承 ─── */
.dark-section .section-title { color: white; }
.dark-section .eyebrow-label { color: rgba(255,255,255,0.55); }
.dark-section .bar-label { color: rgba(255,255,255,0.50); }
.dark-section .bar-wrap { background: rgba(255,255,255,0.08); }
.dark-section .note-box { background: rgba(255,255,255,0.05); border-left-color: var(--primary); }
.dark-section .note-box p { color: rgba(255,255,255,0.60); }
.dark-section .pct-item p { color: rgba(255,255,255,0.60); }
.dark-section .stat-card:not(.dark) {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── ナビゲーション ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, padding 0.4s;
  padding: 24px 0;
}
.site-header.scrolled {
  background: rgba(248,244,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-ja {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--fg); transition: color 0.3s;
}
.logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--primary);
}
.site-header.dark-nav .logo-ja { color: white; }
.site-header.dark-nav .logo-en { color: rgba(255,255,255,0.7); }
.site-header.scrolled .logo-ja { color: var(--fg); }

.desktop-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg); transition: color 0.3s; position: relative; padding: 4px 0;
}
.nav-link::after {
  content:''; position:absolute; bottom:-2px; left:0; right:0; height:1px;
  background: currentColor; transform: scaleX(0); transition: transform 0.3s;
}
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.site-header.dark-nav .nav-link { color: rgba(255,255,255,0.8); }
.site-header.dark-nav .nav-link:hover { color: white; }
.site-header.scrolled .nav-link { color: var(--fg); }
.nav-link[aria-current="page"] { color: var(--primary); }

.lang-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  padding: 4px 12px; background: transparent; cursor: pointer;
  color: rgba(255,255,255,0.7); transition: all 0.3s;
}
.lang-btn:hover { border-color: white; color: white; }
.site-header.scrolled .lang-btn, .site-header:not(.dark-nav) .lang-btn {
  border-color: var(--border); color: var(--muted-fg);
}
.site-header.scrolled .lang-btn:hover, .site-header:not(.dark-nav) .lang-btn:hover {
  border-color: var(--primary); color: var(--primary);
}

.mobile-controls { display: none; align-items: center; gap: 12px; }
.menu-btn {
  width: 32px; height: 32px; display: flex; flex-direction: column;
  justify-content: center; gap: 5px; background: none; border: none; cursor: pointer;
}
.menu-btn span {
  display: block; height: 1px; background: white; transition: background 0.3s;
}
.site-header.scrolled .menu-btn span,
.site-header:not(.dark-nav) .menu-btn span { background: var(--fg); }

/* ─── モバイルメニュー ─── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(248,244,238,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.menu-close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--fg);
}
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav .nav-link { font-size: 1.4rem; letter-spacing: 0.15em; color: var(--fg); }

/* ─── ヒーローセクション ─── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #111;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width:100%; height:100%; object-fit:cover; opacity:0.6; mix-blend-mode:overlay; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #111 0%, rgba(17,17,17,0.4) 50%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px; max-width: 900px; margin-top: 80px;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem); color: white;
  letter-spacing: 0.1em; margin-bottom: 24px; line-height: 1.1;
}
.hero-title em { color: var(--primary); font-style: normal; }
.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem); color: rgba(255,255,255,0.8);
  margin-bottom: 40px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,0.2); overflow: hidden;
}
.scroll-dot {
  width: 1px; height: 24px; background: rgba(255,255,255,0.8);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%{transform:translateY(-24px)} 50%{transform:translateY(24px)} 100%{transform:translateY(48px)} }

/* ─── ページヒーロー（内部ページ） ─── */
.page-hero {
  position: relative; padding: 160px 24px 80px;
  text-align: center; overflow: hidden;
}
.hero-tall { padding-top: 200px; padding-bottom: 120px; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width:100%; height:100%; object-fit:cover; opacity:0.05; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,11,9,0.6), rgba(13,11,9,0.5), var(--dark));
}
.page-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-title {
  font-size: clamp(2rem, 5vw, 4.5rem); color: white;
  letter-spacing: 0.05em; margin-bottom: 20px; line-height: 1.2;
}
.page-title em { color: var(--amber); font-style: normal; }
.page-title.dark { color: var(--fg); }
.page-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.65); line-height: 1.9;
  max-width: 640px; margin: 0 auto;
}
.page-sub.dark { color: var(--muted-fg); }
.light-hero { background: var(--bg); }
.light-hero .page-hero-bg { display: none; }

/* ─── アイキャッチ（眉） ─── */
.eyebrow {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.primary { color: var(--primary); }
.eyebrow-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.eyebrow-row.center { justify-content: center; }
.eyebrow-line { width: 48px; height: 1px; background: var(--primary); flex-shrink: 0; }
.eyebrow-line.secondary { background: var(--secondary); }
.eyebrow-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-label.amber { color: var(--amber); }
.eyebrow-label.emerald { color: #34d399; }

/* ─── セクションタイトル ─── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 32px; line-height: 1.25;
}
.section-title.center { text-align: center; }
.section-title.light { color: white; }

/* ─── 2カラムレイアウト ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.two-col.reverse .col-img { order: 2; }
.two-col.reverse .col-text { order: 1; }
.img-portrait-wrap { position: relative; }
.img-portrait { aspect-ratio: 3/4; overflow: hidden; border-radius: 999px 999px 0 0; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.img-portrait img, .img-landscape img { width:100%; height:100%; object-fit:cover; }
.img-circle-accent {
  display: none;
  position: absolute; bottom: -32px; right: -32px;
  width: 192px; height: 192px; border-radius: 50%;
  overflow: hidden; border: 4px solid var(--bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.img-circle-accent img { width:100%; height:100%; object-fit:cover; }
@media (min-width: 768px) { .img-circle-accent { display: block; } }
.img-landscape { aspect-ratio: 4/3; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }

/* ─── POTTERY SECTION ─── */
.pottery-header { text-align: center; margin-bottom: 64px; }
.pottery-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.pottery-eyebrow-line { width: 48px; height: 1px; background: var(--primary); flex-shrink: 0; }
.pottery-eyebrow-label { font-size: 0.875rem; color: var(--primary); letter-spacing: 0.2em; text-transform: uppercase; }
.pottery-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: white; margin-bottom: 24px; line-height: 1.2; }
.pottery-desc { font-family: 'Noto Serif JP', serif; color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 2; max-width: 768px; margin: 0 auto; white-space: pre-line; }
.pottery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 768px; margin: 0 auto; }
@media (max-width: 767px) { .pottery-grid { grid-template-columns: 1fr; } }
.pottery-card { display: flex; flex-direction: column; }
.pottery-card-img { aspect-ratio: 3/4; overflow: hidden; border-radius: 999px 999px 0 0; background: #0d0b09; margin-bottom: 24px; }
.pottery-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pottery-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pottery-card-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); stroke: var(--primary); }
.pottery-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: white; }
.pottery-card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.8; }

/* ─── ボディテキスト ─── */
.body-text { font-size: 1rem; line-height: 2; color: var(--muted-fg); margin-bottom: 16px; white-space: pre-line; }
.body-text.light { color: rgba(255,255,255,0.7); }
.body-text.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ─── フィーチャーグリッド ─── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.feature { }
.feature-icon { margin-bottom: 12px; color: var(--primary); }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted-fg); line-height: 1.7; }
.feature-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-mark { color: var(--secondary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.feature-list h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-list p { font-size: 0.9rem; color: var(--muted-fg); }

/* ─── 引用カード ─── */
.quote-card {
  background: var(--card-bg); padding: 24px 28px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
  margin-top: -40px; margin-left: -48px; max-width: 340px;
  position: relative; z-index: 2;
}
.quote-text { font-size: 1.05rem; line-height: 1.8; margin-bottom: 12px; }
.quote-by { font-family: 'Cormorant Garamond', serif; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--secondary); }

/* ─── ボタン ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 14px 32px; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-outline-amber {
  background: transparent; border: 1px solid rgba(245,158,11,0.5);
  color: var(--amber); margin-top: 32px;
}
.btn-outline-amber:hover { border-color: var(--amber); }
.btn-primary {
  background: var(--amber); color: var(--dark);
  font-weight: 700;
}
.btn-primary:hover { background: #fbbf24; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── TIMELINE (React-style alternating cards) ─── */
.tl-section { background: var(--bg); min-height: 100vh; padding: 128px 24px 96px; }
.tl-inner { max-width: 896px; margin: 0 auto; }
.tl-header { text-align: center; margin-bottom: 96px; }
.tl-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(2rem, 6vw, 3.5rem); color: var(--fg); margin-bottom: 24px; line-height: 1.2;
}
.tl-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 32px;
}
.tl-intro { font-family: 'Noto Serif JP', serif; font-size: 1.05rem; color: var(--muted-fg); line-height: 1.9; max-width: 640px; margin: 0 auto; }
.tl-list { position: relative; }
.tl-center-line {
  position: absolute; left: 20px; top: 0; bottom: 0; width: 1px;
  background: var(--border);
}
.tl-item { display: flex; flex-direction: row; position: relative; margin-bottom: 64px; align-items: flex-start; }
.tl-dot {
  position: absolute; left: 20px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%); z-index: 10; top: 32px;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-card {
  background: white; padding: 32px; border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
  border: 1px solid rgba(214,204,194,0.4);
  margin-left: 48px; width: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}
.tl-card:hover { box-shadow: 0 20px 40px -8px rgba(0,0,0,0.14); transform: translateY(-2px); }
.tl-date {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.tl-period { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--fg); margin-bottom: 4px; }
.tl-sub { font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 16px; }
.tl-desc { font-family: 'Noto Serif JP', serif; font-size: 0.9rem; color: rgba(0,0,0,0.7); line-height: 1.9; }

@media (min-width: 768px) {
  .tl-center-line { left: 50%; transform: translateX(-50%); }
  .tl-dot { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .tl-item { align-items: center; }
  .tl-right .tl-card { margin-left: calc(50% + 24px); margin-right: 0; width: calc(50% - 24px); }
  .tl-left  .tl-card { margin-left: 0; margin-right: 0; width: calc(50% - 24px); text-align: right; }
}

/* ─── 統計グリッド ─── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-card { text-align: center; padding: 40px 24px; }
.stat-card.dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; color: var(--primary); line-height: 1; margin-bottom: 12px;
}
.stat-num.amber { color: var(--amber); }
.stat-num.emerald { color: #34d399; }
.stat-label { font-size: 0.85rem; color: var(--muted-fg); line-height: 1.6; }
.stat-label.light { color: rgba(255,255,255,0.6); }

/* ─── 比較バー ─── */
.comparison-bars { display: flex; flex-direction: column; gap: 20px; margin: 48px 0; }
.bar-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.bar-label { font-size: 0.9rem; color: var(--muted-fg); text-align: right; }
.bar-wrap { background: rgba(0,0,0,0.05); height: 40px; border-radius: 999px; overflow: hidden; }
.bar {
  height: 100%; display: flex; align-items: center; padding: 0 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 0.85rem;
  border-radius: 999px; transition: width 1s ease;
}
.bar-jomon  { background: #b45309; color: white; }
.bar-egypt  { background: #d97706; color: white; }
.bar-meso   { background: #7c6d5a; color: white; }
.bar-rome   { background: #7c3aed; color: white; }
.bar-china  { background: #dc2626; color: white; }

.note-box {
  background: rgba(0,0,0,0.05); border-left: 3px solid var(--primary);
  padding: 24px 32px; margin-top: 32px;
}
.note-box p { font-size: 0.95rem; line-height: 1.9; color: var(--muted-fg); }

.pct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.pct-item { text-align: center; }
.pct-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; color: var(--primary); line-height: 1; margin-bottom: 16px;
}
.pct-num.amber { color: var(--amber); }

/* ─── 精神世界ヒーロー ─── */
.seishin-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0d0b09; overflow: hidden;
}
.seishin-hero-bg { position: absolute; inset: 0; }
.seishin-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.seishin-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.50) 50%, #0d0b09 100%);
}
.seishin-hero-content {
  position: relative; z-index: 1; text-align: center; padding: 24px;
  max-width: 900px; margin: 0 auto;
}
.seishin-eyebrow {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 24px;
}
.seishin-title {
  font-family: 'Noto Serif JP', serif; font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: 0.1em;
  color: white; line-height: 1.25; margin-bottom: 24px;
}
.amber-text { color: var(--amber); }
.seishin-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.70); line-height: 1.9; max-width: 640px; margin: 0 auto;
}

/* ─── 精神世界イントロ統計 ─── */
.seishin-intro {
  background: #0d0b09; padding: 96px 24px; text-align: center;
}
.seishin-intro > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.seishin-intro-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem; color: rgba(255,255,255,0.60);
  line-height: 2; margin-bottom: 40px;
}
.seishin-inline-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px;
}
.seishin-stat { flex: 1; min-width: 120px; }
.seishin-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; color: var(--amber); margin-bottom: 8px; line-height: 1;
}
.seishin-stat-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

/* ─── 精神世界テーマ ─── */
.theme-section { position: relative; min-height: 70vh; display: flex; align-items: center; padding: 80px 0; }
.theme-bg { position: absolute; inset: 0; }
.theme-bg-img { width:100%; height:100%; object-fit:cover; }
.theme-bg-img.theme-bg-contain { object-fit: contain; }
.theme-bg-img.theme-bg-contain.left { object-position: left center; }
.theme-bg-img.theme-bg-contain.right { object-position: right center; }
.theme-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.70);
}
.theme-overlay.light-overlay {
  background: rgba(0,0,0,0.30);
}
.theme-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0; display: flex; }
.theme-inner.theme-reverse { justify-content: flex-end; }
.theme-glass-card {
  width: 100%; max-width: 580px;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; padding: 32px 40px;
}
@media (min-width: 768px) {
  .theme-glass-card { width: 75%; max-width: 960px; padding: 48px; }
}
.theme-text { max-width: 800px; }
.theme-quote {
  border-left: 2px solid var(--amber); padding-left: 20px; margin-top: 32px;
  font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.8; font-style: normal;
}

/* ─── 現代への接続 ─── */
.connections { display: flex; flex-direction: column; gap: 16px; margin: 48px 0; }
.conn-row {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 24px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  transition: border-color 0.3s;
}
.conn-row:hover { border-color: rgba(255,255,255,0.20); }
.conn-from, .conn-to { font-size: 0.9rem; flex: 1; font-family: 'Noto Serif JP', serif; }
.conn-from { color: rgba(255,255,255,0.7); }
.conn-to { text-align: right; }
.conn-arrow { font-size: 1.2rem; font-weight: 700; font-family: sans-serif; flex-shrink: 0; }

.connection-banner {
  text-align: center; padding: 40px 32px; margin: 48px 0;
  border: 1px solid rgba(245,158,11,0.20);
  border-radius: 16px;
  background: rgba(245,158,11,0.05);
}
.connection-banner p { font-family: 'Noto Serif JP', serif; font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 2; }

/* ─── クロージングクオート ─── */
.closing-quote { position: relative; padding: 120px 24px; text-align: center; }
.closing-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.closing-text {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: rgba(255,255,255,0.9); line-height: 2; margin-bottom: 24px;
}
.closing-text em { color: var(--amber); font-style: normal; }
.closing-by {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ─── 季節の祭祀 ─── */
.season-section { padding: 112px 0; }
.season-header { text-align: center; margin-bottom: 64px; }
.season-header-sub {
  font-family: 'Noto Serif JP', serif; font-size: 0.95rem;
  color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto; line-height: 1.9;
}
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .season-grid { grid-template-columns: 1fr; } }
.season-card {
  border: 1px solid rgba(255,255,255,0.10); border-radius: 12px;
  padding: 24px; background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}
.season-card:hover { background: rgba(255,255,255,0.06); }
.season-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.season-label {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber);
  display: block;
}
.season-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: white; }
.season-body { font-family: 'Noto Serif JP', serif; font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.9; }

/* ─── 接続サブタイトル ─── */
.connection-subtitle {
  font-family: 'Noto Serif JP', serif; font-size: 0.95rem;
  color: rgba(255,255,255,0.5); max-width: 560px; margin: -16px auto 32px;
  line-height: 1.9; text-align: center;
}

/* ─── 展示施設ヒーロー ─── */
.shisetsu-hero {
  padding: 128px 24px 64px; text-align: center;
  max-width: 80rem; margin: 0 auto;
}
.shisetsu-eyebrow {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem;
  color: var(--primary); letter-spacing: 0.3em; text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.shisetsu-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.75rem); color: var(--fg);
  letter-spacing: 0.05em; margin-bottom: 24px; line-height: 1.2;
}
.shisetsu-sub {
  font-family: 'Noto Serif JP', serif; font-size: 1.1rem;
  color: var(--muted-fg); max-width: 42rem; margin: 0 auto; line-height: 1.9;
}

/* ─── 展示施設フィルター ─── */
.region-filter {
  position: sticky; top: 60px; z-index: 50;
  background: rgba(248,246,243,0.90); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
  padding: 6px 16px; font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted-fg); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-count {
  text-align: center; font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; color: var(--muted-fg); margin-top: 10px;
}

.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility-card {
  background: white;
  border: 1px solid rgba(214,204,194,0.4);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  padding: 24px; display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.facility-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.facility-card.hidden { display: none; }
.facility-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.facility-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(184,76,42,0.08); color: var(--primary); padding: 3px 8px;
}
.ext-link { color: var(--muted-fg); display: inline-flex; align-items: center; transition: color 0.2s; }
.ext-link:hover { color: var(--primary); }
.facility-name { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.facility-loc {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 16px; line-height: 1.5;
}
.facility-desc { font-size: 0.85rem; color: var(--muted-fg); line-height: 1.8; flex: 1; }

/* ─── お問い合わせフォーム ─── */
.form-divider {
  height: 1px; margin: 40px 0;
  background: linear-gradient(to right, transparent, rgba(245,158,11,0.4), transparent);
}
.contact-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.form-group label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px;
}
.required {
  font-size: 0.6rem; letter-spacing: 0.1em; color: var(--amber);
}
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 12px 16px; font-family: 'Noto Serif JP', serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.3s; resize: none; width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(245,158,11,0.5); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.submit-icon { font-size: 0.9rem; }

.form-success {
  text-align: center; padding: 80px 24px;
}
.form-success.hidden { display: none; }
.success-icon {
  font-size: 3rem; color: var(--amber); margin-bottom: 24px;
}
.form-success h2 { font-size: 2rem; color: white; margin-bottom: 12px; }
.form-success p { color: rgba(255,255,255,0.6); }
.form-error {
  padding: 12px 16px; margin-bottom: 24px;
  border: 1px solid rgba(239,68,68,0.3); background: rgba(239,68,68,0.1);
  color: #f87171; font-size: 0.9rem;
}
.form-error.hidden { display: none; }

/* ─── フッター ─── */
.site-footer { background: var(--dark2); color: rgba(255,255,255,0.5); padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-logo { font-family: 'Zen Old Mincho', serif; font-size: 2rem; color: white; margin-bottom: 8px; letter-spacing: 0.15em; }
.footer-sub { font-family: 'Cormorant Garamond', serif; font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--primary); margin-bottom: 20px; }
.footer-desc { font-size: 0.85rem; max-width: 320px; line-height: 1.8; color: rgba(255,255,255,0.4); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; text-align: right; margin-bottom: 40px; }
.footer-nav a { font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-nav a:hover { color: white; }
.footer-operator { font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-operator a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; }
.footer-operator a:hover { color: white; }
.footer-copy { font-family: 'Cormorant Garamond', serif; font-size: 0.7rem; letter-spacing: 0.2em; }

/* ─── フェードイン アニメーション ─── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.from-left  { transform: translateX(40px); }
.fade-in.from-right { transform: translateX(-40px); }
.fade-in.from-left.visible, .fade-in.from-right.visible { transform: translateX(0); }

/* ─── レスポンシブ ─── */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-controls { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-img { order: unset; }
  .two-col.reverse .col-text { order: unset; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 120px 1fr; }
  .pct-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  .footer-nav { text-align: left; }
  .conn-row { grid-template-columns: 1fr; gap: 8px; }
  .conn-from { text-align: left; }
  .quote-card { margin: 24px 0 0 0; max-width: 100%; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .filter-btns { gap: 6px; }
  .filter-btn { padding: 5px 10px; font-size: 0.65rem; }
}
