/* ============================================================
   Claude Code総研 LP - カスタムCSS
   Tailwind CDNで足りない部分を補完
   ============================================================ */

:root {
  --color-bg: #0F172A;
  --color-bg-soft: #111c33;
  --color-surface: #1e293b;
  --color-border: #2a3a5e;
  --color-text: #e2e8f0;
  --color-text-mute: #94a3b8;
  --color-accent: #BE5B36;        /* ver2アクセント（テラコッタ）。白背景で4.0:1超 */
  --color-accent-text: #9c4727;   /* テキスト専用（白背景でAA対応の濃いテラコッタ） */
  --color-accent-soft: #f3e7e0;
  --color-accent-dark: #9c4727;
  --color-terminal-green: #4ade80;
  --color-terminal-yellow: #facc15;
  --font-jp: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-jp);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #23293A;            /* ver2 ink */
  background: #FAF8F4;       /* ver2 クリーム背景 */
}

/* ============================================================
   スキップリンク（キーボード・スクリーンリーダー向け）
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   グローバル フォーカス可視性（キーボード操作の基盤）
   ============================================================ */
/* focus-visible をサポートしないブラウザ用フォールバック */
:focus-visible {
  outline: 3px solid #9a4e38;
  outline-offset: 2px;
}

/* ============================================================
   ターミナル風ウィンドウ
   ============================================================ */
.terminal {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  font-family: var(--font-mono);
  color: var(--color-text);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #050a18;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-mute);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--color-text-mute);
}

.terminal-body {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.8;
  background:
    linear-gradient(180deg, rgba(217, 119, 87, 0.04) 0%, transparent 60%),
    var(--color-bg);
  min-height: 200px;
}

.terminal-prompt {
  color: var(--color-terminal-green);
  font-weight: 600;
}

.terminal-comment {
  color: var(--color-text-mute);
}

.terminal-highlight {
  color: var(--color-terminal-yellow);
  font-weight: 700;
}

.terminal-output {
  color: var(--color-text);
}

.terminal-cursor::after {
  content: "▋";
  display: inline-block;
  color: var(--color-terminal-green);
  animation: blink 1s steps(2, start) infinite;
  margin-left: 2px;
}

@keyframes blink {
  to { visibility: hidden; }
}

/* ============================================================
   セクション共通
   ============================================================ */
/*
 * section-eyebrow は13px（通常テキスト）のため
 * WCAG AA 通常テキスト基準（4.5:1）を満たす --color-accent-text を使用
 * （#D97757 on white は 3.12:1 で違反）
 */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-accent-text);
  text-transform: uppercase;
}

/* 暗い背景のセクション（VOICEセクション等）では直接 style で上書き済みのため問題なし */

.heading-jp {
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* CTAボタン */
/*
 * btn-primary: 白テキスト on #D97757 = 3.12:1
 * 16px bold = 12pt bold → WCAG大きいテキスト閾値（14pt bold）未満 → 4.5:1 必要
 * 修正: テキスト色を #0f172a（ink）に変更 → ink on #D97757 = 5.72:1 でAA通過
 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 48px;
  background: var(--color-accent);
  color: #fff;   /* ver2: テラコッタ地に白文字 */
  font-weight: 700;
  border-radius: 8px;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 26px -12px rgba(190, 91, 54, .55);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  touch-action: manipulation;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid #9a4e38; outline-offset: 3px; }

/*
 * btn-secondary: テキスト色 #D97757 on white = 3.12:1 → 4.5:1 不足
 * 修正: color を --color-accent-text(#9a4e38, 5.96:1) に変更
 * ボーダー #D97757 は UI コンポーネント枠線（3:1基準）でギリ通過
 */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 48px;
  background: transparent;
  color: var(--color-accent-text);   /* 変更: #D97757(3.12:1) → #9a4e38(5.96:1) */
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  transition: background-color .2s ease, color .2s ease;
  text-decoration: none;
  font-size: 15px;
  touch-action: manipulation;
}
.btn-secondary:hover { background: var(--color-accent); color: #0f172a; }
.btn-secondary:focus-visible { outline: 3px solid #9a4e38; outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-ghost:focus-visible { outline: 3px solid #9a4e38; outline-offset: 2px; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);   /* ver2 クリーム */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E8E3D8;          /* ver2 line */
}

.nav-link {
  color: #334155;   /* 白背景で10.35:1 → AA合格 */
  font-weight: 600;
  font-size: 14px;
  transition: color .2s ease;
  /* インラインリンクのタップターゲット補強 */
  padding: 4px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { color: var(--color-accent-text); }
.nav-link:focus-visible { outline: 3px solid #9a4e38; outline-offset: 2px; border-radius: 3px; }

/* ============================================================
   モバイルメニュートグル タップターゲット強化
   ============================================================ */
#mobile-menu-toggle {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
#mobile-menu-toggle:focus-visible {
  outline: 3px solid #9a4e38;
  outline-offset: 2px;
  border-radius: 6px;
}

/* モバイルメニューリンク タップターゲット */
#mobile-menu nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ============================================================
   モバイル sticky CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  display: none;
  box-shadow: 0 -8px 24px -10px rgba(15,23,42,.15);
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; gap: 8px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   サービスカード「まずはここから」ハイライト
   ============================================================ */
.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(15,23,42,.18);
}

.service-card--featured {
  background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  border: 2px solid var(--color-accent);
  box-shadow: 0 20px 40px -20px rgba(217,119,87,.35);
  transform: scale(1.02);
}
/* モバイル1カラム時は scale を解除（badge の見切れ防止） */
@media (max-width: 768px) {
  .service-card--featured {
    transform: none;
    margin-top: 14px;
  }
}

/*
 * featured-badge: 白テキスト on #D97757 = 3.12:1
 * 「まずはここから」は装飾的バッジだが情報伝達を担うため修正
 * 修正: color を ink に変更 → 5.72:1
 */
.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #0f172a;   /* 変更: 白(3.12:1) → ink(5.72:1) */
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(217,119,87,.5);
}

