/* ============================================================
   chat2.css — チャット申し込み v2 の見た目
   ★このファイルは書き換えない。色は chat2-config.js の theme で変える★
   ============================================================ */

.c2 {
  --c2-main-1: #3ecb5e;
  --c2-main-2: #1caf41;
  --c2-ink: #1caf41;
  --c2-bubble: #e3f4e7;
  --c2-cta: #f0872a;
  --c2-cta-2: #e56f1e;
  --c2-navy: #34618e;
  --c2-line: #cfd8d2;
  --c2-text: #26332a;
  --c2-sub: #6b7770;
  --c2-err: #d32f2f;
  --c2-kb-h: 0px; /* 数字パッドの高さ（JSが入れる） */

  position: fixed;
  inset: 0;
  z-index: 99999;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  color: var(--c2-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.c2 *, .c2 *::before, .c2 *::after { box-sizing: border-box; }
.c2[hidden], .c2 [hidden] { display: none !important; }
.c2 button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* 開いた直後はLPがうっすら透ける → 入力が進むと地が濃くなる */
.c2-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 24, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.c2-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  background: rgba(243, 246, 244, 0.86);
  transition: background 0.6s;
}
.c2.is-deep .c2-frame { background: #f3f6f4; }

/* ── ヘッダー ─────────────────────────────── */
.c2-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  color: #fff;
}
.c2-head-text { flex: 1; min-width: 0; }
.c2-head-name { display: block; font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.c2-head-sub { display: block; font-size: 11px; opacity: 0.92; }
.c2-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-size: 22px;
  line-height: 40px;
}

/* ── 残りの質問数（ヘッダー下） ──────────── */
.c2-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e3e9e5;
}
.c2-top .c2-remain { flex: none; font-size: 14px; font-weight: 700; color: var(--c2-text); }
.c2-top .c2-remain b { font-size: 22px; color: var(--c2-cta-2); margin: 0 2px; vertical-align: -1px; }
.c2-top .c2-segs { flex: 1; min-width: 40px; }

/* ── 3つの安心（会話の一番上） ───────────── */
.c2-hero {
  margin: 0 0 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 60, 40, 0.08);
  animation: c2-in 0.32s ease-out both;
}
.c2-hero-title { margin: 0 0 10px; font-size: 20px; font-weight: 900; text-align: center; text-wrap: balance; }
.c2-hero-title span { color: var(--c2-cta-2); }
.c2-hero-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.c2-hero-item {
  min-width: 0;
  padding: 10px 2px 8px;
  border: 2px solid var(--c2-ink);
  border-radius: 12px;
  text-align: center;
}
.c2-hero-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: var(--c2-ink);
}
.c2-hero-ic svg { width: 18px; height: 18px; fill: #fff; }
.c2-hero-item small { display: block; font-size: 11px; font-weight: 700; color: var(--c2-sub); }
.c2-hero-item b { display: block; font-size: 19px; font-weight: 900; line-height: 1.25; color: var(--c2-ink); white-space: nowrap; }

.c2-test {
  flex: none;
  padding: 4px 10px;
  background: #fff6cc;
  color: #6d5a00;
  font-size: 11px;
  text-align: center;
}

/* ── 会話の流れ ───────────────────────────── */
.c2-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 12px calc(32px + env(safe-area-inset-bottom) + var(--c2-kb-h));
  scroll-padding-bottom: calc(40px + var(--c2-kb-h));
}

.c2-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 10px;
  animation: c2-in 0.32s ease-out both;
}
@keyframes c2-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.c2-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.c2-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2-avatar.is-blank { visibility: hidden; }
.c2-bubble {
  max-width: calc(100% - 56px);
  padding: 11px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--c2-bubble);
  font-size: 16px;
  line-height: 1.6;
}
.c2-bubble strong { color: var(--c2-main-2); }
.c2-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.c2-typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c2-ink); opacity: 0.35;
  animation: c2-dot 1s infinite;
}
.c2-typing i:nth-child(2) { animation-delay: 0.15s; }
.c2-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes c2-dot { 50% { opacity: 1; transform: translateY(-3px); } }

