:root {
  --ink: #202729;
  --muted: #6f7778;
  --line: #d8dddf;
  --line-strong: #15191a;
  --paper: #ffffff;
  --soft: #f6f7f5;
  --accent: #183f46;
  --accent-2: #7aa7a8;
  --danger: #b42318;
  --shadow: 0 22px 70px rgba(23, 34, 37, 0.12);
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(122, 167, 168, 0.16), transparent 28vw),
    radial-gradient(circle at 78% 12%, rgba(226, 211, 171, 0.22), transparent 24vw),
    linear-gradient(180deg, #fff 0%, #fbfbf8 46%, #f7f8f6 100%);
  overflow: hidden;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.progress-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 6px;
  background: #d8dcda;
}

.progress-shell span {
  display: block;
  width: 0;
  height: 100%;
  background: #050606;
  border-radius: 0 999px 999px 0;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-header {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(32, 39, 41, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(172px, 20vw, 240px);
  height: 68px;
  background: #fff;
  overflow: hidden;
}

.flow-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.flow-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(32, 39, 41, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.flow-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.flow-main,
.flow-form {
  min-height: 100vh;
}

.step {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 112px clamp(20px, 7vw, 96px) 70px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 360ms ease,
    visibility 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.intro-step {
  grid-template-columns: minmax(280px, 540px) minmax(280px, 520px);
  gap: clamp(28px, 5vw, 70px);
}

.intro-card {
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  border: 1px solid rgba(32, 39, 41, 0.14);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-band {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 12px 22px;
  color: #fff;
  background: #050606;
  font-weight: 900;
}

.intro-band img {
  width: 160px;
  max-height: 42px;
  object-fit: contain;
  background: #fff;
}

.intro-band span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.intro-stage {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #e4eeed, #fffdf5 45%, #d7e8eb);
}

.intro-stage::before {
  content: "";
  position: absolute;
  inset: 34px 48px;
  border: 1px solid rgba(24, 63, 70, 0.14);
  background:
    linear-gradient(90deg, rgba(24, 63, 70, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(24, 63, 70, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: bottom;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 112px;
  height: 112px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, #183f46, #8ec1c2);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 22px 50px rgba(24, 63, 70, 0.26);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 29px;
  border-radius: 50%;
  background: #fff;
}

.screen-card {
  position: absolute;
  width: 140px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(24, 63, 70, 0.16);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.card-a {
  left: 9%;
  bottom: 17%;
}

.card-b {
  right: 10%;
  top: 18%;
  width: 118px;
  height: 126px;
}

.card-c {
  right: 18%;
  bottom: 14%;
  height: 78px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #fff;
  background: #050606;
  transform: translate(-50%, -50%);
  font-size: 25px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.intro-copy,
.question-wrap,
.thanks-wrap {
  width: min(100%, 760px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.intro-copy h1,
.thanks-wrap h2,
.confirm-wrap h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.32;
  font-weight: 900;
}

.intro-copy p:not(.eyebrow),
.thanks-wrap p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 700;
}

.question-label {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 0;
  color: #353b3d;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.45;
  font-weight: 900;
}

.question-number {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  color: #fff;
  background: #050606;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  flex: 0 0 auto;
}

.hint {
  margin: 12px 0 34px 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 3px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(32, 39, 41, 0.28);
}

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

.phone-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 14px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d81348;
  background: #fff;
  font-weight: 900;
}

.subhint {
  display: block;
  margin-top: 8px;
  color: #454b4d;
  font-size: 13px;
  font-weight: 800;
}

.ok-button,
.primary-action,
.secondary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  padding: 0 25px;
  border-radius: 12px;
  color: #fff;
  background: #050606;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.primary-action {
  min-height: 58px;
  padding: 0 30px;
}

.secondary-action,
.text-action {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.text-action {
  margin-left: 12px;
}

.error-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

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

.choice-wrap {
  width: min(100%, 980px);
  padding-top: 28px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 210px;
  padding: 12px 12px 16px;
  border: 1px solid rgba(32, 39, 41, 0.11);
  border-radius: 12px;
  background: #f0f1ef;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover,
.choice-card:has(input:checked) {
  border-color: #050606;
  box-shadow: 0 16px 34px rgba(32, 39, 41, 0.14);
  transform: translateY(-3px);
}

.choice-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.choice-visual {
  display: block;
  min-height: 116px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #c5d9dc, #fff);
}

.choice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  border: 1px solid #c7ccca;
  border-radius: 7px;
  color: #15191a;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.theme-diagnosis .choice-visual {
  background:
    radial-gradient(circle at 30% 28%, #fff 0 10px, transparent 11px),
    linear-gradient(135deg, #dbe9ea, #7aa7a8);
}

.theme-monitor .choice-visual {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(135deg, #f1d99d, #183f46);
  background-size: 18px 18px, auto;
}

.theme-meo .choice-visual {
  background:
    radial-gradient(circle at 50% 44%, #fff 0 17px, transparent 18px),
    linear-gradient(135deg, #183f46, #8ec1c2);
}

.theme-review .choice-visual {
  background:
    radial-gradient(circle at 28% 44%, #f8cf55 0 13px, transparent 14px),
    radial-gradient(circle at 50% 44%, #f8cf55 0 13px, transparent 14px),
    radial-gradient(circle at 72% 44%, #f8cf55 0 13px, transparent 14px),
    linear-gradient(135deg, #fff, #e8ece9);
}

.theme-photo .choice-visual {
  background:
    linear-gradient(135deg, transparent 42%, rgba(24, 63, 70, 0.5) 43% 58%, transparent 59%),
    linear-gradient(135deg, #f7eee0, #93b1af);
}

.theme-media .choice-visual {
  background:
    linear-gradient(#ffffff 0 18%, transparent 19%),
    repeating-linear-gradient(0deg, #183f46 0 8px, #d6e3df 8px 16px);
}

.theme-price .choice-visual {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.65) 49% 51%, transparent 52%),
    linear-gradient(135deg, #1b2528, #d7e4e4);
}

.theme-other .choice-visual {
  background:
    radial-gradient(circle at 26% 35%, #183f46 0 16px, transparent 17px),
    radial-gradient(circle at 52% 58%, #8ec1c2 0 18px, transparent 19px),
    radial-gradient(circle at 74% 36%, #e0c177 0 14px, transparent 15px),
    linear-gradient(135deg, #fff, #e9eeee);
}

.summary-card {
  display: grid;
  gap: 13px;
  margin: 24px 0;
  padding: 26px;
  border: 1px solid rgba(32, 39, 41, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.summary-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.summary-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(32, 39, 41, 0.08);
}

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

.summary-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.summary-row dd {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.consent-line input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #050606;
}

.consent-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks-wrap {
  text-align: center;
}

.thanks-wrap h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.thanks-wrap p {
  margin-left: auto;
  margin-right: auto;
}

.contact-meta {
  color: #5f6667 !important;
  font-weight: 900 !important;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-nav {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  gap: 8px;
}

.step-nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: #fff;
  background: #050606;
  font-size: 24px;
  line-height: 1;
}

.step-nav button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid #93c9ca;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .flow-header {
    padding: 12px 16px;
  }

  .flow-logo {
    width: 160px;
    height: 58px;
  }

  .flow-exit {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .step {
    position: relative;
    display: none;
    min-height: 100svh;
    padding: 96px 20px 92px;
  }

  .step.is-active {
    display: grid;
  }

  .intro-step {
    grid-template-columns: 1fr;
  }

  .intro-card {
    max-width: 100%;
  }

  .intro-stage {
    min-height: 230px;
  }

  .intro-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .question-label {
    gap: 12px;
  }

  .hint {
    margin-left: 35px;
    font-size: 15px;
  }

  input,
  textarea {
    font-size: 25px;
  }

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

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

  .choice-visual {
    min-height: 86px;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .step-nav {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .text-action {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
