/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #e63946;
  --color-primary-dark: #c1121f;
  --color-accent: #ffd700;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-border: #dee2e6;
  --color-rank1: #ffd700;
  --color-rank2: #c0c0c0;
  --color-rank3: #cd7f32;
  --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
  --sidebar-width: 280px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ハンバーガーボタン（PCでは非表示、モバイルで表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Layout ===== */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2rem;
  align-items: start;
}

/* グリッド子要素が広いコンテンツ（比較表など）で横に広がり、
   スマホで画面外へはみ出すのを防ぐ（min-width:auto の既定値を上書き） */
.page-wrapper > * {
  min-width: 0;
}

@media (max-width: 768px) {
  /* ===== レイアウト ===== */
  .page-wrapper {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
    gap: 1.5rem;
  }
  /* サイドバー（ナビ）は本文の下へ。記事がすぐ目に入るようにする */
  .sidebar {
    order: 1;
  }

  /* ===== ハンバーガーメニュー ===== */
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-primary-dark);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* ===== 記事本文の可読性 ===== */
  .article-body {
    --ab-pad-x: 1.1rem;
    --ab-pad-t: 1.4rem;
    font-size: 1.04rem;
  }
  .article-title {
    font-size: 1.4rem;
  }
  .article-body h2:not(.recommend-title):not(.related-title) {
    font-size: 1.2rem;
    margin: 2rem 0 0.9rem;
  }
  .article-body h3 {
    font-size: 1.05rem;
  }
  .article-body p {
    margin-bottom: 1.2rem;
  }
  .article-body ul,
  .article-body ol {
    margin-left: 1.15rem;
  }
  .article-body table {
    font-size: 0.85rem;
  }
  .article-body th,
  .article-body td {
    padding: 0.5rem 0.6rem;
  }

  /* ===== ヒーロー ===== */
  .hero {
    padding: 2.25rem 1rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.92rem;
  }

  /* ===== ランキングカード（ボタンを折り返して全幅に） ===== */
  .rank-card {
    flex-wrap: wrap;
  }
  .rank-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ===== Sidebar ===== */
.sidebar-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-block h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-block li a {
  font-size: 0.88rem;
  color: var(--color-text);
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-block li a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== Article Card ===== */
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-card-body {
  padding: 1.25rem;
}

.article-card-category {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.article-card-title a {
  color: var(--color-text);
}

.article-card-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Article Grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ===== Ranking Card ===== */
.rank-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  border-left: 4px solid var(--color-border);
}

.rank-card.rank-1 { border-left-color: var(--color-rank1); }
.rank-card.rank-2 { border-left-color: var(--color-rank2); }
.rank-card.rank-3 { border-left-color: var(--color-rank3); }

.rank-badge {
  font-size: 1.8rem;
  font-weight: 900;
  min-width: 3rem;
  text-align: center;
  color: var(--color-text-muted);
}

.rank-card.rank-1 .rank-badge { color: var(--color-rank1); }
.rank-card.rank-2 .rank-badge { color: var(--color-rank2); }
.rank-card.rank-3 .rank-badge { color: var(--color-rank3); }

.rank-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rank-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.rank-btn {
  margin-left: auto;
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.rank-btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b5173d 100%);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #333;
  font-weight: 800;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
}

.hero-cta:hover {
  background: #e6c200;
  text-decoration: none;
}

/* ===== Section ===== */
.section-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

/* ===== Article Body ===== */
.article-body {
  --ab-pad-x: 2rem;
  --ab-pad-t: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--ab-pad-t) var(--ab-pad-x);
  line-height: 1.85;
  overflow: hidden; /* ヘッダー帯の全幅化（負マージン）をカード角に収める */
  counter-reset: section;
}

/* 本文 h2 は自動採番のバッジ付き見出しに装飾（おすすめ/関連の見出しは除外） */
.article-body h2:not(.recommend-title):not(.related-title) {
  counter-increment: section;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2.5rem 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cat-color, var(--color-primary));
  color: var(--color-text);
}

.article-body h2:not(.recommend-title):not(.related-title)::before {
  content: counter(section);
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.12rem;
  background: var(--cat-color, var(--color-primary));
  color: #fff;
  border-radius: 7px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--cat-color, var(--color-primary));
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-body th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.article-body td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.article-body tr:nth-child(even) td {
  background: #f8f9fa;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0.75rem auto 0;
  padding: 0 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ===== Footer ===== */
.site-footer {
  background: #2b2d42;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  margin: 0 0.75rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  background: #f0f0f0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin: 0.15rem;
}

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.cta-box p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cta-box a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
}

.cta-box a:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ===== Notice ===== */
.affiliate-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 1.5rem;
}

/* ===== 目次（TOC） ===== */
html {
  scroll-behavior: smooth;
}

/* ジャンプ時、固定ヘッダーに見出しが隠れないようにする */
.article-body h2,
.article-body h3,
.cat-section {
  scroll-margin-top: 76px;
}

.toc {
  background: #fafbfc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
  margin-bottom: 1.75rem;
}

.toc summary {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.6rem 0;
  list-style-position: inside;
}

