/* 
 * thank_you_magic.css
 * 魔法の言葉『ありがとう！』ページ用 - ブラッシュアップ版
 */

@import url("https://fonts.googleapis.com/css2?family=Kaisei+Opti:wght@400;700&family=Noto+Serif+JP:wght@300;400;600&family=Outfit:wght@300;500&display=swap");

:root {
  /* 
   * Ultimate White Palette: "Soul of Kotodama"
   * 原稿の熱量を、純白と質感だけで表現
   */
  --aura-base: #ffffff;
  --text-main: #1a1a1a; /* 凛とした墨色 */
  --text-sub: #555555;
  --accent-gold-soft: #d4af37;
  --surface-glass-pure: rgba(255, 255, 255, 0.95);

  /* 
     * Original Palette (Other Sections)
     * 他のセクションのデザインを維持するために復旧
     */
  --magic-pink: #fff5f7;
  --magic-gold: #d4af37;
  --magic-gold-light: #f3e5ab;
  --magic-warm: #ffb7b7;
  --magic-text: #2c3e50;
  --magic-accent: #fbc2eb;
  --magic-gradient: linear-gradient(135deg, #fff5f7 0%, #fbc2eb 100%);
}

/* 背景色を白に固定 */
.page-wrapper {
  background-color: #ffffff !important;
}

.bg-aura-wrapper {
  display: none; /* オーラ演出を一旦カットし、白背景（潔さ）を優先 */
}

@keyframes aura-vibration {
  0% { transform: scale(1); opacity: 0.1; }
  100% { transform: scale(1.05); opacity: 0.2; }
}

/* ヒーローエリア - sample.htmlに準拠した安定した構造 */
.hero-header {
  padding: 10rem 2rem 8rem !important; /* 圧倒的な余白で「格式」を出す */
  margin-bottom: 0;
  text-align: center;
  position: relative;
  background: #ffffff !important; /* 完全に白 */
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* 背景にうっすらと「有難う」の真理を刻む（原稿の魂） */
.hero-header::before {
  content: '有難う';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Kaisei Opti", serif;
  font-size: 25vw;
  color: #000;
  opacity: 0.02; /* ほぼ見えない、気配としての言霊 */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* ヒーロー内の要素が美しくならぶように調整 */
.hero-symbol {
  font-size: 2.5rem;
  color: #ff6b81;
  margin-bottom: 2rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: #fff;
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

.hero-badge span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #ff8fa3;
  font-weight: 500;
  text-transform: uppercase;
}

/* 統合された魔法のタイトル・アイキャッチ (絶対にはみ出さない) */
.hero-header h1 {
  font-family: "Kaisei Opti", serif;
  margin: 0;
  line-height: 1.2;
}

.magic-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* 間隔を詰める */
  position: relative;
  z-index: 2;
}

.title-main-text {
  font-size: 3.8rem; /* 大幅にアップ：これだけで一つのキーワードに */
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.3em;
  display: block;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255, 255, 255, 1);
}

.title-core-text {
  font-size: 4.8rem; 
  font-weight: 800;
  color: var(--text-main);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  display: block;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
  /* 言霊の深みを出す多重シャドウ */
  text-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(255, 255, 255, 1);
}

/* タイトル全体への演出：装飾ではなく、空気の震え（波動） */
.magic-title-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(230,230,230,0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* サブタイトル - 静かに染み渡る言葉 */
.hero-header .hero-subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem; /* サイズアップ */
  color: #777;
  margin-top: 5rem;
  letter-spacing: 0.4em;
  font-weight: 400;
  text-align: center;
  position: relative;
}

/* サブタイトル下の繊細なアクセント */
.hero-header .hero-subtitle::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #ff6b81;
  opacity: 0.3;
}


/* 環境パーティクルコンテナ */
#ambient-particles {
  position: fixed; /* absolute -> fixed に変更してスクロールしてもついてくるように */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 「有難う」深掘りセクション */
.kanji-insight-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  margin: 4rem 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.kanji-display {
  font-family: "Kaisei Opti", serif;
  font-size: 5rem;
  color: var(--magic-gold);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.kanji-display span {
  position: relative;
  display: inline-block;
}

.kanji-display span::after {
  content: attr(data-reading);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #999;
  letter-spacing: 0;
}

/* メッセージカード（言霊の強調） */
.kotodama-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(243, 229, 171, 0.6); /* Gold Light */
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
  text-align: center;
}

