/* ==========================================================================
   VocalX 管理画面 — Bootstrap (data-bs-theme="dark") のカスタム上書き
   Bootstrap 本体は static/vendor/bootstrap/ を参照。
   ここでは配色アクセント・ブランドマーク・ボタン等の微調整のみ。
   ========================================================================== */

:root {
  --vx-accent: #5865f2;      /* Discord ブランド */
  --vx-accent-2: #4a6cf7;
}

/* 背景: ダーク基調。動くオーロラは body::before (下の「背景オーロラ」) で描画 */body {
  min-height: 100vh;
  background-color: #101218;
}

/* ブランドマーク (波形アイコンを入れる角丸グラデの箱) */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--vx-accent), var(--vx-accent-2));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.brand-mark.big {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Discord ログインボタン */
.btn-discord {
  --bs-btn-bg: #5865f2;
  --bs-btn-border-color: #5865f2;
  --bs-btn-hover-bg: #6772f5;
  --bs-btn-hover-border-color: #6772f5;
  --bs-btn-active-bg: #4a56e0;
  --bs-btn-active-border-color: #4a56e0;
}

/* テーブル行ホバーを少し強調 */
.table tbody tr { transition: background-color 0.12s ease; }
.table-hover tbody tr:hover { background-color: rgba(255, 255, 255, 0.04); }

/* ==========================================================================
   SPA 遷移・アニメーション強化 (vocalx)
   ========================================================================== */

/* --- プログレスバー (SPA 遷移中) --- */
#vx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 3000; pointer-events: none; opacity: 0;
}
#vx-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #5865f2, #9d7bff, #4a6cf7, #5865f2);
  background-size: 300% 100%;
  animation: vx-progress-slide 1.1s linear infinite;
}
#vx-progress.active { opacity: 1; }
#vx-progress.done { opacity: 0; transition: opacity .35s ease; }
@keyframes vx-progress-slide { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }

/* --- 背景オーロラ (ゆっくり流れる) --- */
body { position: relative; background-color: #101218; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 42% at 18% -6%, rgba(88, 101, 242, 0.20), transparent 60%),
    radial-gradient(36% 36% at 88% 8%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(52% 46% at 55% 108%, rgba(74, 108, 247, 0.10), transparent 60%);
  animation: vx-aurora 22s ease-in-out infinite alternate;
}
@keyframes vx-aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.5%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.10); }
}

/* --- エンターアニメーション (JS が .vx-ready / .vx-shown を付与) --- */
.vx-ready .card,
.vx-ready .empty-state {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .5s ease,
    transform .5s cubic-bezier(.2, .7, .3, 1),
    box-shadow .3s ease,
    border-color .3s ease;
}
.vx-ready .card.vx-shown,
.vx-ready .empty-state.vx-shown { opacity: 1; transform: none; }

.vx-ready h1, .vx-ready h2, .vx-ready h3 {
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
}
.vx-ready h1.vx-shown, .vx-ready h2.vx-shown, .vx-ready h3.vx-shown { opacity: 1; transform: none; }

/* main 全体のフェードイン (SPA 差し替え時) */
main { will-change: opacity; }
.vx-main-in { animation: vx-main-in .3s ease both; }
@keyframes vx-main-in { from { opacity: 0; } to { opacity: 1; } }

/* --- カードのホバー (浮き上がり + グロー) --- */
.card {
  border-color: rgba(255, 255, 255, 0.06);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.45);
}

/* --- ボタンのシャインスイープ --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -130%;
  width: 50%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: vx-shine .7s ease; }
@keyframes vx-shine { to { left: 180%; } }

/* --- ナビリンクの下線グロー --- */
.navbar-nav .nav-link { position: relative; }
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--vx-accent), #9d7bff);
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* --- ブランドマークのグロー呼吸 --- */
.brand-mark { animation: vx-brand 4.5s ease-in-out infinite; }
@keyframes vx-brand {
  0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 2px 20px rgba(88, 101, 242, 0.65); }
}

