@charset "UTF-8";

:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-strong: #f0f6ff;
  --text: #10233d;
  --muted: #60718b;
  --line: #d9e7fb;
  --primary: #215bd8;
  --primary-dark: #102c6d;
  --accent: #31c7c0;
  --accent-strong: #0e8fb6;
  --warning: #f59e0b;
  --success: #0f8f78;
  --shadow: 0 22px 55px rgba(30, 77, 141, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(33, 91, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 91, 216, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(calc(100% - 40px), 860px); }

.wireless-keyboard-app,
.trackball-mouse-app {
  position: relative;
  overflow: hidden;
  padding-bottom: 96px;
}

.hero {
  position: relative;
  padding: 88px 0 72px;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -120px -120px auto auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 199, 192, 0.24), rgba(49, 199, 192, 0) 70%);
  filter: blur(10px);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(33, 91, 216, 0.16);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 5px rgba(49, 199, 192, 0.12);
}
.hero h1 {
  margin: 24px 0 0;
  color: var(--primary-dark);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}
.hero h1 span { display: block; }
.hero__accent {
  margin: 20px 0 0;
  color: var(--primary);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
}
.hero__lead, .hero__detail {
  max-width: 640px;
  margin: 18px 0 0;
  color: #31435f;
  font-size: 1rem;
}
.hero__detail strong { color: var(--primary-dark); }
.hero__actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.privacy-note {
  display: inline-flex;
  margin: 0;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.privacy-note svg,
.button svg,
.back-button svg,
.low-score-guide svg,
.restart-area svg,
.insight-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button {
  display: inline-flex;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.button--large { min-width: 240px; }
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #1b73e8, #2147d8);
  box-shadow: 0 18px 35px rgba(33, 91, 216, 0.24);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(33, 91, 216, 0.28);
}
.button--ghost {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 44, 109, 0.12);
}
.button--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 44, 109, 0.12);
}