.kotodama-card::before,
.kotodama-card::after {
  content: '"';
  font-family: "Kaisei Opti", serif;
  font-size: 4rem;
  color: var(--magic-gold);
  position: absolute;
  opacity: 0.3;
}

.kotodama-card::before {
  top: -1rem;
  left: 1rem;
}

.kotodama-card::after {
  bottom: -3rem;
  right: 1rem;
  transform: rotate(180deg);
}

.kotodama-text {
  font-family: "Kaisei Opti", serif;
  font-size: 1.4rem;
  color: var(--magic-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.kotodama-sub {
  font-size: 0.95rem;
  color: #888;
  display: block;
  margin-top: 1rem;
}

/* 想い出カード（お母さんのエピソードなど） */
.memory-card {
  background: #fff5f7;
  border: 2px solid #ffeef5;
  border-radius: 30px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
}

.memory-card::before {
  content: "\f52d"; /* FontAwesome feather-alt code */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2.2rem;
  color: #ffb7b7;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  opacity: 0.6;
  transform: rotate(-15deg);
}

/* 引用文のような少しエモーショナルなスタイル */
.memory-card p {
  margin-bottom: 1.5rem;
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* 最初の行をインデントしてアイコンとの被りを回避 */
.memory-card p:first-child {
  text-indent: 1.5em; /* アイコンを避ける */
  margin-top: 0.5rem;
}

.memory-card p:last-child {
  margin-bottom: 0;
}

/* 魔法のステップ（秘訣リスト - New Clean List Style） */
.magic-tips-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.tip-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* 左側のアクセントバー */
.tip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--magic-warm);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.tip-item:hover::before {
  opacity: 1;
  width: 6px;
}

.tip-icon-box {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--magic-warm); /* テーマカラー */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

.tip-content {
  flex: 1;
  text-align: left;
}

.tip-content h3 {
  /* コンテンツブロックのH3スタイルを上書き・調整 */
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  font-size: 1.3rem !important;
  background: none !important;
  border: none !important;
  display: block !important;
  color: var(--text-primary);
}

.tip-content h3::before,
.tip-content h3::after {
  display: none !important; /* コンテンツブロックH3の装飾を消す */
}

.tip-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .tip-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }

  .tip-item::before {
    width: 100%;
    height: 4px;
    top: 0;
    bottom: auto;
  }

  .tip-item:hover::before {
    width: 100%;
    height: 6px;
  }

  .tip-content {
    text-align: center;
  }

  .tip-item:hover {
    transform: translateY(-5px); /* モバイルでは上に動く */
  }
}

/* 「ありがとう10回」カウンターセクション */
.gratitude-counter-section {
  text-align: center;
  padding: 2rem 1rem; /* パディングを削減: 5rem 2rem -> 2rem 1rem */
  background: white;
  border-radius: 40px;
  margin: 2rem 0; /* マージンを削減: 6rem 0 -> 2rem 0 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* 影も少し控えめに */
}

.counter-display {
  font-family: "Outfit", sans-serif;
  font-size: 4rem;
  color: var(--magic-gold);
  margin-bottom: 1rem;
}