/* --- フラッシュのスライドイン --- */
.alert { animation: vx-flash .4s ease both; }
@keyframes vx-flash { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- トースト通知 (ダーク調・カテゴリ別アクセント) --- */
#vx-toasts { z-index: 3200; top: 76px !important; }
#vx-toasts .toast {
  --vx-toast-accent: #9aa3b2;
  cursor: pointer;
  border-radius: .6rem;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(26, 28, 36, .96);
  color: #e7e9ee;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
  position: relative;
  overflow: hidden;
  padding-left: .6rem;
  /* 内容に合わせた幅: 短いメッセージは1行に収め、長い場合は最大幅で折り返す */
  width: max-content;
  max-width: min(92vw, 400px);
  animation: vx-toast-in .32s cubic-bezier(.21, 1.02, .73, 1) both;
}
#vx-toasts .toast .toast-body {
  /* 意図しない改行を防ぐ: 長い語/URLは安全に折り返し、行末は自然に揃える */
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
#vx-toasts .toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--vx-toast-accent);
}
#vx-toasts .toast .vx-toast-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--vx-toast-accent);
  margin-left: .75rem;
  margin-right: .25rem;
}
#vx-toasts .toast:hover { box-shadow: 0 12px 38px rgba(0, 0, 0, .6); }
/* カテゴリ別アクセント色 (重要度で識別・ソフトな配色) */
#vx-toasts .toast.vx-toast-success { --vx-toast-accent: #4ade80; }
#vx-toasts .toast.vx-toast-error   { --vx-toast-accent: #f87171; }
#vx-toasts .toast.vx-toast-warning { --vx-toast-accent: #fbbf24; }
#vx-toasts .toast.vx-toast-info    { --vx-toast-accent: #60a5fa; }
@keyframes vx-toast-in {
  from { opacity: 0; transform: translateX(30px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
/* 消えるときのアニメーション (クリック or 自動) */
#vx-toasts .toast.vx-toast-out {
  pointer-events: none;
  animation: vx-toast-out .3s ease-in forwards;
}
@keyframes vx-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(46px); }
}

/* --- テーブル行のホバー強調 --- */
.table-hover tbody tr { transition: background-color .15s ease; }
.table-hover tbody tr:hover { transform: none; }

/* --- View Transition API (ネイティブ遷移・対応ブラウザのみ) --- */
::view-transition-old(root) { animation: vx-vt-out .18s ease both; }
::view-transition-new(root) { animation: vx-vt-in .35s ease both; }
@keyframes vx-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vx-vt-in  { from { opacity: 0; transform: scale(1.015); } }

/* --- 縮小モーション設定への配慮 --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .vx-ready .card, .vx-ready .empty-state,
  .vx-ready h1, .vx-ready h2, .vx-ready h3 {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- 話者リスト (独自話者選択 UI・リスト形式) --- */
