*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --canvas: #f8f5f3;
  --card: rgba(255, 255, 255, 0.95);
  --ink: #000000;
  --graphite: #636363;
  --slate: #959595;
  --fog: #e8e4e0;
  --pebble: #d9d9d9;
  --accent: #f3350c;
  --shadow: rgba(0, 0, 0, 0.07) 0px 0px 12px 0px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* ── Close button ── */
.form-card-wrapper {
  position: relative;
}

.close-btn {
  position: absolute;
  top: -40px;
  left: 0;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.close-btn:hover {
  opacity: 0.6;
}

/* ── Buttons ── */
.btn-primary {
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.75;
}

/* ── Title section ── */
.title-section {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 64px;
  overflow: hidden;
}

.title-content {
  position: relative;
  z-index: 2;
}

.main-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 0;
}

.main-title span {
  font-weight: 600;
  color: var(--ink);
}

.title-arrow {
  font-size: 52px;
  font-weight: 900;
  margin-top: 16px;
  display: block;
  color: var(--ink);
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
}

/* Scattered images — corners bigger, center smaller, no rounded corners */
.scatter-img {
  position: absolute;
  object-fit: cover;
  border-radius: 4px;
  z-index: 1;
}

/* 4 images — random-feeling positions, JS handles scroll animation */
.scatter-img:nth-child(1) { top: -6px;   left: 4px;    width: 78px;  height: 78px;  }
.scatter-img:nth-child(2) { top: 16px;   right: 6px;   width: 56px;  height: 56px;  }
.scatter-img:nth-child(3) { bottom: 12px; left: 6px;   width: 64px;  height: 64px;  }
.scatter-img:nth-child(4) { bottom: 6px; right: 4px;   width: 86px;  height: 86px;  }

/* ── Hero ── */
.hero-wrap {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48%;
  margin-bottom: -56px;
  background: var(--canvas);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-title {
  text-align: center;
}

.hero-title h1 {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -0.3px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Hero scatter images ── */
.scatter-hero {
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
  z-index: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* japan1 — 小 */
.scatter-hero:nth-child(1) {
  top: 2%;
  left: 34%;
  width: 58px; height: 58px;
}
/* japan2 — 中 */
.scatter-hero:nth-child(2) {
  top: 3%;
  right: 20%;
  width: 80px; height: 80px;
}
/* japan3 — 中 */
.scatter-hero:nth-child(3) {
  top: 17%;
  right: 3%;
  width: 76px; height: 76px;
}
/* japan4 — 大 */
.scatter-hero:nth-child(4) {
  top: 17%;
  left: 41%;
  width: 118px; height: 118px;
}
/* japan5 — 小 */
.scatter-hero:nth-child(5) {
  top: 32%;
  left: 26%;
  width: 58px; height: 58px;
}
/* japan6 — 小 */
.scatter-hero:nth-child(6) {
  top: 31%;
  right: 20%;
  width: 60px; height: 60px;
}
/* japan7 — 大 */
.scatter-hero:nth-child(7) {
  top: 15%;
  left: 6%;
  width: 110px; height: 110px;
}
/* japan8 — 中 */
.scatter-hero:nth-child(8) {
  top: 2%;
  left: 3%;
  width: 82px; height: 82px;
}

.hero-scroll-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  color: var(--ink);
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}

.hero-scroll-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.25);
}

/* ── Page wrapper ── */
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Gradation image ── */
.gradation-img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.gradation-blur {
  filter: blur(8px);
  transition: filter 0.6s ease;
}

.gradation-blur.unblurred {
  filter: blur(0px);
}

/* ── Step sections ── */
.step {
  padding: 28px 0;
}

.step-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.accent-dot {
  color: var(--accent);
}

.step-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.step-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.step-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.65;
  margin-bottom: 28px;
}

#gradation4 {
  margin-top: 40px;
}

.step-arrow {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.step-desc {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}

.step-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

.step-img-pair {
  display: flex;
  gap: 10px;
  padding: 0 28px;
}

.step-img-pair img {
  width: 50%;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 16px 0px;
}

.step-img-triple {
  display: flex;
  gap: 10px;
  padding: 0 28px;
}

.step-img-triple img {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 16px 0px;
}

.step-sample-btn {
  display: block;
  text-align: center;
  margin-top: 16px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.step-img-placeholder {
  width: 100%;
  height: 220px;
  background: var(--fog);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 13px;
}

/* ── Voices ── */
.voices {
  padding: 48px 0;
}

.voices-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.voices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  padding-top: 36px;
}

.voice-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  overflow: visible;
}

.quote-mark {
  position: absolute;
  top: -42px;
  left: 14px;
  font-size: 60px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: Georgia, serif;
  z-index: 1;
}

