/*
 * agents.css  -  特集「IT業界転職エージェントランキング」専用スタイル
 * 前提: /styles.css（Constellation テーマ）を先に読み込む。パスは /feature/agents/agents.css?v=1
 * 全ページ共通: <main class="agent-page"> の直下に各セクションを置く。内側幅は .agent-wrap。
 *
 * ============================================================
 * コンポーネント一覧と最小HTML例
 * ============================================================
 *
 * [A] 共通
 *   .agent-page            <main class="agent-page">   （固定ヘッダー分の上余白つき）
 *   .agent-wrap            中身の最大幅ラッパー（1080px・スマホ左右16px）
 *   .agent-breadcrumb      <nav class="agent-breadcrumb" aria-label="パンくず"><a>ホーム</a><span>&gt;</span>...<span class="is-current">第1位 xx</span></nav>
 *   .agent-section         <section class="agent-section" id="xxx"><h2 class="agent-h2">見出し</h2>...</section>
 *   .agent-h2 / .agent-h3  見出し（.agent-h3 は番号付き: <h3 class="agent-h3"><span class="agent-h3-num">1</span>見出し</h3>）
 *   .agent-lead            リード文 <p class="agent-lead">
 *   .agent-note            注記 <p class="agent-note">
 *   .agent-toc             <nav class="agent-toc"><h2 class="agent-toc-title">目次</h2><ol><li><a href="#x">..</a></li></ol></nav>
 *   .agent-table-wrap      横スクロール用ラッパー。中に table.agent-table（基本データ表: th=項目, td=値）
 *                          比較表は table.agent-table.agent-table--compare
 *   .agent-source          出典リンクの小文字 <small class="agent-source">（<a rel="noopener nofollow">..</a>）
 *   .agent-sources         出典一覧 <ul class="agent-sources"><li><a>..</a></li></ul>
 *
 * [B] 順位メダル  <span class="agent-medal agent-medal--gold"><span class="agent-medal-label">第</span><b>1</b><span class="agent-medal-label">位</span></span>
 *   --gold(1位) --silver(2位) --bronze(3位) --star(4〜10位: <b>4</b> の前に星が付く) --pill(11位以降: 数字ピル)
 *   小型は .agent-medal--sm を併記。
 *
 * [C] 各社ページ ヒーロー
 *   <section class="agent-hero"><div class="agent-wrap">
 *     <nav class="agent-breadcrumb">..</nav>
 *     <div class="agent-hero-grid">
 *       <div class="agent-hero-text">
 *         <span class="agent-medal ...">..</span>
 *         <h1 class="agent-title">第1位 xxxの評判と特徴</h1>
 *         <p class="agent-catch">キャッチ</p>
 *         <ul class="agent-tags"><li>専門特化</li>..</ul>
 *       </div>
 *       <figure class="agent-hero-photo"><img src=".." alt=".." width="1824" height="1024"></figure>
 *     </div>
 *   </div></section>
 *
 * [D] 広告ゾーン（マーカーはその中に書く）
 *   <div class="agent-wrap"><div class="agent-ad-zone">
 *     <p class="agent-ad-zone-lead">まずは無料で登録・相談</p>    （任意の短い誘導文）
 *     <!-- AGENT-AD:..:banner:START --><div class="agent-ad agent-ad--pending"><a class="agent-ad-fallback" ..>..</a></div><!-- ..:END -->
 *     <div class="agent-cta-wrap"><!-- AGENT-AD:..:cta:START --><a class="agent-cta" ..>..</a><!-- ..:END --></div>
 *   </div></div>
 *   .agent-ad--banner = fill 後のクラス。.agent-ad-pr = [PR] 小ラベル。
 *   中段CTA単体は <div class="agent-cta-block"><div class="agent-cta-wrap">..</div></div>
 *   .agent-ad-zone--sm = 各社カード内の中サイズ版（併記）
 *
 * [E] 各社ページ本文
 *   .agent-feature         特徴1件: <div class="agent-feature"><h3 class="agent-h3">..</h3><p>..</p></div>
 *   .agent-cautions        <ul class="agent-cautions"><li>..</li></ul>（注意点・向かない人）
 *   .agent-review-grid     <div class="agent-review-grid"><div class="agent-review agent-review--good"><h3 class="agent-review-title">良い評判</h3><ul><li>..</li></ul></div><div class="agent-review agent-review--bad">..</div></div>
 *   .agent-steps           <ol class="agent-steps"><li>ステップ文</li></ol>（番号円つき）
 *   .agent-checklist       <ul class="agent-checklist"><li>..</li></ul>（チェックマーク）
 *   .agent-faq             <div class="agent-faq"><details><summary>Q</summary><div class="agent-faq-a">A</div></details></div>
 *   .agent-pager           <nav class="agent-pager">[<a class="agent-pager-prev" href>← 第N位 ..</a>]<a class="agent-pager-top" href>ランキングTOP</a>[<a class="agent-pager-next" href>..→</a>]</nav>（1位は prev 無し、10位は next 無し。flex折返し）
 *   .agent-related         <div class="agent-related"><a class="agent-related-card" href><span class="agent-related-rank">第2位</span><strong>名</strong><span>キャッチ</span></a>..</div>
 *
 * [F] まとめページ（page-11〜16）
 *   .agent-pagehero        <section class="agent-pagehero"><div class="agent-wrap"><nav breadcrumb/><div class="agent-pagehero-grid"><div><h1 class="agent-title">..</h1><p class="agent-catch">..</p></div><figure class="agent-hero-photo"><img></figure></div></div></section>
 *   table.agent-table--compare 内: td.agent-col-rank / a.agent-name-link / .agent-table-cta（CTAを入れるセル用の小ボタンラッパー。中の .agent-cta は自動で小型化）
 *   .agent-card            <section class="agent-card" id="rank-11"> 各社セクション
 *     .agent-card-head     <div class="agent-card-head"><span class="agent-medal agent-medal--pill agent-medal--sm">..</span><h2 class="agent-card-title">第11位 名</h2></div>
 *     .agent-card-catch    キャッチ
 *     .agent-card-cols     <div class="agent-card-cols"><div class="agent-card-col"><h3 class="agent-card-sub">強み</h3><ul>..</ul></div><div class="agent-card-col">..</div></div>
 *     .agent-meta          <dl class="agent-meta"><div><dt>運営会社</dt><dd>..</dd></div></dl>
 *   .agent-groupnav        他グループ・TOP10への導線 <div class="agent-groupnav"><a class="agent-groupnav-link" href>..</a></div>
 *   page-16 のリンクは .agent-plainlink（公式サイト通常リンク）
 *
 * [G] 特集TOP（index.html）
 *   .agent-tophero         <section class="agent-tophero"> ... 背景写真付きヒーロー。構造:
 *                          <div class="agent-tophero-bg"><img></div><div class="agent-wrap agent-tophero-inner"><nav breadcrumb/><h1 class="agent-title agent-title--lg">..</h1><p class="agent-catch">..</p>
 *                          <ul class="agent-stats"><li><b>42</b><span>社収録</span></li>..</ul></div>
 *   .agent-top3            <div class="agent-top3"> 内に .agent-top3-card ×3:
 *     <article class="agent-top3-card agent-top3-card--1"><figure class="agent-top3-photo"><img></figure><div class="agent-top3-body">
 *       <span class="agent-medal agent-medal--gold">..</span><h3 class="agent-top3-name">名</h3><p class="agent-top3-catch">..</p>
 *       <ul class="agent-points"><li>強み</li></ul> [バナー枠] [CTA]
 *       <a class="agent-more" href>詳細ページを見る</a></div></article>
 *   .agent-rankcards       <div class="agent-rankcards"> 内に .agent-rankcard ×7（4〜10位）:
 *     <article class="agent-rankcard"><figure class="agent-rankcard-photo"><img></figure><div class="agent-rankcard-body"><span class="agent-medal agent-medal--star agent-medal--sm">..</span><h3 class="agent-rankcard-name">..</h3><p>キャッチ</p><ul class="agent-points">2点</ul>[CTA]<a class="agent-more">..</a></div></article>
 *   .agent-groups          <div class="agent-groups"> 内に .agent-group-card:
 *     <div class="agent-group-card"><img class="agent-group-photo"(任意)><h3 class="agent-group-title"><a href>第11〜18位 ..</a></h3><p>説明</p><ul class="agent-group-list"><li><a href="page-11-...#rank-11">11 名</a></li></ul><a class="agent-more">..</a></div>
 *   DB:  <div class="agents-db-filter"><div class="agents-db-chips" role="group"><button type="button" class="agents-db-chip is-active" data-filter="all">すべて</button><button class="agents-db-chip" data-filter="転職">転職</button>..</div>
 *        <label class="agents-db-search"><span class="sr-only">キーワード検索</span><input type="search" id="agents-db-search" placeholder="..."></label><p class="agents-db-count"><span id="agents-db-count">42</span>件表示</p></div>
 *        <div class="agents-db-wrap"><table class="agents-db"><thead>..</thead><tbody id="agents-db-body"><!-- マーカー --></tbody></table></div>
 *        <p class="agents-db-empty" id="agents-db-empty" hidden>該当するサービスがありません</p>
 *   .agent-choose          <div class="agent-choose"> 内に <div class="agent-choose-item"><h3 class="agent-h3"><span class="agent-h3-num">1</span>観点</h3><p>..</p></div>
 *   .agent-eval            <ul class="agent-eval"><li><strong>軸名</strong><span>説明</span></li></ul>（評価軸カード）
 *   .agent-links           関連リンク <ul class="agent-links"><li><a href>..</a></li></ul>
 *
 * 見出し(h1-h4)には text-wrap:balance 等を一括指定済み。
 */

