/* ==========================================
   新月魂覚醒ヒーリング 参加者限定サイト
   デザインシステム（穏やか・明るめトーン＆カードレイアウト）
   ========================================== */

:root {
  /* 全体の背景：以前よりトーンを上げ、穏やかで安心感のある紫〜紺色 */
  --bg-color-top: #151028;
  --bg-color-bottom: #241c45;
  
  /* テキストカラー */
  --text-main: rgba(245, 240, 255, 0.95);
  --text-dark: rgba(220, 210, 245, 0.85);

  /* アクセントカラー（温かみ・希望のあるゴールドや明るい紫） */
  --color-text-glow: rgba(230, 220, 255, 1);
  --act2-accent: rgba(225, 210, 255, 1);
  --act2-warm: rgba(235, 210, 160, 0.85);

  /* その他装飾 */
  --color-silver: rgba(210, 205, 230, 0.4);
  --color-divider-warm: rgba(220, 200, 150, 0.2);

  /* Typography */
  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  
  /* Spacing */
  --section-padding: clamp(80px, 12vh, 140px);
  --section-padding-tight: clamp(60px, 9vh, 100px);
  --content-max-width: 640px;
  --content-padding: 0 5%;

  /* Animation */
  --ease-out-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-color-top) 0%, var(--bg-color-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ==========================================
   OPENING DOOR ANIMATION (光の扉)
   ========================================== */
.opening-door {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  pointer-events: none; /* 下の要素を触れるようにする */
}

/* ドア本体 */
.opening-door__left,
.opening-door__right {
  width: 50%;
  height: 100%;
  background: #08060f; /* 扉の向こう側の漆黒 */
  position: relative;
  will-change: transform;
  animation: doorOpen 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 2s; /* 光が溢れたあとに開く */
  pointer-events: auto; /* 開くまでは触れない状態を作るため */
}
.opening-door__left { transform-origin: left; }
.opening-door__right { transform-origin: right; }

/* 扉の隙間から漏れる光の線 */
.opening-door__light-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: #fff;
  opacity: 0;
  box-shadow: 0 0 15px 5px rgba(255, 240, 200, 0.5), 0 0 30px 10px rgba(220, 200, 255, 0.3);
  animation: lightLine 1.5s ease-in-out forwards;
  animation-delay: 0.5s;
}

/* 扉が開く時の光の拡散（フラッシュ） */
.opening-door__light-burst {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 100%;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  animation: lightBurst 2s ease-in-out forwards;
  animation-delay: 1.8s;
  pointer-events: none;
}

@keyframes lightLine {
  0% { opacity: 0; height: 0; top: 50%; }
  50% { opacity: 1; height: 100%; top: 0; }
  90% { opacity: 1; width: 4px; box-shadow: 0 0 30px 10px rgba(255, 240, 200, 0.9), 0 0 60px 20px rgba(220, 200, 255, 0.8); }
  100% { opacity: 0; }
}

@keyframes doorOpen {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); pointer-events: none; visibility: hidden; }
}

@keyframes lightBurst {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  30% { box-shadow: 0 0 150px 80px rgba(255, 245, 220, 0.8); background: rgba(255, 255, 255, 0.5); width: 20px; opacity: 1; }
  100% { box-shadow: 0 0 500px 300px rgba(255, 245, 220, 0); background: transparent; width: 100vw; opacity: 0; }
}

/* ヒーローコンテントのアニメーション遅延（扉が開いてからふわっと） */
.animation-delay-hero {
  animation-delay: 2.5s !important;
  transition-delay: 2.5s !important;
}


/* ==========================================
   GLASS CARD (招待状風フレーム)
   ========================================== */
.glass-card {
  position: relative;
  background: rgba(18, 14, 35, 0.45); /* 半透明のベース */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 200, 160, 0.25); /* 薄い金の縁取り */
  border-radius: 8px; /* 角を少し丸める */
  padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02);
  margin: 0 auto;
  width: 100%;
}

/* カードの四隅の小さなオーナメント（金色の点） */
.glass-card::before,
.glass-card::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  pointer-events: none;
}

/* 上部の角の点 */
.glass-card::before {
  background: 
    radial-gradient(circle at 4px 4px, rgba(220, 200, 160, 0.6) 2px, transparent 3px) 4px 4px / 12px 12px no-repeat,
    radial-gradient(circle at 4px 4px, rgba(220, 200, 160, 0.6) 2px, transparent 3px) calc(100% - 16px) 4px / 12px 12px no-repeat;
}