/* ── 入力カード ───────────────────────────── */
.c2-card {
  margin: 0 0 14px;
  padding: 16px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 60, 40, 0.07);
  animation: c2-in 0.32s ease-out both;
}
.c2-field { margin: 0 0 14px; }
.c2-field:last-child { margin-bottom: 0; }
.c2-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.c2-req, .c2-opt {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.c2-req { background: var(--c2-err); color: #fff; }
.c2-opt { background: #e7ece9; color: var(--c2-sub); }
.c2-label-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--c2-navy);
  text-decoration: underline;
}

.c2-input,
.c2-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--c2-line);
  border-radius: 10px;
  background: #fff;
  color: var(--c2-text);
  font: inherit;
  font-size: 18px; /* 16px未満だとiOSが拡大する */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.c2-input::placeholder { color: #b3bcb6; }
.c2-input:focus,
.c2-select:focus,
.c2-input.is-active {
  border-color: var(--c2-ink);
  box-shadow: 0 0 0 4px rgba(28, 175, 65, 0.16);
}
.c2-input.is-empty-req { background: #fffdf3; }
.c2-input.is-ng { border-color: var(--c2-err); }
.c2-select {
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--c2-sub) 50%), linear-gradient(135deg, var(--c2-sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.c2-pair { display: flex; gap: 8px; }
.c2-pair > * { flex: 1; min-width: 0; }
.c2-mini { margin: 0 0 3px; font-size: 11px; color: var(--c2-sub); }
.c2-help { margin: 6px 0 0; font-size: 12px; color: var(--c2-sub); line-height: 1.5; }
.c2-err { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--c2-err); }

/* お名前：変換中の表示 */
.c2-namebox { position: relative; }
.c2-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c2-sub);
  pointer-events: none;
}
.c2-spin {
  width: 14px; height: 14px;
  border: 2px solid #cfe9d6;
  border-top-color: var(--c2-ink);
  border-radius: 50%;
  animation: c2-rot 0.7s linear infinite;
}
@keyframes c2-rot { to { transform: rotate(360deg); } }
.c2-split { animation: c2-in 0.32s ease-out both; }

/* 住所：横並びラベル */
.c2-addr-row { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.c2-addr-row:last-child { margin-bottom: 0; }
.c2-addr-row > span {
  flex: none;
  width: 72px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.c2-addr-row > span small { display: block; font-size: 10px; font-weight: 600; color: var(--c2-sub); }
.c2-addr-row > :last-child { flex: 1; min-width: 0; }

/* ── 選択リスト ───────────────────────────── */
.c2-choices { display: grid; gap: 8px; }
.c2-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1.5px solid #e1e8e3;
  border-radius: 12px;
  background: #f7faf8;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.c2-choice::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #b9c5bd;
  border-radius: 50%;
  background: #fff;
  transition: all 0.15s;
}
.c2-choice.is-on { border-color: var(--c2-ink); background: #eefaf1; }
.c2-choice.is-on::before { border-color: var(--c2-ink); box-shadow: inset 0 0 0 5px #fff; background: var(--c2-ink); }

/* ── ボタン ───────────────────────────────── */
.c2-next {
  display: block;
  width: 100%;
  height: 54px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--c2-cta), var(--c2-cta-2));
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 0 rgba(150, 70, 10, 0.35);
  transition: filter 0.15s, transform 0.1s;
}
.c2-next:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(150, 70, 10, 0.35); }
.c2-next[disabled] {
  background: #cfd6d2;
  box-shadow: none;
  cursor: default;
}
.c2-next.is-done { background: #9fb3a6; box-shadow: none; }
.c2-submit { height: 62px; font-size: 19px; }
.c2-submit:not([disabled]) { animation: c2-puyo 1.6s ease-in-out infinite; }
@keyframes c2-puyo {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.04, 0.95); }
  80% { transform: scale(0.97, 1.03); }
  90% { transform: scale(1.01, 0.99); }
}

