/* ============================================================
 * 進路タイムズ デザインシステム
 * トーン: 信頼・堅実系(金融/比較メディアの王道)
 * メイン: 濃いネイビー #1a3a5c / サブ: グレー・白 / アクセント: 落ち着いた青
 * 装飾は最小限。可読性と信頼感を優先。
 * ============================================================ */

:root {
  --snr-navy: #1a3a5c;      /* メイン(ヘッダー/見出し) */
  --snr-navy-dark: #12283f;
  --snr-navy-deep: #0d1f31;
  --snr-blue: #2f8a6f;      /* アクセント(ボタン・比較表の強調列・リンク) ※緑系グリーン */
  --snr-blue-soft: #eaf5ef; /* 淡い面(強調セル背景など) */
  --snr-text: #1f2933;
  --snr-muted: #5b6b7b;
  --snr-line: #e2e8f0;
  --snr-bg: #f5f7fa;
  --snr-white: #ffffff;
  --snr-radius: 8px;
  --snr-shadow: 0 1px 3px rgba(18, 40, 63, 0.08);
  --snr-shadow-hover: 0 4px 14px rgba(18, 40, 63, 0.14);
  --snr-maxw: 1080px;
}

/* --- 全体トーン(Cocoon の上に薄く重ねる) --- */
.snr-top,
.snr-hikaku-wrap {
  color: var(--snr-text);
  line-height: 1.8;
}

/* ============================================================
 * PR表記(全記事冒頭・ファーストビュー内)
 * ============================================================ */
.snr-pr-notice {
  margin: 0 0 1.4em;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--snr-muted);
  background: var(--snr-blue-soft);
  border: 1px solid var(--snr-line);
  border-radius: 6px;
}

/* ============================================================
 * 最終更新日
 * ============================================================ */
.snr-updated {
  margin: 0 0 1.2em;
  font-size: 13px;
  color: var(--snr-muted);
}

/* ============================================================
 * 執筆者情報(著者ボックス) 全記事共通
 * ============================================================ */
.snr-author-box {
  margin: 2.4em 0 1em;
  padding: 20px 22px;
  background: var(--snr-white);
  border: 1px solid var(--snr-line);
  border-top: 3px solid var(--snr-navy);
  border-radius: var(--snr-radius);
  box-shadow: var(--snr-shadow);
}
.snr-author-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.snr-author-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--snr-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snr-author-label {
  margin: 0;
  font-size: 12px;
  color: var(--snr-muted);
}
.snr-author-name {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--snr-navy);
}
.snr-author-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--snr-text);
}
.snr-author-link {
  margin: 0;
}
.snr-author-link a {
  font-size: 13px;
  font-weight: 600;
  color: var(--snr-blue);
  text-decoration: none;
}
.snr-author-link a:hover {
  text-decoration: underline;
}

/* ============================================================
 * 比較表マスター
 * ============================================================ */