.speaker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .5rem;
  margin-bottom: .25rem;
}
.speaker-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .8rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .03);
  color: #e7e9ee;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, opacity .15s ease;
}
.speaker-item:hover { border-color: rgba(88, 101, 242, .55); }
.speaker-item.allowed:hover { transform: translateY(-2px); background-color: rgba(255, 255, 255, .05); }
/* ラジオ風の選択インジケータ */
.spk-ind {
  width: 16px; height: 16px; flex: 0 0 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  display: inline-flex; align-items: center; justify-content: center;
}
.spk-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk-id { font-size: .75rem; opacity: .6; flex-shrink: 0; }
/* 選択できない話者 (プラン外) はグレー + ロック表示 */
.speaker-item.speaker-locked { opacity: .42; filter: grayscale(.8); }
.speaker-item.speaker-locked .speaker-play { opacity: 1; filter: none; color: var(--vx-accent); }
.spk-badge-lock { color: #f0b232; font-size: .85rem; flex-shrink: 0; }
/* サンプル再生ボタン */
.speaker-play {
  cursor: pointer;
  font-size: 1.05rem;
  color: #9aa3b2;
  flex-shrink: 0;
  transition: transform .12s ease, color .12s ease;
}
.speaker-item:not(.speaker-locked) .speaker-play:hover { color: var(--vx-accent); transform: scale(1.15); }
/* オーディオビジュアライズ棒 (等化器風・実音に連動) */
.spk-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
  color: #9aa3b2;
}
.spk-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
  transition: height .12s ease;
}
.spk-eq i:nth-child(1) { height: 35%; }
.spk-eq i:nth-child(2) { height: 60%; }
.spk-eq i:nth-child(3) { height: 45%; }
.spk-eq i:nth-child(4) { height: 75%; }
/* グレー話者でも等化器は通常色を維持 (再生ボタンと同じ扱い) */
.speaker-item.speaker-locked .spk-eq { filter: none; }
/* 再生中はアクセント色。高さは JS (Web Audio Analyser) が実音に合わせて更新 */
.spk-eq.playing { color: var(--vx-accent); }
.spk-eq.playing i { opacity: 1; transition: none; }
/* 現在選択中の話者 */
#speaker-sel-current {
  border-color: var(--vx-accent) !important;
  background-color: rgba(88, 101, 242, .14) !important;
  box-shadow: 0 0 0 1px var(--vx-accent) inset;
}
#speaker-sel-current .spk-ind {
  border-color: var(--vx-accent);
  background-color: var(--vx-accent);
}
#speaker-sel-current .spk-ind::after {
  content: "✓";
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  line-height: 1;
}
/* 話者スタイル表示 */
.spk-style { font-weight: 400; opacity: .8; flex-shrink: 0; }
/* 話者一覧のセクション見出し (利用可能/利用不可) */
.spk-section-label {
  grid-column: 1 / -1;
  font-size: .8rem;
  font-weight: 700;
  color: #6cc59a;
  padding: .25rem .15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-top: .15rem;
}
.spk-section-label.spk-section-locked { color: #e2a03f; }
/* 利用不可行の解放プランタグ */
.spk-plan-tag {
  font-size: .72rem;
  font-weight: 700;
  color: #f0b232;
  background: rgba(240, 178, 50, .12);
  border: 1px solid rgba(240, 178, 50, .3);
  border-radius: .4rem;
  padding: .05rem .4rem;
  flex-shrink: 0;
  white-space: nowrap;
}
/* ロック行内でも鍵・プランタグはグレースケールにしない */
.speaker-item.speaker-locked .spk-badge-lock,
.speaker-item.speaker-locked .spk-plan-tag { filter: none; }
/* ドロップダウンの解放プラン表示 */
.spk-style-item .spk-style-plan { margin-left: auto; font-size: .75rem; opacity: .6; }
/* サーバー一覧: 行クリックで詳細へ */
.vx-row-link { cursor: pointer; }
/* --- プレミアムサーバー行 (サーバー一覧) --- */
.vx-premium-row {
  --premium-accent: #f5b942;
  border-left: 3px solid var(--premium-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--premium-accent) 12%, transparent), transparent 60%);
}
.vx-premium-row:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--premium-accent) 55%, transparent),
              0 6px 24px color-mix(in srgb, var(--premium-accent) 30%, transparent);
}
.vx-premium-row .premium-star { color: var(--premium-accent); }
.vx-premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f5b942, #f78f1e);
  color: #2a1a00;
  font-size: .72rem;
  font-weight: 700;
  border-radius: .45rem;
  padding: .12rem .5rem;
  box-shadow: 0 2px 8px rgba(245, 185, 66, .45);
  vertical-align: 1px;
}
/* プレミアム見た目カード (サーバー詳細) */
.vx-premium-card {
  border: 1px solid rgba(245, 185, 66, .35) !important;
  box-shadow: 0 0 0 1px rgba(245, 185, 66, .12), 0 10px 30px rgba(245, 185, 66, .08);
}
/* プレミアム詳細ページの背景グラデーション */
.vx-premium-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% -5%, color-mix(in srgb, var(--pg-from) 42%, transparent), transparent 62%),
    radial-gradient(55% 45% at 92% 12%, color-mix(in srgb, var(--pg-to) 32%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--pg-from) 10%, transparent), color-mix(in srgb, var(--pg-to) 7%, transparent));
}
/* プレビュー帯 */
.vx-premium-bg-preview {
  width: 150px;
  height: 2rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  flex-shrink: 0;
}
/* スタイル選択ドロップダウン (右クリック) */
.spk-style-menu {
  position: fixed;
  z-index: 3300;
  min-width: 150px;
  padding: .35rem;
  background: rgba(30, 32, 40, .98);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .6rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  transform-origin: top left;
  animation: vx-menu-in .16s ease both;
}
@keyframes vx-menu-in {
  from { opacity: 0; transform: scale(.94) translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
.spk-style-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  text-align: left;
  padding: .4rem .6rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #e7e9ee;
  cursor: pointer;
}
.spk-style-item:hover { background: rgba(88, 101, 242, .25); }
.spk-style-item.current { color: var(--vx-accent); font-weight: 700; }
.spk-style-item.locked { opacity: .45; cursor: not-allowed; }
.spk-style-item.locked:hover { background: transparent; }
/* 利用不可スタイルの鍵アイコン */
.spk-style-item .spk-style-lock { color: #f0b232; font-size: .8rem; flex-shrink: 0; }

/* ===== トップページ (ランディング) ===== */
.vx-hero {
  padding: 4.5rem 0 2.5rem;
}
.vx-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 991.98px) {
  .vx-hero-grid { grid-template-columns: 1fr; }
  .vx-hero-stage { order: 2; margin-top: 1rem; }
}
.vx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .9rem;
  border-radius: 2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--vx-accent, #8b9df5);
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .25);
  margin-bottom: 1.2rem;
}
.vx-hero-title {
  background: linear-gradient(120deg, #8b9df5, #60a5fa 45%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .6rem;
}
.vx-hero-sub { color: var(--bs-secondary-color); }
.vx-hero-cta { margin-top: 1.6rem; }
.vx-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--bs-secondary-color);
}
@media (max-width: 991.98px) { .vx-hero-trust { justify-content: center; } }
.vx-section { padding: 3rem 0 1.5rem; }
.vx-section-title { margin-bottom: .4rem; }
.vx-section > .h3 { margin-bottom: .4rem; }
.vx-section > p.text-center { margin-bottom: 1.8rem; }

