:root {
  --ink: #202124;
  --muted: #60646c;
  --line: #d8dce3;
  --panel: #ffffff;
  --wash: #f3f6f7;
  --yellow: #ffd900;
  --yellow-strong: #efc600;
  --blue: #7ed8f3;
  --blue-strong: #2a8fb5;
  --red: #df3e32;
  --green: #22a06b;
  --gray: #e9edf2;
  --shadow: 0 14px 34px rgba(32, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(90deg, #f6e6c7 0 18px, #efd7ad 18px 36px);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.site-header,
.progress-panel,
.screen-frame {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue-strong);
  font-size: 15px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

.header-phone {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 18px;
  border: 3px solid #167694;
  border-radius: 8px;
  background: var(--blue);
  color: #083b4b;
  font-size: 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.phone-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--blue-strong);
  font-size: 14px;
}

.progress-panel {
  padding: 14px 18px 16px;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.progress-copy span {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.progress-copy strong {
  font-size: 20px;
  text-align: right;
}

.progress-track {
  height: 12px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width 180ms ease;
}

.screen-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 620px;
}

.screen-content {
  min-width: 0;
  padding: 22px;
}

.summary-panel {
  border-left: 1px solid var(--line);
  background: #f8fafb;
  padding: 20px;
}

.summary-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.summary-panel dl {
  margin: 0;
}

.summary-panel dt {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-panel dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.empty-summary {
  color: var(--muted);
  font-weight: 700;
}

.screen-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.screen-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

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

.choice-card,
.date-card,
.time-button,
.option-button {
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 0 rgba(32, 33, 36, 0.08);
}

.choice-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.choice-card.primary {
  border-color: var(--yellow-strong);
  background: var(--yellow);
}

.choice-card.phone {
  border-color: var(--blue-strong);
  background: var(--blue);
}

.choice-card strong,
.date-card strong,
.option-button strong {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

.choice-card span,
.date-card span,
.option-button span {
  display: block;
  margin-top: 12px;
  color: #33404a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.terminal-note {
  margin-top: 22px;
  padding: 16px;
  border: 2px solid #f0c4bf;
  border-radius: 8px;
  background: #fff5f3;
  color: #8a241c;
  font-size: 18px;
  font-weight: 800;
}

.date-list {
  display: grid;
  gap: 14px;
}

.date-card {
  width: 100%;
  min-height: 112px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #e8fff5;
  color: #096c48;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.warn {
  background: #fff5c2;
  color: #7a5b00;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.time-button {
  min-height: 86px;
  padding: 14px;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}

.time-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.time-button:disabled,
.date-card:disabled,
.option-button:disabled {
  color: #8a9099;
  cursor: not-allowed;
  background: #eef1f4;
  border-color: #d2d7df;
  box-shadow: none;
}

.time-button.selected,
.option-button.selected,
.date-card.selected {
  border-color: #111827;
  outline: 5px solid var(--yellow);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 18px;
  font-weight: 900;
}

.required {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.field input,
.field select {
  width: 100%;
  min-height: 58px;
  padding: 10px 13px;
  border: 2px solid #cdd3dc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-strong);
  outline: 4px solid rgba(126, 216, 243, 0.38);
}

.field-error {
  min-height: 22px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.question-box {
  display: grid;
  gap: 14px;
}

.option-button {
  width: 100%;
  min-height: 96px;
  padding: 18px 20px;
}

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

.confirm-card,
.phone-box,
.done-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.confirm-card h3,
.phone-box h3 {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font-size: 18px;
}

.confirm-card p,
.phone-box p {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.phone-number {
  margin: 10px 0 16px;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.call-button {
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  border: 3px solid var(--blue-strong);
  border-radius: 8px;
  background: var(--blue);
  color: #083b4b;
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
}

.phone-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.phone-list li {
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 19px;
  font-weight: 800;
}

.done-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.mascot-preview {
  position: relative;
  width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff6bf 0 38%, #f4c430 39% 100%);
  border: 4px solid #202124;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.08);
}

.mascot-preview::before,
.mascot-preview::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #202124;
}

.mascot-preview::before {
  left: 48px;
}

.mascot-preview::after {
  right: 48px;
}

.mascot-mouth {
  position: absolute;
  left: 50%;
  top: 88px;
  width: 52px;
  height: 26px;
  transform: translateX(-50%);
  border-bottom: 5px solid #202124;
  border-radius: 0 0 52px 52px;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.nav-button {
  min-height: 64px;
  min-width: 156px;
  padding: 0 22px;
  border: 3px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.nav-button.back {
  background: var(--gray);
  border-color: #c7ccd4;
}

.nav-button.next {
  background: var(--yellow);
  border-color: var(--yellow-strong);
}

.nav-button.phone {
  background: var(--blue);
  border-color: var(--blue-strong);
}

.nav-button:disabled {
  color: #8a9099;
  cursor: not-allowed;
  background: #eef1f4;
  border-color: #d2d7df;
}

.screen-status {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #fff5f3;
  color: #8a241c;
  font-size: 17px;
  font-weight: 900;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 12px, 720px);
    min-height: calc(100vh - 12px);
    margin: 6px auto;
    gap: 8px;
  }

  .site-header {
    min-height: auto;
    padding: 12px;
  }

  .header-phone {
    min-width: 92px;
    min-height: 48px;
    padding: 0 10px;
    font-size: 15px;
  }

  .phone-mark {
    display: none;
  }

  .progress-copy {
    display: block;
  }

  .progress-copy strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .screen-frame {
    display: block;
    min-height: 0;
  }

  .screen-content {
    padding: 16px;
  }

  .summary-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 14px 16px;
  }

  .summary-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .summary-panel dt {
    margin-top: 0;
  }

  .choice-grid,
  .form-grid,
  .confirm-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 162px;
  }

  .date-card {
    grid-template-columns: 1fr;
  }

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

  .done-card {
    grid-template-columns: 1fr;
  }

  .mascot-preview {
    margin: 0 auto;
  }
}

@media (max-width: 460px) {
  .site-header {
    align-items: flex-start;
  }

  .screen-title {
    font-size: 29px;
  }

  .screen-lead {
    font-size: 18px;
  }

  .summary-panel dl {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column-reverse;
  }

  .nav-button {
    width: 100%;
  }
}
