/* serenity_journey.css */

:root {
  --serenity-primary: #b59550; /* 親ページ共通：品格あるゴールド */
  --serenity-accent: #3b82f6; /* 知的で澄んだ青 */
  --serenity-accent-light: #eff6ff;
  --serenity-text: #1a252f;
  --serenity-text-light: #64748b;
  --serenity-bg: #fdfaf5; /* より温かみのある白に変更 */
  --serenity-warmth: #ff9d00; /* 応援の火を灯すオレンジゴールド */
  --prism-gradient: linear-gradient(
    135deg,
    rgba(255, 183, 77, 0.15) 0%, /* 暖色系に変更 */
    rgba(196, 181, 253, 0.15) 100%
  );
}

/* サイト共通のオーロラ風背景装飾 */
.serenity-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--serenity-bg);
  overflow: hidden;
}

.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: blob-move 20s infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(147, 197, 253, 0.3);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(196, 181, 253, 0.3);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes blob-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* 呼吸に連動する背景：息を吐く時に少し広がり、色が淡くなる */
.serenity-bg-wrapper.breathing-out .blob-1 {
  transform: translate(30px, 30px) scale(1.3);
  opacity: 0.4;
  transition: all 4s ease-in-out;
}
.serenity-bg-wrapper.breathing-out .blob-2 {
  transform: translate(-30px, -30px) scale(1.3);
  opacity: 0.4;
  transition: all 4s ease-in-out;
}

/* 波紋：黄金の光の輪 */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(181, 149, 80, 0.15);
  background: radial-gradient(
    circle,
    rgba(253, 251, 235, 0.5),
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0);
  animation: gold-ripple 12s infinite ease-out;
}

@keyframes gold-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Hero Section: 明るく開放的な空、黄金のタイトル */
.hero-section {
  padding: 10rem 2rem 8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0 0 60px 60px;
  margin-bottom: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px rgba(181, 149, 80, 0.05);
}

.hero-title {
  font-family: "Kaisei Opti", serif;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  background: linear-gradient(135deg, var(--serenity-primary) 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--serenity-text-light);
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* Content Block: グラスモフィズムと豊かな余白 */
.content-block {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4rem 3.5rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
  margin-bottom: 4rem;
  color: var(--serenity-text);
  line-height: 2.2;
}

.chapter-title {
  font-family: "Kaisei Opti", serif;
  font-size: 1.8rem;
  color: var(--serenity-primary);
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-sub-title {
  font-family: "Kaisei Opti", serif;
  font-size: 1.4rem;
  color: var(--serenity-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(181, 149, 80, 0.15);
  padding-bottom: 0.8rem;
}

.section-sub-title i {
  font-size: 1.2rem;
  opacity: 0.8;
}

.chapter-title::before,
.chapter-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--serenity-primary),
    transparent
  );
  opacity: 0.3;
}

