/* ポイミル — design 1b (lavender × magazine). PC-first: base = ≥1024px, then tablet (≤1023) and SP (≤767, the 390px mock).
   Bump ASSET_VERSION in src/views/assets.ts whenever this file changes. */

/* ---------- tokens ---------- */
:root {
  --bg: oklch(0.985 0.008 300);
  --primary: oklch(0.68 0.13 300);
  --primary-600: oklch(0.55 0.13 300);
  --primary-700: oklch(0.5 0.12 300);
  --primary-800: oklch(0.45 0.13 300);
  --tint: oklch(0.93 0.04 300);
  --tint-2: oklch(0.95 0.02 300);
  --tint-3: oklch(0.975 0.01 300);
  --tint-article: oklch(0.9 0.04 300);
  --line: oklch(0.94 0.01 300);
  --line-2: oklch(0.92 0.02 300);
  --line-3: oklch(0.93 0.02 300);
  --line-input: oklch(0.9 0.03 300);
  --stripe-a: oklch(0.94 0.01 300);
  --stripe-b: oklch(0.97 0.005 300);
  --red: oklch(0.6 0.18 25);
  /* Red for small text (円 units, 13–15px amounts, notes) and white-on-red buttons / chips: --red is 4.3:1 on white,
     below AA 4.5:1 under 18.66px bold. 5.1:1 on white, 4.7:1 on --tint-3. Large amounts keep the design's --red. */
  --red-ink: oklch(0.56 0.18 25);
  /* 最大 badge (D5): darker than --red so its 10–13px text reaches AA 4.5:1 on its tint. */
  --max-ink: oklch(0.48 0.16 25);
  --max-bg: oklch(0.96 0.025 25);
  --marker: oklch(0.9 0.12 90);
  --text: #3a3344;
  --text-body: #4a4254;
  --text-sub: #5a5264;
  /* Small secondary text. Darker than the design's #8a8292 (3.0–3.7:1) so it reaches WCAG AA 4.5:1 on
     white, --bg and every --tint*. */
  --muted: #6b6475;
  --gold: #f7c948;
  --silver: #c9ced6;
  --bronze: #d9a06b;
  --rank-plain: #f1eeea;
  --rank-ink: #3a3030;
  --rank-plain-ink: #6b6b6b;
  --surface: #fff;
  --mascot-shadow: drop-shadow(0 16px 24px oklch(0.6 0.1 300 / 0.3));
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --page-max: 1280px;
  --gutter: 48px;
  --pill: 999px;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
input,
button,
select {
  font: inherit;
  color: inherit;
}
img {
  max-width: 100%;
}
small {
  font-size: inherit;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  background: var(--surface);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
}
.accent {
  color: var(--red-ink);
}
/* On the lavender bubble even --red-ink is 4.1:1; the 最大 badge's ink reaches 5.7:1 there. */
.mascot-note__bubble .accent {
  color: var(--max-ink);
}
@media (min-width: 768px) {
  .sp-only {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .pc-only {
    display: none !important;
  }
}

/* Centered page-width blocks. */
.site-header__inner,
.crumbs,
.sites-row,
.layout-2col,
.list-layout,
.site-footer__inner,
.site-footer__pr,
.page-wrap,
.error-page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: relative;
}
.site-main {
  flex: 1 0 auto;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand__name {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.gnav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}
/* 40px-tall targets without moving the text (WCAG 2.5.8 asks for 24px). */
.gnav a {
  display: block;
  padding-block: 10px;
}
.gnav a.is-active {
  color: var(--primary-600);
}
.search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--pill);
  padding: 4px 4px 4px 16px;
  border: 1.5px solid var(--line-input);
  width: 280px;
}
/* The input drops its own outline; the ring sits on the form so it shows on every variant (the SP hero has no border). */
.search:focus-within {
  border-color: var(--primary);
  outline: 3px solid var(--primary-600);
  outline-offset: 2px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search input::placeholder {
  color: var(--muted);
}
.search button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: none;
}
.spmenu {
  display: none;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  padding-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crumbs__list li {
  display: flex;
  gap: 8px;
}
.crumbs__list li {
  align-items: center;
}
.crumbs__list li + li::before {
  content: '›';
}
.crumbs__list a {
  display: inline-block;
  padding-block: 4px;
  line-height: 18px;
}
.crumbs__current {
  color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line-3);
  color: var(--text-sub);
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 28px 14px;
}
.site-footer__brand {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.site-footer__links {
  display: flex;
  gap: 4px 12px;
  flex-wrap: wrap;
}
.site-footer__links a {
  display: inline-block;
  padding: 8px 4px;
  line-height: 18px;
}
.site-footer__pr {
  padding-bottom: 24px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- shared bits ---------- */
.btn {
  display: inline-block;
  border-radius: var(--pill);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
/* White text sits on --primary-600 (5.1:1); --primary (3.0:1) stays for non-text accents. */
.btn--primary {
  background: var(--primary-600);
  color: #fff;
}
.btn--white {
  background: var(--surface);
  color: var(--text);
}
.card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 24px;
}
.marker {
  background: linear-gradient(transparent 60%, var(--marker) 60%);
}
.yen {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--red);
  white-space: nowrap;
}
.yen__num,
.yen__unit {
  font-weight: 700;
}
.yen__unit {
  color: var(--red-ink);
}
.yen--row .yen__unit {
  color: inherit;
}
.site-row.is-top .yen--row .yen__unit {
  color: var(--red-ink);
}
/* 最大 badge (D5): the site lists the amount as an up-to amount (e.g. every step of a multi-step app offer). */
.badge-max {
  display: inline-block;
  flex: none;
  margin-right: 3px;
  padding: 0 4px;
  border: 1px solid oklch(0.85 0.07 25);
  border-radius: 4px;
  background: var(--max-bg);
  color: var(--max-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.1em;
  white-space: nowrap;
}
.yen > .badge-max {
  margin-right: 0;
  align-self: center;
}
.yen--xl > .badge-max,
.yen--row > .badge-max,
.site-row__reward > .badge-max {
  font-size: 11px;
}
/* .yen--row is inline (no flex gap) */
.yen--row > .badge-max {
  margin-right: 4px;
}
.yen--hero > .badge-max {
  font-size: 13px;
  padding: 1px 6px;
}
/* FE-3: the site's own wording after a normalized percent, e.g. 1%（2.0%mile）. */
.reward-wording {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}
.rank {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  background: var(--rank-plain);
  color: var(--rank-plain-ink);
}
.rank--gold {
  background: var(--gold);
  color: var(--rank-ink);
}
.rank--silver {
  background: var(--silver);
  color: var(--rank-ink);
}
.rank--bronze {
  background: var(--bronze);
  color: var(--rank-ink);
}
.rank--xs {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 10px;
}
.rank--lg {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 18px;
}
/* Offer images are mostly wide banners with text: show them whole (contain) on white, framed by a hairline. */
.thumb {
  display: block;
  flex: none;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
}
.thumb--empty {
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 6px, var(--stripe-b) 6px 12px);
}
.favicon {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}
.favicon--text {
  display: grid;
  place-items: center;
  background: var(--tint-2);
  color: var(--primary-700);
  font-size: 10px;
  font-weight: 700;
}
.site-banner {
  display: block;
  flex: none;
  object-fit: cover;
  background: var(--surface);
}
/* Designed text banner for sites without a banner image (pending real banners): the name on one or two lines,
   sized from its longest line (--chars, set inline) and the banner width (--banner-w, per context below). */
.site-banner--text,
.site-banner--mark {
  --banner-w: 120px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--surface) 55%, var(--tint-2));
  color: var(--primary-800);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.site-banner--text {
  padding: 2px 4px;
  font-size: min(calc((var(--banner-w) - 9px) / (var(--chars, 6) + 0.25)), calc(var(--banner-w) / 6));
  line-height: 1.15;
  letter-spacing: 0.02em;
}
/* The name is printed right next to it: an initial tile, not the name twice. */
.site-banner--mark {
  font-size: calc(var(--banner-w) / 4.2);
  line-height: 1;
}
/* Names rendered by SiteName / CategoryName: lines break only at their <wbr> (after ・, around ポイント). */
.site-row__site,
.site-card__name,
.site-hero__title,
.site-links__name,
.cat-tile,
.side-nav__name,
.chip-cloud .chip {
  word-break: keep-all;
}
.chip-cat,
.chip-up,
.chip-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--pill);
  padding: 2px 8px;
}
.chip-cat {
  color: var(--primary-700);
  background: var(--tint-2);
}
.chip-up {
  color: #fff;
  background: var(--red-ink);
}
.chip-tag--device {
  color: var(--text-sub);
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 1px 7px;
}
.chip-tag--ended {
  color: #fff;
  background: var(--rank-plain-ink);
}
/* 「すぐ申し込める」 (src/lib/access.ts): why a card of 「すべて」 is not on the default tab (--max-ink on white 7.1:1). */
.chip-tag--reason {
  color: var(--max-ink);
  background: var(--surface);
  border: 1px solid currentColor;
  padding: 1px 7px;
}
.pill-up {
  background: var(--red-ink);
  color: #fff;
  font-size: 11px;
  border-radius: var(--pill);
  padding: 3px 8px;
}
.chip {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 7px 12px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
.chip.is-active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

/* ---------- section headings ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.sec-title {
  font-size: 24px;
  font-weight: 700;
}
.sec-title--md {
  font-size: 20px;
}
.sec-title--detail {
  font-size: 22px;
}
.sec-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-600);
  white-space: nowrap;
}
.sec-link--rss {
  flex: none;
  padding: 4px 0;
}
.sec-note {
  font-size: 12px;
  color: var(--muted);
}
.muted-note {
  font-size: 14px;
  color: var(--muted);
}
/* The top page's 「投資・ローン・年収や地域の条件がある案件は除いています」 under 「すぐ申し込める高単価」. */
.sec-note--lead {
  margin: -8px 0 12px;
}
.sec-more {
  margin-top: 12px;
  text-align: right;
}

/* ---------- 2-column page (main + 320px sidebar) ---------- */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-block: 8px 56px;
}
.side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ---------- sidebar widgets ---------- */
.widget {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
}
.widget__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget__more {
  display: block;
  text-align: center;
  /* the same space above the link as below it (the widget's padding) */
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-600);
}
.trend-list,
.link-list,
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trend-list a,
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.trend-list__name,
.link-list__name {
  font-weight: 700;
}
.link-list__main {
  flex: 1 1 auto;
  min-width: 0;
}
/* iOS限定 / Android限定: a quiet line under the name (a chip inside the wrapping name looked cluttered). */
.link-list__device {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-sub);
}
.trend-list__nums {
  flex: none;
  text-align: right;
}
.trend-list__diff,
.link-list__yen {
  flex: none;
  font-weight: 700;
  color: var(--red-ink);
}
.trend-list--yen,
.link-list--divided {
  gap: 12px;
}
.trend-list--yen a,
.link-list--divided a {
  align-items: center;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 10px;
}
.trend-list--yen .trend-list__name,
.link-list--divided .link-list__name {
  line-height: 1.4;
}
.link-list__sites {
  display: block;
  margin-top: 4px;
}
.trend-list__yen {
  display: block;
  font-size: 15px;
  color: var(--red-ink);
}
.widget__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}
.widget--variants .widget__note {
  margin-bottom: 10px;
  font-size: 12px;
}
.trend-list--yen .trend-list__diff {
  display: block;
  font-size: 11px;
  font-weight: 400;
}
.link-list--divided .link-list__yen {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  white-space: nowrap;
}
/* 新着の案件 (top: PC sidebar, SP section): dashed rules between the rows, none under the last one. */
.link-list--rows {
  gap: 0;
}
.link-list--rows a {
  padding-block: 11px;
}
.link-list--rows > li:first-child a {
  padding-top: 0;
}
.link-list--rows > li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}
/* SP top: the list on a white card like the article cards next to it. */
.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.widget--newest .widget__more {
  margin-top: 16px;
}
.article-list a {
  display: flex;
  gap: 10px;
  align-items: center;
}
.article-thumb {
  display: block;
  flex: none;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--tint-article);
}
/* No article image: the mascot on the tint (the design's ana.png placeholder role). */
.article-thumb--empty {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), var(--tint-article));
}
.article-thumb--empty img {
  width: auto;
  height: 86%;
  object-fit: contain;
}
.article-list__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.article-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-cards a {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--line);
}
.article-cards .article-thumb {
  width: 72px;
  height: 48px;
}
.article-cards__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- top: hero ---------- */
.hero {
  width: min(100% - 2 * var(--gutter), var(--page-max) - 2 * var(--gutter));
  margin-inline: auto;
  background: var(--tint);
  border-radius: 28px;
  padding: 40px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 12px;
}
.hero__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__mascot {
  width: 340px;
  height: 340px;
  object-fit: contain;
  margin: -20px 0 -30px;
  filter: var(--mascot-shadow);
}
.hero__sp {
  display: none;
}