/* ---------- 基本 ---------- */
.agent-page {
  position: relative;
  z-index: 1;
  color: #e2e8f0;
  padding-top: 0;
  overflow-x: clip;
}

.agent-page,
.agent-page * {
  box-sizing: border-box;
}

.agent-page h1,
.agent-page h2,
.agent-page h3,
.agent-page h4 {
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  font-family: var(--font-heading);
  color: #f8fafc;
  line-height: 1.4;
}

.agent-page p,
.agent-page li,
.agent-page dd,
.agent-page td,
.agent-page th {
  overflow-wrap: break-word;
  line-break: strict;
}

.agent-page a {
  color: var(--star-gold);
}

.agent-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.agent-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- パンくず ---------- */
.agent-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.agent-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.agent-breadcrumb a:hover {
  color: var(--star-gold);
}

.agent-breadcrumb span {
  color: #94a3b8;
}

.agent-breadcrumb .is-current {
  color: var(--star-gold);
}

/* ---------- 順位メダル ---------- */
.agent-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1;
  color: #1a1204;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.agent-medal b {
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0 2px;
}

.agent-medal-label {
  font-size: 0.8125rem;
  font-weight: 700;
}

.agent-medal--gold {
  background: linear-gradient(135deg, #fff1b8 0%, #f4b942 45%, #c98a12 100%);
  box-shadow: 0 0 18px rgba(244, 185, 66, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.agent-medal--silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #8b97ab 100%);
  color: #0f172a;
  box-shadow: 0 0 14px rgba(203, 213, 225, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.agent-medal--bronze {
  background: linear-gradient(135deg, #ffd9b0 0%, #d98a4a 50%, #94541f 100%);
  color: #1f0e02;
  box-shadow: 0 0 14px rgba(217, 138, 74, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.agent-medal--star {
  background: linear-gradient(135deg, #0e7490 0%, #4f46e5 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.agent-medal--star::before {
  content: "\2605";
  font-size: 0.875rem;
  color: #ffe58a;
  margin-right: 2px;
}

.agent-medal--pill {
  background: rgba(99, 102, 241, 0.22);
  color: #e2e8f0;
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: none;
}

.agent-medal--sm {
  height: 30px;
  min-width: 48px;
  padding: 0 12px;
}

.agent-medal--sm b {
  font-size: 1.125rem;
}

/* ---------- 各社ページ ヒーロー ---------- */
.agent-hero,
.agent-pagehero {
  position: relative;
  padding: 88px 0 24px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255, 126, 179, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 20%, rgba(6, 182, 212, 0.14), transparent 50%),
    linear-gradient(180deg, var(--space-mid), var(--space-deep));
}

.agent-hero-grid,
.agent-pagehero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.agent-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.agent-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.agent-title--lg {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
}

.agent-catch {
  text-wrap: balance;
  margin: 0;
  font-size: 1.0625rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-tags li {
  padding: 4px 12px;
  font-size: 0.8125rem;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.45);
}

.agent-hero-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 185, 66, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.25);
  aspect-ratio: 16 / 9;
  background: var(--space-light);
}

.agent-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 広告ゾーン ---------- */
.agent-ad-zone {
  position: relative;
  margin: 8px auto 32px;
  padding: 20px 16px;
  text-align: center;
  border-radius: 20px;
  background:
    linear-gradient(var(--space-mid), var(--space-mid)) padding-box,
    linear-gradient(120deg, #f4b942, #ff7eb3 55%, #06b6d4) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 28px rgba(244, 185, 66, 0.35), 0 0 60px rgba(255, 126, 179, 0.22);
}

.agent-ad-zone-lead {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffe9a8;
}

.agent-ad-zone--sm {
  margin: 20px auto;
  padding: 14px 12px;
  box-shadow: 0 0 18px rgba(244, 185, 66, 0.25);
}

.agent-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  max-width: 100%;
}

.agent-ad img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.agent-ad--banner {
  line-height: 0;
}

.agent-ad-pr {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #94a3b8;
  text-align: right;
  width: 100%;
}

.agent-ad--pending .agent-ad-fallback,
.agent-ad-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(244, 185, 66, 0.7);
  background: rgba(244, 185, 66, 0.1);
  color: #ffe9a8 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}

.agent-ad-fallback:hover {
  background: rgba(244, 185, 66, 0.2);
}

.agent-cta-wrap {
  display: flex;
  justify-content: center;
}

.agent-cta-block {
  margin: 28px 0;
  padding: 20px 16px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 126, 179, 0.07);
  border: 1px solid rgba(255, 126, 179, 0.4);
}

.agent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 36px;
  border-radius: 999px;
  background: linear-gradient(120deg, #c2410c 0%, #be185d 100%);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 20px rgba(255, 79, 139, 0.4);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.agent-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 190, 80, 0.75), 0 8px 24px rgba(255, 79, 139, 0.55);
}

.agent-cta:focus-visible,
.agent-ad-fallback:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 3px;
}

/* ---------- セクション・見出し ---------- */
.agent-body {
  padding-bottom: 32px;
}

.agent-section {
  margin: 0 0 40px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}

.agent-h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 12px 18px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  border-bottom: 1px solid rgba(244, 185, 66, 0.3);
}

.agent-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4b942, #ff7eb3);
}

.agent-h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #ffe9a8;
}