/* 下部の角の点 */
.glass-card::after {
  background: 
    radial-gradient(circle at 4px 4px, rgba(220, 200, 160, 0.6) 2px, transparent 3px) 4px calc(100% - 16px) / 12px 12px no-repeat,
    radial-gradient(circle at 4px 4px, rgba(220, 200, 160, 0.6) 2px, transparent 3px) calc(100% - 16px) calc(100% - 16px) / 12px 12px no-repeat;
}

.invitation-card {
  max-width: 580px;
}

.final-card {
  max-width: 500px;
}

/* ==========================================
   PARTICLES (既存の流用)
   ========================================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* opening-doorより下にする */
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 220, 255, 0.35) 0%, transparent 70%);
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(45vh) translateX(var(--drift, 20px)) scale(0.9); }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(calc(var(--drift, 20px) * -0.5)) scale(1.2); opacity: 0; }
}

/* ==========================================
   FADE IN ANIMATION
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.6s var(--ease-out-gentle), transform 1.6s var(--ease-out-gentle);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   SECTION BASE
   ========================================== */
.section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-tight) 0;
}

.section__inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
  text-align: center;
  position: relative;
  z-index: 2;
}

.section__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 4.8vw, 24px);
  line-height: 2;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  color: var(--color-text-glow);
}

.headline-sub {
  font-size: clamp(16px, 4vw, 19px);
  margin-top: 20px;
}

.section__text {
  font-size: clamp(14px, 3.8vw, 15px);
  line-height: 2.2;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section__text--small {
  font-size: clamp(12.5px, 3.4vw, 13px);
  opacity: 0.8;
}

.text-space {
  margin-bottom: 30px;
}

.section__spacer { height: 40px; }
.section__spacer--small { height: 20px; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  text-align: center;
  padding: 60px 0;
  background-color: var(--bg-color-bottom);
  width: 100%;
}

.footer__inner {
  width: 100%;
  text-align: center;
}

.footer__name {
  font-family: var(--font-serif);
  color: rgba(200, 190, 230, 0.6);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ==========================================
   KEY MESSAGE
   ========================================== */
.key-message {
  font-size: clamp(16px, 4vw, 17px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.08em;
  margin: 16px 0;
  color: rgba(240, 230, 255, 0.95);
}

.key-message--warm {
  font-size: clamp(16px, 4.2vw, 18px);
  color: rgba(230, 215, 255, 0.95);
}

.key-message--gold {
  color: #eedc9a;
  text-shadow: 0 0 20px rgba(220, 195, 130, 0.15);
}

.key-message--glow {
  font-size: clamp(18px, 4.8vw, 21px);
  color: var(--color-text-glow);
  text-shadow: 0 0 25px rgba(220, 200, 255, 0.3);
  padding: 20px 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 !important;
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(21, 16, 40, 0.2) 0%,
    rgba(21, 16, 40, 0.4) 40%,
    var(--bg-color-top) 90%,
    var(--bg-color-bottom) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
}

.hero__lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 25px rgba(230, 210, 255, 0.4);
  margin-bottom: 25px;
}

.hero__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(220, 200, 160, 0.4) 50%, transparent 100%);
  margin: 0 auto 25px;
}

.hero__sub {
  font-size: clamp(14px, 3.6vw, 15px);
  line-height: 2.2;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.hero__guide {
  font-size: clamp(13px, 3.5vw, 14px);
  line-height: 2;
  color: rgba(220, 215, 245, 0.8);
  margin-top: 10px;
  letter-spacing: 0.06em;
}

.hero__content::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 35px;
  background: linear-gradient(180deg, var(--color-silver) 0%, transparent 100%);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scaleY(1.2); }
}

/* ==========================================
   VIDEO EMBED
   ========================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 200, 255, 0.1);
  margin: 30px auto 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================
   BENEFIT / GUIDANCE LIST
   ========================================== */
.benefit-list {
  margin: 10px auto;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(13.5px, 3.6vw, 14.5px);
  line-height: 2.2;
  color: var(--act2-accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.benefit-list li::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  opacity: 0.8;
}

/* ==========================================
   GUIDE SECTION (背景オーバーレイ)
   ========================================== */
.section--guide {
  overflow: hidden;
}

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

.detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  mix-blend-mode: hard-light;
}

.detail__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--bg-color-bottom) 0%,
    rgba(36, 28, 69, 0.6) 50%,
    var(--bg-color-bottom) 100%
  );
}

/* ==========================================
   UTILITY
   ========================================== */
@media (max-width: 767px) {
  .pc-only { display: none !important; }
}
@media (min-width: 768px) {
  .sp-only { display: none !important; }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  text-align: center;
  padding: 60px 0;
  background-color: var(--bg-color-bottom);
  width: 100%;
}

.footer__inner {
  width: 100%;
  text-align: center;
}

.footer__name {
  font-family: var(--font-serif);
  color: rgba(200, 190, 230, 0.6);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
}