/* ---------- top: compared sites ---------- */
/* The label sits above the banners so all 14 sites fit one row at 1280px (inline, the 14th wrapped alone). */
.sites-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-block: 24px 28px;
}
.sites-row__label {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}
.sites-row__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sites-row__list > li {
  flex: none;
}
.site-banner--row {
  --banner-w: 76px;
  width: 76px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}

/* ---------- top: ranking cards ---------- */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.rank-card {
  height: 100%;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 64px;
  grid-template-areas:
    'badge name thumb'
    'badge price thumb'
    'badge meta thumb';
  grid-template-rows: auto auto 1fr;
  column-gap: 14px;
  align-items: start;
}
.rank-card > .rank {
  grid-area: badge;
}
.rank-card__name {
  grid-area: name;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.rank-card__price {
  grid-area: price;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.yen--lg .yen__num {
  font-size: 24px;
}
.yen--lg .yen__unit {
  font-size: 13px;
}
.rank-card__mile {
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
}
.rank-card__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
}
.rank-card__thumb {
  grid-area: thumb;
  width: 64px;
  height: 44px;
  border-radius: 10px;
}

/* ---------- top: 増量中 (the ranking's cards, under it; owner request 2026-10-13) ---------- */
.top-sec--trending {
  margin-top: 40px;
}
.top-sec--trending .sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-card__price > .chip-up {
  margin-left: 8px;
  align-self: center;
}

/* ---------- top: categories / about ---------- */
.top-sec--cats .sec-title {
  margin: 40px 0 14px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cat-tile {
  height: 100%;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
}
.cat-tile__arrow {
  color: var(--primary);
}
/* 22 categories (D1) in 3 columns leave one tile alone: the last row's tiles share its width (SP has 2 columns). */
@media (min-width: 768px) {
  .cat-grid > li:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
  .cat-grid > li:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.about-box {
  background: var(--tint-2);
  border-radius: 20px;
  padding: 24px;
}
.about-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-box p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* ---------- 案件一覧 ---------- */
.list-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: 20px 56px;
}
/* The side column scrolls with the page, as in the design: with 22 categories (D1) a sticky column was taller than
   the viewport and cut the last categories and the tip off at a hard edge. */
.list-side {
  min-width: 0;
}
.mode-toggle {
  display: flex;
  background: var(--surface);
  border-radius: var(--pill);
  padding: 4px;
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.mode-toggle a {
  flex: 1;
  border-radius: var(--pill);
  padding: 9px 4px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.mode-toggle a.is-active {
  background: var(--primary-600);
  color: #fff;
}
.side-nav {
  background: var(--surface);
  border-radius: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.side-nav a.is-active {
  background: var(--tint);
  color: var(--primary-800);
}
.side-nav--cats a {
  padding-block: 7px;
  line-height: 1.45;
}
.side-nav__count {
  flex: none;
  font-weight: 500;
  opacity: 0.7;
}
.side-nav--rank a {
  display: block;
  padding: 12px;
}
.side-nav--rank .side-nav__name,
.side-nav__desc {
  display: block;
}
.side-nav__desc {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 2px;
}
.tip {
  margin-top: 20px;
  background: var(--tint);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tip__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.tip p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}
.list-main {
  min-width: 0;
}
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}
.page-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.sort-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  font-weight: 700;
}
.sort-chips__label {
  color: var(--muted);
}
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  container-type: inline-size;
}

/* 案件 card (list / search) */
.offer-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  overflow: hidden;
}
.offer-card__main {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 30px 84px minmax(0, 1fr);
  grid-template-areas:
    'badge thumb chips'
    'badge thumb name'
    'badge thumb price'
    'badge thumb cta';
  column-gap: 16px;
  align-items: start;
  align-content: start;
}
.offer-card--norank .offer-card__main {
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    'thumb chips'
    'thumb name'
    'thumb price'
    'thumb cta';
}
.offer-card__main > .rank {
  grid-area: badge;
}
.offer-card__thumb {
  grid-area: thumb;
  width: 84px;
  height: 56px;
  border-radius: 12px;
}
.offer-card__chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.offer-card__chips:empty {
  display: none;
}
.offer-card__name {
  grid-area: name;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.offer-card__price {
  grid-area: price;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.offer-card__label {
  font-size: 12px;
  color: var(--muted);
}
.offer-card__price > .badge-max {
  align-self: center;
  margin-right: 2px;
  font-size: 11px;
}
.yen--xl .yen__num {
  font-size: 30px;
}
.yen--xl .yen__unit {
  font-size: 14px;
}
.offer-card__mile {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
/* 「実質 約16,000円（年会費の目安11,000円）」「入金5万円（戻るお金）」: its own line under the amount. Its two parts wrap as
   units (NoteText), so a narrow column breaks before the bracket, not inside an amount. */
.offer-card__note {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--text-sub);
}
.offer-card__note > span,
.rank-card__note > span {
  display: inline-block;
}
.rank-card--note {
  grid-template-areas:
    'badge name thumb'
    'badge price thumb'
    'badge note thumb'
    'badge meta thumb';
  grid-template-rows: auto auto auto 1fr;
}
.rank-card__note {
  grid-area: note;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}
.offer-card__cta {
  grid-area: cta;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: var(--primary-600);
  color: #fff;
  border-radius: var(--pill);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}
.offer-card__cta--quiet {
  background: var(--surface);
  color: var(--primary-700);
  border: 1px solid var(--line-2);
}
.offer-card__price--status {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-sub);
}
.offer-card__price--status b {
  font-size: 15px;
  color: var(--text);
}
.offer-card__sites {
  background: var(--tint-3);
  padding: 14px 20px;
  border-left: 1px solid var(--line);
}
.offer-card__sites-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.mini-rank li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12px;
}
.mini-rank__site {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-rank__yen {
  white-space: nowrap;
}
.mini-rank li.is-top .mini-rank__yen {
  color: var(--red-ink);
}
.offer-card__count {
  display: none;
}
.offer-card__sites--note {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* Compact card: SP and any list column narrower than the two-panel design. */
@container (max-width: 719px) {
  .offer-card {
    display: block;
    border-radius: 18px;
  }
  .offer-card__main {
    padding: 14px;
    grid-template-columns: 28px minmax(0, 1fr) 60px;
    grid-template-areas:
      'badge chips thumb'
      'badge name thumb'
      'badge price thumb';
    column-gap: 12px;
  }
  .offer-card--norank .offer-card__main {
    grid-template-columns: minmax(0, 1fr) 60px;
    grid-template-areas:
      'chips thumb'
      'name thumb'
      'price thumb';
  }
  .offer-card__main > .rank {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px;
  }
  .offer-card__thumb {
    width: 60px;
    height: 42px;
    border-radius: 10px;
  }
  .offer-card__chips {
    gap: 4px;
    margin-bottom: 4px;
  }
  .offer-card__chips > * {
    font-size: 10px;
    padding: 2px 7px;
  }
  .offer-card__name {
    font-size: 15px;
  }
  .offer-card__price {
    gap: 3px;
    margin-top: 6px;
  }
  .offer-card__label {
    font-size: 11px;
  }
  .offer-card .yen--xl .yen__num {
    font-size: 24px;
  }
  .offer-card .yen--xl .yen__unit {
    font-size: 12px;
  }
  /* Its own line on every compact card, so a 最大 badge or a 6-digit amount never pushes it around (cards in one
     list keep the same shape). */
  .offer-card__mile {
    flex-basis: 100%;
    font-size: 11px;
    margin-left: 0;
  }
  .offer-card__cta,
  .offer-card__sites-title {
    display: none;
  }
  .offer-card__sites {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
  }
  .mini-rank {
    display: contents;
  }
  .mini-rank li {
    gap: 4px;
    padding: 4px 8px 4px 4px;
    background: var(--surface);
    border: 1px solid var(--line-3);
    border-radius: var(--pill);
    font-size: 11px;
  }
  .mini-rank li:nth-child(n + 4),
  .mini-rank .favicon,
  .mini-rank__unit {
    display: none;
  }
  .mini-rank .rank--xs {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    font-size: 9px;
  }
  .mini-rank__site {
    flex: none;
  }
  .offer-card__count {
    display: block;
    margin-left: auto;
    color: var(--primary-600);
    font-weight: 700;
  }
}

/* pager */
.pager {
  margin-top: 28px;
}
.pager__pc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.pager__num,
.pager__step,
.pager__gap {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.pager__num,
.pager__step {
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.pager__step {
  padding: 0 16px;
}
.pager__num.is-current {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}
.pager__sp {
  display: none;
}

/* empty state */
.empty {
  margin-top: 16px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
}
.empty__img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.empty__title {
  font-weight: 700;
  font-size: 16px;
}
.empty__body {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}
.empty__body a {
  color: var(--primary-600);
  font-weight: 700;
}

/* ---------- 案件詳細 ---------- */
.detail-layout {
  padding-top: 20px;
}
.detail-main {
  min-width: 0;
}
.offer-hero {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  grid-template-areas:
    'thumb head'
    'thumb stats';
  column-gap: 28px;
}
.offer-hero__thumb {
  grid-area: thumb;
  align-self: center;
  width: 160px;
  height: 110px;
  border-radius: 16px;
}
.offer-hero__thumb.thumb--empty {
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
}
.offer-hero__head {
  grid-area: head;
  align-self: end;
}
.offer-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.offer-hero__chips .chip-cat {
  font-size: 12px;
  padding: 3px 10px;
}
.offer-hero__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}
.offer-hero__stats {
  grid-area: stats;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 28px;
  row-gap: 8px;
}
.stat__label {
  font-size: 12px;
  color: var(--muted);
}
.yen--hero .yen__num {
  font-size: 40px;
  line-height: 1.1;
}
.yen--hero .yen__unit {
  font-size: 16px;
}
.stat--mile,
.stat--meta {
  padding-bottom: 6px;
}
.stat__mile {
  font-size: 22px;
}
.stat__mile span {
  font-size: 13px;
}
.stat__count {
  font-size: 30px;
  line-height: 1.2;
}
.stat__count span {
  font-size: 14px;
}
.stat--meta {
  font-size: 12px;
  color: var(--muted);
}
.mascot-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mascot-note__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: none;
}
.mascot-note__bubble {
  background: var(--tint);
  border-radius: 4px 20px 20px 20px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
.hitokoto {
  margin-top: 20px;
}
.detail-sec .sec-head {
  gap: 12px;
  margin: 36px 0 14px;
}
.detail-sec > .sec-title--md {
  margin: 40px 0 12px;
}
.site-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  container-type: inline-size;
}
.site-row {
  background: var(--surface);
  border-radius: 20px;
  border: 1.5px solid var(--line);
  display: grid;
  grid-template-columns: 56px 150px minmax(0, 1fr) 170px 180px;
  grid-template-areas: 'rank banner name price actions';
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.site-row.is-top {
  border-color: var(--gold);
}
.site-row--plain {
  grid-template-columns: 150px minmax(0, 1fr) 170px 180px;
  grid-template-areas: 'banner name price actions';
}
.site-row > .rank {
  grid-area: rank;
}
.site-row__banner {
  --banner-w: 120px;
  grid-area: banner;
  width: 120px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--line-3);
}
.site-row__name {
  grid-area: name;
  min-width: 0;
}
.site-row__site {
  display: block;
  font-weight: 700;
  font-size: 17px;
}
.site-row__note {
  font-size: 12px;
  color: var(--muted);
}
/* 条件が違う掲載, and a site with two rows in the ranking: the listing's own title (on SP too, like the note). */
.site-row__cond {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sub);
}
.other-tier__lead {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}
.site-row__price {
  grid-area: price;
  text-align: right;
}
.site-row__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.yen--row {
  display: inline;
  color: var(--text);
}
.site-row.is-top .yen--row {
  color: var(--red);
}
.yen--row .yen__num {
  font-size: 26px;
}
.yen--row .yen__unit {
  font-size: 13px;
}
.site-row__mile {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
/* The CTA column (design 「案件詳細 ランキングCTA 1a」, 2026-10-12): 「お得に登録する」 (/join), the optional join bonus
   line, then the small 「登録済みの方はこちら」 (/go); a site without a referral URL has the plain /go button only. */
.site-row__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: center;
}
.btn-go {
  display: block;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--line-2);
  border-radius: var(--pill);
  padding: 12px 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
/* 1位's 「お得に登録する」: the design's oklch(0.56 0.18 25) is --red-ink (white text 5.1:1, WCAG AA). The plain /go
   button of a site without a referral URL stays white on every row. */
.btn-go--top {
  background: var(--red-ink);
  border-color: var(--red-ink);
  color: #fff;
}
.site-row__reward {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}
/* 入会特典 (sites.join_bonus_note): the design's oklch(0.48 0.16 25) is --max-ink (7.1:1 on white). A note longer
   than one line (about 16 characters in the 180px PC column) wraps into lines of even length, not one lone character. */
.site-row__bonus {
  display: block;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  color: var(--max-ink);
  text-wrap: balance;
}
/* A 24px+ target (WCAG 2.5.8), kept apart from the main button above it. */
.site-row__registered {
  display: block;
  padding: 5px 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Hover: the global `a:hover { opacity: 0.85 }` would take the CTA text below AA (white on --red-ink 5.1 → 4.0:1,
   --primary-600 5.1 → 3.8:1), so these keep full opacity and darken instead (white on --max-ink 7.1:1,
   --primary-800 on white 7.9:1). */
.btn-go:hover,
.site-row__registered:hover {
  opacity: 1;
}
.btn-go:hover {
  border-color: var(--primary-600);
}
.btn-go--top:hover {
  background: var(--max-ink);
  border-color: var(--max-ink);
}
.site-row__registered:hover {
  color: var(--primary-800);
}
.site-rank__more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.site-rank__more[hidden] {
  display: none;
}
@media (min-width: 768px) {
  .site-rank__more {
    display: none;
  }
}
/* The five fixed tracks + gaps take ~663px. Stacking below 820px keeps the name column ≥ ~157px (tablets and
   1024–1230px desktops used to squeeze it to <100px) while the 824px main column at 1280px keeps the design. */
@container (max-width: 819px) {
  .site-row {
    grid-template-columns: 34px 72px minmax(0, 1fr) auto;
    grid-template-areas:
      'rank banner name name'
      'price price price actions';
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }
  .site-row > .rank {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
  }
  .site-row--plain {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      'banner name name'
      'price price actions';
  }
  .site-row__banner {
    --banner-w: 72px;
    width: 72px;
    height: 36px;
    border-radius: 8px;
  }
  .site-row__site {
    font-size: 15px;
  }
  .site-row__price {
    align-self: end;
    text-align: left;
  }
  .site-row__label {
    display: none;
  }
  .yen--row .yen__num {
    font-size: 24px;
  }
  .yen--row .yen__unit {
    font-size: 12px;
  }
  .site-row__mile {
    font-size: 11px;
  }
  .site-row__actions {
    align-self: end;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
  }
  .btn-go {
    padding: 11px 16px;
    font-size: 13px;
  }
  .site-row__bonus {
    padding-top: 4px;
  }
  /* 7 + 16 + 2 = 25px tall (WCAG 2.5.8), as in the design's SP card. */
  .site-row__registered {
    padding: 7px 6px 2px;
  }
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}
.footnote--max .badge-max {
  margin-right: 0;
}
.text-box {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-body);
}
.text-box__seo {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.ended-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--tint-2);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.ended-banner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
.notice-banner {
  background: var(--tint);
}
.ended-banner__title {
  font-weight: 700;
  font-size: 16px;
}
.ended-banner__body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ---------- error pages ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 40px 72px;
}
.error-page__img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: var(--mascot-shadow);
}
.error-page__code {
  margin-top: 8px;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--primary);
}
.error-page__title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
}
.error-page__body {
  margin-top: 10px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}