.agent-h3-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4b942, #ff7eb3);
  color: #1a1204;
  font-size: 0.9375rem;
  font-weight: 800;
}

.agent-section p,
.agent-section li {
  font-size: 1rem;
  line-height: 1.9;
  color: #e2e8f0;
}

.agent-lead {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #e2e8f0;
}

.agent-note {
  font-size: 0.875rem !important;
  color: #94a3b8 !important;
  line-height: 1.7;
}

.agent-source,
.agent-source a {
  font-size: 0.75rem;
  color: #94a3b8;
}

.agent-toc {
  margin: 0 0 32px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(26, 34, 64, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.agent-toc-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  color: var(--star-gold);
}

.agent-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 32px;
}

.agent-toc li {
  margin: 2px 0;
  font-size: 0.9375rem;
  break-inside: avoid;
}

.agent-toc a {
  text-decoration: none;
  color: #e2e8f0;
}

.agent-toc a:hover {
  color: var(--star-gold);
}

/* ---------- 表 ---------- */
.agent-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 22, 41, 0.8);
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.agent-table th,
.agent-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.agent-table tr:last-child th,
.agent-table tr:last-child td {
  border-bottom: 0;
}

.agent-table th {
  width: 30%;
  min-width: 8.5em;
  background: rgba(244, 185, 66, 0.1);
  color: #ffe9a8;
  font-weight: 700;
}