.snr-hikaku-wrap {
  margin: 2em 0;
  /* 列数が多いので常に横スクロール可能にする(PC/スマホ共通)。
     これでセルの折り返しによる“ずれ”をなくし、整った表を保つ。 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
}
.snr-hikaku-wrap .snr-hikaku {
  width: 100%;
  /* 10列を無理に詰め込まず、各列に十分な幅を確保。狭い画面ではスクロール。 */
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--snr-white);
  table-layout: fixed;
}
.snr-hikaku col.snr-col-name { width: 118px; }
.snr-hikaku col.snr-col-price { width: 104px; }
.snr-hikaku col.snr-col-pricenote { width: 150px; }
.snr-hikaku col.snr-col-years { width: 92px; }
.snr-hikaku col.snr-col-mileage { width: 160px; }
.snr-hikaku col.snr-col-maint { width: 132px; }
.snr-hikaku col.snr-col-cancel { width: 120px; }
.snr-hikaku col.snr-col-residual { width: 140px; }
.snr-hikaku col.snr-col-giveaway { width: 150px; }
.snr-hikaku col.snr-col-used { width: 118px; }
.snr-hikaku thead th {
  background: var(--snr-navy);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 11px 9px;
  font-size: 13px;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.snr-hikaku thead th:last-child {
  border-right: none;
}
.snr-hikaku tbody td,
.snr-hikaku tbody th {
  padding: 11px 9px;
  text-align: left;
  line-height: 1.5;
  word-break: break-word;
  border-top: 1px solid var(--snr-line);
  border-right: 1px solid var(--snr-line);
  vertical-align: top;
}
.snr-hikaku tbody td:last-child,
.snr-hikaku tbody th:last-child {
  border-right: none;
}
.snr-hikaku tbody tr:nth-child(even) td,
.snr-hikaku tbody tr:nth-child(even) th {
  background: #fafbfc;
}
.snr-hikaku .snr-hikaku-name {
  font-weight: 700;
  color: var(--snr-navy);
  text-align: left;
  background: var(--snr-blue-soft);
}
/* 月額セルは金額を強調 */
.snr-hikaku .snr-hikaku-price {
  font-weight: 700;
  color: var(--snr-navy);
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}
.snr-hikaku-empty {
  color: var(--snr-muted);
  padding: 22px 12px !important;
  font-size: 14px;
  text-align: center !important;
}
.snr-hikaku-note {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--snr-muted);
  line-height: 1.7;
}
/* スクロールできることを示すヒント */
.snr-hikaku-scrollhint {
  display: none;
  margin: 0 2px 6px;
  font-size: 12px;
  color: var(--snr-muted);
}
@media (max-width: 900px) {
  .snr-hikaku-scrollhint { display: block; }
}

/* ============================================================
 * カテゴリナビ(ヘッダー/フッター)
 * ============================================================ */
.snr-catnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.snr-catnav a {
  color: var(--snr-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.snr-catnav a:hover {
  color: var(--snr-blue);
  text-decoration: underline;
}

/* ============================================================
 * トップページ
 * ============================================================ */
.snr-top {
  max-width: var(--snr-maxw);
  margin: 0 auto;
}

/* ヒーロー */
.snr-hero {
  background: linear-gradient(135deg, var(--snr-navy) 0%, var(--snr-navy-dark) 100%);
  color: #fff;
  padding: 48px 28px;
  border-radius: var(--snr-radius);
  text-align: center;
  margin-bottom: 40px;
}
.snr-hero-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.snr-hero-catch {
  margin: 0 0 16px;
  font-size: 17px;
  color: #dbe6f1;
}
.snr-hero-lead {
  margin: 0 auto;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: #c3d3e2;
}

/* セクション見出し */
.snr-section {
  margin-bottom: 44px;
}
.snr-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--snr-navy);
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--snr-blue);
}

/* カテゴリカード */
.snr-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.snr-cat-card {
  display: block;
  padding: 22px 20px;
  background: var(--snr-white);
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
  box-shadow: var(--snr-shadow);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  border-top: 3px solid var(--snr-navy);
}
.snr-cat-card:hover {
  box-shadow: var(--snr-shadow-hover);
  transform: translateY(-2px);
  border-top-color: var(--snr-blue);
}
.snr-cat-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--snr-navy);
  margin-bottom: 6px;
}
.snr-cat-desc {
  display: block;
  font-size: 13px;
  color: var(--snr-muted);
  line-height: 1.7;
}

/* 記事カード */
.snr-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.snr-post-card {
  display: flex;
  flex-direction: column;
  background: var(--snr-white);
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
  overflow: hidden;
  box-shadow: var(--snr-shadow);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.snr-post-card:hover {
  box-shadow: var(--snr-shadow-hover);
  transform: translateY(-2px);
}
.snr-post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--snr-blue-soft);
  overflow: hidden;
}
.snr-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.snr-post-thumb--noimg {
  background: repeating-linear-gradient(
    135deg,
    #eef3f8,
    #eef3f8 12px,
    #e6edf4 12px,
    #e6edf4 24px
  );
}
.snr-post-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.snr-post-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--snr-navy);
  padding: 2px 9px;
  border-radius: 3px;
}
.snr-post-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--snr-text);
  line-height: 1.55;
}
.snr-post-date {
  font-size: 12px;
  color: var(--snr-muted);
}

