/* 見積もり依頼フォーム */
.estimate { padding: 36px 0 80px; }
.estimate__intro h1 { font-size: 30px; line-height: 1.4; }
.estimate__intro .lead { color: var(--sub); margin-top: 6px; }
.estimate__grid { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 48px; margin-top: 28px; align-items: start; }
.steps, .done { grid-column: 1; grid-row: 1; }
.summary { grid-column: 2; grid-row: 1; position: sticky; top: 24px; border-top: 3px solid var(--brand); background: var(--bg-soft); padding: 18px 20px 20px; }
.summary__title { font-weight: 700; }
.summary__list { margin-top: 10px; }
.summary__list div { display: grid; grid-template-columns: 3.5em 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #c9d2d3; font-size: 14px; }
.summary__list dt { color: var(--sub); }
.summary__list dd { font-weight: 700; }
.summary__partner { margin-top: 14px; font-size: 13px; color: var(--sub); }
.summary__partner strong { color: var(--ink); }

.progress { margin-bottom: 20px; }
.progress-bar { height: 6px; background: #e3e8e9; border-radius: 3px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s; }
#progress-text { font-size: 13px; color: var(--sub); margin-top: 6px; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step.is-active { display: block; }
.step legend { font-size: 22px; font-weight: 700; line-height: 1.45; padding: 0; margin-bottom: 18px; outline: none; }
.step legend small { display: block; font-size: 14px; font-weight: 400; color: var(--sub); }
.choices { display: grid; gap: 10px; }
.choices-2col { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 16px 44px 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; font-size: 17px; line-height: 1.45; position: relative; box-shadow: 0 2px 0 #e3e8e9; }
.choice span::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #9aa6a9; border-top: 2px solid #9aa6a9; transform: translateY(-50%) rotate(45deg); }
.choice small { display: block; font-size: 13px; font-weight: 400; color: var(--sub); }
.choice:hover span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: 2px; }

.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.region-btn { font: inherit; font-weight: 700; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--ink); }
.region-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.towns:empty { display: none; }
.town-btn { font: inherit; font-weight: 700; padding: 14px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--ink); }
.town-btn:hover { border-color: var(--brand); }
.town-btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

.fields { display: grid; gap: 18px; }
.field { display: block; }
.field-label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.field-label em { font-style: normal; font-size: 12px; background: var(--cta); color: #fff; padding: 1px 6px; border-radius: 3px; }
.field-label em.optional { background: #8a979a; }
.field input { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1px solid #b9c3c5; border-radius: 6px; background: #fff; }
.field input:focus { outline: 3px solid rgba(15,91,94,.25); border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fff7f6; }
.field-hint { display: block; font-size: 13px; color: var(--sub); margin-top: 4px; }
.field-error { display: block; font-size: 14px; color: #c0392b; font-weight: 700; margin-top: 4px; }
.field-error:empty { display: none; }
.consent { font-size: 13px; color: var(--sub); margin-top: 20px; }
.submit { width: 100%; margin-top: 16px; }
.form-error { margin-top: 12px; color: #c0392b; font-weight: 700; }

.step-nav { margin-top: 20px; }
.back { font: inherit; background: none; border: 0; color: var(--sub); text-decoration: underline; cursor: pointer; padding: 8px 0; }

.done h2 { font-size: 26px; line-height: 1.45; color: var(--brand); }
.done p { margin-top: 14px; }
.done__back { margin-top: 28px; }

@media (max-width: 1023px) {
  .estimate { padding: 24px 0 56px; }
  .estimate__intro h1 { font-size: 24px; }
  .estimate__grid { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .summary { grid-column: 1; grid-row: 2; position: static; }
  .step legend { font-size: 20px; }
  .choices-2col { grid-template-columns: 1fr 1fr; }
  .choice span { font-size: 16px; padding: 14px 36px 14px 14px; }
}
@media (max-width: 380px) {
  .towns { grid-template-columns: repeat(2, 1fr); }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
