:root {
  --bg: #f5f7f6;
  --card: #ffffff;
  --text: #17201d;
  --muted: #66716d;
  --line: #dfe5e2;
  --accent: #156f57;
  --accent-dark: #0f5845;
  --accent-soft: #e7f2ee;
  --danger: #b42318;
  --warning: #8a5b08;
  --warning-bg: #fff8e8;
  --success-bg: #edf8f3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 35, 29, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.65;
}

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

.header-label {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
}

.app-shell { padding: 26px 0 42px; }

.progress {
  display: flex;
  align-items: flex-start;
  margin: 0 2px 22px;
}

.progress-step {
  width: 42px;
  text-align: center;
  color: var(--muted);
  flex: 0 0 42px;
}

.progress-step span {
  width: 30px;
  height: 30px;
  margin: 0 auto 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.progress-step small {
  font-size: 10px;
  white-space: nowrap;
}

.progress-step.is-active,
.progress-step.is-done { color: var(--accent); }

.progress-step.is-active span,
.progress-step.is-done span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.progress-line {
  height: 1px;
  background: var(--line);
  flex: 1 1 auto;
  margin-top: 15px;
  min-width: 8px;
}

.step { display: none; }
.step.is-visible { display: block; }

.card, .hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 38px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1, h2 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(28px, 6vw, 42px); }
h2 { font-size: clamp(23px, 5vw, 31px); }

.lead, .subtext {
  color: var(--muted);
  margin: 14px 0 0;
}

.lead { font-size: 17px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.fact strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.notice, .status-box, .summary-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}

.notice { margin-bottom: 22px; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.status-box {
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.status-box.is-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

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

.field > span {
  font-weight: 700;
  font-size: 14px;
}

.field b {
  color: var(--accent);
  font-size: 11px;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd6d2;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}

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

input:focus, select:focus, textarea:focus, button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,111,87,.14);
  outline: none;
}

.radio-group {
  display: grid;
  gap: 9px;
}

.radio-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
}

.radio-row input { accent-color: var(--accent); }

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

.slot {
  display: grid;
  gap: 2px;
  text-align: left;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  color: var(--text);
}

.slot:hover { border-color: #9fb8ae; }

.slot.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slot:disabled {
  cursor: not-allowed;
  opacity: .55;
  background: #f2f4f3;
}

.slot-date { font-weight: 800; }
.slot-meta { font-size: 13px; color: var(--muted); }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

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

.button.primary:disabled {
  opacity: .55;
  cursor: wait;
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.actions .button { flex: 1; }
.full { width: 100%; }

.microcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.error {
  color: var(--danger);
  font-weight: 700;
  font-size: 13px;
  margin: 10px 0 0;
}

.summary-card {
  margin-top: 18px;
  display: grid;
  gap: 3px;
}

.summary-card span { color: var(--muted); font-size: 12px; }

.success-card { text-align: center; }

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--accent);
  font-weight: 900;
  font-size: 28px;
}

.confirmation {
  margin: 24px 0 18px;
  display: grid;
  gap: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.confirmation > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.confirmation > div:last-child { border-bottom: 0; }
.confirmation span { color: var(--muted); font-size: 13px; }
.confirmation strong { overflow-wrap: anywhere; }

.notice-text { color: var(--muted); font-size: 14px; }

.footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  padding: 26px 0 0;
}

.ack-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
  padding: 16px;
}

.ack-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.ack-list {
  margin: 0 0 14px;
  padding-left: 1.35em;
  color: var(--text);
}

.ack-list li + li { margin-top: 6px; }

.ack-check {
  margin-top: 10px;
  background: #fff;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f1f4f2;
  border-radius: 5px;
  padding: 1px 4px;
  font-size: .9em;
}

@media (max-width: 560px) {
  .container { width: min(100% - 20px, 760px); }
  .app-shell { padding-top: 18px; }
  .facts { grid-template-columns: 1fr; }
  .slot-list { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .progress-step { width: 34px; flex-basis: 34px; }
  .progress-step small { font-size: 9px; }
  .confirmation > div { grid-template-columns: 90px 1fr; }
}


.wide-card { width: min(980px, 100%); margin-left: auto; margin-right: auto; }

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.check-row a {
  color: var(--accent);
  font-weight: 700;
}

.survey-question {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.survey-question legend {
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.55;
}

.question-no {
  display: inline-block;
  min-width: 32px;
  color: var(--accent);
}

.calendar-list {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.calendar-month {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.calendar-month h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-head {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 0;
}

.calendar-cell {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 5px 2px;
}

.calendar-cell.is-available {
  border-color: #9fb8ae;
  background: #fbfdfc;
}

.calendar-cell.is-available:hover {
  border-color: var(--accent);
}

.calendar-cell.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-cell:disabled {
  cursor: default;
  opacity: .42;
  background: #f5f6f5;
}

.calendar-cell.is-blank {
  visibility: hidden;
}

.calendar-day {
  font-weight: 800;
  font-size: 14px;
}

.calendar-state {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.calendar-cell.is-full .calendar-state {
  color: var(--muted);
}

@media (max-width: 560px) {
  .calendar-month { padding: 10px; }
  .calendar-grid { gap: 3px; }
  .calendar-cell { min-height: 48px; border-radius: 7px; }
  .calendar-day { font-size: 13px; }
  .calendar-state { font-size: 9px; }
}