/* ============================================================
   比較表スクロールコンテナ（モバイル向けスクロール示唆）
   ============================================================ */
.comparison-scroll-wrap {
  position: relative;
}
/* 右端グラデーションでスクロール可能であることを示唆 */
@media (max-width: 768px) {
  .comparison-scroll-wrap::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    pointer-events: none;
    border-radius: 0 12px 12px 0;
  }
}

/* ============================================================
   レーダーチャート CLS 対策（アスペクト比で高さを事前確保）
   ============================================================ */
.chart-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin: 0 auto;
}
.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   比較表
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
}
.comparison-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}
.comparison-table .col-us {
  background: linear-gradient(180deg, #fff7f2 0%, #ffece1 100%);
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}
.comparison-table thead .col-us {
  background: var(--color-accent);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
  border-top: 2px solid var(--color-accent);
}
.comparison-table tbody tr:last-child .col-us {
  border-bottom: 2px solid var(--color-accent);
}
.mark-best { color: #16a34a; font-weight: 700; font-size: 18px; }
.mark-ok   { color: #0284c7; font-weight: 700; font-size: 18px; }
.mark-mid  { color: #ea580c; font-weight: 700; font-size: 18px; }
.mark-bad  { color: #dc2626; font-weight: 700; font-size: 18px; }

/* ============================================================
   診断UI
   ============================================================ */
.diagnosis-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 50px -24px rgba(15,23,42,.15);
}
@media (max-width: 640px) {
  .diagnosis-card { padding: 24px 20px; }
}

.diagnosis-option {
  display: block;
  width: 100%;
  padding: 16px 20px;
  min-height: 56px;
  margin: 8px 0;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  transition: all .15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217,119,87,0.1);
}
.diagnosis-option:hover {
  border-color: var(--color-accent);
  background: #fff7f2;
}
.diagnosis-option:active {
  background: #ffe8dc;
  border-color: var(--color-accent-dark);
  transform: scale(0.99);
}
.diagnosis-option:focus-visible {
  outline: 3px solid #9a4e38;
  outline-offset: 2px;
}

/* 戻るボタン タップターゲット */
#back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  touch-action: manipulation;
}
#back-btn:focus-visible {
  outline: 3px solid #9a4e38;
  outline-offset: 2px;
  border-radius: 4px;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar__inner {
  height: 100%;
  background: var(--color-accent-dark);  /* #b85f44: 4.41:1 on white (UIコンポーネント3:1 通過) */
  transition: width .3s ease;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;  /* タッチターゲット */
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--color-accent);
  transition: transform .2s ease;
  flex-shrink: 0;
  /* アイコンはaria-hiddenで隠せないためテキストで意味を持たせる */
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible {
  outline: 3px solid #9a4e38;
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-item__body {
  padding: 0 0 20px;
  color: #475569;
  line-height: 1.8;
}

/* ============================================================
   フォーム
   ============================================================ */
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  /* 16px以上でiOS Safariの自動ズームを防止 */
  font-size: 16px;
  background: #fff;
  font-family: inherit;
  min-height: 48px;
}
.form-field textarea { min-height: unset; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #9a4e38;
  box-shadow: 0 0 0 3px rgba(154,78,56,.2);
}
/* バリデーション違反時 */
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}
.form-field .req {
  color: #dc2626;   /* 白背景で4.83:1 → AA通過 */
  font-size: 12px;
  margin-left: 4px;
}

/* ============================================================
   レーダーチャート スクリーンリーダー代替テーブル
   ============================================================ */
.chart-sr-table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #0f172a;
}
.chart-sr-table th,
.chart-sr-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
}
.chart-sr-table th {
  background: #f8fafc;
  font-weight: 700;
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.gradient-bg-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2a3a5e 100%);
}