.search--page {
  margin-top: 20px;
  width: min(100%, 360px);
}
.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.error-page .btn--white {
  border: 1px solid var(--line-2);
}

/* ---------- long-form text (articles, static pages) ---------- */
.prose {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
}
.prose h3 {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose a {
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose img {
  height: auto;
  border-radius: 16px;
}
.prose blockquote {
  margin: 1em 0 0;
  padding: 12px 16px;
  background: var(--tint-2);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose th,
.prose td {
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- part 2: shared ---------- */
.main-col {
  min-width: 0;
}
.page-wrap {
  padding-block: 20px 56px;
}
.search-layout,
.site-layout,
.articles-layout,
.article-layout,
.static-layout {
  padding-top: 20px;
}
.page-head {
  margin-bottom: 20px;
}
.page-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}
.btn--join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--line-2);
  padding: 11px 16px;
  font-size: 13px;
}
/* The top page's referral banner (src/views/pages/top.tsx HapitasBanner): a square image, PR in its corner. */
.promo-banner {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin-inline: auto;
}
.promo-banner a {
  display: block;
  border-radius: 20px;
}
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.promo-banner__pr {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface);
  pointer-events: none;
}
.pr-label {
  display: inline-block;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted);
  vertical-align: 1px;
}
.chip-best {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--pill);
  padding: 2px 8px;
  background: var(--gold);
  color: var(--rank-ink);
}
.chip-tag--draft {
  color: oklch(0.42 0.1 60);
  background: oklch(0.95 0.06 85);
  border: 1px solid oklch(0.86 0.1 85);
  padding: 1px 7px;
}
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-cloud .chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  white-space: normal;
}
.note-box {
  margin-top: 32px;
  background: var(--tint-2);
  border-radius: 20px;
  padding: 24px;
}
.note-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.note-box__list {
  list-style: disc;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sub);
}
.site-links {
  display: flex;
  flex-direction: column;
}
.site-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.site-links li:last-child a {
  border-bottom: 0;
}
.site-links__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}
.site-links__count {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}
.info-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-nav a {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.info-nav a.is-active {
  background: var(--tint);
  color: var(--primary-800);
}
.cta-box {
  background: var(--tint);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}
.cta-box__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
}
.cta-box__text {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- search ---------- */
.search-head .search--page {
  margin-top: 14px;
  width: min(100%, 520px);
}

/* ---------- ポイントサイト一覧 / 詳細 ---------- */
.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.site-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 20px;
}
.site-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-card__banner,
.site-hero__banner {
  width: 120px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--line-3);
}
.site-card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.site-stats {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.site-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.site-stats dt {
  flex: none;
  color: var(--muted);
}
.site-stats dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.site-stats b {
  font-size: 18px;
  color: var(--red-ink);
  margin-right: 2px;
}
.site-stats__pending {
  color: var(--muted);
  font-weight: 700;
}
.site-stats__partial {
  margin-left: 2px;
  font-size: 12px;
}
.site-card__banner {
  --banner-w: 120px;
}
/* One button layout on every card: stacked, full width (long site names used to stack only some cards). */
.site-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-card__actions .btn {
  padding: 11px 16px;
  font-size: 13px;
}
.site-card__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.site-index {
  margin-bottom: 14px;
}
.site-index .chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}
.site-cards > li {
  scroll-margin-top: 12px;
}
.site-hero {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  grid-template-areas:
    'banner title actions'
    'banner stats actions';
  align-items: center;
  gap: 8px 24px;
}
.site-hero__banner {
  --banner-w: 160px;
  grid-area: banner;
  width: 160px;
  height: 80px;
  border-radius: 14px;
}
.site-hero__title {
  grid-area: title;
  align-self: end;
  min-width: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}
