:root {
  --brand: #c9152c;
  --brand-dark: #9f1022;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #dfe5ec;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --success: #168552;
  --warning: #a76600;
  --shadow: 0 22px 60px rgba(31, 41, 55, .09);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 21, 44, .06), transparent 30rem),
    #f7f8fa;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(223, 229, 236, .9);
}

.header-inner {
  width: min(1080px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  font-size: 20px;
}

.home-link:hover { color: var(--brand); }

.store-name {
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.page-intro { text-align: center; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: .04em;
  line-height: 1.35;
}

.page-intro > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.stepper {
  width: min(570px, 100%);
  margin: 38px auto 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 18px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: #dce2e8;
  content: "";
}

.step.is-complete:not(:last-child)::after { background: #e9a4ad; }

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #dce2e8;
  border-radius: 50%;
  background: #f7f8fa;
  line-height: 1;
}

.step.is-active { color: var(--brand); }

.step.is-active .step-number {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(201, 21, 44, .08);
}

.step.is-complete { color: #64748b; }

.step.is-complete .step-number {
  border-color: #e9a4ad;
  background: #fff0f2;
  color: var(--brand);
}

.form-card {
  width: 100%;
  margin: 0;
  padding: 44px;
  border: 1px solid rgba(223, 229, 236, .95);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-heading {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.card-heading h2,
.result-card h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.5;
}

.card-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field-group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.field-group > label,
.field-group > legend {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #334155;
  font-weight: 700;
}

.required-chip {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff0f2;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 2px;
}

.optional-chip {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2f6;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 2px;
}

.sub-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color .18s ease, box-shadow .18s ease;
}

select { cursor: pointer; }

textarea {
  min-height: 180px;
  resize: vertical;
}

input[type="date"] {
  min-height: 54px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

input[type="radio"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

input::placeholder,
textarea::placeholder { color: #9ca3af; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 21, 44, .10);
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.holiday-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid #f1d8dc;
  border-radius: 12px;
  background: #fff7f8;
  color: #475569;
  font-size: 14px;
}

.holiday-notice strong { color: var(--brand-dark); font-size: 16px; }

.holiday-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.date-panel,
.storage-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}

.date-panel > legend,
.storage-panel > legend {
  float: left;
  width: 100%;
}

.date-panel > legend + *,
.storage-panel > legend + * { clear: both; }

.choice-grid {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.choice-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-option span {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.choice-option input:checked + span {
  border-color: var(--brand);
  background: #fff0f2;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-option input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
}

.storage-panel { margin-top: 2px; }
.storage-choices { max-width: 460px; }

.field-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  margin: 38px 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button:focus-visible,
.home-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 3px;
}

.button-primary {
  min-width: 240px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 21, 44, .2);
}

.button-primary:hover { background: var(--brand-dark); }

.button-secondary {
  min-width: 180px;
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.button-secondary:hover { background: var(--soft); }

.error_message {
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid #f2b8c0;
  border-radius: 10px;
  background: #fff4f5;
  color: #9f1022;
  font-size: 14px;
  font-weight: 700;
}

.review-card { padding-bottom: 38px; }

.review-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.review-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.review-row dt,
.review-row dd {
  margin: 0;
  padding: 18px 20px;
  overflow-wrap: anywhere;
}

.review-row dt {
  background: var(--soft);
  color: #475569;
  font-weight: 700;
}

.review-row dd { color: var(--ink); }

.review-value { display: block; }

.review-note {
  display: block;
  margin-top: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.result-card {
  padding: 48px 44px 42px;
  text-align: center;
}

.result-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8f1;
  color: var(--success);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.result-warning .result-icon {
  background: #fff5df;
  color: var(--warning);
}

.result-message {
  margin: 18px auto 26px;
  color: #475569;
  overflow-wrap: anywhere;
}

.contact-panel {
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--soft);
}

.contact-panel p { margin: 0; }

.contact-panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-panel-store {
  margin-top: 2px !important;
  font-size: 14px;
  font-weight: 700;
}

.contact-panel-phone {
  display: inline-block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.button-home { margin-top: 2px; }

.site-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer span { margin-left: 12px; }

@media (max-width: 720px) {
  .header-inner,
  .page-shell { width: min(100% - 28px, 860px); }

  .header-inner { min-height: 60px; }
  .store-name { max-width: 50%; }
  .page-shell { padding: 38px 0 48px; }
  .page-intro > p:last-child { font-size: 14px; }
  .stepper { margin: 30px auto 26px; }
  .form-card { padding: 28px 20px; border-radius: 16px; }
  .card-heading { margin-bottom: 26px; padding-bottom: 22px; }
  .address-grid,
  .date-grid,
  .field-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 0; }
  .review-row { grid-template-columns: 1fr; }
  .review-row dt { padding: 13px 15px 4px; background: #fff; color: var(--muted); font-size: 13px; }
  .review-row dd { padding: 0 15px 14px; }
  .form-actions { flex-direction: column-reverse; }
  .button { width: 100%; min-width: 0; }
  .result-message { text-align: left; }
}

@media (max-width: 520px) {
  .holiday-notice {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .holiday-notice strong { width: calc(100% - 40px); margin-left: 40px; margin-top: -8px; }
  .date-panel, .storage-panel { padding: 18px 15px; }
}

@media (max-width: 430px) {
  .home-link span:last-child { display: none; }
  .store-name { max-width: 70%; }
  .page-intro h1 { font-size: 27px; }
  .step-label { font-size: 12px; }
  .step:not(:last-child)::after {
    left: calc(50% + 21px);
    width: calc(100% - 42px);
  }
  .form-card { padding: 24px 16px; }
  input, select, textarea { font-size: 16px; }
  .site-footer span { display: block; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