/* 空状態 */
.snr-empty {
  color: var(--snr-muted);
  font-size: 14px;
  padding: 20px;
  text-align: center;
  background: var(--snr-white);
  border: 1px dashed var(--snr-line);
  border-radius: var(--snr-radius);
}

/* レスポンシブ */
@media (max-width: 720px) {
  .snr-cat-grid {
    grid-template-columns: 1fr;
  }
  .snr-post-grid {
    grid-template-columns: 1fr;
  }
  .snr-hero {
    padding: 36px 20px;
  }
  .snr-hero-title {
    font-size: 24px;
  }
}


/* ============================================================
 * 大手メディア風 質感刷新(2026-09)
 * 実DOM(Cocoon)に合わせて上書き。ネイビー基調を維持。
 * アクセント: 落ち着いた青 #2f6fa3(既存)。金色などは足さず信頼感優先。
 * ============================================================ */

/* --- 全体トーン: 読みやすい行間・本文色 --- */
.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #23303c;
  letter-spacing: 0.01em;
}
.entry-content p { margin: 0 0 1.5em; }

/* ============================================================
 * ヘッダーロゴ（画像ロゴ / 進路タイムズ ワードマーク・透過PNG）
 *   画像: メディアライブラリ(id=40, snr-logo-trimmed.png / 490×92px 透過・比約5.32:1)
 *   ※テーマフォルダ内パスは環境依存で404になりやすいため、確実なメディアURLを参照。
 *   テキスト(.site-name-text)は隠し、リンク要素に背景画像で表示。
 * ============================================================ */