.site-stats--hero {
  grid-area: stats;
  align-self: start;
  min-width: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.site-stats--hero > div {
  display: block;
  padding: 0;
  border: 0;
}
.site-stats--hero dt {
  font-size: 12px;
}
.site-stats--hero dd {
  font-size: 15px;
  text-align: left;
}
.site-hero__actions {
  grid-area: actions;
}
.site-offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  container-type: inline-size;
}
.site-offer {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 30px 84px minmax(0, 1fr) auto;
  grid-template-areas: 'badge thumb body price';
  align-items: center;
  column-gap: 16px;
}
.site-offer > .rank {
  grid-area: badge;
  align-self: start;
}
.site-offer__thumb {
  grid-area: thumb;
  width: 84px;
  height: 56px;
  border-radius: 12px;
}
.site-offer__body {
  grid-area: body;
  min-width: 0;
}
.site-offer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.site-offer__chips:empty {
  display: none;
}
.site-offer__name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.site-offer__compare {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.site-offer.is-top .site-offer__compare {
  color: var(--red-ink);
  font-weight: 700;
}
.site-offer__price {
  grid-area: price;
  text-align: right;
}
.site-offer__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.site-offer__mile {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
@container (max-width: 619px) {
  .site-offer {
    padding: 14px;
    border-radius: 18px;
    grid-template-columns: 28px minmax(0, 1fr) 60px;
    grid-template-areas:
      'badge body thumb'
      'badge price price';
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }
  .site-offer > .rank {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px;
  }
  .site-offer__thumb {
    width: 60px;
    height: 42px;
    border-radius: 10px;
  }
  .site-offer__chips {
    gap: 4px;
    margin-bottom: 4px;
  }
  .site-offer__chips > * {
    font-size: 10px;
    padding: 2px 7px;
  }
  .site-offer__name {
    font-size: 15px;
  }
  .site-offer__compare {
    font-size: 11px;
  }
  .site-offer__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    text-align: left;
  }
  .site-offer__label {
    display: inline;
  }
  .site-offer .yen--xl .yen__num {
    font-size: 24px;
  }
  .site-offer .yen--xl .yen__unit {
    font-size: 12px;
  }
  .site-offer__mile {
    display: inline;
    font-size: 11px;
    margin-top: 0;
  }
}

/* ---------- 記事 ---------- */
.article-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 16px;
}
.article-thumb.article-card__thumb {
  width: 200px;
  height: 132px;
  border-radius: 14px;
}
.article-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
.article-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.article-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.article-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.article-date {
  font-size: 12px;
  color: var(--muted);
}
.article-main {
  min-width: 0;
}
.article-head {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.article-head--thumb {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.article-head__thumb {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--tint-article);
}
.article-head__text {
  min-width: 0;
}
.article-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
}
.article-meta {
  margin-top: 10px;
}
.article-meta .article-date {
  font-size: 13px;
}
.article-body {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 32px;
}
.article-note {
  margin-top: 24px;
}
.article-note a {
  color: var(--primary-600);
  font-weight: 700;
}
.toc {
  background: var(--tint-2);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.toc__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.toc__list {
  list-style: decimal;
  padding-left: 1.4em;
  font-size: 14px;
  line-height: 1.9;
}
.toc__list a {
  color: var(--primary-700);
}
.draft-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: oklch(0.97 0.04 85);
  border: 1.5px solid oklch(0.86 0.1 85);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}
