/* ========================================
   Agent Comparison Page (page-agent.php)
   親テーマ koeba-theme で 9 サイト共有
   業種別の文言・サービス情報は子テーマの inc/agent-data.php で管理
   ======================================== */

/* ===== 広告表記 ===== */
.ad-disclosure {
  margin: 0;
  padding: 6px 16px;
  background: #f5f5f5;
  color: #777;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ===== セクション共通 ===== */
.agent-section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px;
}
.agent-section__title {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
  color: #222;
}
.agent-section__lead {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== 準備中ページ（agent-data.php 無い場合） ===== */
.agent-coming-soon {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.agent-coming-soon__inner {
  text-align: center;
  max-width: 480px;
}
.agent-coming-soon__icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.agent-coming-soon h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #222;
}
.agent-coming-soon p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ===== ① MV (画像 + ピンクCTAバー) ===== */
.agent-mv {
  margin-top: var(--header-height, 64px);  /* 固定ヘッダ分の余白 */
  background: var(--primary-bg);  /* 1440px超の余白部分の背景 */
}
.agent-mv__image-wrap {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
}
.agent-mv__image-wrap picture {
  display: block;
}
.agent-mv__image {
  display: block;
  width: 100%;
  height: auto;
  /* PC/SPともに画像のintrinsic比率で表示 (高さ固定しない) */
}

/* パンくず (画像左上にオーバーレイ) */
.agent-mv__breadcrumb {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.agent-mv__breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.agent-mv__breadcrumb a:hover { text-decoration: underline; }
.agent-mv__breadcrumb span { color: #888; }
.agent-mv__breadcrumb > span:last-child {
  color: #555;
  font-weight: 700;
}

/* ピンク CTA バー */
.agent-mv__cta-bar {
  background: var(--primary);
}
.agent-mv__cta-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* 黄色フキダシ */
.agent-mv__callout {
  position: relative;
  background: #ffb400;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  padding: 9px 14px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.agent-mv__callout::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #ffb400;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* CTAボタン共通 */
.agent-mv__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 1.2;
}
.agent-mv__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* 「診断してみる」: 白背景 + 濃ピンク文字 */
.agent-mv__cta--diagnose {
  background: #fff;
  color: var(--primary);
}
/* 「エージェント比較を見る」: var(--primary) ピンク背景 + 白文字 + 白枠 */
.agent-mv__cta--compare {
  background: var(--primary);
  color: #fff;
}

/* ===== ②' 転職エージェントとは？（イントロ） ===== */
.agent-intro {
  background: #fff;
}
.agent-intro__title {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.4;
  color: #222;
  position: relative;
  padding-bottom: 12px;
}
.agent-intro__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.agent-intro__body {
  text-align: center;
}
.agent-intro__list-title { text-align: center; line-height: 1.5; }
.agent-intro__body p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 16px;
}
.agent-intro__body p:last-child { margin-bottom: 0; }
.agent-intro__list-title {
  display: block;
  width: fit-content;
  margin: 36px auto 24px;
  font-size: 20px;
  font-weight: 900;
  color: #222;
  line-height: 1.4;
  background: linear-gradient(transparent 60%, #fff19a 60%);
  padding: 0 6px;
}
.agent-intro__circles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.agent-intro__circle {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.18);
}
.agent-intro__circle span { display: block; }

@media (max-width: 767px) {
  .agent-intro__title { font-size: 22px; }
  .agent-intro__body { text-align: left; }
  .agent-intro__body p { font-size: 14px; line-height: 1.85; }
  .agent-intro__list-title { font-size: 18px; margin: 28px auto 18px; }
  /* SP: 3列維持。circle を縮小して画面幅に収める */
  .agent-intro__circles {
    display: grid; /* PC は flex なので明示的に grid に切替 */
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: initial;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
  }
  .agent-intro__circle {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: 16px;
  }
}

/* ===== ② 診断機能（5問・コンパクト1ページ表示） ===== */
.agent-diagnose {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.agent-diagnose__box {
  background: var(--primary-bg);
  border-radius: 12px;
  padding: 28px 28px 20px;
}
.agent-diagnose__title {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.4;
  color: #222;
}
.agent-diagnose__lead {
  text-align: center;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 14px;
}
.agent-diagnose__form {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.agent-diagnose__q {
  border: none;
  margin: 0 0 16px;
  padding: 14px 0 12px;
  border-bottom: 1px dashed rgba(var(--primary-rgb), 0.18);
}
.agent-diagnose__q:first-child { padding-top: 4px; }
.agent-diagnose__q:last-of-type { border-bottom: none; padding-bottom: 4px; margin-bottom: 8px; }

/* select型を横並び (PCで2列、SPで1列) */
.agent-diagnose__q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(var(--primary-rgb), 0.18);
}
.agent-diagnose__q-row .agent-diagnose__q {
  border-bottom: none;
  padding: 6px 0 4px;
  margin: 0;
}

/* select (ドロップダウン) */
.agent-diagnose__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 36px 10px 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  border: 1px solid #e0d0d4;
  border-radius: 6px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.3;
  font-family: inherit;
}
.agent-diagnose__select:hover {
  border-color: var(--primary);
}
.agent-diagnose__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.agent-diagnose__q--select .agent-diagnose__q-mode {
  /* select型では選択方式バッジを控えめに */
  display: none;
}

.agent-diagnose__q-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.agent-diagnose__q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
}
.agent-diagnose__q-label { flex: 1; min-width: 0; line-height: 1.4; }
.agent-diagnose__q-mode {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  background: transparent;
  border: none;
  padding: 0;
}

.agent-diagnose__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-diagnose__chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.agent-diagnose__chip input[type="checkbox"],
.agent-diagnose__chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.agent-diagnose__chip-text {
  display: inline-block;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e0d0d4;
  border-radius: 999px;
  font-size: 13px;
  color: #444;
  transition: all 0.15s;
  line-height: 1.3;
}
.agent-diagnose__chip:hover .agent-diagnose__chip-text {
  border-color: var(--primary);
  color: var(--primary);
}
.agent-diagnose__chip input:checked + .agent-diagnose__chip-text {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.agent-diagnose__chip input:focus-visible + .agent-diagnose__chip-text {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.agent-diagnose__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.18);
}
.agent-diagnose__progress {
  font-size: 13px;
  color: #555;
  font-weight: 700;
}
.agent-diagnose__progress--done {
  color: var(--primary);
}
.agent-diagnose__submit {
  min-width: 280px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}
.agent-diagnose__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== 結果カード ===== */
.agent-diagnose__results {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--primary-bg);
}
.agent-diagnose__results-title {
  font-size: 18px;
  font-weight: 900;
  color: #222;
  text-align: center;
  margin-bottom: 20px;
}
.agent-diagnose__cards {
  display: grid;
  gap: 18px;
}
.diagnose-result {
  background: #fff;
  border: 2px solid var(--primary-bg-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.08);
}
.diagnose-result__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.diagnose-result__rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}
.diagnose-result__catch {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.diagnose-result__catch strong { font-size: 17px; }
.diagnose-result__pinned-note {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.diagnose-result__body {
  padding: 18px 24px 22px;
}
.diagnose-result__section {
  margin-bottom: 16px;
}
.diagnose-result__section:last-child { margin-bottom: 0; }
.diagnose-result__section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  letter-spacing: 0.03em;
}
.diagnose-result__section--warning .diagnose-result__section-label {
  color: #d97706;
  border-left-color: #d97706;
}
.diagnose-result__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.diagnose-result__list li {
  position: relative;
  padding: 6px 12px 6px 30px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  background: var(--primary-bg);
  border-radius: 6px;
}
.diagnose-result__list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 6px;
  color: var(--primary);
  font-weight: 900;
}
.diagnose-result__section--warning .diagnose-result__list li {
  background: #fff3e0;
}
.diagnose-result__section--warning .diagnose-result__list li::before {
  content: "▼";
  color: #d97706;
  font-size: 11px;
  top: 7px;
}
.diagnose-result__cta-wrap {
  margin-top: 18px;
}
.diagnose-result__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  font-weight: 900;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}
.diagnose-result__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}

