:root {
  color-scheme: light;
  --page: #f6f3e9;
  --surface: #fffefb;
  --orange: #bd6829;
  --orange-dark: #96501c;
  --orange-soft: #fff1dc;
  --ink: #30372f;
  --muted: #666d60;
  --line: #dedfd3;
  --green: #526947;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #3578a2; outline-offset: 4px; }
.page-shell { max-width: 1060px; margin: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 123px; padding: 21px 52px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; flex-shrink: 0; }
.brand small { font-size: 11px; letter-spacing: .015em; line-height: 1.6; color: var(--muted); }
/* Preserve the approved logo artwork, framing its presentation margins. */
.brand-logo-window { position: relative; display: block; width: 224px; aspect-ratio: 1380 / 360; overflow: hidden; }
.brand-logo-art { position: absolute; width: 111.304348%; height: auto; max-width: none; left: -6.521739%; top: -90.277778%; display: block; }
.area-badge { color: var(--green); background: #edf0e4; padding: 6px 13px; font-size: 12px; border-radius: 24px; white-space: nowrap; }
main { max-width: 940px; margin: auto; padding: 28px 32px 0; }
.progress { margin-bottom: 0; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.progress-meta > span:last-child { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.progress-current { margin-right: 8px; }
.progress-meta b { font-size: 16px; color: var(--ink); }
.progress-track { height: 5px; margin-top: 11px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.question { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 33px 0 26px; }
.question-copy { min-width: 0; }
.question-eyebrow { font-size: 13px; color: var(--green); margin: 0 0 5px; }
.question h1 { font-size: 26px; letter-spacing: .015em; line-height: 1.5; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.question-rest { display: inline-block; }
.question-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.advisor { width: 64px; height: 64px; flex-shrink: 0; }
.advisor svg { width: 100%; height: 100%; display: block; }
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.work-option { appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 7px 12px; min-height: 132px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.icon-box { display: block; width: 104px; height: 68px; max-width: 100%; }
.icon-box svg { display: block; width: 100%; height: 100%; }
.option-label { font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.option-check { position: absolute; top: 9px; right: 9px; width: 17px; height: 17px; border: 1px solid #aeb5a4; border-radius: 50%; background: var(--surface); line-height: 15px; font-size: 12px; font-weight: 700; text-align: center; }
.work-option[aria-pressed=true], .choice[aria-pressed=true] { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.work-option[aria-pressed=true] .option-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.work-option[aria-pressed=true] .option-check:after { content: "✓"; }
.selection-status { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 12px; color: var(--muted); margin: 17px 0 0; }
.selection-status strong { color: var(--green); white-space: nowrap; font-weight: 600; }
.navigation { display: flex; justify-content: flex-end; align-items: center; gap: 25px; margin: 19px 0 36px; }
.nav-button { border: 0; min-height: 54px; font-weight: 700; }
.nav-button.back { min-width: 76px; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; padding: 12px; }
.nav-button.next { display: flex; align-items: center; justify-content: center; gap: 26px; width: 320px; max-width: 100%; padding: 12px 24px; border-radius: var(--radius); background: var(--orange); color: #fff; font-size: 18px; }
.arrow { font-size: 20px; line-height: 1; font-weight: 400; }
.nav-button.next:disabled { background: #e1ddd1; color: #6c6b61; }
.nav-button.back:disabled { visibility: hidden; }
.choice-grid { max-width: 790px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; min-width: 0; min-height: 102px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.radio-dot { width: 18px; height: 18px; border: 1px solid #aeb5a4; border-radius: 50%; background: var(--surface); flex-shrink: 0; }
.choice[aria-pressed=true] .radio-dot { border: 5px solid var(--orange); }
.choice.illustrated-choice { min-height: 200px; padding: 23px 12px 18px; }
.type-illustration { display: block; width: 100%; max-width: 180px; line-height: 0; }
.type-illustration svg { width: 100%; height: auto; }
.illustrated-choice .radio-dot { position: absolute; top: 12px; right: 12px; }
.illustrated-choice .choice-label { word-break: keep-all; overflow-wrap: anywhere; }
.help-box { max-width: 790px; margin: 20px auto 0; padding: 14px 18px; background: #ecefe3; border-radius: 10px; color: var(--muted); font-size: 13px; }
.help-box.ready { background: transparent; padding: 7px 0 0; }
.help-copy { margin: 0; }
.help-copy strong { color: var(--green); }
.field-panel { max-width: 700px; padding: 26px 30px 10px; margin: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.field-row { margin-bottom: 24px; }
.field-row label, .field-label { display: block; margin: 0 0 10px; font-weight: 600; }
.required, .optional { display: inline-block; margin-left: 10px; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 400; vertical-align: middle; }
.required { color: var(--orange-dark); background: var(--orange-soft); }
.optional { color: var(--muted); background: #edf0e7; }
.field-row input, .field-row select, .field-row textarea { display: block; width: 100%; border: 1px solid #b8bfaf; border-radius: 9px; padding: 13px 14px; min-height: 50px; color: var(--ink); background: #fff; font-size: 16px; }
.field-row textarea { resize: vertical; min-height: 112px; }
.field-row input.short { max-width: 255px; }
.field-row .hint, .small-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
.zip-status { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.zip-status:empty { display: none; }
.zip-status.found { color: var(--green); font-weight: 600; }
.zip-status.error, .zip-status.not-found { color: #91531f; }
.zip-status.outside { color: #963c28; }
.zip-retry { min-height: 44px; margin-top: 8px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--orange-dark); background: var(--surface); }
.field-row select:disabled { opacity: 1; background: #f2f3e9; color: var(--muted); }
.fixed-prefecture { display: block; color: var(--green); background: #edf0e7; border-radius: 9px; padding: 12px 14px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-error { color: #a33627; margin: 8px 0 14px; font-size: 13px; line-height: 1.6; }
.field-error:empty { display: none; }
.area-excluded { background: #fff0e9; color: #963c28; padding: 16px; border-radius: 9px; line-height: 1.8; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 14px; font-size: 13px; }
.consent input { accent-color: var(--orange); width: 19px; height: 19px; margin: 3px 0 0; flex-shrink: 0; }
.consent a { color: var(--orange-dark); }
.review { max-width: 790px; margin: auto; }
.review-section { margin-bottom: 20px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.review-heading h2 { font-size: 17px; margin: 0; }
.edit-button { border: 0; padding: 10px 0 10px 8px; min-height: 44px; background: transparent; color: var(--orange-dark); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.review dl { margin: 0; }
.review-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid #eceee4; }
.review-row:last-child { border-bottom: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.review .tag { display: inline-block; padding: 3px 9px; margin: 2px 4px 2px 0; background: var(--orange-soft); font-size: 12px; border-radius: 6px; white-space: normal; }
.review-note { background: #ecefe3; padding: 16px 20px; border-radius: 10px; font-size: 12px; line-height: 1.8; }
.success { text-align: center; max-width: 700px; margin: 38px auto; background: var(--surface); padding: 32px; border: 1px solid var(--line); border-radius: 18px; }
.success-mark { width: 68px; height: 68px; line-height: 68px; border-radius: 50%; margin: 0 auto 20px; background: #edf0e4; color: var(--green); font-size: 34px; }
.success h1 { font-size: 25px; line-height: 1.5; margin: 0 0 20px; }
.success p { line-height: 1.9; }
.success .demo-message { background: #f2f3e9; padding: 18px; border-radius: 10px; margin: 24px 0; }
.secondary-button { display: inline-block; border: 1px solid #aeb5a4; border-radius: 10px; color: var(--ink); background: var(--surface); padding: 12px 22px; min-height: 48px; margin-top: 16px; }
/* The benefit follows the form actions; the photo keeps the family visible. */
.merit-a { display: grid; grid-template-columns: 1fr 1.2fr; align-items: stretch; margin: 0 0 36px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.merit-copy { align-self: center; padding: 25px 28px; }
.merit-eyebrow { display: block; color: var(--green); font-size: 12px; letter-spacing: .06em; }
.merit-a h2 { font-size: 27px; line-height: 1.5; margin: 7px 0 10px; letter-spacing: .01em; }
.merit-a h2 em { color: var(--orange-dark); font-style: normal; }
.merit-support { font-size: 13px; line-height: 1.8; margin: 0; }
.merit-photo { display: block; width: 100%; height: 100%; min-height: 254px; object-fit: cover; object-position: center 75%; }
.footer { border-top: 1px solid var(--line); padding: 25px 24px 30px; background: var(--surface); text-align: center; font-size: 12px; color: var(--muted); }
.footer p { margin: 0 0 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 14px; }
.footer-links a { text-decoration: none; padding: 5px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer small { font-size: 11px; }
.privacy-content { max-width: 780px; margin: 34px auto 45px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; line-height: 2; }
.privacy-content h1 { font-size: 26px; line-height: 1.5; margin-top: 0; }
.privacy-content h2 { font-size: 18px; margin-top: 30px; }
.privacy-content .secondary-button { text-decoration: none; }
.noscript { padding: 30px; text-align: center; }
@media (hover: hover) {
  .work-option:hover, .choice:hover { border-color: var(--orange); }
  .nav-button.next:not(:disabled):hover { background: var(--orange-dark); }
}
@media (max-width: 900px) and (min-width: 721px) {
  .header { padding-left: 32px; padding-right: 32px; }
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .merit-copy { padding: 22px; }
  .merit-a h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  .header { min-height: 107px; padding: 17px 20px 16px; }
  .brand small { font-size: 10px; letter-spacing: 0; }
  .brand-logo-window { width: 196px; }
  .header .area-badge { display: none; }
  main { padding: 19px 20px 0; }
  .progress-meta { font-size: 11px; gap: 10px; }
  .progress-meta b { font-size: 14px; }
  .progress-current { margin-right: 3px; }
  .progress-track { height: 4px; margin-top: 9px; }
  .question { margin: 24px 0 20px; gap: 10px; }
  .question-eyebrow { font-size: 11px; margin-bottom: 4px; }
  .question h1 { font-size: 21px; letter-spacing: -.015em; }
  .question-hint { font-size: 12px; margin-top: 6px; }
  .advisor { width: 45px; height: 45px; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .work-option { min-height: 103px; padding: 12px 5px 9px; gap: 5px; border-radius: 13px; }
  .icon-box { width: 83px; height: 53px; }
  .option-label { font-size: 12px; line-height: 1.45; }
  .option-check { width: 15px; height: 15px; top: 6px; right: 6px; line-height: 13px; font-size: 10px; }
  .selection-status { margin-top: 13px; gap: 10px; font-size: 11px; }
  .selection-status > span { max-width: 220px; }
  .navigation { margin: 16px 0 27px; gap: 13px; }
  .nav-button { min-height: 52px; }
  .nav-button.back { min-width: 63px; font-size: 13px; }
  .nav-button.next { flex: 1; width: auto; font-size: 16px; padding: 12px 14px; gap: 21px; }
  .choice-grid, .choice-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .choice { min-height: 100px; padding: 16px 8px; font-size: 14px; }
  .housing-types.choice-grid { grid-template-columns: 1fr; }
  .choice.illustrated-choice { min-height: 120px; flex-direction: row; justify-content: flex-start; gap: 13px; padding: 12px 27px 12px 13px; text-align: left; }
  .type-illustration { width: 120px; flex-shrink: 0; }
  .help-box { padding: 13px 14px; margin-top: 18px; font-size: 12px; }
  .help-box.ready { padding: 5px 0 0; }
  .field-panel { padding: 19px 16px 5px; border-radius: 14px; }
  .field-row { margin-bottom: 21px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .review-section { padding: 16px; }
  .review-heading h2 { font-size: 15px; }
  .review-row { grid-template-columns: 81px 1fr; gap: 12px; font-size: 13px; }
  .review .tag { font-size: 11px; }
  .success { padding: 24px 17px; margin: 25px 0; }
  .success h1 { font-size: 21px; }
  .success p { font-size: 13px; }
  .merit-a { display: block; border-radius: 14px; margin-bottom: 27px; }
  .merit-copy { padding: 16px 20px 12px; }
  .merit-eyebrow { font-size: 11px; letter-spacing: .025em; }
  .merit-a h2 { font-size: 22px; line-height: 1.4; margin: 5px 0 7px; }
  .merit-support { font-size: 12px; line-height: 1.7; }
  .merit-photo { height: auto; min-height: 0; aspect-ratio: 2.4; object-position: center 75%; }
  .footer { padding: 22px 18px; font-size: 11px; }
  .footer-links { gap: 22px; }
  .privacy-content { margin: 24px 16px 30px; padding: 23px 20px; font-size: 13px; }
  .privacy-content h1 { font-size: 22px; }
  .privacy-content h2 { font-size: 17px; }
}
@media (max-width: 360px) {
  .header { padding-left: 16px; padding-right: 16px; }
  .brand small { font-size: 9px; }
  main { padding-left: 14px; padding-right: 14px; }
  .question { gap: 8px; }
  .question h1 { font-size: 20px; }
  .advisor { width: 36px; height: 36px; }
  .work-grid { gap: 7px; }
  .work-option { padding-left: 3px; padding-right: 3px; }
  .option-label { font-size: 11px; }
  .type-illustration { width: 100px; }
  .merit-copy { padding-left: 16px; padding-right: 16px; }
  .merit-a h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
