/* shogun-shindan/style.css — 戦国武将診断 ローカルスタイル
   共通 design-tokens / components / sidebar / layout / fonts と組み合わせて使用 */

:root {
  --shindan-bg-paper: #fdf6e3;
  --shindan-gold: #c9a227;
  --shindan-rarity-legendary: #c9a227;
  --shindan-rarity-super-rare: #a855f7;
  --shindan-rarity-rare: #3b82f6;
  --shindan-rarity-common: #6b7280;
}

/* ヒーロー */
.shindan-hero {
  text-align: center;
  padding: 48px 16px 32px;
  background: linear-gradient(180deg, var(--shindan-bg-paper) 0%, #fff 100%);
  border-radius: 12px;
  margin-bottom: 32px;
}

.shindan-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  line-height: 1.3;
}

.shindan-hero-subtitle {
  font-size: clamp(13px, 1.8vw, 16px);
  color: #6b7280;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.shindan-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.shindan-cta {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 200px;
  text-decoration: none;
  display: inline-block;
}

.shindan-cta-primary {
  background: var(--c-primary, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}
.shindan-cta-primary:hover {
  background: var(--c-primary-hover, #1e40af);
  transform: translateY(-2px);
}

.shindan-cta-secondary {
  background: #fff;
  color: var(--c-primary, #1d4ed8);
  border: 2px solid var(--c-primary, #1d4ed8);
}
.shindan-cta-secondary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.shindan-feature-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.shindan-feature-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #4b5563;
  text-align: center;
  min-width: 160px;
}

.shindan-feature-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--shindan-gold);
  margin-bottom: 4px;
  font-family: 'Noto Serif JP', serif;
}

/* セクション見出し */
.shindan-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: #1f2937;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--shindan-gold);
}

.shindan-subsection-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: #1f2937;
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--shindan-gold);
  line-height: 1.4;
}

.shindan-section p {
  line-height: 1.85;
  color: #374151;
  margin: 0 0 12px;
  font-size: 14.5px;
}

.shindan-section p strong {
  color: #1f2937;
  font-weight: 700;
}

.shindan-pipeline {
  padding-left: 0;
  list-style: none;
  counter-reset: pipeline;
  margin: 8px 0 16px;
}

.shindan-pipeline li {
  position: relative;
  padding: 10px 12px 10px 44px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  counter-increment: pipeline;
}

.shindan-pipeline li::before {
  content: counter(pipeline);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--shindan-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 13px;
}

.shindan-pipeline li strong {
  color: var(--shindan-gold);
}

.shindan-roadmap {
  padding-left: 0;
  list-style: none;
  margin: 8px 0 16px;
}

.shindan-roadmap li {
  padding: 10px 14px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--shindan-bg-paper) 0%, #fff 100%);
  border-left: 4px solid var(--shindan-gold);
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.shindan-roadmap li strong {
  color: #1f2937;
}

/* 質問フォーム */
.quiz-progress {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  z-index: 10;
}