.btn-magic-3d {
  background: linear-gradient(to bottom, #fff5f7, #ffeef5);
  color: var(--magic-text);
  border: none;
  padding: 1.5rem 4rem;
  border-radius: 100px;
  font-size: 1.5rem;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(251, 194, 235, 0.3),
    0 6px 0 #f4d0e8,
    /* 3D effect border bottom */ inset 0 2px 0 rgba(255, 255, 255, 0.5); /* Highlight top */
  transition: all 0.1s;
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-magic-3d i {
  color: #ff4d6d;
  filter: drop-shadow(0 2px 3px rgba(255, 77, 109, 0.3));
}

.btn-magic-3d:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 25px rgba(251, 194, 235, 0.4),
    0 6px 0 #f4d0e8,
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-magic-3d:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 5px rgba(251, 194, 235, 0.3),
    0 2px 0 #f4d0e8,
    /* Compressed 3D part */ inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* 成功スタンプ */
.success-stamp {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  padding: 4rem;
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(251, 194, 235, 0.8);
  z-index: 1000;
  text-align: center;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-stamp.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.success-stamp i {
  font-size: 5rem;
  color: #ff4d6d;
  margin-bottom: 1rem;
  display: block;
}

/* 万物への感謝（ゴミ箱・太陽・地球） */
.thank-you-objects-box {
  background: rgba(255, 249, 240, 0.8); /* 薄いベージュ系 + 透明度 */
  backdrop-filter: blur(5px);
  border-radius: 40px;
  padding: 3rem;
  margin: 4rem 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.objects-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.object-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative; /* 吹き出しの基準 */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.object-item:hover {
  transform: translateY(-5px);
}

/* 感謝の吹き出しツールチップ */
.object-item::after {
  content: attr(data-message);
  position: absolute;
  bottom: 110%; /* アイコンの上 */
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(255, 255, 255, 0.95);
  color: #ff4d6d;
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-family: "Kaisei Opti", serif;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(255, 77, 109, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  border: 1px solid #ffeef5;
}

/* 吹き出しの三角 */
.object-item::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translate(0, 5px) scale(0);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.object-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  bottom: 120%; /* 少し上に浮く */
}

.object-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translate(0, 0) scale(1);
}

.object-icon {
  font-size: 3.5rem; /* サイズ調整: 3rem -> 3.5rem */
  color: #ff9f9f; /* サーモンピンク */
  background: #ffffff;
  width: 100px; /* サイズ調整: 80px -> 100px */
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 159, 159, 0.25);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  margin-bottom: 0.5rem;
}

.object-item:hover .object-icon {
  transform: rotate(10deg) scale(1.1); /* ホバー時に回転と拡大 */
  box-shadow: 0 12px 25px rgba(255, 159, 159, 0.35);
  color: #ff4d6d;
}

.object-label {
  font-family: "Kaisei Opti", serif;
  color: #777;
  font-size: 1rem;
  font-weight: 700;
}

.thank-you-objects-box p {
  color: #555;
  line-height: 1.9;
  font-size: 1rem;
  text-align: left; /* 本文は左揃えで読みやすく */
}

/* 結びのメッセージ（シンプル版） */
.magic-conclusion-box {
  text-align: center;
  margin: 4rem 0;
  padding: 0;
  background: none;
  border: none;
}

.magic-conclusion-main {
  font-family: "Kaisei Opti", serif;
  font-size: 1.5rem;
  color: #444;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.magic-conclusion-sub {
  font-size: 1.1rem;
  color: #666;
  display: block;
}

/* 最後の行動喚起セクション */
/* シンプルでリッチな最終アクションエリア */
.magic-start-action {
    /* content-blockのスタイルを継承しつつ、特別な余白を設定 */
    padding: 5rem 2rem 4rem;
    margin: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* content-blockの背景色を使いたいのでbackground: transparent指定は削除 */
}

/* 上下に繊細なラインを追加して区切りとする */
.magic-start-action::before,
.magic-start-action::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--magic-gold); /* 落ち着いたゴールド */
    margin: 0 auto;
    opacity: 0.4;
}

.magic-start-action::before {
    margin-bottom: 3rem;
}

.magic-start-action::after {
    margin-top: 3rem;
    width: 100px; /* 下線は少し長く */
    height: 1px; /* 下線は細く */
}

/* タイトルの装飾（擬似要素）も完全にオフ */
.magic-start-action .magic-cta-title::before,
.magic-start-action .magic-cta-title::after {
    display: none;
}


/* 本文エリア */
.magic-action-body {
    max-width: 680px;
    margin: 0 auto 4rem;
}

.magic-action-body p {
    font-size: 1.05rem;
    line-height: 2.2; /* ゆったりとした行間 */
    color: #555;
    margin-bottom: 2.5rem;
    font-family: 'Noto Serif JP', serif; /* 明朝体で落ち着きを */
    letter-spacing: 0.05em;
}

.magic-action-body strong {
    font-weight: 600;
    color: #d488a0; /* 落ち着いたピンク */
}

/* 最後のメッセージ（CTA） */
.magic-action-footer {
    margin-top: 2rem;
}