.voice-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ── CTA ── */
.cta {
  padding: 48px 0 72px;
  text-align: center;
}

.cta-heading {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.cta-arrow {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta .btn-primary {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

/* ── Step indicator ── */
.form-card-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}

.step-indicator-wrap {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.step-dot span {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

.step-dot.active {
  background: var(--ink);
}

.step-dot.active span {
  color: #fff;
}

.step-dot.done {
  background: #22c55e;
}

.step-dot.done span {
  color: #fff;
}

.step-connector {
  flex: 1;
  height: 1.5px;
  background: var(--pebble);
  margin-top: 16px;
  transition: background 0.3s;
}

.step-connector.active {
  background: #22c55e;
}

.step-label-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: color 0.3s;
}

.step-label-text.active {
  color: var(--ink);
}

/* ── Field error state ── */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--accent);
}

.field-error-msg {
  font-size: 12px;
  color: var(--accent);
  margin-top: -4px;
}

/* ── Check icon (in label) ── */
.check-icon {
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 4px;
}

.check-icon.visible {
  opacity: 1;
}

/* ── Multi-step form ── */
.form-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-step.hidden {
  display: none;
}

.step-nav {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}

.step-nav .btn-back {
  flex: 1;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

.step-nav .btn-primary {
  flex: 3;
  text-align: center;
  margin-top: 0;
  padding: 16px;
  font-size: 16px;
}

.btn-back {
  background: none;
  border: 1.5px solid var(--pebble);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Form ── */
.form-page {
  padding: 40px 0 72px;
}

.form-card-wrapper {
  margin-top: 60px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.form-heading {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 40px;
  text-align: center;
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #fff;
  border: 1.5px solid var(--pebble);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23959595' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink);
}

.form-submit {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  border-radius: 10px;
  margin-top: 8px;
  text-align: center;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
}

/* ── Country custom dropdown ── */
.country-select {
  position: relative;
}

.country-trigger {
  background: #fff;
  border: 1.5px solid var(--pebble);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
  user-select: none;
}

.country-trigger.open,
.country-trigger:focus {
  border-color: var(--ink);
  outline: none;
}

.country-trigger-text {
  color: var(--slate);
}

.country-trigger-text.selected {
  color: var(--ink);
}

.country-trigger svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.country-trigger.open svg {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--pebble);
  border-radius: 4px;
  z-index: 100;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.country-dropdown.open {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
}

.country-dropdown-search-wrap {
  padding: 8px 8px 4px;
}

.country-search {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #b0b0b0;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.country-search::placeholder {
  color: var(--slate);
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}

.country-list li {
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.12s;
}

.country-list li:hover {
  background: var(--canvas);
}

.country-list li.selected {
  font-weight: 600;
}

.country-list-empty {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--slate);
}

/* ── Pill buttons ── */
.pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--pebble);
  border-radius: 100px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pill-btn.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ── Checkboxes ── */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  user-select: none;
}

.checkbox-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--pebble);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}

/* ── Example ── */
.example-placeholder {
  background: var(--card);
  border-radius: 18px;
  padding: 80px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--slate);
  font-size: 14px;
}

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 18px 64px;
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.sticky-cta.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--fog);
  padding: 24px 20px;
  color: var(--slate);
  font-size: 13px;
  text-align: center;
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .main-title {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .title-section {
    min-height: 520px;
    padding: 100px 20px;
  }

  .scatter-img:nth-child(1) { top: 5%;    left: 2%;    width: 110px; height: 110px; }
  .scatter-img:nth-child(2) { top: 3%;    right: 4%;   width: 82px;  height: 82px;  }
  .scatter-img:nth-child(3) { bottom: 6%; left: 3%;    width: 96px;  height: 96px;  }
  .scatter-img:nth-child(4) { bottom: 4%; right: 2%;   width: 124px; height: 124px; }

  .page {
    max-width: 900px;
    padding: 0 48px;
  }

  .step { padding: 80px 0; }

  .step-number { font-size: 36px; }
  .step-heading { font-size: 42px; letter-spacing: -1.5px; }
  .step-body { font-size: 17px; }
  .step-img-placeholder { height: 320px; }

  .voices { padding: 80px 0; }
  .voices-heading { font-size: 42px; letter-spacing: -1.5px; }
  .voices-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 40px;
  }

  .cta { padding: 80px 0 100px; }
  .cta-heading { font-size: 42px; letter-spacing: -1.5px; }
  .cta .btn-primary { width: auto; padding: 14px 40px; font-size: 15px; }

  .form-page { padding: 80px 0 100px; }
  .form-heading { font-size: 42px; letter-spacing: -1.5px; }
  .form-card { padding: 44px; }

  footer { padding: 32px 48px; text-align: left; }
}