.draft-banner__tag {
  flex: none;
  background: oklch(0.55 0.14 60);
  color: #fff;
  border-radius: var(--pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.prose > :first-child {
  margin-top: 0;
}
.prose img {
  display: block;
  max-width: 100%;
}
.prose code {
  background: var(--tint-2);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.92em;
}
.prose pre {
  overflow-x: auto;
  background: var(--tint-3);
  border-radius: 12px;
  padding: 14px 16px;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose hr {
  border: 0;
  border-top: 1px dashed var(--line-2);
}
.prose strong {
  color: var(--text);
}
.table-scroll {
  overflow-x: auto;
}

/* ---------- 静的ページ ---------- */
.static-main {
  min-width: 0;
}
.static-head {
  margin-bottom: 20px;
}
.static-head__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 6px;
}
.static-head__lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}
.static-sec {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
}
.static-sec + .static-sec {
  margin-top: 16px;
}
.static-sec > h2:first-child {
  margin-top: 0;
  font-size: 20px;
}
.static-sec h3 {
  margin-top: 24px;
  font-size: 16px;
}
.static-note {
  font-size: 13px;
  color: var(--muted);
}
.info-table,
.glossary {
  margin: 0;
}
.info-table > div,
.glossary > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-2);
}
.info-table dt,
.glossary dt {
  font-weight: 700;
  color: var(--text);
}
.info-table dd,
.glossary dd {
  margin: 0;
}
.prose .steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 48px;
  min-height: 34px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-600);
  color: #fff;
  font-weight: 900;
}
.steps__title {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.steps__body {
  display: block;
  font-size: 14px;
  line-height: 1.8;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--tint-3);
}
.faq__q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
}
.faq__item[open] .faq__q::after {
  content: '−';
}
.faq__a {
  padding: 0 16px 14px;
  font-size: 14px;
}

