/*
Theme Name: SWELL Child
Template: swell
Version: 1.2.5
Author: ITてんしょく相談室
Description: SWELL child theme for IT転職相談室
*/

/* CTAボタン色のデフォルト値（v1.1.9：Customizer未設定時のフォールバック） */
:root {
  --it-cta-primary: #1B2A4A;            /* TOPバナー／カテゴリ扉CTAバナー */
  --it-cta-article-end-main: #1B2A4A;   /* 記事末CTA メインボタン */
  --it-cta-article-end-ghost: #F39800;  /* 記事末CTA ゴーストボタン */
  --it-cta-sidebar-1: #F39800;          /* サイドバー① Geekly */
  --it-cta-sidebar-2: #1B2A4A;          /* サイドバー② レバテック */
  --it-cta-sidebar-3: #1B2A4A;          /* サイドバー③ マーキャリNEXT */
  --it-cta-final-sub-2: #8BC34A;        /* 最終CTA レバテック */
  --it-cta-final-sub-3: #1B2A4A;        /* 最終CTA マーキャリ */
  --it-cta-1: #F39800;                  /* 比較表/詳細 1位 */
  --it-cta-2: #8BC34A;                  /* 比較表/詳細 2位 */
  --it-cta-3: #1B2A4A;                  /* 比較表/詳細 3位 */
  --it-cta-ghost: #F39800;              /* ▼比較表を見る ghost */
}

/* ======================================================
   RESET & BASE
====================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* スティッキーヘッダー（80px）分のアンカーオフセット */
html {
  scroll-padding-top: 96px;
}

/* ======================================================
   CSS VARIABLES
====================================================== */
:root {
  --navy:        #1B2A4A;
  --navy-mid:    #2E3F5C;
  --blue:        #2E5FA3;
  --blue-light:  #EBF2FB;
  --blue-mid:    #B5D4F4;
  --gray-bg:     #F2F4F7;
  --gray-bd:     rgba(0, 0, 0, 0.1);
  --text:        #1A1A1A;
  --text-sub:    #666666;
  --white:       #ffffff;
  --amber:       #FAEEDA;
  --amber-text:  #633806;
  --amber-mid:   #F39800;
  --green-bg:    #EAF3DE;
  --green-text:  #085041;
  --red-bg:      #FCEBEB;
  --red-text:    #791F1F;
  --teal-bg:     #E1F5EE;
  --purple-bg:   #EEEDFE;
  --purple-text: #3C3489;
  --nav-color:   #1B2A4A;
}

