/* クルマのおそうじ屋さん — 公式サイト準拠 LP ブランド CSS */
:root {
  --bg: #f4f7f6;
  --bg-soft: #f1fbff;
  --paper: #ffffff;
  --ink: #3d4060;
  --ink-muted: #707070;
  --line: #dde3ea;
  --accent: #006fb9;
  --accent-hover: #085d89;
  --accent-light: #459dca;
  --accent-soft: #e6faff;
  --ok: #2e9e5b;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-text: #92400e;
  --bad: #c21a1a;
  --bad-bg: #fef2f2;
  --bad-border: #fecaca;
  --shadow: none;
  --shadow-modal: 0 2px 14px rgba(61, 64, 96, 0.12);
  --radius-panel: 4px;
  --radius-btn: 3px;
  --radius-input: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Noto Sans Japanese', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { width: min(760px, 100%); margin: 0 auto; padding: 0 16px 48px; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.header-tel {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.hero { padding: 32px 0 24px; text-align: center; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid #b8dce8;
  background: #f7fcff;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--accent);
}
.hero p {
  color: var(--ink);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.85;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 8px;
}
.trust-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.trust-item strong {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 2px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-top: 18px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.step-num {
  display: none;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.choice-grid { display: grid; gap: 10px; }
.choice-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  min-height: 48px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.choice-btn:hover { border-color: var(--accent-light); background: var(--bg-soft); }
.choice-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  border-left: 4px solid var(--accent);
}
.choice-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.choice-btn span { font-size: 13px; color: var(--ink-muted); }

.sub-choices { display: grid; gap: 8px; margin-top: 14px; }
.radio-row, .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.radio-pill input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
}
.radio-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent);
}

.postal-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.postal-field span { font-size: 20px; font-weight: 700; color: var(--ink-muted); }
.postal-field input {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
}

.field-note { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  flex: 1 1 auto;
  min-width: 160px;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled {
  background: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}
.btn-primary.btn-arrow::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
  margin-left: 2px;
}
.btn-ghost {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }

.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }
label.field {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 11px;
}
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }

