/**
 * 固定資産税・払いすぎ診断 スタイル
 *
 * @package koteishisanzei-child
 * @version 1.0.0
 */

/* ================================================================
 * 複数物件対応 v2.0 — 1ページ完結フォーム用スタイル追加
 * ================================================================ */

/* ── フォームページ全体 ── */
.ksz-form-page { display: flex; flex-direction: column; gap: 18px; }

.ksz-page-head {
  background: #fff;
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 4px 20px rgba(15,42,92,.08);
  text-align: center;
}
.ksz-page-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f2a5c;
  margin: 0 0 8px;
}
.ksz-page-desc {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.7;
}

/* ── 物件カード ── */
.ksz-prop-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 28px;
  box-shadow: 0 6px 24px rgba(15,42,92,.10);
  border: 2px solid transparent;
  position: relative;
}

.ksz-prop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -4px 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #e2e8f0;
}

.ksz-prop-num-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ksz-prop-num {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ksz-prop-loc {
  font-size: 0.82rem;
  color: #718096;
  font-weight: 600;
}

.ksz-remove-btn {
  background: #fff;
  border: 2px solid #fecaca;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.ksz-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ── サブセクション（基本情報/土地/家屋） ── */
.ksz-sub-section {
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.ksz-sub-section:last-child { margin-bottom: 0; }

.ksz-sub-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1a365d;
  margin: 0 0 4px;
}
.ksz-sub-desc {
  font-size: 0.82rem;
  color: #718096;
  margin: 0 0 14px;
}

/* ── 3カラムグリッド ── */
.ksz-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── 追加ボタンエリア ── */
.ksz-add-area { text-align: center; padding: 4px 0; }

.ksz-add-prop-btn {
  background: #fff;
  border: 2px dashed #2563eb;
  color: #2563eb;
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 30px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  flex-wrap: wrap;
  justify-content: center;
}
.ksz-add-prop-btn:hover {
  background: #eff6ff;
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.20);
}

.ksz-add-icon {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.ksz-add-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #718096;
  margin-left: 4px;
}

.ksz-max-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 追加リスク因子ブロック（全物件共通） ── */
.ksz-risks-block {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: 12px;
  padding: 20px 22px;
}
.ksz-risks-title {
  font-size: 1rem;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 4px;
}
.ksz-risks-desc {
  font-size: 0.83rem;
  color: #92400e;
  margin: 0 0 12px;
}

/* ── 診断ボタン ── */
.ksz-diag-action {
  text-align: center;
  padding: 8px 0 4px;
}
.ksz-diag-action .ksz-btn-diag {
  font-size: 1.1rem;
  padding: 18px 40px;
  min-width: 280px;
  width: 100%;
  max-width: 420px;
}

/* ── 結果：物件別の小カード ── */
.ksz-prop-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ksz-prop-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.ksz-prop-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ksz-prop-result-loc {
  font-size: 0.85rem;
  color: #4a5568;
  font-weight: 600;
}
.ksz-prop-result-ev {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a365d;
}

.ksz-prop-result-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ksz-prop-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.76rem;
}
.ksz-prop-check.v-bad  { background: #fff5f5; border: 1px solid #fecaca; }
.ksz-prop-check.v-warn { background: #fffbeb; border: 1px solid #fde68a; }
.ksz-prop-check.v-ok   { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ksz-prop-check.v-gray { background: #f8fafc; border: 1px solid #e2e8f0; }

.ksz-prop-check-num   { font-weight: 800; color: #4a5568; }
.ksz-prop-check-vdict { font-weight: 700; color: #1a2236; font-size: 0.82rem; }
.ksz-prop-check-score { font-size: 0.72rem; color: #718096; font-weight: 600; }

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .ksz-prop-card { padding: 18px 14px 22px; }
  .ksz-sub-section { padding: 16px 12px 14px; }
  .ksz-grid3 { grid-template-columns: 1fr; }
  .ksz-prop-result-checks { grid-template-columns: repeat(2, 1fr); }
  .ksz-diag-action .ksz-btn-diag { width: 100%; min-width: 0; }
  .ksz-prop-head { flex-direction: row; }
}

/* 戻る・最初から並べるボタンエリア */
.ksz-restart {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================================================================
 * リセット・ベース
 * ================================================================ */
#ksz-diagnostic *,
#ksz-diagnostic *::before,
#ksz-diagnostic *::after {
  box-sizing: border-box;
}

#ksz-diagnostic {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a2236;
}

/* ================================================================
 * アプリラッパー
 * ================================================================ */
.ksz-app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px 48px;
}

/* ================================================================
 * ヒーローエリア
 * ================================================================ */
.ksz-hero {
  text-align: center;
  padding: 32px 16px 20px;
}

.ksz-hero-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: #0f2a5c;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ksz-hero-sub {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0;
}

/* ================================================================
 * ステップバー
 * ================================================================ */
.ksz-stepbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 24px;
  gap: 0;
}

.ksz-stepbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ksz-stepbar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #718096;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  transition: all 0.25s;
}

.ksz-stepbar-label {
  font-size: 0.7rem;
  color: #718096;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}

.ksz-stepbar-line {
  height: 2px;
  width: 32px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin-bottom: 22px;
  transition: background 0.25s;
}

.ksz-stepbar-item.active .ksz-stepbar-circle {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}
.ksz-stepbar-item.active .ksz-stepbar-label { color: #2563eb; font-weight: 700; }

.ksz-stepbar-item.done .ksz-stepbar-circle {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.ksz-stepbar-item.done .ksz-stepbar-label { color: #10b981; }
.ksz-stepbar-line.done { background: #10b981; }

/* ================================================================
 * カード
 * ================================================================ */
.ksz-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15,42,92,.08), 0 1px 4px rgba(0,0,0,.04);
  padding: 28px 24px 24px;
  margin-bottom: 16px;
}

.ksz-card-ttl {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2a5c;
  margin: 0 0 6px;
}

.ksz-card-desc {
  font-size: 0.88rem;
  color: #4a5568;
  margin: 0 0 20px;
}

/* ================================================================
 * お知らせバナー
 * ================================================================ */
.ksz-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.87rem;
  color: #1d4ed8;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ================================================================
 * フォームパーツ
 * ================================================================ */
.ksz-form { display: flex; flex-direction: column; gap: 18px; }

.ksz-field { display: flex; flex-direction: column; gap: 4px; }
.ksz-field.err .ksz-inp,
.ksz-field.err .ksz-sel { border-color: #ef4444; background: #fff5f5; }

.ksz-lbl {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ksz-req {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: .02em;
}

.ksz-opt {
  font-size: 0.72rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #718096;
  padding: 1px 5px;
  border-radius: 3px;
}

/* セレクト */
.ksz-sel-wrap { position: relative; }
.ksz-sel-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #4a5568;
  pointer-events: none;
}

.ksz-sel {
  width: 100%;
  padding: 11px 36px 11px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #1a2236;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ksz-sel:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.ksz-sel:disabled { background: #f7fafc; color: #a0aec0; cursor: not-allowed; }

/* インプット */
.ksz-inp-wrap { position: relative; display: flex; align-items: center; }

.ksz-inp {
  width: 100%;
  padding: 11px 48px 11px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a2236;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.ksz-inp::-webkit-outer-spin-button,
.ksz-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.ksz-inp:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.ksz-unit {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  color: #718096;
  pointer-events: none;
}

/* ラジオ */
.ksz-radio-grp { display: flex; flex-direction: column; gap: 8px; }

.ksz-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.ksz-radio:hover { border-color: #93c5fd; background: #f0f9ff; }
.ksz-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.ksz-radio input:checked ~ .ksz-radio-dot { background: #2563eb; border-color: #2563eb; }
.ksz-radio input:checked ~ .ksz-radio-dot::after { display: block; }
.ksz-radio:has(input:checked) { border-color: #2563eb; background: #eff6ff; }

.ksz-radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.ksz-radio-dot::after {
  content: '';
  display: none;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* チェックボックス */
.ksz-chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  user-select: none;
}
.ksz-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.ksz-chk-box {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.ksz-chk input:checked + .ksz-chk-box {
  background: #2563eb;
  border-color: #2563eb;
}
.ksz-chk input:checked + .ksz-chk-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.ksz-chk-grp { display: flex; flex-direction: column; gap: 10px; }
.ksz-consent-chk { align-items: flex-start; }
.ksz-consent-chk a { color: #2563eb; text-decoration: underline; }

/* ヒント・エラー */
.ksz-hint { font-size: 0.8rem; color: #718096; margin: 2px 0 0; }
.ksz-hint-ind { padding-left: 28px; }
.ksz-err-msg { font-size: 0.82rem; color: #ef4444; font-weight: 600; margin: 3px 0 0; }

/* セクション区切り */
.ksz-sep { height: 1px; background: #e2e8f0; margin: 6px 0; }
.ksz-sec-ttl {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

/* グリッド */
.ksz-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 賃貸フィールド */
.ksz-rental-fields {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e2e8f0;
}

/* ローディング */
.ksz-loading-txt {
  font-size: 0.82rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
}

.ksz-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ksz-rotate 0.7s linear infinite;
}
@keyframes ksz-rotate { to { transform: rotate(360deg); } }

/* ================================================================
 * ボタン
 * ================================================================ */
.ksz-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ksz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  min-height: 44px;
}

.ksz-btn-pri {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.ksz-btn-pri:hover { background: #1d4ed8; border-color: #1d4ed8; }

.ksz-btn-diag {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  border-color: transparent;
  padding: 13px 28px;
  font-size: 1rem;
}
.ksz-btn-diag:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); }

.ksz-btn-out {
  background: #fff;
  color: #4a5568;
  border-color: #e2e8f0;
}
.ksz-btn-out:hover { border-color: #94a3b8; background: #f8fafc; }

.ksz-btn-cta {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  color: #fff;
  border-color: transparent;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(220,38,38,.25);
}
.ksz-btn-cta:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.35); }
.ksz-btn-cta:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.ksz-btn-ghost {
  background: transparent;
  color: #718096;
  border-color: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
}
.ksz-btn-ghost:hover { color: #2563eb; text-decoration: underline; }

/* ================================================================
 * 診断結果
 * ================================================================ */
.ksz-results { display: flex; flex-direction: column; gap: 20px; }

/* スコアカード */
.ksz-score-card {
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ksz-score-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: radial-gradient(circle at 70% 30%, #fff 0%, transparent 60%);
  pointer-events: none;
}

.rk-a { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.rk-b { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.rk-c { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

.ksz-score-rk {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ksz-score-icon { font-size: 2.4rem; margin: 8px 0; line-height: 1; }

.ksz-score-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin: 4px 0;
}
.ksz-score-pt  { font-size: 1.4rem; font-weight: 700; }
.ksz-score-max { font-size: 0.9rem; opacity: 0.75; margin-left: 4px; }

.ksz-score-msg  { font-size: 1.25rem; font-weight: 800; margin: 8px 0 4px; }
.ksz-score-desc { font-size: 0.88rem; opacity: 0.85; }

/* チェック結果カード */
.ksz-checks { display: flex; flex-direction: column; gap: 12px; }

.ksz-sec-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2a5c;
  margin: 0 0 10px;
}

.ksz-chk-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 5px solid #e2e8f0;
}
.ksz-chk-card.v-bad  { border-left-color: #ef4444; background: #fff5f5; }
.ksz-chk-card.v-warn { border-left-color: #f59e0b; background: #fffbeb; }
.ksz-chk-card.v-ok   { border-left-color: #10b981; background: #f0fdf4; }
.ksz-chk-card.v-gray { border-left-color: #94a3b8; background: #f8fafc; }

.ksz-chk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ksz-chk-ttl-wrap { display: flex; align-items: center; gap: 8px; }
.ksz-chk-num { font-size: 0.78rem; font-weight: 800; color: #4a5568; letter-spacing: .05em; }
.ksz-chk-ttl { font-size: 0.95rem; font-weight: 700; color: #1a2236; }

.ksz-chk-vdict { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.ksz-vdict-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.ksz-vdict-badge.v-bad  { background: #fee2e2; color: #b91c1c; }
.ksz-vdict-badge.v-warn { background: #fef3c7; color: #92400e; }
.ksz-vdict-badge.v-ok   { background: #d1fae5; color: #065f46; }
.ksz-vdict-badge.v-gray { background: #f1f5f9; color: #64748b; }

.ksz-chk-wt { font-size: 0.75rem; color: #718096; }
.ksz-chk-desc { font-size: 0.8rem; color: #718096; margin: 0 0 8px; }
.ksz-chk-detail { font-size: 0.88rem; color: #2d3748; line-height: 1.6; }
.ksz-chk-detail strong { font-weight: 700; }

/* 物件サマリー */
.ksz-prop-summary {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.ksz-dl { margin: 0; }
.ksz-dl-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.ksz-dl-row:last-child { border-bottom: none; }
.ksz-dl-row dt { color: #718096; flex: 0 0 100px; }
.ksz-dl-row dd { margin: 0; font-weight: 600; color: #1a2236; }

/* 免責事項 */
.ksz-disclaimer {
  font-size: 0.78rem;
  color: #94a3b8;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.6;
}

/* CTA ブロック */
.ksz-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  border-radius: 16px;
  padding: 3px;
}

.ksz-cta-in {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.ksz-cta-ttl {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2a5c;
  margin: 0 0 12px;
  line-height: 1.4;
}

.ksz-cta-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.ksz-cta-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid #bfdbfe;
}

.ksz-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 18px;
}

.ksz-benefit {
  font-size: 0.87rem;
  font-weight: 600;
  color: #065f46;
}

.ksz-cta .ksz-btn-cta {
  width: 100%;
  max-width: 360px;
  font-size: 1.05rem;
  padding: 15px 32px;
}

/* No-CTA */
.ksz-no-cta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #4a5568;
}
.ksz-no-cta p { margin: 4px 0; }

/* 再診断 */
.ksz-restart { text-align: center; }

/* ================================================================
 * リードフォーム
 * ================================================================ */
.ksz-lead-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}

.ksz-rk-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: .05em;
}
.ksz-rk-badge.rk-a { background: #fee2e2; color: #b91c1c; }
.ksz-rk-badge.rk-b { background: #fef3c7; color: #92400e; }
.ksz-rk-badge.rk-c { background: #d1fae5; color: #065f46; }

.ksz-submit-err {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  margin-top: 12px;
}

.ksz-privacy-note {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ================================================================
 * サンキューページ
 * ================================================================ */
.ksz-thanks {
  text-align: center;
  padding: 40px 24px;
}

.ksz-thanks-icon { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.ksz-thanks-ttl {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f2a5c;
  margin: 0 0 12px;
}
.ksz-thanks-msg { font-size: 0.95rem; color: #2d3748; margin: 0 0 8px; }
.ksz-thanks-sub { font-size: 0.85rem; color: #718096; margin: 0 0 20px; }

/* ================================================================
 * レスポンシブ
 * ================================================================ */
@media (max-width: 520px) {
  .ksz-app { padding: 0 8px 32px; }

  .ksz-hero { padding: 20px 8px 14px; }
  .ksz-hero-title { font-size: 1.3rem; }

  .ksz-stepbar-line { width: 18px; }
  .ksz-stepbar-label { font-size: 0.65rem; }

  .ksz-card { padding: 20px 14px 18px; }

  .ksz-grid2 { grid-template-columns: 1fr; }

  .ksz-nav { justify-content: stretch; }
  .ksz-nav .ksz-btn { flex: 1 1 0; min-width: 0; }
  .ksz-nav .ksz-btn-ghost { flex: 0 0 auto; }

  .ksz-score-num { font-size: 2.8rem; }

  .ksz-chk-head { flex-direction: column; gap: 6px; }

  .ksz-dl-row dt { flex: 0 0 80px; font-size: 0.82rem; }
  .ksz-dl-row dd { font-size: 0.85rem; }

  .ksz-benefits { flex-direction: column; align-items: center; }

  .ksz-cta .ksz-btn-cta { max-width: 100%; }
}

@media (min-width: 600px) {
  .ksz-radio-grp { flex-direction: row; flex-wrap: wrap; }
  .ksz-radio { flex: 1 1 calc(50% - 4px); min-width: 0; }
}


/* ================================================================
 * v2.1 追加 — 物件カード内の追加リスク因子・「対象外」表示
 * ================================================================ */

/* 警告ノート (農地用) */
.ksz-notice-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* 物件カード内の追加リスク因子セクション（黄色アクセント） */
.ksz-risk-sub {
  background: #fffbeb !important;
  border: 1px solid #fde68a;
}
.ksz-risk-sub .ksz-sub-title { color: #92400e !important; }
.ksz-risk-sub .ksz-sub-desc  { color: #92400e !important; }

/* 「対象外」判定バッジ */
.ksz-vdict-badge.v-gray {
  background: #f1f5f9;
  color: #64748b;
}
.ksz-chk-card.v-gray {
  border-left-color: #94a3b8;
  background: #f8fafc;
}
.ksz-prop-check.v-gray {
  background: #f8fafc;
  border-color: #e2e8f0;
}