.agent-table--compare {
  min-width: 720px;
}

.agent-table--compare thead th {
  width: auto;
  min-width: 0;
  white-space: nowrap;
  background: rgba(99, 102, 241, 0.25);
  color: #f8fafc;
}

.agent-table--compare tbody th,
.agent-col-rank {
  width: auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--star-gold);
  background: transparent;
}

.agent-name-link {
  font-weight: 700;
  color: #f8fafc !important;
  text-decoration: underline;
  text-decoration-color: rgba(244, 185, 66, 0.6);
}

.agent-table-cta .agent-cta {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.agent-table-cta .agent-ad--pending .agent-ad-fallback,
.agent-table-cta .agent-ad-fallback {
  min-height: 36px;
  font-size: 0.8125rem;
  padding: 4px 14px;
}

/* ---------- 特徴・注意点 ---------- */
.agent-feature {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(26, 34, 64, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-left: 4px solid var(--star-gold);
}

.agent-feature p {
  margin: 0;
}

.agent-cautions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-cautions li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 44px;
  border-radius: 12px;
  background: rgba(255, 126, 179, 0.08);
  border: 1px solid rgba(255, 126, 179, 0.35);
}

.agent-cautions li::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff7eb3;
  color: #2a0a17;
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 22px;
  text-align: center;
}

