:root {
  --green: #123f2a;
  --green-dark: #0d3020;
  --green-soft: #e9efe9;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #282d29;
  --muted: #6a716b;
  --line: #d8d4c8;
  --danger: #a33a32;
  --shadow: 0 16px 40px rgba(18, 63, 42, .08);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.repair-form-page {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.repair-form-page a { color: inherit; }

.site-header {
  background: var(--green);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-header__inner,
.form-hero__inner,
.form-wrap,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header__inner { min-height: 86px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; }
.brand__jp { font-size: 28px; font-weight: 700; letter-spacing: .14em; }
.brand__en { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .18em; opacity: .82; }

.form-hero {
  position: relative;
  overflow: hidden;
  color: var(--green);
  background:
    linear-gradient(90deg, rgba(255,253,248,.96), rgba(255,253,248,.80)),
    radial-gradient(circle at 88% 22%, rgba(18,63,42,.10), transparent 32%);
  border-bottom: 1px solid var(--line);
}
.form-hero__inner { padding: 64px 0 58px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
}
.form-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.25;
  letter-spacing: .08em;
}
.lead { max-width: 780px; margin: 22px 0 0; color: #48514b; font-size: 16px; }

.form-section { padding: 58px 0 80px; }
.form-wrap { max-width: 900px; }

.stepbar { display: flex; align-items: center; justify-content: center; margin: 0 auto 34px; }
.stepbar__item { display: inline-flex; align-items: center; gap: 8px; color: #8b918c; font-family: var(--sans); font-size: 13px; font-weight: 700; white-space: nowrap; }
.stepbar__item b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 999px; border: 1px solid #aeb4af; font-size: 13px; }
.stepbar__item.is-current { color: var(--green); }
.stepbar__item.is-current b { color: #fff; background: var(--green); border-color: var(--green); }
.stepbar__line { width: 86px; height: 1px; margin: 0 12px; background: #c9ccc8; }

.repair-form,
.confirm-card,
.complete-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.repair-form { padding: 44px 48px; }

.field { margin: 0 0 31px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-grid .field { margin-bottom: 31px; }
.field label,
.field legend { display: block; margin-bottom: 9px; color: var(--green-dark); font-weight: 700; letter-spacing: .03em; }
.required {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 2px;
  color: #fff;
  background: var(--green);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: .12em;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  border: 1px solid #c9c6bb;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input[type="text"], input[type="email"], input[type="tel"], select { height: 52px; padding: 0 14px; }
textarea { min-height: 190px; padding: 13px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,63,42,.10); }
textarea::placeholder { color: #979b97; }

.upload-box { padding: 22px; border: 1px dashed #aab2ab; background: #f8faf7; }
.upload-box input[type="file"] { width: 100%; margin-bottom: 10px; font-family: var(--sans); }
.upload-box p { margin: 6px 0 0; }
.hint, .muted { color: var(--muted); font-size: 13px; }
.kept-files { color: var(--green); font-size: 13px; font-weight: 700; }
.field-error { margin: 7px 0 0; color: var(--danger); font-size: 13px; font-weight: 700; }

.fieldset-reset { min-width: 0; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-width: 130px; justify-content: center; height: 48px; padding: 0 22px; border: 1px solid #bbc1bc; background: #fff; transition: .18s ease; }
.choice input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(18,63,42,.15); }

.consent-box { margin: 8px 0 0; padding: 20px 22px; border: 1px solid var(--line); background: #f8f5ed; }
.consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent input { width: 19px; height: 19px; margin-top: 6px; accent-color: var(--green); }
.consent-box .hint { margin: 7px 0 0 30px; }

.form-actions { display: flex; justify-content: center; margin-top: 38px; }
.form-actions--split { gap: 14px; }
.form-actions form { margin: 0; }
.btn {
  display: inline-flex;
  min-width: 220px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { color: #fff !important; background: var(--green); border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--secondary { color: var(--green); background: transparent; border-color: var(--green); }
.btn--secondary:hover { background: var(--green-soft); }

.alert { margin: 0 0 22px; padding: 14px 18px; border: 1px solid; font-size: 14px; }
.alert--error { color: #7b2822; background: #fff3f1; border-color: #ddb0aa; }

.confirm-card { padding: 42px 48px; }
.confirm-card h2, .complete-card h2 { margin: 0; color: var(--green); font-size: 28px; letter-spacing: .05em; }
.confirm-note { margin: 8px 0 30px; color: var(--muted); }
.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list > div { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 17px 18px; }
.confirm-list dt { color: var(--green); background: #f5f2e9; font-weight: 700; }
.prewrap { white-space: pre-wrap; }
.confirm-photos { margin-top: 32px; }
.confirm-photos h3 { margin: 0 0 14px; color: var(--green); font-size: 19px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { overflow: hidden; padding: 8px 10px; color: var(--muted); font-family: var(--sans); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.complete-card { padding: 58px 48px; text-align: center; }
.complete-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); font-family: var(--sans); font-size: 28px; }
.complete-card .eyebrow { margin-bottom: 7px; }
.complete-card p:not(.eyebrow) { max-width: 620px; margin: 18px auto 28px; color: #555d57; }

.site-footer { background: var(--green); color: #fff; }
.site-footer__inner { display: flex; min-height: 130px; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer__brand { font-size: 21px; font-weight: 700; letter-spacing: .12em; }
.site-footer__brand span, .copyright { font-family: var(--sans); font-size: 11px; letter-spacing: .11em; opacity: .76; }
.site-footer__brand span { margin-left: 10px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  .site-header__inner, .form-hero__inner, .form-wrap, .site-footer__inner { width: min(100% - 28px, 1120px); }
  .site-header__inner { min-height: 72px; }
  .brand__jp { font-size: 24px; }
  .form-hero__inner { padding: 42px 0 38px; }
  .form-section { padding: 38px 0 56px; }
  .repair-form, .confirm-card, .complete-card { padding: 28px 20px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .stepbar__line { width: 28px; margin: 0 7px; }
  .stepbar__item { gap: 5px; font-size: 11px; }
  .stepbar__item b { width: 27px; height: 27px; }
  .choice { flex: 1; }
  .choice span { width: 100%; min-width: 0; }
  .form-actions--split { flex-direction: column-reverse; }
  .form-actions--split form, .form-actions--split .btn, .form-actions .btn { width: 100%; }
  .btn { min-width: 0; }
  .confirm-list > div { grid-template-columns: 1fr; }
  .confirm-list dt { padding-bottom: 7px; border-bottom: 1px dashed #dedad0; }
  .confirm-list dd { padding-top: 10px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 430px) {
  .brand__en { display: none; }
  .lead { font-size: 14px; }
  .photo-grid { grid-template-columns: 1fr; }
}