/* .text-accent は Tailwind の text-accent(#D97757) と衝突するため削除。
   テキスト用には text-accent-t クラスを使用してください。 */
.bg-accent   { background: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   【リファイン】豪華フォント・成果数字スタイル
   ============================================================ */
:root {
  --font-serif-jp: "Shippori Mincho B1", "Yu Mincho", "游明朝", "YuMincho", serif;
  --font-serif-en: "Cormorant Garamond", "Times New Roman", serif;
}

.heading-jp {
  font-family: var(--font-serif-jp);
  letter-spacing: 0.04em;
  line-height: 1.55;
  font-weight: 800;
}

.section-eyebrow {
  font-family: var(--font-serif-en);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* 成果数字（VOICEの ハイライト） — 豪華なセリフイタリックで強調 */
.terminal-highlight {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--color-terminal-yellow);
  letter-spacing: 0.01em;
}

/* 「まずはここから」バッジも明朝で品よく */
.featured-badge {
  font-family: var(--font-serif-jp);
  letter-spacing: 0.06em;
}

/* PRICINGテーブル用：数字をカチッと太いセリフで表示 */
.figure-en {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;       /* DM Serif Display は 400 で既に太い */
  letter-spacing: 0.01em;
}

/* ロゴ画像（ヘッダー：横長ロゴをそのまま使う場合） */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo-img { height: 34px; }
}

/* ロゴ画像（フッター） */
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ヘッダー アイコン＋テキスト型ロゴ */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.header-logo-text {
  font-family: var(--font-serif-jp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #23293A;
  line-height: 1;
}
@media (max-width: 640px) {
  .header-logo-icon { width: 34px; height: 34px; }
  .header-logo-text { font-size: 16px; }
}

/* ============================================================
   【リファイン】PRICING — 活用診断テーブル拡大版
   ============================================================ */
.pricing-diag-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}
.pricing-diag-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 18px 24px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pricing-diag-table tbody td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
}
.pricing-diag-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.pricing-diag-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-diag-table .price-cell {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .pricing-diag-table { font-size: 15px; }
  .pricing-diag-table thead th,
  .pricing-diag-table tbody td { padding: 14px 14px; }
  .pricing-diag-table .price-cell { font-size: 18px; }
}

/* ============================================================
   【リファイン】ターミナル タイプライター効果
   ============================================================ */
[data-typewriter] {
  white-space: pre-wrap;
}
.terminal-line[data-typewriter-step] {
  opacity: 0;
  transition: opacity .2s ease;
}
.terminal-line[data-typewriter-step].is-revealed {
  opacity: 1;
}
.typing-cursor::after {
  content: "▋";
  display: inline-block;
  color: var(--color-terminal-green);
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .terminal-line[data-typewriter-step] { opacity: 1; }
  .typing-cursor::after { animation: none; }
}

/* ============================================================
   【ダーク刷新】theme-dark スコープ
   html要素に class="theme-dark" を付与すると有効化
   ============================================================ */
html.theme-dark {
  --color-bg-base: #1A1410;
  --color-bg-deep: #0F0A07;
  --color-surface: #221a14;
  --color-surface-soft: #2a201a;
  --color-text-base: #e7e2dd;
  --color-text-mute: #b8a99d;
  --color-text-dim: #8c7d70;
  --color-border-soft: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
}

html.theme-dark body {
  background:
    radial-gradient(ellipse 1200px 800px at 12% 8%, rgba(217,119,87,0.22), transparent 65%),
    radial-gradient(ellipse 1000px 700px at 88% 55%, rgba(217,119,87,0.14), transparent 65%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(217,119,87,0.10), transparent 65%),
    linear-gradient(180deg, #1A1410 0%, #110b08 100%);
  background-attachment: fixed;
  color: var(--color-text-base);
}

/* Tailwind の bg-white / bg-slate-50 を打ち消し */
html.theme-dark section.bg-white,
html.theme-dark section.bg-slate-50 {
  background: transparent !important;
}
/* グラデで微差をつけるセクションバンド */
html.theme-dark section.section-band {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04)) !important;
}

