:root {
  --ink: #202020;
  --muted: #666666;
  --line: #dedede;
  --paper: #ffffff;
  --cream: #fff8d8;
  --yellow: #ffd900;
  --yellow-deep: #ffb800;
  --green: #03c64f;
  --green-deep: #00a43d;
  --orange: #ff7a1a;
  --red: #e84537;
  --blue: #1f78d1;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 217, 0, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(0deg, rgba(255, 217, 0, 0.10) 0 1px, transparent 1px 18px),
    #f4f4f4;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 430px);
  max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 74px;
}

.hero-grid > *,
.diagnosis-card,
.featured-card,
.rank-card,
.question,
.choice-grid > *,
.mini-grid > *,
.rank-card-head > div {
  min-width: 0;
}

.site-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  width: min(236px, 66vw);
  height: auto;
  flex: 0 1 auto;
}

.header-nav {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.header-nav a {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px 20px),
    linear-gradient(135deg, var(--yellow) 0%, #fff06a 58%, #fff9c7 100%);
  padding: 12px 14px 20px;
  border-bottom: 4px solid var(--ink);
  position: relative;
}

.hero-ribbon {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 8px 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  grid-template-areas:
    "kicker kicker"
    "title device"
    "points device"
    "lead lead";
  align-items: start;
  gap: 8px 8px;
}

.hero-copy {
  display: contents;
}

.hero-kicker {
  grid-area: kicker;
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--green-deep);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  width: fit-content;
}

.hero h1 {
  grid-area: title;
  margin: 0;
  font-size: 33px;
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
  text-shadow: 3px 3px 0 rgba(32, 32, 32, 0.72);
}

.hero h1 span {
  color: var(--green);
}

.hero-points {
  grid-area: points;
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  width: fit-content;
  max-width: 100%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(32, 32, 32, 0.25);
}

.hero-lead {
  grid-area: lead;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 10px;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: strict;
}

.hero-device {
  grid-area: device;
  align-self: stretch;
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff 0%, #e8fff1 100%);
  padding: 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.phone-frame {
  width: 100%;
  margin: 0 auto;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: #111;
  padding: 5px;
}

.phone-top {
  width: 42px;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: #111;
  margin: -5px auto 5px;
}

.phone-screen {
  min-height: 116px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fff 0%, #fff8cf 48%, #e9fff0 100%);
  border: 2px solid #222;
  display: grid;
  gap: 3px;
  align-content: center;
  text-align: center;
  padding: 8px 5px;
  overflow: hidden;
}

.phone-screen > * {
  min-width: 0;
}

.screen-label {
  justify-self: center;
  border-radius: 999px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.phone-screen strong {
  font-size: 14px;
  line-height: 1.15;
  color: var(--green-deep);
  font-weight: 900;
  white-space: nowrap;
}

.phone-screen small {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--muted);
}

.screen-timer {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff0a4;
  padding: 5px 4px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 900;
}

.screen-timer b {
  color: var(--orange);
  display: block;
  font-size: 17px;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  font-weight: 900;
  text-align: center;
  border: 3px solid #00802f;
  box-shadow: 0 5px 0 #00742b;
  padding: 12px 14px;
}

.primary-cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #00742b;
}

.primary-cta.compact {
  min-height: 44px;
  max-width: 280px;
  margin: 12px auto 0;
}

.hero-cta {
  margin-top: 14px;
}

.compliance-note {
  margin: 10px 0 0;
  color: #5f5f5f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
}

.hero-note {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.timer-note {
  margin-top: 8px;
}

section {
  padding: 24px 14px;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 2px solid currentColor;
  background: #fff;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 900;
}

.section-title.green h2,
.section-title.green span {
  color: var(--green-deep);
}

.section-title.yellow h2,
.section-title.yellow span {
  color: #9a6400;
}

.section-title.black h2,
.section-title.black span {
  color: var(--ink);
}

.diagnosis {
  background: #fff;
}

.diagnosis-card,
.featured-card,
.rank-card,
.guide-box,
.basis,
.voice-list article,
.accordion details {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.13);
}

.diagnosis-card {
  overflow: hidden;
}

.question {
  display: none;
  padding: 16px;
}

.question.is-active {
  display: block;
}

.question-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  margin-bottom: 12px;
}

.question-head span {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px;
}

.question-head small {
  margin-left: auto;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice-grid button {
  min-height: 48px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.choice-grid button:hover,
.choice-grid button.is-selected {
  background: #fff2cc;
}

.diagnosis-result {
  padding: 18px;
  text-align: center;
  background: var(--cream);
}

.diagnosis-result p {
  margin: 0 0 6px;
  font-weight: 800;
}

.diagnosis-result strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--green-deep);
}