.quiz-progress-track {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-bar {
  background: var(--shindan-gold);
  height: 100%;
  width: 0%;
  transition: width 0.25s ease;
}

.quiz-progress-text {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

.quiz-intro {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.quiz-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 0 0 16px;
}

.quiz-question-num {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.quiz-question-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: #1f2937;
  margin: 8px 0 16px;
  line-height: 1.5;
}

.quiz-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.quiz-option {
  position: relative;
  cursor: pointer;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #4b5563;
  transition: all 0.15s;
  display: block;
}
.quiz-option:hover {
  background: #eff6ff;
  border-color: var(--c-primary, #1d4ed8);
}
/* ラジオは視覚的に隠すだけにする。display:none にするとフォーカスできず、
   Tab / Space / 矢印キーでの回答手段が失われるため */
.quiz-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.quiz-option:has(input:checked) {
  background: var(--c-primary, #1d4ed8);
  color: #fff;
  border-color: var(--c-primary, #1d4ed8);
  font-weight: 600;
}
.quiz-option:has(input:focus-visible) {
  outline: 2px solid var(--c-primary, #1d4ed8);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  /* 5段階は連続尺度なので、スマホでは折り返さず縦1列にする。
     DOM順は肯定→否定(5→1)（quiz-full-logic.js の SCALE_ORDER 参照）で、
     視覚順・読み上げ順・矢印キーの移動方向をすべて一致させるため
     column-reverse は使わず素直に上から並べる */
  .quiz-scale {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  /* 共通CSSの label:has(input[type="radio"])（詳細度 0,1,2 / min-height:44px）
     に負けないよう、.quiz-scale で包んで詳細度 0,2,0 に上げている */
  .quiz-scale .quiz-option {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
  }
  /* 選択状態を色だけに頼らない（左の太いボーダー＋チェックマーク） */
  .quiz-scale .quiz-option:has(input:checked),
  .quiz-scale .quiz-option--selected {
    border-left-width: 5px;
  }
  .quiz-scale .quiz-option:has(input:checked)::after,
  .quiz-scale .quiz-option--selected::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: var(--horo-icon-check) center / contain no-repeat;
    mask: var(--horo-icon-check) center / contain no-repeat;
  }
}

.quiz-submit-row {
  text-align: center;
  margin: 24px 0 16px;
}

.quiz-submit {
  padding: 14px 40px;
  font-size: 17px;
  font-weight: 700;
  background: var(--c-primary, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.quiz-submit:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.quiz-submit:not(:disabled):hover {
  background: var(--c-primary-hover, #1e40af);
}

/* 結果ページ */
.result-card {
  background: linear-gradient(180deg, var(--shindan-bg-paper) 0%, #fff 100%);
  border: 2px solid var(--shindan-gold);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.result-rarity-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shindan-gold);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
}

.rarity-legendary .result-rarity-badge { background: var(--shindan-rarity-legendary); }
.rarity-super-rare .result-rarity-badge { background: var(--shindan-rarity-super-rare); }
.rarity-rare .result-rarity-badge { background: var(--shindan-rarity-rare); }
.rarity-common .result-rarity-badge { background: var(--shindan-rarity-common); }

.result-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 32px);
  color: #1f2937;
  margin: 8px 0 16px;
}

.result-warrior-name {
  color: var(--shindan-gold);
}

.result-match-rate {
  font-size: 18px;
  color: #4b5563;
  margin: 8px 0 12px;
}

.result-match-rate strong {
  font-size: 30px;
  color: var(--shindan-gold);
  font-family: 'Noto Serif JP', serif;
}

.result-summary {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  max-width: 600px;
  margin: 12px auto;
}

.result-traits {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.result-card-cta {
  margin-top: 20px;
}
.result-card-cta .shindan-cta {
  min-width: auto;
  padding: 12px 24px;
  font-size: 15px;
}

.result-trait-chip {
  background: #fff;
  border: 1px solid var(--shindan-gold);
  color: var(--shindan-gold);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
}

.result-radar-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.result-top5 {
  padding: 0;
  list-style: none;
}

.result-other {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.result-other-rank {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--shindan-gold);
}
.result-other-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}
.result-other-rate {
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
}
.result-other-rarity {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
}
.result-other.rarity-legendary .result-other-rarity { background: #fef3c7; color: #c9a227; }
.result-other.rarity-super-rare .result-other-rarity { background: #f3e8ff; color: #a855f7; }
.result-other.rarity-rare .result-other-rarity { background: #dbeafe; color: #1d4ed8; }

.share-card-wrap {
  text-align: center;
  margin: 20px 0;
}

#share-card-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.share-btn {
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  background: var(--c-primary, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.share-btn:hover { background: var(--c-primary-hover, #1e40af); }

.integrity-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #92400e;
  border-radius: 4px;
}

.result-meta-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.7;
}

.section-lead {
  font-size: 13.5px;
  color: #6b7280;
  margin: -4px 0 12px;
  line-height: 1.6;
}

/* ─── メインカードの拡張 ─── */
.result-prefix {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px;
}

.result-warrior-en {
  font-size: 13px;
  color: #9ca3af;
  margin: -8px 0 12px;
  font-style: italic;
}

/* ─── なぜこの武将か ─── */
.reason-lead {
  font-size: 15px;
  color: #374151;
  margin: 0 0 16px;
  line-height: 1.7;
}

.reason-list {
  padding-left: 0;
  list-style: none;
}

.reason-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
}

.reason-rank {
  width: 40px;
  height: 40px;
  background: var(--shindan-gold);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-axis-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: #1f2937;
  margin: 0 0 4px;
}

.reason-axis-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 8px;
  line-height: 1.5;
}

.reason-score-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}

.reason-score-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}
.reason-score-tag.user    { background: #dbeafe; color: #1e40af; }
.reason-score-tag.warrior { background: #fef3c7; color: #92400e; }
.reason-score-diff {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
}

.reason-tone {
  font-size: 13.5px;
  color: #374151;
  margin: 6px 0 0;
  line-height: 1.6;
}
.reason-tone strong { color: var(--shindan-gold); }

/* ─── 9軸スコア対比表 ─── */
.score-compare-table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

.score-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.score-compare-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid var(--shindan-gold);
  font-size: 12.5px;
}

.score-compare-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.score-compare-table td.axis-name {
  min-width: 130px;
}
.score-compare-table td.axis-name strong {
  display: block;
  font-size: 14px;
  color: #1f2937;
  font-family: 'Noto Serif JP', serif;
}
.score-compare-table td.axis-name small {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  line-height: 1.4;
}

.score-compare-table td.score-cell {
  min-width: 110px;
}

.score-bar {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2px;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.score-bar-fill.user    { background: #1d4ed8; }
.score-bar-fill.warrior { background: var(--shindan-gold); }

.score-val {
  font-size: 11.5px;
  color: #4b5563;
  font-weight: 600;
}

.diff-cell {
  font-weight: 700;
  text-align: right;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  min-width: 56px;
}
.diff-cell.close { color: #15803d; }
.diff-cell.mid   { color: #ca8a04; }
.diff-cell.far   { color: #b91c1c; }

.score-compare-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #6b7280;
  margin: 12px 0 0;
}
.legend-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.legend-mark.close { background: #15803d; }
.legend-mark.mid   { background: #ca8a04; }
.legend-mark.far   { background: #b91c1c; }

/* ─── あなたを表す3つの性格 ─── */
.up-lead {
  font-size: 14px;
  color: #374151;
  margin: 0 0 12px;
  line-height: 1.6;
}

.up-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) {
  .up-list { grid-template-columns: 1fr; }
}

.up-item {
  background: linear-gradient(180deg, var(--shindan-bg-paper) 0%, #fff 100%);
  border: 1px solid var(--shindan-gold);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.up-axis {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 4px;
}

.up-score {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--shindan-gold);
  margin: 4px 0;
}

.up-tone {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

/* ─── 他の武将成分（既存を拡張） ─── */
.result-other {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.result-other-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-other-clan {
  font-size: 11px;
  color: #9ca3af;
}

/* ─── 次のアクション ─── */
.result-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 16px;
}
@media (max-width: 640px) {
  .result-actions { grid-template-columns: 1fr; }
}

.result-action-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.15s;
}
.result-action-card:hover {
  border-color: var(--shindan-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-action-icon {
  font-size: 24px;
  color: var(--shindan-gold);
  font-family: 'Noto Serif JP', serif;
}

.result-action-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
}

.result-action-note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ────────────────────────────
   16Personalities 風 結果ページ
   ──────────────────────────── */

/* ─── ヒーロー ─── */
.hero-card {
  background: linear-gradient(135deg, var(--shindan-bg-paper) 0%, #fff 60%, #fffbeb 100%);
  border: 2px solid var(--shindan-gold);
  border-radius: 16px;
  padding: 40px 28px 32px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.12);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-rarity-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shindan-gold);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.hero-card.rarity-legendary  .hero-rarity-badge { background: var(--shindan-rarity-legendary); box-shadow: 0 0 12px rgba(201, 162, 39, 0.5); }
.hero-card.rarity-super-rare .hero-rarity-badge { background: var(--shindan-rarity-super-rare); }
.hero-card.rarity-rare       .hero-rarity-badge { background: var(--shindan-rarity-rare); }
.hero-card.rarity-common     .hero-rarity-badge { background: var(--shindan-rarity-common); }

.hero-prefix {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px;
  font-weight: 500;
}

.hero-warrior-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.15;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.hero-warrior-en {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
  margin: 0 0 24px;
}

.hero-type-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  padding: 18px 16px;
  margin: 20px auto;
  max-width: 480px;
  backdrop-filter: blur(4px);
}

.hero-type-label {
  display: block;
  font-size: 11.5px;
  color: var(--shindan-gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.hero-type-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 3.5vw, 28px);
  color: #1f2937;
  margin: 0 0 6px;
  line-height: 1.3;
}

.hero-type-tagline {
  font-size: 13.5px;
  color: #4b5563;
  margin: 0;
  font-style: italic;
}

.hero-match-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 8px;
}

.hero-match-label {
  font-size: 11.5px;
  color: #6b7280;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-match-rate {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(56px, 9vw, 84px);
  color: var(--shindan-gold);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(201, 162, 39, 0.2);
}
.hero-match-rate small {
  font-size: 0.45em;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.hero-traits {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.hero-trait-chip {
  background: #fff;
  border: 1.5px solid var(--shindan-gold);
  color: var(--shindan-gold);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ─── 概観 ─── */
.overview-lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: #1f2937;
  margin: 0 0 12px;
  padding: 16px 18px;
  background: var(--shindan-bg-paper);
  border-left: 4px solid var(--shindan-gold);
  border-radius: 4px;
}
.overview-lead strong { color: var(--shindan-gold); font-weight: 700; }

.overview-body {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
  margin: 0 0 12px;
}
.overview-body strong { color: #1f2937; }

/* ─── 9軸 対極バー ─── */
.polarity-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0 24px;
}

.polarity-row {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.polarity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.polarity-axis-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.polarity-score-tags {
  display: flex;
  gap: 6px;
}

.polarity-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.polarity-tag.user    { background: #dbeafe; color: #1e40af; }
.polarity-tag.warrior { background: #fef3c7; color: #92400e; }

.polarity-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.polarity-pole-label {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}
.polarity-pole-label.right { text-align: right; }

.polarity-track {
  position: relative;
  height: 10px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  border-radius: 5px;
}

.polarity-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.2) 0%, rgba(29, 78, 216, 0.5) 100%);
  border-radius: 5px;
  transition: width 0.6s ease;
}

.polarity-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: help;
}
.polarity-marker.user    { background: #1d4ed8; z-index: 2; }
.polarity-marker.warrior { background: var(--shindan-gold); z-index: 1; width: 22px; height: 22px; }

/* ─── 強み ─── */
.strength-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.strength-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--shindan-bg-paper) 100%);
  border: 1px solid #e5e7eb;
  border-left: 5px solid var(--shindan-gold);
  border-radius: 10px;
}

.strength-num {
  width: 48px;
  height: 48px;
  background: var(--shindan-gold);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.4);
}

.strength-axis {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}

.strength-score {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--shindan-gold);
  color: #fff;
  border-radius: 4px;
}

.strength-text {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
}

/* ─── 課題 ─── */
.weakness-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.weakness-item {
  padding: 14px 16px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
}

.weakness-axis {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px;
}

.weakness-score {
  display: inline-block;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  background: #f59e0b;
  color: #fff;
  border-radius: 4px;
}

.weakness-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.weakness-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.weakness-none {
  padding: 20px;
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  font-size: 14px;
  color: #166534;
  margin: 0;
}

/* ─── 行動傾向 ─── */
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.behavior-card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--shindan-gold);
  border-radius: 10px;
}

.behavior-domain {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--shindan-gold);
  margin: 0 0 8px;
}

.behavior-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
}

/* ─── 武将索引フィルター ─── */
.warriors-filter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .warriors-filter { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .warriors-filter { grid-template-columns: 1fr; }
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #4b5563;
}

.filter-select,
.filter-input {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #1f2937;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--shindan-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

.filter-count-row {
  justify-content: flex-end;
  align-items: flex-end;
}

.filter-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--shindan-gold);
  font-family: 'Noto Serif JP', serif;
}

/* ─── 武将グリッド ─── */
.warriors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.warrior-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.warrior-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #d1d5db;
}
.warrior-card.rarity-legendary::before  { background: var(--shindan-rarity-legendary); }
.warrior-card.rarity-super-rare::before { background: var(--shindan-rarity-super-rare); }
.warrior-card.rarity-rare::before       { background: var(--shindan-rarity-rare); }
.warrior-card.rarity-common::before     { background: var(--shindan-rarity-common); }

.warrior-card:hover {
  border-color: var(--shindan-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.warrior-card-rarity {
  font-size: 10.5px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.warrior-card.rarity-legendary  .warrior-card-rarity { color: var(--shindan-rarity-legendary); }
.warrior-card.rarity-super-rare .warrior-card-rarity { color: var(--shindan-rarity-super-rare); }
.warrior-card.rarity-rare       .warrior-card-rarity { color: var(--shindan-rarity-rare); }

.warrior-card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: #1f2937;
  margin: 4px 0 2px;
  line-height: 1.3;
}

.warrior-card-en {
  font-size: 11.5px;
  color: #9ca3af;
  font-style: italic;
  margin: 0 0 6px;
}

.warrior-card-clan {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px;
}

.warrior-card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.warrior-card-traits li {
  font-size: 10.5px;
  padding: 2px 8px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
}

/* ─── 武将一覧「もっと見る」ボタン ─── */
.warriors-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--shindan-bg-card, #fff);
  border: 1.5px solid var(--shindan-gold, #c9a227);
  color: var(--shindan-gold, #c9a227);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.warriors-load-more-btn:hover {
  background: var(--shindan-gold, #c9a227);
  color: #fff;
}


/* ─── 家紋アイコン ─── */
.warrior-kamon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #f3f0e8;
  padding: 3px;
  display: block;
  margin-bottom: 8px;
}

.result-card .warrior-kamon {
  width: 48px;
  height: 48px;
}

.warrior-kamon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 8px;
  font-family: 'Noto Serif JP', serif;
}

.result-card .warrior-kamon-fallback {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* ─── 個別武将ページ ─── */
.warrior-detail-back {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: background 0.15s;
}
.back-link:hover {
  background: #e5e7eb;
}

.warrior-axis-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .warrior-axis-list { grid-template-columns: 1fr; }
}

.warrior-axis-item {
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.warrior-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.warrior-axis-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.warrior-axis-score {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--shindan-gold);
  font-weight: 700;
}

.warrior-axis-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 4px;
  line-height: 1.5;
}

.warrior-axis-tone {
  font-size: 13px;
  color: #374151;
  margin: 4px 0 0;
}
.warrior-axis-tone strong { color: var(--shindan-gold); }

/* ─── 相性武将セクション ─── */
.compatibility-good .result-other-rate {
  background: linear-gradient(90deg, #fef3c7, var(--shindan-gold));
  color: #fff;
}

.compatibility-bad .result-other-rate {
  background: linear-gradient(90deg, #e5e7eb, #6b7280);
  color: #fff;
}

.compat-narrative {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  font-style: italic;
  line-height: 1.4;
}

/* ─── 精密版クイズ（quiz-full）固有スタイル ─── */

/* 5段階選択肢 — モバイルも5列横並びを維持 */
.quiz-full-scale {
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 640px) {
  /* スマホは .quiz-scale 側で flex 縦1列にするため列指定を無効化する */
  .quiz-full-scale { grid-template-columns: none !important; }
  /* 番号は上の見出しではなく左端のバッジとして横に並べる */
  .quiz-full-scale .quiz-option-num {
    flex: 0 0 auto;
    width: 26px;
    margin: 0 10px 0 0;
    font-size: 16px;
    text-align: center;
  }
  .quiz-full-scale .quiz-option-label { text-align: left; }
}

@media (min-width: 641px) {
  /* PC横並びの見た目（左から1→5）を維持するための対応。
     DOM順は quiz-full-logic.js の SCALE_ORDER により肯定→否定(5→1)に
     変更済み（スマホの視覚順・読み上げ順・矢印キー方向を一致させるため）。
     direction:rtl でgridの視覚配置だけを反転させ、見た目を従来どおり
     1→5の左から右に保つ。文字の向きは子要素で ltr に戻す */
  .quiz-full-scale {
    direction: rtl;
  }
  .quiz-full-scale .quiz-option {
    direction: ltr;
  }
}

/* ─── 結果共有リンク（shindan-10） ─── */

.result-share-notice {
  background: #fef9ef;
  border: 1px solid #e5c97a;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #78350f;
  margin-bottom: 16px;
  text-align: center;
}

.result-share-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0 24px;
  text-align: center;
}

.share-link-label {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.share-link-url {
  font-size: 12px;
  color: #1d4ed8;
  word-break: break-all;
  max-width: 100%;
}

.share-link-copy {
  padding: 4px 12px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.share-link-copy:hover { background: #1e40af; }

/* ─── マイページ ─── */
.mypage-grid {
  display: grid;
  gap: 20px;
  padding: 0 0 40px;
}

.mypage-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.mypage-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--shindan-gold);
}

.mypage-title-display {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mypage-title-badge {
  display: inline-block;
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--shindan-gold), #e8b94a);
  color: #1f2937;
  font-weight: 700;
  font-size: 20px;
  border-radius: 999px;
  font-family: 'Noto Serif JP', serif;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35);
  white-space: nowrap;
}

.mypage-title-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
}

.mypage-title-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
  font-size: 12px;
}

.mypage-title-step {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #9ca3af;
  font-weight: 600;
}

.mypage-title-step--achieved {
  background: var(--shindan-gold);
  color: #fff;
}

.mypage-title-arrow {
  color: #d1d5db;
  font-size: 11px;
}

.mypage-next-title {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}

.mypage-collection-bar-wrap {
  background: #f3f4f6;
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mypage-collection-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--shindan-gold), #e8b94a);
  border-radius: 8px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.mypage-collection-count {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.mypage-warriors-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}

.mypage-warrior-chip {
  padding: 3px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.mypage-warrior-chip:hover {
  background: #fef3c7;
  border-color: var(--shindan-gold);
}

.mypage-warrior-chip-more {
  padding: 3px 10px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.mypage-empty-text {
  font-size: 13px;
  color: #9ca3af;
  margin: 12px 0 0;
  line-height: 1.6;
}

.mypage-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mypage-history-item {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.mypage-history-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mypage-history-warrior-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mypage-history-warrior-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.mypage-history-warrior-rate {
  font-size: 14px;
  font-weight: 700;
  color: var(--shindan-gold);
}

.mypage-history-mode {
  font-size: 10.5px;
  padding: 2px 8px;
  background: #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  white-space: nowrap;
}

.mypage-history-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mypage-sub-match {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.mypage-sub-match:hover { color: var(--shindan-gold); }

.mypage-sub-match span {
  color: var(--shindan-gold);
  font-weight: 600;
}

.mypage-history-date {
  font-size: 12px;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

.mypage-empty {
  text-align: center;
  padding: 32px 16px;
  color: #9ca3af;
}

.mypage-empty p {
  font-size: 14px;
  margin: 0 0 16px;
}

.mypage-empty-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--shindan-gold);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  transition: background 0.15s;
}

.mypage-empty-link:hover { background: #a87e18; }

.mypage-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: all 0.12s;
}

.mypage-nav-link:hover {
  background: var(--shindan-bg-paper);
  border-color: var(--shindan-gold);
  color: var(--shindan-gold);
}

/* ─────────────────────────────────────
   結果ページ 多面強化セクション（A1〜A6）
   ───────────────────────────────────── */

/* A3: ヒーローカード家紋背景 */
.hero-card { position: relative; overflow: hidden; }
.hero-card.hero-has-kamon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-kamon-url);
  background-repeat: no-repeat;
  background-position: right -40px bottom -40px;
  background-size: 260px 260px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero-card.hero-has-kamon > * { position: relative; z-index: 1; }

/* A6: 9軸サマリーチップ */
.summary-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fdfaf3, #f9f5e7);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 12px;
}
.summary-tags-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 14px;
  color: #6b5b1f;
}
.summary-tags-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.summary-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Noto Serif JP', serif;
  border: 1px solid transparent;
}
.summary-tag-high {
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.25);
}
.summary-tag-low {
  background: rgba(180, 83, 9, 0.08);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.25);
}
.summary-tag-label { font-weight: 700; }
.summary-tag-pole { font-size: 11px; opacity: 0.75; }
.summary-tag-score {
  margin-left: 2px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 1px 7px;
}

/* A2: 9軸学術根拠ツールチップ */
.polarity-axis-label { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.axis-info-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #6b7280;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: help;
  position: relative;
  padding: 0;
}
.axis-info-btn:hover, .axis-info-btn:focus {
  background: var(--shindan-gold, #c9a227);
  color: #fff;
  border-color: var(--shindan-gold, #c9a227);
  outline: none;
}
.axis-info-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 50;
  text-align: left;
  font-weight: 400;
}
.axis-info-btn:hover::after, .axis-info-btn:focus::after { opacity: 1; }

/* A1: 同タイプの代表武将3体 */
.rep-section {
  margin: 20px 0 36px;
  padding: 20px 22px;
  background: #fffdf7;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
}
.rep-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: #6b5b1f;
  margin: 0 0 6px;
}
.rep-lead {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
}
.rep-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.rep-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.rep-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.rep-card-link {
  display: block;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}
.rep-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.rep-kamon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f9fafb;
  border-radius: 6px;
  padding: 4px;
}
.rep-kamon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f9fafb;
  border-radius: 6px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #6b5b1f;
}
.rep-card-name-block { display: flex; flex-direction: column; }
.rep-card-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 15px;
}
.rep-card-clan {
  font-size: 11px;
  color: #6b7280;
}
.rep-card-summary {
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 8px;
}
.rep-card-more {
  font-size: 11px;
  color: var(--shindan-gold, #c9a227);
}

/* A4: ライバル武将（マッチ率下位3体） */
.rival-section {
  margin: 24px 0 36px;
  padding: 20px 22px;
  background: #f7f4ee;
  border: 1px dashed rgba(120, 113, 108, 0.35);
  border-radius: 12px;
}
.rival-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: #44403c;
  margin: 0 0 6px;
}
.rival-lead {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
}
.rival-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.rival-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.rival-card-link {
  display: block;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}