.logo-header .site-name-text,
.logo .site-name-text { display: none; }
.logo-header .site-name-text-link,
.logo .site-name-text-link {
  display: inline-block;
  width: 245px;
  height: 46px;
  background-image: url('https://shinro-times.com/wp-content/uploads/2026/09/snr-logo-trimmed.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-indent: -9999px;   /* サイト名テキストを視覚的に隠す */
  overflow: hidden;
}
@media (max-width: 480px) {
  .logo-header .site-name-text-link,
  .logo .site-name-text-link { width: 202px; height: 38px; }
}

/* ============================================================
 * グローバルナビ(#navi / navi-header メニュー)
 * ネイビーバー・ホバーで下線アクセント
 * ============================================================ */
#navi {
  background: var(--snr-navy, #1a3a5c);
  border-bottom: 3px solid var(--snr-navy-dark, #12283f);
}
#navi .navi-in > ul > li > a,
#navi ul li a {
  color: #eaf0f6;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
#navi ul li a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
#navi ul li.current-menu-item > a {
  box-shadow: inset 0 -3px 0 var(--snr-blue, #2f6fa3);
}

/* ============================================================
 * 記事見出し H2 / H3(.entry-content 内)
 * H2: 左ボーダー+淡い背景で明確に / H3: 控えめに階層可視化
 * ============================================================ */
.entry-content h2 {
  position: relative;
  margin: 2.2em 0 1em;
  padding: 12px 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #14293f;
  background: #f2f6fa;
  border-left: 6px solid var(--snr-navy, #1a3a5c);
  border-radius: 0 6px 6px 0;
}
.entry-content h3 {
  margin: 1.8em 0 0.7em;
  padding: 0 0 6px 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--snr-navy, #1a3a5c);
  border-left: 4px solid var(--snr-blue, #2f6fa3);
}
.entry-content h4 {
  margin: 1.4em 0 0.5em;
  font-size: 16px;
  font-weight: 700;
  color: #2a3d50;
}


/* ============================================================
 * カード・ボーダー・影の統一(記事本文の表・引用・リスト・ボックス)
 * ============================================================ */
.entry-content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
  overflow: hidden;
  box-shadow: var(--snr-shadow);
}
.entry-content .wp-block-table th {
  background: var(--snr-navy);
  color: #fff;
  font-weight: 600;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.entry-content .wp-block-table td {
  padding: 11px 12px;
  border: 1px solid var(--snr-line);
  vertical-align: top;
}
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: #f7fafc; }
.entry-content .wp-block-table figcaption {
  font-size: 12px;
  color: var(--snr-muted);
  margin-top: 8px;
  line-height: 1.7;
}
.entry-content ul li, .entry-content ol li { margin: 0.4em 0; }

/* ============================================================
 * 著者ボックス: アイコンを実画像に(円形)
 * ============================================================ */
.snr-author-box {
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 60%);
  padding: 22px 24px;
}
.snr-author-avatar {
  width: 56px;
  height: 56px;
  background: transparent;
  border: 2px solid var(--snr-blue-soft);
  overflow: hidden;
  padding: 0;
}
.snr-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.snr-author-name { font-size: 17px; }

/* ============================================================
 * サイドバー整形(#sidebar .widget)
 * 見出しをネイビーの帯に。新着記事の core/latest-posts をカード化。
 * ============================================================ */
#sidebar .widget {
  background: #fff;
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
  box-shadow: var(--snr-shadow);
  padding: 16px 16px 18px;
  margin-bottom: 22px;
}
#sidebar .widget h3,
#sidebar .widget .widget-title,
#sidebar .widget .wp-block-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--snr-navy);
  margin: -16px -16px 14px;
  padding: 10px 16px;
  border-radius: var(--snr-radius) var(--snr-radius) 0 0;
  border-left: 4px solid var(--snr-blue);
}
/* 新着記事(latest-posts) サムネイル + テキストの横並び */
#sidebar .wp-block-latest-posts.is-grid,
#sidebar ul.wp-block-latest-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
#sidebar ul.wp-block-latest-posts__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--snr-line);
}
#sidebar ul.wp-block-latest-posts__list li:last-child { border-bottom: none; }
#sidebar .wp-block-latest-posts__featured-image img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
#sidebar .wp-block-latest-posts__featured-image {
  margin: 0;
  grid-row: 1 / 3;
}
#sidebar ul.wp-block-latest-posts__list li > a {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--snr-navy);
  text-decoration: none;
}
#sidebar ul.wp-block-latest-posts__list li > a:hover { color: var(--snr-blue); text-decoration: underline; }
#sidebar .wp-block-latest-posts__post-date {
  font-size: 11px;
  color: var(--snr-muted);
}
/* カテゴリー・検索の細部 */
#sidebar .wp-block-categories a { color: var(--snr-navy); text-decoration: none; }
#sidebar .wp-block-categories a:hover { color: var(--snr-blue); text-decoration: underline; }
#sidebar .wp-block-search__button {
  background: var(--snr-navy);
  border-color: var(--snr-navy);
  color: #fff;
}

/* ============================================================
 * パンくず・目次の質感を軽く整える(既存Cocoonを尊重)
 * ============================================================ */
.entry-content .toc {
  background: #f7fafc;
  border: 1px solid var(--snr-line);
  border-radius: var(--snr-radius);
}
.entry-content .toc .toc-title { color: var(--snr-navy); font-weight: 700; }


/* ============================================================
 * フロント固定ページ(トップ)の 目次 / SNSボタン / タイトルを非表示
 * body.home スコープ + 高詳細度で Cocoon本体を確実に上書き
 * ============================================================ */
body.home.front-top-page #toc,
body.home.front-top-page .toc,
body.home.front-top-page .sns-share,
body.home.front-top-page .sns-share-message,
body.home.front-top-page > .wrap .entry-title,
body.home.front-top-page .entry-title,
body.home.front-top-page .date-tags,
body.home.front-top-page .post-meta {
  display: none !important;
}


/* ============================================================
 * トップ改善(2026-09 v2): ファーストビューをコンテンツ主導に
 * ヒーロー大箱を廃止 -> 細いキャッチバー / 注目記事 / ロゴ拡大 / ヘッダー詰め
 * ============================================================ */

