/* =========================================================
   talk.css — カタカムナトークショー詳細ページ
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:       #0d0520;
  --bg-mid:        #160a35;
  --accent:        #e8d5a0;
  --accent-glow:   #c9a84c;
  --text:          #f0e8d8;
  --text-dim:      rgba(220,200,255,0.72);
  --purple-glow:   rgba(180,140,255,0.12);
  --font-jp:       'Shippori Mincho B1', serif;
  --font-en:       'Cinzel', serif;
  --font-body:     'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.9;
  overflow-x: hidden;
}

/* ---- 背景画像（固定・ページ全体） ---- */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  display: block;
}

/* ---- BACK NAV ---- */
.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 28px;
  background: linear-gradient(to bottom, rgba(13,5,32,0.85), transparent);
  pointer-events: none;
}
.back-link {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* ---- OVERLAY ---- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,5,32,0.52);
  z-index: 0;
}
.overlay--hero   { background: linear-gradient(to bottom, rgba(13,5,32,0.3) 0%, rgba(13,5,32,0.72) 100%); }
.overlay--mid    { background: rgba(13,5,32,0.60); }
.overlay--deep   { background: rgba(13,5,32,0.72); }
.overlay--climax { background: rgba(13,5,32,0.82); }

/* ---- SCENE 共通 ---- */
.scene {
  position: relative;
  z-index: 10;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.scene-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 48px;
  width: 100%;
}
.scene-inner--center { text-align: center; max-width: 640px; }
.scene-inner--with-deco { display: flex; gap: 48px; align-items: center; max-width: 900px; }

.scene-title {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(13,5,32,0.9), 0 4px 32px rgba(13,5,32,0.7);
}
.scene-title--lg {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

/* ---- SCROLL REVEAL ---- */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.sr.visible { opacity: 1; transform: none; }

/* ---- SCROLL HINT ---- */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  opacity: 0.45;
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   1. HERO
   ========================================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 120px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 60px;
  max-width: 800px;
  animation: heroIn 1.2s ease 0.2s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-tagline {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.85;
}

.hero-catch {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(13,5,32,0.9);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-shadow: 0 1px 10px rgba(13,5,32,0.8);
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-capacity {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

/* =========================================================
   2. 記憶
   ========================================================= */
#memory .scene-inner { text-align: center; max-width: 600px; }

.memory-lines { display: flex; flex-direction: column; gap: 2em; margin-top: 8px; }

.memory-line {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: calc(var(--i) * 0.28s + 0.2s);
  text-shadow: 0 1px 10px rgba(13,5,32,0.9);
}
.memory-line.visible { opacity: 1; transform: none; }
.memory-line--break {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--text-dim);
  margin-top: 1em;
}

/* =========================================================
   3. 謎かけ
   ========================================================= */
#mystery { min-height: 100vh; }
#mystery .scene-inner { max-width: 800px; }

.mystery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 60px;
}

.mystery-card {
  border: 1px solid rgba(232,213,160,0.25);
  background: rgba(13,5,32,0.6);
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i) * 0.2s);
  backdrop-filter: blur(4px);
}
.mystery-card.visible { opacity: 1; transform: none; }

.mystery-card-text {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 2;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(13,5,32,0.8);
}

.mystery-closing {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(201,168,76,0.5), 0 2px 16px rgba(13,5,32,0.9);
  opacity: 0;
  transition: opacity 1.5s ease;
}
.mystery-closing.visible { opacity: 1; }

/* =========================================================
   4. カタカムナ
   ========================================================= */
.katakamuna-deco {
  flex-shrink: 0;
  width: clamp(120px, 20vw, 200px);
  height: clamp(120px, 20vw, 200px);
  opacity: 0.6;
  animation: rotateSlow 40s linear infinite;
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.katakamuna-text { flex: 1; }

.kata-body {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 2;
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(13,5,32,0.9);
}
.kata-body--em {
  color: var(--text);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem) !important;
  font-weight: 500;
}

/* =========================================================
   5. 続きは当日に
   ========================================================= */
.scene--climax { min-height: 90vh; }

.climax-body {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 2;
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(13,5,32,0.9);
}
.climax-body--em {
  color: var(--accent);
  font-size: clamp(1rem, 1.8vw, 1.15rem) !important;
  font-weight: 500;
}

/* =========================================================
   6. YouTube
   ========================================================= */
.youtube-card {
  border: 0.5px solid rgba(232,213,160,0.3);
  background: rgba(232,213,160,0.04);
  padding: 48px 40px;
  backdrop-filter: blur(8px);
}
.youtube-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}
.youtube-body {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 2;
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(13,5,32,0.9);
}
.youtube-note {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  line-height: 2;
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(13,5,32,0.9);
}

/* =========================================================
   7. 登壇者
   ========================================================= */
.speakers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.speaker-card {
  border: 1px solid rgba(232,213,160,0.15);
  background: rgba(13,5,32,0.55);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.speaker-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.speaker-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.speaker-card:hover .speaker-img-wrap img { transform: scale(1.04); }

.speaker-body { padding: 24px; }

.speaker-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.85;
}
.speaker-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.speaker-bio {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* =========================================================
   8. CTA
   ========================================================= */
.scene--cta { min-height: 90vh; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px auto 36px;
  text-align: left;
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(232,213,160,0.15);
  font-size: 0.9rem;
  vertical-align: top;
}
.info-table th {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  width: 100px;
}
.info-table small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}

.cta-price {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.cta-remain {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 32px;
  min-height: 1.5em;
  letter-spacing: 0.1em;
}
.cta-remain.low-stock { color: #FFB347; }
.cta-remain.sold-out  { color: #ff7070; }

/* ---- ボタン ---- */
.btn-cta {
  display: inline-block;
  padding: 18px 64px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  margin-bottom: 8px;
}
.btn-cta:hover { background: var(--accent); color: var(--bg-deep); }
.btn-cta[disabled] { opacity: 0.35; pointer-events: none; }

.btn-cta--glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232,213,160,0.3), 0 0 20px rgba(232,213,160,0.1); }
  50%       { box-shadow: 0 0 16px rgba(232,213,160,0.6), 0 0 40px rgba(232,213,160,0.25); }
}

.btn-back {
  display: block;
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.38;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.75; }

/* =========================================================
   FOOTER
   ========================================================= */
.talk-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 56px 24px;
  background: rgba(13,5,32,0.9);
  border-top: 1px solid rgba(232,213,160,0.1);
  font-family: var(--font-body);
  font-size: 0.78rem;
  opacity: 0.45;
  line-height: 2.4;
  letter-spacing: 0.1em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-content       { padding: 0 28px; }
  .scene-inner        { padding: 80px 28px; }
  .scene-inner--with-deco { flex-direction: column; }
  .katakamuna-deco    { width: 100px; height: 100px; }
  .mystery-cards      { grid-template-columns: 1fr; }
  .speakers-grid      { grid-template-columns: 1fr; }
  .youtube-card       { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .hero-content { padding: 0 20px; }
  .scene-inner  { padding: 64px 20px; }
}

/* ---- 著書リスト ---- */
.speaker-books {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(232,213,160,0.12);
}
.speaker-books-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.7;
}
.speaker-books ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.speaker-books li {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}
