:root {
  color-scheme: light;
  --ink: #102044;
  --muted: #5c6782;
  --line: #dce6f7;
  --paper: #ffffff;
  --soft: #f6f9ff;
  --blue: #1552d4;
  --sky: #48b6ff;
  --orange: #ff7a00;
  --green: #1ea56b;
  --shadow: 0 18px 48px rgba(18, 40, 91, 0.16);
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 247, 255, 0.9), rgba(247, 250, 255, 0.92) 42%, #ffffff 100%),
    radial-gradient(circle at 16% 12%, rgba(72, 182, 255, 0.2), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(255, 122, 0, 0.12), transparent 30%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 1.8vw, 28px) clamp(8px, 3vw, 44px);
  background:
    radial-gradient(circle at 12% 16%, rgba(109, 217, 255, 0.7), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(157, 137, 255, 0.58), transparent 28%),
    radial-gradient(circle at 94% 78%, rgba(255, 122, 0, 0.26), transparent 24%),
    linear-gradient(110deg, #d8f6ff 0%, #5fb8ff 24%, #5975f2 56%, #b78dff 100%);
}

.hero-image {
  display: block;
  width: auto;
  max-width: min(100%, 1672px);
  max-height: min(940px, calc(100svh - 56px));
  height: auto;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 20px 56px rgba(19, 62, 148, 0.22);
}

.overview-content {
  display: grid;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.overview-copy {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 2;
}

.overview-copy p {
  margin: 0;
}

.page-overview .primary-action {
  justify-self: center;
  margin-top: 4px;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action {
  width: min(100%, 320px);
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0d79d9 52%, var(--orange));
  box-shadow: 0 16px 30px rgba(21, 82, 212, 0.26);
}

.secondary-action {
  padding: 0 26px;
  color: var(--blue);
  background: #eaf2ff;
}

.ghost-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.ghost-action:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 122, 0, 0.36);
  outline-offset: 3px;
}

.form-header {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 26px;
  gap: 22px;
}

.form-header .ghost-action {
  justify-self: start;
}

.form-layout {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 72px;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.reservation-form,
.summary-panel,
.complete-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.reservation-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
}

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

.field-label {
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd8ed;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
}

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

.fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.check-option,
.date-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #d7e2f4;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfdff;
}

.check-option + .check-option,
.date-option + .date-option {
  margin-top: 8px;
}

.check-option input,
.date-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.date-option span {
  display: grid;
  gap: 2px;
}