/* =================================================================
   1024–1279: narrower desktop
   ================================================================= */
@media (min-width: 1024px) and (max-width: 1279px) {
  .layout-2col {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
  .site-header__inner {
    gap: 24px;
  }
  .gnav {
    gap: 18px;
  }
  .site-header__inner > .search {
    width: 240px;
  }
}

/* =================================================================
   Tablet: 768–1023
   ================================================================= */
@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
  }
  .site-header__inner {
    gap: 18px;
  }
  .brand__name {
    font-size: 24px;
  }
  .gnav {
    gap: 14px;
    font-size: 13px;
  }
  .site-header__inner > .search {
    width: 180px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding: 32px 40px;
  }
  .hero__title {
    font-size: 30px;
  }
  .hero__mascot {
    width: 220px;
    height: 220px;
    margin: 0;
  }
  .layout-2col {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .list-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
  .list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .offer-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 20px;
  }
  .offer-hero__thumb {
    width: 120px;
    height: 84px;
  }
  .offer-hero__title {
    font-size: 26px;
  }
}

/* =================================================================
   SP: ≤767 (design 2d / 2e / 2f at 390px)
   ================================================================= */
@media (max-width: 767px) {
  :root {
    --gutter: 14px;
  }

  /* header */
  .site-header__inner {
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
  }
  .brand {
    gap: 8px;
  }
  .brand__logo {
    width: 36px;
    height: 36px;
  }
  .brand__name {
    font-size: 22px;
    letter-spacing: 0;
  }
  .gnav,
  .site-header__inner > .search {
    display: none;
  }
  .spmenu {
    display: block;
  }
  .spmenu__toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    list-style: none;
    border-radius: 12px;
  }
  .spmenu__toggle::-webkit-details-marker {
    display: none;
  }
  .burger {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    box-shadow:
      0 -6px 0 var(--text),
      0 6px 0 var(--text);
  }
  .spmenu[open] .burger {
    background: transparent;
    box-shadow: none;
  }
  .spmenu[open] .burger::before,
  .spmenu[open] .burger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: rotate(45deg);
  }
  .spmenu[open] .burger::after {
    transform: rotate(-45deg);
  }
  .spmenu__panel {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 40px oklch(0.3 0.05 300 / 0.14);
  }
  .search--menu {
    width: auto;
  }
  .spmenu__nav {
    display: flex;
    flex-direction: column;
  }
  .spmenu__nav a {
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
  }
  .spmenu__nav a.is-active {
    background: var(--tint);
    color: var(--primary-800);
  }

  /* breadcrumbs */
  .crumbs {
    padding: 0 18px;
    font-size: 11px;
  }
  .crumbs__list {
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
  }
  .crumbs__list li {
    gap: 6px;
  }
  .crumbs__current {
    min-width: 0;
  }
  .crumbs__current span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* footer */
  .site-footer {
    font-size: 12px;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px 10px;
    text-align: center;
  }
  .site-footer__brand {
    display: none;
  }
  .site-footer__links {
    justify-content: center;
    gap: 0 8px;
  }
  .site-footer__links a {
    padding: 13px 6px;
  }
  .site-footer__pr {
    padding: 0 18px 20px;
    font-size: 10px;
  }

  /* shared */
  .rank {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px;
  }
  .rank--xs {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    font-size: 9px;
  }
  .rank--lg {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
  }
  .widget {
    border-radius: 16px;
    padding: 16px;
  }
  .widget__more {
    margin-top: 16px;
  }
  .widget__title {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .pill-up {
    font-size: 10px;
    padding: 2px 7px;
  }
  .layout-2col {
    display: block;
    padding: 0 14px 24px;
  }
  .side-col {
    display: flex;
    margin-top: 24px;
  }

  /* top */
  .hero {
    width: auto;
    margin: 0 14px;
    display: block;
    border-radius: 24px;
    padding: 22px 20px 0;
  }
  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .hero__title {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 0;
  }
  .hero__lead,
  .hero__ctas,
  .hero__mascot {
    display: none;
  }
  .hero__sp {
    display: block;
    margin-top: 26px;
  }
  /* The three points and the mascot (owner request 2026-10-13), then the search at full width. */
  .hero__sp-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
  }
  /* Three equal columns, so the icons are evenly spaced whatever the length of their text. */
  .hero__points {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 4px;
  }
  .hero__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .hero__point-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 2px 8px oklch(0.6 0.1 300 / 0.16);
  }
  .hero__point-icon--search,
  .hero__point-icon--crown {
    color: var(--primary-600);
  }
  .hero__point-icon--yen {
    color: oklch(0.78 0.15 70);
  }
  .hero__spark {
    position: absolute;
    top: -7px;
    left: -7px;
    color: var(--gold);
  }
  /* Sized to the column (about a third of 75vw - 54px): the longest line, 「もっとかんたんに」, still fits. */
  .hero__point-text {
    font-size: clamp(9px, calc(3vw - 2.4px), 11px);
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
  }
  .search--hero {
    flex: 1;
    /* May shrink below the input's intrinsic width (size=20): Safari gives it ~20 wide Japanese characters, which pushed
       the mascot out of the hero on an iPhone (2026-10-13). */
    min-width: 0;
    width: auto;
    border: 0;
    padding: 4px 4px 4px 14px;
    margin-bottom: 20px;
  }
  .search--hero button {
    width: 30px;
    height: 30px;
  }
  .hero__sp-mascot {
    flex: none;
    width: clamp(78px, 25vw, 104px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: -24px -12px 0 -8px;
  }
  /* The narrowest phones (320px): smaller icons, text and mascot, so the three points stay clear of the mascot. */
  @media (max-width: 359px) {
    .hero__point-icon {
      width: 38px;
      height: 38px;
    }
    .hero__point-text {
      font-size: 8.5px;
    }
    .hero__sp-mascot {
      width: 64px;
      margin-top: -12px;
    }
  }
  .sites-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding: 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sites-row::-webkit-scrollbar {
    display: none;
  }
  .sites-row__label {
    display: none;
  }
  .sites-row__list {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-banner--row {
    --banner-w: 72px;
    width: 72px;
    height: 36px;
  }
  /* Sections stack in DOM order (増量中 right after the ranking), so reading and focus order match what is seen;
     every sidebar widget is PC-only. */
  .top-layout__main {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .top-layout__aside {
    display: none;
  }
  .top-sec--trending {
    margin-top: 0;
  }
  .top-sec .sec-head {
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .top-sec--ranking .sec-title,
  .top-sec--trending .sec-title {
    font-size: 18px;
  }
  .top-sec .sec-title--md,
  .top-sec--cats .sec-title {
    font-size: 17px;
    margin: 0 0 10px;
  }
  .sec-link {
    font-size: 12px;
  }
  .rank-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rank-grid > li:nth-child(n + 6) {
    display: none;
  }
  .rank-card {
    border-radius: 16px;
    padding: 14px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      'badge name price'
      'badge meta price';
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
  }
  .rank-card__name {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 0;
  }
  .rank-card__price {
    align-self: center;
  }
  /* The note under both the name and the amount. */
  .rank-card--note {
    grid-template-areas:
      'badge name price'
      'badge meta price'
      'badge note note';
    grid-template-rows: auto auto auto;
  }
  .rank-card .yen--lg .yen__num {
    font-size: 18px;
  }
  /* 18px is small text for WCAG (< 18.66px bold): the darker red. */
  .rank-card .yen {
    color: var(--red-ink);
  }
  .rank-card .yen--lg .yen__unit {
    font-size: 11px;
  }
  .rank-card .yen {
    gap: 0;
  }
  .rank-card .yen > .badge-max {
    margin-right: 4px;
  }
  .rank-card__mile,
  .rank-card__thumb,
  .rank-card__meta .favicon {
    display: none;
  }
  .rank-card__meta {
    margin-top: 0;
    font-size: 11px;
    color: var(--muted);
  }
  .trend-list,
  .trend-list--yen {
    gap: 8px;
  }
  .trend-list--yen a {
    align-items: baseline;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .trend-list--yen .trend-list__name {
    line-height: inherit;
  }
  .trend-list__yen {
    display: none;
  }
  .trend-list--yen .trend-list__diff {
    font-size: 13px;
    font-weight: 700;
  }
  .trend-list > li:nth-child(n + 4) {
    display: none;
  }
  /* D1: all 22 categories, compact 2-column tiles. */
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .cat-tile {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.4;
  }
  .cat-tile__arrow {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .about-box {
    border-radius: 16px;
    padding: 16px;
  }
  .about-box__title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .about-box p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* list */
  .list-layout {
    display: block;
    padding: 10px 0 24px;
  }
  .mode-toggle {
    margin: 0 14px;
  }
  .side-nav {
    flex-direction: row;
    gap: 6px;
    padding: 12px 14px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar {
    display: none;
  }
  .side-nav a,
  .side-nav--rank a {
    flex: none;
    padding: 7px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--pill);
    background: var(--surface);
    font-size: 12px;
    white-space: nowrap;
  }
  .side-nav a.is-active {
    background: var(--tint);
  }
  .side-nav--rank a {
    flex: 1;
    padding: 7px 8px;
    text-align: center;
  }
  .side-nav__count,
  .side-nav__desc,
  .tip {
    display: none;
  }
  .list-main {
    padding: 16px 14px 0;
  }
  .list-head {
    display: block;
    margin-bottom: 0;
  }
  .page-title {
    font-size: 22px;
  }
  .page-desc {
    font-size: 12px;
    margin: 4px 0 12px;
  }
  .sort-chips {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .sort-chips__label {
    display: none;
  }
  .sort-chips .chip {
    padding: 6px 10px;
  }
  .offer-list {
    gap: 12px;
    margin-top: 0;
  }
  .pager {
    margin-top: 16px;
  }
  .pager__pc {
    display: none;
  }
  .pager__sp {
    display: flex;
    gap: 8px;
  }
  .pager__btn {
    flex: 1;
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--pill);
    font-size: 13px;
    font-weight: 700;
  }
  .pager__btn--prev {
    flex: none;
    padding-inline: 18px;
  }

  /* detail */
  .detail-layout {
    padding-top: 14px;
  }
  .offer-hero {
    border-radius: 20px;
    padding: 18px;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      'thumb head'
      'stats stats';
    column-gap: 14px;
  }
  .offer-hero__thumb {
    width: 88px;
    height: 62px;
    border-radius: 12px;
  }
  .offer-hero__thumb.thumb--empty {
    background: repeating-linear-gradient(45deg, var(--stripe-a) 0 6px, var(--stripe-b) 6px 12px);
  }
  .offer-hero__head {
    align-self: center;
  }
  .offer-hero__chips {
    margin-bottom: 6px;
  }
  .offer-hero__chips .chip-cat,
  .offer-hero__chips .chip-tag {
    font-size: 10px;
    padding: 2px 8px;
  }
  .offer-hero__title {
    font-size: 19px;
    margin-bottom: 0;
  }
  .offer-hero__stats {
    column-gap: 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-2);
  }
  .stat__label {
    font-size: 11px;
  }
  .yen--hero .yen__num {
    font-size: 32px;
  }
  .yen--hero .yen__unit {
    font-size: 14px;
  }
  .stat--mile {
    padding-bottom: 4px;
  }
  .stat__mile {
    font-size: 17px;
  }
  .stat__mile span {
    font-size: 11px;
  }
  .stat__count {
    font-size: 22px;
  }
  .stat__count span {
    font-size: 11px;
  }
  .stat--meta {
    width: 100%;
    padding-bottom: 0;
    font-size: 11px;
  }
  .mascot-note {
    gap: 10px;
  }
  .mascot-note__img {
    width: 56px;
    height: 56px;
  }
  .mascot-note__bubble {
    border-radius: 4px 16px 16px 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
  }
  .hitokoto {
    margin-top: 14px;
  }
  .detail-sec .sec-head {
    margin: 24px 0 10px;
  }
  .sec-title--detail {
    font-size: 18px;
  }
  .detail-sec > .sec-title--md {
    font-size: 17px;
    margin: 24px 0 10px;
  }
  .site-rank {
    gap: 10px;
  }
  /* Long rankings show the first rows; the button under the list reveals the rest (COLLAPSE_SITE_ROWS). */
  .site-rank.is-collapsed > li:nth-child(n + 6) {
    display: none;
  }
  /* The design 1a's SP card keeps the note (「いちばん高い！」 / 「1位との差 -2,500円」) under the site name. */
  .footnote {
    font-size: 11px;
    margin-top: 12px;
  }
  .text-box {
    border-radius: 16px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
  }
  .text-box__seo {
    font-size: 12px;
  }
  .ended-banner {
    padding: 14px;
    border-radius: 16px;
  }
  .ended-banner img {
    width: 48px;
    height: 48px;
  }
  .widget--related {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .widget--related .widget__title {
    font-size: 17px;
    margin-bottom: 10px;
  }
  .widget--related .link-list {
    gap: 8px;
  }
  .widget--related .link-list a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
  }

  /* error */
  .error-page {
    padding-block: 24px 48px;
  }
  .error-page__img {
    width: 120px;
    height: 120px;
  }
  .error-page__title {
    font-size: 20px;
  }
  .error-page__body {
    font-size: 13px;
  }
}

/* =================================================================
   part 2 pages: tablet (≤1023) and SP (≤767)
   ================================================================= */
@media (max-width: 1023px) {
  .site-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      'banner title'
      'banner stats'
      'actions actions';
    gap: 8px 20px;
  }
  .site-hero__actions {
    margin-top: 8px;
  }
  .site-hero__banner {
    --banner-w: 120px;
    width: 120px;
    height: 60px;
  }
  .site-hero__title {
    font-size: 24px;
  }
  .site-hero__actions .btn {
    width: 100%;
  }
  .article-thumb.article-card__thumb {
    width: 160px;
    height: 106px;
  }
}

@media (max-width: 767px) {
  .page-wrap {
    padding-block: 14px 24px;
  }
  .search-layout,
  .site-layout,
  .articles-layout,
  .article-layout,
  .static-layout {
    padding-top: 14px;
  }
  .page-head {
    margin-bottom: 14px;
  }
  .search-head .search--page {
    width: 100%;
    margin: 4px 0 12px;
  }
  .site-card {
    border-radius: 18px;
    padding: 16px;
    gap: 10px;
  }
  .site-card__banner {
    --banner-w: 96px;
    width: 96px;
    height: 48px;
    border-radius: 8px;
  }
  .site-card__name {
    font-size: 16px;
  }
  .note-box {
    margin-top: 24px;
    border-radius: 16px;
    padding: 16px;
  }
  .note-box__title {
    font-size: 14px;
  }
  .note-box__list {
    font-size: 12px;
  }
  .site-hero {
    border-radius: 20px;
    padding: 16px;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      'banner title'
      'stats stats'
      'actions actions';
    gap: 10px 14px;
  }
  .site-hero__banner {
    --banner-w: 88px;
    width: 88px;
    height: 44px;
    border-radius: 8px;
  }
  .site-hero__title {
    align-self: center;
    font-size: 20px;
  }
  .site-hero__actions {
    margin-top: 2px;
  }
  /* SP: the card-style rows (label left, value right) read better than the PC inline stats. */
  .site-stats--hero {
    flex-direction: column;
    gap: 0;
  }
  .site-stats--hero > div {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-2);
  }
  .site-stats--hero dt {
    font-size: 12px;
  }
  .site-stats--hero dd {
    font-size: 13px;
    text-align: right;
  }
  .site-offer-list {
    gap: 10px;
  }
  .article-feed {
    gap: 10px;
  }
  .article-card {
    gap: 12px;
    border-radius: 16px;
    padding: 12px;
  }
  .article-thumb.article-card__thumb {
    width: 96px;
    height: 64px;
    border-radius: 10px;
  }
  .article-card__title {
    font-size: 14px;
  }
  .article-card__desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .article-date {
    font-size: 11px;
  }
  .article-head {
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
  }
  .article-head--thumb {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .article-head__thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }
  .article-title {
    font-size: 19px;
  }
  .article-body {
    border-radius: 16px;
    padding: 18px;
  }
  .prose {
    font-size: 14px;
    line-height: 1.85;
  }
  .prose h2 {
    margin-top: 32px;
    font-size: 19px;
  }
  .prose h3 {
    font-size: 16px;
  }
  .toc {
    border-radius: 16px;
    padding: 14px 16px;
  }
  .toc__list {
    font-size: 13px;
  }
  .draft-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    font-size: 12px;
  }
  .static-head__lead {
    font-size: 13px;
  }
  .static-sec {
    border-radius: 16px;
    padding: 18px;
  }
  .static-sec + .static-sec {
    margin-top: 12px;
  }
  .static-sec > h2:first-child {
    font-size: 17px;
  }
  .info-table > div,
  .glossary > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }
  .steps li {
    padding-left: 42px;
  }
  .steps li::before {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
  .steps__title {
    font-size: 15px;
  }
  .steps__body,
  .faq__a {
    font-size: 13px;
  }
  .cta-box {
    border-radius: 16px;
  }
}

/* ---------- 還元率（％）の案件 (owner request 2026-10-13): the top page's 「よく使うお店の還元率」 and /ranking/rate ---------- */
.top-sec--shops {
  margin-top: 40px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.shop-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-areas:
    'name thumb'
    'rate thumb'
    'meta meta';
  grid-template-rows: auto auto 1fr;
  column-gap: 10px;
  align-items: start;
}
.shop-card__name {
  grid-area: name;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.shop-card__thumb {
  grid-area: thumb;
  width: 48px;
  height: 34px;
  border-radius: 8px;
}
.shop-card__rate {
  grid-area: rate;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.shop-card__label {
  font-size: 11px;
  color: var(--muted);
}
.shop-card__meta {
  grid-area: meta;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 8px;
}
/* /ranking/rate: the title above two rows of chips (categories, then the order). */
.list-head--rate {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.rate-cats {
  flex: initial;
  flex-wrap: wrap;
}
.chip__count {
  margin-left: 4px;
  font-weight: 400;
  opacity: 0.75;
}
.list-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shop-card {
    border-radius: 14px;
    padding: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'name'
      'rate'
      'meta';
  }
  .shop-card__thumb {
    display: none;
  }
  /* Four rows of two on SP; the rest is one tap away (還元率ランキング). */
  .shop-grid > li:nth-child(n + 9) {
    display: none;
  }
  .shop-card__name {
    font-size: 13px;
    line-height: 1.35;
  }
  .shop-card .yen--lg .yen__num {
    font-size: 18px;
  }
  /* 18px is small text for WCAG (< 18.66px bold): the darker red, as on the ranking cards. */
  .shop-card .yen {
    color: var(--red-ink);
  }
  .list-head--rate {
    display: flex;
    gap: 0;
  }
  /* One scrolling strip of categories on SP, like the category pages' nav. */
  .rate-cats {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rate-cats .chip {
    flex: none;
  }
  /* SP drops the TOP5's 円 to save room; a rate keeps its %. */
  .mini-rank__unit--rate {
    display: inline;
  }
  .list-note {
    font-size: 11px;
    padding-bottom: 8px;
  }
}