/* 旧ヒーロー(.snr-hero)は不使用。念のため非表示 */
.snr-hero { display: none !important; }

/* 細いキャッチコピー・バー(1行) */
.snr-catchbar {
  margin: 0 0 22px;
  padding: 9px 16px;
  background: var(--snr-blue-soft, #eef3f8);
  border-left: 4px solid var(--snr-navy, #1a3a5c);
  border-radius: 4px;
}
.snr-catchbar-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--snr-navy, #1a3a5c);
  letter-spacing: 0.01em;
}

/* 注目記事グリッド(4カラム。カードは新着と同じ部品を流用) */
.snr-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.snr-feat-card .snr-post-title { font-size: 14.5px; }
.snr-featured .snr-section-title { border-left-color: var(--snr-navy, #1a3a5c); }
@media (max-width: 900px) {
  .snr-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .snr-feat-grid { grid-template-columns: 1fr; }
}

/* ロゴ拡大(1.35x) + ヘッダーの縦余白を詰める */
.logo-header .site-name-text-link,
.logo .site-name-text-link {
  width: 228px !important;
  height: 62px !important;
}
@media (max-width: 480px) {
  .logo-header .site-name-text-link,
  .logo .site-name-text-link { width: 180px !important; height: 48px !important; }
}
/* ヘッダー本体の上下パディングを圧縮 */
#header, .header-container, .header-in {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.logo-header, .logo {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* サイドバー: 4カテゴリの縦リスト(snr-catnav を縦組みに) */
#sidebar .snr-catnav.snr-catnav-vertical ul {
  flex-direction: column;
  gap: 0;
}
#sidebar .snr-catnav.snr-catnav-vertical li {
  border-bottom: 1px solid var(--snr-line, #e2e8f0);
}
#sidebar .snr-catnav.snr-catnav-vertical li:last-child { border-bottom: none; }
#sidebar .snr-catnav.snr-catnav-vertical a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--snr-navy, #1a3a5c);
}
#sidebar .snr-catnav.snr-catnav-vertical a:hover {
  color: var(--snr-blue, #2f6fa3);
  text-decoration: none;
}


/* ============================================================
 * トップ改善 v3: 注目記事ヒーロー(大手メディア型 主役1 + サブ3)
 * ============================================================ */
/* 旧v2の細バー/4枚グリッドは不使用 */
.snr-catchbar { display: none !important; }

/* 見出し + 右にキャッチ1行 */
.snr-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.snr-section-head .snr-section-title { margin: 0; }
.snr-section-catch {
  font-size: 13px;
  color: var(--snr-muted, #5b6b7b);
  font-weight: 500;
}

/* ヒーロー: 左に主役(大)・右にサブ3本 */
.snr-feature-hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* 主役カード */
.snr-feature-main {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--snr-line, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--snr-shadow, 0 1px 3px rgba(18,40,63,.08));
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.snr-feature-main:hover { box-shadow: var(--snr-shadow-hover, 0 4px 14px rgba(18,40,63,.14)); transform: translateY(-2px); }
.snr-feature-main-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--snr-blue-soft, #eef3f8);
  overflow: hidden;
}
.snr-feature-main-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snr-feature-main-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.snr-feature-main-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: #14293f;
}
.snr-feature-main-excerpt {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--snr-muted, #5b6b7b);
}

