:root {
  --blue: #0b66d8;
  --deep: #083a8c;
  --sky: #eaf6ff;
  --cyan: #58c7ff;
  --red: #ff4b57;
  --yellow: #ffd94d;
  --ink: #10233f;
  --muted: #5b6f8f;
  --line: #d9e8f7;
  --panel: rgba(255, 255, 255, .88);
  --shadow: 0 18px 48px rgba(8, 58, 140, .16);
  --hard-shadow: 0 24px 70px rgba(8, 58, 140, .24);
  --font-body: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-heading: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-number: "Segoe UI", "Arial", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(11,102,216,.045) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(rgba(11,102,216,.035) 1px, transparent 1px) 0 0/42px 42px,
    radial-gradient(circle at 14% 8%, rgba(88, 199, 255, .28), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255, 217, 77, .24), transparent 28%),
    linear-gradient(180deg, #f7fcff 0%, #edf7ff 45%, #ffffff 100%);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 42px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 232, 247, .8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--deep);
}

.brand img { width: 34px; height: 54px; object-fit: contain; }
.top-nav { display: flex; gap: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.top-nav a { padding: 8px 10px; border-radius: 999px; }
.top-nav a:hover { background: var(--sky); color: var(--deep); }

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 30px 0 28px;
}

.hero-rail {
  display: none;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  justify-content: center;
}

.rail-mascot {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #eef8ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--deep);
  font-weight: 950;
}
.rail-mascot img {
  width: 76px;
  height: auto;
  margin-bottom: 6px;
}

.rail-card {
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(8, 58, 140, .1);
}
.rail-card.best {
  background: linear-gradient(135deg, #fff, #fff6c5);
  border-color: rgba(255, 217, 77, .86);
}
.rail-card small {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}
.rail-card strong {
  display: block;
  margin: 3px 0;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.25;
}
.rail-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.rail-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 16px;
  background: var(--deep);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(8, 58, 140, .22);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(234,246,255,.75));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--hard-shadow);
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(11, 102, 216, .08);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3,
.brand,
.eyebrow,
.button,
.rank-badge,
summary {
  font-family: var(--font-heading);
}
h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--deep);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 19px);
}

.search-intent-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.campaign-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff3b0, #ffffff 54%, #eaf6ff);
  border: 1px solid rgba(255, 217, 77, .9);
  box-shadow: 0 12px 28px rgba(255, 160, 28, .14);
}
.campaign-strip strong {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #ff9f1c);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.campaign-strip span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.search-intent-board a {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon title"
    "icon action";
  align-items: center;
  column-gap: 10px;
  min-height: 94px;
  padding: 13px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  border: 2px solid rgba(11, 102, 216, .18);
  box-shadow: 0 12px 26px rgba(8,58,140,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search-intent-board a:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 102, 216, .45);
  box-shadow: 0 18px 36px rgba(8,58,140,.18);
}
.search-intent-board i {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(8, 58, 140, .2);
}
.search-intent-board span,
.search-intent-board strong,
.search-intent-board em {
  display: block;
  line-height: 1.2;
}
.search-intent-board span {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.search-intent-board strong {
  grid-area: title;
  margin-top: 2px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 950;
}
.search-intent-board em {
  grid-area: action;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 102, 216, .1);
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--hard-shadow);
  border: 6px solid #fff;
  transform: none;
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.visual-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #ff8d43);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(255,75,87,.3);
}

