/* ==========================================================================
   AI Fortune Platform - Stylesheet
   Theme: Neo-Astrology Data Dashboard (先端テック・ミニマル)
   ========================================================================== */

:root {
  /* タイポグラフィ: テック幾何学サンセリフ × 等幅コード調 */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans-en: "Space Grotesk", "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-sans-ja: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-body: var(--font-sans-ja), var(--font-sans-en);
  --font-heading: var(--font-sans-en), var(--font-sans-ja);

  /* カラーパレット: オブシディアンブラック × ディープスレート × ネオインディゴ */
  --bg-primary: #0a0c10; /* オブシディアン・ブラック */
  --bg-secondary: #10141d; /* ディープスレート */
  --bg-card: rgba(16, 20, 29, 0.78); /* 透過ガラス調 */
  --bg-card-hover: rgba(22, 28, 40, 0.92);
  --bg-input: rgba(12, 15, 22, 0.92);

  --border-color: rgba(148, 163, 184, 0.14); /* 精密なグリッドボーダー */
  --border-highlight: rgba(124, 109, 250, 0.45);

  --text-primary: #f8fafc; /* クリスタルホワイト */
  --text-secondary: #94a3b8; /* クールスレート */
  --text-muted: #64748b; /* スレートグレー */

  /* ネオ・アクセント: エレクトリックインディゴ / サイバーシアン */
  --gold: #7c6dfa; /* エレクトリック・インディゴ（主役アクセント） */
  --indigo: #7c6dfa; /* エレクトリック・インディゴ */
  --gold-light: #9e94ff; /* ネオンラベンダー */
  --gold-dark: #5a4ad1; /* ディープバイオレット */
  --gold-glow: rgba(124, 109, 250, 0.24);

  --cyan: #38bdf8; /* サイバーシアン（高明度） */
  --blue-accent: #38bdf8; /* サイバーシアン */
  --red-accent: #f43f5e; /* レーザーローズ */
  --silver-accent: #cbd5e1;

  /* グラデーション */
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #7c6dfa 50%, #c084fc 100%);
  --gold-text-gradient: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #7c6dfa 100%);
  --hero-gradient: radial-gradient(
    circle at 50% 0%,
    rgba(124, 109, 250, 0.16) 0%,
    rgba(56, 189, 248, 0.06) 35%,
    rgba(10, 12, 16, 0) 70%
  );

  /* ミニマル・シャープなテック角丸 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 28px rgba(124, 109, 250, 0.2);
}

/* リセット & 基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(124, 109, 250, 0.14) 0%, rgba(10, 12, 16, 0) 65%),
    radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.015em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.brand-logo {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition:
    color 0.2s,
    opacity 0.2s;
}

a:hover {
  color: var(--gold-light);
  opacity: 0.9;
}

/* 共通コンテナ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 幾何学SVGアイコン共通 */
.celestial-icon {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s ease;
}

/* ヘッダー・ナビゲーション */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand-logo {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.brand-logo svg {
  color: var(--blue-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 言語切り替えトグル (Language Switcher) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--cyan);
  color: #0a0c10;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c6dfa 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px var(--gold-glow);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9e94ff 0%, #7c6dfa 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(124, 109, 250, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(124, 109, 250, 0.12);
  border-color: var(--border-highlight);
  color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: rgba(124, 109, 250, 0.08);
}

/* ヒーローセクション */
.hero {
  padding: 80px 0 52px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.45rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 40px;
}

/* カード共通 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

/* クイック診断セクション (トップページ) */
.quick-diagnostic {
  max-width: 660px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-highlight);
}

.diagnostic-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.date-select-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.date-select-row select {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c6dfa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* 診断結果グリッド */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.result-item {
  background: rgba(16, 20, 29, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.result-item .item-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.result-item .item-value {
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.result-item .item-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.65;
}

/* 特徴紹介セクション */
.features-section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.95rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 44px;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(124, 109, 250, 0.12);
  border: 1px solid rgba(124, 109, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 登録・認証ページ */
.auth-page-container {
  max-width: 450px;
  margin: 52px auto;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: rgba(12, 15, 22, 0.9);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* マイページ レイアウト */
.mypage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 32px;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 22px;
}

.mypage-welcome h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.mypage-welcome p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.mypage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ダッシュボード 3タブ切り替え */
.dashboard-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 2px;
}

.dashboard-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.dashboard-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dashboard-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-color);
  border-bottom: 2px solid var(--gold);
}

.dashboard-tab-btn .tab-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(124, 109, 250, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(124, 109, 250, 0.3);
  letter-spacing: 0.06em;
}

.dashboard-tab-btn.active .tab-badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.dashboard-tab-pane {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.dashboard-tab-pane.active {
  display: block;
}

/* 今日の運勢ダッシュボード (Hero) */
.daily-fortune-hero {
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  backdrop-filter: blur(16px);
}

.daily-fortune-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-gradient);
}

.fortune-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: rgba(124, 109, 250, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(124, 109, 250, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.fortune-summary-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: #f8fafc;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.fortune-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.fortune-category-box {
  background: rgba(12, 15, 23, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.fortune-category-box h4 {
  font-size: 0.88rem;
  color: var(--blue-accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.fortune-category-box p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lucky-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.lucky-badge {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--silver-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 3層インサイトセクション */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* タロットカードスタイル: HUDホログラフィック・データカード */
.tarot-card-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.tarot-frame {
  width: 140px;
  height: 220px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: #0d111a;
  box-shadow: 0 0 24px rgba(124, 109, 250, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  padding: 10px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tarot-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(124, 109, 250, 0.3);
  border-radius: 2px;
  pointer-events: none;
}

.tarot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(124, 109, 250, 0.45);
}

.tarot-frame.reversed {
  transform: rotate(180deg);
}

.tarot-frame.reversed:hover {
  transform: translateY(-2px) rotate(180deg);
}

.tarot-roman-numeral {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--blue-accent);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.tarot-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tarot-orientation-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.orientation-upright {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.orientation-reversed {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* メッセージ・アラート */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.alert-success {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* フッター */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(8, 10, 14, 0.9);
}

.site-footer p {
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
}

/* スピナー */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(124, 109, 250, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .header-inner {
    height: 60px;
  }
  .card {
    padding: 20px;
  }
  .daily-fortune-hero {
    padding: 24px;
  }
  .date-select-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   UX Redesign Components (Archetype, Teaser, Service Hub, Oracle 3D)
   ========================================================================== */

/* アーキタイプ・ヘッダー */
.archetype-banner {
  background: linear-gradient(135deg, rgba(124, 109, 250, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(124, 109, 250, 0.35);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.archetype-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
}

.archetype-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.archetype-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.archetype-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* 解釈ハイライトグリッド */
.interpretation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.interpretation-card {
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: left;
}

.interpretation-card h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.interpretation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interpretation-list li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.interpretation-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ロック・ティザーコンポーネント */
.teaser-locked-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.teaser-locked-card {
  position: relative;
  background: rgba(12, 15, 22, 0.92);
  border: 1px dashed rgba(124, 109, 250, 0.4);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: left;
  overflow: hidden;
}

.teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
  margin-bottom: 10px;
}

.teaser-locked-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.teaser-locked-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.teaser-preview-blur {
  filter: blur(4px);
  user-select: none;
  opacity: 0.4;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* サービスランチャー（ハブ）グリッド */
.service-hub-section {
  margin-bottom: 32px;
}

.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.service-launcher-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: left;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-launcher-card.active-today {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(16, 20, 29, 0.95) 0%, rgba(20, 28, 42, 0.95) 100%);
}

.launcher-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.launcher-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(124, 109, 250, 0.15);
  border: 1px solid rgba(124, 109, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.launcher-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.launcher-badge.pending {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  animation: pulse-border 2s infinite;
}

.launcher-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.launcher-badge.disabled {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.service-launcher-card h4 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-launcher-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

@keyframes pulse-border {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0);
  }
}

/* ==========================================================================
   オラクル専用画面 (oracle.html) & 3Dカードドロー
   ========================================================================== */

.oracle-deck-area {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  perspective: 1200px;
}

.cards-spread {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tarot-card-3d {
  width: 170px;
  height: 270px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  position: relative;
}

.tarot-card-3d:hover:not(.revealed):not(.discarded) {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 32px rgba(124, 109, 250, 0.25);
}

.tarot-card-3d.flipped {
  transform: rotateY(180deg);
}

.tarot-card-3d.discarded {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
  transition: all 0.5s ease;
}

.tarot-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

/* カード裏面（先端幾何学バックデザイン） */
.tarot-card-back {
  background: linear-gradient(145deg, #121622 0%, #0a0c12 100%);
  border: 1px solid rgba(124, 109, 250, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.tarot-back-pattern {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: radial-gradient(rgba(124, 109, 250, 0.15) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* カード表面 */
.tarot-card-front {
  background: linear-gradient(160deg, #141926 0%, #0c0f17 100%);
  border: 1px solid var(--gold);
  transform: rotateY(180deg);
  box-shadow: 0 10px 28px rgba(124, 109, 250, 0.2);
}

.tarot-symbol-svg {
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
  color: var(--cyan);
}

.tarot-name-ja {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tarot-name-en {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==========================================================================
   Decision Compass & Action Framework (自律的意思決定UI)
   ========================================================================== */

.decision-compass-banner {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(20, 28, 48, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-left: 4px solid var(--blue-accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.decision-compass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.decision-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

/* スタンスバッジ */
.decision-stance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stance-initiative {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.stance-synergy {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.stance-focus {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.stance-revision {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.decision-headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.45;
}

.decision-evidence {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* DO & DON'T グリッド */
.do-dont-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.action-card {
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.action-card-do {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-card-dont {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.action-header-do {
  color: #34d399;
}

.action-header-dont {
  color: #f43f5e;
}

.action-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* L1 意思決定プレイブック (Decision Playbook Grid) */
.decision-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.decision-playbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.decision-playbook-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.playbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.playbook-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.playbook-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.playbook-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.playbook-action {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.playbook-evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 4px;
  margin-top: auto;
  align-self: flex-start;
}

.playbook-evidence-tag svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Layer 3: デイリー・フォーカス & フォーカステーマセレクター
   ========================================================================== */

.focus-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.focus-theme-btn {
  background: rgba(16, 20, 29, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}

.focus-theme-btn:hover {
  border-color: rgba(124, 109, 250, 0.6);
  background: rgba(24, 28, 40, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.focus-theme-btn.active {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  box-shadow:
    0 0 0 1px var(--cyan),
    0 4px 20px rgba(56, 189, 248, 0.15);
}

.focus-theme-btn.active::after {
  content: "SELECTED";
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
}

.focus-theme-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.focus-theme-btn.active .focus-theme-category {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
}

.focus-theme-label {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.focus-theme-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* デッキ無効状態 */
.oracle-deck-area.disabled-deck {
  opacity: 0.45;
  filter: grayscale(0.4);
  pointer-events: none;
  transition: all 0.3s ease;
}

.oracle-deck-area.disabled-deck .cards-spread {
  cursor: not-allowed;
}

/* 戦術ダッシュボード レスポンシブ */
@media (max-width: 640px) {
  .tactical-actions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 単一カードスプレッド & カード演出強化 */
.single-card-spread {
  padding: 16px 0;
}

.single-card-spread .tarot-card-3d {
  width: 185px;
  height: 290px;
}

.single-card-spread .tarot-card-3d:hover:not(.revealed):not(.discarded) {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    0 20px 40px rgba(56, 189, 248, 0.25),
    0 0 24px rgba(124, 109, 250, 0.3);
}

/* 戦術ヘッドラインの視認性強調 */
.tactical-headline-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 5px solid var(--cyan);
}

/* DO & CAUTION ボックスのコントラスト強化 */
.action-box-do {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-top: 4px solid #10b981;
}

.action-box-caution {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-top: 4px solid #f59e0b;
}

/* エビデンス・ブリーフィング グリッド */
.oracle-evidence-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .oracle-evidence-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   TERAKIO トップページ新セクションスタイル (2大エンジン & フライホイール)
   ========================================================================== */

/* ヒーローCTAボタングループ */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* 2大エンジンセクション */
.engines-section {
  padding: 80px 0 60px;
}

.engines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .engines-grid {
    grid-template-columns: 1fr;
  }
}

.engine-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 21, 32, 0.95) 0%, rgba(12, 15, 23, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.engine-card:hover {
  transform: translateY(-3px);
}

.engine-card-strategic {
  border-top: 3px solid var(--cyan);
}
.engine-card-strategic:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.08);
}

.engine-card-tactical {
  border-top: 3px solid var(--gold);
}
.engine-card-tactical:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.08);
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
  width: fit-content;
}

.engine-card-strategic .engine-badge {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.engine-card-tactical .engine-badge {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.engine-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.engine-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.engine-modules {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.engine-module-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.engine-module-item h5 {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.engine-module-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.engine-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* 5ステップ意思決定フライホイール */
.flywheel-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .flywheel-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.flywheel-card {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  position: relative;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.flywheel-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.flywheel-step-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flywheel-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.flywheel-step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 信頼性・セキュリティセクション */
.security-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.security-card {
  background: rgba(12, 16, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
}

.security-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--cyan);
}

.security-card h4 {
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.security-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   TERAKIO マイページ 3層プログレッシブ・コックピット (Zone 1, 2, 3)
   ========================================================================== */

.cockpit-zone {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cockpit-zone .decision-compass-banner {
  margin-bottom: 0;
}

.launcher-zone {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.launcher-zone .service-hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.launcher-zone .service-launcher-card {
  padding: 22px;
  background: rgba(14, 18, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.launcher-zone .service-launcher-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.launcher-zone .service-launcher-card h4 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.baseline-zone {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.baseline-zone .dashboard-tabs {
  margin-bottom: 24px;
}

/* ===================================================================
   ONBOARDING GUIDED WALKTHROUGH (SPOTLIGHT & TETHERED POPOVER)
   =================================================================== */
#onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
}

.tour-spotlight {
  position: fixed;
  border-radius: 12px;
  border: 2px solid var(--blue-accent);
  box-shadow:
    0 0 0 9999px rgba(5, 7, 13, 0.8),
    0 0 32px rgba(59, 130, 246, 0.55);
  pointer-events: none;
  z-index: 1051;
  transition:
    top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.tour-beacon {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.tour-beacon-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue-accent);
  opacity: 0.75;
  animation: tour-beacon-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tour-beacon-dot {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--blue-accent);
  box-shadow: 0 0 10px var(--blue-accent);
}

@keyframes tour-beacon-pulse {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.tour-popover {
  position: fixed;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  z-index: 1052;
  transition:
    top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

.tour-popover-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #111827;
  border: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.tour-popover[data-arrow="top"] .tour-popover-arrow {
  top: -8px;
  border-bottom: none;
  border-right: none;
}

.tour-popover[data-arrow="bottom"] .tour-popover-arrow {
  bottom: -8px;
  border-top: none;
  border-left: none;
}

.tour-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-accent);
  background: rgba(59, 130, 246, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tour-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.tour-close-btn:hover {
  color: var(--text-primary);
}

.tour-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tour-popover-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.tour-popover-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.tour-action-guide-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.tour-action-guide-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tour-action-guide-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.tour-action-guide-text strong {
  color: #38bdf8;
  font-weight: 600;
}

.tour-popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.2s ease;
}

.tour-dot.active {
  background: var(--blue-accent);
}
