/* ============================================================
   アルカナプログラム 会員専用サイト カスタムスタイル
   コンセプト: Void & Light（虚空と光）
   Tailwind のテーマ変数は index.html 内の
   <style type="text/tailwindcss"> @theme {} で定義しています。
   ここでは Tailwind では表現しづらい装飾を補います。
   ============================================================ */

/* ---- ベース ---- */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #080B12; /* --color-bg-void */
  color: #E8EEF4;            /* --color-text-main */
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.font-display {
  font-family: 'Noto Serif JP', serif;
}

/* ---- グラスモーフィズム（全カード共通） ---- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(75, 123, 158, 0.2);
  border-radius: 16px;
}

/* ホバーで浮き上がるカード */
.card-hover {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 154, 184, 0.45);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

/* ---- シグネチャー orb（Hero 中央の脈動する光の球） ---- */
@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.12; }
  50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 0.22; }
}
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, #59D8CF 0%, #E8C87A 40%, transparent 70%);
  animation: orb-pulse 6s ease-in-out infinite;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* 小さな副次的な光（奥行き演出） */
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.10; }
  50%      { transform: translate(30px, -20px); opacity: 0.18; }
}
.hero-orb-sub {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #4B7B9E 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: orb-drift 9s ease-in-out infinite;
  z-index: 0;
}

/* ---- ナビゲーション ---- */
#site-nav {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#site-nav.scrolled {
  background-color: rgba(8, 11, 18, 0.72); /* --color-bg-void 半透明 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 123, 158, 0.2);
}

/* モバイルメニュー */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open {
  max-height: 520px;
}

/* ---- 瞑想時間 選択ボタン ---- */
.duration-btn {
  transition: all 0.3s ease;
}
.duration-btn.active {
  border-color: #E8C87A;
  background: rgba(232, 200, 122, 0.12);
  color: #E8C87A;
  box-shadow: 0 0 24px -6px rgba(232, 200, 122, 0.5);
}

/* ---- バッジ ---- */
.badge-new {
  background: rgba(89, 216, 207, 0.15);
  color: #59D8CF;
  border: 1px solid rgba(89, 216, 207, 0.4);
}
.badge-lock {
  background: rgba(122, 149, 168, 0.12);
  color: #7A95A8;
  border: 1px solid rgba(122, 149, 168, 0.3);
}

/* ---- ロックカード（未受け取り） ---- */
.locked-card {
  position: relative;
}
.locked-card .lock-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: rgba(8, 11, 18, 0.9);
  border: 1px solid rgba(75, 123, 158, 0.4);
  color: #E8EEF4;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  white-space: nowrap;
  z-index: 5;
}
.locked-card:hover .lock-tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* ---- ライブラリ / フィルタ タブ ---- */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: #E8C87A;
  border-bottom-color: #E8C87A;
}
.filter-btn {
  transition: all 0.3s ease;
}
.filter-btn.active {
  background: rgba(232, 200, 122, 0.14);
  border-color: #E8C87A;
  color: #E8C87A;
}

/* ---- タイムライン（伝授履歴） ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(75,123,158,0.5), rgba(75,123,158,0.05));
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-dot {
  position: absolute;
  left: -1.7rem;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #121B2E;
  border: 2px solid #4B7B9E;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot.done { border-color: #59D8CF; }
.timeline-dot.current {
  border-color: #E8C87A;
  box-shadow: 0 0 18px -2px rgba(232, 200, 122, 0.7);
}

/* ---- カレンダーヒートマップ ---- */
.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.heat-cell {
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: rgba(75, 123, 158, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: rgba(122, 149, 168, 0.55);
}
.heat-cell.filled {
  background: rgba(89, 216, 207, 0.55);
  color: #061018;
  box-shadow: 0 0 12px -2px rgba(89, 216, 207, 0.6);
}
.heat-cell.today {
  outline: 1px solid rgba(232, 200, 122, 0.8);
}
.heat-cell.empty {
  background: transparent;
}

/* ---- FAQ アコーディオン ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  /* JS で max-height を実測値に設定 */
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.4s ease;
}

/* ---- バナー帯 ---- */
.band-jade {
  background: linear-gradient(90deg, rgba(89,216,207,0.10), rgba(89,216,207,0.04));
  border: 1px solid rgba(89, 216, 207, 0.25);
}

/* ---- モーダル ---- */
.modal-backdrop {
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---- フォーム ---- */
.field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(75, 123, 158, 0.25);
  color: #E8EEF4;
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field:focus {
  outline: none;
  border-color: #6B9AB8;
  box-shadow: 0 0 0 3px rgba(107, 154, 184, 0.18);
}
.field::placeholder { color: rgba(122, 149, 168, 0.6); }

/* ---- スクロールバー ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #080B12; }
::-webkit-scrollbar-thumb {
  background: rgba(75, 123, 158, 0.35);
  border-radius: 9999px;
}

/* ---- セクション見出し下の細い装飾線 ---- */
.heading-rule::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, #E8C87A, transparent);
}
.heading-rule.center::after { margin-left: auto; margin-right: auto; }

/* ---- アクセシビリティ: モーション低減 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb,
  .hero-orb-sub {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