/* Visual: プレミアム・プリズム外枠ビジュアル */
.lake-ripple-visual {
  position: relative;
  width: 100%;
  max-width: 850px;
  height: 400px;
  margin: 5rem auto;
  border-radius: 50px;
  overflow: hidden;
  /* 外枠に色彩を配置 */
  background: 
    radial-gradient(circle at 20% 80%, rgba(186, 230, 253, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(187, 247, 208, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(254, 240, 138, 0.4) 0%, transparent 50%),
    #ffffff;
  box-shadow: 
    0 20px 40px rgba(181, 149, 80, 0.06),
    inset 0 0 60px rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

/* 水面のレイヤー：内側の質感 */
.water-surface {
  position: absolute;
  inset: -50px;
  background: rgba(255, 255, 255, 0.2);
  filter: url(#liquid-filter);
  opacity: 0.6;
  z-index: -1;
}

/* 降り注ぐ聖なる光 */
.light-ray {
  position: absolute;
  top: -20%;
  left: 10%;
  width: 300px;
  height: 150%;
  background: linear-gradient(
    to bottom,
    rgba(181, 149, 80, 0.12),
    transparent
  );
  transform: rotate(30deg);
  filter: blur(60px);
  pointer-events: none;
  animation: light-shimmer 12s infinite alternate ease-in-out;
}

@keyframes light-shimmer {
  from {
    opacity: 0.3;
    transform: rotate(25deg) translateX(-30px);
  }
  to {
    opacity: 0.6;
    transform: rotate(35deg) translateX(30px);
  }
}

/* 黄金の火花（応援のエネルギー） */
.gold-sparks {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(181, 149, 80, 0.3) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, black, transparent);
  opacity: 0.3;
  animation: sparks-float 20s infinite linear;
}

@keyframes sparks-float {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -1000px;
  }
}

/* 中央のプレミアム・グラス（不透明な白に変更） */
.visual-placeholder {
  position: relative;
  z-index: 10;
  text-align: center;
  background: #ffffff; /* 完全に不透明な白 */
  padding: 3.5rem 5rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 20px 45px rgba(181, 149, 80, 0.08);
}

.icon-orb {
  width: 85px;
  height: 85px;
  margin: 0 auto 1.8rem;
  background: linear-gradient(135deg, #ffffff, #fdfbf0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 149, 80, 0.3);
  box-shadow: 0 8px 25px rgba(181, 149, 80, 0.15);
  animation: orb-float 6s infinite ease-in-out;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.icon-orb i {
  font-size: 2.6rem;
  color: #b59550;
  filter: drop-shadow(0 0 8px rgba(181, 149, 80, 0.3));
}

.visual-placeholder p {
  font-family: "Kaisei Opti", serif;
  font-size: 1.35rem;
  color: #5a4a2a; /* 品格のあるゴールドブラウン */
  line-height: 2;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
}


/* 没頭のアニメーション：今に集中する力 */
.immersion-visual-container {
  height: 300px;
  margin: 4rem 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  position: relative;
  overflow: hidden; /* ノイズを外に逃がさない */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(181, 149, 80, 0.1);
}

.focus-message {
  position: absolute;
  top: 30px;
  font-family: "Kaisei Opti", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #8c6d1f;
  background: linear-gradient(135deg, var(--serenity-primary) 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  width: 90%;
  transition: opacity 0.4s ease;
  z-index: 30; /* 霧(20)よりも手前に */
}

/* 霧の演出 */
.immersion-visual-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  z-index: 20;
}

.immersion-visual-container.misty::after {
  opacity: 0.95; /* 霧をより濃くして完全にリセット */
}

/* 霧の時のメッセージ：中央に大きく配置 */
.immersion-visual-container.misty .focus-message {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  width: 85%;
  line-height: 1.5;
  transition: all 0.8s ease-in-out;
}

/* 霧の時はシールドとアイコンを完全に隠す */
.immersion-visual-container.misty .focus-zone {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.focus-zone {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.focus-shield {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--serenity-primary);
  border-radius: 50%;
  animation: shield-rotate 10s linear infinite;
}

.focus-shield::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px dashed var(--serenity-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: shield-rotate 15s linear infinite reverse;
}

@keyframes shield-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.focus-icons {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.focus-icon-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--serenity-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.focus-icon-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* 結論時のアイコンを特別に */
.focus-icon-item[data-type="done"] {
  color: var(--serenity-warmth);
  filter: drop-shadow(0 0 15px rgba(255, 157, 0, 0.4));
}

.focus-label {
  margin-top: 2rem;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  color: var(--serenity-primary);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* 記憶のノイズ（過去の断片） */
.memory-noise {
  position: absolute;
  padding: 0.8rem 1.2rem;
  background: white;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #94a3b8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1;
}

@keyframes noise-drift {
  0% {
    transform: translate(var(--start-x), var(--start-y)) scale(0.8);
    opacity: 0;
  }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(1.1);
    opacity: 0;
  }
}

/* 自動的に広がる黄金の波紋 */
.lake-ripple-visual .ripple-effect {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(181, 149, 80, 0.3);
  pointer-events: none;
  animation: auto-ripple 6s infinite;
}

@keyframes auto-ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

/* JSで追加される手動波紋 */
.interactive-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(181, 149, 80, 0.2) 0%,
    transparent 70%
  );
  border: 1px solid rgba(181, 149, 80, 0.4);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: manual-ripple 2s ease-out forwards;
}

@keyframes manual-ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Breathing: 黄金の光の鼓動 */
.breathing-guide-container {
  padding: 6rem 2rem;
  text-align: center;
}

.breathing-circle-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fef3c7, var(--serenity-primary));
  opacity: 0.2;
  border-radius: 50%;
  animation: breathing 8s infinite ease-in-out;
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

.breathing-text {
  font-family: "Kaisei Opti", serif;
  font-size: 1.6rem;
  color: var(--serenity-primary);
  font-weight: 700;
}

/* Sensory Grid: 3Dフリップカード */
.sensory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  perspective: 1000px; /* 3D効果に必須 */
  position: relative; /* メッセージの基準 */
}

/* カード集結アニメーション */
.sensory-grid.is-gathering .sensory-card {
  /* 各カードをグリッド中央付近へ移動させる計算（JSで具体的数値を制御するか、CSSで近似値を設定） */
  pointer-events: none;
}

/* 中央に表示されるメッセージ */
.final-sensory-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  font-family: "Kaisei Opti", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #7a5a14;
  text-align: center;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
  text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 10px rgba(181, 149, 80, 0.2);
}

.sensory-grid.is-gathering .final-sensory-message {
  opacity: 1;
}

.sensory-card {
  height: 220px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.sensory-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* 裏側を見えなくする */
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(181, 149, 80, 0.1);
}

.card-front {
  background: white;
  color: var(--serenity-primary);
}

.card-back {
  background: linear-gradient(135deg, #fffcf0 0%, #fff4d1 100%);
  color: #8c6d1f;
  transform: rotateY(180deg);
  border: 1px solid var(--serenity-primary);
}

.card-front i {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.card-back p {
  font-family: "Kaisei Opti", serif;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 700;
}

.card-front p {
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  margin: 0;
}

/* Sensory Sparkles (保持) */
.sensory-card {
  position: relative;
}

.sparkle-particle {
  position: absolute;
  background: var(--serenity-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  animation: sparkle-fly 1s ease-out forwards;
}

@keyframes sparkle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--move-x), var(--move-y)) scale(0);
    opacity: 0;
  }
}