.rival-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.rival-card-rank {
  display: inline-block;
  font-size: 10px;
  background: #44403c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 3px;
}
.rival-card-name-block { display: flex; flex-direction: column; }
.rival-card-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 15px;
}
.rival-card-clan { font-size: 11px; color: #6b7280; }
.rival-card-text {
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* ========================================================================
   Phase 2.5: タイプ詳細精緻化（4タブ＋アコーディオン）
   ======================================================================== */
#result-type-deep-dive {
  margin: 32px 0;
}
#result-type-deep-dive .tdd-disclaimer {
  font-size: 11px;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid #d4b15b;
  padding: 8px 12px;
  margin: 8px 0 16px;
  line-height: 1.6;
}
#result-type-deep-dive .tdd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #d4b15b;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#result-type-deep-dive .tdd-tab {
  appearance: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
#result-type-deep-dive .tdd-tab:hover {
  background: #fff7e6;
  color: #1f2937;
}
#result-type-deep-dive .tdd-tab.active {
  background: linear-gradient(180deg, #fff8e1 0%, #fdf3d1 100%);
  color: #92400e;
  border-color: #d4b15b;
  position: relative;
}
#result-type-deep-dive .tdd-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #fdf3d1;
}
#result-type-deep-dive .tdd-panel { display: none; }
#result-type-deep-dive .tdd-panel.active { display: block; }
#result-type-deep-dive .tdd-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}
#result-type-deep-dive .tdd-item[open] {
  border-color: #d4b15b;
  box-shadow: 0 1px 3px rgba(212,177,91,0.15);
}
#result-type-deep-dive .tdd-summary {
  cursor: pointer;
  padding: 13px 36px 13px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  list-style: none;
  position: relative;
}
#result-type-deep-dive .tdd-summary::-webkit-details-marker { display: none; }
/* 左端カラーバー（絵文字の代替：ゴールド） */
#result-type-deep-dive .tdd-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  min-height: 18px;
  background: #d4b15b;
  border-radius: 0 3px 3px 0;
}
#result-type-deep-dive .tdd-summary::after {
  content: '▼';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4b15b;
  font-size: 10px;
  transition: transform .2s ease;
}
#result-type-deep-dive .tdd-item[open] .tdd-summary::after {
  transform: translateY(-50%) rotate(180deg);
}
/* 強み系：青紫 */
#result-type-deep-dive [data-section="apparent_strengths"] .tdd-summary::before,
#result-type-deep-dive [data-section="hidden_strengths"] .tdd-summary::before,
#result-type-deep-dive [data-section="hidden_strengths_personal"] .tdd-summary::before { background: #6366f1; }
/* 課題・盲点系：赤橙 */
#result-type-deep-dive [data-section="apparent_challenges"] .tdd-summary::before,
#result-type-deep-dive [data-section="blind_spots"] .tdd-summary::before,
#result-type-deep-dive [data-section="blind_spots_personal"] .tdd-summary::before { background: #ef4444; }
/* 人間関係系：ピンク */
#result-type-deep-dive [data-section="romantic_partnerships"] .tdd-summary::before,
#result-type-deep-dive [data-section="friendships"] .tdd-summary::before,
#result-type-deep-dive [data-section="parental_role"] .tdd-summary::before,
#result-type-deep-dive [data-section="conflict_resolution"] .tdd-summary::before { background: #ec4899; }
/* 仕事系：緑 */
#result-type-deep-dive [data-section="communication_style"] .tdd-summary::before,
#result-type-deep-dive [data-section="workplace_habits"] .tdd-summary::before,
#result-type-deep-dive [data-section="leadership_style"] .tdd-summary::before,
#result-type-deep-dive [data-section="career"] .tdd-summary::before { background: #10b981; }
/* 成長・認知系：オレンジ */
#result-type-deep-dive [data-section="growth_path"] .tdd-summary::before,
#result-type-deep-dive [data-section="decision_making"] .tdd-summary::before,
#result-type-deep-dive [data-section="cognitive_biases"] .tdd-summary::before,
#result-type-deep-dive [data-section="cognitive_biases_personal"] .tdd-summary::before { background: #f97316; }
/* ストレス系：紫 */
#result-type-deep-dive [data-section="under_stress"] .tdd-summary::before { background: #8b5cf6; }
#result-type-deep-dive .tdd-body {
  padding: 4px 16px 20px;
  font-size: 15px;
  line-height: 1.95;
  color: #374151;
}
#result-type-deep-dive .tdd-body-text { margin: 0 0 16px; }
#result-type-deep-dive .tdd-body-text:last-child { margin-bottom: 0; }
#result-type-deep-dive .tdd-body-text strong {
  font-weight: 700;
  color: #1c1c1e;
}
#result-type-deep-dive .tdd-body p { margin: 0 0 14px; }
#result-type-deep-dive .tdd-body p:last-child { margin-bottom: 0; }
#result-type-deep-dive .tdd-personal-note {
  background: #fff8e1;
  border-left: 3px solid #d4b15b;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 13px;
}
#result-type-deep-dive .tdd-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin: 12px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e5e7eb;
}
#result-type-deep-dive .tdd-list { list-style: none; padding: 0; margin: 0; }
#result-type-deep-dive .tdd-list-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
#result-type-deep-dive .tdd-list.tdd-personal .tdd-list-item {
  background: #fff8e1;
  border-left: 3px solid #d4b15b;
}
#result-type-deep-dive .tdd-list-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
}
#result-type-deep-dive .tdd-list-body {
  font-size: 13px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 4px;
}
#result-type-deep-dive .tdd-axis-evidence {
  font-size: 10px;
  color: #6b7280;
  margin: 4px 0 0;
}
#result-type-deep-dive .tdd-inline-list {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 12px;
  font-size: 13px;
  color: #374151;
}
#result-type-deep-dive .tdd-types-note {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0;
}
#result-type-deep-dive .tdd-intro {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 16px;
}
#result-type-deep-dive .tdd-steps { list-style: none; padding: 0; margin: 0; }
#result-type-deep-dive .tdd-step {
  display: flex;
  gap: 12px;
  background: #fafafa;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
#result-type-deep-dive .tdd-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #d4b15b 0%, #b8954a 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
#result-type-deep-dive .tdd-step-body { flex: 1; }
#result-type-deep-dive .tdd-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}
#result-type-deep-dive .tdd-step-body p { font-size: 13px; line-height: 1.7; color: #374151; margin: 0; }
#result-type-deep-dive .tdd-biases { list-style: none; padding: 0; margin: 0; }
#result-type-deep-dive .tdd-biases.tdd-personal .tdd-bias {
  background: #fff8e1;
  border-left: 3px solid #d4b15b;
}
#result-type-deep-dive .tdd-bias {
  background: #fafafa;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
#result-type-deep-dive .tdd-bias strong {
  font-size: 13px;
  color: #92400e;
}
#result-type-deep-dive .tdd-bias-source {
  display: inline-block;
  font-size: 10px;
  color: #6b7280;
  margin-left: 8px;
}
#result-type-deep-dive .tdd-bias p {
  font-size: 12px;
  line-height: 1.7;
  color: #374151;
  margin: 4px 0 0;
}
@media (max-width: 640px) {
  #result-type-deep-dive .tdd-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
  #result-type-deep-dive .tdd-summary {
    font-size: 13px;
    padding: 10px 32px 10px 16px;
  }
}

