:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #dde3ea;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --mint: #dff3ea;
  --green: #167a58;
  --green-dark: #0f5841;
  --coral: #e96c55;
  --gold: #c4932f;
  --blue: #2e6f9f;
  --shadow: 0 16px 40px rgba(32, 33, 36, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 227, 234, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(22, 122, 88, 0.25);
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
}

.brand svg,
.icon svg,
.mini-icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  isolation: isolate;
  overflow: hidden;
  background: #f7faf8;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 37%, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0.1) 100%), url("assets/piggy-bank-hero.png");
  background-position: center, center;
  background-size: cover, cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  content: "";
}

.hero-inner {
  display: grid;
  min-height: calc(100vh - 68px);
  align-items: center;
  padding: 54px 0 92px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #3c4043;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.button.secondary {
  border-color: rgba(32, 33, 36, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.trust-item {
  min-height: 96px;
  padding: 22px;
  background: var(--paper);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 78px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.article-card,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.category-card {
  min-height: 210px;
  padding: 22px;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 22px;
}

.icon.green {
  background: var(--mint);
  color: var(--green);
}

.icon.coral {
  background: #fde9e4;
  color: var(--coral);
}

.icon.blue {
  background: #e3f0f8;
  color: var(--blue);
}

.icon.gold {
  background: #fbf1d9;
  color: var(--gold);
}

.category-card h3,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.category-card p,
.article-card p,
.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured {
  background: var(--soft);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-list {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
}

.article-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.article-card.primary {
  background: linear-gradient(135deg, #ffffff 0%, #eff8f3 100%);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 18px;
  padding: 5px 10px;
  background: rgba(22, 122, 88, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.read-more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--green-dark);
  font-weight: 800;
}

.policy-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
}

.policy-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  gap: 42px;
  align-items: start;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.mini-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(196, 147, 47, 0.25);
  border-radius: 8px;
  background: #fbf1d9;
  color: var(--gold);
}

.policy-item strong {
  display: block;
  margin-bottom: 2px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #26322e;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.subpage-hero {
  padding: 72px 0 50px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbf9 0%, #fff7f2 100%);
}

.subpage-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0;
}

.subpage-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.article-hero {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.article-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #3c4043;
}

.article-hero img {
  width: 100%;
  max-height: 340px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.internet-hero-visual {
  display: grid;
  min-height: 330px;
  align-content: center;
  border: 1px solid rgba(22, 122, 88, 0.18);
  border-radius: 8px;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.96) 0 12%, transparent 13%),
    linear-gradient(135deg, #e8f6ef 0%, #f7fbff 54%, #fff6ec 100%);
  box-shadow: var(--shadow);
  gap: 28px;
}

.router-illustration {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  height: 170px;
  place-items: end center;
  margin: 0 auto;
}

.wifi-ring {
  position: absolute;
  bottom: 42px;
  left: 50%;
  border: 7px solid var(--green);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
  opacity: 0.16;
  transform: translateX(-50%);
}

.ring-1 {
  width: 96px;
  height: 48px;
}

.ring-2 {
  width: 170px;
  height: 86px;
}

.ring-3 {
  width: 244px;
  height: 122px;
}

.router-box {
  position: relative;
  width: 168px;
  height: 58px;
  border: 2px solid rgba(15, 88, 65, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(32, 33, 36, 0.12);
}

.router-box::before,
.router-box::after {
  position: absolute;
  bottom: 13px;
  width: 5px;
  height: 46px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.router-box::before {
  left: 28px;
  transform: rotate(-18deg);
}

.router-box::after {
  right: 28px;
  transform: rotate(18deg);
}

.hero-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-checks span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(22, 122, 88, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.content h2 {
  margin: 42px 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: #3c4043;
}

.content ul {
  padding-left: 1.3em;
}

.notice {
  border-left: 4px solid var(--green);
  margin: 28px 0;
  padding: 18px 20px;
  background: #f0f8f4;
}

.article-meta,
.source-note {
  color: var(--muted);
  font-size: 13px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 28px 0 44px;
  padding: 16px;
  background: var(--soft);
}

.toc strong {
  width: 100%;
}

.toc a {
  border-bottom: 1px solid currentColor;
  color: var(--green-dark);
  font-weight: 800;
}

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

.summary-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.summary-grid strong {
  display: block;
  margin-bottom: 8px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.usecase-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.usecase-grid span {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 10px;
  padding: 4px 9px;
  background: #e3f0f8;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.usecase-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.usecase-grid p {
  margin: 0;
  font-size: 14px;
}

.editor-note,
.final-judgement {
  border: 1px solid rgba(22, 122, 88, 0.22);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  margin: 28px 0;
  padding: 18px 20px;
  background: #f2faf5;
}

.editor-note strong,
.final-judgement strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.editor-note p,
.final-judgement p {
  margin: 0;
}

.visual-summary,
.compare-cards,
.step-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.visual-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-summary > div,
.compare-card,
.diagnosis-box,
.step-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.visual-summary > div {
  padding: 18px;
}

.visual-number {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.visual-summary strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.visual-summary p,
.compare-card p,
.compare-card li,
.step-grid p {
  font-size: 14px;
}

.compare-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  position: relative;
  padding: 20px;
}

.compare-card.recommended {
  border-color: rgba(22, 122, 88, 0.45);
  background: #f2faf5;
}

.compare-card.recommended::before {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  content: "在宅向き";
}

.compare-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.compare-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.compare-score {
  color: var(--green-dark);
  font-weight: 800;
}

.compare-card ul {
  padding-left: 1.2em;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 30px 0;
}

.flow-diagram > div {
  position: relative;
  border-radius: 8px;
  padding: 18px;
  background: #fff7f2;
}

.flow-diagram > div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.flow-diagram span {
  display: block;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.flow-diagram strong {
  display: block;
  margin-top: 4px;
}

.bar-compare {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 28px 0 38px;
  padding: 18px;
  background: #f8faf9;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
}

.bar-row span,
.bar-row strong {
  font-size: 13px;
}

.bar-row span {
  font-weight: 900;
}

.bar-row strong {
  color: var(--muted);
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf1;
}

.bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.bar-track i.blue-bar {
  background: var(--blue);
}

.bar-track i.gold-bar {
  background: var(--gold);
}

.illustration-panel {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(46, 111, 159, 0.22);
  border-radius: 8px;
  margin: 34px 0 44px;
  padding: 24px;
  background: #f4f9fc;
}

.illustration-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.illustration-panel p {
  margin: 0;
}

.illust-device {
  position: relative;
  min-height: 150px;
}

.illust-router {
  position: absolute;
  left: 48px;
  bottom: 8px;
  width: 72px;
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2e6f9f 0%, #17445f 100%);
  box-shadow: 0 18px 34px rgba(46, 111, 159, 0.18);
}

.illust-router::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bfe8ff;
  box-shadow: 0 20px 0 #bfe8ff, 0 40px 0 #bfe8ff;
  transform: translateX(-50%);
  content: "";
}

.signal {
  position: absolute;
  border: 3px solid var(--green);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 999px 999px 0 0;
  opacity: 0.82;
}

.signal-one {
  top: 46px;
  left: 70px;
  width: 30px;
  height: 16px;
}

.signal-two {
  top: 26px;
  left: 52px;
  width: 66px;
  height: 34px;
}

.signal-three {
  top: 4px;
  left: 34px;
  width: 102px;
  height: 54px;
}

.choice-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 28px 0 42px;
  padding: 18px;
  background: #fffaf6;
}

.choice-start {
  width: fit-content;
  border-radius: 999px;
  margin: 0 auto 16px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.choice-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-options div {
  position: relative;
  border: 1px solid rgba(196, 147, 47, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  text-align: center;
}

.choice-options span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.choice-options strong {
  display: block;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0 10px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--paper);
}

caption {
  margin-bottom: 8px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

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

th {
  width: 32%;
  background: #f8faf9;
}

.content-box {
  margin: 32px 0;
  padding: 22px;
}

.content-box h2 {
  margin-top: 0;
}

.cta-box {
  border: 1px solid rgba(22, 122, 88, 0.24);
  border-radius: 8px;
  margin: 36px 0 0;
  padding: 24px;
  background: linear-gradient(135deg, #f2faf5 0%, #ffffff 100%);
}

.cta-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.cta-box p {
  margin: 0 0 18px;
}

.cta-kicker {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

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

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--paper);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin-bottom: 0;
}

.diagnosis-box {
  display: grid;
  gap: 10px;
  margin: 24px 0 34px;
  padding: 20px;
  background: #f8faf9;
}

.diagnosis-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #3c4043;
}

.diagnosis-box input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.diagnosis-result {
  display: grid;
  gap: 2px;
  border-left: 4px solid var(--green);
  margin-top: 4px;
  padding: 12px 14px;
  background: #eff8f3;
}

.diagnosis-result strong {
  color: var(--green-dark);
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-cards,
.caution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.price-card,
.caution-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.price-card {
  min-height: 190px;
}

.price-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.price-card h3 {
  margin: 4px 0 10px;
  font-size: 18px;
}

.price-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1.1;
}

.price-card strong::after {
  content: " / 月";
  font-size: 13px;
}

.price-card p,
.caution-grid p {
  margin: 12px 0 0;
  font-size: 14px;
}

.price-card.accent {
  border-color: rgba(46, 111, 159, 0.35);
  background: #f2f8fc;
}

.price-card.accent span,
.price-card.accent strong {
  color: var(--blue);
}

.caution-grid > div {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.caution-grid strong {
  display: block;
}

.plan-guide,
.apply-type-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0 36px;
}

.plan-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apply-type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-guide > div,
.apply-type-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.plan-guide > div:first-child {
  border-color: rgba(22, 122, 88, 0.34);
  background: #f2faf5;
}

.plan-guide span,
.apply-type-grid span {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 10px;
  padding: 4px 9px;
  background: #e3f0f8;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.plan-guide h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.plan-guide strong,
.apply-type-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
}

.plan-guide p,
.apply-type-grid p {
  margin: 0;
  font-size: 14px;
}

.comparison-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0 36px;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 1.4fr;
}

.comparison-table > div > * {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.comparison-table > div:last-child > * {
  border-bottom: 0;
}

.comparison-head {
  background: #f8faf9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.comparison-table strong {
  color: var(--green-dark);
}

.reputation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.reputation-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.rep-label {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.rep-label.good {
  background: #e7f5ed;
  color: var(--green-dark);
}

.rep-label.bad {
  background: #fff1e8;
  color: #9b422d;
}

.mini-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(22, 122, 88, 0.24);
  border-radius: 8px;
  margin: 30px 0 42px;
  padding: 20px;
  background: #f2faf5;
}

.mini-cta strong {
  display: block;
  margin-bottom: 2px;
}

.mini-cta p {
  margin: 0;
  font-size: 14px;
}

.step-grid > div {
  padding: 18px;
}

.step-grid span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.step-grid strong {
  display: block;
}

.step-grid p {
  margin: 4px 0 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 26px 0 38px;
}

.timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline > div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 54px;
  background: #fff;
}

.timeline > div::before {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(22, 122, 88, 0.28);
  content: "";
}

.timeline span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-top: 2px;
}

.timeline p {
  margin: 4px 0 0;
  font-size: 14px;
}

.tracking-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.58) 100%), url("assets/piggy-bank-hero.png");
    background-position: center, 63% center;
  }

  .hero-inner {
    padding: 52px 0 110px;
  }

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

  .trust-row,
  .category-grid,
  .article-grid,
  .article-hero-grid,
  .summary-grid,
  .usecase-grid,
  .illustration-panel,
  .visual-summary,
  .compare-cards,
  .choice-options,
  .flow-diagram,
  .step-grid,
  .price-cards,
  .caution-grid,
  .plan-guide,
  .apply-type-grid,
  .reputation-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .comparison-table {
    border: 0;
    gap: 12px;
  }

  .comparison-table > div {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .comparison-head {
    display: none !important;
  }

  .comparison-table > div > * {
    border-bottom: 1px solid var(--line);
  }

  .mini-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .illustration-panel {
    grid-template-columns: 1fr;
  }

  .illust-device {
    width: 180px;
    margin: 0 auto;
  }

  .flow-diagram {
    gap: 14px;
  }

  .flow-diagram > div:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -18px;
    left: 22px;
    transform: rotate(135deg);
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .content {
    width: min(100% - 28px, 1120px);
  }

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

  .lead {
    font-size: 16px;
  }

  section {
    padding: 58px 0;
  }

  .section-title h2,
  .subpage-hero h1 {
    font-size: 28px;
  }

  .internet-hero-visual {
    min-height: 260px;
    padding: 24px;
  }

  .router-illustration {
    height: 140px;
  }

  .hero-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
