:root {
  --sky: #7ec8e3;
  --sky-deep: #4aa3d1;
  --sun: #ffcf4d;
  --ink: #23405a;
  --ink-soft: #5b7286;
  --bg: #f2fbff;
  --card: #ffffff;
  --line: #d9ecf5;
  --error: #d94b4b;
  --ok: #2fa36b;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

/* hidden 属性は display 指定より優先させる */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui,
    sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eaf7ff 0%, #fff8e8 100%);
  min-height: 100vh;
  line-height: 1.7;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 20px 8px 28px;
}

.hero__sun {
  font-size: 56px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__title {
  margin: 8px 0 10px;
  font-size: clamp(26px, 6vw, 36px);
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ===== Card ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(74, 163, 209, 0.16);
  border: 1px solid var(--line);
}

/* ===== Select (区分選択) ===== */
.select__lead {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fbfeff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s;
}

.choice:hover {
  transform: translateY(-2px);
  border-color: var(--sky-deep);
  box-shadow: 0 8px 18px rgba(74, 163, 209, 0.18);
}

.choice__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.choice__desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.choice::after {
  content: "›";
  float: right;
  font-size: 24px;
  color: var(--sky-deep);
  line-height: 1;
}

/* ===== Back link ===== */
.backlink {
  display: inline-block;
  background: none;
  border: none;
  color: var(--sky-deep);
  font-family: inherit;
  font-size: 14px;
  padding: 0;
  margin-bottom: 18px;
  cursor: pointer;
}

.backlink:hover {
  text-decoration: underline;
}

/* ===== Hint ===== */
.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== Steps ===== */
.steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  padding-top: 34px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
}

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

.step.is-active::before {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky));
}

.field {
  margin-bottom: 22px;
}

.field label,
.field__label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.req {
  display: inline-block;
  background: var(--sun);
  color: #7a5a00;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfeff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(74, 163, 209, 0.18);
}

textarea {
  resize: vertical;
}

/* ===== Checkbox group ===== */
.checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500 !important;
  font-size: 15px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0 !important;
  background: #fbfeff;
  transition: background 0.15s, border-color 0.15s;
}

.check:has(input:checked) {
  background: #e6f5fc;
  border-color: var(--sky-deep);
}

.check input {
  accent-color: var(--sky-deep);
  width: 17px;
  height: 17px;
}

/* ===== Error / status ===== */
.error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 13px;
  min-height: 0;
}

.error:empty {
  margin: 0;
}

.form-status {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.form-status--error {
  color: var(--error);
}

/* ===== Submit ===== */
.submit {
  width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--sky-deep), var(--sky));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(74, 163, 209, 0.35);
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
}

.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(74, 163, 209, 0.4);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.submit--ghost {
  margin-top: 20px;
  background: #fff;
  color: var(--sky-deep);
  border: 1.5px solid var(--sky-deep);
  box-shadow: none;
}

/* ===== Confirm ===== */
.confirm__lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

.review {
  margin: 0 0 24px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.review dt {
  background: #f2fbff;
  padding: 10px 14px 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.review dd {
  margin: 0;
  padding: 2px 14px 12px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.review dd:last-child {
  border-bottom: none;
}

.confirm__actions {
  display: flex;
  gap: 12px;
}

.confirm__actions .submit {
  margin-top: 0;
}

.confirm__actions .submit--ghost {
  flex: 0 0 40%;
}

/* ===== Thanks ===== */
.thanks {
  text-align: center;
  padding: 12px 8px;
}

.thanks__icon {
  font-size: 52px;
}

.thanks h2 {
  margin: 8px 0 12px;
  font-size: 22px;
}

.thanks p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ===== Footer ===== */
.foot {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 13px;
}