/* ---------- 口コミ ---------- */
.agent-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}

.agent-review {
  padding: 18px 18px 8px;
  border-radius: 14px;
  background: rgba(15, 22, 41, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.agent-review-title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
}

.agent-review ul {
  margin: 0;
  padding-left: 1.2em;
}

.agent-review li {
  margin: 0 0 10px;
  line-height: 1.8;
}

.agent-review--good {
  border-color: rgba(6, 182, 212, 0.55);
}

.agent-review--good .agent-review-title {
  color: #67e8f9;
}

.agent-review--bad {
  border-color: rgba(255, 126, 179, 0.55);
}

.agent-review--bad .agent-review-title {
  color: #ff9cc6;
}

.agent-sources {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.agent-sources li {
  font-size: 0.875rem !important;
  line-height: 1.7 !important;
  color: #94a3b8 !important;
  overflow-wrap: anywhere;
}

.agent-sources a {
  color: #cbd5e1;
}

/* ---------- ステップ・チェックリスト ---------- */
.agent-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: agentstep;
}

.agent-steps li {
  position: relative;
  counter-increment: agentstep;
  margin: 0 0 14px;
  padding: 14px 16px 14px 62px;
  min-height: 56px;
  border-radius: 12px;
  background: rgba(26, 34, 64, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.agent-steps li::before {
  content: counter(agentstep);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4b942, #ff7eb3);
  color: #1a1204;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.agent-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-checklist li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 46px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.agent-checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 8px;
  height: 14px;
  border: solid #67e8f9;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.agent-faq details {
  margin: 0 0 10px;
  border-radius: 12px;
  background: rgba(26, 34, 64, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.agent-faq summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #f8fafc;
  list-style: none;
  line-height: 1.6;
}

.agent-faq summary::-webkit-details-marker {
  display: none;
}

.agent-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 1.5rem;
  color: var(--star-gold);
}

.agent-faq details[open] summary::after {
  content: "\2212";
}

.agent-faq summary:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 2px;
}

.agent-faq-a {
  padding: 0 16px 14px;
  line-height: 1.9;
  color: #e2e8f0;
}

/* ---------- 前後ナビ・関連 ---------- */
.agent-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.agent-pager a {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(26, 34, 64, 0.75);
  border: 1px solid rgba(244, 185, 66, 0.4);
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.9375rem;
  text-align: center;
  line-height: 1.5;
}

.agent-pager a:hover {
  background: rgba(244, 185, 66, 0.15);
}

.agent-pager-prev {
  justify-content: flex-start !important;
  text-align: left !important;
}

.agent-pager-next {
  justify-content: flex-end !important;
  text-align: right !important;
}

.agent-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.agent-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(26, 34, 64, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-decoration: none;
  color: #e2e8f0 !important;
  font-size: 0.875rem;
  line-height: 1.6;
}

.agent-related-card:hover {
  border-color: var(--star-gold);
}

.agent-related-card strong {
  font-size: 1rem;
  color: #f8fafc;
}

.agent-related-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--star-gold);
}