.agent-diagnose__retry {
  margin-top: 18px;
  text-align: center;
}
.agent-diagnose__retry-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}
.agent-diagnose__retry-btn:hover { color: var(--primary-dark); }

.agent-diagnose__placeholder {
  background: #fafafa;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #888;
}

/* ===== ③ サービス比較表 ===== */
.agent-comparison {
  background: #fff;
  border-bottom: 1px solid #eee;
}
/* SP-only ユーティリティ (PCでは非表示の<br>) */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
}

/* タイトル画像 (テキスト見出しを画像に置換) */
/* 複合セレクタで specificity を上げ、SP @media の section__title margin を上書き */
.agent-section__title.agent-comparison__title-img {
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 0; /* h2に残るインライン余白除去 */
  line-height: 0;
}
.agent-comparison__title-img img {
  display: inline-block;
  width: 100%;
  max-width: 1040px; /* 表示時の最大幅 */
  height: auto;
}
.agent-comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.agent-comparison__table {
  width: 100%;
  border-collapse: collapse; /* 全セル罫線のため collapse */
  font-size: 16px;
  table-layout: fixed;
  min-width: 980px; /* PC横スクロール想定の最小幅 */
}
.agent-comparison__table th,
.agent-comparison__table td {
  border: 1px solid #e0e0e0; /* 全セル罫線 */
}
.agent-comparison__table thead th {
  background: var(--primary-bg);
  color: #444;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 2px solid var(--primary);
  vertical-align: middle;
  line-height: 1.4;
}
.agent-comparison__table tbody td {
  padding: 16px 12px;
  vertical-align: middle; /* 上下中央 */
  text-align: center;
  font-size: 22px;
  color: #333;
  line-height: 1.6;
  word-break: break-word;
}
.agent-comparison__th-agent { width: 200px; }
.agent-comparison__agent-cell {
  text-align: center !important;
  width: 200px;
  background: #fffbfd;
  padding: 18px 12px !important;
  vertical-align: middle;
}
.agent-comparison__img {
  width: 125px;
  height: 125px;
  margin: 0 auto 6px;
  display: block;
  position: relative; /* 1x1トラッカー位置基準 */
  line-height: 0; /* インライン行高による余白カット */
}
.agent-comparison__img img { display: block; max-width: 100%; height: auto; }
.agent-comparison__img-placeholder {
  width: 125px;
  height: 125px;
  margin: 0 auto 12px;
  background: #f1f1f1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.agent-comparison__name {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.4;
}
/* 吹き出し風キャッチ */
.agent-comparison__catch {
  position: relative;
  display: inline-block;
  margin: 0px auto 9px;
  padding: 4px 14px;
  background: var(--primary);
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  font-weight: 500;
}
.agent-comparison__catch::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary);
}
.agent-comparison__catch::before {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--primary);
  z-index: 1;
}
/* CTAボタン (黄色背景・ピンク文字)
   ※ASP規約遵守でアフィリ <a> 原文に class 付与しない方針のため、
   wrapper div 子孫セレクタ + 既存 .agent-comparison__cta クラス (placeholder span用) の両方をスタイル対象とする */