.magic-cta-text {
    font-family: 'Kaisei Opti', serif;
    font-size: 1.6rem;
    color: #d488a0; /* 落ち着いたピンク */
    letter-spacing: 0.15em;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
}

/* 控えめなアンダーラインアニメーション */
.magic-cta-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #d488a0;
    opacity: 0.6;
    transition: width 0.4s ease;
}

.magic-cta-text:hover::after {
    width: 100%;
}

/* コンテンツブロック調整 (Card-like Design) */
/* コンテンツブロック調整 (Glassmorphism) */
.content-block {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  padding: 2.5rem; /* paddingを削減: 3.5rem -> 2.5rem */
  margin-bottom: 2rem; /* margin-bottomを削減: 5rem -> 2rem */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: visible; /* 演出がはみ出てもOKなように変更 */
}

/* モバイル対応：余白調整 */
@media (max-width: 768px) {
  .hero-header {
    padding: 6rem 1rem 4rem !important;
  }
  .title-main-text {
    font-size: 2.2rem;
  }
  .title-core-text {
    font-size: 2.8rem;
  }
  .content-block {
    padding: 1.5rem; /* モバイル時も少し詰める */
    border-radius: 30px;
    margin-bottom: 1.5rem;
  }
}

/* --- 今日のお蔭様おみくじ --- */
.omikuji-section {
  text-align: center;
  padding: 4rem 2rem;
}

.omikuji-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  min-height: 400px;
}

/* クリック判定を広げるためのラッパー */
.omikuji-trigger-wrapper {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

.omikuji-trigger-wrapper:hover {
  transform: scale(1.05);
}

/* 魔法のクリスタル */
.omikuji-crystal {
  position: relative;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, #fff, #fbc2eb, #a78bfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 20px rgba(167, 139, 250, 0.4),
    inset -5px -5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: crystal-float 3s ease-in-out infinite;
  pointer-events: none; /* 親のラッパーで判定するので無効化 */
}

.omikuji-crystal i {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.crystal-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: crystal-pulse 2s ease-in-out infinite;
  z-index: 1;
}

/* 押しやすさを強調するガイドラベル */
.crystal-guide {
  background: linear-gradient(135deg, #a78bfa, #fbc2eb);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(167, 139, 250, 0.3);
  pointer-events: none; /* 親のラッパーで判定するので無効化 */
  animation: guide-float 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

/* 実行中はガイドを消す */
.omikuji-trigger-wrapper.active .crystal-guide {
  opacity: 0;
}

/* 波紋のようなパルスリング */
.omikuji-crystal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #a78bfa;
  animation: crystal-ring-pulse 2s linear infinite;
  pointer-events: none;
}

@keyframes crystal-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes guide-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 振動用アニメーションを親に適用 */
.omikuji-trigger-wrapper.vibrating .omikuji-crystal {
  animation: crystal-vibrate 0.1s linear infinite;
}

@keyframes crystal-vibrate {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  25% { transform: translate(-1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 1px) rotate(0deg); }
  75% { transform: translate(1px, -1px) rotate(-1deg); }
}

/* おみくじ結果カード */
.omikuji-result-container {
  width: 100%;
  max-width: 450px;
  perspective: 1000px;
}

.omikuji-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  transform: rotateY(-90deg);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.omikuji-card.reveal {
  transform: rotateY(0);
  opacity: 1;
}

.omikuji-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #fbc2eb, #a78bfa, #fbc2eb);
}

.card-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #a78bfa;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.card-target-icon {
  font-size: 3.5rem;
  color: #ff8fa3;
  margin-bottom: 1.5rem;
  background: #fff5f7;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.2);
}