/* ── 根拠軸チップ ── */
.axis-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.axis-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--chip-color, #6b7280);
  background: color-mix(in srgb, var(--chip-color, #6b7280) 12%, white);
  border: 1px solid color-mix(in srgb, var(--chip-color, #6b7280) 30%, white);
  letter-spacing: 0.02em;
}
/* color-mix 非対応ブラウザ向けフォールバック */
@supports not (color: color-mix(in srgb, red 50%, white)) {
  .axis-chip { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); }
}

/* ── リストアイテム番号バッジ（CSSカウンター） ── */
#result-type-deep-dive .tdd-list:not(.tdd-personal):not(.tdd-inline-list) {
  counter-reset: tdd-item-counter;
}
#result-type-deep-dive .tdd-list:not(.tdd-personal):not(.tdd-inline-list) .tdd-list-item {
  counter-increment: tdd-item-counter;
  padding-left: 46px;
  position: relative;
  min-height: 42px;
}
#result-type-deep-dive .tdd-list:not(.tdd-personal):not(.tdd-inline-list) .tdd-list-item::before {
  content: counter(tdd-item-counter);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #d4b15b 0%, #b8954a 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── 強みリストは青紫系 ── */
#result-type-deep-dive [data-section="apparent_strengths"] .tdd-list-item::before,
#result-type-deep-dive [data-section="hidden_strengths"] .tdd-list-item::before {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
/* ── 弱み・盲点リストは赤系 ── */
#result-type-deep-dive [data-section="apparent_challenges"] .tdd-list-item::before,
#result-type-deep-dive [data-section="blind_spots"] .tdd-list-item::before {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

/* ── 認知バイアス ── */
#result-type-deep-dive .tdd-bias-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
#result-type-deep-dive .tdd-bias-name {
  font-size: 13px;
  color: #92400e;
}
#result-type-deep-dive .tdd-bias-body {
  font-size: 14px;
  line-height: 1.85;
  color: #374151;
  margin: 6px 0 0;
}

/* ── 人間関係メタ（相性タイプ）── */
#result-type-deep-dive .tdd-relationships-meta {
  background: #fffbf0;
  border: 1px solid #e9d99a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 8px;
}
#result-type-deep-dive .tdd-relationships-meta h4 {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 8px;
}
#result-type-deep-dive .tdd-relationships-meta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#result-type-deep-dive .tdd-relationships-meta ul:last-child { margin-bottom: 0; }
#result-type-deep-dive .tdd-relationships-meta li {
  background: #fff;
  border: 1px solid #d4b15b;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: #374151;
}

/* ── closing テキスト ── */
#result-type-deep-dive .tdd-closing {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  margin-top: 12px;
  line-height: 1.7;
}

.hidden,
[hidden] { display: none !important; }

/* =====================================================================
   診断モード別表示制御（簡易版 / 精密版）
   ===================================================================== */
body.shindan-mode-short .full-only { display: none !important; }
body.shindan-mode-full  .short-only { display: none !important; }

/* =====================================================================
   簡易版限定：一言診断（武将セリフ風コピー）
   ===================================================================== */
