@font-face {
  font-family: Inter;
  src: url("assets/inter-a.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #100018;
  --muted: #565b66;
  --accent: #5653fe;
  --accent-soft: #eeeeff;
  --card: #f3f5f6;
  --line: #ececec;
  --disabled: #aba9ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Yu Gothic", "Yu Gothic UI", Meiryo, "Malgun Gothic", Sylfaen, sans-serif;
  font-synthesis: weight;
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

.phone {
  width: min(400px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 16px;
}

.header:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #eceff3;
}

.logo {
  width: 102px;
  height: 31px;
  display: block;
}

.back {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 8px;
  line-height: 0;
  color: var(--ink);
}

.step-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  flex: none;
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 0;
}

.bar {
  flex: 1;
  height: 4px;
  background: #f0f1f5;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}

.main {
  padding: 8px 16px 28px;
}

.hero-title {
  margin: 28px 0 8px;
  text-align: center;
  font-size: 28px;
  line-height: 40px;
  font-weight: 700;
}

.hero-sub, .q-sub {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.q-ask {
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.genders {
  display: grid;
  grid-template-columns: 148px 148px;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.gender {
  position: relative;
  width: 148px;
  height: 176px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.gender img {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 148px;
  height: 168px;
  object-fit: cover;
  object-position: center 12%;
  transform: translateX(-50%);
  pointer-events: none;
}

.gender span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: break-word;
}

.legal {
  margin: 48px 8px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.legal a { color: var(--accent); }

.address {
  margin: 8px 8px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.quote {
  margin: 28px 0 0;
  text-align: center;
  color: var(--accent);
  font-size: 26px;
  line-height: 34px;
  font-weight: 800;
}

.quote-sub {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.photo:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(transparent, #fff);
}

.q-title {
  margin: 24px 0 8px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.q-title.center, .q-sub.soft { text-align: center; }

.q-sub.soft {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 500;
}

.options { display: grid; gap: 12px; margin-top: 16px; }

.choice {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-align: left;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.choice span { flex: 1; }

.choice.center { justify-content: center; text-align: center; }

.choice img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.stage { position: relative; }

.float-person {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 168px;
  pointer-events: none;
  z-index: 2;
}

.primary {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.primary:disabled {
  background: var(--disabled);
  color: #ececec;
  cursor: not-allowed;
}

.teaser-art {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 16px;
}

.teaser-copy {
  margin: 8px 0 0;
  color: #3d4554;
  font-size: 16px;
  line-height: 24px;
}

.field {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: none;
  font-size: 16px;
}

.field:focus { border-color: var(--accent); }

.field.is-bad { border-color: #ff441f; }

.field-error {
  margin: 8px 0 0;
  color: #ff441f;
  font-size: 14px;
  line-height: 20px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

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

.meter {
  margin: 18px 0;
}

.meter-top, .meter-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.track {
  height: 8px;
  margin: 8px 0;
  border-radius: 99px;
  background: #eceef3;
  overflow: hidden;
}

.track > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.rows { display: grid; gap: 10px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
}

.row img { width: 28px; height: 28px; object-fit: contain; }

.row b { display: block; font-size: 15px; }
.row small { color: var(--muted); }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.col {
  border-radius: 16px;
  padding: 12px;
  background: #f7f8fb;
}

.col.good { background: var(--accent-soft); }

.col img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.col ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 18px;
}

.pitch-list { display: grid; gap: 14px; margin-top: 8px; }

.pitch-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 22px;
}

.pitch-item img { width: 36px; height: 36px; object-fit: contain; }

.plan {
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.plan.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan b {
  display: block;
  font-size: 18px;
}

.plan span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 0, 24, 0.45);
}

.dialog {
  width: min(340px, 100%);
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.dialog h2 { margin: 0 0 8px; font-size: 24px; }
.dialog p { margin: 0 0 8px; color: var(--muted); line-height: 22px; }

.overlay { z-index: 60; }

.lang-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(50% - 70px);
  padding: 6px 4px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.lang-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-mask {
  position: absolute;
  inset: 0;
  z-index: 15;
  border: 0;
  background: transparent;
}

.lang-pop {
  position: absolute;
  top: 58px;
  right: 8px;
  z-index: 16;
  width: min(240px, calc(100% - 16px));
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 6px 0;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 0, 24, 0.12);
}

.lang-pop button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.lang-pop button.is-on {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-pop button span { overflow-wrap: anywhere; }

.flag {
  width: 22px;
  height: 15px;
  flex: none;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 0, 24, 0.15);
}

.prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 24px;
}