/* サブリスト(横型カード3本) */
.snr-feature-sub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.snr-feature-sub {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--snr-line, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--snr-shadow, 0 1px 3px rgba(18,40,63,.08));
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
  flex: 1;
}
.snr-feature-sub:hover { box-shadow: var(--snr-shadow-hover, 0 4px 14px rgba(18,40,63,.14)); transform: translateY(-2px); }
.snr-feature-sub-thumb {
  display: block;
  width: 116px;
  height: 78px;
  background: var(--snr-blue-soft, #eef3f8);
  overflow: hidden;
}
.snr-feature-sub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snr-feature-sub-body { padding: 8px 12px 8px 0; display: flex; flex-direction: column; gap: 5px; }
.snr-feature-sub-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2933;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ */
@media (max-width: 860px) {
  .snr-feature-hero { grid-template-columns: 1fr; }
}


/* ============================================================
 * トップ改善 v4: 日経型(上に大主役1本 + 下に均等グリッド)
 * + ヘッダー上のキャッチ重複を除去
 * ============================================================ */
/* ヘッダーのキャッチ(ロゴ上に浮くタグライン)を非表示 */
#header .tagline,
.logo-header .tagline,
.header-container .tagline { display: none !important; }
/* v3の見出し横キャッチ・サブリストは不使用 */
.snr-section-catch, .snr-section-head .snr-section-catch { display: none !important; }
.snr-feature-hero, .snr-feature-sub-list { display: block; }

/* 主役リードカード(画像左 + 本文右) */
.snr-lead-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--snr-line, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--snr-shadow, 0 1px 3px rgba(18,40,63,.08));
  text-decoration: none;
  margin-bottom: 22px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.snr-lead-card:hover { box-shadow: var(--snr-shadow-hover, 0 4px 14px rgba(18,40,63,.14)); transform: translateY(-2px); }
.snr-lead-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--snr-blue-soft, #eef3f8);
  overflow: hidden;
}
.snr-lead-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snr-lead-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  justify-content: center;
}
.snr-lead-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #14293f;
}
.snr-lead-excerpt {
  font-size: 14px;
  line-height: 1.85;
  color: var(--snr-muted, #5b6b7b);
}
@media (max-width: 780px) {
  .snr-lead-card { grid-template-columns: 1fr; }
  .snr-lead-title { font-size: 19px; }
}

/* 注目記事の下グリッド(3カラム均等・新着と同じ部品) */
.snr-feat-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) {
  .snr-feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .snr-feat-grid { grid-template-columns: 1fr; }
}


/* ============================================================
 * トップ改善 v5: ロゴをさらに拡大(前回の約1.3倍) + 上部余白を圧縮
 * ============================================================ */
/* ロゴ 228x62 -> 296x80(約1.3倍) */
.logo-header .site-name-text-link,
.logo .site-name-text-link {
  width: 296px !important;
  height: 80px !important;
}
@media (max-width: 480px) {
  .logo-header .site-name-text-link,
  .logo .site-name-text-link { width: 216px !important; height: 58px !important; }
}
/* 注目記事(=最初のセクション)の上の余白を詰める */
.snr-top { padding-top: 0 !important; }
.snr-top > .snr-section:first-of-type,
.snr-featured { margin-top: 0 !important; padding-top: 0 !important; }
.snr-featured .snr-section-title:first-child { margin-top: 0 !important; }
/* メインカラム上端の余白も圧縮 */
#main, .main, #content, .content-in { padding-top: 8px !important; }


/* ============================================================
 * トップ改善 v6: 本文フォントを Noto Sans JP に(フォント読込はPHPでlink追加)
 * ============================================================ */
body,
.entry-content,
.snr-top,
.snr-lead-title,
.snr-post-title,
.snr-section-title,
#sidebar,
#navi {
  font-family: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
}


/* ============================================================
 * トップ改善 v7: PC時は .logo-text の上下paddingを0に(余白詰め)
 * ============================================================ */