.agent-comparison__cta,
.agent-comparison__cta-wrap > a {
  display: block;
  padding: 6px 2px;
  background: #fff19a;
  color: var(--primary);
  border-radius: 500px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid var(--primary);
  line-height: 1.3;
}
.agent-comparison__cta:hover,
.agent-comparison__cta-wrap > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}
.agent-comparison__cta--placeholder {
  background: #eee;
  color: #999 !important;
  border-color: #ccc;
  cursor: not-allowed;
}
.agent-comparison__cta--placeholder:hover {
  transform: none;
  box-shadow: none;
}
/* ナースではたらこ: テキスト「「医療」ナースではたらこ」が長いため文字幅を詰める */
.agent-comparison__cta-wrap--nurse_de_hatarako > a {
  font-size: 14px;
  letter-spacing: -1px;
}
/* 求人数/エリア セル: エリア名 + 数字強調 + 注釈 */
.agent-comparison__area {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
}
.agent-comparison__num strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 1px;
}
/* ナースではたらこ: 求人数セルに <strong> がない (求人数非公開) ため、span 自体に18px適用 */
.agent-comparison__row--nurse_de_hatarako .agent-comparison__num {
  font-size: 18px;
}
.agent-comparison__note {
  display: inline-block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}

/* 対応資格セル: チェックアイコン (SVG) 付きリスト */
.agent-comparison__cert-item {
  display: block;
  position: relative;
  padding-left: 32px;
  margin: 6px 0;
  width: fit-content;
  text-align: left;
  line-height: 1.5;
  font-size: 22px;
  color: #333;
}
/* 対応資格の列だけ左寄せ */
.agent-comparison__table tbody td:has(.agent-comparison__cert-item) {
  text-align: left;
  padding-left: 24px;
}
.agent-comparison__cert-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url('../images/check-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 主な対応施設セル: タグチップ (薄ピンク背景・primary枠・primary文字) */
/* 全タグを同じ横幅に揃えて縦並び */
.agent-comparison__facility-tag {
  display: block;
  width: 200px;
  max-width: 100%;
  margin: 4px auto;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

/* 列幅調整: 主な対応施設は広め */
.agent-comparison__th-facility { width: 204px; }

/* 連絡手段セル: アイコン付きリスト (LINE/電話/メール) */
.agent-comparison__contact-item {
  display: block;
  position: relative;
  padding-left: 36px;
  margin: 6px 0;
  width: fit-content;
  text-align: left;
  font-size: 24px;
  line-height: 1.5;
  color: #333;
}
/* 連絡手段の列だけ左寄せ */
.agent-comparison__table tbody td:has(.agent-comparison__contact-item) {
  text-align: left;
  padding-left: 24px;
}
.agent-comparison__contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.agent-comparison__contact-item--phone::before {
  background-image: url('../images/phone.svg');
}
.agent-comparison__contact-item--mail::before {
  background-image: url('../images/mail.svg');
}
.agent-comparison__contact-item--line::before {
  background-image: url('../images/LINE.svg');
}

/* スカウト機能セル: 〇 を大きく */
.agent-comparison__scout-yes {
  display: inline-block;
  font-size: 66px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}
/* 1x1 トラッキングピクセル: コードはそのままで余白を消す */
.agent-comparison__agent-cell img[width="1"][height="1"],
.service-card__cta-wrap img[width="1"][height="1"],
.service-card__affiliate-image img[width="1"][height="1"],
.combo-card__service-image img[width="1"][height="1"],
.combo-card__service-cta img[width="1"][height="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: 0;
  border: 0;
  pointer-events: none;
}
.service-card__cta-wrap { position: relative; }

@media (max-width: 767px) {
  /* SPでもtable形式維持 + 横スクロール (data-label擬似要素は非表示) */
  .agent-comparison__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .agent-comparison__table {
    min-width: 980px;
  }
  .agent-comparison__table tbody td::before { display: none !important; }
}

/* ===== スクロールヒント (横スクロールが発生する時のみ表示) ===== */
.agent-comparison__table-wrap {
  position: relative;
}
.agent-comparison__scroll-hint {
  position: absolute;
  top: 80px; /* ヘッダ行の少し下、表の上部に配置 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(40, 40, 40, 0.78);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.agent-comparison__scroll-hint--show {
  opacity: 1;
}
.agent-comparison__scroll-hint-icon {
  font-size: 26px;
  line-height: 1;
  display: inline-block;
  animation: scroll-hint-swipe 1.4s ease-in-out infinite;
}
@keyframes scroll-hint-swipe {
  0%, 100% { transform: translateX(-10px); }
  50%      { transform: translateX(10px); }
}

/* ===== ③④ プレースホルダー ===== */
.agent-placeholder-section {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.agent-placeholder {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #888;
}
.agent-placeholder p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.agent-placeholder small {
  font-size: 12px;
}

/* ===== ⑤ 今月の転職傾向 ===== */
.agent-monthly {
  background: #fafafa;
}
.agent-monthly .agent-section__title {
  text-align: left;
  font-size: 22px;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 20px;
}
.agent-monthly__body {
  background: var(--primary-bg);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.agent-monthly__body--with-image {
  display: flex;
  align-items: center;
  gap: 28px;
}
.agent-monthly__image {
  flex: 0 0 38%;
  max-width: 38%;
}
.agent-monthly__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.agent-monthly__text {
  flex: 1;
  min-width: 0;
}
.agent-monthly__body p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 14px;
}
.agent-monthly__body p:last-child {
  margin-bottom: 0;
}
.agent-monthly__cta-wrap {
  text-align: center;
}
.agent-monthly__cta {
  display: inline-block;
  min-width: 280px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}
.agent-monthly__updated {
  font-size: 12px;
  color: #888;
  margin-top: 16px;
  text-align: right;
}

/* ===== ⑥ 編集部おすすめ Picks ===== */
.agent-picks {
  background: #fff;
}
/* 横スクロール ビューポート: section-inner からブレイクアウトして画面幅いっぱい */
.agent-picks__viewport {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.agent-picks__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* paddingは最小限。1枚目の中央配置はJS (alignInitial) + クローンで実現する */
  padding: 6px 16px;
  -webkit-overflow-scrolling: touch;
  /* スクロールバー非表示 */
  scrollbar-width: none;
}
.agent-picks__grid::-webkit-scrollbar {
  display: none;
}
.agent-picks__grid > .service-card {
  flex: 0 0 auto;
  width: 480px;
  scroll-snap-align: center; /* 各カードを画面中央にスナップ */
}

/* 左右矢印ボタン (SVG画像、prev は横反転で流用) */
.agent-picks__arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: none;
  background: url('../images/arrow--prev.svg') center / contain no-repeat;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  font-size: 0;       /* 内部の "<" ">" 文字を非表示 */
  color: transparent;
  line-height: 0;
  border-radius: 50%; /* focus ring用 */
  transition: filter 0.15s;
}
.agent-picks__arrow:hover { filter: brightness(0.95); }
.agent-picks__arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.35);
}
/* next: SVGそのまま (右向き) */
.agent-picks__arrow--next { transform: translateY(-50%); }
/* prev: SVGを横反転 (左向き) */
.agent-picks__arrow--prev { transform: translateY(-50%) scaleX(-1); }
/* 配置位置 (元のsection-inner端と同じ) */
.agent-picks__arrow--prev { left: max(8px, calc((100vw - 1040px) / 2 - 8px)); }
.agent-picks__arrow--next { right: max(8px, calc((100vw - 1040px) / 2 - 8px)); }
.service-card {
  background: #fff;
  border: 1px solid var(--primary-bg-strong);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.12);
}
.service-card--placeholder {
  opacity: 0.78;
}
.service-card--hidden {
  display: none !important;
}