.result-status {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent);
}
.result-status.ok { color: var(--ok); }
.result-status.ng { color: var(--bad); }
.result-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 16px;
  margin-bottom: 14px;
}
.result-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.menu-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--ink);
}
.price-main {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}
.price-main small { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.price-lines { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

.result-hero {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.result-metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.result-price-large {
  font-size: 40px;
  line-height: 1.1;
}
.result-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.result-metric-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.result-line-list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.result-line-list li { margin-bottom: 2px; }
.recommended-option-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.day-cell {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 8px 4px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.day-cell.day-sat {
  background: #eef4fc;
  border-color: #c5d9f0;
}
.day-cell.day-sun {
  background: #fceeee;
  border-color: #f0c5c5;
}
.day-cell.selected { border-color: var(--accent); background: var(--accent-soft); }
.day-cell.day-sat.selected { background: #ddeaf8; }
.day-cell.day-sun.selected { background: #f8dddd; }
.day-cell .d { font-size: 12px; color: var(--ink-muted); font-weight: 700; }
.day-cell.day-sat .d { color: #2f5f9e; }
.day-cell.day-sun .d { color: #b04545; }
.day-cell .s { font-size: 22px; font-weight: 900; line-height: 1.1; margin-top: 4px; color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--ink-muted); margin-top: 10px; }

.cta-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-block p { font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }
.btn-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s;
}
.btn-reserve:hover { background: var(--accent-hover); color: #fff; }
.btn-reserve.disabled,
.btn-reserve[aria-disabled="true"] {
  background: #cbd5e1;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 1;
}
.btn-reserve::after { content: '›'; font-size: 18px; margin-left: 4px; }
.btn-sub-link { display: inline-block; margin-top: 10px; font-size: 13px; }

.case-section { margin-top: 28px; }
.case-section h2 {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  overflow: hidden;
}
.case-ph {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-soft), #d1f0fc);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}
.case-body { padding: 10px 12px; font-size: 13px; }
.case-body strong { display: block; font-size: 14px; margin-bottom: 2px; }

.error-msg {
  color: var(--bad);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  border-radius: 8px;
  line-height: 1.5;
}
.error-msg.hidden { display: none !important; }

.hidden { display: none !important; }
.progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 4px;
}
.progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.progress span.on { background: var(--accent); }

.option-list { display: grid; gap: 8px; margin-top: 10px; }
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.option-item input { margin-top: 3px; accent-color: var(--accent); }
.option-item .opt-name { font-weight: 700; }
.option-item .opt-price { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.treatment-section { margin-top: 12px; }
.treatment-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.treatment-section ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.7; }
.consult-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  margin-top: 8px;
}

.hearing-free-text-status {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 8px 0 0;
  min-height: 1.25em;
}

.hearing-free-text-status.loading {
  color: var(--accent, #006fb9);
  white-space: pre-line;
}

.address-preview {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--bg-soft);
  font-size: 13px;
  line-height: 1.7;
}
.address-preview.hidden { display: none; }
.address-preview strong { color: var(--accent); }
.address-preview .confirm-note { margin-top: 8px; color: var(--warn-text); font-weight: 700; }

.area-blocked {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--bad-border);
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 13px;
  line-height: 1.6;
}
.area-blocked.hidden { display: none; }
.area-info {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 13px;
  line-height: 1.6;
}
.area-info.hidden { display: none; }
.area-ok {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: var(--ok);
  font-size: 13px;
  line-height: 1.6;
}
.area-ok.hidden { display: none; }

.qty-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qty-btn {
  min-width: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.qty-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.option-item.child-seat { flex-direction: column; align-items: stretch; }
.ai-reason { font-size: 13px; color: var(--ink-muted); margin-top: 8px; line-height: 1.6; }

.slot-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.slot-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.slot-banner {
  padding: 10px 12px;
  border-radius: var(--radius-input);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.slot-banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.slot-banner.bad { background: var(--bad-bg); border: 1px solid var(--bad-border); color: var(--bad); }
.slot-banner.info { background: var(--accent-soft); border: 1px solid var(--accent-light); color: var(--accent); }

.slot-loading { font-size: 13px; color: var(--ink-muted); padding: 8px 0; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.slot-btn {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color .15s, background .15s;
}
.slot-btn:not(:disabled):hover { border-color: var(--accent-light); background: var(--bg-soft); }
.slot-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.slot-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f8fafc;
}
.slot-btn .slot-time { font-size: 15px; font-weight: 700; color: var(--ink); }
.slot-btn .slot-price { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.slot-btn .slot-note { font-size: 11px; color: var(--warn-text); margin-top: 2px; font-weight: 700; }
.slot-btn .slot-reason { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.selected-slot-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-input);
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.6;
}
.selected-slot-summary strong { color: var(--accent); }

.special-stain-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.summary-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.insurance-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* 見積番号エリア — 折りたたみ */
.estimate-resume-collapsible { margin-top: 14px; }
.estimate-resume-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.estimate-resume-toggle::after {
  content: '＋';
  font-size: 16px;
  line-height: 1;
  color: var(--accent-light);
}
.estimate-resume-toggle[aria-expanded="true"]::after { content: '－'; }

/* 見積番号エリア — 公式CTA風 */
.estimate-resume-box {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: var(--radius-panel);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.estimate-resume-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}
.estimate-resume-desc {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  color: var(--ink-muted);
}
.estimate-resume-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.estimate-resume-row input {
  flex: 1 1 200px;
  min-width: 0;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.estimate-resume-row .btn {
  flex: 0 0 auto;
  min-width: 140px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.estimate-resume-row .btn:hover { background: var(--accent-hover); }
.estimate-resume-box .error-msg {
  margin-top: 12px;
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--bad);
}

/* モーダル */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(120, 140, 160, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal-backdrop.hidden { display: none; }
.modal-card {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 8px 32px rgba(0, 111, 185, 0.15);
}
.modal-header {
  background: var(--accent);
  color: #fff;
  padding: 16px 18px;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: #fff;
}
.modal-body {
  padding: 18px;
  overflow: auto;
  flex: 1;
}
.modal-field { margin-bottom: 12px; }
.modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}
.modal-field input,
.modal-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.modal-field textarea { min-height: 88px; resize: vertical; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.modal-error {
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--bad);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  border-radius: 8px;
}
.modal-error.hidden { display: none !important; }

/* 予約フォーム */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.summary-box dl { display: grid; gap: 8px; }
.summary-box dt { font-weight: 700; color: var(--accent); font-size: 12px; }
.summary-box dd { margin: 0; }
.price-highlight {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 4px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }
.estimate-fields {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--bg-soft);
}
.estimate-fields.hidden { display: none; }

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-input);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.notice.bad {
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad);
}
.notice.info,
.notice.estimate-resume {
  background: var(--accent-soft);
  border: 1px solid var(--accent-light);
  color: var(--accent);
}
.notice.warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}
.notice.ok {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: var(--ok);
}
.notice a { color: var(--accent); font-weight: 700; }

.sms-box {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg-soft);
}
.sms-status { font-size: 14px; margin-top: 10px; line-height: 1.6; padding: 8px 0; }
.sms-status.ok {
  color: var(--ok);
  font-weight: 700;
  padding: 10px 12px;
  background: #ecfdf5;
  border-radius: 8px;
  border: 1px solid #86efac;
}
.sms-status.warn {
  color: var(--warn-text);
  padding: 10px 12px;
  background: var(--warn-bg);
  border-radius: 8px;
  border: 1px solid var(--warn-border);
}
.sms-status.bad {
  color: var(--bad);
  padding: 10px 12px;
  background: var(--bad-bg);
  border-radius: 8px;
  border: 1px solid var(--bad-border);
}
.code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.btn[disabled] {
  background: #cbd5e1 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 1;
}

.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad);
  font-size: 14px;
}
.form-error.hidden { display: none !important; }

