/* ========================================
   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: 16px;
  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__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: 16px;
  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 p { font-size: 14px; line-height: 1.85; }
  .agent-intro__list-title { font-size: 18px; margin: 28px 0 18px; }
  .agent-intro__circles { gap: 12px; }
  /* SP でも 16px は維持。サイズはやや小さめ */
  .agent-intro__circle {
    width: 110px;
    height: 110px;
    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;
}
/* タイトル画像 (テキスト見出しを画像に置換) */
.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ボタン (黄色背景・ピンク文字) */
.agent-comparison__cta {
  display: block;
  padding: 6px 14px;
  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 {
  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__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;
}
.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"] {
  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;
  /* 1枚目を画面中央に配置するためのpadding (cardサイズ480pxを画面中央に) */
  padding: 6px max(16px, calc((100vw - 480px) / 2));
  /* ※ scroll-padding は snap-align:center の計算をズラすので使わない (padding で視覚的余白を確保) */
  -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--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ボタン */
.service-card__cta-wrap {
  margin-top: auto;
  padding: 0 26px 24px;
}
.service-card__cta {
  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;
}
.service-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}
.service-card__cta--disabled,
.combo-card__cta--disabled {
  background: #ccc !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== ⑦ 複数登録おすすめの組み合わせ ===== */
.agent-combos {
  background: #fafafa;
}
.agent-combos__lead {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}
.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;
}
.agent-compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.agent-compare-box__col {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.agent-compare-box__head {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 15px;
  text-align: center;
}
.agent-compare-box__col dl {
  margin: 0;
  padding: 16px 18px;
}
.agent-compare-box__col dl > div {
  margin-bottom: 12px;
}
.agent-compare-box__col dl > div:last-child {
  margin-bottom: 0;
}
.agent-compare-box__col dt {
  font-size: 12px;
  color: #888;
  font-weight: 700;
  margin-bottom: 4px;
}
.agent-compare-box__col dd {
  margin: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}
.agent-combos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.combo-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.15s;
}
.combo-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.combo-card__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.combo-card__name {
  font-size: 17px;
  font-weight: 900;
  color: #222;
  margin-bottom: 14px;
}
.combo-card__pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--primary-bg);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.combo-card__svc {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}
.combo-card__plus {
  color: #888;
  font-weight: 700;
}
.combo-card__meta {
  margin: 0 0 14px;
}
.combo-card__meta > div {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  font-size: 13px;
}
.combo-card__meta dt {
  color: #888;
  font-weight: 700;
}
.combo-card__meta dd {
  margin: 0;
  color: #333;
  line-height: 1.6;
}
.combo-card__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.combo-card__cta {
  text-align: center;
  font-size: 13px;
  padding: 10px 8px;
  font-weight: 700;
}

/* ===== ⑧⑨ アコーディオン共通 ===== */
.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: 12px;
  }

  /* 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 {
    padding: 14px;
    font-size: 15px;
  }

  /* combo: 1列、内CTAも縦積み */
  .agent-compare-box {
    grid-template-columns: 1fr;
  }
  .agent-combos__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .combo-card {
    padding: 20px;
  }
  .combo-card__ctas {
    grid-template-columns: 1fr;
  }
  .combo-card__meta > div {
    grid-template-columns: 80px 1fr;
  }

  /* 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;
  }
}
