:root {
  --bg: #f4f7fb;
  --bg-soft: #eaf0f7;
  --panel: #ffffff;
  --panel-soft: #f7fafe;
  --text: #16263a;
  --muted: #607086;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-3: #eef4ff;
  --line: #d7e1ec;
  --shadow: 0 14px 36px rgba(22, 38, 58, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef3f9 100%);
  color: var(--text);
  line-height: 1.7;
}
.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(180deg, #edf4ff 0%, #f7faff 100%);
  border-bottom: 1px solid rgba(215, 225, 236, 0.95);
}
.hero-inner {
  display: block;
}
.hero-panel, .card, .table-wrap {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}
.hero-copy {
  padding: 8px 0;
}
.hero-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.eyebrow {
  color: #2563eb;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 8px; }
h3 { font-size: 1.08rem; }
strong { color: #14314c; }
.lead, .note, p, li { color: var(--muted); }
.section-head { margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.button {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 999px;
  color: #20425b;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(57, 90, 120, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(57, 90, 120, 0.1);
}
.button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  border: none;
}
.hero-points, .checklist {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}
.panel-label, .mini-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4b6b8f;
}
.panel-note { font-size: .95rem; margin-top: 16px; }
.section { padding: 40px 0; }
.accordion {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
}
.accordion[open] .accordion-summary::after {
  content: "−";
}
.accordion-body {
  padding: 0 22px 22px;
}
.cards {
  display: grid;
  gap: 16px;
}
.cards.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.guide-card {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #c9d9ee;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.guide-card::after {
  content: "記事を見る ↗";
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #1d4ed8;
  font-size: .92rem;
  font-weight: 700;
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: #8fb3e8;
  box-shadow: 0 16px 36px rgba(22, 38, 58, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}
.guide-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}
.guide-card p {
  margin-bottom: 0;
}
.guide-card:hover h3 {
  color: #1d4ed8;
}
.step-card { background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%); }
.recommendation-card { background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%); }
.step-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-3);
  color: #8d6700;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.rank {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}
th, td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background: rgba(255, 255, 255, 0.92);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
th {
  color: var(--text);
  background: #eef4fb;
  font-size: .95rem;
  white-space: nowrap;
}
tbody tr:nth-child(even) td {
  background: #f7fafe;
}
td:nth-child(2), th:nth-child(2) {
  white-space: nowrap;
}
.dex-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dex-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: 0 0 22px;
  box-shadow: 0 2px 8px rgba(57, 90, 120, 0.10);
  object-fit: contain;
  background: #fff;
  padding: 2px;
}
.dex-logo-wide {
  width: 26px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  padding: 1px;
}
.dex-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
}
.dex-link:hover {
  color: #1e40af;
}
.dex-link::after {
  content: "↗";
  font-size: 0.88em;
  opacity: 0.9;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill.good { background: #e7f0ff; color: #1d4ed8; }
.pill.warn { background: #fff3e6; color: #b45309; }
.pill.neutral { background: #eef2f7; color: #526377; }
.steps {
  padding-left: 20px;
  background: #fffdf7;
  border: 1px solid #f2e6c2;
  border-radius: 18px;
  padding: 20px 20px 20px 38px;
  box-shadow: var(--shadow);
}
.note {
  margin-top: 14px;
  font-size: .95rem;
}
.footer {
  padding: 24px 0 48px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.78);
  }

  table {
    min-width: 980px;
  }

  th, td {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .dex-name {
    gap: 8px;
  }

  .dex-logo {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .dex-logo-wide {
    width: 24px;
    height: 20px;
  }
}