.completion-card {
  text-align: center;
  padding: 8px 0 4px;
}
.completion-card h2 {
  color: var(--accent);
  font-weight: 900;
  border: none;
  padding: 0;
  margin-bottom: 12px;
}
.completion-card .res-id {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--ink-muted);
  margin-top: 8px;
}
.completion-card .btn-ghost {
  display: inline-flex;
  width: auto;
  min-width: 200px;
}

.payment-disabled { opacity: 0.45; pointer-events: none; }
.phase-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}
.field-error { color: var(--bad); font-size: 12px; margin-top: 6px; }

#reserveForm .actions { display: grid; gap: 10px; }
#reserveForm .btn { width: 100%; }
#reserveForm .btn-primary.btn-arrow::after { content: '›'; font-size: 18px; }

@media (max-width: 640px) {
  html { touch-action: manipulation; }
  input, select, textarea { font-size: 16px; }
  .trust-row { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .estimate-resume-row { flex-direction: column; }
  .estimate-resume-row .btn { width: 100%; }
  .modal-actions .btn { width: 100%; flex: 1 1 100%; }
  .actions .btn { width: 100%; }
  .panel > .actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: linear-gradient(transparent, var(--paper) 12%);
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    margin-top: 16px;
  }
  .diagnosis-widget-body .panel > .actions {
    position: static;
    background: none;
    box-shadow: none;
  }
  .multi-choice-grid label.choice-btn {
    min-height: 52px;
    padding: 14px 16px;
  }
  .option-list label.option-item {
    min-height: 48px;
    touch-action: manipulation;
  }
}

/* 訪問先住所確認・地図（電話受付確認と同仕様） */
.address-preview-box {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg-soft);
}
.address-preview-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.address-preview-text {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--ink);
  white-space: pre-wrap;
}
.visit-choice-row {
  flex-direction: column;
  align-items: stretch;
}
.visit-choice-row .radio-pill {
  width: 100%;
}
.visit-address-fields.hidden,
.visit-map-section.hidden {
  display: none !important;
}
.map-box {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: #f3f4f6;
}
.map-box [id$="LocationMap"],
.map-box [id$="LocationMapAdjust"] {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
.map-loading,
.map-unavailable {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-panel);
  background: #f9fafb;
  border: 1px solid var(--line);
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}
.map-unavailable.hidden,
.map-loading.hidden,
.map-interactive.hidden {
  display: none !important;
}
.map-question {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}
.map-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.map-choice-btn {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px 12px;
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  min-height: 56px;
}
.map-choice-btn.primary {
  background: var(--ink);
  color: #fff;
}
.map-choice-btn.selected {
  box-shadow: 0 0 0 3px rgba(0, 111, 185, 0.25);
}
.map-adjust-panel {
  display: none;
  margin-top: 12px;
}
.map-adjust-panel.open {
  display: block;
}
.map-adjust-lead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}
.map-verified-ok {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-panel);
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.map-verified-ok.show {
  display: block;
}
.map-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-panel);
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad);
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.map-error.show {
  display: block;
}
