/* award-site-effects デモ
   高級エディトリアルの型（mvc-properties.com 系）：
   - 大きなセリフ体の見出し＋字間を広げた小さなラベル
   - 余白をたっぷり、本文は短く
   - アイボリー基調＋墨色、アクセントは一色だけ */

:root {
  --ivory: #f6f4ef;
  --paper: #fdfcfa;
  --ink: #191a1e;
  --ink-soft: #45464c;
  --muted: #8a867c;
  --line: #dcd8cf;
  --night: #0c0d11;
  --night-soft: #a9adba;
  --accent: #a98d55;
  --serif-en: "Cormorant Garamond", serif;
  --serif-jp: "Shippori Mincho", serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---- 共通パーツ ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.en-italic {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.container { width: min(1120px, 88vw); margin: 0 auto; }

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero-coast.jpg") center 35% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 18s ease-out forwards;
}
@keyframes heroDrift { to { transform: scale(1.0); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.42) 0%, rgba(10, 12, 16, 0.16) 40%, rgba(10, 12, 16, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 6vw; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; }
.hero-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(34px, 6.2vw, 76px);
  line-height: 1.42;
  letter-spacing: 0.06em;
}
.hero-sub {
  margin-top: 30px;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(rgba(255,255,255,0.9), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---- エディトリアル章 ---- */
.editorial {
  position: relative;
  padding: clamp(90px, 14vw, 170px) 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--ivory);
}
.chapter-head { max-width: 620px; }
.chapter-head .eyebrow { margin-bottom: 22px; }
.chapter-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.chapter-lead {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 34em;
}
.editorial-grid {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.editorial-grid figure { position: relative; }
.editorial-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.editorial-grid figure:nth-child(2) img { aspect-ratio: 3 / 4; }
.editorial-grid figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson-list {
  margin-top: clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.lesson-row {
  display: grid;
  grid-template-columns: 88px 1fr 1.4fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.lesson-no {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.lesson-name { font-family: var(--serif-jp); font-size: 19px; letter-spacing: 0.06em; }
.lesson-desc { color: var(--ink-soft); font-size: 14px; }

/* ---- 無限の回廊 ---- */
.tunnel-wrap { position: relative; height: 520vh; background: #fff; }
.tunnel-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.tunnel-sticky canvas { width: 100%; height: 100%; display: block; }
.tunnel-caption {
  position: absolute;
  top: clamp(24px, 5vh, 56px); left: 6vw;
  z-index: 2;
}
.tunnel-caption .eyebrow { margin-bottom: 12px; }
.tunnel-caption h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.08em;
}
.tunnel-hint {
  position: absolute;
  bottom: clamp(24px, 5vh, 48px); left: 0; right: 0;
  text-align: center;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}

/* ---- 深度の肖像 ---- */
.depth {
  background: var(--night);
  color: #eceff5;
  padding: clamp(100px, 15vw, 190px) 0;
}
.depth .chapter-head { margin-bottom: clamp(48px, 7vw, 90px); }
.depth .eyebrow { color: #6d7382; }
.depth .chapter-title { color: #f2f3f6; }
.depth .chapter-lead { color: var(--night-soft); }
.depth-stage {
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.depth-canvas-frame { position: relative; }
.depth-canvas-frame::before {
  content: "";
  position: absolute; inset: -14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
#depthCanvas {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
}
.depth-note { max-width: 21em; }
.depth-note .en-italic {
  display: block;
  font-size: clamp(24px, 2.6vw, 34px);
  color: #cfd4de;
  line-height: 1.5;
  margin-bottom: 22px;
}
.depth-note p { color: var(--night-soft); font-size: 14px; }

/* ---- フッター（霧） ---- */
.footer {
  position: relative;
  background: var(--night);
  color: #f0f1f5;
  min-height: 88svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
#fogCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; padding: 120px 6vw; }
.footer-inner .eyebrow { color: #6d7382; margin-bottom: 26px; }
.footer-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 54px);
  letter-spacing: 0.06em;
  line-height: 1.55;
}
.footer-meta {
  margin-top: 60px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #62687a;
  line-height: 2.4;
  text-transform: uppercase;
}
.footer-meta a { color: #8d93a5; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }

/* ---- レスポンシブ ---- */
@media (max-width: 760px) {
  .editorial-grid { grid-template-columns: 1fr; align-items: start; }
  .lesson-row { grid-template-columns: 56px 1fr; }
  .lesson-desc { grid-column: 2; }
  .depth-stage { grid-template-columns: 1fr; }
  .tunnel-wrap { height: 420vh; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: none; }
  .hero-scroll::after { animation: none; }
}
