﻿:root { color-scheme: light; --ink: #262a2e; --muted: #555d64; --line: #c6cbd0; --accent: #303b45; font-family: system-ui, -apple-system, "Yu Gothic", Meiryo, sans-serif; }
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #f4f5f6; color: var(--ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #1764ae; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prototype-notice { flex-shrink: 0; background: var(--accent); color: #fff; text-align: center; font-size: 11px; padding: 4px 8px; }
.site-header { flex-shrink: 0; width: min(100%, 640px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px; font-size: 12px; font-weight: 700; }
.text-button { border: 0; background: transparent; text-decoration: underline; color: var(--muted); padding: 4px; min-height: 28px; font-size: 11px; cursor: pointer; }
main { flex: 1; min-height: 0; width: min(100%, 640px); margin: 0 auto; padding: 4px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.hero { flex: 0 1 230px; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-content: center; gap: 8px 12px; padding: 4px 0; }
h1 { font-size: clamp(23px, 6vw, 34px); line-height: 1.35; margin: 0 0 6px; }
#hero-copy { font-size: 13px; margin: 0; }
.service-description { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }
.image-placeholder { min-height: 70px; display: grid; place-content: center; text-align: center; padding: 8px; background: #e9ecee; border: 1px dashed #a0a6ab; font-size: 12px; color: var(--muted); }
.form-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
h2 { font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.4; margin: 8px 0 14px; }
p { margin: 0 0 12px; }
.small { font-size: 12px; color: var(--muted); }
#progress-region { flex-shrink: 0; }
#progress-label { margin: 0 0 3px; font-size: 12px; }
progress { display: block; width: 100%; height: 5px; accent-color: var(--accent); margin-bottom: 6px; }
#lead-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.step { flex: 1; min-height: 0; }
.step[data-step="0"] h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
fieldset { margin: 10px 0 14px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: 7px; font-size: 14px; }
.required { font-size: 10px; color: #51575d; border: 1px solid #aeb5bb; padding: 0 4px; margin-left: 4px; font-weight: 400; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.choices label { display: flex; align-items: center; gap: 6px; padding: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-size: 13px; }
.choices label:has(input:checked) { background: #edf0f2; border-color: var(--accent); }
.choices label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.address-confirm { width: 100%; margin: 8px 0 12px; }
.address-options .dialog-actions { margin-bottom: 12px; }
input[type="radio"], input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.field { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.field input, .field select { display: block; width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid #91999f; border-radius: 5px; background: #fff; color: var(--ink); margin-top: 4px; font-weight: 400; font-size: 16px; }
[aria-invalid="true"] { outline: 2px solid #a32424; outline-offset: 1px; }
.field-error { display: none; }
.errors { flex-shrink: 0; border: 1px solid #a32424; padding: 7px 10px; background: #fff5f5; color: #8a2020; margin: 6px 0; font-size: 12px; }
.errors ul { margin: 3px 0 0; padding-left: 18px; }
.errors a { color: inherit; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--accent); border-radius: 6px; padding: 8px 12px; cursor: pointer; font-weight: 700; line-height: 1.4; text-align: center; font-size: 14px; }
.button.primary { background: var(--accent); color: #fff; }
.button.secondary { background: #fff; color: var(--accent); }
.button:disabled { opacity: .55; cursor: default; }
.form-actions { display: flex; flex-shrink: 0; gap: 10px; padding-top: 8px; margin-top: auto; background: #fff; }
.form-actions .primary { flex: 1; }
.review-buttons, .dialog-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.review-buttons > *, .dialog-actions > * { flex: 1; }
.consent-summary { padding: 12px; background: #f2f4f5; font-size: 13px; }
.consent-summary p:last-child { margin: 0; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 10px; font-size: 14px; cursor: pointer; }
.consent-label input { margin-top: 2px; }
footer { flex-shrink: 0; padding: 0 8px 5px; padding-bottom: max(5px, env(safe-area-inset-bottom)); color: var(--muted); text-align: center; font-size: 10px; }
dialog { width: min(calc(100% - 24px), 560px); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); overflow: hidden; }
dialog::backdrop { background: #0008; }
dl { margin: 0 0 20px; }
.review-row { border-bottom: 1px solid #e1e4e7; padding: 9px 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 2px 0 0; white-space: pre-wrap; }
.consent-box { min-height: 150px; font-size: 15px; }
.dialog-actions { margin: 0; }
.dev-panel > .button { width: 100%; margin-bottom: 12px; }
body[data-stage="later"] .hero, body[data-stage="complete"] .hero { display: none; }
body[data-has-errors="true"] .hero { display: none; }
@media (min-height: 900px) { main { padding-bottom: 16px; } .form-card { flex-grow: 0; flex-basis: 570px; } }
@media (max-height: 700px) {
  main { gap: 6px; } .hero { flex-basis: 140px; } h1 { font-size: 24px; } .image-placeholder { min-height: 60px; }
  .form-card { padding: 10px 14px; } h3 { font-size: 18px; margin: 6px 0 10px; } fieldset { margin: 6px 0 10px; }
  .choices label { min-height: 44px; padding: 6px 7px; } .choices { gap: 6px; } legend { margin-bottom: 5px; }
  .field { margin-bottom: 8px; } .small { font-size: 11px; margin-bottom: 7px; } .button { min-height: 44px; }
  .consent-summary { padding: 10px; font-size: 12px; } .consent-label { font-size: 13px; margin: 10px 0 8px; }
}
@media (max-height: 590px) {
  .hero { flex-basis: 124px; flex-shrink: 0; } h1 { font-size: 20px; } #hero-copy { font-size: 11px; } .service-description { font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr) 76px; gap: 5px 8px; } .prototype-notice { padding: 2px 6px; font-size: 10px; }
  .site-header { padding-top: 2px; padding-bottom: 2px; } .form-card { padding: 8px 12px; }
  .choices label { font-size: 12px; } .errors { padding: 4px 7px; } .errors strong { display: none; }
  .consent-summary p { margin-bottom: 7px; }
  .choices { gap: 4px; } fieldset { margin: 4px 0 6px; } .form-actions { padding-top: 6px; }
  .step[data-step="3"] .field { margin-bottom: 4px; } .step[data-step="3"] h3 { margin-bottom: 6px; }
  .step[data-step="5"] .field { margin-bottom: 4px; }
  .step[data-step="5"] h3 { margin-bottom: 6px; }
  .step[data-step="5"] .review-buttons { gap: 6px; margin: 8px 0; }
  .step[data-step="5"] .review-buttons .button { min-height: 32px; padding: 4px 8px; font-size: 12px; }
  .step[data-step="5"] .consent-summary { font-size: 11px; padding: 6px; }
  .step[data-step="5"] .consent-label { font-size: 12px; margin: 6px 0 4px; }
}

/* Reference direction: warm coral and pale pink; original artwork comes from ChatGPT. */
:root { --ink: #413d40; --muted: #6d666c; --line: #edc4ca; --accent: #ce4056; }
body { background: #fff3f3; }
.prototype-notice { background: #8d626a; }
.site-header { background: #fff; padding-top: 8px; padding-bottom: 8px; }
.brand-name { color: #51424a; font-size: 19px; letter-spacing: .015em; font-weight: 800; }
.brand-name::before { content: ""; display: inline-block; width: 12px; height: 14px; border: 2px solid #e97483; border-radius: 3px 3px 0 0; margin-right: 7px; vertical-align: -1px; }
main { gap: 10px; padding-top: 8px; padding-bottom: 6px; }
.hero { flex-basis: 184px; grid-template-columns: minmax(0, 1fr) 102px; gap: 8px 12px; padding: 8px 0; }
.hero-kicker { font-size: 12px; margin: 0 0 5px; color: #9f4b5b; font-weight: 700; }
.hero h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 0; }
.hero .image-placeholder { grid-column: 2; grid-row: 1 / 3; border-color: #e6aeb8; border-style: solid; border-radius: 50% 50% 12px 12px; background: #ffe2e6; color: #8d626a; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 5px; align-content: start; }
.hero-topics span { border: 1px solid #eea6b1; border-radius: 4px; color: #aa4256; background: #fff; padding: 3px 6px; font-size: 11px; font-weight: 700; }
.service-description { font-size: 11px; }
.form-card { border-color: #f0c1c9; box-shadow: 0 3px 12px #bd6f7b0a; background: #fffafa; }
.form-actions { background: #fffafa; }
.choices label { background: #fff; border-color: #efb1bc; border-radius: 5px; }
.choices label:has(input:checked) { background: #ffe9ed; border-color: #d94d65; }
.button.primary { box-shadow: 0 3px 0 #ab3044; }
.consent-summary { background: #fff0f2; }
.back-link { align-self: center; min-width: 52px; min-height: 44px; border: 0; border-radius: 0; background: transparent; color: #797178; padding: 10px 6px; font-size: 12px; font-weight: 400; cursor: pointer; }
.back-link:hover { color: #514a50; text-decoration: underline; }
.back-link:disabled { opacity: .55; cursor: wait; }
.jobs-peek { flex-shrink: 0; height: 78px; min-height: 0; overflow: hidden; padding: 0 8px; }
.jobs-peek-heading { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 7px; color: #71646a; font-size: 12px; }
.jobs-peek-heading > small { font-size: 10px; color: #797178; }
.jobs-peek-heading::before, .jobs-peek-heading::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: #e68594; }
.jobs-preview-crop { height: 56px; overflow: hidden; mask-image: linear-gradient(#000 65%, transparent); }
.jobs-preview-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.job-preview { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding: 7px; border: 1px solid #efd9dd; border-radius: 6px; background: #fff; min-height: 100px; }
.job-preview b { display: block; font-size: 11px; font-weight: 600; }
.job-preview p { font-size: 10px; color: #8e858a; margin-top: 6px; }
.job-picture { min-height: 65px; border-radius: 4px; display: grid; place-content: center; background: linear-gradient(145deg, #e4efeb, #c6ddd5); }
.job-picture::after { content: "施設写真"; font-size: 10px; color: #60756c; }
.job-picture.alternative { background: linear-gradient(145deg, #eee8dd, #dbd0bc); }
.job-example .job-picture { height: 100px; }
.job-example h3 { font-size: 18px; }
#complete > .button { display: flex; width: 100%; margin: 18px 0 8px; }
body[data-stage="complete"] .jobs-peek, body[data-has-errors="true"] .jobs-peek { display: none; }
@media (min-height: 900px) { .form-card { flex-grow: 1; flex-basis: auto; } }
@media (max-height: 700px) {
  .hero { flex-basis: 148px; } .hero h1 { font-size: 25px; } .hero-kicker { font-size: 11px; }
  .hero-topics span { font-size: 10px; padding: 2px 5px; } .jobs-peek { height: 64px; }
  .brand-name { font-size: 17px; } main { gap: 7px; }
}
@media (max-height: 590px) {
  .site-header { padding-top: 3px; padding-bottom: 3px; } .brand-name { font-size: 16px; }
  .hero { flex-basis: 124px; grid-template-columns: minmax(0, 1fr) 76px; padding: 4px 0; gap: 5px 8px; }
  .hero h1 { font-size: 20px; } .hero-kicker { display: none; } .hero-topics { gap: 3px; }
  .hero-topics span { font-size: 10px; padding: 2px 3px; } .jobs-peek { height: 50px; }
  .jobs-peek-heading { font-size: 11px; margin-bottom: 4px; } .jobs-preview-crop { height: 32px; }
  .job-preview { grid-template-columns: 42px minmax(0, 1fr); padding: 5px; gap: 5px; }
}