/* トップバー: PICKバッジ + サービス名 */
.service-card__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 14px;
  background: #fff;
}
.service-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}
/* 王冠アイコン (PICKラベル代替) */
.service-card__badge--crown {
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  /* 絵文字をそのまま表示 */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}

/* アフィリ画像 (meta上部) */
.service-card__affiliate-image {
  text-align: center;
  margin: 0 auto 16px;
  max-width: 350px;
  position: relative;
}
.service-card__affiliate-image a,
.service-card__affiliate-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
/* ナースではたらこ: 画像サイズを抑える */
.service-card__affiliate-image--nurse-de-hatarako {
  max-width: 250px;
}
/* キャプラ看護ナビ: 画像幅を250pxに */
.service-card__affiliate-image--capla {
  max-width: 250px;
}
.service-card__affiliate-image--placeholder {
  width: 350px;
  max-width: 100%;
  height: 160px;
  background: #f5f5f5;
  border: 1px dashed #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 700;
  font-size: 14px;
}
.service-card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #222;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

/* キャッチコピーバナー（ピンクグラデ） */
.service-card__catch-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-strong) 100%);
  padding: 14px 26px;
  border-top: 1px dashed rgba(var(--primary-rgb), 0.25);
  border-bottom: 1px dashed rgba(var(--primary-rgb), 0.25);
}
.service-card__catch-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.service-card__catch {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.5;
  flex: 1;
}