.quip-card {
  position: relative;
  max-width: 720px;
  margin: 28px auto 12px;
  padding: 36px 32px 28px;
  background: linear-gradient(135deg, #fffaed 0%, #fdf5d8 100%);
  border: 2px solid #c9a227;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(120, 80, 0, 0.08);
  text-align: center;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
}
.quip-decoration {
  position: absolute;
  font-size: 64px;
  color: #c9a227;
  opacity: 0.32;
  font-family: "Noto Serif JP", serif;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.quip-decoration-open  { top: 6px; left: 14px; }
.quip-decoration-close { bottom: -10px; right: 14px; }
.quip-headline {
  font-size: 22px;
  font-weight: 700;
  color: #5b3d00;
  margin: 0 0 14px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.quip-body {
  font-size: 15px;
  color: #6b4a1e;
  line-height: 1.85;
  margin: 0 0 18px;
}
.quip-signature {
  font-size: 13px;
  color: #8a6a30;
  margin: 0;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .quip-card { padding: 28px 18px 22px; }
  .quip-headline { font-size: 18px; }
  .quip-decoration { font-size: 48px; }
}

/* =====================================================================
   簡易版限定：精密版CTAバナー
   ===================================================================== */
.precision-cta-banner {
  margin: 40px auto;
  padding: 32px 28px;
  background: linear-gradient(180deg, #fff 0%, #f9f5e8 100%);
  border: 2px solid #1d4ed8;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.10);
  max-width: 920px;
}
.precision-cta-head { text-align: center; margin-bottom: 24px; }
.precision-cta-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.precision-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
}
.precision-cta-lead {
  font-size: 14px;
  color: #374151;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}
.precision-feature-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.precision-feature-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.precision-feature-item:hover {
  border-color: #1d4ed8;
  transform: translateY(-1px);
}
.precision-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbf0;
  border: 1px solid #c9a227;
  border-radius: 50%;
  color: #c9a227;
  font-size: 16px;
  font-weight: 700;
}
.precision-feature-text { flex: 1; }
.precision-feature-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.5;
}
.precision-feature-text span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.65;
}
.precision-cta-action { text-align: center; }
.precision-cta-button {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.precision-cta-note {
  font-size: 12px;
  color: #6b7280;
  margin: 12px 0 0;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .precision-cta-banner { padding: 24px 16px; }
  .precision-cta-title { font-size: 19px; }
  .precision-feature-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   v2.9 Phase A: 旧 .subtype-* / .hidden-warriors-* / .hidden-warrior-* は
   .duality-card-* に統合・廃止（このファイル末尾に新スタイルを定義）
   ===================================================================== */

/* =====================================================================
   精密版限定：相性マトリクス × 人間関係シミュレーター
   ===================================================================== */
.compat-matrix-section {
  margin: 36px auto 24px;
  padding: 28px 24px;
  background: #fff;
  border: 2px solid #c9a227;
  border-radius: 14px;
  max-width: 980px;
  box-shadow: 0 6px 22px rgba(120, 80, 0, 0.06);
}
.compat-head { text-align: center; margin-bottom: 22px; }
.compat-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #c9a227;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.compat-title {
  font-size: 24px;
  font-weight: 700;
  color: #5b3d00;
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
}
.compat-lead {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.85;
  max-width: 740px;
  margin: 0 auto;
}
.compat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #f9f4e3;
  border-radius: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
.compat-tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  color: #6b4a1e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  letter-spacing: 0.04em;
}
.compat-tab:hover { background: rgba(201, 162, 39, 0.15); }
.compat-tab.active {
  background: #c9a227;
  color: #fff;
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.4);
}
.compat-panel { display: none; }
.compat-panel.active { display: block; }
.compat-panel-hint {
  text-align: center;
  font-size: 13px;
  color: #92400e;
  background: #fffbf0;
  border: 1px dashed #d4b15b;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
}
.compat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compat-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left-width: 6px;
  border-radius: 8px;
  transition: box-shadow 0.15s, transform 0.1s;
  overflow: hidden;
}
.compat-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.compat-item[open] {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.compat-item.compat-self {
  background: #fffbf0;
  border-left-color: #c9a227;
  border-left-width: 6px;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3);
}
.compat-high     { border-left-color: #059669; }
.compat-mid-high { border-left-color: #84cc16; }
.compat-mid      { border-left-color: #facc15; }
.compat-mid-low  { border-left-color: #f97316; }
.compat-low      { border-left-color: #dc2626; }

.compat-summary {
  display: grid;
  grid-template-columns: 32px 1fr 56px 100px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.compat-summary::-webkit-details-marker { display: none; }
.compat-summary::marker { content: ""; }
.compat-rank {
  font-size: 18px;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  font-family: "Noto Serif JP", serif;
}
.compat-item.compat-self .compat-rank { color: #c9a227; }
.compat-type-block { display: flex; flex-direction: column; min-width: 0; }
.compat-type-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  font-family: "Noto Serif JP", serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compat-type-tagline {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compat-score {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.02em;
}
.compat-meter {
  display: inline-block;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.compat-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a227 0%, #f59e0b 100%);
}
.compat-high     .compat-meter-fill { background: linear-gradient(90deg, #059669 0%, #84cc16 100%); }
.compat-mid-high .compat-meter-fill { background: linear-gradient(90deg, #84cc16 0%, #facc15 100%); }
.compat-mid      .compat-meter-fill { background: linear-gradient(90deg, #facc15 0%, #f59e0b 100%); }
.compat-mid-low  .compat-meter-fill { background: linear-gradient(90deg, #f97316 0%, #ef4444 100%); }
.compat-low      .compat-meter-fill { background: #dc2626; }

.compat-body {
  padding: 0 16px 14px 62px;
  border-top: 1px dashed #e5e7eb;
}
.compat-narrative {
  font-size: 13px;
  color: #374151;
  line-height: 1.9;
  margin: 12px 0 0;
}
.compat-pair {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fffbf0;
  border-left: 3px solid #c9a227;
  border-radius: 4px;
  font-size: 12px;
  color: #5b3d00;
  line-height: 1.7;
  font-style: italic;
}
.compat-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  margin: 16px 0 0;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 640px) {
  .compat-matrix-section { padding: 22px 14px; }
  .compat-title { font-size: 20px; }
  .compat-tab { padding: 8px 12px; font-size: 12px; }
  .compat-summary {
    grid-template-columns: 28px 1fr 48px;
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .compat-meter {
    grid-column: 1 / -1;
    height: 6px;
  }
  .compat-score { font-size: 18px; }
  .compat-body { padding-left: 16px; }
}

/* =====================================================================
   LP：簡易版 vs 精密版の比較表
   ===================================================================== */
.shindan-mode-compare { margin-top: 36px; }
.mode-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.mode-compare-card {
  padding: 22px 22px 26px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.mode-compare-full {
  border-color: #c9a227;
  background: linear-gradient(180deg, #fff 0%, #fffbf0 100%);
  box-shadow: 0 6px 20px rgba(120, 80, 0, 0.08);
}
.mode-compare-head { margin-bottom: 16px; }
.mode-compare-badge {
  display: inline-block;
  padding: 3px 11px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.mode-compare-badge-premium { background: #c9a227; }
.mode-compare-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 4px 0 2px;
  font-family: "Noto Serif JP", serif;
}
.mode-compare-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.mode-compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}
.mode-compare-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
  border-bottom: 1px dashed #e5e7eb;
}
.mode-compare-list li:last-child { border-bottom: none; }
.mode-compare-list li::before {
  position: absolute;
  left: 4px;
  top: 8px;
  font-size: 13px;
  font-weight: 700;
}
.mode-compare-yes::before {
  content: '○';
  color: #059669;
}
.mode-compare-yes-star::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: #c9a227;
  -webkit-mask: var(--horo-icon-star) center / contain no-repeat;
  mask: var(--horo-icon-star) center / contain no-repeat;
}
.mode-compare-yes-star {
  background: #fffbf0;
  margin-left: -6px;
  padding-left: 32px !important;
  border-radius: 4px;
  font-weight: 600;
  color: #5b3d00 !important;
}
.mode-compare-no::before {
  content: '—';
  color: #d1d5db;
}
.mode-compare-no { color: #9ca3af; }
.mode-compare-cta {
  display: block;
  padding: 12px 16px;
  text-align: center;
  background: #fff;
  border: 2px solid #1d4ed8;
  border-radius: 8px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mode-compare-cta:hover { background: #1d4ed8; color: #fff; }
.mode-compare-cta-primary {
  background: #c9a227;
  border-color: #c9a227;
  color: #fff;
}
.mode-compare-cta-primary:hover {
  background: #b48a1e;
  border-color: #b48a1e;
}
@media (max-width: 720px) {
  .mode-compare-grid { grid-template-columns: 1fr; }
}

/* ============================================
 * v2.8 Phase A：長文の読みやすさ改善
 * 句点後改行・行幅制限・キーワードハイライト・読了時間バッジ
 * ============================================ */
.result-prose {
  max-width: 38em;
  margin: 0 auto;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  color: #1f2937;
  font-size: 15px;
}
.result-prose .prose-paragraph {
  margin: 0 0 1.1em 0;
  text-align: left;
}
.result-prose .prose-paragraph:last-child { margin-bottom: 0; }
.result-prose strong { color: #111827; font-weight: 700; }
.result-prose .key-term {
  background: linear-gradient(transparent 65%, rgba(201, 162, 39, 0.25) 65%);
  padding: 0 0.1em;
  font-weight: 600;
}

/* 読了時間バッジ */
.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  margin-bottom: 12px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}
.reading-time-icon { font-size: 12px; }

/* tdd-body-text 内でも適用される */
.tdd-body-text.result-prose { padding-top: 4px; }

@media (max-width: 768px) {
  .result-prose {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.8;
  }
  .reading-time-badge { font-size: 10px; }
}

/* ============================================
 * v2.8 Phase B-1：「周囲はあなたをこう見ている」
 * ============================================ */
.social-perception-section {
  margin: 32px 0;
  padding: 24px 20px;
  background: linear-gradient(135deg, #fef9f0 0%, #fdfaf3 100%);
  border-radius: 12px;
  border-left: 4px solid #c9a227;
}
.social-perception-section .result-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}
.social-perception-section .result-section-intro {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px 0;
}
.social-perception-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}
.social-perception-detail {
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
}
.social-perception-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  padding: 6px 0;
}
.social-perception-detail summary:hover { color: #1f2937; }
.social-perception-detail p {
  margin: 8px 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

/* v2.9 Phase A: v2.8 Phase B-2 の .hidden-warriors-story 系は .duality-card に統合・廃止 */

/* ============================================
 * v2.8 Phase C：武将ファクトカード
 * ============================================ */
.warrior-facts-section {
  margin: 32px 0;
  padding: 24px 20px;
  background: #fafaf9;
  border-radius: 12px;
  border: 1px solid #e7e5e4;
}
.warrior-facts-section .result-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warrior-facts-card { background: #fff; padding: 20px; border-radius: 8px; }
.warrior-facts-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.warrior-facts-lifespan,
.warrior-facts-era {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
}
.warrior-facts-lifespan { background: #fef3c7; color: #92400e; }
.warrior-facts-role {
  font-size: 15px;
  color: #1f2937;
  margin: 0 0 16px 0;
  font-weight: 600;
}
.warrior-facts-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #c9a227;
  display: inline-block;
}
.warrior-facts-battles,
.warrior-facts-achievements {
  margin: 8px 0 16px 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.warrior-facts-battles li,
.warrior-facts-achievements li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
}
.warrior-facts-battles li::before,
.warrior-facts-achievements li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #c9a227;
}
.warrior-facts-battles .battle-year {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}
.warrior-facts-battles .battle-name { font-weight: 600; }
.warrior-facts-battles .battle-note { color: #6b7280; font-size: 12px; }
.warrior-facts-death {
  margin: 12px 0 8px 0;
  padding: 8px 12px;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  font-size: 13px;
  color: #7f1d1d;
}
.warrior-facts-sources {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
}
.warrior-facts-empty {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}

/* ============================================
 * v2.8 Phase D：希少度バッジ
 * ============================================ */
.rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 4px 0 0;
  cursor: help;
  transition: transform 0.15s;
}
.rarity-badge:hover { transform: translateY(-1px); }
.rarity-badge-icon { font-size: 13px; }
.rarity-badge-percent { font-weight: 700; }
.rarity-badge--S {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
}
.rarity-badge--A {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
}
.rarity-badge--B {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
  color: #fff;
}
.rarity-badge--C {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  color: #fff;
}
.rarity-badge--D {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: #fff;
}
.rarity-badge--actual::after {
  content: "実測";
  margin-left: 4px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  font-size: 10px;
}

/* 9軸 percentile マーク（renderPolarityBars 内） */
.axis-percentile-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid #fbbf24;
}
.axis-percentile-mark--low {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border-color: #60a5fa;
}

/* ============================================
 * v2.8 Phase E：SNS共有ボタン
 * ============================================ */
.result-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.share-btn--copy { background: #f9fafb; }
.share-btn--copy:hover { background: #f3f4f6; }
.share-btn--x { background: #000; color: #fff; border-color: #000; }
.share-btn--x:hover { background: #1f2937; color: #fff; }
.share-btn--line { background: #06c755; color: #fff; border-color: #06c755; }
.share-btn--line:hover { background: #05a847; color: #fff; }
.share-btn--facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn--facebook:hover { background: #166fe5; color: #fff; }

/* 結果ページ用トースト */
.result-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: #1f2937;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.result-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.result-toast--success { background: #10b981; }
.result-toast--error { background: #ef4444; }

/* =====================================================================
   v2.9 Phase B: 前向きキャッチコピー（empowerment-card）
   ===================================================================== */
.empowerment-card {
  position: relative;
  margin: 24px auto;
  max-width: 720px;
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #fffdf7 0%, #fef6e4 100%);
  border: 1px solid #f6e3a8;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.08);
}
.empowerment-star {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f6c149;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.4);
}
.empowerment-headline {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: #7a4f00;
  margin: 6px 0 12px;
  font-family: "Noto Serif JP", serif;
}
.empowerment-body {
  font-size: 16px;
  line-height: 1.75;
  color: #4a3500;
  margin: 0 0 8px;
}
.empowerment-kicker {
  font-size: 14px;
  color: #8b6a30;
  font-style: italic;
  margin: 6px 0 0;
}
@media (max-width: 640px) {
  .empowerment-card { padding: 22px 18px 18px; margin: 18px 12px; }
  .empowerment-body { font-size: 15px; }
}

/* =====================================================================
   v2.9 Phase I（v2.9-mirror）: 「あなたの輪郭」5要素ナラティブカード
   empowerment 直後・duality の上に配置。深堀の一撃。
   ===================================================================== */
/* =====================================================================
   v2.9 Phase I: あなたの輪郭（mirror-card）— 和風・戦国時代テーマ
   背景：深紺グラデ、外枠金、印章風番号、巻物継ぎ目風CTA
   ===================================================================== */
.mirror-card {
  background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
  color: #f3ead5;
  border: 2px solid #c9a227;
  border-radius: 6px;
  padding: 32px 28px 28px;
  margin: 22px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}
.mirror-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,162,39,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.mirror-card-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,162,39,0.45);
  position: relative;
}
.mirror-card-icon {
  display: inline-block;
  font-size: 26px;
  margin-bottom: 4px;
  color: #c9a227;
  text-shadow: 0 0 12px rgba(201,162,39,0.5);
}
.mirror-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  color: #e8c97a;
  margin: 4px 0 6px;
  letter-spacing: 0.12em;
}
.mirror-card-lead {
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  color: #c4b896;
  margin: 0;
  letter-spacing: 0.06em;
}
.mirror-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mirror-item {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: rgba(201,162,39,0.06);
  border-left: 4px solid #c9a227;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s;
}
.mirror-item:hover {
  background: rgba(201,162,39,0.12);
}
/* 番号バッジを朱印章風に */
.mirror-item-num {
  position: absolute;
  left: 12px; top: 14px;
  width: 32px; height: 32px;
  border-radius: 2px;
  background: #8b2c2c;
  color: #fdf6e3;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(253,246,227,0.25);
  letter-spacing: 0;
}
.mirror-item-heading {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  color: #e8c97a;
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.mirror-item-text {
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  line-height: 1.95;
  color: #f3ead5;
  margin: 0;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}
/* CTA を巻物の継ぎ目風に（破線で和紙感） */
.mirror-cta-precision {
  margin: 24px -28px -28px;
  padding: 16px 28px;
  background: rgba(201,162,39,0.10);
  border-top: 1px dashed rgba(201,162,39,0.5);
  border-radius: 0;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  color: #e8c97a;
  letter-spacing: 0.06em;
}
/* 簡易版（mirror-card--short）はやや余白を抑える */
.mirror-card--short .mirror-item { padding: 12px 14px 12px 52px; }
.mirror-card--short .mirror-item-text { font-size: 14px; line-height: 1.85; }
.mirror-card--short .mirror-item-num { width: 28px; height: 28px; font-size: 14px; top: 12px; }
@media (max-width: 640px) {
  .mirror-card { padding: 24px 18px 22px; margin: 18px 10px; }
  .mirror-card-title { font-size: 19px; }
  .mirror-card-lead { font-size: 12px; }
  .mirror-item { padding: 14px 14px 14px 50px; }
  .mirror-item-num { left: 8px; width: 28px; height: 28px; font-size: 14px; }
  .mirror-item-heading { font-size: 14px; }
  .mirror-item-text { font-size: 14px; line-height: 1.85; }
  .mirror-cta-precision { margin: 22px -18px -22px; padding: 14px 18px; }
}

/* =====================================================================
   v2.9 Phase A: 二面性カード（duality-card）
   - 旧 .subtype-* / .hidden-warriors-* / .hidden-warrior-* / 単独 #result-rarity を統合
   ===================================================================== */
.duality-card {
  margin: 24px auto 16px;
  padding: 24px 24px 22px;
  border-radius: 14px;
  max-width: 820px;
  position: relative;
}
.duality-card--compact {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #c4b5fd;
}
.duality-card--full {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #c9a227;
  color: #f3f4f6;
  max-width: 920px;
  overflow: hidden;
}
.duality-card--full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.duality-card-head {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.duality-card-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.duality-card--compact .duality-card-badge { background: #8b5cf6; color: #fff; }
.duality-card--full .duality-card-badge { background: #c9a227; color: #1a1a2e; }
.duality-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 8px;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.02em;
}
.duality-card--compact .duality-card-title { color: #5b21b6; }
.duality-card--full .duality-card-title { color: #fcd34d; }
.duality-card-title .duality-card-x {
  display: inline-block;
  margin: 0 8px;
  font-weight: 400;
  opacity: 0.7;
}
.duality-card-pair-code {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #fef3c7;
  opacity: 0.8;
  margin: 0;
}
.duality-card--compact .duality-card-pair-code { color: #7c3aed; opacity: 0.7; }
.duality-card-rarity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin: 12px 0 20px;
  position: relative;
  z-index: 1;
}
.duality-pair-rarity {
  font-size: 13px;
  line-height: 1.6;
  color: #fef3c7;
}
.duality-card--compact .duality-pair-rarity { color: #4c1d95; }
.duality-pair-rarity strong {
  color: #fcd34d;
  font-weight: 700;
}
.duality-card--compact .duality-pair-rarity strong { color: #5b21b6; }
.duality-pair-percent {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.85;
}
.duality-card-locked-hint {
  font-size: 12px;
  color: #6b7280;
  background: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 4px;
}
.duality-card-warrior-strip {
  margin: 18px 0 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}
.duality-warrior-strip-label {
  display: block;
  font-size: 11px;
  color: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-align: center;
}
.duality-warrior-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.duality-warrior-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.duality-warrior-chip:hover {
  transform: translateY(-2px);
  border-color: #fcd34d;
  background: rgba(255,255,255,0.14);
}
.duality-warrior-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}
.duality-warrior-link .rep-kamon,
.duality-warrior-link .rep-kamon-fallback {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.duality-warrior-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: "Noto Serif JP", serif;
}
.duality-warrior-clan {
  display: block;
  font-size: 11px;
  color: #cbd5e1;
}
.duality-warrior-rarity-label {
  margin-left: auto;
  font-size: 10px;
  color: #fcd34d;
  font-weight: 600;
}
.duality-card-explanation {
  font-size: 13px;
  line-height: 1.85;
  color: #e5e7eb;
  margin: 0;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.duality-card-explanation strong {
  color: #fcd34d;
  background: rgba(254, 243, 199, 0.12);
  padding: 0 4px;
  border-radius: 3px;
}
.duality-card--compact .duality-card-explanation {
  color: #4c1d95;
  background: rgba(255,255,255,0.6);
}
.duality-card--compact .duality-card-explanation strong {
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.12);
}
@media (max-width: 640px) {
  .duality-card { padding: 18px 16px; margin: 18px 12px; }
  .duality-card-title { font-size: 18px; }
  .duality-card-rarity-row { flex-direction: column; gap: 10px; }
}

/* =====================================================================
   v4.0: mirror-card / duality-card を放浪娘サイト基調（白・ミニマル）に
   旧 v2.9 和風スタイルを上書きする。HTML 構造は維持。
   ===================================================================== */
.mirror-card,
.mirror-card--full,
.mirror-card--short {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mirror-card::before { display: none; }
.mirror-card-header {
  text-align: left;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.mirror-card-icon {
  font-size: 18px;
  color: #9ca3af;
  text-shadow: none;
  display: none; /* シンプル化のため記号アイコンは隠す */
}
.mirror-card-title {
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.mirror-card-lead {
  font-family: inherit;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0;
}
.mirror-item {
  background: transparent;
  border: none;
  border-left: 3px solid #d1d5db;
  border-radius: 0;
  padding: 10px 14px 10px 50px;
  transition: border-color 0.2s;
}
.mirror-item:hover { background: #f9fafb; border-left-color: #6b7280; }
.mirror-item-num {
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  box-shadow: none;
  font-family: inherit;
  font-weight: 600;
  width: 30px; height: 26px;
  top: 12px; left: 12px;
  font-size: 13px;
}
.mirror-item-heading {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0;
}
.mirror-item-text {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  letter-spacing: 0;
  font-feature-settings: normal;
}
.mirror-cta-precision {
  margin: 20px -24px -24px;
  padding: 14px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-family: inherit;
  color: #4b5563;
  letter-spacing: 0;
}

/* v5.0: duality-card-warrior-strip の視認性強化（白基調内のチップを濃色化） */
.duality-card-warrior-strip {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 14px 0 16px;
}
.duality-warrior-strip-label {
  color: #4b5563;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  margin-bottom: 12px;
}
.duality-warrior-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.duality-warrior-chip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.duality-warrior-chip:hover {
  border-color: #c9a227;
  background: #fffbeb;
  transform: none;
}
.duality-warrior-link { padding: 10px 12px; gap: 10px; }
.duality-warrior-name {
  color: #111827;        /* 黒に近い濃色 */
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
}
.duality-warrior-clan {
  color: #6b7280;
  font-size: 11px;
}
.duality-warrior-rarity-label {
  color: #b45309;       /* 金茶でレア感 */
  font-weight: 700;
  font-size: 11px;
}

/* duality-card 共通（compact / full 両方を白基調に） */
.duality-card,
.duality-card--compact,
.duality-card--full {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 18px auto;
  box-shadow: none;
}
.duality-card--full::before { display: none; }
.duality-card-head { text-align: left; }
.duality-card--compact .duality-card-badge,
.duality-card--full .duality-card-badge {
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.duality-card-title,
.duality-card--compact .duality-card-title,
.duality-card--full .duality-card-title {
  color: #111827;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.duality-card--compact .duality-card-pair-code,
.duality-card-pair-code { color: #9ca3af; }
.duality-card--compact .duality-pair-rarity,
.duality-pair-rarity { color: #4b5563; }
.duality-card--compact .duality-pair-rarity strong,
.duality-pair-rarity strong { color: #111827; }
.duality-card-explanation,
.duality-card--compact .duality-card-explanation {
  color: #374151;
  background: #f9fafb;
  border-radius: 6px;
  padding: 12px 14px;
  line-height: 1.7;
}
.duality-card-explanation strong,
.duality-card--compact .duality-card-explanation strong {
  color: #111827;
  background: linear-gradient(transparent 60%, #fef3c7 60%);
  padding: 0 2px;
}

/* =====================================================================
   v2.9 Phase C: A4 サマリーボタン + モーダル
   ===================================================================== */
.summary-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px auto;
  max-width: 720px;
}
.summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #c9a227;
  border-radius: 999px;
  background: #fff;
  color: #5b3d00;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.summary-btn:hover { background: #fef3c7; transform: translateY(-1px); }
.summary-btn--open { background: #c9a227; color: #fff; border-color: #c9a227; }
.summary-btn--open:hover { background: #b08919; color: #fff; }
.summary-btn--external { background: #fff; }

/* <dialog> モーダル */
.summary-modal {
  width: min(900px, 95vw);
  height: min(90vh, 1100px);
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.summary-modal::backdrop {
  background: rgba(15, 23, 42, 0.6);
}
.summary-modal[open] {
  display: flex;
  flex-direction: column;
}
.summary-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1f2937;
  color: #fff;
}
.summary-modal-title {
  font-size: 14px;
  font-weight: 700;
}
.summary-modal-close {
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.summary-modal-close:hover { background: rgba(255,255,255,0.25); }
.summary-modal-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f3f4f6;
}
/* v5.0: 行動指針カード（気が楽になる助言 + 武将に近づく実践） */
.action-guidance-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 24px 0 20px;
}
.action-guidance-wrap.hidden { display: none; }
.action-guidance-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}
.action-guidance-card--comfort {
  border-top: 4px solid #2563eb;       /* 落ち着いた青 */
}
.action-guidance-card--practice {
  border-top: 4px solid #c9a227;       /* 金茶 */
}
.action-guidance-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.action-guidance-title-main {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.action-guidance-title-sub {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}
.action-guidance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.action-guidance-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.action-guidance-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}
.action-guidance-card--comfort .action-guidance-num {
  background: #dbeafe;
  color: #1d4ed8;
}
.action-guidance-card--practice .action-guidance-num {
  background: #fef3c7;
  color: #92400e;
}
.action-guidance-text {
  flex: 1;
  min-width: 0;
}
.action-guidance-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px;
}
.action-guidance-item-body {
  font-size: 13px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

/* v5.0: 武将名 Google 検索リンク（控えめスタイル） */
.warrior-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #9ca3af;
}
.warrior-name-link:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.hero-warrior-name .warrior-name-link {
  border-bottom-color: rgba(255,255,255,0.4);
}
.hero-warrior-name .warrior-name-link:hover {
  color: #fef3c7;
  border-bottom-color: #fef3c7;
}

/* v5.0: result-prose は太字・マーカーを全廃し、プレーン段落表示 */
.result-prose.tdd-body-text {
  font-size: 15px;
  line-height: 1.95;
  color: #374151;
}
/* 何らかの理由で残った strong も装飾せずプレーン表示 */
.result-prose.tdd-body-text strong,
.result-prose.tdd-body-text .key-term {
  color: inherit;
  font-weight: inherit;
  background: none;
  padding: 0;
}
.result-prose.tdd-body-text .prose-paragraph {
  margin: 0 0 14px;
}

/* v4.0: 「なぜこの武将に近いか」カード（ヒーロー直下） */
.why-this-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #1f2937;
}
.why-this-card.hidden { display: none; }
.why-this-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.why-this-body {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px;
}
.why-this-body strong {
  color: #111827;
  font-weight: 700;
}
.why-this-axes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why-this-axis-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #4b5563;
}
.why-this-axis-label {
  flex: 0 0 auto;
  min-width: 200px;
}
.why-this-axis-bar {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.why-this-axis-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #f59e0b);
  border-radius: 3px;
}
@media (max-width: 640px) {
  .why-this-axis-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .why-this-axis-label { min-width: 0; }
}

/* v4.0: iframe 廃止後の div ボディ */
.summary-modal-body {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  background: #f3f4f6;
  padding: 20px;
  box-sizing: border-box;
}
.summary-modal-loading,
.summary-modal-error {
  text-align: center;
  color: #6b7280;
  padding: 40px 20px;
  font-size: 14px;
}
.summary-modal-error { color: #b91c1c; }

/* =====================================================================
   v2.9 Phase F: 発見ページ（500体マッチ人数一覧）
   ===================================================================== */
.discovery-stats {
  margin: 16px 0 12px;
  padding: 12px 16px;
  background: #f9f4e3;
  border-left: 4px solid #c9a227;
  border-radius: 4px;
  font-size: 14px;
  color: #4b5563;
}
.discovery-stats strong { color: #5b3d00; font-weight: 700; }

.discovery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.discovery-control-group { display: flex; flex-direction: column; gap: 4px; }
.discovery-control-label { font-size: 11px; color: #6b7280; font-weight: 600; }
.discovery-select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.discovery-view-toggle { display: inline-flex; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.discovery-view-btn {
  padding: 6px 14px;
  background: #fff;
  color: #6b7280;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}
.discovery-view-btn.active { background: #c9a227; color: #fff; font-weight: 700; }

/* カードビュー */
.discovery-grid.discovery-view-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.discovery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s;
}
.discovery-card:hover {
  transform: translateY(-2px);
  border-color: #c9a227;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.18);
}
.discovery-card--zero { opacity: 0.45; filter: grayscale(0.5); }
.discovery-card--zero:hover { opacity: 0.7; filter: grayscale(0); }
.discovery-card--popular { border: 2px solid #c9a227; background: #fffbeb; }
.discovery-card-kamon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.discovery-card-kamon img { max-width: 100%; max-height: 100%; }
.discovery-kamon { width: 44px; height: 44px; object-fit: contain; }
.discovery-kamon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f3f4f6;
  border-radius: 50%;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #6b7280;
}
.discovery-card-name { font-size: 13px; font-weight: 700; color: #1f2937; font-family: "Noto Serif JP", serif; line-height: 1.3; }
.discovery-card-clan { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.discovery-card-count {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #5b3d00;
  font-family: "Noto Serif JP", serif;
}
.discovery-card-count small { font-size: 11px; color: #9ca3af; margin-left: 2px; }
.discovery-card-rarity { font-size: 10px; color: #c9a227; font-weight: 600; margin-top: 2px; }

/* リストビュー */
.discovery-grid.discovery-view-list { display: block; }
.discovery-list { list-style: none; padding: 0; margin: 0; }
.discovery-list-item {
  border-bottom: 1px dashed #e5e7eb;
}
.discovery-list-item a {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}
.discovery-list-item a:hover { background: #fffbeb; }
.discovery-list-item--zero { opacity: 0.5; }
.discovery-list-item--popular .discovery-list-count { color: #5b3d00; font-weight: 700; }
.discovery-list-name { font-family: "Noto Serif JP", serif; font-weight: 700; }
.discovery-list-dots { color: #d1d5db; letter-spacing: 0.05em; }
.discovery-list-count { font-weight: 700; }
.discovery-list-rarity { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.discovery-list-rarity.rarity-legendary { background: #fef3c7; color: #92400e; }
.discovery-list-rarity.rarity-super_rare { background: #ede9fe; color: #5b21b6; }
.discovery-list-rarity.rarity-rare { background: #dbeafe; color: #1e40af; }
.discovery-list-rarity.rarity-common { background: #f3f4f6; color: #6b7280; }

/* 言語切替UIは左ナビ #languageSelectSidebar に集約済（sidebar-component.js 管理） */

/* =====================================================================
   結果ページ メインタブ（精密版のみ表示）— v2.10 視認性強化
   ===================================================================== */
/* タブの横スクロールフェードは .result-tabs（スクロールコンテナ自身）ではなく
   外側の .result-tabs-wrap に付ける。スクロールコンテナに直接 ::after を置くと
   フェードごとスクロールしてしまい「右端に固定されたヒント」にならないため */
.result-tabs-wrap {
  display: none;
  position: relative;
  margin: 24px 16px 0;
}
.shindan-mode-full .result-tabs-wrap { display: block; }

.result-tabs {
  display: none; /* デフォルト非表示。精密版時のみ JS で .shindan-mode-full が body に付くと表示 */
  gap: 4px;
  border-bottom: 3px solid var(--shindan-gold);
  padding: 8px 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(180deg, #fef6e4 0%, #fffdf7 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}
.result-tabs::-webkit-scrollbar { display: none; }
.shindan-mode-full .result-tabs { display: flex; }

@media (max-width: 640px) {
  /* 右側に続きがあることを示すフェード。右端までスクロールしたら
     is-scrolled-end クラス（JS付与）で消す */
  .result-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 3px;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(255, 253, 247, 0.95));
    border-radius: 0 8px 0 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .result-tabs-wrap.is-scrolled-end::after {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .result-tabs-wrap::after {
    transition: none;
  }
}

/* 現在位置表示・初回スワイプ案内 */
.result-tabs-meta {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin: 6px 16px 0;
  font-size: 12px;
  color: #8a6d1f;
}
.shindan-mode-full .result-tabs-meta { display: flex; }
.result-tabs-position {
  font-weight: 600;
}
.result-tabs-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (min-width: 641px) {
  /* PCは横スクロールが発生しないため案内・位置表示ともに不要 */
  .result-tabs-meta { display: none !important; }
}
@keyframes resultTabsSwipeHintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.result-tabs-swipe-hint:not([hidden]) {
  animation: resultTabsSwipeHintNudge 1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .result-tabs-swipe-hint:not([hidden]) {
    animation: none;
  }
}

.result-tab {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: none;
  padding: 12px 20px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  color: #7a4f00;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.1em;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  margin-bottom: -3px;
  border-radius: 6px 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.result-tab-icon {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(201, 162, 39, 0.4));
}
.result-tab:hover {
  background: rgba(201, 162, 39, 0.15);
  color: #1a1a2e;
}
.result-tab.active {
  background: var(--shindan-gold);
  color: #fff;
  font-weight: 700;
  border-color: var(--shindan-gold);
  box-shadow: 0 -2px 8px rgba(201, 162, 39, 0.4);
  position: relative;
}
.result-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--shindan-gold);
}
.result-tab:focus-visible {
  outline: 2px solid #1a1a2e;
  outline-offset: -2px;
}

/* タブパネル — 精密版 */
.shindan-mode-full .result-panel { display: none; }
.shindan-mode-full .result-panel.active { display: block; }
.shindan-mode-full .result-panel.active[hidden] { display: block; } /* タブ切替時 hidden を上書き */

/* 簡易版は従来通り縦並び（タブ無視・概要パネルのみ表示） */
.shindan-mode-short .result-panel { display: block; }
.shindan-mode-short .result-panel--personality,
.shindan-mode-short .result-panel--warriors,
.shindan-mode-short .result-panel--compat { display: none; }

@media (max-width: 640px) {
  .result-tabs-wrap { margin: 16px 8px 0; }
  .result-tabs { padding: 6px 4px 0; }
  .result-tab { padding: 10px 14px; font-size: 14px; letter-spacing: 0.05em; }
  .result-tab-icon { font-size: 16px; }
  .result-tabs-meta { margin: 6px 8px 0; }
}

/* =====================================================================
   概要タブ末尾：他タブへのジャンプ案内
   ===================================================================== */
.result-tab-guide {
  margin: 40px 16px 24px;
  padding: 24px;
  background: linear-gradient(180deg, #fffdf7 0%, #fef6e4 100%);
  border: 2px dashed var(--shindan-gold);
  border-radius: 10px;
}
.result-tab-guide-lead {
  margin: 0 0 18px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  color: #7a4f00;
  letter-spacing: 0.06em;
}
.result-tab-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.result-tab-guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Noto Serif JP", serif;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.result-tab-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.25);
  border-color: var(--shindan-gold);
}
.result-tab-guide-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(201, 162, 39, 0.3));
}
.result-tab-guide-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.result-tab-guide-note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .result-tab-guide { margin: 28px 8px 16px; padding: 18px; }
  .result-tab-guide-grid { grid-template-columns: 1fr; }
}

/* ===== LP: あなたが得られるもの セクション ===== */
.shindan-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.shindan-benefit-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--shindan-gold, #c9a227);
  border-radius: 6px;
  padding: 18px 20px;
}
.shindan-benefit-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.5;
}
.shindan-benefit-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
}
@media (max-width: 640px) {
  .shindan-benefits-grid { grid-template-columns: 1fr; }
}

/* ===== LP: 「会ってみたら、こんなことが起きる」 ===== */
.shindan-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.shindan-story-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 22px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shindan-story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.shindan-story-num {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--shindan-gold, #c9a227);
  opacity: 0.55;
  letter-spacing: 0.04em;
  line-height: 1;
}
.shindan-story-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.5;
  padding-right: 48px;
}
.shindan-story-card p {
  font-size: 14px;
  line-height: 1.85;
  color: #374151;
  margin: 0;
}
@media (max-width: 640px) {
  .shindan-stories-grid { grid-template-columns: 1fr; }
}

/* ===== LP: 末尾の信頼性訴求段落 ===== */
.shindan-credibility {
  background: #f9fafb;
  border-left: 3px solid var(--shindan-gold, #c9a227);
  padding: 16px 22px;
  margin-top: 28px;
  border-radius: 4px;
}
.shindan-credibility p {
  font-size: 13px;
  line-height: 1.9;
  color: #4b5563;
  margin: 0;
}

/* ===== 80問クイズ: 目次パネル（上部開閉式） ===== */
.quiz-toc-wrapper {
  margin: 12px 0 16px;
}
.quiz-toc-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  color: #374151;
  font-size: 14px;
  text-align: left;
  transition: background 0.15s ease;
}
.quiz-toc-toggle:hover { background: #f3f4f6; }
.quiz-toc-toggle-label {
  font-weight: 600;
  color: #1f2937;
}
.quiz-toc-toggle-summary {
  color: #6b7280;
  font-size: 13px;
  margin-left: auto;
}
.quiz-toc-toggle-arrow {
  width: 12px;
  height: 8px;
  transition: transform 0.2s ease;
  color: #6b7280;
  flex-shrink: 0;
}
.quiz-toc-toggle[aria-expanded="true"] .quiz-toc-toggle-arrow {
  transform: rotate(180deg);
}

.quiz-toc-panel {
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
}
.quiz-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quiz-toc-item { margin: 0; }
.quiz-toc-link {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  color: #374151;
  cursor: default;
  border-radius: 4px;
}
.quiz-toc-item.toc-done .quiz-toc-link {
  color: #16a34a;
  cursor: pointer;
}
.quiz-toc-item.toc-done .quiz-toc-link:hover {
  background: #f0fdf4;
}
.quiz-toc-item.toc-current .quiz-toc-link {
  color: #b45309;
  font-weight: 700;
  background: #fef3c7;
}
.quiz-toc-item.toc-todo .quiz-toc-link {
  color: #9ca3af;
}
.toc-icon {
  text-align: center;
  font-weight: 700;
}
.toc-count {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
.quiz-toc-item.toc-current .toc-count {
  color: #b45309;
}
.quiz-toc-note {
  font-size: 12px;
  color: #6b7280;
  margin: 10px 4px 2px;
  text-align: center;
}

/* ───── v7.0: 武将詳細ページ Google 検索ボタン ───── */
.warrior-detail-google-cta {
  margin: 24px 0 8px;
  text-align: center;
}
.warrior-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1f2937;
  border: 2px solid #c9a227;
  padding: 12px 24px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.warrior-google-btn:hover {
  background: #fdf6e3;
  transform: translateY(-1px);
}
.warrior-google-btn-icon { font-size: 18px; }
.warrior-google-btn-note {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* ══════════════════════════════════════════════════
   v8.0 LP リデザイン（Figma Make 参照）
   TOP ページ：washi テクスチャ / 家紋装飾 / 新セクション群
══════════════════════════════════════════════════ */

/* ── フルブリード展開ユーティリティ ── */
.shindan-full-bleed {
  margin-left: -32px;
  margin-right: -32px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .shindan-full-bleed {
    margin-left: -24px;
    margin-right: -24px;
  }
}
@media (max-width: 767px) {
  .shindan-full-bleed {
    margin-left: -16px;
    margin-right: -16px;
  }
}

/* ── ヒーロー v8 上書き ── */
.shindan-hero {
  position: relative;
  overflow: hidden;
  background: #fefdf9;
  padding: 72px 48px 64px;
  border-radius: 0;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .shindan-hero { padding: 52px 20px 48px; }
}

/* 装飾レイヤー（家紋・washi テクスチャ）をまとめるラッパ */
.shindan-hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* コンテンツを装飾より手前に */
.shindan-hero-content {
  position: relative;
  z-index: 1;
}

/* 家紋位置設定 */
.shindan-hero-kamon-main {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.07;
  display: none;
}
.shindan-hero-kamon-sub {
  position: absolute;
  left: -6%;
  bottom: 40px;
  width: 220px;
  height: 220px;
  opacity: 0.04;
  display: none;
}
.shindan-hero-kamon-accent {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 80px;
  height: 80px;
  opacity: 0.05;
  display: none;
}
@media (min-width: 768px) {
  .shindan-hero-kamon-main,
  .shindan-hero-kamon-sub,
  .shindan-hero-kamon-accent { display: block; }
}

/* ゴールドウェーブ（下部） */
.shindan-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.12;
}

/* ── ゴールドデバイダー ── */
.shindan-gold-divider {
  width: 40px;
  height: 2px;
  background: var(--shindan-gold, #c9a227);
  margin: 20px auto 28px;
}
.shindan-gold-divider--left {
  margin-left: 0;
  margin-right: auto;
}

/* ── ヒーロー eyebrow ── */
.shindan-hero-eyebrow {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shindan-gold, #c9a227);
  margin: 0 0 20px;
}

/* ── Trust Section ── */
.shindan-lp-trust {
  background: var(--shindan-bg-paper, #fdf6e3);
  padding: 64px 48px;
}
@media (max-width: 767px) {
  .shindan-lp-trust { padding: 48px 20px; }
}
.shindan-lp-trust .shindan-section-title {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 0;
}
.shindan-lp-trust .section-lead {
  text-align: center;
  max-width: 560px;
  margin: 12px auto 40px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}
.shindan-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.shindan-trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.shindan-trust-icon { margin-bottom: 18px; }
.shindan-trust-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px;
}
.shindan-trust-card-body {
  font-size: 12.5px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0;
}

/* ── Samurai Preview ── */
.shindan-lp-preview {
  background: #fff;
  padding: 64px 0 48px;
}
.shindan-lp-preview-header {
  text-align: center;
  padding: 0 32px;
}
.shindan-lp-preview-header .shindan-section-title {
  border-bottom: none;
  padding-bottom: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 0;
}
.shindan-samurai-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 32px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: nowrap;
}
.shindan-samurai-scroll::-webkit-scrollbar { display: none; }
.shindan-samurai-card {
  flex: none;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.shindan-samurai-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.shindan-samurai-kamon { width: 72px; height: 72px; margin-bottom: 14px; }
.shindan-samurai-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 3px;
}
.shindan-samurai-en {
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.shindan-samurai-tag {
  font-size: 10px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.shindan-lp-preview-cta {
  text-align: center;
  padding: 4px 32px 0;
}
.shindan-lp-preview-cta a {
  font-size: 13px;
  color: var(--shindan-gold, #c9a227);
  font-weight: 600;
  text-decoration: none;
}
.shindan-lp-preview-cta a:hover { text-decoration: underline; }

/* ── Final CTA ── */
.shindan-lp-final-cta {
  position: relative;
  background: #1f2937;
  padding: 80px 32px;
  overflow: hidden;
  text-align: center;
}
@media (max-width: 767px) {
  .shindan-lp-final-cta { padding: 56px 20px; }
}
.shindan-lp-final-kamon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  opacity: 0.06;
  pointer-events: none;
}
@media (max-width: 767px) {
  .shindan-lp-final-kamon { width: 260px; height: 260px; }
}
.shindan-lp-final-cta-title {
  position: relative;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.shindan-lp-final-divider {
  width: 40px;
  height: 2px;
  background: var(--shindan-gold, #c9a227);
  margin: 28px auto;
  position: relative;
}
.shindan-lp-final-cta-sub {
  position: relative;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin: 0 auto 48px;
  max-width: 440px;
  font-size: 15px;
}
.shindan-lp-final-cta-btn {
  position: relative;
  display: inline-block;
  padding: 16px 40px;
  background: #1d4ed8;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  max-width: 480px;
  width: auto;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
}
.shindan-lp-final-cta-btn:hover { opacity: 0.9; color: #fff; }
@media (max-width: 599px) {
  .shindan-lp-final-cta-btn {
    font-size: 15px;
    padding: 14px 24px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 90%;
  }
}

/* ══════════════════════════════════════════════════
   v9.0 LP アップデート（Figma Make 精密マッチ）
══════════════════════════════════════════════════ */

/* ── ヒーロー: min-height + kamon サイズ調整 ── */
.shindan-hero { min-height: 100vh; }
@media (max-width: 767px) { .shindan-hero { min-height: auto; } }

.shindan-hero-kamon-main { width: 480px; height: 480px; opacity: 0.08; }
.shindan-hero-kamon-sub  { width: 260px; height: 260px; opacity: 0.05; }
.shindan-hero-kamon-accent { width: 90px; height: 90px; opacity: 0.06; }

/* ── ヒーロー: CTA グループを縦積みに ── */
.shindan-hero .shindan-cta-group {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.shindan-hero .shindan-cta-group .shindan-cta,
.shindan-hero .shindan-cta-group .shindan-cta-gold {
  width: 100%;
  max-width: 520px;
  text-align: center;
  box-sizing: border-box;
  padding: 16px 24px;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (max-width: 599px) {
  .shindan-hero .shindan-cta-group .shindan-cta,
  .shindan-hero .shindan-cta-group .shindan-cta-gold {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* ── CTA: ゴールド枠ボタン（CTA2 精密版） ── */
.shindan-cta-gold {
  background: #fff;
  color: #1f2937;
  border: 1.5px solid #c9a227;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 200px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.shindan-cta-gold:hover { background: #fefce8; }

/* ── CTA: テキストリンク（CTA3 武将一覧へ） ── */
.shindan-cta-text {
  font-size: 14px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.15s;
}
.shindan-cta-text:hover { color: #374151; }

/* ── Trust: h2 テキスト中央揃え補正 ── */
.shindan-lp-trust .shindan-section-title {
  white-space: pre-line;
  margin-top: 0;
}

/* ── ストーリーカード: 大きい背景ナンバー ── */
.shindan-story-bg-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Noto Serif JP', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #c9a227;
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.shindan-story-label {
  font-size: 0.875rem;
  color: #c9a227;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
/* 旧 shindan-story-num を非表示 */
.shindan-story-num { display: none; }

/* ── ストーリーカード: washi 背景 ── */
.shindan-stories-section {
  background: #fdf6e3;
  padding: 96px 32px;
}
@media (max-width: 767px) { .shindan-stories-section { padding: 56px 20px; } }
.shindan-stories-section .shindan-section-title {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.shindan-stories-section .section-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.85;
}

/* ── Mode Compare v9 ── */
.shindan-mode-compare-v9 {
  padding: 96px 32px;
  background: #fff;
}
@media (max-width: 767px) { .shindan-mode-compare-v9 { padding: 56px 20px; } }
.shindan-mode-compare-v9 .shindan-section-title {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.mode-compare-v9-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) { .mode-compare-v9-grid { grid-template-columns: 1fr; } }
.mode-compare-v9-card {
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  position: relative;
}
.mode-compare-v9-card--full {
  background: #fff;
  border: 2px solid #c9a227;
}
.mode-compare-v9-badge-float {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a227;
  color: #fff;
  padding: 4px 18px;
  font-size: 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.mode-compare-v9-badge {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 8px;
}
.mode-compare-v9-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}
.mode-compare-v9-sub {
  font-size: 13px;
  color: #c9a227;
  font-weight: 600;
  margin: 0 0 10px;
}
.mode-compare-v9-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
  margin: 0 0 20px;
}
.mode-compare-v9-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-compare-v9-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #374151;
}
.mode-compare-v9-feat--no { color: #9ca3af; }
.mode-compare-v9-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.2s;
}
.mode-compare-v9-cta--primary { background: #1d4ed8; color: #fff; }
.mode-compare-v9-cta--gold {
  border: 1.5px solid #c9a227;
  color: #1f2937;
  background: #fff;
}
.mode-compare-v9-cta:hover { opacity: 0.85; }

/* ── Samurai Preview: カード・家紋サイズ調整 ── */
.shindan-samurai-card { width: 200px; padding: 28px 20px; }
.shindan-samurai-kamon { width: 96px; height: 96px; margin-bottom: 16px; }
.shindan-samurai-scroll { gap: 20px; padding: 32px 24px; }

/* ── 21 タイプ別ページ導線 ── */
.shindan-types-nav-section {
  padding: 64px 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.shindan-types-nav-header { margin-bottom: 32px; }
.shindan-types-nav-lead {
  font-size: 14px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.7;
}
.shindan-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.shindan-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-pill, 999px);
  font-size: 13px;
  font-family: 'Noto Serif JP', serif;
  color: #374151;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.shindan-type-chip:hover {
  border-color: #c9a227;
  color: #92740a;
  background: #fefce8;
}
@media (max-width: 599px) {
  .shindan-types-nav-section { padding: 48px 20px; }
  .shindan-type-chip { font-size: 12px; padding: 7px 13px; }
}
/* UI統一Phase4: display:inline-flex + padding だけでは実測34pxしかなく
   44px未達だった（21タイプチップ、320-599px実測確認）。PC表示は変えない
   方針のためモバイル幅限定でmin-heightを追加する */
@media (max-width: 767px) {
  .shindan-type-chip {
    min-height: var(--touch-target-sm, 44px);
  }
}

/* ── Final CTA: padding / kamon サイズ調整 ── */
.shindan-lp-final-cta { padding: 128px 32px; }
@media (max-width: 767px) { .shindan-lp-final-cta { padding: 72px 20px; } }
.shindan-lp-final-kamon { width: 500px; height: 500px; opacity: 0.07; }
@media (max-width: 767px) { .shindan-lp-final-kamon { width: 280px; height: 280px; } }

/* ── Footer ── */
.shindan-lp-footer {
  background: #111827;
  border-top: 1px solid #374151;
  padding: 48px 32px;
}
@media (max-width: 767px) { .shindan-lp-footer { padding: 36px 20px; } }
.shindan-lp-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 640px) {
  .shindan-lp-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.shindan-lp-footer-copy {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.shindan-lp-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.shindan-lp-footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.shindan-lp-footer-links a:hover { color: #fff; }

/* ══════════════════════════════════════════════════
   v10.0 共有URL明示化（結果ページ）
══════════════════════════════════════════════════ */

/* 上部共有CTAミニバナー */
.result-share-cta-top {
  margin: 16px 0 20px;
  padding: 12px 18px;
  background: #fef9e7;
  border: 1px solid #c9a227;
  border-radius: 6px;
  text-align: center;
  font-size: 13.5px;
}
.result-share-cta-top p { margin: 0; color: #1f2937; }
.result-share-cta-top a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result-share-cta-top a:hover { color: #1e40af; }

/* 共有リンクセクションを目立たせる */
.result-share-link-prominent {
  background: #fef9e7;
  border: 2px solid #c9a227;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}
.result-share-link-prominent .share-link-label {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.result-share-link-prominent .share-link-url {
  display: block;
  font-size: 12.5px;
  color: #374151;
  word-break: break-all;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}
.result-share-link-prominent .result-share-actions {
  margin-top: 0;
}

/* 初回訪問者向けに、短縮版の所要時間と推奨理由をCTA直下で補足 */
.shindan-cta-reassurance {
  margin: 10px auto 0;
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 599px) {
  .shindan-cta-reassurance {
    max-width: 18rem;
    font-size: 0.8rem;
  }
}