.diagnosis-result span {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
}

.reset-diagnosis {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.top-pick,
.ranking,
.voice {
  background: var(--cream);
}

.featured-card {
  padding: 14px;
  position: relative;
}

.featured-head,
.rank-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-head h3,
.rank-card h3 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.rank-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.crown,
.rank-badge {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-weight: 900;
}

.featured-visual {
  margin: 14px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #f6f6f6;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
  line-height: 0;
}

.featured-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.featured-copy,
.rank-copy {
  line-height: 1.75;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.transfer-timer {
  margin: 14px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff1a3;
  font-weight: 900;
}

.transfer-timer strong {
  font-size: 31px;
  color: var(--orange);
}

.transfer-timer.small {
  margin: 12px 0;
  padding: 9px;
}

.transfer-timer.small strong {
  font-size: 24px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  table-layout: fixed;
  font-weight: 800;
}

.compare-table th,
.compare-table td {
  border: 2px solid #fff;
  padding: 10px 8px;
}

.compare-table th {
  width: 40%;
  background: #b8efbf;
}

.compare-table td {
  background: #f0f0f0;
}

.recommend-list {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.recommend-list li {
  padding: 10px 10px 10px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-weight: 800;
}

.recommend-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
}

.ranking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  border: 2px solid var(--ink);
  border-radius: 8px;
  min-height: 46px;
  background: #fff;
  font-weight: 900;
}

.tab-button.is-active {
  background: var(--yellow);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 14px;
}

.rank-card {
  padding: 14px;
}

.rank-preview {
  margin: 14px 0 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #f6f6f6;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
  line-height: 0;
}

.rank-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 14px 0 10px;
}

.mini-grid div {
  min-height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f8e9;
  border: 1px solid #bbdfc0;
  text-align: center;
}

.mini-grid strong {
  font-size: 18px;
  color: var(--red);
  font-weight: 900;
}

.mini-grid span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.rank-one {
  border-color: var(--orange);
}

.rank-badge {
  background: var(--yellow);
}

.rank-badge.silver {
  background: #e8eef6;
}

.rank-badge.bronze {
  background: #ffd8aa;
}

.rank-card-head p {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-weight: 900;
}

.review-trigger {
  margin-left: auto;
  flex: 0 0 auto;
  max-width: 84px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 8px;
  white-space: normal;
}

.rating-list {
  margin: 14px 0;
  display: grid;
  gap: 8px;
}

.rating-list div {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4px;
  padding: 9px 10px;
  border: 2px solid #f1d470;
  border-radius: 8px;
  background: #fffaf0;
}

.rating-list dt {
  min-width: 0;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
}

.rating-list dd {
  margin: 0;
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #fff;
}

.rating-list.compact {
  margin: 10px 0 12px;
}

.rating-list.compact div {
  padding: 8px 9px;
}

.guide-box {
  padding: 16px;
}

.guide-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.guide-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.guide-box li {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff8d4;
  border-radius: 8px;
}

.guide-box strong {
  color: var(--green-deep);
}

.wide-visual {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
}

.wide-visual img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.flow {
  background: #fff;
}

.flow-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.flow-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  background: #f3fff5;
  border: 2px solid #bce5c2;
  border-radius: 8px;
}

.flow-steps span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.flow-steps strong {
  font-weight: 900;
}

.flow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.voice-list {
  display: grid;
  gap: 12px;
}

.voice-list article {
  padding: 14px;
}

.voice-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-avatar {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.voice-list strong {
  color: var(--green-deep);
}

.voice-list p {
  margin: 8px 0 0;
  line-height: 1.75;
}

.voice-note {
  padding: 0 2px;
}

.faq {
  background: #fff;
}

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

.accordion details {
  padding: 0;
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  padding: 14px;
  font-weight: 900;
  background: #f8f8f8;
}

.accordion p {
  margin: 0;
  padding: 0 14px 14px;
  line-height: 1.75;
}

.basis {
  margin: 24px 14px;
  padding: 14px;
}

.basis h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.basis p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}

.basis .basis-note {
  margin-top: 8px;
  font-size: 11px;
}

.site-footer {
  padding: 24px 14px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.site-footer nav {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: #d8d8d8;
  font-size: 12px;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border-top: 2px solid var(--line);
  padding: 8px 12px;
  z-index: 30;
}

.sticky-cta a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  border: 2px solid var(--green-deep);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 430px);
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  border: 3px solid var(--ink);
  padding: 18px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.modal-panel p {
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

@media (min-width: 560px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 33px;
  }

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

@media (max-width: 360px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-device {
    padding: 5px;
  }

  .phone-screen {
    min-height: 110px;
  }
}