.card-target-name {
  font-family: "Kaisei Opti", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.card-message {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
}

.card-btn {
  background: #fff5f7;
  color: #ff4d6d;
  border: 1px solid #ffeef5;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: "Kaisei Opti", serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: #ff4d6d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
}


.content-block h2 {
  font-family: "Kaisei Opti", serif;
  font-size: 2.2rem;
  color: var(--magic-text);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px dashed var(--magic-accent);
}

.content-block h2 i {
  color: var(--magic-accent);
}

/* 小見出し (h3) のリッチ化 */
/* 小見出し (h3) のリッチ化 */
.content-block h3 {
  font-family: "Kaisei Opti", serif;
  font-size: 1.6rem;
  color: var(--magic-text);
  margin: 4.5rem 0 2.5rem;
  padding: 0.5rem 0 0.5rem 3.5rem; /* 左側にアイコンスペース確保 */
  background: none;
  border-left: none;
  border-radius: 0;
  position: relative;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.content-block h3::before {
  /* テーマカラーに合わせたアイコン装飾 */
  content: "\f005"; /* Star */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  /* ピンクとゴールドの優しいグラデーションに変更 */
  background: linear-gradient(135deg, var(--magic-warm), #ff9a9e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 183, 183, 0.4);
  z-index: 1;
}

.content-block h3::after {
  /* 装飾ライン */
  content: "";
  position: absolute;
  left: 18px; /* 円の中心 */
}

/* --- 感謝の言霊ビジュアライザー (Premium Redesign) --- */
.visualizer-section {
  padding: 4rem 2rem;
  text-align: center;
}

.visualizer-input-group {
  display: flex;
  max-width: 600px;
  margin: 3rem auto 0;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem;
  border-radius: 100px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(167, 139, 250, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visualizer-input-group:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(167, 139, 250, 0.15),
    0 0 0 2px rgba(167, 139, 250, 0.4);
  background: #ffffff;
}

#kotodama-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 2rem;
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  outline: none;
  color: #444;
}

#kotodama-input::placeholder {
  color: #bbb;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#kotodama-input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(10px);
}

.btn-magic-3d-small {
  background: linear-gradient(135deg, #a78bfa, #fbc2eb);
  color: white;
  border: none;
  padding: 0 2.5rem;
  border-radius: 100px;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.btn-magic-3d-small i {
  font-size: 1.2rem;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-magic-3d-small:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.5);
}

.btn-magic-3d-small:hover i {
  transform: rotate(15deg) scale(1.2);
}

.btn-magic-3d-small:active {
  transform: scale(0.95);
}

/* 昇天する言霊パーティクル */
.kotodama-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  color: white;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(251, 194, 235, 0.9));
  border-radius: 50px;
  box-shadow: 
    0 10px 30px rgba(167, 139, 250, 0.4),
    0 0 20px rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  animation: kotodama-rise 5s ease-out forwards;
  backdrop-filter: blur(5px);
}

/* --- リアクティブ・オブジェクト --- */
.reactive-object.reacting .object-icon {
  animation: object-jump 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #ff4d6d !important;
  box-shadow: 0 15px 35px rgba(255, 77, 109, 0.5);
}

@keyframes object-jump {
  0%, 100% { transform: translateY(0) scale(1.1); }
  50% { transform: translateY(-30px) scale(1.2) rotate(15deg); }
}

/* 「どういたしまして」ポップアップ */
.welcome-msg {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #ff4d6d;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  animation: welcome-pop 1.5s ease-out forwards;
  z-index: 100;
}

@keyframes welcome-pop {
  0% { transform: translateX(-50%) translateY(20px) scale(0.5); opacity: 0; }
  20% { transform: translateX(-50%) translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-40px) scale(1); opacity: 0; }
}

@keyframes kotodama-rise {
  0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 0; filter: blur(5px); }
  10% { transform: translate(-20px, -80px) scale(1.1) rotate(10deg); opacity: 1; filter: blur(0); }
  30% { transform: translate(40px, -25vh) scale(1.2) rotate(-8deg); }
  50% { transform: translate(-50px, -50vh) scale(1.3) rotate(5deg); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
  70% { transform: translate(30px, -75vh) scale(1.4) rotate(-3deg); }
  100% { transform: translate(0, -110vh) scale(1.6) rotate(0deg); opacity: 0; }
}

/* 言霊ビジュアライザー セクション全体の演出 */
.visualizer-section {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(167, 139, 250, 0.05), rgba(255, 255, 255, 0));
  border-radius: 60px;
  margin: 4rem 0;
}

.marker-highlight {
  background: linear-gradient(transparent 60%, rgba(251, 194, 235, 0.4) 60%);
  font-weight: 600;
}

/* アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* サイドバー固定 */
/* サイドバー固定 */
.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* マウスストーカー (Magic Dust) */
.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  will-change: transform, opacity;
}


