@charset "UTF-8";

:root {
  color-scheme: light;
  --ap-bg: #f7f7fb;
  --ap-surface: #ffffff;
  --ap-surface-2: #f4f5fb;
  --ap-line: rgba(42, 53, 91, 0.12);
  --ap-text: #182038;
  --ap-muted: #677089;
  --ap-primary: #3a4fd8;
  --ap-primary-strong: #131c43;
  --ap-accent: #73b4ff;
  --ap-accent-2: #91d5d1;
  --ap-shadow: 0 28px 60px rgba(24, 34, 72, 0.12);
  --ap-font: "Outfit", "Satoshi", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(115, 180, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 247, 251, 0.98)),
    var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font);
  line-height: 1.7;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
[hidden] { display: none !important; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.shell--narrow {
  width: min(760px, calc(100% - 40px));
}

.ap-app {
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgba(58, 79, 216, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(58, 79, 216, 0.04) 1px, transparent 1px),
    var(--ap-bg);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 104px 0 76px;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 22%, rgba(115, 180, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 86% 18%, rgba(145, 213, 209, 0.18), transparent 18rem);
  pointer-events: none;
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--ap-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(58, 79, 216, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ap-accent);
  box-shadow: 0 0 0 6px rgba(115, 180, 255, 0.16);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -.085em;
  line-height: .94;
}

.hero h1 span { display: block; }

.hero__accent {
  margin: 20px 0 0;
  color: var(--ap-primary-strong);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 42rem;
  margin: 22px 0 0;
  color: #2c385b;
  font-size: 1.08rem;
  font-weight: 700;
}

.hero__detail {
  max-width: 43rem;
  margin: 16px 0 0;
  color: var(--ap-muted);
  font-size: .96rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.16,1,.3,1), background .28s cubic-bezier(.16,1,.3,1), border-color .28s cubic-bezier(.16,1,.3,1);
}

.button:active { transform: translateY(1px) scale(.99); }
.button svg { width: 18px; height: 18px; }

.button--primary {
  background: var(--ap-primary);
  color: #fff;
  box-shadow: 0 18px 36px rgba(58, 79, 216, 0.2);
}

.button--primary:hover { background: #2e41b9; }

.button--large {
  min-height: 58px;
  padding: 0 26px;
}

.button--ghost,
.button--subtle {
  background: #fff;
  border-color: var(--ap-line);
}

.button--ghost {
  color: #223557;
}

.button--subtle {
  color: #6e5444;
  background: #fbf8f4;
  border-color: rgba(161, 127, 93, 0.18);
}

.button--ghost:hover,
.button--subtle:hover {
  border-color: rgba(58, 79, 216, 0.3);
  color: var(--ap-primary-strong);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ap-muted);
  font-size: .9rem;
  font-weight: 700;
}

.privacy-note svg { width: 18px; height: 18px; }

.hero-scene {
  position: relative;
  min-height: 540px;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(241,244,251,.92));
  border: 1px solid rgba(58, 79, 216, 0.12);
  box-shadow: var(--ap-shadow), inset 0 1px 0 rgba(255,255,255,.86);
  overflow: hidden;
}

.hero-scene__orbit {
  position: absolute;
  border: 1px solid rgba(58, 79, 216, 0.16);
  border-radius: 50%;
}

.hero-scene__orbit--one {
  inset: 58px 34px 82px;
  transform: rotate(-10deg);
}

.hero-scene__orbit--two {
  inset: 118px 92px 138px;
  border-style: dashed;
  transform: rotate(14deg);
}

.stylus {
  position: absolute;
  display: grid;
  align-content: end;
  gap: 8px;
  width: 178px;
  height: 248px;
  padding: 22px 22px 24px;
  border-radius: 40px;
  color: #fff;
  box-shadow: 0 24px 38px rgba(18, 46, 98, 0.18);
}

.stylus::before,
.stylus::after {
  position: absolute;
  content: "";
}

.stylus::before {
  top: 18px;
  left: 50%;
  width: 26px;
  height: 144px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,247,255,.38));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.stylus::after {
  top: 154px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 24px solid rgba(255,255,255,.98);
  transform: translateX(-50%);
}

.stylus b,
.stylus span {
  position: relative;
  z-index: 1;
}

.stylus b {
  font-size: 1.3rem;
  letter-spacing: .08em;
}

.stylus span {
  font-size: .78rem;
  letter-spacing: .12em;
  opacity: .88;
}