.date-option small {
  color: var(--muted);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-submit {
  width: 100%;
}

.summary-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.summary-panel h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-item {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #eef3fb;
  padding-bottom: 12px;
}

.summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-item dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-item dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.empty-value {
  color: #8a95ad;
}

.page-complete {
  min-height: 100vh;
  padding: 40px 20px;
}

.complete-card {
  width: min(760px, 100%);
  margin: 8vh auto 0;
  padding: clamp(28px, 6vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 122, 0, 0.13), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(72, 182, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.complete-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #ffffff 0 44%, transparent 45%),
    linear-gradient(135deg, transparent 0 52%, #ffffff 53% 62%, transparent 63%),
    linear-gradient(135deg, var(--green), #30c884);
  box-shadow: 0 12px 24px rgba(30, 165, 107, 0.24);
}

.complete-card h2 {
  margin-bottom: 16px;
}

.complete-card p {
  color: var(--muted);
  line-height: 1.9;
}

.complete-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.complete-mascot {
  width: min(100%, 190px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 26px rgba(21, 82, 212, 0.12));
}

.complete-message {
  min-width: 0;
}

.complete-message p {
  margin-bottom: 0;
}

.complete-summary {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.complete-summary:empty {
  display: none;
}

.error-message {
  border: 1px solid rgba(200, 44, 72, 0.36);
  border-radius: 8px;
  padding: 12px 14px;
  color: #9c1834;
  background: #fff3f5;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero {
    padding: 0;
  }

  .hero-image {
    width: 100%;
    max-width: none;
    max-height: none;
    box-shadow: none;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .overview-content,
  .form-header,
  .form-layout {
    width: min(100% - 28px, 1120px);
  }

  .overview-content {
    padding: 32px 0 52px;
  }

  .form-header {
    padding-top: 28px;
  }

  .reservation-form,
  .summary-panel,
  .complete-card {
    border-radius: 8px;
  }

  .primary-action {
    width: 100%;
  }
}

/* AI研修フォームの入力UIに寄せたステップ式フォーム */
.stepped-form {
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 4px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: #cfd8e7;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.step-num {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #c8d0dd;
  border-radius: 50%;
  color: #737d8c;
  background: #ffffff;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.step.is-current,
.step.is-complete {
  color: var(--blue);
}

.step.is-current .step-num,
.step.is-complete .step-num {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.guide {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
}

.bot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff5e9;
  box-shadow: 0 10px 18px rgba(255, 122, 0, 0.18);
}

.bubble {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(20, 35, 70, 0.12);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

.bubble::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #ffffff;
}

.field-list {
  display: grid;
  gap: 12px;
}

.field-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20, 35, 70, 0.07);
}

.field-card.is-active {
  border-color: #0d79d9;
  box-shadow:
    0 0 0 2px rgba(13, 121, 217, 0.12),
    0 7px 20px rgba(13, 121, 217, 0.12);
}

.field-card.is-done {
  background: #f1f4f8;
}

.field-card.is-locked {
  border-style: dashed;
  color: #9aa3af;
}

.field-top {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
}

.field-icon,
.row-icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.field-card.is-locked .field-icon {
  color: #9ca3af;
}

.field-card .field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 850;
}

.field-card.is-locked .field-label {
  color: #7e8794;
}

.required {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  color: #ff3f85;
  background: #ffe6f0;
  font-size: 12px;
  font-weight: 850;
}

.checkmark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.15);
}

.field-value {
  margin: 14px 0 0 44px;
  color: #555f6f;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.locked-input {
  min-height: 48px;
  margin: 14px 0 0 44px;
  display: flex;
  align-items: center;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  padding: 0 12px;
  color: #a8b0bb;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.text-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.text-input {
  min-height: 56px;
  border: 1.5px solid #bac4d3;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.textarea-input {
  min-height: 150px;
  padding-block: 14px;
}

.text-input:focus {
  border-color: #0d79d9;
  box-shadow: 0 0 0 3px rgba(13, 121, 217, 0.13);
}

.small-btn {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
}

.field-error {
  min-height: 20px;
  margin: 0;
  color: #d51b5d;
  font-size: 13px;
  font-weight: 700;
}

.choice-list,
.date-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-option,
.field-card .date-option {
  width: 100%;
  min-height: 56px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 750;
}

.choice-option {
  display: flex;
  align-items: flex-start;
}

.choice-option input {
  flex: 0 0 18px;
}

.choice-option:has(input:checked),
.field-card .date-option:hover {
  border-color: #0d79d9;
  background: #f8fbff;
}

.choice-save {
  width: 100%;
  margin-top: 10px;
}

.field-card .date-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #9ba7b8;
  border-radius: 50%;
}

.field-card .date-option:hover .radio-dot {
  border-color: #0d79d9;
}

.date-option-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.date-label {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.date-time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.confirm-area {
  margin-top: 2px;
}

.confirm-area.is-hidden {
  display: none;
}

.summary-panel {
  background: #ffffff;
}

.summary-list {
  gap: 0;
}

.summary-item {
  display: grid;
  grid-template-columns: 30px 112px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border-bottom: 0;
  border-top: 1px dashed #d7dde7;
  padding: 0;
}

.summary-item:first-child {
  border-top: 0;
}

.summary-item dt {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.summary-item dd {
  justify-self: end;
  color: var(--blue);
  font-weight: 850;
  text-align: right;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.summary-item dd.empty-value {
  color: #ff3f85;
}

.complete-summary .summary-item {
  grid-template-columns: 128px 1fr;
}

.complete-summary .summary-item dt {
  color: var(--muted);
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .text-form {
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: start;
  }

  .text-form .field-error {
    grid-column: 1 / -1;
  }

  .field-card .date-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .complete-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .complete-mascot {
    width: min(68vw, 190px);
  }

  .stepper {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
  }

  .summary-item {
    grid-template-columns: 28px 92px 1fr;
    font-size: 0.88rem;
  }

  .complete-summary .summary-item {
    grid-template-columns: 104px 1fr;
  }
}