/* テキスト色の置き換え（Tailwindクラスを優先度で上書き） */
html.theme-dark .text-ink         { color: var(--color-text-base) !important; }
html.theme-dark .text-slate-400   { color: var(--color-text-dim) !important; }
html.theme-dark .text-slate-500   { color: var(--color-text-dim) !important; }
html.theme-dark .text-slate-600   { color: var(--color-text-mute) !important; }
html.theme-dark .text-slate-700   { color: var(--color-text-base) !important; }
html.theme-dark .text-slate-900   { color: var(--color-text-base) !important; }
html.theme-dark .text-white       { color: var(--color-text-base); }

/* カード・ボックス類のダーク背景化 */
html.theme-dark .bg-white {
  background: var(--color-surface) !important;
  color: var(--color-text-base);
}
html.theme-dark .bg-slate-50 {
  background: rgba(255,255,255,0.03) !important;
}
html.theme-dark .bg-orange-50\/50 {
  background: rgba(217,119,87,0.10) !important;
}
html.theme-dark .bg-white\/80 {
  background: rgba(255,255,255,0.05) !important;
}

/* ボーダー */
html.theme-dark .border-slate-200,
html.theme-dark .border-slate-700 {
  border-color: var(--color-border-soft) !important;
}
html.theme-dark .border-orange-100,
html.theme-dark .border-orange-200 {
  border-color: rgba(217,119,87,0.35) !important;
}
html.theme-dark .divide-slate-200 > * + * {
  border-top-color: var(--color-border-soft) !important;
}

/* ヘッダー */
html.theme-dark .site-header {
  background: rgba(26, 20, 16, 0.82);
  border-bottom-color: var(--color-border-soft);
}
html.theme-dark .nav-link { color: var(--color-text-mute); }
html.theme-dark .nav-link:hover { color: var(--color-accent-soft); }

/* sticky CTA（モバイル） */
html.theme-dark .sticky-cta {
  background: rgba(26,20,16,0.94);
  border-top-color: var(--color-border-soft);
}

/* サービスカード */
html.theme-dark .service-card {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-border-soft);
  color: var(--color-text-base);
  backdrop-filter: blur(6px);
}
html.theme-dark .service-card--featured {
  background: linear-gradient(180deg, rgba(217,119,87,0.22) 0%, rgba(217,119,87,0.04) 100%);
  border-color: var(--color-accent);
}

/* 比較表 */
html.theme-dark .comparison-table th,
html.theme-dark .comparison-table td {
  border-bottom-color: var(--color-border-soft);
}
html.theme-dark .comparison-table thead th {
  background: rgba(255,255,255,0.04);
  color: var(--color-text-base);
}
html.theme-dark .comparison-table thead .col-us {
  background: var(--color-accent);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}
html.theme-dark .comparison-table .col-us {
  background: linear-gradient(180deg, rgba(217,119,87,0.18), rgba(217,119,87,0.06)) !important;
}
html.theme-dark .comparison-scroll-wrap::after {
  background: linear-gradient(to right, transparent, rgba(26,20,16,0.95)) !important;
}

/* FAQ */
html.theme-dark .faq-item { border-bottom-color: var(--color-border-soft); }
html.theme-dark .faq-item summary { color: var(--color-text-base); }
html.theme-dark .faq-item__body { color: var(--color-text-mute); }

/* フォーム */
html.theme-dark .form-field label { color: var(--color-text-base); }
html.theme-dark .form-field input,
html.theme-dark .form-field textarea {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-base);
  border-color: var(--color-border-strong);
}
html.theme-dark .form-field input::placeholder,
html.theme-dark .form-field textarea::placeholder {
  color: var(--color-text-dim);
}
html.theme-dark .form-field input:focus,
html.theme-dark .form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.25);
}

/* 診断UI */
html.theme-dark .diagnosis-card {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-border-soft);
  backdrop-filter: blur(6px);
}
html.theme-dark .diagnosis-option {
  background: rgba(255,255,255,0.04);
  color: var(--color-text-base);
  border-color: var(--color-border-soft);
}
html.theme-dark .diagnosis-option:hover {
  background: rgba(217,119,87,0.18);
  border-color: var(--color-accent);
}
html.theme-dark .progress-bar { background: rgba(255,255,255,0.08); }