.c2-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.c2-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c2-ink); }
.c2-consent a { color: var(--c2-navy); }
.c2-consent-note { margin: 6px 0 0 32px; font-size: 11px; color: var(--c2-sub); }

.c2-segs { display: flex; gap: 4px; }
.c2-segs i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #dfe6e1;
  transition: background 0.3s;
}
.c2-segs i.is-on { background: var(--c2-ink); }

/* ── 数字パッド ───────────────────────────── */
.c2-kb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 8px calc(8px + env(safe-area-inset-bottom));
  background: #e6efe9;
  border-top: 1px solid #d3ddd6;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
}
.c2.is-kb .c2-kb { transform: none; }
.c2-kb-top {
  display: flex;
  align-items: center;
  height: 46px;
  margin: 0 -8px 8px;
  padding: 0 8px 0 16px;
  background: #fff;
  border-bottom: 1px solid #e3e9e5;
}
.c2-kb-label { flex: none; font-size: 11px; color: var(--c2-sub); margin-right: 10px; }
.c2-kb-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 800;
  color: var(--c2-navy);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.c2-kb-val.is-ph { color: #b3bcb6; font-weight: 600; }
.c2-kb-done {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 17px;
  background: var(--c2-ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
}
.c2-kb-chips { display: flex; gap: 6px; margin: 0 0 6px; }
.c2-kb-chips:empty { display: none; }
.c2-kb-chips button {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--c2-ink);
  border-radius: 20px;
  background: #fff;
  color: var(--c2-main-2) !important;
  font-size: 16px;
  font-weight: 800;
}
.c2-kb-chips button[disabled] { border-color: #cfd8d2; color: #b3bcb6 !important; background: #f3f6f4; }
.c2-kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.c2-kb-grid button {
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 #c3cec7;
  font-size: 24px;
  font-weight: 600;
}
.c2-kb-grid button:active { background: #d7eadc; }
.c2-kb-grid .c2-kb-sub {
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--c2-navy) !important;
}
.c2-kb-grid .c2-kb-sub svg { width: 24px; height: 24px; fill: currentColor; vertical-align: middle; }

/* ── テストモードの表 ─────────────────────── */
.c2-dry { width: 100%; margin: 8px 0 0; border-collapse: collapse; font-size: 12px; background: #fff; }
.c2-dry th, .c2-dry td { padding: 4px 6px; border: 1px solid #dfe6e1; text-align: left; vertical-align: top; word-break: break-all; }
.c2-dry th { width: 34%; background: #f3f6f4; font-weight: 700; }
.c2-bubble-note { display: block; margin: 4px 0 0; font-size: 12px; color: var(--c2-sub); }

/* ── 建物の種類（アイコンつきタイル） ─────── */
.c2-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.c2-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 12px 8px;
  border: 1.5px solid #e1e8e3;
  border-radius: 12px;
  background: #f7faf8;
  font-size: 16px;
  font-weight: 800;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.c2-tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.c2-tile-icon svg { width: 26px; height: 26px; fill: var(--c2-ink); }
.c2-tile.is-on {
  border-color: var(--c2-ink);
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  color: #fff !important;
}

/* ── 広さ（2列） ─────────────────────────── */
.c2-choices--2 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.c2-choices--2 .c2-choice {
  min-height: 52px;
  padding: 8px 10px;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}
.c2-choices--2 .c2-choice::before { width: 18px; height: 18px; }
.c2-choices--2 .c2-choice:first-child { grid-column: 1 / -1; }

.c2-guide { margin: 10px 0 0; font-size: 13px; }
.c2-guide summary {
  display: inline-block;
  padding: 2px 0;
  color: var(--c2-navy);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}
.c2-guide summary::-webkit-details-marker { display: none; }
.c2-guide-table { width: 100%; margin: 8px 0 0; border-collapse: collapse; }
.c2-guide-table th,
.c2-guide-table td { padding: 6px 10px; border: 1px solid #dfe6e1; text-align: left; font-variant-numeric: tabular-nums; }
.c2-guide-table th { width: 50%; background: #f3f6f4; font-weight: 700; }

/* ── 最後のカード ─────────────────────────── */
.c2-textarea { height: auto; min-height: 96px; padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; }
.c2-intro {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6ec;
  color: #9a4a0c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}
.c2-consent .c2-req { margin-left: 4px; vertical-align: 1px; }
.c2-choice small { display: block; font-size: 11px; font-weight: 600; color: var(--c2-sub); }
.c2-choice.is-on small { color: var(--c2-main-2); }

/* ── 建物の種類：ぷくっとしたボタン（2026-10-16） ──
   白い面＋下に厚み（影）＋上にハイライト。押すと沈む。選んだら緑の面で沈んだまま */
.c2-tile {
  border: 2px solid #cfe3d5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #e9f5ed 100%);
  box-shadow: 0 6px 0 #b3cdbb, 0 9px 16px rgba(30, 80, 45, 0.16), inset 0 2px 0 #ffffff;
  transform: translateY(0);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s, color 0.15s, border-color 0.15s;
}
.c2-tile:hover { border-color: var(--c2-ink); }
.c2-tile:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #b3cdbb, 0 2px 4px rgba(30, 80, 45, 0.12), inset 0 2px 0 #ffffff;
}
.c2-tile .c2-tile-icon { box-shadow: 0 2px 4px rgba(30, 80, 45, 0.15), inset 0 -2px 0 #e3efe7; }
.c2-tile.is-on {
  border-color: var(--c2-main-2);
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  box-shadow: 0 3px 0 #138a33, 0 4px 8px rgba(20, 120, 50, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(3px);
}
@media (prefers-reduced-motion: reduce) {
  .c2-tile, .c2-tile:active, .c2-tile.is-on { transition: none; transform: none; }
}
.c2-tiles { gap: 14px 10px; padding-bottom: 4px; }

/* ── 連打で画面が拡大しないように（2026-10-16） ──
   iPhone は同じ場所を素早く2回タップすると拡大する。チャット内ではそれを止める
   （2本指で広げる拡大はそのまま使える）。パッドは長押しで文字が選択されないようにも */
.c2,
.c2 button,
.c2 .c2-kb,
.c2 .c2-kb * {
  touch-action: manipulation;
}
.c2 .c2-kb,
.c2 .c2-kb *,
.c2 .c2-tile,
.c2 .c2-choice,
.c2 .c2-next {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* ══ 思わず押したくなるボタン（2026-10-16） ══════════════════
   共通の作法：上が明るい面＋下に厚み（影）＋上ふちにハイライト。押すと厚みの分だけ沈む */

/* 「次へ」：オレンジのぷっくりボタン */
.c2-next {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffab5c 0%, var(--c2-cta) 45%, var(--c2-cta-2) 100%);
  box-shadow: 0 5px 0 #b9520c, 0 8px 16px rgba(229, 111, 30, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 1px rgba(140, 60, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.c2-next:not([disabled]):hover { filter: brightness(1.04); }
.c2-next:not([disabled]):active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #b9520c, 0 2px 4px rgba(229, 111, 30, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
/* 上半分のつや */
.c2-next::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 3px;
  height: 30%;
  border-radius: 10px 10px 40% 40% / 10px 10px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.c2-next[disabled] {
  background: #d3dbd6;
  box-shadow: 0 4px 0 #b7c2bb;
  text-shadow: none;
  color: #ffffff !important;
}
.c2-next[disabled]::after { opacity: 0.25; }
.c2-next.is-done { background: #9fb3a6; box-shadow: 0 2px 0 #84988b; transform: translateY(3px); }

/* 送信ボタン：さらに大きく・光がすっと流れる */
.c2-submit {
  height: 66px;
  font-size: 20px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 0 #b9520c, 0 10px 22px rgba(229, 111, 30, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.c2-submit:not([disabled])::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: c2-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes c2-shine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}

/* 数字パッドのキー：白いぷっくりキー */
.c2-kb-grid button:not(.c2-kb-sub) {
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #eef5f0 100%);
  box-shadow: 0 4px 0 #b4c6ba, 0 5px 8px rgba(30, 80, 45, 0.12), inset 0 2px 0 #ffffff;
  transform: translateY(0);
  transition: transform 0.06s, box-shadow 0.06s, background 0.1s;
}
.c2-kb-grid button:not(.c2-kb-sub):active {
  transform: translateY(3px);
  background: #e4f3e8;
  box-shadow: 0 1px 0 #b4c6ba, 0 1px 2px rgba(30, 80, 45, 0.12), inset 0 2px 0 #ffffff;
}
.c2-kb-grid { gap: 9px 7px; padding-bottom: 4px; }
.c2-kb-grid .c2-kb-sub:active { transform: translateY(2px); opacity: 0.7; }

/* 090/080/070・丁目/番/号：緑ふちのぷっくり丸ボタン */
.c2-kb-chips { margin-bottom: 10px; }
.c2-kb-chips button {
  background: linear-gradient(180deg, #ffffff 0%, #f0faf3 100%);
  box-shadow: 0 3px 0 #8fcf9f, 0 4px 8px rgba(28, 175, 65, 0.15), inset 0 2px 0 #ffffff;
  transform: translateY(0);
  transition: transform 0.06s, box-shadow 0.06s;
}
.c2-kb-chips button:not([disabled]):active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #8fcf9f, inset 0 2px 0 #ffffff;
}
.c2-kb-chips button[disabled] { box-shadow: none; }

/* パッドの「完了」：緑のぷっくりボタン */
.c2-kb-done {
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  box-shadow: 0 3px 0 #138a33, 0 4px 8px rgba(20, 120, 50, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px rgba(0, 80, 20, 0.3);
  transform: translateY(-1px);
  transition: transform 0.06s, box-shadow 0.06s;
}
.c2-kb-done:active { transform: translateY(2px); box-shadow: 0 0 0 #138a33, inset 0 2px 0 rgba(255, 255, 255, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .c2-submit:not([disabled])::before { animation: none; display: none; }
  .c2-next, .c2-kb-grid button, .c2-kb-chips button, .c2-kb-done { transition: none; }
}

/* 文字がつやに埋もれないように */
.c2-next { color: #ffffff !important; text-shadow: 0 1px 2px rgba(120, 50, 0, 0.45); font-weight: 900; }

/* ★.c2 button { font: inherit } が太さ・大きさを打ち消していたので、ボタンの文字はここで確定させる */
.c2 .c2-next { font-size: 18px; font-weight: 800; }
.c2 .c2-submit { font-size: 20px; font-weight: 800; }
.c2 .c2-tile { font-size: 16px; font-weight: 800; }
.c2 .c2-choice { font-weight: 700; }
.c2 .c2-kb-grid button:not(.c2-kb-sub) { font-size: 24px; font-weight: 700; }
.c2 .c2-kb-grid .c2-kb-sub { font-size: 13px; font-weight: 700; }
.c2 .c2-kb-chips button { font-size: 16px; font-weight: 800; }
.c2 .c2-kb-done { font-size: 14px; font-weight: 800; }

/* ── 吹き出しの文字を大きく・濃く（2026-10-16 小さくて薄く印象がないと指摘） ── */
.c2 .c2-bubble {
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: #17251c;
  background: #d9f1df;
  border: 1px solid #bfe3c9;
  box-shadow: 0 2px 6px rgba(30, 80, 45, 0.08);
  letter-spacing: 0.01em;
}
.c2 .c2-bubble strong { color: #0f8a34; font-weight: 800; }
.c2 .c2-avatar { width: 44px; height: 44px; }
.c2 .c2-row { margin-bottom: 12px; }
/* アイコン（女性）を大きく（2026-10-16） */
.c2 .c2-avatar { width: 58px; height: 58px; border-width: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.c2 .c2-row { gap: 10px; }
.c2 .c2-bubble { max-width: calc(100% - 68px); }

/* ── 冒頭の帯（C案・2026-10-16）：緑の帯に放射の光＋金文字「無料!」 ── */
.c2-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 14px 12px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  box-shadow: 0 6px 0 #138a33, 0 10px 18px rgba(20, 120, 50, 0.28);
  text-align: center;
  color: #fff;
  animation: c2-in 0.32s ease-out both;
}
.c2-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(255, 255, 255, 0.12) 0 8deg, transparent 8deg 16deg);
  pointer-events: none;
}
.c2-banner > * { position: relative; }
.c2-banner-top {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--c2-main-2);
  font-size: 14px;
  font-weight: 900;
}
.c2-banner-main { margin: 6px 0 0; font-size: 42px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.c2-banner-lead { color: #fff; text-shadow: 0 3px 0 #0f7a2c; }
.c2-banner-sub { margin: 6px 0 0; font-size: 15px; font-weight: 800; }
.c2-banner-sub b {
  display: inline-block;
  margin: 0 2px;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff;
  color: var(--c2-main-2);
}
/* 金文字：本体（金のグラデ）の下に、こげ茶のふちを1枚重ねる */
.c2-gold { position: relative; display: inline-block; isolation: isolate; }
.c2-gold > i {
  position: relative;
  z-index: 1;
  font-style: normal;
  background: linear-gradient(180deg, #fffef0 0%, #fff1a8 22%, #ffd34d 45%, #d99a14 58%, #f7c843 75%, #fff0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.c2-gold::before {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  color: #6b3a00;
  -webkit-text-stroke: 5px #6b3a00;
  transform: translateY(2px);
}
@media (max-width: 360px) { .c2-banner-main { font-size: 36px; } }

/* ── 建物の種類：アイコンを大きく目立たせる（2026-10-16） ──
   緑の丸に白いイラスト。選んだら白い丸に緑のイラストへ反転 */
.c2 .c2-tile { min-height: 128px; gap: 8px; padding: 14px 8px 12px; }
.c2 .c2-tile .c2-tile-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(180deg, var(--c2-main-1), var(--c2-main-2));
  box-shadow: 0 3px 0 #138a33, 0 5px 10px rgba(20, 120, 50, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.c2 .c2-tile .c2-tile-icon svg { width: 42px; height: 42px; fill: #fff; }
.c2 .c2-tile.is-on .c2-tile-icon { background: #fff; box-shadow: 0 2px 0 #0f7a2c, inset 0 -2px 0 #e3efe7; }
.c2 .c2-tile.is-on .c2-tile-icon svg { fill: var(--c2-main-2); }
.c2 .c2-tile { font-size: 17px; }

/* ══ 2026-10-16 「次へ」は緑／送信だけオレンジでリッチに ══ */
.c2 .c2-next:not(.c2-submit) {
  background: linear-gradient(180deg, #6be588 0%, var(--c2-main-1) 40%, var(--c2-main-2) 100%);
  box-shadow: 0 5px 0 #0f7a2c, 0 8px 16px rgba(20, 140, 55, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 2px rgba(0, 70, 20, 0.45);
}
.c2 .c2-next:not(.c2-submit):not([disabled]):active {
  box-shadow: 0 1px 0 #0f7a2c, 0 2px 4px rgba(20, 140, 55, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.c2 .c2-next:not(.c2-submit)[disabled] { background: #d3dbd6; box-shadow: 0 4px 0 #b7c2bb; text-shadow: none; }

/* 送信ボタン：金のふち＋濃淡のあるオレンジ＋右に丸い矢印 */
.c2 .c2-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 70px;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffb760 0%, #ff8d22 38%, #f26b0e 62%, #e5560a 100%) padding-box,
    linear-gradient(180deg, #fff3b0 0%, #ffd34d 35%, #c98a12 65%, #ffe58a 100%) border-box;
  box-shadow: 0 6px 0 #a8420a, 0 12px 24px rgba(229, 90, 20, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(150, 50, 0, 0.25);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 2px rgba(120, 40, 0, 0.5);
}
.c2 .c2-submit::after { left: 18px; right: 18px; top: 4px; height: 34%; border-radius: 999px; }
.c2 .c2-submit:not([disabled]):active {
  box-shadow: 0 2px 0 #a8420a, 0 4px 8px rgba(229, 90, 20, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.c2 .c2-submit[disabled] {
  background: #d3dbd6 padding-box, #c4ccc7 border-box;
  box-shadow: 0 4px 0 #b7c2bb;
  text-shadow: none;
}
.c2-submit-label { position: relative; z-index: 1; }
.c2-submit-arrow {
  position: relative;
  z-index: 1;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 0 rgba(150, 50, 0, 0.35);
}
.c2-submit-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid #f06a0f;
  border-right: 3px solid #f06a0f;
  transform: translate(-65%, -50%) rotate(45deg);
}
.c2 .c2-submit[disabled] .c2-submit-arrow::before { border-color: #b7c2bb; }

/* ── 目立たせるお知らせカード（住所のあと「高額買取の可能性」・2026-10-16） ── */
.c2-hl {
  position: relative;
  overflow: hidden;
  margin: 2px 0 16px;
  padding: 16px 14px 14px;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(130% 100% at 50% 0%, #1fc14f 0%, #128a36 70%) padding-box,
    linear-gradient(180deg, #fff3b0, #ffd34d 35%, #c98a12 65%, #ffe58a) border-box;
  box-shadow: 0 6px 0 #0d6b29, 0 12px 24px rgba(15, 110, 45, 0.3);
  color: #fff;
  text-align: center;
  animation: c2-hl-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.c2-hl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 115%, rgba(255, 255, 255, 0.1) 0 7deg, transparent 7deg 14deg);
  pointer-events: none;
}
.c2-hl > * { position: relative; }
@keyframes c2-hl-pop {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: none; }
}
.c2-hl-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7d1, #ffd34d);
  color: #6b3a00;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 0 #b9821a;
}
.c2-hl-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 10px auto 0;
  font-size: 18px;
  font-weight: 900;
}
.c2-hl-area svg { flex: none; width: 22px; height: 22px; fill: #ffd34d; }
.c2-hl-area span { border-bottom: 2px dashed rgba(255, 255, 255, 0.6); }
.c2-hl-text { margin: 8px 0 0; font-size: 19px; font-weight: 900; line-height: 1.45; text-shadow: 0 2px 0 rgba(0, 60, 20, 0.35); }
.c2-hl-text .c2-gold { font-size: 36px; line-height: 1.15; margin: 2px 2px 0; text-shadow: none; }
.c2-hl-note { margin: 8px 0 0; font-size: 12px; opacity: 0.9; }
.c2-hl-spark { position: absolute; color: #ffe27a; font-size: 18px; animation: c2-twinkle 1.6s ease-in-out infinite; }
.c2-hl-spark--1 { left: 14px; top: 12px; }
.c2-hl-spark--2 { right: 16px; top: 22px; font-size: 14px; animation-delay: 0.5s; }
.c2-hl-spark--3 { left: 22px; bottom: 16px; font-size: 12px; animation-delay: 1s; }
@keyframes c2-twinkle { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .c2-hl, .c2-hl-spark { animation: none; } }