.stylus--pro {
  left: 54px;
  top: 136px;
  background: linear-gradient(180deg, #29366e, #3f57eb);
  transform: rotate(-12deg);
}

.stylus--usb {
  left: 202px;
  top: 70px;
  background: linear-gradient(180deg, #9bb3ff, #6b7df0);
  transform: rotate(10deg);
}

.stylus--legacy {
  right: 56px;
  top: 150px;
  background: linear-gradient(180deg, #6f6f85, #404458);
  transform: rotate(14deg);
}

.scene-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ap-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  border: 1px solid rgba(58, 79, 216, 0.16);
}

.scene-chip--compat { left: 28px; top: 28px; }
.scene-chip--draw { right: 24px; top: 92px; }
.scene-chip--budget { left: 216px; bottom: 44px; }

.scene-panel {
  position: absolute;
  right: 24px;
  bottom: 28px;
  width: 208px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(58, 79, 216, 0.14);
  box-shadow: 0 16px 30px rgba(27, 38, 83, 0.1);
}

.scene-panel p,
.scene-panel div {
  margin: 0;
}

.scene-panel p {
  margin-bottom: 12px;
  color: var(--ap-primary-strong);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.scene-panel div {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--ap-muted);
}

.scene-panel div + div { margin-top: 10px; }

.scene-panel b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58, 79, 216, .18), rgba(115, 180, 255, .82));
}

.how,
.comparison-guide {
  padding: 32px 0 72px;
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}

.how h2,
.model-comparison__heading h2,
.comparison-guide h2 {
  margin: 0;
  color: var(--ap-primary-strong);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.how h2 span { display: block; }

.steps {
  display: grid;
  gap: 16px;
}

.step,
.question-panel,
.insight-block,
.model-table-wrap,
.disclaimer,
.comparison-guide__inner {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(58,79,216,.12), rgba(115,180,255,.18));
  color: var(--ap-primary);
  font-weight: 900;
}

.step h3,
.step p,
.model-comparison__heading p,
.comparison-guide__lead,
.comparison-guide__content p,
.comparison-guide__content h3,
.disclaimer p {
  margin: 0;
}

.step h3 {
  color: var(--ap-primary-strong);
  font-size: 1.04rem;
}

.step p {
  margin-top: 8px;
  color: #43516b;
}

.how__action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.quiz,
.results {
  padding: 24px 0 72px;
}

.quiz-progress {
  margin-bottom: 18px;
}

.quiz-progress__labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ap-muted);
  font-size: .92rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(58,79,216,.1);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ap-primary), var(--ap-accent));
}

.question-panel {
  padding: 32px;
  border-radius: 34px;
}

.question-panel__kicker {
  margin: 0 0 10px;
  color: var(--ap-primary);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.question-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -.05em;
}

.answer-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.answer,
.back-button {
  border: 1px solid var(--ap-line);
  background: #fff;
  cursor: pointer;
}

.answer {
  width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  color: #283754;
  font-weight: 800;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.answer:hover {
  transform: translateY(-2px);
  border-color: rgba(58,79,216,.28);
  box-shadow: 0 14px 24px rgba(20, 35, 75, 0.08);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ap-muted);
  font-weight: 700;
}

.back-button svg { width: 18px; height: 18px; }

.result-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.score-wrap,
.result-copy,
.model-comparison__heading {
  padding: 28px;
  border-radius: 34px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow);
}

.score-wrap {
  display: grid;
  place-items: center;
}

.score-ring {
  width: min(240px, 100%);
  transform: rotate(-90deg);
}

.score-ring__track {
  stroke: rgba(58,79,216,.12);
  stroke-width: 18;
}

.score-ring__value {
  stroke: url(#scoreGradient);
  stroke: var(--ap-primary);
  stroke-width: 18;
  stroke-dasharray: 0 603;
}

.score-center {
  position: absolute;
  text-align: center;
}

.score-wrap { position: relative; }

.score-center span,
.score-center em {
  display: block;
  color: var(--ap-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.score-center strong {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin: 10px 0 6px;
  color: var(--ap-primary-strong);
  font-size: 3rem;
  line-height: 1;
}

.score-center small { font-size: 1.2rem; }

.result-copy__title {
  margin: 10px 0 0;
  color: var(--ap-primary-strong);
  font-size: 1.18rem;
  font-weight: 900;
}

.result-copy__description {
  margin: 10px 0 0;
  color: #43516b;
}

.model-result {
  margin-top: 22px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244,245,251,.92), rgba(255,255,255,.96));
  border: 1px solid rgba(58,79,216,.12);
}

.model-badge {
  display: inline-flex;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(58,79,216,.1);
  color: var(--ap-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.model-result h3 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.05em;
}

.model-result > p:last-of-type,
.model-result > p:nth-of-type(2) {
  color: #43516b;
}

.model-visual {
  position: relative;
  height: 132px;
  margin: 18px 0;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(237,240,249,.92));
  border: 1px solid rgba(58,79,216,.1);
  overflow: hidden;
}

.model-visual span,
.model-visual i,
.model-visual b,
.model-visual em {
  position: absolute;
  display: block;
}

.model-visual span,
.model-visual i {
  top: 18px;
  width: 18px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(209,216,235,.62));
}