/* チャート代替テーブル */
html.theme-dark .chart-sr-table { color: var(--color-text-base); }
html.theme-dark .chart-sr-table th { background: rgba(255,255,255,0.05); }
html.theme-dark .chart-sr-table th,
html.theme-dark .chart-sr-table td { border-color: var(--color-border-soft); }

/* VOICEセクション（元々ダーク。グラデを暖色側に） */
html.theme-dark .gradient-bg-dark {
  background: linear-gradient(180deg, #0f0a07 0%, #1a1410 100%);
}

/* スキップリンク */
html.theme-dark .skip-link { background: var(--color-accent); color: #0f172a; }

/* PRICING診断テーブル（拡大版）のダーク用色 */
html.theme-dark .pricing-diag-table {
  color: var(--color-text-base);
}

/* 価格・強調文字をserif英文に */
html.theme-dark .figure-en { color: var(--color-accent-soft); }

/* アクセント色テキスト：ダーク背景上では明るめオレンジに切替（AA通過） */
html.theme-dark .text-accent-t,
html.theme-dark .text-accent { color: var(--color-accent-soft) !important; }

/* セクションアイブローもダーク背景上で明るく */
html.theme-dark .section-eyebrow { color: var(--color-accent-soft); }

/* リンク類 */
html.theme-dark a:hover { color: var(--color-accent-soft); }

/* PROBLEM/FLOWカードなど bg-white .text-slate-600 のpタグ可読性 */
html.theme-dark p.text-slate-600,
html.theme-dark p.text-slate-700 { color: var(--color-text-mute) !important; }

/* mark-best 等の比較表記号、ダーク用に微調整 */
html.theme-dark .mark-best { color: #5eea9a; }
html.theme-dark .mark-ok   { color: #6cc6f7; }
html.theme-dark .mark-mid  { color: #ffb077; }
html.theme-dark .mark-bad  { color: #ff8c8c; }

/* グリッド背景パターン（FV）はダーク時に色を反転 */
html.theme-dark svg pattern#grid path { stroke: rgba(255,255,255,0.6); }

/* 「お客様の声」見出しは元々 text-white。明朝フォントで品よく */
html.theme-dark h2.text-white { color: #fff !important; }

/* ============================================================
   【リファイン v2】PRICINGカード共通の項目リスト dl
   ============================================================ */
.pricing-attrs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.pricing-attrs > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.pricing-attrs > div:last-child { border-bottom: none; }
.pricing-attrs dt {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding-top: 1px;
}
.pricing-attrs dd {
  font-size: 14px;
  color: #0f172a;
  text-align: right;
  line-height: 1.55;
  margin: 0;
}

/* ダークテーマ時 */
html.theme-dark .pricing-attrs > div { border-bottom-color: rgba(255,255,255,0.08); }
html.theme-dark .pricing-attrs dt { color: var(--color-text-dim); }
html.theme-dark .pricing-attrs dd { color: var(--color-text-base); }

/* 詳細料金表の折りたたみ */
.pricing-detail summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background-color .15s ease;
}
.pricing-detail summary:hover {
  background: rgba(217,119,87,0.08);
}
.pricing-detail summary::-webkit-details-marker { display: none; }
.pricing-detail summary::after {
  content: "▼";
  font-size: 10px;
  transition: transform .2s ease;
  margin-left: 8px;
}
.pricing-detail[open] summary::after { transform: rotate(180deg); }
.pricing-detail[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(217,119,87,0.06);
}
.pricing-detail[open] > .pricing-diag-table {
  border-top: none;
}
.pricing-detail .pricing-diag-table {
  border: 1px solid rgba(0,0,0,0.10);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
html.theme-dark .pricing-detail summary {
  color: var(--color-accent-soft);
  border-color: rgba(255,255,255,0.12);
}
html.theme-dark .pricing-detail summary:hover {
  background: rgba(217,119,87,0.12);
}
html.theme-dark .pricing-detail[open] summary {
  background: rgba(217,119,87,0.10);
}
html.theme-dark .pricing-detail .pricing-diag-table {
  border-color: rgba(255,255,255,0.12);
}

/* ============================================================
   【リファイン v2】比較表 Claude Code総研列：本文テキストを白系に強制
   ============================================================ */
html.theme-dark .comparison-table .col-us .text-xs,
html.theme-dark .comparison-table .col-us span:not(.mark-best):not(.mark-ok):not(.mark-mid):not(.mark-bad) {
  color: var(--color-text-base) !important;
}