/* 本文ブロック */
.service-card__body {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* スコア */
.service-card__score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbe6;
  border: 1px solid #f5e0a3;
  border-radius: 999px;
  padding: 5px 14px;
  align-self: flex-start;
}
.service-card__stars {
  color: #f5b400;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}
.service-card__score-num {
  font-size: 14px;
  font-weight: 900;
  color: #c89400;
}

/* メタ情報 */
.service-card__meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 13px;
  background: #fafafa;
  border-radius: 10px;
  padding: 14px 16px;
}
.service-card__meta > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  line-height: 1.5;
  align-items: baseline;
}
.service-card__meta dt {
  color: #888;
  font-weight: 700;
  font-size: 11px;
}
.service-card__meta dd {
  margin: 0;
  color: #333;
}
.service-card__meta dd small {
  color: #999;
  font-size: 10px;
  display: block;
  margin-top: 2px;
}

/* セクション見出し付きブロック */
.service-card__section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  letter-spacing: 0.03em;
}

/* おすすめポイント */
.service-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.service-card__points li {
  position: relative;
  padding: 6px 12px 6px 30px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  background: var(--primary-bg);
  border-radius: 6px;
}
.service-card__points li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 6px;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

/* 利用者の声 */
.service-card__reviews {
  background: #fafafa;
  border-left: 3px solid var(--primary-light);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}
.service-card__reviews-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.service-card__reviews p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 4px;
  font-style: italic;
}
.service-card__reviews p:last-child {
  margin-bottom: 0;
}
.service-card__reviews p::before {
  content: "“";
  margin-right: 2px;
  color: var(--primary-light);
  font-weight: 900;
}
.service-card__reviews p::after {
  content: "”";
  margin-left: 2px;
  color: var(--primary-light);
  font-weight: 900;
}

/* CTAボタン
   ※ASP規約遵守でアフィリ <a> 原文に class 付与しない方針のため、
   wrapper 子孫セレクタ .service-card__cta-wrap > a + 既存 .service-card__cta (placeholder/disabled <a>用) の両方をスタイル対象とする
   .btn--primary の役割 (background+color) もここで補完する */
.service-card__cta-wrap {
  margin-top: auto;
  padding: 0 26px 24px;
}
.service-card__cta,
.service-card__cta-wrap > a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-weight: 900;
  font-size: 16px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.service-card__cta:hover,