.keyboard-scene {
  position: relative;
  min-height: 510px;
  border: 1px solid rgba(33, 91, 216, 0.12);
  border-radius: 36px;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.72) 42%, rgba(238, 247, 255, 0.28) 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(236, 244, 255, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), var(--shadow);
  overflow: hidden;
}
.keyboard-scene__ring {
  position: absolute;
  border: 1px solid rgba(33, 91, 216, 0.09);
  border-radius: 50%;
}
.keyboard-scene__ring--one {
  inset: 30px auto auto 38px;
  width: 320px;
  height: 320px;
}
.keyboard-scene__ring--two {
  right: -54px;
  bottom: -80px;
  width: 360px;
  height: 360px;
}
.board {
  position: absolute;
  display: block;
  box-shadow: 0 18px 28px rgba(15, 31, 59, 0.18);
}
.board,
.board::before,
.board::after,
.board i,
.board b {
  position: absolute;
  content: "";
  display: block;
}
.board span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.board--slim {
  top: 50px;
  left: 34px;
  width: 210px;
  height: 98px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #dce9fb 58%, #b8c9e9);
  transform: rotate(-8deg);
}
.board--slim::before {
  inset: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 35, 61, 0.08);
}
.board--slim i {
  top: 24px;
  left: 20px;
  width: 82px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #31c7c0, #215bd8);
}
.board--slim b {
  right: 22px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #16345e;
  box-shadow: -28px 0 0 rgba(22, 52, 94, 0.7);
}
.board--slim span { color: #16345e; }

.board--ergo {
  right: 32px;
  top: 126px;
  width: 238px;
  height: 124px;
  border-radius: 34px;
  background: linear-gradient(145deg, #1f3763, #12305c 55%, #0f6580);
  transform: rotate(8deg);
}
.board--ergo::before {
  inset: 16px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.board--ergo::after {
  left: 50%;
  top: 20px;
  width: 42px;
  height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}
.board--ergo i {
  top: 28px;
  left: 22px;
  width: 62px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 26px 0 rgba(255, 255, 255, 0.14);
}
.board--ergo b {
  right: 24px;
  top: 28px;
  width: 62px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 26px 0 rgba(255, 255, 255, 0.14);
}

.board--mecha {
  left: 130px;
  bottom: 40px;
  width: 228px;
  height: 112px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f9a61b, #f08a14 54%, #c96111);
  transform: rotate(-6deg);
}
.board--mecha::before {
  inset: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.14));
}
.board--mecha i {
  left: 24px;
  top: 24px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 35, 61, 0.82);
}
.board--mecha b {
  left: 24px;
  top: 50px;
  width: 98px;
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 35, 61, 0.22);
}
.chip {
  position: absolute;
  z-index: 3;
  display: inline-grid;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(33, 91, 216, 0.16);
  border-radius: 999px;
  color: #13315e;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  place-items: center;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.chip--multi { top: 20px; right: 24px; transform: rotate(5deg); }
.chip--bt { left: 18px; bottom: 24px; transform: rotate(-5deg); }
.chip--desk { right: 54px; bottom: 12px; transform: rotate(-3deg); }
.meter {
  position: absolute;
  left: 42px;
  bottom: 118px;
  width: 132px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(33, 91, 216, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 30px rgba(16, 35, 61, 0.08);
}
.meter p {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.meter div {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
}
.meter div + div { margin-top: 8px; }
.meter b {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #31c7c0, #215bd8);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.how,
.comparison-guide {
  margin-top: 30px;
}
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.how__grid h2,
.model-comparison__heading h2,
.comparison-guide h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.how__grid h2 span { display: block; }
.steps {
  display: grid;
  gap: 16px;
}
.step,
.question-panel,
.result-hero,
.insight-block,
.model-comparison,
.disclaimer,
.comparison-guide__inner {
  border: 1px solid rgba(33, 91, 216, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 22px;
  align-items: start;
}
.step span {
  display: inline-grid;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(49, 199, 192, 0.15), rgba(33, 91, 216, 0.12));
  place-items: center;
  font-weight: 900;
}
.step h3 {
  margin: 0;
  font-size: 1.03rem;
}
.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.how__action {
  display: flex;
  margin-top: 26px;
  justify-content: center;
}

.quiz,
.results {
  margin-top: 56px;
}
.quiz-progress {
  margin-bottom: 18px;
}
.quiz-progress__labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.progress-track {
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  background: #dbe8fb;
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #31c7c0, #215bd8);
}
.question-panel {
  padding: 28px;
}
.question-panel__kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.question-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.4;
}
.answer-list {
  display: grid;
  margin-top: 22px;
  gap: 12px;
}
.answer-button {
  width: 100%;
  padding: 18px 18px;
  border: 1px solid rgba(33, 91, 216, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.answer-button:hover {
  border-color: rgba(33, 91, 216, 0.3);
  box-shadow: 0 14px 28px rgba(16, 35, 61, 0.08);
  transform: translateY(-2px);
}
.back-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}
.score-wrap {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
}
.score-ring {
  width: 240px;
  height: 240px;
  transform: rotate(-90deg);
}
.score-ring__track,
.score-ring__value {
  fill: none;
  stroke-width: 20;
}
.score-ring__track { stroke: #dce9fb; }
.score-ring__value {
  stroke: url(#score-gradient);
  stroke: #215bd8;
  stroke-dasharray: 603;
  stroke-dashoffset: 603;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.55s ease;
}
.score-center {
  position: absolute;
  display: grid;
  gap: 5px;
  place-items: center;
  text-align: center;
}
.score-center span,
.score-center em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.score-center strong {
  color: var(--primary-dark);
  font-size: 3.4rem;
  line-height: 0.95;
  letter-spacing: -0.08em;
}
.score-center strong small {
  font-size: 1.2rem;
}
.result-copy__title {
  margin: 10px 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
}
.result-copy__description,
.model-result > p,
.comparison-guide__lead,
.comparison-guide__content p,
.model-comparison__heading p,
.disclaimer p {
  color: #384a66;
}
.model-result {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(238, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
}
.model-badge {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #31c7c0, #215bd8);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.model-result h3 {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.45;
}
.model-visual {
  position: relative;
  width: min(100%, 340px);
  height: 170px;
  margin: 18px 0 8px;
}
.model-visual span,
.model-visual i,
.model-visual b,
.model-visual em {
  position: absolute;
  display: block;
}
.model-visual span {
  inset: 42px 20px auto;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(145deg, #163b6b, #12305c 54%, #0d627f);
  box-shadow: 0 18px 28px rgba(15, 31, 59, 0.18);
}
.model-visual i {
  inset: 56px 44px auto;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 0 rgba(255, 255, 255, 0.18);
}
.model-visual b {
  right: 42px;
  top: 60px;
  width: 56px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.model-visual em {
  right: 26px;
  bottom: 16px;
  color: var(--primary);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.14em;
}
#model-person-list,
.insight-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
#model-person-list li,
.insight-list li {
  position: relative;
  padding-left: 18px;
}
#model-person-list li + li,
.insight-list li + li { margin-top: 8px; }
#model-person-list li::before,
.insight-list li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #31c7c0, #215bd8);
  content: "";
  transform: translateY(-50%);
}
.result-links {
  display: flex;
  margin-top: 18px;
  gap: 10px;
  flex-wrap: wrap;
}
.result-links a {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(16, 35, 61, 0.1);
  border-radius: 14px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.result-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(16, 35, 61, 0.08);
}
.result-links a[data-kind="official"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #215bd8, #2147d8);
}
.result-links a[data-kind="amazon"] {
  color: #17325f;
  background: #f6e7c8;
}
.result-links a[data-kind="rakuten"] {
  color: #9b1735;
  background: #ffe8ef;
}
.result-links a[data-kind="review"] {
  color: var(--primary-dark);
  background: #edf5ff;
}

.low-score-guide {
  display: flex;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #5b4d1e;
  background: #fff5dc;
  align-items: flex-start;
  gap: 10px;
}
.low-score-guide p { margin: 0; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.insight-block {
  padding: 22px;
}
.insight-block__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.insight-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  place-items: center;
}
.insight-icon--positive {
  color: var(--success);
  background: rgba(15, 143, 120, 0.1);
}
.insight-icon--caution {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
}
.insight-block__heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.insight-block__heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.model-comparison,
.comparison-guide__inner,
.disclaimer {
  margin-top: 22px;
  padding: 26px;
}
.model-table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
}
tbody th {
  color: var(--primary-dark);
  font-weight: 800;
}
.comparison-guide__content h3 {
  margin: 28px 0 10px;
  color: var(--primary-dark);
  font-size: 1.14rem;
}
.comparison-guide__content h3:first-child { margin-top: 0; }
.restart-area {
  display: flex;
  margin-top: 24px;
  justify-content: center;
}

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

  .keyboard-scene {
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero {
    padding-top: 72px;
  }
  .hero__actions,
  .result-links {
    flex-direction: column;
    align-items: stretch;
  }
  .button--large,
  .button,
  .result-links a {
    width: 100%;
  }
  .keyboard-scene {
    min-height: 360px;
  }
  .board--slim {
    left: 18px;
    width: 156px;
    height: 80px;
  }
  .board--ergo {
    right: 18px;
    top: 118px;
    width: 186px;
    height: 104px;
  }
  .board--mecha {
    left: 86px;
    bottom: 34px;
    width: 184px;
    height: 94px;
  }
  .meter {
    left: 18px;
    bottom: 92px;
    width: 118px;
  }
  .question-panel,
  .result-hero,
  .insight-block,
  .model-comparison,
  .comparison-guide__inner,
  .disclaimer {
    padding: 22px 18px;
  }
  .step {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }
  .step span {
    width: 48px;
    height: 48px;
  }
}