/* カテゴリ別カラー変数 */
body.category-tenshoku-agent,
body.single-post.category-tenshoku-agent,
body.page-tenshoku-agent,
body.single-agent,
body.post-type-archive-agent        { --nav-color: #F39800; }

body.category-ai,
body.page-ai,
body.single-post.category-ai        { --nav-color: #00A1E9; }

body.category-topic,
body.category-it-saas-company,
body.page-it-saas-company,
body.single-company,
body.post-type-archive-company,
body.single-post.category-topic     { --nav-color: #FFC107; }

body.category-tenshoku,
body.category-tenshoku-knowhow,
body.page-tenshoku-knowhow,
body.single-post.category-tenshoku  { --nav-color: #8BC34A; }

/* ======================================================
   BODY
====================================================== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--gray-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

/* ======================================================
   HEADER
====================================================== */
.it-header {
  background: #ffffff;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--nav-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.it-header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

.it-header-logo img {
  height: 56px;
  width: auto;
}

.it-header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  height: 100%;
  align-items: flex-end;
}

.it-header-nav a {
  color: #3D4A5C;
  font-size: 13px;
  text-decoration: none;
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  border: 1.5px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -3px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.it-header-nav a:hover {
  color: var(--navy);
  background: rgba(46, 95, 163, 0.05);
}

.it-header-nav a.current-menu-item,
.it-header-nav a.current-cat,
.it-header-nav a.active {
  color: var(--navy);
  font-weight: 700;
  border: 1.5px solid var(--nav-color);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: rgba(239, 159, 39, 0.06);
}

/* カテゴリ別アクティブタブカラー */

/* エージェント比較ページ：FVヘッダーをアンバーに */
body.page-tenshoku-agent .it-page-header {
  background: #FEF0D6 !important;
  border-color: rgba(243, 152, 0, 0.3) !important;
}
body.page-tenshoku-agent .it-page-header-label { color: #7A4C00 !important; }
body.page-tenshoku-agent .it-page-header-sub   { color: #7A4C00 !important; }

/* エージェントページのヘッダーCTAをCSS変数化（v1.1.5：Customizerで色変更可） */
body.page-tenshoku-agent .it-page-header .it-cta-btn {
  background: var(--it-cta-1, #F39800) !important;
  transition: filter 0.15s;
}
body.page-tenshoku-agent .it-page-header .it-cta-btn:hover {
  filter: brightness(1.08);
}
body.page-tenshoku-agent .it-page-header .it-cta-btn-ghost {
  border-color: var(--it-cta-ghost, #F39800) !important;
  color: #7A4C00 !important;
}
body.page-tenshoku-agent .it-page-header .it-cta-btn-ghost:hover {
  background: rgba(243, 152, 0, 0.08) !important;
}

/* 中間CTA（mid-cta）：rank1（アンバー）に統一 */
.it-mid-cta .it-cta-btn {
  background: var(--it-cta-1, #F39800) !important;
  transition: filter 0.15s;
}
.it-mid-cta .it-cta-btn:hover { filter: brightness(1.08); }

/* エージェント比較 */
body.category-tenshoku-agent .it-header-nav a.nav-agent,
body.single-post.category-tenshoku-agent .it-header-nav a.nav-agent,
body.page-tenshoku-agent .it-header-nav a.nav-agent {
  border-color: #F39800 !important;
  color: #F39800 !important;
  font-weight: 700;
  background: rgba(243, 152, 0, 0.06);
}

/* AI活用 */
body.category-ai .it-header-nav a.nav-ai,
body.single-post.category-ai .it-header-nav a.nav-ai,
body.page-ai .it-header-nav a.nav-ai,
.it-header-nav a.nav-ai.active {
  border-color: var(--ssr-cat-ai, #00A1E9) !important;
  color: var(--ssr-cat-ai, #00A1E9) !important;
  font-weight: 700;
  background: rgba(91, 79, 184, 0.06);
}

/* 市場トピック */
body.category-topic .it-header-nav a.nav-topic,
body.single-post.category-topic .it-header-nav a.nav-topic {
  border-color: #FFC107 !important;
  color: #795C00 !important;
  font-weight: 700;
  background: rgba(255, 193, 7, 0.06);
}

/* 転職ノウハウ */
body.category-tenshoku .it-header-nav a.nav-tenshoku,
body.single-post.category-tenshoku .it-header-nav a.nav-tenshoku {
  border-color: #8BC34A !important;
  color: #4a6a1f !important;
  font-weight: 700;
  background: rgba(139, 195, 74, 0.06);
}

/* ======================================================
   BREADCRUMB
====================================================== */
.it-bc {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.it-bc a {
  color: var(--blue);
  text-decoration: none;
}

.it-bc a:hover {
  text-decoration: underline;
}

/* ======================================================
   LAYOUT COMMON
====================================================== */
.it-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.it-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

.it-page-wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 40px 80px;
}

/* ======================================================
   SECTION
====================================================== */
.it-section {
  padding: 40px 0;
}

.it-section + .it-section {
  border-top: 0.5px solid var(--gray-bd);
}

.it-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.it-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.it-section-more {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
}

.it-section-more:hover {
  text-decoration: underline;
}

/* ======================================================
   FV (HERO)
====================================================== */
.it-fv {
  background: var(--navy);
  padding: 56px 40px 48px;
  text-align: center;
}

.it-fv-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.it-fv-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.it-fv-title span {
  color: var(--amber-mid);
}

.it-fv-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
}

.it-search-bar {
  display: flex;
  max-width: 520px;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: white;
}

.it-search-input {
  flex: 1 1 auto;
  min-width: 0; /* v1.2.4：flex子要素の最小幅リセット（長いプレースホルダーでレイアウト破壊防止） */
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-sub);
  font-family: 'Noto Sans JP', sans-serif;
  background: transparent;
  border: none;
  outline: none;
  text-overflow: ellipsis; /* v1.2.4：はみ出し時に省略 */
}

.it-search-btn {
  flex-shrink: 0;          /* v1.2.4：ボタン縮小禁止（SP表示で極小化する問題を修正） */
  min-width: 72px;         /* v1.2.4：「検索」文字を確実に表示するための最低幅 */
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  white-space: nowrap;     /* v1.2.4：改行回避 */
}

.it-search-btn:hover {
  background: #1B4A8C;
}

.it-search-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.it-search-tag {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.it-search-tag:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.it-search-tag.featured {
  background: rgba(239, 159, 39, 0.15);
  border-color: rgba(239, 159, 39, 0.5);
  color: var(--amber-mid);
  font-weight: 700;
}

/* ======================================================
   CATEGORY CARDS (TOP)
====================================================== */
.it-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.it-cat-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  display: block;
}

.it-cat-card:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}

.it-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.it-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.it-cat-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ======================================================
   ARTICLE CARD BADGES
====================================================== */
.it-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.it-badge-ai     { background: #E0F5FD; color: #005E8A; }
.it-badge-topic  { background: #FFF8DA; color: #795C00; }
.it-badge-agent  { background: #FEF0D6; color: #7A4C00; }
.it-badge-tips   { background: #EFF6E3; color: #3D6B00; }

/* ======================================================
   FEATURED ARTICLES GRID
====================================================== */
.it-featured-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 12px;
}

.it-art-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all 0.15s;
}

.it-art-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.it-art-thumb {
  background: linear-gradient(135deg, #E6EBF3 0%, #C8D6E8 100%);
  aspect-ratio: 1.91 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-sub);
  overflow: hidden;
}

.it-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-art-thumb.sm { /* aspect-ratio で grid 幅に応じた自然サイズ */ }

.it-art-body {
  padding: 14px 16px;
}

.it-art-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 6px;
}

.it-art-title.sm { font-size: 12px; }

.it-art-date {
  font-size: 11px;
  color: var(--text-sub);
}

/* ======================================================
   CTA BANNER
====================================================== */
.it-cta-banner {
  background: var(--blue-light);
  border: 0.5px solid var(--blue-mid);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.it-cta-banner-text {
  flex: 1;
}

.it-cta-banner-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.it-cta-banner-sub {
  font-size: 13px;
  color: var(--blue);
}

.it-cta-btn {
  display: inline-block;
  background: var(--it-cta-primary, var(--navy));
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
}

.it-cta-btn:hover {
  filter: brightness(1.08);
  color: white;
}

/* ======================================================
   TABS + ARTICLE LIST
====================================================== */
.it-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--gray-bd);
  margin-bottom: 20px;
}

.it-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.15s;
}

.it-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}

.it-art-list {
  display: flex;
  flex-direction: column;
}

.it-art-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--gray-bd);
  text-decoration: none;
  transition: background 0.12s;
}

.it-art-row:last-child {
  border-bottom: none;
}

.it-art-row:hover {
  background: var(--gray-bg);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.it-art-row-thumb {
  width: 100px;
  aspect-ratio: 1.91 / 1; height: auto;
  border-radius: 6px;
  background: linear-gradient(135deg, #E6EBF3 0%, #C8D6E8 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.it-art-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-art-row-body {
  flex: 1;
}

.it-art-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 4px;
}

.it-art-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-sub);
}

.it-art-row-more {
  text-align: center;
  margin-top: 20px;
}

.it-btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s;
}

.it-btn-outline:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ======================================================
   FOOTER
====================================================== */
.it-footer-top {
  background: #2C2C2A;
  padding: 40px;
}

.it-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
}

.it-footer-logo-block {
  flex: 1.5;
}

.it-footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.it-footer-tagline {
  font-size: 12px;
  color: #888780;
  line-height: 1.7;
  margin-top: 10px;
}

.it-footer-nav-block {
  flex: 1;
}

.it-footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  color: #D3D1C7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.it-footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.it-footer-nav-links a {
  font-size: 12px;
  color: #888780;
  text-decoration: none;
  transition: color 0.12s;
}

.it-footer-nav-links a:hover {
  color: #D3D1C7;
}

.it-footer-bottom {
  background: #1A1A1A;
  padding: 14px 40px;
}

.it-footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.it-footer-copy {
  font-size: 11px;
  color: #444441;
}

.it-footer-legal {
  display: flex;
  gap: 16px;
}

.it-footer-legal a {
  font-size: 11px;
  color: #444441;
  text-decoration: none;
}

.it-footer-legal a:hover {
  color: #888780;
}

.it-footer-legal .disclosure {
  font-size: 10px;
  color: #333330;
}

/* ======================================================
   AGENT COMPARISON PAGE
====================================================== */
.it-page-header {
  background: var(--blue-light);
  border: 0.5px solid var(--blue-mid);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.it-page-header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.it-page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.it-page-header-sub {
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 16px;
}

.it-cta-btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid var(--blue-mid);
  transition: background 0.15s;
  margin-left: 8px;
}

.it-cta-btn-ghost:hover {
  background: var(--blue-light);
}

/* TARGET CARDS */
.it-target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.it-target-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.it-target-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.it-target-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.it-target-sub {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* SECTION TITLE */
.it-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}

/* COMPARE TABLE */
.it-compare-wrap {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.it-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.it-compare-table th,
.it-compare-table td {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--gray-bd);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.it-compare-table th {
  background: var(--gray-bg);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

.it-compare-table th:first-child,
.it-compare-table td:first-child {
  text-align: left;
  background: var(--gray-bg);
  font-weight: 500;
  color: var(--text-sub);
  width: 130px;
}

.it-compare-table tr:last-child td {
  border-bottom: none;
}

.it-compare-table .geekly-col {
  border-left: 3px solid var(--blue);
}

.it-star { color: var(--amber-mid); font-size: 13px; }

.it-rank-no1 {
  display: inline-block;
  background: var(--it-cta-1, #F39800);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}

.it-badge-recommend {
  background: #D83F3F;       /* 赤背景（v1.1.3） */
  color: #fff;
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.it-cta-sm {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s;
}
.it-cta-sm:hover { filter: brightness(1.08); color: white; }

/* 比較表内CTA：ランク別色（v1.1.5） */
.it-cta-sm.it-cta-rank1 { background: var(--it-cta-1, #F39800); }
.it-cta-sm.it-cta-rank2 { background: var(--it-cta-2, #8BC34A); }
.it-cta-sm.it-cta-rank3 { background: var(--it-cta-3, #1B2A4A); }

/* 比較表ヘッダーのランクタグ（1位／2位／3位） */
.it-rank-no2 {
  display: inline-block;
  background: var(--it-cta-2, #8BC34A);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}
.it-rank-no3 {
  display: inline-block;
  background: var(--it-cta-3, #1B2A4A);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}

/* AGENT CARDS */
.it-agent-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ランク別ボーダー（v1.1.5：rank2をブルー、rank3を薄グレーに分離） */
.it-agent-card.rank1 { border: 2px solid var(--it-cta-1, #F39800); }
.it-agent-card.rank2 { border: 2px solid var(--blue-mid); }
.it-agent-card.rank3 { border: 1px solid var(--gray-bd); }

.it-agent-card-head {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid var(--gray-bd);
}

/* ランク別ヘッダー背景（v1.1.5：1位アンバー / 2位ブルー / 3位薄グレー） */
.it-agent-card.rank1 .it-agent-card-head { background: #FEF0D6; }
.it-agent-card.rank2 .it-agent-card-head { background: var(--blue-light); }
.it-agent-card.rank3 .it-agent-card-head { background: var(--gray-bg); }

.it-rank-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}

/* ランク数字バッジの色（背景色に合わせる）*/
.it-agent-card.rank1 .it-rank-circle { background: var(--it-cta-1, #F39800); }
.it-agent-card.rank2 .it-rank-circle { background: #8BC34A; }
.it-agent-card.rank3 .it-rank-circle { background: #888; }

.it-agent-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.it-agent-card-body {
  padding: 20px 24px;
}

.it-agent-desc {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.it-agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.it-agent-stat {
  background: var(--gray-bg);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.it-agent-stat-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.it-agent-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.it-merit-demerit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.it-merit {
  background: var(--green-bg);
  border-radius: 6px;
  padding: 12px;
}

.it-demerit {
  background: var(--red-bg);
  border-radius: 6px;
  padding: 12px;
}

.it-md-title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.it-merit .it-md-title { color: #27500A; }
.it-demerit .it-md-title { color: #791F1F; }

.it-md-text {
  font-size: 12px;
  line-height: 1.6;
}

.it-merit .it-md-text { color: #3B6D11; }
.it-demerit .it-md-text { color: #A32D2D; }

.it-agent-cta { text-align: center; }

.it-agent-cta-btn {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 6px;
  text-decoration: none;
  transition: filter 0.15s;
}

.it-agent-cta-btn:hover { filter: brightness(1.08); color: white; }

/* ランク別CTA色（v1.1.5：Customizerで変更可） */
.it-agent-card.rank1 .it-agent-cta-btn { background: var(--it-cta-1, #F39800); }
.it-agent-card.rank2 .it-agent-cta-btn { background: var(--it-cta-2, #8BC34A); }
.it-agent-card.rank3 .it-agent-cta-btn { background: var(--it-cta-3, #1B2A4A); }

.it-agent-cta-note {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
}

/* MID CTA */
.it-mid-cta {
  background: var(--blue-light);
  border: 0.5px solid var(--blue-mid);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.it-mid-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.it-mid-cta-sub {
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 14px;
}

/* QA */
.it-qa-wrap {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.it-qa-item {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--gray-bd);
}

.it-qa-item:last-child { border-bottom: none; }

.it-qa-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}

.it-qa-q::before {
  content: 'Q.';
  color: var(--blue);
  flex-shrink: 0;
}

.it-qa-a {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  display: flex;
  gap: 8px;
}

.it-qa-a::before {
  content: 'A.';
  color: var(--amber-mid);
  font-weight: 700;
  flex-shrink: 0;
}

/* FINAL CTA */
.it-final-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.it-final-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.it-final-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.it-final-cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.it-final-cta-btn-main {
  display: inline-block;
  background: var(--it-cta-1, var(--blue));
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: filter 0.15s;
}
.it-final-cta-btn-main:hover { filter: brightness(1.08); color: white; }

.it-final-cta-btn-sub {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  transition: filter 0.15s;
}
.it-final-cta-btn-sub:hover { filter: brightness(1.08); color: white; }

/* 最終CTA レバテック・マーキャリ — 個別変数（v1.1.7） */
.it-final-cta-btn-sub.it-final-rank2 {
  background: var(--it-cta-final-sub-2, #8BC34A);
  border-color: transparent;
  font-weight: 700;
}
.it-final-cta-btn-sub.it-final-rank3 {
  background: var(--it-cta-final-sub-3, #1B2A4A);
  border-color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* ======================================================
   ARTICLE PAGE (SINGLE)
====================================================== */
.it-two-col {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.it-main-col {
  flex: 1;
  min-width: 0;
}

.it-side-col {
  width: 220px;
  flex-shrink: 0;
}

.it-art-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.it-art-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.it-art-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.it-art-eyecatch {
  border-radius: 10px;
  aspect-ratio: 1200 / 630;
  width: 100%;
  overflow: hidden;
  margin-bottom: 28px;
}

.it-art-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-art-eyecatch-ph {
  background: linear-gradient(135deg, #E6EBF3 0%, #C8D6E8 100%);
  border-radius: 10px;
  aspect-ratio: 1200 / 630;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 28px;
}

/* TOC */
.it-toc-box {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.it-toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.it-toc-list {
  list-style: none;
  padding: 0;
}

.it-toc-list li {
  padding: 5px 0;
  border-bottom: 0.5px solid var(--gray-bd);
  font-size: 13px;
}

.it-toc-list li:last-child { border-bottom: none; }

.it-toc-list a {
  color: var(--blue);
  text-decoration: none;
}

.it-toc-list a:hover { text-decoration: underline; }

.it-toc-sub {
  padding-left: 16px;
  font-size: 12px;
}

/* ARTICLE BODY */
.it-art-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 16px;
  border-left: 4px solid var(--navy);
  background: var(--blue-light);
  border-radius: 0 6px 6px 0;
  margin: 32px 0 16px;
  line-height: 1.5;
}

.it-art-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  padding: 6px 0 6px 12px;
  border-left: 3px solid var(--blue-mid);
  margin: 24px 0 12px;
  line-height: 1.5;
}

.it-art-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
}

.it-art-body ul,
.it-art-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.it-art-body li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.it-art-body a {
  color: var(--blue);
}

.it-art-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.it-art-body th,
.it-art-body td {
  padding: 10px 12px;
  border: 0.5px solid var(--gray-bd);
  text-align: left;
  vertical-align: top;
}

.it-art-body th {
  background: var(--gray-bg);
  font-weight: 700;
  color: var(--navy);
}

/* ===== 本文中の画像（Gutenberg画像ブロック対応） ===== */
.it-art-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.it-art-body figure {
  margin: 24px 0;
  text-align: center;
}

.it-art-body figure.alignleft {
  float: left;
  margin: 8px 20px 16px 0;
  max-width: 50%;
}

.it-art-body figure.alignright {
  float: right;
  margin: 8px 0 16px 20px;
  max-width: 50%;
}

.it-art-body figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.it-art-body figure.alignwide,
.it-art-body figure.alignfull {
  max-width: 100%;
}

.it-art-body figcaption,
.it-art-body .wp-element-caption,
.it-art-body figure figcaption {
  font-size: 12px;
  color: var(--text-sub, #666);
  margin-top: 8px;
  text-align: center;
  line-height: 1.6;
}

.it-art-body .wp-block-image {
  margin: 24px 0;
}

.it-art-body .wp-block-image img {
  border-radius: 8px;
}

.it-art-body .wp-block-gallery {
  margin: 24px 0;
}

/* clearfix（alignleft / alignright 用） */
.it-art-body::after {
  content: "";
  display: block;
  clear: both;
}

/* SUMMARY BOX */
.it-art-summary {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
}

.it-art-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.it-art-summary ul {
  padding-left: 16px;
}

.it-art-summary li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* END CTA */
.it-end-cta {
  background: var(--blue-light);
  border: 0.5px solid var(--blue-mid);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
}

.it-end-cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.it-end-cta-sub {
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 16px;
}

.it-end-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 記事末CTA メインボタン — 専用変数 */
.it-cta-btn-main {
  display: inline-block;
  background: var(--it-cta-article-end-main, var(--navy));
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  transition: filter 0.15s;
}
.it-cta-btn-main:hover { filter: brightness(1.08); color: white; }

/* 記事末CTA ゴーストボタン — 専用変数 */
.it-cta-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--it-cta-article-end-ghost, var(--blue));
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  border: 1.5px solid var(--it-cta-article-end-ghost, var(--blue-mid));
  transition: background 0.15s;
}
.it-cta-btn-outline:hover { background: rgba(243, 152, 0, 0.08); }

/* AUTHOR BOX */
.it-author-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 10px;
  margin: 28px 0;
}

.it-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.it-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.it-author-bio {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* RELATED ARTICLES */
.it-related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.it-related-list {
  display: flex;
  flex-direction: column;
}

.it-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--gray-bd);
  text-decoration: none;
}

.it-related-item:last-child { border-bottom: none; }

.it-related-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E6EBF3, #C8D6E8);
  flex-shrink: 0;
  overflow: hidden;
}

.it-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-related-cat {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}

.it-related-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

/* SIDEBAR */
.it-side-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.it-side-card-head {
  background: var(--navy);
  padding: 10px 14px;
}

.it-side-card-head-title {
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.it-side-card-body {
  padding: 14px;
}

.it-side-agent-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.it-side-agent-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* サイドバーCTA — ベース（rank別の色は wp_head 経由で個別適用） */
.it-side-cta {
  display: block;
  background: var(--navy);   /* fallback：JS無効時等の既定 */
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: filter 0.15s;
}

/* ランク別フォールバック（v1.1.9：head出力前に効くデフォルト） */
.it-side-cta-1 { background: var(--it-cta-sidebar-1, #F39800); }
.it-side-cta-2 { background: var(--it-cta-sidebar-2, #1B2A4A); }
.it-side-cta-3 { background: var(--it-cta-sidebar-3, #1B2A4A); }

.it-side-cta:hover { filter: brightness(1.08); color: white; }

.it-side-divider {
  height: 0.5px;
  background: var(--gray-bd);
  margin: 10px 0;
}

.it-side-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.it-side-toc-list {
  list-style: none;
  padding: 0;
}

.it-side-toc-list li {
  padding: 4px 0;
  border-bottom: 0.5px solid var(--gray-bg);
}

.it-side-toc-list a {
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.6;
}

.it-side-popular-list {
  list-style: none;
  padding: 0;
}

.it-side-popular-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--gray-bg);
  align-items: flex-start;
}

.it-side-popular-item:last-child { border-bottom: none; }

.it-side-popular-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  min-width: 18px;
}

.it-side-popular-text {
  font-size: 11px;
  color: var(--navy);
  line-height: 1.5;
}

/* ======================================================
   CATEGORY ARCHIVE PAGE
====================================================== */
.it-cat-header {
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

.it-cat-header.ai    { background: #E0F5FD; border: 0.5px solid rgba(0, 161, 233, 0.22); }
.it-cat-header.topic { background: #FFF8DA; border: 0.5px solid rgba(255, 193, 7, 0.35); }
.it-cat-header.tips  { background: #EFF6E3; border: 0.5px solid rgba(139, 195, 74, 0.35); }
.it-cat-header.agent { background: #FEF0D6; border: 0.5px solid rgba(243, 152, 0, 0.3); }

.it-cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.it-cat-header.ai    .it-cat-label { color: #005E8A; }
.it-cat-header.topic .it-cat-label { color: #795C00; }
.it-cat-header.tips  .it-cat-label { color: #3D6B00; }
.it-cat-header.agent .it-cat-label { color: #7A4C00; }

.it-cat-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.it-cat-header p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ARTICLE GRID */
.it-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.it-art-grid-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
}

.it-art-grid-card:hover {
  border-color: var(--blue-mid);
}

.it-art-grid-thumb {
  background: linear-gradient(135deg, #E6EBF3, #C8D6E8);
  aspect-ratio: 1200 / 630;
  width: 100%;
  overflow: hidden;
}

.it-art-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-art-grid-body {
  padding: 12px 14px;
}

.it-art-grid-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 4px;
}

.it-art-grid-meta {
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  gap: 8px;
}

/* PAGINATION */
.it-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
}

.it-page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--gray-bd);
  background: white;
  color: var(--text-sub);
  text-decoration: none;
  padding: 0 12px;
  white-space: nowrap;
}

.it-page-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.it-page-btn:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
}

/* ======================================================
   FIXED PAGES (profile, privacy, etc.)
====================================================== */
.it-page-h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.it-page-updated {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.it-card {
  background: white;
  border: 0.5px solid var(--gray-bd);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.it-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.it-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}

.it-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.it-profile-bio {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

.it-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.it-info-table th,
.it-info-table td {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--gray-bd);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.it-info-table th {
  width: 160px;
  background: var(--gray-bg);
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
}

.it-info-table tr:last-child th,
.it-info-table tr:last-child td { border-bottom: none; }

.it-info-table a { color: var(--blue); text-decoration: none; }

.it-sec-divider {
  height: 0.5px;
  background: var(--gray-bd);
  margin: 24px 0;
}

.it-sec-h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--navy);
}

.it-sec-h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.it-sec-p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 12px;
}

.it-sec-p:last-child { margin-bottom: 0; }

.it-sec-list {
  padding-left: 20px;
  margin-bottom: 12px;
}

.it-sec-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
}

.it-disclosure-note {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--gray-bg);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* FORM */
.it-form-group { margin-bottom: 18px; }

.it-form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.it-form-required {
  background: #FCEBEB;
  color: #791F1F;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}

.it-form-input {
  width: 100%;
  border: 0.5px solid var(--gray-bd);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
}

.it-form-input:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(46, 95, 163, 0.1);
}

.it-form-textarea {
  height: 120px;
  resize: vertical;
}

.it-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
}

.it-form-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.it-form-check a { color: var(--blue); }

.it-form-submit {
  width: 100%;
  background: var(--navy);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.it-form-submit:hover { background: #243760; }

.it-form-note {
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  margin-top: 10px;
  line-height: 1.7;
}

/* ======================================================
   SECTION HEADER in category/archive pages
====================================================== */
.it-sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.it-sec-header .it-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.it-sec-more {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}

/* ======================================================
   CONTACT FORM 7 — .it-card 内フォームデザイン統一
====================================================== */
.it-card .wpcf7-form p {
  margin-bottom: 18px !important;
}
.it-card .wpcf7-form p:last-of-type {
  margin-bottom: 0 !important;
}
/* ラベル：block にして「お名前 [必須]」が同行インラインに並ぶようにする */
.it-card .wpcf7-form label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}
/* ラベル内の<br>を非表示（ラベルテキストとinputの間の余白はmarginで管理） */
.it-card .wpcf7-form label > br {
  display: none !important;
}
/* 入力欄ラッパーをブロック表示し、ラベルとの間に余白 */
.it-card .wpcf7-form .wpcf7-form-control-wrap {
  display: block !important;
  margin-top: 6px !important;
}
/* 同意チェックボックス行 */
.it-card .wpcf7-form .agreement-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  font-weight: 400 !important;
  color: var(--text-sub) !important;
  cursor: pointer;
  gap: 8px !important;
}
.it-card .wpcf7-form .agreement-check br {
  display: none !important;
}
/* バリデーションエラーメッセージのみ非表示（.requiredは残す） */
.it-card .wpcf7-form .wpcf7-not-valid-tip { display: none; }
.it-card .wpcf7-form input[type="text"],
.it-card .wpcf7-form input[type="email"],
.it-card .wpcf7-form select,
.it-card .wpcf7-form textarea {
  width: 100% !important;
  border: 0.5px solid var(--gray-bd) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--text) !important;
  background: #fff !important;
  appearance: none;
  box-sizing: border-box !important;
}
.it-card .wpcf7-form input[type="text"]:focus,
.it-card .wpcf7-form input[type="email"]:focus,
.it-card .wpcf7-form select:focus,
.it-card .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(46, 95, 163, 0.1);
}
.it-card .wpcf7-form textarea {
  height: 120px;
  resize: vertical;
}
.it-card .wpcf7-form input[type="submit"],
.it-card .wpcf7-form .wpcf7-submit {
  display: block !important;
  width: 100% !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  transition: background 0.15s;
  text-align: center !important;
}
.it-card .wpcf7-form input[type="submit"]:hover {
  background: #243760 !important;
}
.it-card .wpcf7-form .agreement-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.it-card .wpcf7-form .agreement-check a {
  color: var(--blue);
}
/* 必須バッジ */
.it-card .wpcf7-form label > .required,
.it-card .wpcf7-form .required {
  display: inline-block !important;
  background: #FCEBEB !important;
  color: #791F1F !important;
  font-size: 10px !important;
  padding: 1px 6px !important;
  border-radius: 3px !important;
  margin-left: 4px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
  text-decoration: none !important;
}
/* contact intro duplicate text を非表示 */
.page-contact .it-card > p:first-child {
  display: none;
}

/* ======================================================
   PAGE SWITCHER NAV (fixed pages)
====================================================== */
.it-page-switcher {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.it-sw-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-right: 4px;
}
.it-sw-btn {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border: 1.5px solid #cccccc !important;
  background: #fff !important;
  color: #666666 !important;
  text-decoration: none !important;
  transition: all 0.15s;
  line-height: 1.4 !important;
}
.it-sw-btn.active {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
  font-weight: 700 !important;
}
.it-sw-btn:hover {
  border-color: var(--blue-mid) !important;
  color: var(--blue) !important;
}

/* ======================================================
   CONTACT PAGE
====================================================== */
.it-contact-intro {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.7;
}
.it-contact-select-note {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ======================================================
   ARTICLE CATEGORY TAG (single.php)
====================================================== */
.it-art-cat-tag.cat-ai              { background: #E0F5FD; color: #005E8A; }
.it-art-cat-tag.cat-topic           { background: #FFF8DA; color: #795C00; }
.it-art-cat-tag.cat-tenshoku        { background: #EFF6E3; color: #3D6B00; }
.it-art-cat-tag.cat-tenshoku-agent  { background: #FEF0D6; color: #7A4C00; }

/* ======================================================
   NEW BADGE
====================================================== */
.it-badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  background: #D83F3F;
  color: #fff;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* ======================================================
   ALL-ARTICLES PAGE TABS (anchor links)
====================================================== */
.it-tab-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.15s;
  text-decoration: none;
}
.it-tab-link.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}
.it-tab-link:hover {
  color: var(--navy);
}

/* ======================================================
   UTILITY
====================================================== */
.it-text-center { text-align: center; }
.it-mb-0  { margin-bottom: 0; }
.it-mb-16 { margin-bottom: 16px; }
.it-mb-24 { margin-bottom: 24px; }
.it-mb-32 { margin-bottom: 32px; }


/* ======================================================
   SP（モバイル）レスポンシブ対応 — v1.1.0で追加
   ブレークポイント：max-width: 768px（メイン）／480px（補助）
   モックアップ：04_モックアップ/SP版/mockup_sp_*_v1.html 準拠
====================================================== */

/* ===== ハンバーガーメニュー（PC では非表示） ===== */
.it-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.it-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #3D4A5C;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.it-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.it-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.it-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== モバイルメニューオーバーレイ（PC では非表示） ===== */
.it-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.it-mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.it-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}
.it-mobile-menu.is-open {
  transform: translateX(0);
}

.it-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 3px solid var(--nav-color, #1B2A4A);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.it-mobile-menu-search {
  background: var(--navy);
  padding: 14px 16px 18px;
}
.it-mobile-menu-search-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 44px;
}
.it-mobile-menu-search-input {
  flex: 1;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-sub);
  border: none;
  background: transparent;
  font-family: inherit;
  outline: none;
}
.it-mobile-menu-search-btn {
  background: var(--amber-mid, #F39800);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.it-mobile-menu-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 18px 20px 10px;
  border-bottom: 0.5px solid var(--gray-bd);
}

.it-mobile-menu-cat-list,
.it-mobile-menu-about-list {
  display: flex;
  flex-direction: column;
}
.it-mobile-menu-cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 0.5px solid var(--gray-bd);
  background: #fff;
  min-height: 56px;
  color: inherit;
}
.it-mobile-menu-cat-item:active { background: var(--gray-bg); }
.it-mobile-menu-cat-color {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}
.it-mobile-menu-cat-color.agent { background: var(--ssr-cat-agent, #F39800); }
.it-mobile-menu-cat-color.ai    { background: var(--ssr-cat-ai, #00A1E9); }
.it-mobile-menu-cat-color.topic { background: var(--ssr-cat-company, #2E5FA3); }
.it-mobile-menu-cat-color.tips  { background: var(--ssr-cat-knowhow, #8BC34A); }
.it-mobile-menu-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.it-mobile-menu-cat-icon.agent { background: #FEF0D6; }
.it-mobile-menu-cat-icon.ai    { background: #E0F5FD; }
.it-mobile-menu-cat-icon.topic { background: #FFF8DA; }
.it-mobile-menu-cat-icon.tips  { background: #EFF6E3; }
.it-mobile-menu-cat-text { flex: 1; min-width: 0; }
.it-mobile-menu-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.it-mobile-menu-cat-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.4;
}
.it-mobile-menu-cat-arrow {
  font-size: 18px;
  color: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.it-mobile-menu-about-item {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gray-bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  min-height: 48px;
}
.it-mobile-menu-about-item:active { background: var(--gray-bg); }
.it-mobile-menu-about-arrow {
  font-size: 16px;
  color: rgba(0,0,0,0.25);
}
.it-mobile-menu-cta {
  margin: 18px 16px 16px;
  background: var(--navy);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: #fff;
}
.it-mobile-menu-cta-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.it-mobile-menu-cta-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 12px;
}
.it-mobile-menu-cta-btn {
  display: block;
  background: var(--amber-mid, #F39800);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  height: 44px;
  line-height: 20px;
}
.it-mobile-menu-foot {
  padding: 16px;
  text-align: center;
  font-size: 10px;
  color: var(--text-sub);
  border-top: 0.5px solid var(--gray-bd);
  background: var(--gray-bg);
}

/* スクロールロック（メニュー開時にbodyに付与） */
body.it-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===========================================================
   @media (max-width: 768px) — SPメイン
   =========================================================== */
@media (max-width: 768px) {

  /* スクロールアンカーオフセット（SPヘッダー56px+余白16px） */
  html { scroll-padding-top: 72px; }

  /* ヘッダー：56px化 */
  .it-header {
    height: 56px;
    padding: 0 16px;
    border-bottom-width: 3px;
  }
  .it-header-logo img {
    height: 28px !important;
    width: auto !important;
  }
  .it-header-nav { display: none; }   /* PC ナビは非表示 */
  .it-hamburger  { display: flex; }   /* ハンバーガー表示 */
  .it-mobile-menu-overlay,
  .it-mobile-menu { display: block; }

  /* FV：縮小 */
  .it-fv {
    padding: 32px 16px 28px;
  }
  .it-fv-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .it-fv-title   { font-size: 22px; line-height: 1.45; margin-bottom: 6px; }
  .it-fv-sub     { font-size: 12px; margin-bottom: 20px; }
  .it-search-bar {
    max-width: 100%;
    height: 44px;
    border-radius: 8px;
  }
  .it-search-input {
    padding: 0 14px;
    font-size: 13px;
  }
  .it-search-btn {
    padding: 0 18px;
    font-size: 12px;
    min-width: 64px;       /* v1.2.4：SP用に最低幅を64pxに調整（44pxの高さに合わせバランス） */
  }
  .it-search-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
  }
  .it-search-tags::-webkit-scrollbar { display: none; }
  .it-search-tag {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 12px;
  }

  /* CONTENT WRAP：左右パディング縮小 */
  .it-content,
  .it-page-wrap {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* SECTION間隔縮小 */
  .it-section { padding: 28px 0; }
  .it-section-title { font-size: 15px; }
  .it-section-more  { font-size: 11px; }

  /* カテゴリカード：4列 → 2列 */
  .it-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .it-cat-card {
    padding: 16px 12px;
  }
  .it-cat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 18px;
  }
  .it-cat-name { font-size: 12px; }
  .it-cat-desc { font-size: 10px; line-height: 1.4; }

  /* 注目記事グリッド：1.8fr+1fr+1fr → 1列縦並び */
  .it-featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .it-art-thumb        { aspect-ratio: 1.91 / 1; height: auto; }
  .it-art-thumb.sm     { aspect-ratio: 1.91 / 1; height: auto; }
  .it-art-thumb:not(.sm):first-of-type,
  .it-art-card:first-child .it-art-thumb { aspect-ratio: 1.91 / 1; height: auto; }
  .it-art-body  { padding: 12px 14px; }
  .it-art-title { font-size: 13.5px; }
  .it-art-title.sm { font-size: 13.5px; }

  /* CTAバナー：横並び → 縦積み */
  .it-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 18px 18px 16px;
    gap: 14px;
  }
  .it-cta-banner-title { font-size: 14.5px; line-height: 1.4; }
  .it-cta-banner-sub   { font-size: 11.5px; line-height: 1.5; }
  .it-cta-btn {
    width: 100%;
    height: 44px;
    padding: 13px 16px;
    font-size: 13px;
    text-align: center;
  }

  /* タブ：縮小 */
  .it-tabs       { margin-bottom: 12px; }
  .it-tab        { padding: 9px 18px; font-size: 13px; }

  /* 記事リスト（横列） */
  .it-art-row {
    gap: 12px;
    padding: 12px 0;
  }
  .it-art-row:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .it-art-row-thumb {
    width: 100px;
    aspect-ratio: 1.91 / 1; height: auto;
    border-radius: 6px;
  }
  .it-art-row-title {
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .it-art-row-meta {
    font-size: 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* 「もっと見る」ボタン */
  .it-art-row-more { margin-top: 16px; }
  .it-btn-outline {
    display: block;
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    line-height: 18px;
    text-align: center;
  }

  /* ===== 記事詳細：2カラム → 1カラム ===== */
  .it-two-col {
    grid-template-columns: 1fr;
    display: block;
  }
  .it-main-col, .it-side-col {
    width: 100%;
    max-width: 100%;
  }
  .it-side-col {
    margin-top: 28px;
  }
  .it-side-card {
    position: static !important; /* PCのstickyを解除 */
    top: auto !important;
  }

  /* 記事ヘッダー */
  .it-art-heading { font-size: 22px; line-height: 1.45; }
  .it-art-meta {
    font-size: 11px;
    gap: 8px 12px;
    flex-wrap: wrap;
  }

  /* アイキャッチ */
  .it-art-eyecatch,
  .it-art-eyecatch-ph {
    aspect-ratio: 1200 / 630;
    margin-bottom: 20px;
  }

  /* 目次（折り畳み式に変化） */
  .it-toc-box {
    padding: 0;
    overflow: hidden;
  }
  .it-toc-title {
    padding: 14px 16px;
    margin-bottom: 0;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .it-toc-title::after {
    content: "▾";
    font-size: 16px;
    color: var(--blue);
    transition: transform 0.2s;
  }
  .it-toc-box.is-collapsed .it-toc-title::after {
    transform: rotate(-180deg);
  }
  .it-toc-list {
    padding: 0 16px 14px;
    border-top: 0.5px solid var(--blue-mid);
    padding-top: 12px;
    margin: 0;
  }
  .it-toc-box.is-collapsed .it-toc-list {
    display: none;
  }
  .it-toc-list li { font-size: 12.5px; line-height: 1.7; }
  .it-toc-list li.it-toc-sub { padding-left: 14px; font-size: 11.5px; }

  /* 本文 */
  .it-art-body p  { font-size: 14.5px; line-height: 1.85; margin-bottom: 14px; }
  .it-art-body h2 { font-size: 18px; margin: 28px 0 14px; padding: 8px 12px; }
  .it-art-body h3 { font-size: 16px; margin: 22px 0 10px; padding: 5px 0 5px 10px; }

  /* 本文中の画像：alignleft / alignright の回り込み解除 */
  .it-art-body figure.alignleft,
  .it-art-body figure.alignright {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }

  /* 記事末CTA：2ボタン縦積み */
  .it-end-cta {
    padding: 22px 18px;
  }
  .it-end-cta-title { font-size: 16px; line-height: 1.4; }
  .it-end-cta-sub   { font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
  .it-end-cta-btns {
    flex-direction: column;
    gap: 8px;
  }
  .it-cta-btn-main,
  .it-cta-btn-outline {
    width: 100%;
    height: 48px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  /* 著者ボックス */
  .it-author-box {
    padding: 16px;
    gap: 12px;
  }
  .it-author-avatar {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .it-author-name { font-size: 13px; }
  .it-author-bio  { font-size: 11.5px; line-height: 1.6; }

  /* 関連記事：横並び3枚 → 縦並び */
  .it-related-list {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .it-related-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px;
  }
  .it-related-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
  }
  .it-related-text { font-size: 12px; line-height: 1.5; }

  /* パンくず：フォントサイズ縮小 */
  .it-bc {
    font-size: 11px;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* カテゴリヘッダー */
  .it-cat-header {
    padding: 24px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  .it-cat-header h1 { font-size: 20px; line-height: 1.4; }
  .it-cat-header p  { font-size: 12px; line-height: 1.7; }
  .it-cat-label     { font-size: 10px; }

  /* カテゴリ全記事グリッド：3列 → 2列 */
  .it-art-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .it-art-grid-thumb { aspect-ratio: 1200 / 630; font-size: 10px; }
  .it-art-grid-body  { padding: 10px 10px 12px; }
  .it-art-grid-title {
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .it-art-grid-meta { font-size: 10px; gap: 6px; }

  /* ページネーション */
  .it-pagination { gap: 4px; }
  .it-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* 全記事一覧タブ */
  .it-tab-link {
    padding: 9px 14px;
    font-size: 12px;
  }

  /* エージェント比較ページヘッダー */
  .it-page-header {
    padding: 24px 20px;
  }
  .it-page-header h1 { font-size: 22px; line-height: 1.4; }
  .it-page-header-label { font-size: 10px; }
  .it-page-header-sub   { font-size: 12.5px; line-height: 1.6; }

  /* エージェント比較表：横スクロール */
  .it-compare-wrap {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  .it-compare-table {
    min-width: 100%;
    width: max-content;
    font-size: 12px;
  }
  .it-compare-table th,
  .it-compare-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* お問い合わせフォーム入力欄：高さ最低44px */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;  /* iOS自動ズーム抑止 */
    min-height: 44px;
  }
  textarea { min-height: 120px; }

  /* フッター：1列に積む（クラス名を実コードに合わせて it-* に修正） */
  .it-footer-top {
    padding: 28px 16px 20px;
  }
  .it-footer-inner {
    flex-direction: column;
    gap: 22px;
  }
  .it-footer-logo-block,
  .it-footer-nav-block { flex: 1 1 auto; min-width: 0; }
  .it-footer-logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 100%;
  }
  .it-footer-nav-links a {
    padding: 6px 0;  /* タップ領域確保 */
  }
  .it-footer-bottom {
    padding: 14px 16px;
  }
  .it-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
  .it-footer-legal {
    flex-wrap: wrap;
    gap: 14px;
  }

  /* ===== TOP「人気のキーワード」崩れ修正（v1.1.2）===== */
  /* PCの justify-content:center が SP横スクロール時に最初のタグを左へ押し出すため flex-start に */
  .it-search-tags {
    justify-content: flex-start !important;
    align-items: center;
    flex-wrap: nowrap !important;
    padding: 6px 0 4px;
    /* 横スクロール時の余裕確保 */
    margin: 14px -16px 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .it-search-tags > * {
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* ラベルspanは横スクロール導入により役割が薄いため、文字色のみ調整 */
  .it-search-tags > span:first-child {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    margin-right: 4px;
  }

  /* ===== エージェント比較「こんな人におすすめ」3列→1列（v1.1.1）===== */
  .it-target-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .it-target-card {
    padding: 14px 14px;
    align-items: center;
  }

  /* ===== エージェント比較表 横スクロール対応＋ヒント表示（v1.1.2）===== */
  .it-compare-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .it-compare-table {
    min-width: 100%;
    width: max-content;
    font-size: 12px;
  }
  .it-compare-table th,
  .it-compare-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  /* スクロールヒント：SPでのみ表示（!important で後続のdefaultを上書き） */
  .it-compare-scroll-hint {
    display: block !important;
    text-align: center;
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 24px;
    padding: 4px 0 0;
  }

  /* エージェントカード：rank1 強調枠をアンバーに（PCはネイビー） */
  .it-agent-card.rank1 {
    border: 2px solid var(--amber-mid, #F39800);
  }
  /* rank1 ヘッダー背景もアンバーに（モックアップ準拠） */
  .it-agent-card.rank1 .it-agent-card-head {
    background: #FEF0D6 !important;
  }
  .it-agent-card-body { padding: 16px; }
  .it-agent-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .it-agent-stat:nth-child(3) { grid-column: span 2; }

  /* エージェント詳細CTA：全幅化＋アンバー（rank1） */
  .it-agent-cta { text-align: center; }
  .it-agent-cta-btn {
    display: block !important;
    width: 100%;
    height: 48px;
    padding: 14px 16px !important;
    font-size: 14px;
    line-height: 20px;
  }
  /* SPでもrank別CSS変数を効かせる（重複定義だが!important化で確実に上書き） */
  .it-agent-card.rank1 .it-agent-cta-btn { background: var(--it-cta-1, #F39800) !important; }
  .it-agent-card.rank2 .it-agent-cta-btn { background: var(--it-cta-2, #8BC34A) !important; }
  .it-agent-card.rank3 .it-agent-cta-btn { background: var(--it-cta-3, #1B2A4A) !important; }
  /* CTA下の注釈が枠で隠れないよう、margin/paddingを確保 */
  .it-agent-cta-note {
    font-size: 11.5px;
    color: var(--text-sub);
    margin-top: 8px;
    padding-bottom: 4px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* バッジ「IT・SaaS転職 No.1おすすめ」改行抑止＋折り返し許可（SPで縦に化けるのを防ぐ） */
  .it-badge-recommend {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 10px;
    padding: 3px 7px;
  }

  /* メリット/デメリット：2列→1列縦並び */
  .it-merit-demerit {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* ===== エージェントページ page-header CTA: ボタン全幅化（SPのみ） ===== */
  body.page-tenshoku-agent .it-page-header .it-cta-btn,
  body.page-tenshoku-agent .it-page-header .it-cta-btn-ghost {
    display: block !important;
    width: 100%;
    margin: 0 0 8px 0 !important;
    text-align: center;
    box-sizing: border-box;
  }
  body.page-tenshoku-agent .it-page-header .it-cta-btn {
    height: 48px;
    line-height: 20px;
    padding: 14px 16px !important;
  }
  body.page-tenshoku-agent .it-page-header .it-cta-btn-ghost {
    height: 44px;
    line-height: 22px;
    padding: 11px 16px !important;
  }

  /* ===== 運営者情報：SPプロフィール縦並び＋テーブル整え ===== */
  .it-profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  .it-profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .it-profile-name { font-size: 15px; }
  .it-profile-bio  { font-size: 12.5px; line-height: 1.7; text-align: left; }

  /* infoテーブル：th幅縮小＋セル左右パディング縮小、URLは折返し許可 */
  .it-info-table th,
  .it-info-table td {
    padding: 10px 8px;
    font-size: 12.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .it-info-table th {
    width: 90px;
    font-size: 12px;
    padding: 10px 6px 10px 8px;
  }
  .it-info-table a {
    word-break: break-all;
  }
}

/* PCではスクロールヒント非表示（@media 外で初期値設定） */
.it-compare-scroll-hint { display: none; }

/* ===========================================================
   @media (max-width: 480px) — 小型スマホ補助
   =========================================================== */
@media (max-width: 480px) {
  .it-fv-title    { font-size: 20px; }
  .it-art-heading { font-size: 20px; }
  .it-page-header h1 { font-size: 20px; }

  /* カテゴリカード：2列 → 1列に折りたたむ場合のみ */
  /* .it-cat-grid { grid-template-columns: 1fr; } */

  /* グリッドカード：2列のままだが余白縮小 */
  .it-art-grid { gap: 8px; }
}

/* ===========================================================
   タッチデバイスでhover無効化
   =========================================================== */
@media (hover: none) {
  .it-cat-card:hover,
  .it-art-card:hover,
  .it-art-row:hover,
  .it-btn-outline:hover {
    background: inherit;
    border-color: inherit;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===========================================================
   サイト構造ブラッシュアップ v3 — Phase 4-G モック準拠
   4本柱カテゴリー：扉×4／CPT個別×2／検索／ネイティブバナー／FAQ
   名前空間 ssr-* で既存 it-* と完全分離
   仕様：04_設計書/モックアップ/PC版/mockup_ssr_*_v1.html
   =========================================================== */

/* --- カラー変数（モック共通） --- */
:root {
  --ssr-navy: #1B2A4A;
  --ssr-navy-mid: #2E3F5C;
  --ssr-blue: #2E5FA3;
  --ssr-blue-light: #EBF2FB;
  --ssr-blue-mid: #B5D4F4;
  --ssr-gray-bg: #F2F4F7;
  --ssr-gray-bd: rgba(0,0,0,0.1);
  --ssr-text: #1A1A1A;
  --ssr-text-sub: #666;
  --ssr-amber: #FAEEDA;
  --ssr-amber-text: #633806;
  --ssr-amber-mid: #EF9F27;
  --ssr-cta-color: #EF9F27;          /* CTAボタン専用色（アクセントと独立／カスタマイザで変更可） */
  --ssr-cta-color-hover: #d88a14;    /* CTAボタンホバー色 */
  --ssr-green-bg: #E1F5EE;
  --ssr-green-text: #085041;
  --ssr-green-mid: #6FBC8E;
  --ssr-red-bg: #FCEBEB;
  --ssr-purple-bg: #EEEDFE;
  --ssr-purple-text: #3C3489;
  --ssr-purple-mid: #5B4FB8;
}

/* --- ページラッパ／パンくず／セクションタイトル --- */
.ssr-page-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 40px 80px; }
.ssr-bc { font-size: 12px; color: var(--ssr-text-sub); margin-bottom: 24px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ssr-bc a { color: var(--ssr-blue); text-decoration: none; }
.ssr-bc a:hover { text-decoration: underline; }
.ssr-bc .sep { color: rgba(0,0,0,0.2); }
.ssr-sec { margin-bottom: 48px; }
.ssr-sec-title { font-size: 20px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ssr-amber); display: flex; align-items: baseline; justify-content: space-between; }
.ssr-sec-title.b-blue { border-bottom-color: var(--ssr-blue-light); }
.ssr-sec-title.b-purple { border-bottom-color: var(--ssr-purple-bg); }
.ssr-sec-title.b-green { border-bottom-color: var(--ssr-green-bg); }
.ssr-sec-title .ssr-sec-meta { font-size: 12px; font-weight: 500; color: var(--ssr-text-sub); }

/* --- 共通ボタン --- */
.ssr-btn-amber { display: inline-block; background: var(--ssr-cta-color); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 32px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 16px rgba(239,159,39,0.35); transition: all 0.15s; }
.ssr-btn-amber:hover { background: var(--ssr-cta-color-hover); transform: translateY(-1px); color: #fff; }
.ssr-btn-navy { display: inline-block; background: var(--ssr-navy); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: 0.15s; }
.ssr-btn-navy:hover { background: #243760; color: #fff; }
.ssr-btn-ghost-white { display: inline-block; background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-weight: 500; padding: 14px 28px; border-radius: 8px; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: all 0.15s; }
.ssr-btn-ghost-white:hover { background: rgba(255,255,255,0.14); color: #fff; }
.ssr-btn-outline { display: inline-block; padding: 11px 32px; border: 1.5px solid var(--ssr-blue-mid); border-radius: 6px; font-size: 13px; color: var(--ssr-blue); text-decoration: none; font-weight: 700; background: #fff; transition: 0.15s; }
.ssr-btn-outline:hover { background: var(--ssr-blue-light); border-color: var(--ssr-blue); color: var(--ssr-blue); }
.ssr-more-wrap { text-align: center; margin-top: 12px; }

/* ============================================================
   [FV / ヒーロー] 4色グラデ
   ============================================================ */
.ssr-fv { border-radius: 16px; padding: 48px 56px; text-align: center; color: #fff; margin-bottom: 40px; position: relative; overflow: hidden; }
.ssr-fv::before { content: ''; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(239,159,39,0.25) 0%, transparent 70%); pointer-events: none; }
.ssr-fv.cat-agent { background: linear-gradient(135deg, #1B2A4A 0%, #2E3F5C 100%); }
.ssr-fv.cat-company { background: linear-gradient(135deg, #2E5FA3 0%, #5384C7 100%); }
.ssr-fv.cat-ai { background: linear-gradient(135deg, #3C3489 0%, #5B4FB8 100%); }
.ssr-fv.cat-knowhow { background: linear-gradient(135deg, #2E7A4F 0%, #4FA572 100%); }
.ssr-fv-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; background: rgba(239,159,39,0.18); color: var(--ssr-amber-mid); border: 0.5px solid rgba(239,159,39,0.4); margin-bottom: 18px; position: relative; }
.ssr-fv.cat-company .ssr-fv-badge { background: rgba(235,242,251,0.18); color: var(--ssr-blue-light); border-color: rgba(181,212,244,0.4); }
.ssr-fv.cat-ai .ssr-fv-badge { background: rgba(238,237,254,0.18); color: var(--ssr-purple-bg); border-color: rgba(91,79,184,0.4); }
.ssr-fv.cat-knowhow .ssr-fv-badge { background: rgba(225,245,238,0.18); color: var(--ssr-green-bg); border-color: rgba(111,188,142,0.4); }
.ssr-fv h1 { font-size: 36px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; letter-spacing: -0.01em; position: relative; }
.ssr-fv h1 span { color: var(--ssr-amber-mid); }
.ssr-fv-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 28px; line-height: 1.8; position: relative; max-width: 680px; margin-left: auto; margin-right: auto; }
.ssr-fv-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   [シンプル扉] page-ai / page-tenshoku-knowhow 用ページヘッダー
   ============================================================ */
.ssr-page-hero { border-radius: 16px; padding: 40px 48px; margin-bottom: 36px; color: #fff; position: relative; overflow: hidden; }
.ssr-page-hero.cat-ai { background: linear-gradient(135deg, #3C3489 0%, #5B4FB8 100%); }
.ssr-page-hero.cat-knowhow { background: linear-gradient(135deg, #2E7A4F 0%, #4FA572 100%); }
.ssr-page-hero.cat-company { background: linear-gradient(135deg, #143B6E 0%, #2E5FA3 100%); }
.ssr-page-hero.cat-company::before { background: radial-gradient(circle, rgba(181,212,244,0.35) 0%, transparent 70%); }
.ssr-page-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(239,159,39,0.25) 0%, transparent 70%); pointer-events: none; }
.ssr-page-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 10px; position: relative; }
.ssr-page-hero h1 { font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; position: relative; }
.ssr-page-hero p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.8; max-width: 680px; position: relative; }

/* ============================================================
   [② 悩み3カード] エージェント扉
   ============================================================ */
.ssr-worries-body { display: grid; grid-template-columns: 1fr minmax(280px, 38%); gap: 32px; align-items: end; background: #fff; border: 0.5px solid var(--ssr-gray-bd); border-radius: 16px; padding: 32px 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ssr-worries-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; align-self: center; }
.ssr-worries-list li { position: relative; padding-left: 38px; font-size: 16px; font-weight: 700; color: var(--ssr-navy); line-height: 1.65; }
.ssr-worries-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 6px; background: var(--ssr-amber-mid); }
.ssr-worries-list li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ssr-worries-illust { margin: 0; align-self: end; }
.ssr-worries-illust img { display: block; width: 100%; height: auto; }
.ssr-worries-message { margin-top: 28px; padding: 22px 24px; background: linear-gradient(135deg, var(--ssr-amber) 0%, #FFE7BD 100%); border-left: 4px solid var(--ssr-amber-mid); border-radius: 8px; }
.ssr-worries-msg-main { font-size: 18px; font-weight: 800; color: var(--ssr-navy); margin: 0 0 6px; line-height: 1.5; }
.ssr-worries-msg-sub { font-size: 14px; color: var(--ssr-navy-mid); margin: 0; line-height: 1.7; }
.sp-only { display: none; }

/* ============================================================
   [③ 比較表] エージェント扉
   ============================================================ */
.ssr-compare-wrap { background: #fff; border-radius: 12px; overflow: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid var(--ssr-gray-bd); }
.ssr-compare-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.ssr-compare-table th, .ssr-compare-table td { padding: 14px 16px; border-bottom: 1px solid #E5E7EB; font-size: 13px; text-align: center; vertical-align: middle; }
.ssr-compare-table thead th { background: var(--ssr-navy); font-weight: 700; color: #fff; border-bottom: 2px solid var(--ssr-amber-mid); vertical-align: middle; text-align: center; padding-top: 16px; padding-bottom: 16px; }
.ssr-compare-table thead th.col-1 { background: var(--ssr-amber-mid); color: #fff; }
.ssr-compare-table thead th:first-child { background: var(--ssr-navy-mid); }
.ssr-compare-table .ssr-th-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ssr-compare-table thead th.col-1 .ssr-th-name { font-size: 15px; }
.ssr-compare-table tbody td:first-child { text-align: center; background: #F8FAFC; font-weight: 600; color: var(--ssr-navy); width: 140px; border-right: 1px solid #E5E7EB; }
.ssr-compare-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.ssr-compare-table tbody tr:nth-child(even) td:first-child { background: #F2F4F7; }
.ssr-compare-table tr:last-child td { border-bottom: none; }
.ssr-compare-table tbody td.col-1 { background: rgba(239,159,39,0.12); border-left: 3px solid var(--ssr-amber-mid); border-right: 3px solid var(--ssr-amber-mid); color: var(--ssr-navy); font-weight: 600; }
.ssr-compare-table tbody tr:nth-child(even) td.col-1 { background: rgba(239,159,39,0.18); }
.ssr-star { color: var(--ssr-amber-mid); }
.ssr-cta-sm { display: inline-block; background: var(--ssr-cta-color); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.ssr-cta-sm.alt { background: var(--ssr-navy); }
.ssr-cta-sm:hover { color: #fff; }
.ssr-compare-scroll-hint { display: none; font-size: 11px; color: var(--ssr-text-sub); text-align: center; padding: 8px; }

/* ============================================================
   [④ エージェント詳細カード] r1/r2/r3 ランク別装飾
   ============================================================ */
.ssr-agent-card { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ssr-agent-card.r1 { border: 2px solid var(--ssr-amber-mid); }
.ssr-agent-card-head { padding: 16px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 0.5px solid var(--ssr-gray-bd); flex-wrap: wrap; }
.ssr-agent-card.r1 .ssr-agent-card-head { background: var(--ssr-amber); }
.ssr-rank-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; color: #fff; }
.ssr-agent-card.r1 .ssr-rank-circle { background: var(--ssr-navy); }
.ssr-agent-card.r2 .ssr-rank-circle, .ssr-agent-card.r3 .ssr-rank-circle { background: #888; }
.ssr-agent-name { font-size: 18px; font-weight: 700; color: var(--ssr-navy); flex: 1 1 auto; min-width: 0; line-height: 1.4; word-break: keep-all; }
.ssr-badge-recommend { display: inline-block; background: var(--ssr-amber-mid); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.ssr-agent-card-body { padding: 22px 26px; }
.ssr-agent-desc { font-size: 14px; color: var(--ssr-text); margin-bottom: 18px; line-height: 1.85; }
.ssr-agent-desc strong { font-weight: 700; color: var(--ssr-navy); background: linear-gradient(transparent 65%, rgba(239,159,39,0.25) 65%); padding: 0 2px; }
.ssr-agent-recommend-for { background: #FFF8EC; border: 0.5px solid rgba(239,159,39,0.35); border-left: 4px solid var(--ssr-amber-mid); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.ssr-arf-title { font-size: 13px; font-weight: 800; color: var(--ssr-amber-text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 0.5px solid rgba(239,159,39,0.3); letter-spacing: 0.02em; }
.ssr-arf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ssr-arf-list li { position: relative; padding-left: 24px; font-size: 13px; color: var(--ssr-text); line-height: 1.65; }
.ssr-arf-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ssr-amber-mid); }
.ssr-arf-list li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ssr-agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.ssr-agent-stat-val { word-break: keep-all; overflow-wrap: break-word; }
.ssr-agent-stat { background: var(--ssr-gray-bg); border-radius: 8px; padding: 12px; text-align: center; }
.ssr-agent-stat-label { font-size: 11px; color: var(--ssr-text-sub); margin-bottom: 4px; }
.ssr-agent-stat-val { font-size: 15px; font-weight: 700; color: var(--ssr-navy); }
.ssr-merit-demerit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.ssr-merit, .ssr-demerit { border-radius: 8px; padding: 14px; }
.ssr-merit { background: var(--ssr-green-bg); }
.ssr-demerit { background: var(--ssr-red-bg); }
.ssr-md-title { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.ssr-merit .ssr-md-title { color: #27500A; }
.ssr-demerit .ssr-md-title { color: #791F1F; }
.ssr-md-text { font-size: 12px; line-height: 1.7; }
.ssr-merit .ssr-md-text { color: #3B6D11; }
.ssr-demerit .ssr-md-text { color: #A32D2D; }
.ssr-agent-cta { text-align: center; }
.ssr-agent-cta-btn { display: inline-block; background: var(--ssr-amber-mid); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 40px; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 8px rgba(239,159,39,0.3); transition: 0.15s; }
.ssr-agent-cta-btn:hover { background: #d88a14; color: #fff; }
.ssr-agent-cta-note { font-size: 12px; color: var(--ssr-text-sub); margin-top: 8px; }
.ssr-agent-article-link { margin-top: 18px; padding-top: 16px; border-top: 0.5px solid var(--ssr-gray-bd); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ssr-agent-article-link-label { font-size: 13px; color: var(--ssr-text-sub); line-height: 1.5; }

/* ============================================================
   [⑤ 詳細ページ動線] エージェント扉
   ============================================================ */
.ssr-detail-link { background: #fff; border: 0.5px solid var(--ssr-gray-bd); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ssr-detail-link-text { flex: 1; }
.ssr-detail-link h3 { font-size: 16px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 4px; }
.ssr-detail-link p { font-size: 13px; color: var(--ssr-text-sub); margin: 0; }

/* ============================================================
   [⑥⑦ 記事グリッド] 共通記事カード
   ============================================================ */
.ssr-art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.ssr-art-card { background: #fff; border: 0.5px solid var(--ssr-gray-bd); border-radius: 12px; overflow: hidden; text-decoration: none; display: block; transition: 0.15s; color: inherit; }
.ssr-art-card:hover { border-color: var(--ssr-blue-mid); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); color: inherit; }
.ssr-art-thumb { background: linear-gradient(135deg, #E6EBF3 0%, #C8D6E8 100%); aspect-ratio: 1200 / 630; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ssr-text-sub); overflow: hidden; }
.ssr-art-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* CPT agent / company のロゴサムネ専用：白背景・contain で全体表示 */
.ssr-art-thumb.is-logo { background: #fff; border-bottom: 1px solid var(--ssr-gray-bd); }
.ssr-art-thumb.is-logo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ssr-art-thumb-placeholder { font-size: 11px; color: var(--ssr-text-sub); }
.ssr-art-body { padding: 14px 16px 16px; }
.ssr-art-cat { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; background: var(--ssr-amber); color: var(--ssr-amber-text); }
.ssr-art-cat.cat-tenshoku-agent { background: var(--ssr-amber); color: var(--ssr-amber-text); }
.ssr-art-cat.cat-it-saas-company { background: var(--ssr-blue-light); color: var(--ssr-blue); }
.ssr-art-cat.cat-ai { background: var(--ssr-purple-bg); color: var(--ssr-purple-text); }
.ssr-art-cat.cat-tenshoku-knowhow { background: var(--ssr-green-bg); color: var(--ssr-green-text); }
.ssr-art-title { font-size: 14px; font-weight: 700; color: var(--ssr-navy); line-height: 1.55; margin-bottom: 6px; }
.ssr-art-meta { font-size: 11px; color: var(--ssr-text-sub); }

/* ============================================================
   [⑧ FAQ] エージェント扉
   ============================================================ */
.ssr-faq-wrap { background: #fff; border-radius: 12px; padding: 4px 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ssr-faq-item { border-bottom: 0.5px solid var(--ssr-gray-bd); }
.ssr-faq-item:last-child { border-bottom: none; }
.ssr-faq-item > summary.ssr-faq-q { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-size: 14px; font-weight: 700; color: var(--ssr-navy); display: flex; gap: 10px; align-items: flex-start; position: relative; transition: color 0.15s; }
.ssr-faq-item > summary.ssr-faq-q::-webkit-details-marker { display: none; }
.ssr-faq-item > summary.ssr-faq-q::before { content: 'Q.'; color: var(--ssr-blue); flex-shrink: 0; }
.ssr-faq-item > summary.ssr-faq-q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--ssr-amber-mid); border-bottom: 2px solid var(--ssr-amber-mid); transform: translateY(-75%) rotate(45deg); transition: transform 0.25s; }
.ssr-faq-item[open] > summary.ssr-faq-q::after { transform: translateY(-25%) rotate(-135deg); }
.ssr-faq-item > summary.ssr-faq-q:hover { color: var(--ssr-amber-text); }
.ssr-faq-item .ssr-faq-a { font-size: 13px; color: var(--ssr-text); line-height: 1.85; display: flex; gap: 10px; padding: 0 0 18px; animation: ssr-faq-fadein 0.25s ease; }
.ssr-faq-item .ssr-faq-a::before { content: 'A.'; color: var(--ssr-amber-mid); font-weight: 700; flex-shrink: 0; }
@keyframes ssr-faq-fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   [CTA] ボディ用＋フッター用
   ============================================================ */
.ssr-cta-block { background: #fff; border: 0.5px solid var(--ssr-gray-bd); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 48px; }
.ssr-cta-block-text { flex: 1; }
.ssr-cta-block h3 { font-size: 16px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 4px; }
.ssr-cta-block p { font-size: 13px; color: var(--ssr-text-sub); margin: 0; }
.ssr-cta-inline-wrap { margin-bottom: 48px; }
.ssr-cta-inline { background: linear-gradient(135deg, #FFF7E6 0%, #FFEBC2 100%); border: 1px solid var(--ssr-amber-mid); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 2px 8px rgba(239,159,39,0.15); }
.ssr-cta-inline-text { flex: 1; }
.ssr-cta-inline-title { font-size: 17px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 6px; line-height: 1.4; }
.ssr-cta-inline-title span { color: var(--ssr-amber-mid); }
.ssr-cta-inline-desc { font-size: 13px; color: var(--ssr-text-sub); margin: 0; line-height: 1.7; }
.ssr-cta-inline-btn { display: inline-block; background: var(--ssr-cta-color); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(239,159,39,0.3); transition: 0.15s; flex-shrink: 0; }
.ssr-cta-inline-btn:hover { background: var(--ssr-cta-color-hover); color: #fff; transform: translateY(-1px); }
.ssr-cta-foot { background: var(--ssr-navy); border-radius: 16px; padding: 40px 48px; text-align: center; color: #fff; margin-top: 16px; }
.ssr-cta-foot-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.ssr-cta-foot-title { font-size: 22px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; word-break: keep-all; overflow-wrap: break-word; }
.ssr-cta-foot-title span { color: var(--ssr-amber-mid); }
.ssr-cta-foot-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 24px; word-break: keep-all; overflow-wrap: break-word; }
.ssr-cta-foot-btn { display: inline-block; background: var(--ssr-cta-color); color: #fff; font-size: 15px; font-weight: 700; padding: 16px 40px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 16px rgba(239,159,39,0.35); transition: 0.15s; }
.ssr-cta-foot-btn:hover { background: var(--ssr-cta-color-hover); color: #fff; }

/* ============================================================
   [検索フォーム] IT・SaaS企業扉（モック準拠 v2 / SP最適化）
   ============================================================ */
.ssr-search-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.ssr-search-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.ssr-search-box {
  display: flex;
  border: 1.5px solid var(--ssr-navy);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  gap: 0;
  box-shadow: none;
}
.ssr-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  color: var(--ssr-text);
  background: transparent;
}
.ssr-search-input::placeholder { color: #A0A0A0; }
.ssr-search-btn {
  padding: 10px 20px;
  background: var(--ssr-navy);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ssr-search-btn:hover { background: #243760; }
.ssr-search-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ssr-search-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ssr-gray-bg, #F2F4F7);
  color: var(--ssr-text-sub);
  border: 0.5px solid var(--ssr-gray-bd);
  cursor: pointer;
  text-decoration: none;
  transition: 0.15s;
}
.ssr-search-chip:hover {
  background: var(--ssr-blue-light);
  color: var(--ssr-blue);
  border-color: var(--ssr-blue-mid);
}
@media (max-width: 768px) {
  .ssr-search-wrap { padding: 14px 16px; margin-bottom: 18px; }
  .ssr-search-input { padding: 8px 10px; font-size: 12px; }
  .ssr-search-input::placeholder { font-size: 11px; }
  .ssr-search-btn { padding: 8px 12px; font-size: 12px; letter-spacing: 0.02em; }
  .ssr-search-chip { font-size: 10px; padding: 3px 8px; }
}

/* [旧 IT・SaaS企業扉用ネイティブバナー] CSS は agent v2 用（4220行付近）に統一済み・廃止 */
/* sec-tight ユーティリティ：bottom margin を控えめに */
.ssr-sec-tight { margin-bottom: 24px; }

/* ============================================================
   [企業カード] IT・SaaS企業 扉/list/個別
   ============================================================ */
.ssr-company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.ssr-company-card { background: #fff; border: 0.5px solid var(--ssr-gray-bd); border-radius: 12px; overflow: hidden; padding: 0; text-decoration: none; color: inherit; display: block; transition: 0.15s; }
.ssr-company-card:hover { border-color: var(--ssr-blue-mid); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); color: inherit; }
/* 会社ロゴエリア：カード上部・大型化（モック準拠） */
.ssr-company-thumb {
  width: 100%;
  height: 140px;
  background: #fff;
  border-bottom: 1px solid var(--ssr-gray-bd);
  border-radius: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 32px;
  font-weight: 700;
  color: var(--ssr-blue);
}
.ssr-company-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}
.ssr-company-name { font-size: 15px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 8px; line-height: 1.4; }
.ssr-company-desc { font-size: 12px; color: var(--ssr-text-sub); line-height: 1.7; margin-bottom: 10px; }
.ssr-company-tag { display: inline-block; font-size: 10px; padding: 2px 8px; background: var(--ssr-blue-light); color: var(--ssr-blue); border-radius: 3px; margin-right: 4px; }
.ssr-company-body { padding: 16px 18px 18px; }
/* 市場ステータスバッジ */
.ssr-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.ssr-company-badge.is-listed {
  background: linear-gradient(135deg, #143B6E 0%, #2E5FA3 100%);
  color: #fff;
}
.ssr-company-badge.is-venture {
  background: #FFF4E0;
  color: #B07024;
  border: 0.5px solid rgba(239,159,39,0.4);
}
.ssr-company-badge.is-private {
  background: var(--ssr-gray-bg, #F2F4F7);
  color: var(--ssr-text-sub);
  border: 0.5px solid var(--ssr-gray-bd);
}
.ssr-company-badge .ssr-stock-code {
  font-size: 9.5px;
  background: rgba(255,255,255,0.18);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
}
.ssr-company-badge.is-venture .ssr-stock-code,
.ssr-company-badge.is-private .ssr-stock-code {
  background: rgba(0,0,0,0.05);
}

/* ============================================================
   [個別ページ：基本情報セクション] single-agent / single-company
   ============================================================ */
.ssr-basic { background: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ssr-basic-inner { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
/* 旧 v1 .ssr-basic-logo（180px/v2 で上書き済み・履歴保持） */
.ssr-basic-main { flex: 1; min-width: 280px; }
.ssr-basic-title { font-size: 24px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 6px; }
.ssr-basic-meta { font-size: 13px; color: var(--ssr-text-sub); margin-bottom: 16px; }
.ssr-basic-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin-bottom: 16px; }
.ssr-basic-label { font-size: 12px; color: var(--ssr-text-sub); padding: 6px 0; }
.ssr-basic-value { font-size: 14px; color: var(--ssr-navy); padding: 6px 0; border-bottom: 0.5px dashed var(--ssr-gray-bd); }
.ssr-basic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ssr-basic-tag { display: inline-block; font-size: 11px; padding: 4px 10px; background: var(--ssr-blue-light); color: var(--ssr-blue); border-radius: 4px; }
.ssr-content-block { background: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); font-size: 15px; line-height: 1.9; color: var(--ssr-text); }
.ssr-content-block h2 { font-size: 18px; font-weight: 700; color: var(--ssr-navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ssr-amber); }
.ssr-content-block p { margin-bottom: 12px; }

/* ============================================================
   レスポンシブ（SP）
   ============================================================ */
@media (max-width: 768px) {
  .ssr-page-wrap { padding: 20px 16px 60px; }
  .ssr-fv { padding: 32px 24px; }
  .ssr-fv h1 { font-size: 26px; }
  .ssr-fv-sub { font-size: 13px; }
  .ssr-page-hero { padding: 28px 24px; }
  .ssr-page-hero h1 { font-size: 24px; }
  .ssr-target-grid { grid-template-columns: 1fr; }
  .ssr-art-grid { grid-template-columns: 1fr; }
  .ssr-company-grid { grid-template-columns: 1fr; }
  .ssr-agent-stats { grid-template-columns: 1fr; gap: 6px; }
  .ssr-agent-stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .ssr-agent-stat-label { margin-bottom: 0; font-size: 12px; }
  .ssr-agent-stat-val { font-size: 14px; text-align: right; }
  .ssr-merit-demerit { grid-template-columns: 1fr; }
  .ssr-cta-block { flex-direction: column; align-items: stretch; }
  .ssr-cta-block .ssr-btn-navy { width: 100%; text-align: center; }
  .ssr-cta-foot { padding: 28px 24px; }
  .ssr-cta-foot-title { font-size: 18px; }
  .ssr-native-banner { flex-direction: column; align-items: stretch; }
  .ssr-detail-link { flex-direction: column; align-items: stretch; }
  .ssr-basic-inner { gap: 16px; }
  .ssr-basic-logo { width: 80px; height: 80px; }
  .ssr-basic-dl { grid-template-columns: 1fr; gap: 4px; }
  .ssr-basic-label { font-size: 11px; padding: 4px 0 0; }
  .ssr-basic-value { padding: 0 0 6px; }
  .sp-only { display: inline; }
  .ssr-agent-card-head { padding: 14px 16px; gap: 10px; }
  .ssr-agent-name { font-size: 15px; line-height: 1.4; }
  .ssr-badge-recommend { font-size: 10px; padding: 3px 8px; }
  .ssr-rank-circle { width: 28px; height: 28px; font-size: 12px; }
  .ssr-agent-article-link { flex-direction: column; gap: 8px; text-align: center; }
  .ssr-agent-article-link a { width: 100%; }
  .ssr-cta-inline { flex-direction: column; align-items: stretch; padding: 22px 20px; gap: 16px; }
  .ssr-cta-inline-btn { width: 100%; text-align: center; }
  .ssr-cta-inline-title { font-size: 15px; }
  .ssr-compare-table th, .ssr-compare-table td { padding: 11px 12px; font-size: 12px; }
  .ssr-compare-scroll-hint { display: block; }
  .ssr-worries-body { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
  .ssr-worries-list { gap: 14px; }
  .ssr-worries-list li { font-size: 14px; padding-left: 32px; line-height: 1.6; }
  .ssr-worries-list li::before { width: 20px; height: 20px; top: 1px; }
  .ssr-worries-list li::after { left: 6px; top: 4px; width: 8px; height: 12px; border-width: 0 2.5px 2.5px 0; }
  .ssr-worries-illust { max-width: 280px; margin: 0 auto; }
  .ssr-worries-message { margin-top: 22px; padding: 18px 20px; }
  .ssr-worries-msg-main { font-size: 15px; }
  .ssr-worries-msg-sub { font-size: 13px; }
}

/* === PR / アフィリエイト広告ディスクロージャー（景表法ステマ規制対応・控えめ表示） === */
.ssr-pr-disclosure {
  margin: 0 0 16px;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ssr-text-sub);
  background: none;
  border: none;
}

/* 比較表の小さな注記 */
.ssr-compare-note {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ssr-text-sub);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .ssr-pr-disclosure { font-size: 10.5px; margin-bottom: 14px; }
}

/* ============================================================
   CPT agent 個別ページ（モック準拠 v2 / 2026-05-16）
   ============================================================ */

/* ① CTA（上部） */
.ssr-cta-head {
  background: linear-gradient(135deg, #1B2A4A 0%, #2E3F5C 100%);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 36px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.ssr-cta-head::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239,159,39,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.ssr-cta-head-text { flex: 1; position: relative; }
.ssr-cta-head-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.ssr-cta-head-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 6px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ssr-cta-head-title span { color: var(--ssr-amber-mid); }
/* 「3分で無料登録」の強調表示（PCは1.3倍・SPは同サイズ） */
.ssr-cta-emph {
  color: var(--ssr-amber-mid);
  font-size: 1.3em;
  font-weight: 700;
  display: inline-block;
  line-height: 1.3;
}
@media (max-width: 768px) {
  /* SP「3分で無料登録」も文字サイズアップ（PC 1.3em と同程度） */
  .ssr-cta-emph { font-size: 1.25em; display: block; margin-top: 0; line-height: 1.25; }
  /* 「3分で無料登録」直後の br による余白を抑制 */
  .ssr-cta-emph + br { display: none; }
  .ssr-cta-head-title, .ssr-cta-foot-title { line-height: 1.35; }
}

/* SWELL 標準の目次（.p-toc）は本文先頭に自動挿入されるが、当方の目次セクションと重複するため非表示 */
.single-agent .ssr-body-wrap .p-toc,
.single-agent .ssr-body-wrap div[class*="p-toc"] { display: none !important; }
.ssr-cta-head-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}
.ssr-cta-btn-main {
  display: inline-block;
  background: var(--ssr-cta-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239,159,39,0.4);
  transition: all 0.15s;
  position: relative;
}
.ssr-cta-btn-main:hover {
  background: var(--ssr-cta-color-hover);
  transform: translateY(-1px);
  color: #fff;
}

/* ② BASIC INFO */
.ssr-basic {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 40px;
}
.ssr-basic-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ssr-blue);
  margin-bottom: 8px;
}
.ssr-basic-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ssr-navy);
  line-height: 1.4;
  margin: 0 0 12px;
}
.ssr-basic-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ssr-basic-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  background: #FAEEDA;
  color: #633806;
}
.ssr-basic-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.ssr-basic-logo {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ssr-gray-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ssr-basic-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
}
.ssr-basic-logo-fallback { font-size: 72px; font-weight: 700; color: var(--ssr-navy); }
.ssr-basic-dl {
  flex: 1;
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 0;
  align-content: start;
}
.ssr-basic-dl dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--ssr-text-sub);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--ssr-gray-bd);
}
.ssr-basic-dl dd {
  font-size: 14px;
  color: var(--ssr-text);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--ssr-gray-bd);
  margin: 0;
}
.ssr-basic-dl dd a { color: var(--ssr-blue); text-decoration: none; word-break: break-all; }
.ssr-basic-dl dd a:hover { text-decoration: underline; }
.ssr-basic-dl dd ul { margin: 0; padding-left: 1.2em; }
.ssr-basic-dl dd li { font-size: 14px; line-height: 1.7; }
.ssr-basic-dl dt:last-of-type, .ssr-basic-dl dd:last-of-type { border-bottom: none; }

/* ③ PERSONA（icon と title を横並び・desc は下段全幅） */
.ssr-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ssr-persona-card {
  background: #fff;
  border: 0.5px solid var(--ssr-gray-bd);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.15s;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
}
.ssr-persona-card:hover {
  border-color: rgba(46,95,163,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ssr-persona-icon {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FAEEDA;
  color: #633806;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.ssr-persona-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin: 0;
  line-height: 1.45;
}
.ssr-persona-desc {
  grid-column: 1 / span 2;
  grid-row: 2;
  font-size: 13px;
  color: var(--ssr-text-sub);
  line-height: 1.7;
  margin: 0;
}

/* ④ BODY（紹介本文） */
.ssr-body-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 目次帯（body-toc 内の冒頭に配置） */
.ssr-body-toc { overflow: hidden; padding: 0; }
.ssr-toc-band {
  background: var(--ssr-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-bottom: 3px solid var(--ssr-amber-mid);
  margin: 0;
}
.ssr-body-toc .ssr-body-toc-title { padding: 18px 24px 0; }
.ssr-body-toc ol { padding: 0 24px 22px; }

/* 本文導入CTA（目次の旧位置・現在の縦幅で設置） */
.ssr-intro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2E3F5C 100%);
  border-radius: 12px;
  padding: 22px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ssr-intro-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(239,159,39,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.ssr-intro-cta-text { flex: 1; position: relative; }
.ssr-intro-cta-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ssr-intro-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.ssr-intro-cta-btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--ssr-amber-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(239,159,39,0.4);
  transition: 0.15s;
  position: relative;
}
.ssr-intro-cta-btn:hover { background: #d88a14; transform: translateY(-1px); color: #fff; }

.ssr-body-toc {
  background: var(--ssr-gray-bg, #F2F4F7);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.ssr-body-toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ssr-blue);
  margin-bottom: 12px;
}
.ssr-body-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.ssr-body-toc li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.ssr-body-toc li:last-child { border-bottom: none; }
.ssr-body-toc li::before {
  content: counter(toc, decimal-leading-zero) '. ';
  font-weight: 700;
  color: var(--ssr-amber-mid);
  margin-right: 6px;
}
.ssr-body-toc a {
  color: var(--ssr-navy);
  text-decoration: none;
}
.ssr-body-toc a:hover { color: var(--ssr-amber-mid); text-decoration: underline; }

.ssr-body-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--ssr-amber-mid);
  line-height: 1.5;
  scroll-margin-top: 80px;
}
.ssr-body-wrap h2:first-child { margin-top: 0; }
.ssr-body-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin: 24px 0 12px;
}
.ssr-body-wrap p {
  font-size: 15px;
  color: var(--ssr-text);
  line-height: 1.9;
  margin-bottom: 16px;
}
.ssr-body-wrap ul,
.ssr-body-wrap ol {
  margin: 8px 0 20px 1.6em;
}
.ssr-body-wrap li {
  font-size: 14px;
  color: var(--ssr-text);
  line-height: 1.85;
  margin-bottom: 4px;
}

/* ⑤ NATIVE BANNER（icon と h3 を横並びの grid 構造） */
.ssr-native-banner {
  background: linear-gradient(135deg, #FFF4E0 0%, #FCE3B8 100%);
  border-radius: 12px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  border: 1px solid rgba(239,159,39,0.3);
}
.ssr-native-banner-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.ssr-native-banner-text {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.ssr-native-banner-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin: 0 0 4px;
  line-height: 1.4;
}
.ssr-native-banner-text p {
  font-size: 13px;
  color: #5C4A1A;
  margin: 0;
  line-height: 1.6;
}
.ssr-native-banner .ssr-btn-amber {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

/* ⑦ フッターCTA 注釈 */
.ssr-cta-foot-note {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* SP */
@media (max-width: 768px) {
  .ssr-cta-head { flex-direction: column; padding: 24px 22px; gap: 18px; text-align: left; }
  .ssr-cta-head-title { font-size: 17px; word-break: normal; overflow-wrap: anywhere; }
  .ssr-cta-btn-main { width: 100%; text-align: center; }
  .ssr-basic { padding: 22px; }
  .ssr-basic-title { font-size: 22px; }
  .ssr-basic-inner { flex-direction: column; gap: 22px; }
  .ssr-basic-logo { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; padding: 6px; }
  .ssr-basic-logo-fallback { font-size: 56px; }
  .ssr-basic-dl { grid-template-columns: 1fr; row-gap: 0; }
  .ssr-basic-dl dt { padding-bottom: 4px; border-bottom: none; }
  .ssr-basic-dl dd { padding-top: 4px; padding-bottom: 12px; }
  .ssr-persona-grid { grid-template-columns: 1fr; }
  .ssr-body-wrap { padding: 22px; }
  .ssr-body-wrap h2 { font-size: 18px; }

  /* ネイティブバナー SP：icon+h3 を横並び、説明文＋ボタンは下段 */
  .ssr-native-banner {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 12px;
    padding: 18px;
  }
  .ssr-native-banner-icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    font-size: 22px;
    align-self: start;
  }
  .ssr-native-banner-text {
    grid-column: 2;
    grid-row: 1;
  }
  .ssr-native-banner .ssr-btn-amber {
    grid-column: 1 / span 2;
    grid-row: 2;
    text-align: center;
    width: 100%;
  }

  /* 本文導入CTA SP */
  .ssr-intro-cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
  .ssr-intro-cta-btn { width: 100%; text-align: center; }
  .ssr-toc-band { padding: 10px 18px; font-size: 13px; }
  .ssr-toc-section .ssr-body-toc { padding: 18px 18px 20px; }
}

/* ============================================================
   CPT agent SEO+CV強化版（v3 / 2026-05-16）
   ============================================================ */

/* === ミドルCTA === */
.ssr-middle-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  margin: 28px 0;
  background: linear-gradient(135deg, #FFF4E0 0%, #FCE3B8 100%);
  border: 1px solid rgba(239,159,39,0.4);
  border-left: 5px solid var(--ssr-amber-mid);
  border-radius: 8px;
}
.ssr-middle-cta-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #5C4A1A;
  line-height: 1.55;
}
.ssr-middle-cta-btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--ssr-cta-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(239,159,39,0.4);
  transition: all 0.15s;
}
.ssr-middle-cta-btn:hover { background: var(--ssr-cta-color-hover); transform: translateY(-1px); color: #fff; }

/* === 料金・サポート範囲表（テーブル装飾） === */
.ssr-table-wrap {
  margin: 14px 0 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}
.ssr-body-wrap table.ssr-fee-table,
.ssr-body-wrap table.ssr-compare-table-inline,
.ssr-body-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
  background: #fff;
}
.ssr-body-wrap table th,
.ssr-body-wrap table td {
  padding: 14px 16px;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}
.ssr-body-wrap table thead th {
  background: var(--ssr-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ssr-amber-mid);
}
.ssr-body-wrap table tbody tr:nth-child(even) td { background: #FAFBFC; }
.ssr-body-wrap table tbody tr:last-child td { border-bottom: none; }
.ssr-body-wrap table tbody td:first-child {
  font-weight: 700;
  color: var(--ssr-navy);
  width: 35%;
}

/* 比較表内 弱点・強み強調（赤文字／青文字のみ・背景なし） */
.ssr-compare-weak {
  color: #B83232;
  font-weight: 600;
}
.ssr-compare-strong {
  color: var(--ssr-blue);
  font-weight: 600;
}

/* === matching セクション（向く人・向かない人） === */
.ssr-matching {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 28px;
}
.ssr-matching-box {
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--ssr-gray-bd);
}
.ssr-matching-box.fit {
  background: #F0F8F3;
  border-color: rgba(46,122,79,0.3);
}
.ssr-matching-box.miss {
  background: #FFF6F4;
  border-color: rgba(184,50,50,0.25);
}
.ssr-matching-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ssr-matching-box.fit h4 { color: #2E7A4F; }
.ssr-matching-box.miss h4 { color: #B83232; }
.ssr-matching-box ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}
.ssr-matching-box li {
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  color: var(--ssr-text);
}
.ssr-matching-box.fit li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2E7A4F;
  font-weight: 700;
}
.ssr-matching-box.miss li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #B83232;
  font-weight: 700;
}

/* === 利用者の声（voice） === */
.ssr-voice {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: start;
  border-left: 4px solid var(--ssr-amber-mid);
  background: #FFF8EE;
  padding: 18px 20px;
  margin: 14px 0;
  border-radius: 4px;
}
.ssr-voice::before {
  content: '';
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FAEEDA;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23633806'><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>");
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1.5px solid #EFD3A3;
  align-self: start;
}
.ssr-voice-text {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  color: var(--ssr-text);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 4px;
}
.ssr-voice-source {
  grid-column: 2;
  grid-row: 2;
  font-size: 11px;
  color: var(--ssr-text-sub);
  letter-spacing: 0.02em;
}
.ssr-voice-source::before { content: '— '; }
@media (max-width: 768px) {
  .ssr-voice { grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 16px; }
  .ssr-voice::before { width: 40px; height: 40px; background-size: 24px; }
}

/* === 利用の流れ図解 === */
.ssr-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
  counter-reset: flow;
}
.ssr-flow-step {
  background: #fff;
  border: 1px solid var(--ssr-gray-bd);
  border-radius: 10px;
  padding: 16px 14px;
  position: relative;
  counter-increment: flow;
}
.ssr-flow-step::before {
  content: counter(flow);
  position: absolute;
  top: -10px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ssr-amber-mid);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ssr-flow-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ssr-navy);
  margin: 4px 0 4px;
  line-height: 1.4;
}
.ssr-flow-desc {
  font-size: 11.5px;
  color: var(--ssr-text-sub);
  line-height: 1.6;
}

/* === 比較セクション 内部リンク === */
.ssr-compare-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--ssr-blue);
  color: var(--ssr-blue);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.15s;
}
.ssr-compare-cta:hover { background: var(--ssr-blue); color: #fff; }

/* SP対応 */
@media (max-width: 768px) {
  .ssr-middle-cta { flex-direction: column; align-items: flex-start; padding: 16px; }
  .ssr-middle-cta-btn { width: 100%; text-align: center; }
  .ssr-matching { grid-template-columns: 1fr; }
  .ssr-flow { grid-template-columns: 1fr 1fr; }
  /* テーブルは横スクロール可能に（元のシンプル表示に戻す） */
  .ssr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ssr-body-wrap table { font-size: 12px; min-width: 100%; }
  .ssr-body-wrap table th, .ssr-body-wrap table td { padding: 10px 12px; }
}

/* ============================================================
   CPT company 個別ページ（モック準拠 v2 / 2026-05-17）
   ============================================================ */

/* ① CTA上部 ブルーグラデ（company 専用・モック準拠） */
.single-company .ssr-cta-head {
  background: linear-gradient(135deg, #143B6E 0%, #2E5FA3 100%);
}

/* ③ persona icon ブルー系（company 専用・モック準拠） */
.single-company .ssr-persona-icon {
  background: var(--ssr-blue-light);
  color: var(--ssr-blue);
}

/* ⑥ 募集要項 */
.ssr-recruit {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ssr-recruit-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 0;
  margin: 0;
}
.ssr-recruit-dl dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ssr-navy);
  padding: 14px 0;
  border-bottom: 0.5px solid var(--ssr-gray-bd);
}
.ssr-recruit-dl dd {
  font-size: 14px;
  color: var(--ssr-text);
  padding: 14px 0;
  border-bottom: 0.5px solid var(--ssr-gray-bd);
  line-height: 1.75;
  margin: 0;
}
.ssr-recruit-dl dt:last-of-type,
.ssr-recruit-dl dd:last-of-type { border-bottom: none; }
.ssr-recruit-dl dd p { margin: 0; }
.ssr-recruit-dl dd ul,
.ssr-recruit-dl dd ol { margin: 0; padding-left: 1.2em; }

@media (max-width: 768px) {
  .ssr-recruit { padding: 22px; }
  .ssr-recruit-dl { grid-template-columns: 1fr; }
  .ssr-recruit-dl dt { padding: 14px 0 4px; border-bottom: none; }
  .ssr-recruit-dl dd { padding: 0 0 14px; }
}


/* CPT company 個別ページ：SWELL標準目次を非表示（独自TOCを使用） */
body.single-company .p-toc {
    display: none !important;
}


/* ========= post 記事 アフィリ CTA（中盤ネイティブ＋関連記事上部バナー） ========= */
@media (max-width: 768px) {
  }

/* 関連記事上部CTA（middle-cta 風 / 参照画像準拠） */
.ssr-related-top-cta {
  display: block;
  background: #fef5e0;
  border-left: 4px solid #EF9F27;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 40px 0 16px;
}
.ssr-related-top-cta-text { margin-bottom: 16px; }
.ssr-related-top-cta-text strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  color: #1a2238;
  line-height: 1.5;
  font-weight: 700;
}
.ssr-related-top-cta-text span {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.ssr-related-top-cta-btn {
  display: block;
  background: #EF9F27;
  color: #fff !important;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease;
}
.ssr-related-top-cta-btn:hover { background: #d88a1d; }
@media (max-width: 768px) {
  .ssr-related-top-cta { padding: 18px 20px; margin: 32px 0 12px; }
  .ssr-related-top-cta-text strong { font-size: 15px; }
  .ssr-related-top-cta-btn { padding: 14px 20px; font-size: 15px; }
}

/* 本文中盤ネイティブCTA（参照画像と同じコンパクト2段：テキスト＋ボタン） */
.ssr-native-inline-cta {
  display: block;
  background: #fef5e0;
  border-left: 4px solid #EF9F27;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.ssr-native-inline-cta-icon { display: none; }
.ssr-native-inline-cta-body { margin-bottom: 14px; }
.ssr-native-inline-cta-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a2238;
  margin-bottom: 0;
  line-height: 1.5;
}
.ssr-native-inline-cta-desc { display: none; }
.ssr-native-inline-cta-btn {
  display: block;
  background: #EF9F27;
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease;
}
.ssr-native-inline-cta-btn:hover { background: #d88a1d; }
@media (max-width: 768px) {
  .ssr-native-inline-cta { padding: 16px 18px; }
  .ssr-native-inline-cta-title { font-size: 14px; }
  .ssr-native-inline-cta-btn { padding: 12px 18px; font-size: 14px; }
}


/* ========= 関連情報（会社概要/採用/IR/注記） ========= */
.ssr-related-info { }
.ssr-related-info-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 8px;
  column-gap: 16px;
  margin: 12px 0 16px;
  font-size: 14px;
}
.ssr-related-info-dl dt {
  color: var(--ssr-text-sub, #555);
  padding-top: 4px;
  font-weight: 600;
}
.ssr-related-info-dl dd {
  padding: 4px 0 8px;
  border-bottom: 0.5px dashed var(--ssr-gray-bd, #ddd);
}
.ssr-related-info-dl dd a {
  color: var(--ssr-link, #1a64d3);
  text-decoration: underline;
  word-break: break-all;
}
.ssr-related-info-note {
  font-size: 12px;
  color: var(--ssr-text-sub, #777);
  margin-top: 8px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .ssr-related-info-dl { grid-template-columns: 1fr; row-gap: 4px; }
  .ssr-related-info-dl dt { padding-top: 8px; }
  .ssr-related-info-dl dd { padding-top: 2px; }
}


/* ========= 関連記事：企業個別ページへの導線（アイキャッチ直後） ========= */
.it-back-to-company {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: #f5f8ff;
  border: 1px solid #d6e2f5;
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.it-back-to-company:hover {
  background: #e9f0fb;
  border-color: #93b3e5;
}
.it-back-to-company-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3eaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.it-back-to-company-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.it-back-to-company-body { flex: 1; min-width: 0; }
.it-back-to-company-eyebrow {
  display: block;
  font-size: 11px;
  color: #5b7fbb;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.it-back-to-company-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a2238;
  line-height: 1.5;
}
.it-back-to-company-arrow {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2a6ddb;
}
@media (max-width: 768px) {
  .it-back-to-company { padding: 12px 14px; gap: 10px; }
  .it-back-to-company-thumb { width: 48px; height: 48px; }
  .it-back-to-company-title { font-size: 13px; }
}


/* ========= /company-list/ 業界フィルタ ========= */
.ssr-filter-label {
  font-size: 12px;
  color: var(--ssr-text-sub, #555);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.ssr-company-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.ssr-filter-chip {
  background: #fff;
  border: 1px solid #d6e2f5;
  color: #2a6ddb;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.ssr-filter-chip:hover { background: #e9f0fb; }
.ssr-filter-chip.is-active {
  background: #2a6ddb;
  color: #fff;
  border-color: #2a6ddb;
}
.ssr-filter-count { font-size: 11px; opacity: 0.8; margin-left: 2px; }
@media (max-width: 768px) {
  .ssr-filter-chip { font-size: 12px; padding: 6px 12px; }
  .ssr-company-filter { gap: 6px; }
}


/* AI扉ヘッダーのオーバーレイ：オレンジを紫系に置換（既定の ::before を上書き） */
.ssr-page-hero.cat-ai::before {
  background: radial-gradient(circle, rgba(167,153,232,0.45) 0%, transparent 70%);
}




/* ========= SP 横スクロール抑止（ssr-overflow-fix-sp）========= */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .it-page-wrap, .it-main-col, .it-side-col, .ssr-page-wrap, .it-art-body { max-width: 100%; }
  /* pre/code は内部スクロールに */
  .it-art-body pre,
  .it-art-body code {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
    box-sizing: border-box;
  }
  /* 画像 / iframe は幅制限 */
  .it-art-body img,
  .it-art-body iframe,
  .it-art-eyecatch img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* テーブルは横スクロール内包 */
  .it-art-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}


/* ========= 編集長ハルの所感セクション（/tenshoku-agent/ 等で使用） ========= */
.ssr-haru-note {
  background: linear-gradient(135deg, #FFF5EE 0%, #FFE5D0 100%);
  border: 1px solid rgba(216, 67, 21, 0.22);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(216, 67, 21, 0.06);
}
.ssr-haru-note .ssr-sec-title {
  color: #B23A0F;
  margin-bottom: 16px;
}
.ssr-haru-note-body p { margin: 0 0 14px; line-height: 1.85; font-size: 14.5px; color: #4a2a18; }
.ssr-haru-note-list { margin: 14px 0 18px; padding: 14px 18px 14px 30px; background: rgba(255,255,255,0.55); border-radius: 8px; }
.ssr-haru-note-list li { margin-bottom: 10px; line-height: 1.75; font-size: 13.5px; color: #4a2a18; }
.ssr-haru-note-list li:last-child { margin-bottom: 0; }
.ssr-haru-note-list strong { color: #B23A0F; }
@media (max-width: 768px) {
  .ssr-haru-note { padding: 22px 18px; }
  .ssr-haru-note-list { padding: 12px 14px 12px 26px; }
}


/* ========= 記事上部CTA（it-end-cta-top）：下部より少しコンパクト ========= */
.it-end-cta.it-end-cta-top { margin: 20px 0 28px; }
.it-end-cta.it-end-cta-top .it-end-cta-title { font-size: 15px; }
.it-end-cta.it-end-cta-top .it-end-cta-sub { font-size: 12.5px; }


/* ========= アフィリCTA（検索ボックス下・直リンク） =========
   暖色グラデで目立たせる。target=_blank・rel=sponsored を必須に。 */
.ssr-cta-affiliate {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #FFF1E5 0%, #FFDFC0 100%);
  border: 1px solid rgba(216, 67, 21, 0.18);
  box-shadow: 0 2px 10px rgba(216, 67, 21, 0.08);
  text-decoration: none; color: #5A3800;
  transition: transform .15s, box-shadow .15s;
}
.ssr-cta-affiliate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216, 67, 21, 0.14); color: #5A3800; }
.ssr-cta-affiliate-body { flex: 1; }
.ssr-cta-affiliate-brand {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: #D84315; color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}
.ssr-cta-affiliate-title { font-size: 16px; font-weight: 800; color: #B23A0F; margin: 0 0 4px; line-height: 1.5; }
.ssr-cta-affiliate-sub { font-size: 12.5px; color: #5A3800; margin: 0; line-height: 1.6; }
.ssr-cta-affiliate-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 700;
  background: #D84315; color: #fff; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(216,67,21,0.3);
}

/* ========= ネイティブCTA（編集部おすすめエージェント直前等） =========
   記事カードに溶け込むトーンの控えめバナー。 */
.ssr-cta-native {
  display: block; padding: 22px 26px; border-radius: 12px;
  background: linear-gradient(135deg, #F4F7FB 0%, #E3ECF7 100%);
  border: 1px solid var(--ssr-gray-bd, #DDE3EA);
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ssr-cta-native:hover { transform: translateY(-2px); border-color: var(--navy, #1a3a5c); box-shadow: 0 4px 14px rgba(0,0,0,0.06); color: inherit; }
.ssr-cta-native-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--navy, #1a3a5c); margin-bottom: 8px;
}
.ssr-cta-native-body { margin-bottom: 12px; }
.ssr-cta-native-title { font-size: 17px; font-weight: 800; color: var(--navy, #1a3a5c); margin: 0 0 6px; line-height: 1.5; }
.ssr-cta-native-sub { font-size: 13px; color: #555; margin: 0; line-height: 1.7; }
.ssr-cta-native-btn {
  display: inline-flex; align-items: center; padding: 8px 18px;
  background: var(--navy, #1a3a5c); color: #fff; border-radius: 6px;
  font-size: 13px; font-weight: 700;
}

/* SP 対応：CTAを縦並びに */
@media (max-width: 768px) {
  .ssr-cta-affiliate { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .ssr-cta-affiliate-btn { width: 100%; padding: 14px; font-size: 14px; }
}


/* ========= industry-basics（業界基礎知識）専用テーマ：teal =========
   既存4本柱（agent=橙 / it-saas=青 / ai=紫 / knowhow=緑）と被らない中立色。
   archive header / バッジ / 扉ページ cat-badge を統一。 */
.it-cat-header.industry-basics {
  background: #DCEFEF;
  border: 0.5px solid rgba(22, 133, 139, 0.3);
}
.it-cat-header.industry-basics .it-cat-label { color: #0E5A5F; }
.it-badge-industry-basics { background: #DCEFEF; color: #0E5A5F; }
.ssr-art-cat.cat-industry-basics { background: #DCEFEF; color: #0E5A5F; }

/* it-saas-company バッジ（青系） */
.it-badge-company { background: #E5EDF8; color: #1E4380; }

/* ========= /all-articles/ タブ：SP はチップ（ピル）型で wrap =========
   6タブで SP 幅を超えるため、ピル型ボタンとして折り返し表示。 */
@media (max-width: 768px) {
  .it-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: none;
    margin-bottom: 20px;
  }
  .it-tab-link {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    background: #fff;
    color: #555;
    border: 1px solid var(--gray-bd, #e0e0e0);
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
  }
  .it-tab-link:hover {
    border-color: var(--navy, #1a3a5c);
    color: var(--navy, #1a3a5c);
  }
  .it-tab-link.active {
    background: var(--navy, #1a3a5c);
    color: #fff;
    border-color: var(--navy, #1a3a5c);
  }
}

/* ========= ページネーション（archive）：実リンク化に合わせて hover/active を整備 ========= */
.it-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 8px; }
.it-pagination .it-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 13px; color: #333; text-decoration: none; background: #fff;
  transition: background .15s, border-color .15s;
}
a.it-page-btn:hover { background: #f6f6f6; border-color: #bbb; }
.it-pagination .it-page-btn.active { background: var(--navy, #1a3a5c); color: #fff; border-color: var(--navy, #1a3a5c); cursor: default; }


/* ============================================================
   /profile/ 運営者情報ページ（SSR namespace: ssr-profile-*）
============================================================ */
.ssr-profile .ssr-sec { margin-bottom: 40px; }

/* ① ヒーロー：青空背景＋ネイビーオーバーレイ＋丸アバター */
.ssr-profile-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 40%;
  margin: 16px 0 40px;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.ssr-profile-hero-overlay {
  position: relative;
  background: linear-gradient(180deg, rgba(26,58,92,0.55) 0%, rgba(26,58,92,0.75) 100%);
  color: #fff;
  width: 100%;
  padding: 56px 32px;
  text-align: center;
}
.ssr-profile-hero-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 700;
  opacity: 0.85; margin-bottom: 16px;
}
.ssr-profile-hero-avatar {
  width: 116px; height: 116px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.ssr-profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssr-profile-hero-name {
  font-size: 28px; font-weight: 800; margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.ssr-profile-hero-role {
  font-size: 13px; opacity: 0.92; margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.ssr-profile-hero-lead {
  max-width: 640px; margin: 0 auto;
  font-size: 14px; line-height: 1.85; opacity: 0.95;
}
.ssr-profile-hero-lead p { margin: 0 0 16px; }
.ssr-profile-hero-lead p:last-child { margin-bottom: 0; }

/* ② ABOUT 系の本文ブロック共通 */
.ssr-profile-block,
.ssr-profile-message,
.ssr-profile-policy,
.ssr-profile-vision { font-size: 14.5px; line-height: 1.9; color: #333; }
.ssr-profile-block p,
.ssr-profile-vision p { margin: 0 0 14px; }
.ssr-profile-pin-list {
  margin: 14px 0; padding: 18px 22px; background: #F4F7FB;
  border-left: 3px solid var(--navy, #1a3a5c); border-radius: 4px;
  list-style: none;
}
.ssr-profile-pin-list li {
  padding: 4px 0 4px 18px; position: relative; font-size: 13.5px; line-height: 1.8;
}
.ssr-profile-pin-list li::before {
  content: "▸"; color: var(--navy, #1a3a5c); position: absolute; left: 0;
}

/* ③ 想定読者メッセージ */
.ssr-profile-message-lead {
  font-size: 16px; font-weight: 700; color: var(--navy, #1a3a5c);
  border-left: 4px solid var(--navy, #1a3a5c);
  padding-left: 14px; margin: 0 0 18px;
  line-height: 1.7;
}

/* ④ 経歴 */
.ssr-profile-strength { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ssr-profile-strength-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 22px 24px; position: relative;
}
.ssr-profile-strength-no {
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--navy, #1a3a5c); margin-bottom: 8px;
}
.ssr-profile-strength-card h3 {
  font-size: 15px; font-weight: 700; line-height: 1.55;
  margin: 0 0 10px; color: #111;
}
.ssr-profile-strength-card p {
  font-size: 13px; line-height: 1.8; color: #444; margin: 0;
}
.ssr-profile-timeline-title {
  font-size: 14px; font-weight: 700; color: var(--navy, #1a3a5c);
  margin: 0 0 12px;
}
.ssr-profile-timeline-list {
  list-style: none; padding: 0; margin: 0;
  border-left: 2px solid #DEE3EB; padding-left: 18px;
}
.ssr-profile-timeline-list li {
  position: relative; padding: 6px 0 14px;
  font-size: 13px;
}
.ssr-profile-timeline-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--navy, #1a3a5c); position: absolute;
  left: -23px; top: 12px;
}
.ssr-profile-timeline-period {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--navy, #1a3a5c); letter-spacing: 0.05em;
  margin-right: 10px;
}
.ssr-profile-timeline-role {
  display: inline-block; font-weight: 700; color: #111;
}
.ssr-profile-timeline-detail {
  display: block; color: #666; font-size: 12.5px; margin-top: 4px; line-height: 1.7;
}

/* ⑤ 資格 */
.ssr-profile-licenses {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px;
}
.ssr-profile-licenses li {
  padding: 8px 0 8px 22px; position: relative;
  font-size: 13px; line-height: 1.7; border-bottom: 1px dashed #E5E7EB;
}
.ssr-profile-licenses li::before {
  content: "✓"; color: var(--navy, #1a3a5c);
  position: absolute; left: 4px; top: 7px; font-weight: 700;
}

/* ⑥ AI開示（details で控えめ） */
.ssr-profile-disclosure {
  margin-top: 18px; padding: 12px 16px;
  background: #FAFBFC; border: 1px solid #E5E7EB; border-radius: 6px;
  font-size: 12.5px; color: #555;
}
.ssr-profile-disclosure summary {
  cursor: pointer; font-weight: 600; color: #666;
  padding: 2px 0; user-select: none;
}
.ssr-profile-disclosure summary:hover { color: var(--navy, #1a3a5c); }
.ssr-profile-disclosure ul {
  margin: 10px 0 4px; padding-left: 22px;
}
.ssr-profile-disclosure li { padding: 3px 0; line-height: 1.7; }

/* ⑧ SNS / Contact */
.ssr-profile-contact { text-align: center; }
.ssr-profile-sns {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.ssr-profile-sns li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: #F4F7FB; border-radius: 999px;
  font-size: 12.5px;
}
.ssr-profile-sns-label { font-weight: 700; color: var(--navy, #1a3a5c); }
.ssr-profile-sns-note  { color: #888; font-size: 11.5px; }

/* 改行制御用 inline ヘルパー：句中の不自然な折り返しを防ぐ */
.ssr-nowrap { white-space: nowrap; }

/* SP のみ表示する <br>：PCでは消える */
br.ssr-br-sp { display: none; }
@media (max-width: 768px) {
  br.ssr-br-sp { display: inline; }
}

/* SP 対応 */
@media (max-width: 768px) {
  .ssr-profile-hero { min-height: 340px; }
  .ssr-profile-hero-overlay { padding: 40px 20px; }
  .ssr-profile-hero-name { font-size: 24px; }
  .ssr-profile-hero-role { font-size: 12px; line-height: 1.7; }
  .ssr-profile-hero-role-line { display: block; }
  .ssr-profile-hero-role-sep { display: none; }
  .ssr-profile-hero-lead { font-size: 13px; }
  .ssr-profile-hero-avatar { width: 92px; height: 92px; }
  .ssr-profile-strength { grid-template-columns: 1fr; }
  .ssr-profile-licenses { grid-template-columns: 1fr; }
  .ssr-profile-timeline-list { padding-left: 14px; }
  .ssr-profile-timeline-list li::before { left: -19px; }
}