.service-card__cta-wrap > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
  background: var(--primary-dark);
}
.service-card__cta--disabled,
.combo-card__cta--disabled {
  background: #ccc !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== ⑦ 複数登録おすすめの組み合わせ ===== */
.agent-combos {
  background: #fafafa;
}
/* セクション見出し: eyebrow + main の2段組 (margin-bottom は .agent-section__title 側で制御) */
.agent-combos__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.agent-combos__title-eyebrow {
  display: inline-block;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-size: 20px;
  font-weight: 700;
  padding: 4px 16px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
/* 特化型エージェント側だけ下線スタイル */
.agent-specialized .agent-combos__title-eyebrow {
  border: none;
  border-bottom: 2px solid var(--primary);
  padding: 4px 8px;
}
.agent-combos__title-main {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .agent-combos__title { gap: 4px; }
  .agent-combos__title-eyebrow { font-size: 15px; padding: 3px 12px; border-width: 1.5px; }
}
.agent-combos__lead {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 32px;
  text-align: center;
}
.agent-combos__lead-bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px 40px;
  justify-content: center;
}
.agent-combos__lead-bullets li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  min-height: 24px;
  display: flex;
  align-items: center;
}
.agent-combos__lead-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url('../images/check-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
@media (max-width: 767px) {
  .agent-combos__lead { text-align: left; }
  .agent-combos__lead-bullets {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .agent-combos__lead-bullets li {
    font-size: 14px;
    padding-left: 28px;
  }
  .agent-combos__lead-bullets li::before {
    width: 20px;
    height: 20px;
  }
}
.agent-combos__lead p {
  margin: 0 0 12px;
  line-height: 1.8;
  color: #333;
  font-size: 14px;
}
.agent-combos__lead p:last-child {
  margin-bottom: 0;
}
/* ===== 特化型エージェント (combosセクション末尾の追加ブロック) ===== */
.agent-specialized {
  margin-top: 56px;
}
.agent-specialized__lead {
  text-align: center;
  margin-bottom: 24px;
}
.agent-specialized__lead p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 6px;
}
.agent-specialized__lead p:last-child { margin-bottom: 0; }
/* グリッド: 親grid に5行 (banner/name/image/desc/cta) を定義し、各カードがsubgridで継承 → 4枚で行が揃う */
.agent-specialized__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto auto auto;
  column-gap: 16px;
  row-gap: 0; /* 行間は各要素の margin で制御 (subgridでgapが効いて広くなりすぎるため) */
}
.specialized-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  padding: 0; /* 各要素の margin で内側余白を制御 */
}
.specialized-card__banner {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px 8px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialized-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 10px 14px 6px;
  line-height: 1.4;
  text-align: center;
}
.specialized-card__image {
  width: 125px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialized-card__image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.specialized-card__image-placeholder {
  width: 125px;
  height: 125px;
  background: #e8e8e8;
}
/* キャプラ看護ナビ: 高さ固定・幅は画像比率に合わせる
   ※ 親 <a> がインラインのため img への height: 100% が効かない → img に直接px指定 */
.specialized-card--capla .specialized-card__image {
  width: auto;
  aspect-ratio: auto;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}
.specialized-card--capla .specialized-card__image a {
  display: inline-block;
  max-width: 100%;
}
.specialized-card--capla .specialized-card__image img {
  height: 125px;
  width: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 767px) {
  /* SP: カード幅が狭いため画像をさらに小さく */
  .specialized-card--capla .specialized-card__image img {
    height: 100px;
  }
}
.specialized-card__description {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 14px 8px;
  text-align: left;
}
.specialized-card__cta-wrap {
  margin: 0 14px 14px;
  align-self: end; /* CTAをカード下端に */
}
.specialized-card__cta-wrap a,
.specialized-card__cta--placeholder {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.3;
}
.specialized-card__cta--placeholder { cursor: default; opacity: 0.7; }

/* subgrid 非対応ブラウザ向けフォールバック: flexで近似 */
@supports not (grid-template-rows: subgrid) {
  .specialized-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
  .specialized-card__cta-wrap { margin-top: auto; }
}

@media (max-width: 1023px) {
  .agent-specialized__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .agent-specialized { margin-top: 40px; }
  .agent-specialized__lead p { font-size: 13px; line-height: 1.7; text-align: left; }
  .agent-specialized__grid { gap: 12px; }
  .specialized-card__banner { font-size: 12px; padding: 10px 6px; }
  .specialized-card__name { font-size: 14px; margin: 8px 12px 4px; }
  .specialized-card__description { margin: 0 12px 8px; }
  .specialized-card__cta-wrap { margin: 0 12px 12px; }
  .specialized-card__cta-wrap a,
  .specialized-card__cta--placeholder { font-size: 12px; padding: 6px 8px; }
}

/* ===== コンボカード (新デザイン: ピンクバナー+サービスグリッド) ===== */
.agent-combos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2カード横並び (PC) */
  gap: 24px;
}
.combo-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* タイトルバー (ピンク背景・白文字・両端ハッシュ風) */
.combo-card__title {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.combo-card__body {
  padding: 22px 22px 24px;
}
.combo-card__lead {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 18px;
}
/* サービス3つを + で連結 */
.combo-card__services {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 4px;
}
.combo-card__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* バッジ: 下向き三角の吹き出し風 */
.combo-card__service-badge {
  position: relative;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.combo-card__service-badge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary-bg);
}
.combo-card__service-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
}
.combo-card__service-image {
  width: 125px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.combo-card__service-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.combo-card__service-image--placeholder {
  background: #e8e8e8;
}
/* SP用画像はPC側では非表示 (SP @media で逆転) */
.combo-card__service-image--sp {
  display: none;
}
.combo-card__service-cta { width: 100%; }
/* ナースではたらこ: ボタンテキストが長いため文字を詰める
   ※ 後続の .combo-card__service-cta a と同特異度のため、modifier クラスを連結して特異度を上げる */
.combo-card__service-cta.combo-card__service-cta--nurse-de-hatarako a {
  font-size: 11px;
  letter-spacing: -1px;
  line-height: 16px;
}
.combo-card__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #888;
  /* 画像の中央付近に配置 */
  align-self: center;
  padding: 0 2px;
}
/* サービス内のCTA: 角丸の白ボタン+primary枠 (placeholder/実コードどちらも) */
.combo-card__service-cta a,
.combo-card__cta--placeholder {
  display: inline-block;
  width: 100%;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.3;
}
.combo-card__cta--placeholder {
  cursor: default;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .agent-combos__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .combo-card__title {
    font-size: 14px;
    padding: 10px 12px;
  }
  .combo-card__body {
    padding: 16px 14px 18px;
  }
  .combo-card__lead { font-size: 13px; margin-bottom: 14px; }
  /* combo: 1列縦積み + service内を [image | badge/name/cta 縦積み] レイアウトに */
  .combo-card__services {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .combo-card__service {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "image badge"
      "image name"
      "image cta";
    align-items: center;
    column-gap: 10px;
    text-align: left;
  }
  .combo-card__service-badge {
    grid-area: badge;
    margin: 0 auto;
    font-size: 14px;
    padding: 3px 6px;
  }
  .combo-card__service-badge::after { display: none; }
  .combo-card__service-name {
    grid-area: name;
    margin-bottom: 0;
    font-size: 16px;
    padding: 4px 0;
    text-align: center;
  }
  .combo-card__service-image {
    grid-area: image;
    margin: 0;
  }
  .combo-card__service-image--pc { display: none; }
  .combo-card__service-image--sp {
    display: flex;
    width: 120px;
    aspect-ratio: auto;
    height: auto;
  }
  .combo-card__service-image--sp a,
  .combo-card__service-image--sp img { display: block; width: 100%; }
  .combo-card__service-cta { grid-area: cta; }
  .combo-card__plus { font-size: 14px; }
  .combo-card__service-cta a,
  .combo-card__cta--placeholder { font-size: 14px; padding: 5px 4px; }
  .combo-card__service-cta.combo-card__service-cta--nurse-de-hatarako a {
    font-size: 14px;
  }

  /* ナースではたらこ: 各エージェント詳細のアフィリ画像をSP時180pxに */
  .service-card__affiliate-image--nurse-de-hatarako { max-width: 180px; }
}

/* ===== ⑧⑨ アコーディオン共通 ===== */
.agent-tips {
  background: #fff;
}
/* tips: アコーディオン → カードグリッド (3列+2列の2段) */
.agent-tips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.agent-tips__card {
  background: #fff;
  border: 1px solid var(--primary-bg-strong);
  border-radius: 12px;
  padding: 22px 22px 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.06);
  text-align: center; /* num / q を中央 */
}
.agent-tips__icon {
  text-align: center;
  margin-bottom: 8px;
}
.agent-tips__icon img {
  display: inline-block;
  width: 120px;
  height: 120px;
}
.agent-tips__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  margin: 0 auto 12px; /* 中央 */
  line-height: 1;
}
.agent-tips__q {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.5;
  text-align: center;
}
.agent-tips__a {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
  text-align: left; /* 本文は読みやすさ優先で左寄せ */
}
.agent-faq {
  background: #fafafa;
}
.agent-accordion {
  display: grid;
  gap: 10px;
}
.agent-accordion__item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.agent-accordion__item[open] {
  border-color: var(--primary);
}
.agent-accordion__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}
.agent-accordion__summary::-webkit-details-marker {
  display: none;
}
.agent-accordion__summary:hover {
  background: var(--primary-bg);
}
.agent-accordion__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.agent-accordion__q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.agent-accordion__q {
  flex: 1;
  line-height: 1.5;
}
.agent-accordion__icon {
  font-size: 18px;
  color: var(--primary);
  font-weight: 900;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.agent-accordion__item[open] .agent-accordion__icon {
  transform: rotate(45deg);
}
.agent-accordion__body {
  padding: 0 20px 20px;
  padding-left: 60px; /* num/q-mark の分インデント */
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}
.agent-accordion__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* ========================================
   レスポンシブ (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
  .agent-section__inner {
    padding: 40px 16px;
  }
  .agent-section__title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  /* SP: 比較表 facility 列の幅とタグ幅 */
  .agent-comparison__th-facility { width: 174px; }
  .agent-comparison__facility-tag {
    width: 150px;
    font-size: 18px;
  }
  /* SP: 対応資格セルのフォント */
  .agent-comparison__cert-item { font-size: 18px; }
  /* SP: combos リード bullets */
  .agent-combos__lead-bullets li { font-size: 16px; }
  /* SP: combos カード タイトル / eyebrow */
  .combo-card__title { font-size: 16px; }
  .agent-combos__title-eyebrow { font-size: 16px; }

  /* MV: パンくずSPは小さく */
  .agent-mv__breadcrumb {
    top: 10px;
    left: 12px;
    font-size: 10px;
    gap: 4px;
  }

  /* MV (SP: callout+診断してみる が1行目、エージェント比較を見る が2行目) */
  .agent-mv__cta-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "callout diagnose"
      "compare compare";
    gap: 10px;
    padding: 14px 16px;
  }
  .agent-mv__callout {
    grid-area: callout;
    font-size: 12px;
    padding: 7px 10px;
  }
  .agent-mv__cta--diagnose {
    grid-area: diagnose;
    width: 100%;
  }
  .agent-mv__cta--compare {
    grid-area: compare;
    width: 100%;
  }
  .agent-mv__cta {
    padding: 11px 18px;
    font-size: 14px;
  }

  /* 診断（SP: コンパクト化） */
  .agent-diagnose__box {
    padding: 22px 16px 16px;
  }
  .agent-diagnose__title {
    font-size: 20px;
  }
  .agent-diagnose__lead {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .agent-diagnose__form {
    padding: 0;
  }
  .agent-diagnose__q-legend {
    font-size: 13px;
    gap: 6px;
  }
  .agent-diagnose__chip-text {
    font-size: 12px;
    padding: 6px 12px;
  }
  .agent-diagnose__submit {
    width: 100%;
    min-width: 0;
  }
  .agent-diagnose__q-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .agent-diagnose__select {
    font-size: 13px;
    padding: 9px 32px 9px 12px;
  }
  .agent-diagnose__results {
    margin-top: 24px;
    padding-top: 20px;
  }
  .diagnose-result__head {
    padding: 14px 16px;
    gap: 10px;
  }
  .diagnose-result__rank {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .diagnose-result__catch { font-size: 14px; }
  .diagnose-result__catch strong { font-size: 16px; }
  .diagnose-result__body {
    padding: 16px 16px 18px;
  }

  /* Picks: SPは1カード幅をビューポート中央に */
  .agent-picks__grid {
    gap: 14px;
    padding: 6px 7vw;
  }
  .agent-picks__grid > .service-card {
    width: 86vw;
    max-width: 360px;
  }
  .agent-picks__arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .agent-picks__arrow--prev { left: 4px; }
  .agent-picks__arrow--next { right: 4px; }
  .service-card__topbar {
    padding: 18px 18px 12px;
    gap: 10px;
  }
  .service-card__name {
    font-size: 18px;
  }
  .service-card__catch-banner {
    padding: 12px 18px;
  }
  .service-card__catch {
    font-size: 13px;
  }
  .service-card__body {
    padding: 16px 18px;
    gap: 14px;
  }
  .service-card__meta {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  .service-card__meta > div {
    grid-template-columns: 56px 1fr;
  }
  .service-card__cta-wrap {
    padding: 0 18px 20px;
  }
  .service-card__cta,
  .service-card__cta-wrap > a {
    padding: 14px;
    font-size: 15px;
  }

  /* combo: 1列、内CTAも縦積み */
  .agent-combos__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  /* monthly */
  .agent-monthly__body {
    padding: 18px;
  }
  .agent-monthly__body--with-image {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .agent-monthly__image {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .agent-monthly__body p {
    font-size: 14px;
  }
  .agent-monthly__cta {
    min-width: 0;
    width: 100%;
  }

  /* tips: SPは2カラム */
  .agent-tips__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .agent-tips__card {
    padding: 16px 12px 18px;
  }
  .agent-tips__icon img {
    width: 80px;
    height: 80px;
  }
  .agent-tips__num {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  .agent-tips__q {
    font-size: 14px;
    line-height: 1.45;
  }
  .agent-tips__a {
    font-size: 12px;
    line-height: 1.65;
  }

  /* accordion */
  .agent-accordion__summary {
    padding: 14px 16px;
    font-size: 14px;
  }
  .agent-accordion__body {
    padding-left: 56px;
    padding-right: 16px;
  }
}