@media (min-width: 1024px) {
  .logo-text,
  .logo-header.logo-text,
  .logo.logo-text {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* ============================================================
 * トップ改善 v8: ヘッダー余白をさらに詰める(PC/スマホ共通)
 * ============================================================ */
/* .logo-text 上下padding 0(PC/スマホ共通・v7のPC限定を上書き) */
.logo-text,
.logo-header.logo-text,
.logo.logo-text {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* ヘッダーの下padding 0(PC/スマホ共通・v3の8pxを上書き) */
#header,
.header-container,
.header-in {
  padding-bottom: 0 !important;
}


/* ============================================================
 * トップ改善 v9: 記事内リンクhover色(赤を上書き) + H3 padding調整
 * ============================================================ */
/* 本文テキストリンク: 通常=アクセント青 / hover=ネイビー(赤を打ち消す) */
.entry-content a {
  color: var(--snr-blue, #2f6fa3);
}
.entry-content a:hover,
.entry-content a:focus {
  color: var(--snr-navy, #1a3a5c) !important;
  text-decoration: underline;
}
/* H3 padding(PC/SP共通) */
.entry-content h3 {
  padding: 10px 0px 10px 14px !important;
}

/* ============================================================
 * CTAボタン（アフィリエイト導線）記事内 .snr-cta
 * ============================================================ */
.snr-cta {
  margin: 1.6em 0;
  text-align: center;
}
.snr-cta a {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 28px;
  background: var(--snr-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none !important;
  border-radius: var(--snr-radius);
  box-shadow: var(--snr-shadow);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.snr-cta a:hover {
  background: var(--snr-navy);
  color: #fff !important;
  box-shadow: var(--snr-shadow-hover);
}
.snr-cta a:active {
  transform: translateY(1px);
}
/* 提携承認前などのプレースホルダ文言（リンクでない場合） */
.snr-cta strong {
  display: inline-block;
  padding: 14px 22px;
  background: var(--snr-blue-soft);
  color: var(--snr-muted);
  border: 1px dashed var(--snr-line);
  border-radius: var(--snr-radius);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
 * 比較表マスター（通信制高校）11列の幅指定＋主軸列の強調
 *   主軸＝「学費体系の型」。ここを一番目立たせる。
 * ============================================================ */
.snr-hikaku { min-width: 1500px; } /* 11列（型比較）。狭い画面は横スクロール */
.snr-hikaku col.snr-c-name { width: 130px; }
.snr-hikaku col.snr-c-type { width: 170px; }   /* ★主軸（学費体系の型） */
.snr-hikaku col.snr-c-nyugaku { width: 100px; }
.snr-hikaku col.snr-c-tani { width: 140px; }
.snr-hikaku col.snr-c-support { width: 180px; }
.snr-hikaku col.snr-c-net_min { width: 200px; }
.snr-hikaku col.snr-c-courses { width: 180px; }
.snr-hikaku col.snr-c-schooling { width: 120px; }
.snr-hikaku col.snr-c-grad { width: 150px; }
.snr-hikaku col.snr-c-area { width: 80px; }
.snr-hikaku col.snr-c-genre { width: 170px; }

/* 主軸列（学費体系の型）を強調 */
.snr-hikaku thead th.snr-hikaku-hl {
  background: var(--snr-blue);
}
.snr-hikaku tbody td.snr-hikaku-hl {
  background: var(--snr-blue-soft);
  font-weight: 700;
  color: var(--snr-navy);
  font-size: 15px;
  text-align: left;
  white-space: normal;   /* 型は長い文言のため折り返す（nowrapだと列が横伸びしてズレる） */
  line-height: 1.5;
}

/* ============================================================
 * アフィリエイトCTAボタン（.snr-aff-cta）
 *   収益化リンク（A8等）専用。内部リンクはテキストのまま（このクラスを付けない）。
 *   HTMLブロックで <p class="snr-aff-cta"><a ...>ラベル</a></p> と囲む。
 * ============================================================ */
.snr-aff-cta {
  text-align: center;
  margin: 30px 0;
}
.snr-aff-cta a {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 48px;
  background: linear-gradient(180deg, #38a686 0%, #2f8a6f 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none !important;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(47, 138, 111, 0.30);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.snr-aff-cta a::after {
  content: "  ›";
  font-weight: 700;
}
.snr-aff-cta a:hover,
.snr-aff-cta a:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(47, 138, 111, 0.42);
  background: linear-gradient(180deg, #3ab08e 0%, #34977c 100%);
  color: #ffffff !important;
}
.snr-aff-cta a:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(47, 138, 111, 0.30);
}
/* 「無料相談」等を含む場合の視認性向上（任意） */
.snr-aff-cta .snr-aff-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--snr-muted);
}
@media (max-width: 480px) {
  .snr-aff-cta a {
    display: block;
    padding: 16px 22px;
    font-size: 16px;
  }
}