.hero-actions, .sticky-cta, .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.tool-mini {
  display: block;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(8, 58, 140, .1);
}
.tool-mini.best {
  background: linear-gradient(135deg, #fff, #fff6c5);
  border-color: rgba(255, 217, 77, .86);
}
.tool-mini span,
.tool-mini strong,
.tool-mini small {
  display: block;
}
.tool-mini span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}
.tool-mini strong {
  margin: 3px 0;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.25;
}
.tool-mini small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 950;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(135deg, var(--red), #ff7a4a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 75, 87, .25);
}
.button.secondary {
  background: var(--deep);
  color: #fff;
}
.button.ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}
.button.full { width: 100%; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.metric-strip li {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(8, 58, 140, .08);
}
.metric-strip strong {
  display: block;
  font-family: var(--font-number);
  font-size: 22px;
  color: var(--blue);
  line-height: 1.1;
}
.metric-strip span { font-size: 12px; color: var(--muted); font-weight: 800; }

.quick-answer, .final-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 18px 0 40px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(234,246,255,.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quick-answer h2, .final-cta h2 { margin-bottom: 8px; font-size: clamp(22px, 3vw, 34px); line-height: 1.25; }
.quick-answer p, .final-cta p { color: var(--muted); font-weight: 500; }

.section {
  margin: 40px 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}
.section-head { max-width: 780px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.18; margin-bottom: 8px; color: var(--deep); font-weight: 900; }
.section-head p { color: var(--muted); font-weight: 500; }

.intent-cards, .support-grid, .policy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.intent-cards article, .support-grid article, .policy-list article {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(8, 58, 140, .08);
}
.intent-cards h3, .support-grid h3, .policy-list h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 19px;
}
.intent-cards p, .policy-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8d8, #eaf6ff);
  border: 1px solid rgba(255, 217, 77, .75);
}
.inline-cta span {
  color: var(--deep);
  font-weight: 950;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(8, 58, 140, .09);
}