.toc ol {
  margin: 0.25rem 0 0.85rem 1.25rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.toc li {
  margin-bottom: 0.45rem;
}

.toc a {
  color: var(--color-text);
}

.toc a:hover {
  color: var(--color-primary);
}

/* ===== 記事内テーブルの横スクロールラッパー ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-scroll table {
  margin: 0;
}

/* ===== カテゴリチップ（記事一覧ページのジャンプ用） ===== */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.cat-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.cat-chip span {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.cat-section {
  margin-bottom: 2.5rem;
}

/* ===== Callout（:::box / :::note の囲みボックス） ===== */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout-box {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-left: 4px solid var(--color-primary);
}

.callout-note {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #64748b;
}

.callout-title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.callout-box .callout-title {
  color: var(--color-primary-dark);
}

.callout-note .callout-title {
  color: #475569;
}

/* 囲みボックス内の余白調整（最終要素の余白を詰める） */
.callout > *:last-child {
  margin-bottom: 0;
}

.callout ul,
.callout ol {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ===== 記事ヘッダー帯（カテゴリカラー） ===== */
.article-hero {
  margin: calc(-1 * var(--ab-pad-t)) calc(-1 * var(--ab-pad-x)) 1.75rem;
  padding: 1.9rem var(--ab-pad-x) 1.6rem;
  background-color: var(--cat-color, var(--color-primary));
  background-image: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(0,0,0,0.22));
  color: #fff;
}

.article-hero-cat {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.7rem;
}

.article-hero .article-title {
  color: #fff;
  margin-bottom: 0.55rem;
}

.article-hero .article-meta {
  color: rgba(255,255,255,0.88);
}

.article-hero-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.article-hero-tags .tag {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
}

/* ===== Callout 追加バリアント ===== */
.callout-point {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
}
.callout-point .callout-title { color: #b45309; }

.callout-pros {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}
.callout-pros .callout-title { color: #15803d; }
.callout-pros .callout-title::before { content: '✓ '; }

.callout-cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
}
.callout-cons .callout-title { color: #b91c1c; }
.callout-cons .callout-title::before { content: '✕ '; }

/* 手順ステップ図 */
.callout-steps {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--cat-color, var(--color-primary));
}
.callout-steps ol {
  counter-reset: step;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.callout-steps ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.9rem;
  min-height: 1.8rem;
}
.callout-steps ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--cat-color, var(--color-primary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.callout-steps ol li:last-child { margin-bottom: 0; }

/* ===== おすすめ業者カード ===== */
.vendor-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.15rem 1.15rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.vendor-rank {
  position: absolute;
  top: -0.7rem;
  left: 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  color: #fff;
  background: #9ca3af;
}
.vendor-rank-1 { background: linear-gradient(135deg,#fbbf24,#d97706); }
.vendor-rank-2 { background: linear-gradient(135deg,#cbd5e1,#64748b); }
.vendor-rank-3 { background: linear-gradient(135deg,#e0a872,#b45309); }

.vendor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.vendor-name { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.vendor-rating { display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.vendor-stars { color: #f59e0b; font-size: 0.92rem; letter-spacing: 0.04em; }
.vendor-rating-num { font-weight: 800; font-size: 0.9rem; color: #f59e0b; }

.vendor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.55rem 0;
}
.vendor-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}
.vendor-badge-top { background: #fef3c7; color: #b45309; }
.vendor-badge-beginner { background: #e0f2fe; color: #0369a1; }
.vendor-badge-highreturn { background: #fce7f3; color: #be185d; }
.vendor-badge-safe { background: #dcfce7; color: #15803d; }
.vendor-badge-smartphone { background: #ede9fe; color: #6d28d9; }

.vendor-copy {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0.5rem 0 0.7rem;
}

.vendor-spec {
  margin: 0 0 0.85rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.6rem;
}
.vendor-spec > div {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.32rem;
}
.vendor-spec dt {
  flex: none;
  width: 5.5rem;
  color: var(--color-text-muted);
  font-weight: 700;
}
.vendor-spec dd { margin: 0; }

.vendor-cta {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--color-primary-dark);
}
.vendor-cta:hover { background: var(--color-primary-dark); text-decoration: none; }

.vendor-disclaimer {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.55rem;
  line-height: 1.5;
}

.vendor-card-compact { padding: 1rem; }
.vendor-card-compact .vendor-name { font-size: 0.98rem; }

/* ===== 記事末尾「おすすめサービス」セクション ===== */
.recommend-section {
  margin: 2.75rem 0 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg,#fff5f5,#fff8f0);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
}
.recommend-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
}
.recommend-title-icon { font-size: 1.3rem; }
.recommend-lead {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.15rem;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.1rem;
}
.recommend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.recommend-link-btn {
  flex: 1 1 auto;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}
.recommend-link-btn:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===== 記事中盤の差し込みカード ===== */
.midroll-card {
  margin: 2rem 0;
  padding: 0.5rem 0.5rem 0.55rem;
  background: linear-gradient(135deg,#fff8f0,#fff5f5);
  border: 1px dashed var(--color-primary);
  border-radius: 12px;
}
.midroll-label {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary);
  padding: 0.35rem 0 0.5rem;
}
.midroll-card .vendor-card { box-shadow: none; }

/* ===== 関連記事 ===== */
.related-section { margin-top: 2.5rem; }
.related-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--cat-color, var(--color-primary));
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 0.8rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  transition: transform 0.15s, border-color 0.15s;
}
.related-card:hover {
  border-color: var(--cat-color, var(--color-primary));
  text-decoration: none;
  transform: translateY(-2px);
}
.related-card-cat {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--cat-color, var(--color-primary));
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}
.related-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.related-card-date {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* ===== サイドバー：おすすめピックアップ ===== */
.sidebar-block-pickup {
  border: 2px solid var(--color-primary);
}

/* 税金・換金系記事向けの文脈リード文（2026-07-24 施策1） */
.pickup-context {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
}

/* ===== ビジュアル部品のモバイル調整 ===== */
@media (max-width: 768px) {
  .article-hero { padding-top: 1.5rem; padding-bottom: 1.3rem; }
  .recommend-section { padding: 1.1rem; }
  .recommend-grid { grid-template-columns: 1fr; }
  .recommend-link-btn { flex-basis: 100%; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ===== 自動内部リンク ===== */
.article-body .auto-link {
  text-decoration: underline;
  text-decoration-color: rgba(230, 57, 70, 0.45);
  text-underline-offset: 2px;
}
.article-body .auto-link:hover {
  text-decoration-color: var(--color-primary);
}

/* ===== 招待コード（VendorCard内） ===== */
.vendor-invite {
  margin: 0.2rem 0 0.85rem;
  padding: 0.6rem 0.7rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}
.vendor-invite-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vendor-invite-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #b45309;
}
.vendor-invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #92400e;
  background: #fff;
  border: 1px dashed #f59e0b;
  border-radius: 5px;
  padding: 0.15rem 0.55rem;
}
.invite-copy-btn {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  border: none;
  border-radius: 5px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}
.invite-copy-btn:hover { background: #d97706; }
.invite-copy-btn.copied { background: #16a34a; }
.vendor-invite-benefit {
  font-size: 0.76rem;
  line-height: 1.6;
  color: #78350f;
  margin: 0.45rem 0 0;
}

/* ===== 目的別カード（トップページ） ===== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.purpose-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--cat-color, var(--color-primary));
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}
.purpose-card-icon { font-size: 1.7rem; }
.purpose-card-title { font-weight: 800; font-size: 1rem; }
.purpose-card-desc { font-size: 0.8rem; color: var(--color-text-muted); }

/* ===== 運営者情報ボックス（E-E-A-T） ===== */
.author-box {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.author-box-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.author-box-avatar {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}
.author-box-name { font-weight: 800; font-size: 0.98rem; }
.author-box-role { font-size: 0.78rem; color: var(--color-text-muted); }
.author-box-text {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.author-box-policy {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== 調査根拠ノート ===== */
.basis-note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  background: #f8fafc;
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 1.1rem;
}

/* ===== 業者カード：こんな人におすすめ ===== */
.vendor-target {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #f0f9ff;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin: 0.55rem 0 0;
}
.vendor-target-label {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #0ea5e9;
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
}

/* ===== 欠落CSS補完 (D項目修正) ===== */

/* info-box: 記事内の最終更新・注意書きボックス */
.info-box {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text);
}
.info-box p { margin: 0; }

/* affiliate-btn: 記事内CTAリンクボタン */
.affiliate-btn {
  display: block;
  width: 100%;
  background: #dc2626;
  color: #fff !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  margin: 1.25rem 0;
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.affiliate-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* cta-link: テキストリンク形式のCTA */
.cta-link {
  display: inline-flex;
  align-items: center;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.cta-link:hover {
  border-bottom-color: #dc2626;
  text-decoration: none;
}

/* disclaimer-box: 免責・注意書きボックス */
.disclaimer-box {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.disclaimer-box p { margin: 0; }

/* related-articles: 旧形式の関連記事リスト */
.related-articles {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.related-articles h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-articles ul li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.related-articles ul li a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== ランキングカードUI (A-1修正) ===== */
.ranking-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.ranking-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.1rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ranking-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.ranking-badge {
  flex: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  background: #9ca3af;
  color: #fff;
  white-space: nowrap;
}

.ranking-card-1 { border-left: 4px solid #fbbf24; }
.ranking-card-2 { border-left: 4px solid #94a3b8; }
.ranking-card-3 { border-left: 4px solid #cd7f32; }
.ranking-badge-1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ranking-badge-2 { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.ranking-badge-3 { background: linear-gradient(135deg, #e0a872, #b45309); }

.ranking-card-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-text);
  flex: 1;
}

.ranking-card-new-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.ranking-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.ranking-card-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.5;
  flex-wrap: wrap;
}

.ranking-card-label {
  flex: none;
  width: 5.5rem;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.ranking-card-muted {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.ranking-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #dc2626;
  color: #fff !important;
  text-align: center;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: bold;
  min-height: 44px;
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.15s;
}
.ranking-card-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ===== 固定ボトムCTAバー (スマホ専用) ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #dc2626;
  color: #fff;
  padding: 14px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  z-index: 200;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
}
.sticky-cta.visible {
  opacity: 1;
}
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
  }
  /* 固定CTAバーが本文に被らないようにbodyへの下部余白 */
  body:not([data-no-sticky-cta]) {
    padding-bottom: 56px;
  }
}

/* ===== 調査根拠バッジ (B-1) ===== */
.research-badge {
  display: inline-flex;
  align-items: center;
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #0369a1;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.6;
}

/* ===== 評価基準ボックス (A-4) ===== */
.eval-criteria {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  border: 1px solid var(--color-border);
}

/* ===== purpose-grid 2列化 (B-2) ===== */
@media (max-width: 768px) {
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem;
  }
  .purpose-card {
    padding: 0.85rem 0.8rem;
  }
  .purpose-card-icon { font-size: 1.4rem; }
  .purpose-card-title { font-size: 0.88rem; }
  .purpose-card-desc { font-size: 0.72rem; }
}

/* ===== 比較表 1列目sticky (S-2) ===== */
.compare-table .col-name {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 5;
}
.compare-table thead .col-name {
  background: #e63946;
  z-index: 6;
}
.compare-table tbody tr:nth-child(even) .col-name {
  background: #f8f9fa;
}
.compare-table tbody tr:hover .col-name {
  background: #fff5f5;
}

/* 比較表スクロールヒント（テーブルの上にも追加） */
.compare-scroll-hint {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
@media (min-width: 769px) {
  .compare-scroll-hint { display: none; }
}

/* ===== パンくずのタップターゲット拡大 (B-6) ===== */
.breadcrumb {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
}
.breadcrumb span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
}

/* ===== 記事FVの圧縮 (B-4) ===== */
@media (max-width: 768px) {
  .article-hero {
    padding-top: 1.1rem !important;
    padding-bottom: 1rem !important;
  }
  .article-title {
    font-size: 1.25rem !important;
    line-height: 1.35;
  }
  .article-hero-tags {
    display: none;
  }
}

/* ===== フッターリンクのタップターゲット改善 (C-5) ===== */
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
}

/* ===== 関連記事グリッド2列化 (C-7) ===== */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
  }
  .related-card {
    padding: 0.65rem 0.7rem;
  }
  .related-card-title {
    font-size: 0.8rem;
  }
}

/* ===== スクロール誘導アニメーション (FV) ===== */
.scroll-down-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.25rem;
  gap: 0.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
}
.scroll-down-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
  transform: rotate(45deg);
  animation: bounce-arrow 1.4s infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ===== 目的別導線カード（トップFV直後セクション） ===== */
.purpose-nav-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.purpose-nav-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

/* ===== 招待コピーボタンのタップ領域改善 (C-6) ===== */
.invite-copy-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.82rem !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* ===== growdeco インスパイア デザイン強化（2026-06-02・docs/design_plan_2026-06-02.md） ===== */

/* S-1 記事冒頭サマリーボックス「この記事でわかること」 */
.summary-box { background:#f0fdf4; border:1px solid #bbf7d0; border-left:4px solid #22c55e; border-radius:8px; padding:1.25rem 1.5rem; margin:0 0 1.75rem; }
.summary-box-title { font-size:1rem; font-weight:800; color:#15803d; margin-bottom:0.75rem; display:flex; align-items:center; gap:0.4rem; }
.summary-box-title::before { content:"\2713"; }
.summary-box ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.4rem; }
.summary-box li { margin:0; }
.summary-box li::before { content:"\2192 "; color:#22c55e; font-weight:700; }
.summary-box a { color:#15803d; text-decoration:underline; text-underline-offset:2px; }

/* A-4 キャラ吹き出し（絵文字版・マスコット画像確定後に差替可） */
.callout-speech { display:flex; gap:0.85rem; align-items:flex-start; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:1rem 1.25rem; margin:1.5rem 0; }
.callout-speech-icon { flex:none; width:44px; height:44px; background:#e2e8f0; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.5rem; line-height:1; }
.callout-speech-body { flex:1; min-width:0; }
.callout-speech-name { font-size:0.78rem; font-weight:800; color:#475569; margin:0 0 0.25rem; }
.callout-speech-text { font-size:0.93rem; line-height:1.7; color:var(--color-text); margin:0; }

/* A-1 Xポスト風口コミ引用 */
.tweet-quote { background:#f8fafc; border:1px solid #cbd5e1; border-left:3px solid #1d9bf0; border-radius:8px; padding:0.9rem 1.1rem; margin:1rem 0; font-size:0.9rem; line-height:1.75; }
.tweet-quote::before { content:"\1D54F  "; color:#1d9bf0; font-weight:900; font-size:1rem; }
.tweet-quote cite { display:block; font-size:0.76rem; color:#64748b; margin-top:0.5rem; font-style:normal; }

/* S-4 評価スコア大型表示 */
.vendor-rating { display:flex; align-items:baseline; gap:0.4rem; flex-wrap:wrap; background:#fffbeb; padding:0.4rem 0.7rem; border-radius:8px; }
.vendor-rating-label { font-size:0.72rem; font-weight:700; color:#92400e; }
.vendor-rating-num { font-size:2rem; font-weight:900; color:#b45309; line-height:1; }
.vendor-rating-max { font-size:0.8rem; color:#92400e; }
.vendor-stars { color:#f59e0b; font-size:0.95rem; }

/* A-5 ランキング上位の「編集部イチオシ」バッジ */
.rank-card { position:relative; }
.rank-card-pickup { position:absolute; top:-10px; right:12px; background:var(--color-primary); color:#fff; font-size:0.7rem; font-weight:800; padding:0.2rem 0.7rem; border-radius:50px; box-shadow:0 2px 6px rgba(0,0,0,0.15); }

/* S-2 目次ボックス強化（既存 .toc に背景白+影を後勝ちで付与） */
.toc { background:#fff; box-shadow:0 1px 6px rgba(0,0,0,0.08); border-radius:8px; }
.toc summary::before { content:"\1F4CB  "; }

/* B-1 比較表ヘッダーをネイビーに（後勝ち上書き） */
.article-body th { background:#1e293b; }

/* B-4 目的別カードをスマホ2列に */
@media (max-width:768px) { .purpose-grid { grid-template-columns:repeat(2,1fr); } }


/* S-1 サマリーボックスのタイトル（remark-callout が付与する .callout-title 用） */
.summary-box .callout-title { font-size:1rem; font-weight:800; color:#15803d; margin:0 0 0.75rem; display:flex; align-items:center; gap:0.4rem; }
.summary-box .callout-title::before { content:"\2713"; }


/* マスコット画像版 吹き出しアイコン（オリ博士） */
.callout-speech-icon-img { background:transparent; overflow:hidden; padding:0; }
.callout-speech-img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }


/* 可読性向上（growdecoインスパイア = 広い行間と余白。文章/構成はコピーせず可読性設計のみ） */
.article-body p { line-height:1.9; }
.article-body li { line-height:1.85; margin-bottom:0.5rem; }
.article-body h2:not(.recommend-title):not(.related-title) { margin-top:3.2rem; }
.article-body h3 { margin-top:2rem; }
/* B-2 セクションリード（h2直後の導入文を少し落ち着いた色に） */
.article-body h2 + p { color:#475569; }


/* オリ博士を人型（背景透過）で表示。円形マスクと背景を解除 */
.callout-speech-icon-img { width:58px; height:66px; flex:none; background:transparent; border-radius:0; overflow:visible; }
.callout-speech-img { width:100%; height:100%; object-fit:contain; border-radius:0; }


/* 人型マスコット時はアイコンのグレー円背景を消す（絵文字版より高い詳細度で確実に上書き） */
.callout-speech-icon.callout-speech-icon-img { background:transparent; box-shadow:none; border-radius:0; }


/* ===== PC/スマホ デザイン最適化（2026-06-02・オリ博士全記事展開に伴う調整） ===== */
/* スマホ：吹き出し・要点ボックス・表をコンパクトに */
@media (max-width:600px){
  .callout-speech { padding:0.8rem 0.95rem; gap:0.6rem; }
  .callout-speech-icon.callout-speech-icon-img { width:44px; height:50px; }
  .callout-speech-text { font-size:0.88rem; line-height:1.7; }
  .callout-speech-name { font-size:0.74rem; }
  .summary-box { padding:1rem 1.1rem; }
  .summary-box .callout-title { font-size:0.95rem; }
  .article-body table { font-size:0.82rem; }
  .article-body h2:not(.recommend-title):not(.related-title) { font-size:1.25rem; margin-top:2.6rem; }
}
/* PC：吹き出しをゆったり、博士を少し大きく */
@media (min-width:900px){
  .callout-speech-icon.callout-speech-icon-img { width:62px; height:72px; }
  .callout-speech { padding:1.1rem 1.4rem; }
}


/* S-1 招待コードBOXを目立たせる（黄色破線枠・大型コード・コピーボタン拡大） */
.vendor-invite { background:#fffbeb; border:2px dashed #f59e0b; border-radius:8px; padding:0.75rem 0.95rem; margin:0.75rem 0; }
.vendor-invite-row { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.vendor-invite-label { font-weight:800; color:#b45309; font-size:0.82rem; }
.vendor-invite-code { font-size:1.1rem; font-weight:900; letter-spacing:0.04em; color:#92400e; background:#fff; padding:0.15rem 0.55rem; border-radius:4px; border:1px solid #fcd34d; }
.invite-copy-btn { min-height:40px; min-width:68px; background:#f59e0b; color:#fff; border:none; border-radius:6px; font-weight:700; cursor:pointer; padding:0 0.9rem; }
.invite-copy-btn:hover { background:#d97706; }
.vendor-invite-benefit { font-size:0.8rem; color:#92400e; margin:0.4rem 0 0; }


/* S-3 根拠バッジ（事実ベース：提携社数・調査・更新日。架空数値は使わない） */
.basis-badges { display:flex; flex-wrap:wrap; gap:0.5rem; margin:0.75rem 0 0.5rem; }
.basis-badge { background:#f0f9ff; border:1px solid #bae6fd; color:#0369a1; font-size:0.78rem; font-weight:700; padding:0.3rem 0.75rem; border-radius:50px; }


/* =====================================================
   2026-06-11 モバイルデザイン刷新 (M-1〜M-9)
   参考: マイベスト/torecamap/Game8系の定番モバイルUIパターン
   ===================================================== */

/* ----- M-1: 比較表の左列固定 + ゼブラ行 + スクロールヒント ----- */
.article-body tbody tr { background: #fff; }
.article-body tbody tr:nth-child(even) { background: #f8fafc; }
.table-scroll { position: relative; }
.table-scroll table th:first-child,
.table-scroll table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
  box-shadow: 2px 0 4px -2px rgba(15, 23, 42, 0.18);
}
.table-scroll table thead th:first-child {
  background: #1e293b; /* 比較表ヘッダーのネイビーと統一 */
  z-index: 3;
}
@media (max-width: 768px) {
  .table-scroll::before {
    content: '← 横にスクロールできます →';
    display: block;
    position: sticky;
    left: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.1rem 0 0.25rem;
  }
}

/* ----- M-2: 本文strongの強調色（スキャン読み対応） ----- */
.article-body p strong,
.article-body li strong {
  color: #d23b3b;
}

/* ----- M-3: 上に戻るFAB ----- */
#back-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.88);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.12s ease;
  z-index: 210;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:active { transform: scale(0.92); }
@media (min-width: 769px) {
  #back-to-top { bottom: 28px; } /* PCはstickyバーが無いため下に */
}

/* ----- M-4: 読了プログレスバー ----- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 300;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ----- M-5: 目次の見やすさ強化（折りたたみはBase.astroのJS） ----- */
.toc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: '📋 '; }
.toc summary::after {
  content: '▾';
  font-size: 1rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
details[open].toc summary::after { transform: rotate(180deg); }
.toc li::marker {
  color: var(--color-primary);
  font-weight: 700;
}
.toc a {
  display: inline-block;
  padding: 0.15rem 0;
}

/* ----- M-6: カードのカテゴリ色アクセント + タップフィードバック ----- */
.article-card,
.related-card,
.purpose-card {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.article-card { border-top: 3px solid var(--cat-color, var(--color-primary)); }
.article-card:active,
.related-card:active,
.purpose-card:active { transform: scale(0.985); }

/* ----- M-7: 固定CTAバーのiPhoneセーフエリア対応 ----- */
@media (max-width: 768px) {
  .sticky-cta {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  body:not([data-no-sticky-cta]) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* ----- M-8: 見出しタイポグラフィ（詰め組みで誌面感） ----- */
h1, h2, h3, .article-title, .section-title {
  font-feature-settings: 'palt';
  letter-spacing: 0.015em;
}

/* ----- M-9: CTAボタンの押し心地 ----- */
.hero-cta,
.affiliate-btn,
.ranking-card-cta,
.midroll-cta,
.vendor-cta {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-cta { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.hero-cta:active,
.affiliate-btn:active,
.ranking-card-cta:active,
.midroll-cta:active,
.vendor-cta:active { transform: scale(0.97); }

/* =====================================================
   2026-06-11 第2弾: M-10 ベントグリッド / M-11 ボトムシートフィルター
   ===================================================== */

/* ----- M-10: トップのおすすめ業者ベントグリッド ----- */
.recommend-grid > .vendor-card:first-child {
  grid-column: 1 / -1; /* 1位は常にフル幅のフィーチャー枠 */
  border: 2px solid var(--color-accent);
  position: relative;
}
@media (max-width: 768px) {
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .recommend-grid > .vendor-card { min-width: 0; }
  /* 2〜12位はスキャン用コンパクトタイル（名前・評価・バッジ・CTAに集約） */
  .recommend-grid > .vendor-card:not(:first-child) { padding: 0.85rem 0.8rem; }
  .recommend-grid > .vendor-card:not(:first-child) .vendor-copy,
  .recommend-grid > .vendor-card:not(:first-child) .vendor-target,
  .recommend-grid > .vendor-card:not(:first-child) .vendor-invite,
  .recommend-grid > .vendor-card:not(:first-child) .vendor-spec { display: none; }
  .recommend-grid > .vendor-card:not(:first-child) .vendor-name { font-size: 0.95rem; }
  .recommend-grid > .vendor-card:not(:first-child) .vendor-rating-num { font-size: 1.6rem; }
  .recommend-grid > .vendor-card:not(:first-child) .vendor-stars { font-size: 0.75rem; }
}

/* ----- M-10b: 新着記事ベントグリッド（最新1本をフィーチャー） ----- */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .articles-grid .article-card { min-width: 0; }
  .articles-grid .article-card:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff 55%, #fff6f7 100%);
    border-top-width: 4px;
  }
  .articles-grid .article-card:first-child .article-card-title { font-size: 1.02rem; }
  .articles-grid .article-card:not(:first-child) .article-card-title {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .articles-grid .article-card:not(:first-child) .article-card-body { padding: 0.8rem 0.8rem; }
}

/* ----- M-11: ランキングのジャンル絞り込みボトムシート（スマホのみ） ----- */
#rk-filter-btn {
  display: none;
  position: fixed;
  left: 14px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 210;
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  padding: 0 1rem;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#rk-filter-btn.rk-filter-on {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
#rk-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 215;
}
#rk-sheet-backdrop.open { opacity: 1; visibility: visible; }
#rk-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0.6rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 220;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
}
#rk-sheet.open { transform: translateY(0); }
.rk-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  margin: 0.25rem auto 0.8rem;
}
.rk-sheet-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.rk-sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.rk-chip {
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 50px;
  padding: 0 1.1rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rk-chip-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.rk-sheet-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.9rem;
}
#rk-sheet-close {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  #rk-filter-btn { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  #rk-sheet, #rk-sheet-backdrop { transition: none; }
}

/* ============================================================
   VendorBanner — 業者の「広告バナー風」ビジュアル部品（2026-06-14）
   直感的に分かる記事づくり用。記事中盤(midroll)・おすすめ1位(hero)で使用
   ============================================================ */
.vendor-banner {
  --bc1: #e63946;
  --bc2: #ff7b54;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin: 1.6em 0;
}
.vendor-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--bc1), var(--bc2));
}
.vendor-banner-label {
  display: inline-block;
  margin: 12px 0 -4px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bc1);
  letter-spacing: 0.02em;
}
.vendor-banner-pr {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: #c4c4c4;
  letter-spacing: 0.08em;
}
.vendor-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 18px;
}
.vendor-banner-main { flex: 1 1 auto; min-width: 0; }

/* ロゴ風ロックアップ（マーク＋業者名＋評価） */
.vendor-banner-head { display: flex; align-items: center; gap: 12px; }
.vendor-banner-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bc1), var(--bc2));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.vendor-banner-headtext { min-width: 0; }
.vendor-banner-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.3;
}
.vendor-banner-rating { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.vendor-banner-stars { color: #f5a623; font-size: 0.85rem; letter-spacing: -1px; }
.vendor-banner-rating b { font-size: 0.95rem; color: #1f2937; }
.vendor-banner-rating-max { font-size: 0.72rem; color: #9ca3af; }

.vendor-banner-catch {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.65;
}
.vendor-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.vendor-banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 11px;
}
/* CTA */
.vendor-banner-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bc1), var(--bc2));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
  transition: transform 0.1s, filter 0.15s;
}
.vendor-banner-cta:active { transform: scale(0.97); filter: brightness(0.96); }
.vendor-banner-cta-main { font-size: 0.95rem; font-weight: 800; }
.vendor-banner-cta-sub { font-size: 0.73rem; opacity: 0.95; }

/* hero（おすすめ1位）はひと回り大きく */
.vendor-banner-hero { margin: 1.4em 0 1.8em; }
.vendor-banner-hero .vendor-banner-mark { width: 68px; height: 68px; font-size: 1.6rem; }
.vendor-banner-hero .vendor-banner-name { font-size: 1.25rem; }
.vendor-banner-hero .vendor-banner-cta { min-width: 156px; padding: 16px 22px; }

/* 実バナー画像モード（ASPバナーはネイティブ比率を保ち中央寄せ・引き伸ばさない） */
.vendor-banner-img .vendor-banner-imglink { display: block; padding: 14px 14px 16px; text-align: center; }
.vendor-banner-img .vendor-banner-imglink img {
  display: inline-block; width: auto; max-width: min(100%, 336px); height: auto; border-radius: 8px;
}

/* 中〜小幅：CTAを下段フル幅へ（記事カラムが狭い・スマホ） */
@media (max-width: 720px) {
  .vendor-banner-inner { flex-wrap: wrap; gap: 12px; }
  .vendor-banner-main { flex: 1 1 100%; }
  .vendor-banner-cta {
    flex: 1 1 100%;
    min-width: 0;
    padding: 13px;
  }
  .vendor-banner-cta-main { white-space: nowrap; }
}
@media (max-width: 600px) {
  .vendor-banner-mark { width: 50px; height: 50px; font-size: 1.2rem; border-radius: 12px; }
  .vendor-banner-name { font-size: 1.02rem; }
}

/* ============================================================
   疑問解決ハブ用 — FAQアコーディオン / Q&A会話 / 評価基準（2026-06-15 全面改装）
   ============================================================ */
/* FAQアコーディオン */
.faq-accordion { margin: 18px 0; }
.faq-accordion details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.faq-accordion details[open] { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 46px 15px 50px;
  position: relative;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.5;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
/* 左の Q マーク */
.faq-accordion summary::before {
  content: "Q";
  position: absolute;
  left: 14px; top: 13px;
  width: 26px; height: 26px;
  background: var(--color-primary);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
/* 右の開閉シェブロン */
.faq-accordion summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-accordion summary:hover { background: rgba(230,57,70,0.04); }
.faq-accordion .faq-a {
  padding: 4px 18px 18px 50px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.85;
}
.faq-accordion .faq-a::before {
  content: "A";
  position: absolute;
  left: 14px; top: 2px;
  width: 26px; height: 26px;
  background: var(--color-accent);
  color: #4a3b00; font-weight: 800; font-size: 0.85rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.faq-accordion .faq-a p { margin: 0 0 10px; }
.faq-accordion .faq-a p:last-child { margin-bottom: 0; }

/* Q&A会話（質問役＝emoji吹き出し・右寄せ / 回答役＝既存 callout-speech を流用） */
.qa-question {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0; flex-direction: row-reverse;
}
.qa-question .qa-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: #eef2f7; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.qa-question .qa-bubble {
  background: var(--color-primary); color: #fff;
  border-radius: 14px 14px 2px 14px;
  padding: 11px 15px; font-size: 0.92rem; line-height: 1.7;
  max-width: 80%;
}

/* 評価基準・根拠ボックス */
.criteria-box {
  background: linear-gradient(180deg, #fff, #fafbfc);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 16px 18px; margin: 18px 0;
}
.criteria-box .criteria-title {
  font-weight: 800; font-size: 1rem; margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.criteria-box ol { margin: 0; padding-left: 1.3em; }
.criteria-box li { margin: 0 0 7px; font-size: 0.9rem; line-height: 1.7; }

/* 疑問解決ハブのトップ導線カード */
.qa-hub-cta {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, #e63946, #ff7b54);
  color: #fff; border-radius: 16px; padding: 20px 22px; margin: 18px 0;
  box-shadow: 0 6px 20px rgba(230,57,70,0.3);
}
.qa-hub-cta .qh-title { font-size: 1.12rem; font-weight: 800; margin: 0 0 4px; }
.qa-hub-cta .qh-sub { font-size: 0.84rem; opacity: 0.95; margin: 0; }

/* ============================================================
   記事内テーブルのスマホ・カード化（2026-06-15）
   ≤600px で各行を縦積みカード表示にして、4列圧縮による読みづらさを解消。
   Base.astro のJSが thead を data-label として各セルに付与する前提。
   ============================================================ */
@media (max-width: 600px) {
  .article-body table.mobile-cards { border: 0; width: 100%; font-size: 0.92rem; }
  .article-body table.mobile-cards thead { display: none; } /* ヘッダ行は非表示（各セルにラベル化） */
  .article-body table.mobile-cards tbody,
  .article-body table.mobile-cards tr,
  .article-body table.mobile-cards td { display: block; width: 100%; }
  .article-body table.mobile-cards tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    margin: 0 0 12px;
    padding: 6px 14px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  /* 1列目（順位/サービス名想定）はカード見出しとして強調 */
  .article-body table.mobile-cards td:first-child {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--color-primary-dark);
    border-bottom: 1px dashed var(--color-border);
    padding: 8px 0 8px;
    margin-bottom: 4px;
  }
  .article-body table.mobile-cards td:first-child::before { content: ""; }
  /* 2列目以降は「ラベル：値」の行 */
  .article-body table.mobile-cards td {
    border: 0;
    padding: 5px 0;
    text-align: left;
    line-height: 1.6;
    display: flex;
    gap: 8px;
  }
  .article-body table.mobile-cards td::before {
    content: attr(data-label);
    flex: 0 0 6.5em;
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.8rem;
  }
  /* カード化した表は横スクロール矢印を消す */
  .table-scroll:has(table.mobile-cards)::before { display: none; }
  .table-scroll { overflow: visible; }
}

/* 業者カード内のバナー画像（2026-06-15・ランキングのバナー統一） */
.vendor-card.has-banner { padding-top: 0; overflow: hidden; }
.vendor-card-banner { display: block; margin: 0 0 10px; }
.vendor-card-banner img {
  display: block; width: 100%; height: auto;
  border-radius: 10px 10px 0 0;
}
.vendor-card.has-banner .vendor-rank { position: relative; z-index: 2; }

/* ============================================================
   RecommendSection ランキングを1カラム全幅カードに統一（2026-06-15）
   旧：1位フル幅＋2〜12位は極小2列タイル（バナーが小さく不揃い）
   新：全順位を全幅カード＋バナーで統一表示
   ============================================================ */
.recommend-grid { grid-template-columns: 1fr !important; gap: 1rem; }
.recommend-grid > .vendor-card:first-child { grid-column: auto; }
/* 2位以降もスペック等をフル表示に戻す（タイル簡略化の解除） */
.recommend-grid > .vendor-card:not(:first-child) .vendor-copy,
.recommend-grid > .vendor-card:not(:first-child) .vendor-target,
.recommend-grid > .vendor-card:not(:first-child) .vendor-invite,
.recommend-grid > .vendor-card:not(:first-child) .vendor-spec { display: block !important; }
.recommend-grid > .vendor-card:not(:first-child) { padding: 1rem 1rem 1.1rem !important; }
@media (max-width: 768px) {
  .recommend-grid { grid-template-columns: 1fr !important; gap: 1rem; }
}
/* カード内バナー画像：中央・実寸基準（最大336px）で適切な大きさに */
.vendor-card-banner { text-align: center; }
.vendor-card-banner img {
  width: auto; max-width: min(100%, 336px); height: auto;
  border-radius: 10px; margin: 0 auto;
}

/* CTAボタン等の日本語テキストが語中で割れないように（2026-06-15） */
.vendor-cta, .vendor-banner-cta, .compare-cta, .cta-box a, .recommend-link-btn {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* ============================================================
   UI不具合修正（2026-06-15）#1/#2/#3/#5
   ============================================================ */
/* #2 トップH1：語中改行を防止 */
.hero h1 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
@media (max-width: 400px) { .hero h1 { font-size: 1.35rem; } }

/* #1/#5 順位バッジ：has-bannerでoverflow:hiddenに切られて飛び出す問題を解消
   → カードのはみ出しを許可し、バッジはバナー上に絶対配置でフル表示 */
.vendor-card.has-banner { overflow: visible; position: relative; }
.vendor-card.has-banner .vendor-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

/* #3 ❓を白丸の「?」バッジに（赤背景でも視認性◎・チープさ解消） */
.qa-hub-cta .qh-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  background: #fff;
  color: #e63946;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.92em;
  margin-right: 8px;
  vertical-align: -0.3em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ============================================================
   記事リード下の初回特典マイクロ導線 LeadOfferBox（2026-07-26 Task#6）
   ============================================================ */
.lead-offer {
  margin: 1.1rem 0 1.4rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  font-size: 0.88rem;
}
.lead-offer-title {
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: #92400e;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lead-offer-pr {
  font-size: 0.62rem;
  font-weight: 700;
  color: #b45309;
  border: 1px solid #d9a441;
  border-radius: 3px;
  padding: 0 0.3rem;
}
.lead-offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.lead-offer-list a {
  font-weight: 700;
}
.lead-offer-benefit {
  color: #78350f;
  margin-left: 0.4rem;
}
.lead-offer-benefit code {
  background: #fef3c7;
  border: 1px dashed #d9a441;
  padding: 0 0.35rem;
  border-radius: 4px;
  font-weight: 700;
}
.lead-offer-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #a16207;
}
.lead-offer-note a {
  color: #92400e;
  text-decoration: underline;
}