/* 気づきの波紋：カードから広がる演出 */
.discovery-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(181, 149, 80, 0.4), transparent 70%);
  border: 1px solid rgba(181, 149, 80, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%) scale(0);
  animation: discovery-grow 2s ease-out forwards;
}

@keyframes discovery-grow {
  to {
    transform: translate(-50%, -50%) scale(100);
    opacity: 0;
  }
}


/* Step-by-Step: 黄金の軌跡 */
.guide-steps-container {
  max-width: 600px;
  margin: 4rem auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0;
}

/* 垂直の進行ライン */
.progress-line-container {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 40px; /* アイコンの中央 */
  width: 2px;
  background: rgba(181, 149, 80, 0.1);
  z-index: 1;
}

.progress-line {
  width: 100%;
  height: 0%; /* JSで制御 */
  background: linear-gradient(to bottom, var(--serenity-primary), var(--serenity-warmth));
  box-shadow: 0 0 15px var(--serenity-primary);
  transition: height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.step-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: white;
  border: 2px solid rgba(181, 149, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--serenity-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
}

.guide-step:hover .step-icon {
  border-color: var(--serenity-primary);
  box-shadow: 0 0 25px rgba(181, 149, 80, 0.3);
  transform: scale(1.1);
}

.guide-step.active .step-icon {
  border-color: var(--serenity-primary);
  background: #fdfaf5;
  animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 149, 80, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(181, 149, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 149, 80, 0); }
}

.step-text {
  font-family: "Kaisei Opti", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #5a4a2a;
  flex: 1;
}

.guide-step.highlight .step-text {
  font-weight: 700;
  color: var(--serenity-primary);
}

/* 相棒からの応援ツールチップ */
.encouragement-tooltip {
  position: absolute;
  left: 90px;
  top: -20px;
  background: var(--serenity-primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(181, 149, 80, 0.3);
  z-index: 10;
}

.encouragement-tooltip::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--serenity-primary);
}

.guide-step:hover .encouragement-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.guide-step.finish {
  margin-top: 1rem;
}