/* --- ヒーローのモック ボイスカード --- */
.vx-hero-stage { position: relative; display: flex; justify-content: center; }
.vx-voice-card {
  width: 100%;
  max-width: 440px;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, rgba(35, 39, 52, .9), rgba(22, 25, 34, .92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  animation: vx-float 7s ease-in-out infinite;
}
@keyframes vx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.vx-voice-card-head { display: flex; align-items: center; gap: .7rem; }
.vx-voice-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b9df5, #34d399);
  flex-shrink: 0;
}
.vx-voice-id { min-width: 0; }
.vx-voice-name { font-weight: 700; font-size: .95rem; }
.vx-voice-meta { font-size: .72rem; color: var(--bs-secondary-color); }
.vx-voice-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .25);
  border-radius: 2rem;
  padding: .15rem .6rem;
}
.vx-live-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #f87171; animation: vx-blink 1.2s ease-in-out infinite; }
@keyframes vx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.vx-voice-card-body { margin-top: .9rem; }
.vx-voice-bubble {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: .7rem .7rem .7rem .2rem;
  padding: .6rem .8rem;
  font-size: .85rem;
}
.vx-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-top: .8rem;
}
.vx-eq i {
  flex: 1;
  min-width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b9df5, #34d399);
  animation: vx-eq-bounce 1s ease-in-out infinite;
}
.vx-eq i:nth-child(1) { animation-delay: 0s; }
.vx-eq i:nth-child(2) { animation-delay: .12s; }
.vx-eq i:nth-child(3) { animation-delay: .24s; }
.vx-eq i:nth-child(4) { animation-delay: .1s; }
.vx-eq i:nth-child(5) { animation-delay: .3s; }
.vx-eq i:nth-child(6) { animation-delay: .18s; }
.vx-eq i:nth-child(7) { animation-delay: .05s; }
.vx-eq i:nth-child(8) { animation-delay: .26s; }
@keyframes vx-eq-bounce {
  0%, 100% { height: 20%; }
  50% { height: 95%; }
}
.vx-voice-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: .8rem;
  font-size: .72rem;
  color: var(--bs-secondary-color);
}
.vx-float-chip {
  position: absolute;
  padding: .35rem .8rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(30, 33, 44, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  white-space: nowrap;
  animation: vx-float 6s ease-in-out infinite;
}
.vx-chip-1 { top: -1.2rem; left: -1rem; animation-delay: .3s; }
.vx-chip-2 { top: 30%; right: -2rem; animation-delay: 1s; }
.vx-chip-3 { bottom: -1.2rem; left: 6%; animation-delay: 1.6s; }
@media (max-width: 991.98px) {
  .vx-chip-2 { right: -.2rem; }
}

/* --- 実績統計 --- */
.vx-stats { margin-top: 2.5rem; }
.vx-stat-card {
  height: 100%;
  padding: 1.1rem .5rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .03);
}
.vx-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(120deg, #8b9df5, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vx-stat-label { font-size: .8rem; color: var(--bs-secondary-color); }

/* --- 話者チップ --- */
.vx-speaker-chip {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid rgba(139, 157, 245, .3);
  background: rgba(139, 157, 245, .08);
  color: #cdd5ff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vx-speaker-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 157, 245, .2);
}

/* --- 特徴 --- */
.vx-feature-card {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vx-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, .4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.vx-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .75rem;
  font-size: 1.2rem;
  color: #8b9df5;
  background: rgba(96, 165, 250, .12);
  margin-bottom: .9rem;
}

/* --- 使い方ステップ --- */
.vx-step-card {
  position: relative;
  height: 100%;
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .03);
}
.vx-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b9df5, #60a5fa);
  box-shadow: 0 6px 16px rgba(96, 165, 250, .3);
  margin-bottom: .9rem;
}