.vendor-shot {
  position: relative;
  margin: 0 0 8px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf6ff;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.vendor-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.vendor-shot-main {
  margin: 0 0 10px;
  border-radius: 22px;
  border: 2px solid rgba(11,102,216,.18);
}
.rank-first {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 217, 77, .32), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eaf6ff 52%, #fff9d6 100%);
  border: 3px solid rgba(255, 217, 77, .95);
  box-shadow: var(--hard-shadow);
}
.rank-first::after {
  content: "BEST";
  position: absolute;
  right: -20px;
  top: 18px;
  rotate: 18deg;
  color: rgba(11, 102, 216, .08);
  font-size: 72px;
  font-weight: 950;
}
.rank-badge {
  position: absolute;
  left: 32px;
  top: 32px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 72px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(8,58,140,.18);
}
.rank-first .rank-badge { background: linear-gradient(135deg, var(--red), #ff9f1c); }
.rank-card h3 {
  margin-bottom: 0;
  font-size: 27px;
  color: var(--deep);
  font-weight: 950;
}
.tagline {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.65;
}
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-icons li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px 6px 7px;
  border-radius: 999px;
  background: #f6fbff;
  border: 1px solid var(--line);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.icon-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 14px rgba(11,102,216,.2);
}
.icon-mark::before,
.icon-mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.icon-mark.rate::before {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(-28deg);
}
.icon-mark.rate::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  box-shadow: -5px 3px 0 #fff, 5px -3px 0 #fff;
}
.icon-mark.speed::before {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.icon-mark.speed::after {
  width: 2px;
  height: 7px;
  left: 11px;
  top: 6px;
  transform-origin: bottom;
  transform: rotate(42deg);
  border-radius: 999px;
}
.icon-mark.phone::before {
  width: 9px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: transparent;
}
.icon-mark.phone::after {
  width: 3px;
  height: 2px;
  bottom: 5px;
  border-radius: 999px;
}
.icon-mark.apple::before {
  width: 11px;
  height: 10px;
  border-radius: 55% 55% 48% 48%;
  top: 8px;
}
.icon-mark.apple::after {
  width: 6px;
  height: 3px;
  border-radius: 999px;
  top: 4px;
  right: 6px;
  transform: rotate(-28deg);
}
.icon-mark.chat::before {
  width: 13px;
  height: 9px;
  border-radius: 8px;
}
.icon-mark.chat::after {
  width: 5px;
  height: 5px;
  left: 7px;
  bottom: 5px;
  transform: rotate(45deg);
}
.icon-mark.scope::before {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.icon-mark.scope::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
}
.icon-mark.campaign {
  background: linear-gradient(135deg, var(--red), #ff9f1c);
}
.icon-mark.campaign::before {
  width: 13px;
  height: 9px;
  border-radius: 2px;
}
.icon-mark.campaign::after {
  width: 2px;
  height: 15px;
  top: 4px;
  transform: rotate(32deg);
  border-radius: 999px;
  background: var(--red);
  opacity: .55;
}
.rank-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.rank-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  background: #f6fbff;
  border-radius: 12px;
}
.rank-card dt { color: var(--muted); font-weight: 800; }
.rank-card dd {
  margin: 0;
  font-family: var(--font-number);
  font-weight: 950;
  color: var(--deep);
}
.rank-card p:not(.tagline) { color: var(--muted); font-weight: 500; }
.vendor-detail {
  margin-top: 0;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
}
.vendor-detail summary {
  font-size: 13px;
  color: var(--blue);
}
.vendor-detail dl {
  margin-top: 10px;
}
.vendor-detail dl div {
  background: #fff;
  border: 1px solid var(--line);
}
.vendor-detail dd {
  text-align: right;
}

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; min-width: 1080px; border-collapse: collapse; background: #fff; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { background: var(--deep); color: #fff; font-size: 13px; }
tbody th { color: var(--deep); }
.is-best th, .is-best td { background: #fff8d8; font-weight: 900; }
.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.policy-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cluster-grid a {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(11, 102, 216, .24);
  box-shadow: 0 10px 26px rgba(8, 58, 140, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cluster-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 102, 216, .55);
  box-shadow: 0 16px 34px rgba(8, 58, 140, .14);
}
.cluster-grid strong,
.cluster-grid span,
.cluster-grid em {
  display: block;
}
.cluster-grid strong {
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
}
.cluster-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.cluster-grid em {
  width: fit-content;
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.cluster-grid em::after {
  content: " >";
}
.article-page main {
  max-width: 980px;
}
.article-hero {
  margin: 28px 0;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(234,246,255,.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}
.article-lead {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}
.article-body {
  display: grid;
  gap: 24px;
}
.article-body .section {
  margin: 0;
}
.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 1.35em;
  color: var(--muted);
}
.article-body li {
  margin: 6px 0;
}
.article-body table {
  min-width: 0;
  table-layout: fixed;
}
.article-body th,
.article-body td {
  overflow-wrap: anywhere;
  word-break: normal;
}
.article-cta {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8d8, #eaf6ff);
  border: 1px solid rgba(255, 217, 77, .75);
}
.article-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.article-actions .button {
  min-width: 190px;
  justify-content: center;
}
.support-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.support-grid dl div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.support-grid dl div:first-child { border-top: 0; }
.support-grid dt {
  color: var(--blue);
  font-weight: 950;
}
.support-grid dd {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.app-section .app-card, .tool-panel {
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--blue), var(--cyan), var(--yellow)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 16px 44px rgba(8,58,140,.12);
}
label {
  display: block;
  margin: 12px 0 8px;
  color: var(--deep);
  font-weight: 900;
}
input[type="range"] { width: 100%; accent-color: var(--blue); }
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7fbff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}
.chips button, .diagnosis-options button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.chips button:hover, .diagnosis-options button:hover { background: var(--sky); }
.result-box, .tool-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  color: #fff;
}
.result-box span { display: block; opacity: .86; font-weight: 800; }
.result-box strong {
  display: block;
  font-family: var(--font-number);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.diagnosis-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.flow { position: relative; overflow: hidden; }
.flow-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.flow-list li {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.flow-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}
.flow-list strong { display: block; margin: 12px 0 4px; color: var(--deep); font-size: 18px; }
.flow-list p { margin: 0; color: var(--muted); font-weight: 500; }
.flow-mascot {
  position: absolute;
  right: -6px;
  bottom: -28px;
  opacity: .18;
  width: 260px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 950;
  color: var(--deep);
}
details p { margin: 10px 0 0; color: var(--muted); font-weight: 500; }
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.faq .section-head {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}
.faq details { margin-top: 0; }

.final-cta { margin-bottom: 80px; }
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 16px);
  z-index: 30;
  width: min(520px, calc(100% - 24px));
  padding: 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(8, 58, 140, .22);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sticky-note {
  flex: 1 0 100%;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff3b0, #fff);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  border: 1px solid rgba(255, 217, 77, .75);
}
.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.sticky-cta a {
  flex: 1;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 950;
}
.sticky-cta a:first-child { background: var(--red); color: #fff; }
.sticky-cta a:last-child { background: var(--sky); color: var(--blue); }

footer {
  padding: 30px 16px 90px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-rail { display: none; }
  .hero-copy { padding: 18px; box-shadow: none; border-color: rgba(217,232,247,.9); }
  .hero-visual { transform: none; border-width: 4px; }
  .metric-strip, .flow-list, .search-intent-board { grid-template-columns: 1fr; }
  .intent-cards, .support-grid, .policy-list, .cluster-grid, .faq { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .quick-answer, .final-cta { grid-template-columns: 1fr; text-align: center; }
  .quick-answer img, .final-cta img { margin: 0 auto; }
  .ranking-grid, .tools-grid { grid-template-columns: 1fr; }
  .rank-first { grid-column: auto; grid-template-columns: 1fr; }
  .diagnosis-options { grid-template-columns: 1fr; }
  .section { border-radius: 24px; }
  .article-hero h1 {
    font-size: 28px;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .article-lead {
    font-size: 16px;
  }
}

@media (min-width: 701px) {
  .sticky-cta {
    width: min(720px, calc(100% - 40px));
    grid-template-columns: 1.25fr .9fr .65fr;
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 9px;
  }
  .sticky-note {
    flex: initial;
    min-height: 48px;
    padding: 6px 12px;
    text-align: center;
  }
  .sticky-cta a {
    min-height: 48px;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-copy {
    max-width: 720px;
    margin: 0 auto;
  }
  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }
  .hero-tools-row { max-width: 720px; }
}

@media (max-width: 520px) {
  main { width: min(100% - 22px, 1180px); }
  .site-header { padding-inline: 12px; }
  h1 { font-size: 36px; }
  .article-hero h1 {
    font-size: 28px;
    line-height: 1.28;
    word-break: break-all;
  }
  .article-body th,
  .article-body td {
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.55;
  }
  .article-body table,
  .article-body tbody,
  .article-body tr,
  .article-body td {
    display: block;
    width: 100%;
  }
  .article-body thead {
    display: none;
  }
  .article-body tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .article-body td {
    border-bottom: 0;
  }
  .article-body td:first-child {
    color: var(--deep);
    font-weight: 800;
  }
  .article-actions {
    flex-direction: column;
  }
  .article-actions .button {
    width: 100%;
  }
  .hero-copy,
  .hero-visual,
  .section,
  .quick-answer,
  .final-cta {
    max-width: 100%;
  }
  .visual-ribbon {
    max-width: calc(100% - 28px);
    white-space: normal;
    line-height: 1.35;
  }
  .hero-actions .button { width: 100%; }
  .hero-tools-row { grid-template-columns: 1fr; }
  .campaign-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .section { padding: 18px; }
  .sticky-cta {
    bottom: 8px;
    background: rgba(255,255,255,.96);
    border: 2px solid rgba(255, 75, 87, .18);
  }
  .sticky-cta a:first-of-type {
    background: linear-gradient(135deg, var(--red), #ff7a4a);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 75, 87, .28);
  }
  .sticky-cta a:last-child {
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--line);
  }
}