/* ボタン：サイト共通のプレミアム感 */
.btn-release {
  background: linear-gradient(135deg, var(--serenity-primary) 0%, #d4af37 100%);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(181, 149, 80, 0.3);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-release:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(181, 149, 80, 0.4);
}

/* Release Ritual Particles */
.release-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  animation: release-fly 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes release-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--vx), var(--vy)) scale(0);
    opacity: 0;
  }
}

#release-msg {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--serenity-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 1s ease;
  font-weight: 700;
}

/* 飛んでいく「嫌な記憶」テキスト */
.flying-memory-text {
  position: fixed;
  font-family: "Kaisei Opti", serif;
  font-size: 2rem; /* 大きく */
  font-weight: 700;
  color: rgba(90, 74, 42, 0.4);
  pointer-events: none;
  z-index: 2000;
  transform: translate(-50%, 0);
  animation: memory-float-up 6s ease-in-out forwards; /* ゆっくり、ふわふわ */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes memory-float-up {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  100% {
    transform: translate(calc(-50% + var(--drift)), -800px) scale(0.3);
    opacity: 0;
  }
}

/* 相棒からのメッセージカード（応援の核） */
.partner-message-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf0 50%, #f0f7ff 100%);
  background-size: 200% 200%;
  animation: aurora-bg 15s ease infinite;
  padding: 4rem;
  border-radius: 40px;
  border: 2px solid rgba(181, 149, 80, 0.15);
  box-shadow: 0 25px 60px rgba(181, 149, 80, 0.1);
  margin: 6rem 0;
  position: relative;
  display: flex;
  gap: 3rem;
  overflow: hidden;
}

@keyframes aurora-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.partner-message-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--serenity-primary), transparent);
}

.partner-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--serenity-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 10px 20px rgba(181, 149, 80, 0.2);
  animation: pulse-warm 3s infinite;
}

@keyframes pulse-warm {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 149, 80, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(181, 149, 80, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 149, 80, 0); }
}

.message-content {
  flex: 1;
  line-height: 2.4;
  font-family: "Kaisei Decol", serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #6a5a3a; /* さらに少し柔らかい色味へ */
}

/* 一文字ずつ浮かび上がるアニメーション */
.char-fade {
  opacity: 0;
  display: inline-block;
  transform: translateY(5px);
  filter: blur(2px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.char-fade.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.message-content .highlight-text {
  font-weight: 700;
  color: #8c6d1f;
  background: linear-gradient(transparent 70%, #fff9db 0%);
  padding-bottom: 0.2em;
}

/* サイドバー：応援のメッセージとナビゲーション */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin-bottom: 3rem;
}

.sidebar-widget h3 {
  font-family: "Kaisei Opti", serif;
  font-size: 1.25rem;
  color: var(--serenity-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(181, 149, 80, 0.2);
}

.sidebar-advice {
  background: linear-gradient(135deg, #ffffff 0%, #fffcf0 100%);
  border-radius: 20px;
  padding: 2.22rem;
  border-left: 4px solid var(--serenity-primary);
  box-shadow: 0 10px 30px rgba(181, 149, 80, 0.12);
  position: relative;
  overflow: hidden;
}

.sidebar-advice::after {
  content: "\f004"; /* Heart icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: -15px;
  right: -5px;
  font-size: 4rem;
  color: var(--serenity-primary);
  opacity: 0.05;
}

.sidebar-advice .header {
  font-family: "Kaisei Opti", serif;
  color: var(--serenity-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-advice .header i {
  animation: pulse-warm 2s infinite;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-list li {
  margin-bottom: 1.2rem;
}

.sidebar-nav-list a {
  text-decoration: none;
  color: var(--serenity-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-nav-list a:hover {
  color: var(--serenity-primary);
  transform: translateX(5px);
}

/* プレミアムなアニメーション演出：霧が晴れるように現れる */
.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* 各要素にわずかな遅延をかけてリズムを作る */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* スマホ対応 */
@media (max-width: 768px) {
  .content-block {
    padding: 3rem 1.5rem;
  }
  .guide-step {
    flex-direction: column;
    text-align: center;
  }
}

/* フッター：中央寄せとプレミアム感の統一 */
.page-footer {
  text-align: center;
  padding: 6rem 2rem 4rem;
  color: var(--serenity-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
}

.page-footer p {
  margin: 0;
  opacity: 0.8;
}
