/* === 診断機能 (16タイプ) 専用スタイル ===
 * 共通レイアウト・配色ユーティリティ・ボタン・ナビ・フッター・パンくずは layout.css に集約。
 * 単純な bg / border / padding / color / font はビュー側で Bootstrap 風 utility
 * (.bg-paper, .border-rule, .font-serif, .text-gold ...) を直接付与する方針。
 * このファイルには疑似要素・aspect-ratio・入力状態連動など utility では表現できない装飾だけを置く。 */

/* ===== 一覧カードのイラスト枠 (額装内側) ===== */
.diagnosis-illust {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--beige-dark) 0%, var(--beige) 100%);
  aspect-ratio: 1 / 1;
}
.diagnosis-illust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(168, 136, 66, 0.06) 8px 9px);
  pointer-events: none;
}
.diagnosis-illust img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== 詳細ヒーロー (二重金枠 + 砂目パターン) ===== */
.diagnosis-hero-frame {
  background: var(--navy);
  padding: 18px;
  position: relative;
}
.diagnosis-hero-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.diagnosis-hero-illust {
  background: linear-gradient(135deg, var(--beige-dark) 0%, var(--beige) 100%);
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.diagnosis-hero-illust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(168, 136, 66, 0.07) 10px 11px);
  pointer-events: none;
}
.diagnosis-hero-illust img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 強み/弱み・やってほしい/やめてほしい 2列カード (head + ul/li マーカー) ===== */
.diagnosis-twin-card {
  background: var(--paper);
  padding: 14px;
  height: 100%;
}
.diagnosis-twin-card.is-do { border-top: 2px solid var(--gold); }
.diagnosis-twin-card.is-dont { border-top: 2px solid var(--navy-light); }
.diagnosis-twin-card .head {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.diagnosis-twin-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.7;
  color: var(--ink);
}
.diagnosis-twin-card li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}
.diagnosis-twin-card.is-do li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}
.diagnosis-twin-card.is-dont li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--navy-light);
}

/* ===== リッカート (4段階) ===== */
.likert-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.likert-scale .end-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.likert-scale .end-label.left { text-align: left; }
.likert-scale .end-label.right { text-align: right; }
.likert-scale .options {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 575.98px) {
  .likert-scale {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 8px;
  }
  .likert-scale .options {
    order: 1;
    flex: 1 0 100%;
    justify-content: center;
  }
  .likert-scale .end-label {
    flex: 1 1 50%;
  }
  .likert-scale .end-label.left { order: 2; }
  .likert-scale .end-label.right { order: 3; }
}
.likert-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--navy-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.likert-circle:hover {
  border-color: var(--gold);
}
.likert-circle.size-strong { width: 28px; height: 28px; }
.likert-circle.size-soft   { width: 20px; height: 20px; }
.btn-check:checked + .likert-circle,
.likert-circle.is-active {
  background: var(--gold);
  border-color: var(--gold);
}
.btn-check:checked + .likert-circle::after,
.likert-circle.is-active::after {
  content: "";
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: var(--paper);
}

/* ===== プログレスバー ===== */
.diagnosis-progress {
  height: 2px;
  background: var(--rule);
  position: relative;
}
.diagnosis-progress > .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