/* ---------- まとめページ ---------- */
.agent-pagehero-grid {
  grid-template-columns: 1.2fr 1fr;
}

.agent-card {
  margin: 0 0 32px;
  padding: 22px 22px 16px;
  border-radius: 18px;
  background: rgba(26, 34, 64, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  scroll-margin-top: 90px;
}

.agent-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.agent-card-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
}

.agent-card-catch {
  margin: 0 0 10px;
  font-weight: 700;
  color: #ffe9a8;
}

.agent-card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}

.agent-card-col {
  padding: 12px 16px 4px;
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.agent-card-sub {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--star-gold);
}

.agent-card-col ul {
  margin: 0;
  padding-left: 1.2em;
}

.agent-meta {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  font-size: 0.875rem;
}

.agent-meta div {
  display: flex;
  gap: 10px;
}

.agent-meta dt {
  flex: 0 0 5.5em;
  color: #94a3b8;
}

.agent-meta dd {
  margin: 0;
  color: #e2e8f0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-plainlink {
  color: var(--star-gold);
  text-decoration: underline;
}

.agent-groupnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.agent-groupnav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(26, 34, 64, 0.75);
  border: 1px solid rgba(244, 185, 66, 0.4);
  color: #f8fafc !important;
  text-decoration: none;
  line-height: 1.5;
}

.agent-groupnav-link:hover {
  background: rgba(244, 185, 66, 0.15);
}

/* ---------- 特集TOP ---------- */
.agent-tophero {
  position: relative;
  padding: 96px 0 40px;
  overflow: hidden;
  background: var(--space-mid);
}

.agent-tophero-bg {
  position: absolute;
  inset: 0;
}

.agent-tophero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.agent-tophero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.55), rgba(10, 14, 26, 0.92));
}

.agent-tophero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.agent-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.agent-stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(244, 185, 66, 0.5);
  color: #e2e8f0;
  font-size: 0.875rem;
}

.agent-stats b {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--star-gold);
}

.agent-points {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.agent-points li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1.4em;
  font-size: 0.9375rem !important;
  line-height: 1.7 !important;
}

.agent-points li::before {
  content: "\2605";
  position: absolute;
  left: 0;
  color: var(--star-gold);
}

.agent-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: #67e8f9 !important;
  text-decoration: none;
}

.agent-more::after {
  content: "\2192";
  margin-left: 6px;
}

.agent-more:hover {
  text-decoration: underline;
}

.agent-top3 {
  display: grid;
  gap: 24px;
}