/* --- ユースケース --- */
.vx-usecase-card {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .03);
  transition: transform .18s ease, border-color .18s ease;
}
.vx-usecase-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, .4); }
.vx-usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .75rem;
  font-size: 1.2rem;
  color: #34d399;
  background: rgba(52, 211, 153, .12);
  margin-bottom: .9rem;
}

/* --- プラン --- */
.vx-billing-toggle .vx-bt.active { box-shadow: 0 4px 14px rgba(96, 165, 250, .3); }
.vx-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vx-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.vx-plan-featured {
  border-color: rgba(139, 157, 245, .55);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(139, 157, 245, .16), transparent 60%),
    rgba(255, 255, 255, .03);
  box-shadow: 0 0 0 1px rgba(139, 157, 245, .18), 0 16px 44px rgba(96, 165, 250, .14);
}
.vx-plan-popular {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: .22rem .7rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  color: #2a1a00;
  background: linear-gradient(135deg, #f5b942, #f78f1e);
  box-shadow: 0 6px 16px rgba(245, 185, 66, .35);
}
.vx-plan-head { margin-bottom: 1.1rem; }
.vx-plan-price {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  margin: .25rem 0 .1rem;
}
.vx-plan-period {
  font-size: .85rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}
/* 月額/12か月 切替: 既定は12か月を表示 */
.vx-plan-card .vx-price-monthly { display: none; }
.vx-plan-card .vx-price-monthly-sub { display: none; }
.vx-plan-card.vx-show-monthly .vx-price-yearly { display: none; }
.vx-plan-card.vx-show-monthly .vx-price-yearly-sub { display: none; }
.vx-plan-card.vx-show-monthly .vx-price-monthly { display: block; }
.vx-plan-card.vx-show-monthly .vx-price-monthly-sub { display: block; }
.vx-plan-features li {
  padding: .32rem 0;
  font-size: .92rem;
}

/* --- FAQ --- */
.vx-faq .accordion-item {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .7rem !important;
  margin-bottom: .6rem;
  overflow: hidden;
}
.vx-faq .accordion-button {
  background: transparent;
  color: inherit;
  font-weight: 600;
  box-shadow: none;
}
.vx-faq .accordion-button:not(.collapsed) { background: rgba(96, 165, 250, .08); }

/* --- 最終 CTA --- */
.vx-cta-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(139, 157, 245, .3);
  background:
    radial-gradient(90% 90% at 50% -20%, rgba(139, 157, 245, .18), transparent 65%),
    rgba(255, 255, 255, .03);
}

/* --- フッター --- */
.vx-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 2.5rem;
}
.vx-footer .vx-credit {
  border-top: 1px solid rgba(255, 255, 255, .06);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