.model-visual span { left: 34%; transform: rotate(-14deg); }
.model-visual i { left: 48%; transform: rotate(12deg); }

.model-visual b {
  bottom: 18px;
  left: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.model-visual em {
  right: 18px;
  bottom: 18px;
  color: var(--ap-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
}

.model-visual[data-model="pro"] b { background: linear-gradient(90deg, #2a3dbe, #4d6fff); }
.model-visual[data-model="pro"] em::before { content: "PRO / FIND MY"; }
.model-visual[data-model="usbc"] b { background: linear-gradient(90deg, #5e76eb, #8ab6ff); }
.model-visual[data-model="usbc"] em::before { content: "USB-C / NOTE"; }
.model-visual[data-model="second"] b { background: linear-gradient(90deg, #3f485e, #6d7892); }
.model-visual[data-model="second"] em::before { content: "2ND GEN / DRAW"; }
.model-visual[data-model="first"] b { background: linear-gradient(90deg, #7f5c47, #b88763); }
.model-visual[data-model="first"] em::before { content: "1ST GEN / BASIC"; }
.model-visual[data-model="wait"] b { background: linear-gradient(90deg, #7d8696, #abb4c4); }
.model-visual[data-model="wait"] em::before { content: "WAIT / CHECK"; }
.model-visual[data-model="wait"] span,
.model-visual[data-model="wait"] i { opacity: .6; }

.model-result ul,
.insight-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ap-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.low-score-guide {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(58,79,216,.06);
  color: #3f4c68;
}

.low-score-guide svg { width: 18px; height: 18px; margin-top: 3px; }
.low-score-guide p { margin: 0; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.insight-block {
  padding: 24px;
  border-radius: 28px;
}

.insight-block__heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.insight-block__heading p {
  margin: 0;
  color: var(--ap-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.insight-block__heading h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.insight-icon--positive {
  background: rgba(72, 191, 151, 0.12);
  color: #1d8f69;
}

.insight-icon--caution {
  background: rgba(197, 120, 75, 0.12);
  color: #b76b2b;
}

.insight-list li + li { margin-top: 10px; }

.model-comparison {
  margin-top: 28px;
}

.model-comparison__heading {
  margin-bottom: 18px;
}

.model-comparison__heading p:last-child {
  margin-top: 12px;
  color: #43516b;
}

.model-table-wrap {
  border-radius: 30px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ap-line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--ap-primary-strong);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .06em;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

.disclaimer {
  margin-top: 22px;
  padding: 24px;
  border-radius: 28px;
}

.disclaimer h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.disclaimer p + p { margin-top: 10px; }

.restart-area {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.comparison-guide__inner {
  padding: 34px;
  border-radius: 34px;
}

.comparison-guide__lead {
  margin-top: 16px;
  color: #41506c;
  font-size: 1.02rem;
}

.comparison-guide__content {
  margin-top: 26px;
  display: grid;
  gap: 24px;
}

.comparison-guide__content h3 {
  color: var(--ap-primary-strong);
  font-size: 1.18rem;
}

.comparison-guide__content p {
  margin-top: 8px;
  color: #43516b;
}

@media (max-width: 980px) {
  .hero__layout,
  .how__grid,
  .result-hero,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 86px 0 56px;
    min-height: auto;
  }

  .shell,
  .shell--narrow {
    width: min(100% - 28px, 1120px);
  }

  .hero__layout {
    gap: 34px;
  }

  .hero-scene {
    min-height: 420px;
    border-radius: 30px;
  }

  .stylus {
    width: 132px;
    height: 196px;
    padding: 18px 16px 18px;
    border-radius: 28px;
  }

  .stylus::before {
    top: 14px;
    height: 110px;
  }

  .stylus::after {
    top: 120px;
  }

  .stylus--pro { left: 18px; top: 154px; }
  .stylus--usb { left: 126px; top: 52px; }
  .stylus--legacy { right: 18px; top: 168px; }
  .scene-chip--budget { left: 118px; bottom: 18px; }
  .scene-panel {
    right: 16px;
    bottom: 16px;
    width: 170px;
    padding: 14px;
  }

  .question-panel,
  .score-wrap,
  .result-copy,
  .insight-block,
  .model-comparison__heading,
  .disclaimer,
  .comparison-guide__inner {
    padding: 22px;
    border-radius: 26px;
  }

  .step {
    grid-template-columns: 48px 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .result-links {
    flex-direction: column;
  }

  .result-links .button,
  .result-links .text-link {
    width: 100%;
  }
}