.agent-top3-card {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(26, 34, 64, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.agent-top3-card--1 {
  border: 2px solid rgba(244, 185, 66, 0.75);
  box-shadow: 0 0 30px rgba(244, 185, 66, 0.28);
}

.agent-top3-card--2 {
  border-color: rgba(203, 213, 225, 0.6);
}

.agent-top3-card--3 {
  border-color: rgba(217, 138, 74, 0.65);
}

.agent-top3-photo {
  margin: 0;
  min-height: 220px;
  position: relative;
}

.agent-top3-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-top3-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 22px 16px;
  min-width: 0;
}

.agent-top3-name {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.agent-top3-catch {
  margin: 0;
  color: #ffe9a8;
  font-weight: 700;
  line-height: 1.7;
}

.agent-top3-body .agent-ad-zone,
.agent-top3-body .agent-ad {
  width: 100%;
}

.agent-top3-body .agent-ad-zone {
  margin: 8px 0;
}

.agent-rankcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.agent-rankcard {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 34, 64, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.agent-rankcard-photo {
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.agent-rankcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-rankcard-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 10px;
  flex: 1;
}

.agent-rankcard-name {
  margin: 0;
  font-size: 1.25rem;
}

.agent-rankcard-body p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.7;
}

.agent-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.agent-group-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(26, 34, 64, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.agent-group-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.agent-group-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.agent-group-title a {
  color: #f8fafc;
  text-decoration: none;
}

.agent-group-card p {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.agent-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.agent-group-list a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(10, 14, 26, 0.5);
}

.agent-group-list a:hover {
  border-color: var(--star-gold);
  color: var(--star-gold);
}

/* DB フィルタ・テーブル */
.agents-db-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.agents-db-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agents-db-chip {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(10, 14, 26, 0.6);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.agents-db-chip:hover {
  border-color: var(--star-gold);
}

.agents-db-chip.is-active {
  background: linear-gradient(120deg, #f4b942, #ff7eb3);
  border-color: transparent;
  color: #1a1204;
  font-weight: 800;
}

.agents-db-chip:focus-visible,
.agents-db-search input:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 2px;
}

.agents-db-search {
  flex: 1 1 240px;
  max-width: 420px;
}

.agents-db-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(10, 14, 26, 0.8);
  color: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
}

.agents-db-search input::placeholder {
  color: #94a3b8;
}

.agents-db-count {
  margin: 0;
  font-size: 0.875rem !important;
  color: #94a3b8;
}

.agents-db-count span {
  font-weight: 800;
  color: var(--star-gold);
  font-size: 1.0625rem;
}

.agents-db-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 22, 41, 0.85);
  max-width: 100%;
}

.agents-db {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.agents-db th,
.agents-db td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.agents-db thead th {
  position: sticky;
  top: 0;
  background: #23305a;
  color: #f8fafc;
  white-space: nowrap;
}

.agents-db tbody tr:hover {
  background: rgba(244, 185, 66, 0.08);
}

.agents-db td:first-child {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--star-gold);
  white-space: nowrap;
}

.agents-db a {
  color: #67e8f9;
}

.agents-db-empty {
  margin: 12px 0 0;
  padding: 14px;
  text-align: center;
  color: #94a3b8;
}

/* 選び方・評価・リンク */
.agent-choose {
  display: grid;
  gap: 16px;
}

.agent-choose-item {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(26, 34, 64, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.agent-choose-item p {
  margin: 0;
}

.agent-eval {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.agent-eval li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.5);
  font-size: 0.9375rem !important;
  line-height: 1.7 !important;
}

.agent-eval strong {
  color: #ffe9a8;
}

.agent-links {
  margin: 0;
  padding-left: 1.2em;
}

.agent-links li {
  margin: 0 0 6px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .agent-related {
    grid-template-columns: 1fr;
  }

  .agent-top3-card {
    grid-template-columns: 0.8fr 1.4fr;
  }
}

@media (max-width: 768px) {
  .agent-hero,
  .agent-pagehero {
    padding: 80px 0 12px;
  }

  .agent-hero-grid,
  .agent-pagehero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .agent-hero-photo {
    order: -1;
    aspect-ratio: 16 / 6;
    border-radius: 12px;
  }

  .agent-hero-text {
    gap: 10px;
  }

  .agent-breadcrumb {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .agent-catch {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .agent-ad-zone {
    margin: 4px auto 24px;
    padding: 14px 12px;
  }

  .agent-cta {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .agent-review-grid,
  .agent-card-cols,
  .agent-rankcards,
  .agent-groups {
    grid-template-columns: 1fr;
  }

  .agent-toc ol {
    columns: 1;
  }

  .agent-top3-card {
    grid-template-columns: 1fr;
  }

  .agent-top3-photo {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }

  .agent-top3-body {
    padding: 16px 14px 12px;
  }

  .agent-card {
    padding: 16px 14px 10px;
  }

  .agent-pager-prev,
  .agent-pager-next {
    justify-content: center !important;
    text-align: center !important;
  }

  .agent-table th {
    width: 34%;
    min-width: 7em;
  }

  .agent-table th,
  .agent-table td {
    padding: 10px;
    font-size: 0.875rem;
  }

  .agents-db-search {
    max-width: none;
    flex-basis: 100%;
  }

  .agent-steps li {
    padding-left: 56px;
  }

  .agent-table-cta .agent-cta {
    width: auto;
  }
}

@media (max-width: 400px) {
  .agent-wrap {
    padding: 0 16px;
  }

  .agent-medal {
    height: 36px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-cta {
    transition: none;
  }

  .agent-cta:hover {
    transform: none;
  }
}

/* ============================================================
 * レビュー指摘対応（2026-10-21）: コントラスト・はみ出し・広告ゾーン・固定ヘッダー・表
 * ============================================================ */

/* 固定ヘッダー: 特集ページでは最初から不透明（パンくずとの重なり防止） */
body:has(.agent-page) .header {
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.agent-hero,
.agent-pagehero {
  padding-top: 96px;
}

/* はみ出し防止 */
.agent-page :is(.agent-hero-grid, .agent-pagehero-grid, .agent-card-head, .agent-card-cols, .agent-top3-card) > * {
  min-width: 0;
}

.agent-page h1,
.agent-page h2,
.agent-page h3,
.agent-page h4,
.agent-title,
.agent-card-title {
  overflow-wrap: anywhere;
}

.agent-medal--sm {
  flex-shrink: 0;
  min-width: 56px;
  padding: 0 10px;
}

/* 短文の行残り防止 */
.agent-ad-zone-lead,
.agent-ad-fallback,
.agent-cta,
.agent-card-catch,
.agent-catch,
.agent-card-col li,
.agent-pager a {
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
}

.agent-cta,
.agent-ad-fallback {
  text-align: center;
  overflow-wrap: break-word;
}

.agent-cta {
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.45);
  text-shadow: none;
}

.agent-cta:hover {
  box-shadow: 0 0 26px rgba(251, 146, 60, 0.7), 0 8px 24px rgba(190, 24, 93, 0.55);
}

/* 広告ゾーン: スマホは リード→CTA→バナー の順 */
.agent-ad-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agent-ad-zone > .agent-ad-zone-lead { order: 0; }
.agent-ad-zone > .agent-cta-wrap { order: 1; width: 100%; margin-bottom: 14px; }
.agent-ad-zone > .agent-ad { order: 2; margin-bottom: 0; }

.agent-ad-zone > .agent-ad--pending {
  margin-top: 0;
}

/* PC: 左バナー・右にリード+CTA の2カラム */
@media (min-width: 900px) {
  .agent-ad-zone {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 32px;
    align-items: center;
    text-align: left;
    padding: 20px 28px;
  }

  .agent-ad-zone > .agent-ad {
    grid-column: 1;
    grid-row: 1 / span 2;
    order: 0;
    margin: 0;
  }

  .agent-ad-zone > .agent-ad-zone-lead {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 12px;
    font-size: 1.125rem;
  }

  .agent-ad-zone > .agent-cta-wrap {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    margin: 0;
  }

  /* バナー無し（枠が1つだけ）の場合は中央寄せのまま */
  .agent-ad-zone:not(:has(> .agent-ad)) {
    display: flex;
    text-align: center;
  }
}

/* 比較表: 列幅のルール化 + CTA列を右固定 */
.agent-table--compare {
  min-width: 760px;
}

.agent-table--compare thead th {
  min-width: 9em;
}

.agent-table--compare thead th:first-child,
.agent-table--compare thead th:last-child {
  min-width: 0;
}

.agent-table--compare tbody th[scope="row"],
.agent-table--compare tbody td:nth-child(2) {
  min-width: 9em;
}

.agent-table--compare thead th:last-child,
.agent-table--compare tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #151d35;
  box-shadow: -8px 0 12px -8px rgba(0, 0, 0, 0.6);
}

.agent-table--compare thead th:last-child {
  background: #2c3566;
}

/* 全サービスDB表 */
.agents-db {
  min-width: 720px;
}

.agents-db td:nth-child(3),
.agents-db td:nth-child(1) {
  white-space: nowrap;
}

.agents-db td:nth-child(2) {
  min-width: 10em;
}

.agents-db td:nth-child(4) {
  min-width: 10em;
}

.agents-db td:nth-child(5) {
  min-width: 7em;
  max-width: 14em;
}

.agents-db td:nth-child(6) {
  min-width: 11em;
  max-width: 16em;
}

@media (max-width: 767px) {
  .agents-db {
    min-width: 0;
  }

  .agents-db th:nth-child(5),
  .agents-db td:nth-child(5),
  .agents-db th:nth-child(6),
  .agents-db td:nth-child(6) {
    display: none;
  }

  .agents-db th:nth-child(4),
  .agents-db td:nth-child(4) {
    display: none;
  }

  .agents-db td:nth-child(2) {
    min-width: 0;
  }
}
