@charset "UTF-8";

/*!
Theme Name: メディアサイト
Description: スマイルグループ メディアサイト用 Cocoon 子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* =========================================================================
   デザイントークン（既存サイトの Figma から抽出）
   - 値は docs/design-tokens.md と対応させる
   - Figma の hex / px を各所に直書きせず、必ず var(--xxx) を参照する
   - 値は仮の既定値。{{TODO}} を Figma の実値に置き換える
   ========================================================================= */
:root {
  /* 色 */
  --color-main: #ee1c24;        /* ブランド赤（Figma /blog ヒーロー帯 847:9002 ＋ カテゴリタグ 836:11564） */
  --color-accent: #1a73e8;      /* ヘッダーナビ/検索の青（Smile Carsロゴの青枠に合わせる・参考ヘッダー踏襲） */
  --color-accent-soft: #edf3fc; /* 検索ポップアップのパネル背景（淡い青） */
  --color-tag-bg: #1a4ca7;      /* タグpill背景（#1A4CA7・青）。全タグ共通 */
  --color-text: #282828;        /* 本文・見出しテキスト（Figma 836:11566/11567 等で一貫） */
  --color-text-sub: #777777;    /* {{TODO: サブテキスト}} */
  --color-bg: #ffffff;          /* {{TODO: 背景}} */
  --color-border: #e5e5e5;      /* {{TODO: 明るいボーダー}} */
  --color-cat: var(--color-main);   /* カテゴリタグ背景（= ブランド赤） */
  /* ブランド色（記事の分類ラベル・絞り込みタブ・TOPブランド別セクション）。
     images/logo-cars.png / logo-truck.png のロゴ色から抽出（2026-08-26 修正指示 No.3/10/11/12） */
  --color-brand-cars: #ee1c24;      /* スマイルカーズ（ロゴ赤・= --color-main） */
  --color-brand-truck: #00703c;     /* スマイルトラック（ロゴ緑） */
  --color-cat-text: #ffffff;        /* カテゴリタグ文字 */
  --color-cta: #c8102e;             /* ヘッダー検索アイコン/ポップアップのアクセント赤（#C8102E） */
  --color-cta-soft: #fbeaec;        /* 検索ポップアップのパネル背景（淡い赤） */
  --color-nav-text: #333333;        /* ヘッダーナビ項目（ブログ/私たちについて 等）#333 */
  --color-bg-soft: #f5f7fa;         /* セクション背景（Ranking/Trending の淡い面） */
  --color-pill-bg: #eef1f4;         /* 記事カードの小タグpill背景（ニュートラル） */
  --color-noimg-bg: #e6e8ec;        /* アイキャッチ未設定時のダミー背景（薄グレー） */
  --color-btn: #f05a21;            /* CTA塗りボタン背景（Figma 234:2938 オレンジ） */
  --color-btn-text: #ffffff;       /* 塗りボタン文字 */
  --color-btn-outline: #c20000;    /* アウトラインボタン枠（Figma 632:1207 赤） */
  --color-btn-outline-text: #c8102e; /* アウトラインボタン文字 */

  /* フォント */
  /* Cocoon設定 > 全体 > サイトフォント =「Noto Sans JP（WEBフォント）」と一致させる。
     先頭を Noto Sans JP にし、Webフォント読込前/未対応時のフォールバックを後ろに置く（Figma: Noto Sans JP）。 */
  --font-base: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-heading: var(--font-base); /* {{TODO: 見出しフォント}} */
  --font-en: "Roboto", var(--font-base); /* 日付・数字（Figma カード日付 = Roboto Bold） */
  --font-size-base: 16px;       /* {{TODO}} */
  --line-height-base: 1.8;      /* {{TODO}} */
  --tracking-base: 0.05em;      /* 字間（カード・記事タイトル・メタ = 0.05em） */
  --tracking-wide: 0.07em;      /* 字間（記事本文 .entry-content の見出し/本文/表/目次 = 0.07em） */

  /* 余白 */
  --space-section: 64px;        /* {{TODO: セクション間}} */
  --space-md: 24px;             /* {{TODO: 要素間}} */
  --space-inline: 16px;         /* {{TODO: コンテンツ左右}} */

  /* 角丸・影 */
  --radius-md: 8px;             /* {{TODO}} */
  --radius-btn: 9999px;         /* ボタン角丸（ピル / Figma 30.694px → pill） */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08); /* {{TODO}} */

  /* 記事サムネ共通の角カット（FV左サムネ基準。上の左右角を斜めにカット）。全サムネで参照 */
  --cutout-size: 1.125rem;
  --thumb-clip: polygon(var(--cutout-size) 0%, calc(100% - var(--cutout-size)) 0%, 100% var(--cutout-size), 100% 100%, 100% 100%, 0% 100%, 0% 100%, 0% var(--cutout-size));
}

/* =========================================================================
   ベース調整（Cocoon 設定で届かない差分だけ。まず Cocoon 設定で再現を試みる）
   下記は例。必要なものだけコメントを外す。
   ========================================================================= */
/*
a {
  color: var(--color-cta);
}
.entry-content h2 {
  font-family: var(--font-heading);
}
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く（:root のトークンを var() で参照する）*/

/* =========================================================================
   コンポーネント: ボタン（既存サイト Figma 踏襲: 234:2938 塗り / 632:1207 アウトライン）
   使い方:
     <a class="c-btn c-btn--primary" href="#">詳細はこちら</a>
     <a class="c-btn c-btn--outline" href="#">お知らせ一覧</a>
   ブロックエディタのボタンは「追加CSSクラス」に `c-btn c-btn--primary` を指定。
   ========================================================================= */
.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 64px;            /* Figma プライマリの左右余白(約65px/幅237px)に合わせる。右側に矢印スペースを確保 */
  border-radius: var(--radius-btn);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;       /* 0.68px @17px */
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.c-btn::after {                 /* 右向き矢印（currentColor で文字色に追従） */
  /* Figma 234:2941 / 632:1210 の実ベクターを踏襲（横線＋右先端の斜線1本のミニマル矢印 / 約15×6px・細線） */
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;                  /* Figma: ボタン右端から約20px */
  width: 15px;
  height: 6.4px;                /* viewBox 15.9887×6.79711 のアスペクト比に合わせる */
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.9887 6.79711'%3E%3Cpath d='M0 6.29711H15.0113L10.6779 0.292603' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.9887 6.79711'%3E%3Cpath d='M0 6.29711H15.0113L10.6779 0.292603' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.c-btn:hover {
  opacity: .85;
}
/* 塗り（プライマリ / CTA） */
.c-btn.c-btn--primary {
  background-color: var(--color-btn);
  color: var(--color-btn-text);
}
/* アウトライン（セカンダリ） */
.c-btn.c-btn--outline {
  background-color: transparent;
  border: 1.5px solid var(--color-btn-outline);
  color: var(--color-btn-outline-text);
}

/* =========================================================================
   コンポーネント: 記事一覧カード（既存サイト Figma 踏襲: /blog 836:11556 リスト型）
   Cocoon「エントリーカード（デフォルト）」= サムネ左の横型カードに CSS で寄せる。
   - Figma順: [日付(Roboto) + カテゴリpill] → タイトル → 抜粋(2行省略)。区切りは下ボーダー。
   - DOMはCocoonのまま（title→snippet→meta）。flex order でメタを最上段へ並べ替え。
   - 対象: index / category / author / tag 等のエントリーカード一覧（.ect-entry-card 配下）。
   ========================================================================= */
/* カードをフラット化（背景・影・枠を除去 → 下ボーダーの区切りに） */
.ect-entry-card .entry-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  border-bottom: 0.5px solid var(--color-text); /* Figma #282828 0.5px */
  border-radius: 0;
  padding: 0 0 18px;            /* Figma カード下 18px */
  margin-bottom: 15px;         /* Figma カード間 15px */
}
.ect-entry-card .entry-card-wrap:hover {
  background: transparent;
  box-shadow: none;
}
/* カード内: サムネ左 + 本文（gap24・上下中央） */
.ect-entry-card .entry-card {
  display: flex;
  align-items: center;
  gap: 24px;
}
/* サムネイル: 115×115 正方（no-image 640×360 も cover でトリミング） */
.ect-entry-card .entry-card-thumb {
  flex: 0 0 115px;
  width: 115px;
  height: 115px;
  margin: 0;
  overflow: hidden;
}
.ect-entry-card .entry-card-thumb-image,
.ect-entry-card .entry-card-thumb img {
  width: 115px;
  height: 115px;
  object-fit: cover;
}
/* 全記事サムネを FV左サムネと同じ角カットに統一（一覧/関連/人気/新着 等のCocoonカード・no-image含む）。小サムネのため角カットは小さめ */
.entry-card-thumb-image,
.entry-card-thumb img,
.card-thumb-image { --cutout-size: .5625rem; clip-path: var(--thumb-clip); }
/* サムネ上のカテゴリラベルは非表示（Figmaはタグを本文側の上段に置く） */
.ect-entry-card .entry-card-thumb .cat-label {
  display: none;
}
/* 本文: 縦並び + Figma順に並べ替え（メタ→タイトル→抜粋） */
.ect-entry-card .entry-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding-bottom: 0;          /* Cocoon既定の padding-bottom:1.2em（メタ絶対配置用）を解除 */
}
.ect-entry-card .entry-card-meta {  /* 日付+カテゴリ = 最上段へ */
  order: 1;
  position: static;           /* Cocoon既定 position:absolute(bottom/right) を解除 */
  bottom: auto;
  right: auto;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;                   /* Figma 日付→タグ 15px */
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1.4;
  font-size: inherit;
}
/* Cocoon既定で非表示の「メタ内カテゴリ」を表示（Figmaは赤pillを日付の右に置く） */
.ect-entry-card .entry-card-meta .entry-card-categorys {
  display: inline-flex;
}
.ect-entry-card .entry-card-title {
  order: 2;
  margin: 4px 0 0;             /* Figma メタ→タイトル 4px */
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}
.ect-entry-card .entry-card-snippet {
  order: 3;
  margin: 8px 0 0;            /* Figma タイトル→抜粋 8px */
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* メタ内: 日付（Roboto Bold）+ カテゴリ（赤pill） */
.ect-entry-card .entry-card-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
}
.ect-entry-card .post-date {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}
.ect-entry-card .post-date .fa { display: none; } /* 時計アイコン非表示 */
.ect-entry-card .entry-card-categorys { margin: 0; }
.ect-entry-card .entry-card-categorys .entry-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cat);
  color: var(--color-cat-text);
  border-radius: 100px;
  padding: 2px 10px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: var(--tracking-base);
}
.ect-entry-card .entry-card-categorys .entry-category::before { content: none; } /* Cocoonの既定アイコン除去 */

/* =========================================================================
   コンポーネント: カテゴリ見出し（赤帯）（Figma /blog ヒーロー 847:9003）
   Cocoon のアーカイブ見出し #archive-title を赤帯化。赤 #ee1c24・右下角丸100px・
   白 Noto Black 39px 中央。※フルブリード(全幅)は「1カラム表示」前提（サイドバー無し）。
   車の装飾画像は任意（未実装。必要なら背景画像で追加）。
   ========================================================================= */
#archive-title.archive-title {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 var(--space-section);
  margin-left: calc(50% - 50vw);   /* フルブリード（1カラム時に全幅） */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;               /* Figma 280px相当（車画像なしのため微調整） */
  padding: 24px 16px;
  background: var(--color-main);
  border: none;
  border-bottom-right-radius: 100px;
  color: #fff;
  font-family: var(--font-base);
  font-weight: 900;                /* Noto Sans JP Black */
  font-size: 39px;
  line-height: 1.3;
  letter-spacing: var(--tracking-base);
  text-align: center;
}
#archive-title.archive-title .fa { display: none; } /* フォルダアイコン非表示 */

/* =========================================================================
   コンポーネント: ページャー（Figma /blog 836:11628）
   33×33の枠ボックス。現在ページ=赤背景+白数字 / 他=薄枠 / 数字=Roboto Bold Italic 20px。
   Cocoon の .pagination .page-numbers（WP標準）に当てる。
   ========================================================================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: var(--space-section) 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 33px;
  height: 33px;
  margin: 0;
  padding: 0 4px;
  background: #fff;
  border: 0.5px solid rgba(40, 40, 40, 0.1); /* Figma 枠色 */
  border-radius: 0;
  font-family: var(--font-en);     /* Roboto */
  font-weight: 700;
  font-style: italic;              /* Figma: Bold Italic */
  font-size: 20px;
  line-height: 1;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
  text-decoration: none;
}
.pagination a.page-numbers:hover {
  background: rgba(238, 28, 36, 0.08);
}
.pagination .page-numbers.current { /* 現在ページ = 赤背景・白数字・枠なし */
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}
.pagination .page-numbers.next,
.pagination .page-numbers.prev {     /* 前後の矢印 = 赤 */
  color: var(--color-main);
}

/* =========================================================================
   ページ: 記事詳細（single）（Figma /blog/[記事名] 836:11660）
   Cocoon single.php + 投稿設定 + .entry-content への子テーマCSS で踏襲（テンプレ上書きなし）。
   本文字間は --tracking-wide(0.07em)、タイトル/メタは --tracking-base(0.05em)。
   ========================================================================= */

/* --- 記事ヘッダー: メタ(日付)を上・タイトルを下に並べ替え --- */
.single .article-header.entry-header {
  display: flex;
  flex-direction: column;
}
.single .article-header .date-tags {
  order: 1;
  display: block;
  margin: 0 0 16px;
  text-align: left;            /* Cocoon既定の右寄せを解除（Figmaは左） */
  float: none;
}
.single .article-header .entry-title {
  order: 2;
  margin: 0;
  font-family: var(--font-base);
  font-weight: 500;              /* Noto Medium（Figma） */
  font-size: 28px;
  line-height: 1.6;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}
.single .article-header .eye-catch-wrap { order: 3; margin-top: 24px; }
.single .date-tags .post-date,
.single .date-tags .entry-date {
  font-family: var(--font-en);   /* 日付 = Roboto Bold 14px */
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}
.single .date-tags .post-date .fa { display: none; } /* 時計アイコン非表示 */

/* --- 本文 .entry-content の基本タイポ --- */
.entry-content {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}
.entry-content p { letter-spacing: var(--tracking-wide); }

/* h2: Medium 24px + 下ボーダー（Cocoonの背景ボックスを解除） */
.entry-content h2 {
  margin: 2.5em 0 1em;
  padding: 6px 0;
  scroll-margin-top: 90px;   /* 固定ヘッダー分: 目次クリック時に見出しが隠れないオフセット */
  background: none;
  border: none;
  border-bottom: 2px solid var(--color-cta);   /* 赤の下線（サイトの赤アクセントに統一） */
  border-radius: 0;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}
.entry-content h2::before, .entry-content h2::after { content: none; }

/* h3: Medium 18px + 左の赤い縦線アクセント */
.entry-content h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-margin-top: 90px;
  margin: 2em 0 0.8em;
  padding: 4px 0;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}
.entry-content h3::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 22px;
  background: var(--color-cta);  /* 赤の縦線（サイトの赤アクセントに統一） */
}
.entry-content h3::after { content: none; }

/* h4: 赤の小さな角丸マーカー */
.entry-content h4 {
  position: relative;
  scroll-margin-top: 90px;
  margin: 1.8em 0 0.6em;
  padding-left: 16px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}
.entry-content h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--color-cta);
}

/* リスト: 赤丸マーカー */
.entry-content ul {
  list-style: none;
  padding-left: 1.4em;
}
.entry-content ul > li {
  position: relative;
  letter-spacing: var(--tracking-wide);
}
.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
}

/* テーブル: ヘッダ赤 / 本文白 / 枠 #282828 0.5px / 中央 */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
}
.entry-content table th,
.entry-content table td {
  border: 0.5px solid var(--color-text);
  padding: 14px 15px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-base);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}
.entry-content table th {
  background: var(--color-main);
  color: #fff;
  font-size: 18px;
}
.entry-content table td {
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
}

/* --- 目次（もくじ）: 開閉アコーディオン（Cocoonの toc-checkbox トグルを利用）--- */
.toc {
  display: block;
  width: 100%;
  max-width: none;
  background: rgba(40, 40, 40, 0.06);
  border: none;
  border-radius: 0;
  padding: 22px 28px;
  font-size: 16px;
}
/* タイトル行＝クリックで開閉（label）。右端に▼の矢印インジケータ */
.toc .toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}
.toc .toc-title::after {   /* Cocoon既定の[開く]/[閉じる]テキストを矢印に置換 */
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-text-sub);
  border-bottom: 2px solid var(--color-text-sub);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.toc .toc-checkbox:checked + .toc-title::after { content: ""; transform: rotate(-135deg); }   /* Cocoonの'[閉じる]'テキストを打ち消し、矢印のみに */

/* 目次リスト: 階層番号（1 / 1-1 / 1-1-1・赤）＋インデント。Cocoon既定の番号(リセット式)は解除 */
.toc .toc-list, .toc .toc-list ol { list-style: none; margin: 0; padding: 0; }
.toc .toc-list { counter-reset: t1; }
.toc .toc-list > li { counter-increment: t1; counter-reset: t2; border-top: 1px solid var(--color-border); }
.toc .toc-list > li:first-child { border-top: 0; }
.toc .toc-list > li > ol > li { counter-increment: t2; counter-reset: t3; }
.toc .toc-list > li > ol > li > ol > li { counter-increment: t3; }
.toc .toc-list a {
  display: flex; align-items: baseline; gap: 8px; padding: 9px 0;
  text-decoration: none; color: var(--color-text);
  letter-spacing: var(--tracking-wide); line-height: 1.5; transition: color .2s ease;
}
.toc .toc-list a:hover { color: var(--color-main); }
.toc .toc-list a::before { flex: 0 0 auto; color: var(--color-cta); font-family: var(--font-en); font-weight: 700; font-size: .92em; }
.toc .toc-list > li > a { font-weight: 700; font-size: 16px; }                                  /* h2 */
.toc .toc-list > li > a::before { content: counter(t1) "."; }
.toc .toc-list > li > ol > li > a { font-weight: 500; font-size: 14px; padding-left: 22px; }     /* h3 */
.toc .toc-list > li > ol > li > a::before { content: counter(t1) "-" counter(t2); }
.toc .toc-list > li > ol > li > ol > li > a { font-weight: 400; font-size: 13px; padding-left: 44px; color: var(--color-text-sub); }  /* h4 */
.toc .toc-list > li > ol > li > ol > li > a::before { content: counter(t1) "-" counter(t2) "-" counter(t3); }

/* --- 記事一覧へ戻るボタン（.c-btn--back: 左矢印・橙・大きめ・影）---
   使い方: ブロックボタンの「追加CSSクラス」に c-btn c-btn--back / 文言「記事一覧へ戻る」 */
.c-btn.c-btn--back {
  background-color: var(--color-btn);
  color: var(--color-btn-text);
  font-size: 20px;
  padding: 18px 40px 18px 60px;   /* 左に矢印スペース */
  box-shadow: 2px 5px 15px rgba(40, 40, 40, 0.15);
}
.c-btn.c-btn--back::after { content: none; }   /* 既定の右矢印を消す */
.c-btn.c-btn--back::before {                    /* 左向き矢印（右矢印ベクターを反転） */
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 22px;
  height: 9px;
  transform: translateY(-50%) scaleX(-1);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.9887 6.79711'%3E%3Cpath d='M0 6.29711H15.0113L10.6779 0.292603' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.9887 6.79711'%3E%3Cpath d='M0 6.29711H15.0113L10.6779 0.292603' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =========================================================================
   コンポーネント: ヘッダー（Figma PCヘッダー 618:5375）
   白バー73px / 左ロゴ / 右にテキストナビ（Noto Medium 15px・項目間25px）+ お問い合わせ赤pill。
   Cocoon設定>ヘッダー（トップメニュー右）+ 外観>メニュー + 子テーマCSS で踏襲（テンプレ上書きなし）。
   ロゴは Cocoon設定>ヘッダーロゴ で画像をアップロード（テキストロゴと差し替え）。
   ========================================================================= */
.header-container,
.header-container-in,
.header,
.navi { background-color: var(--color-bg); }   /* 白背景 */

/* ヘッダー追従（sticky）。スクロールしても上部に固定。ドロワー/検索ポップアップ(z-index:9999)より下、本文より上 */
#header-container { position: sticky; top: 0; z-index: 900; }

.header-container-in.hlt-top-menu {
  min-height: 73px;
  align-items: center;
}
/* ロゴ高さ ~47px（Figma）。hlt-tm-small の 40px 上限を上書き */
.header-container-in.hlt-top-menu .logo-header,
.header-container-in.hlt-top-menu.hlt-tm-small .logo-header { max-height: 48px; }
.header-container-in.hlt-top-menu .logo-header img,
.header-container-in.hlt-top-menu.hlt-tm-small .logo-header img { max-height: 48px; }

/* グローバルナビ: Cocoon既定の固定ブロックを解除 → 青テキスト＋ドット区切り（参考ヘッダー踏襲） */
.navi-in > ul {
  gap: 0;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.navi-in > ul li {
  width: auto;
  height: auto;
}
.navi-in > ul > li { display: flex; align-items: center; }
.navi-in > ul > li:not(:first-child)::before {   /* 項目間のドット区切り */
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-cta);
  opacity: .5;
  margin: 0 18px;
}
.navi-in > ul .caption-wrap { width: auto; }
.navi-in > ul li a {
  height: auto;
  padding: 0 0 4px;                       /* 下線とテキストの余白 */
  background: none;
  border-bottom: 2px solid transparent;   /* ホバー下線の予約（レイアウトシフト防止） */
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  letter-spacing: var(--tracking-base);
  color: var(--color-nav-text);          /* #333 */
  transition: border-color .2s ease;
}
.navi-in > ul li a:hover { background: none; border-bottom-color: var(--color-cta); }  /* ホバーで下ボーダー（ブランド赤） */

/* お問い合わせ: 参考ヘッダーに合わせ赤pillを解除し青テキストに統一（CTAを戻す場合は要連絡） */
.navi-in > ul li.header-cta a {
  padding: 0 0 4px;
  border-radius: 0;
  background: none;
  color: var(--color-nav-text);          /* #333（お問い合わせも他のナビ項目と同色） */
  font-weight: 700;
}
.navi-in > ul li.header-cta a:hover { background: none; border-bottom-color: var(--color-cta); }

/* === ヘッダー: レスポンシブ用ハンバーガー（≤1023pxで表示。ロゴ右） === */
.theme-hamburger {                         /* 既定（PC）は非表示。表示はメディアクエリで */
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: none; border: none; cursor: pointer; flex: 0 0 auto;
}
.theme-hamburger__bars { position: relative; width: 26px; height: 2px; background: var(--color-text); border-radius: 2px; }
.theme-hamburger__bars::before,
.theme-hamburger__bars::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px;
  background: var(--color-text); border-radius: 2px;
}
.theme-hamburger__bars::before { top: -8px; }
.theme-hamburger__bars::after { top: 8px; }

/* === ハンバーガードロワー中身（サイトデザイン踏襲: ブランド赤＋:rootトークン） === */
#navi-menu-content.navi-menu-content {
  max-width: 320px;
  background: var(--color-bg);
  padding-top: 60px;                       /* 上部: 閉じるボタン帯の余白 */
  border-right: 3px solid var(--color-cta);/* 右端にブランド赤のアクセント */
}
#navi-menu-content .navi-menu-close-button {  /* 閉じる×を右上に・赤 */
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 22px; color: var(--color-cta);
}
#navi-menu-content .menu-drawer { padding: 0 22px 40px; }
#navi-menu-content .menu-drawer li { display: block; border-bottom: 1px solid var(--color-border); }
#navi-menu-content .menu-drawer a {
  display: flex; align-items: center; gap: 10px; padding: 16px 4px;
  font-family: var(--font-base); font-weight: 700; font-size: 16px;
  letter-spacing: var(--tracking-base); color: var(--color-text); text-decoration: none;
}
#navi-menu-content .menu-drawer a::before {  /* 各項目の頭にブランド赤のドット（フッターナビと同作法） */
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-cta);
}
#navi-menu-content .menu-drawer a:hover {    /* ホバーは淡赤パネル＋赤文字（カテゴリードロップダウン踏襲） */
  background: var(--color-cta-soft); color: var(--color-cta);
}
/* ヘッダーのカテゴリードロップダウン(No.8)・検索ポップアップ(No.9)は撤去（2026-08-26 修正指示）。
   関連CSS（.cat-dropdown / .hsp__* / .header-search-popup）も併せて削除済み。 */

/* =========================================================================
   ページ: 私たちについて（固定ページ /about）（参考: Aboutページ画像）
   構成: 各セクション=[英語ラベル＋日本語見出し] → 企業理念（キャッチ＋本文）/ ブランドバナー / 運営会社表。
   ※メンバーセクションは 2026-08-26 修正指示 No.14 で削除（関連CSS .member-* も撤去）。
   固定ページ本文に .p-about のHTMLを入れCSSで踏襲（テンプレ上書きなし）。1カラム表示。
   ========================================================================= */
/* 全幅1カラム化は全ページ共通ルール（後述の「全ページ共通で全幅1カラム化」）に統合。
   ここには About 固有の非表示のみ残す。 */
/* Cocoonの自動チェイン（ページタイトルh1 / 日付 / 自動目次）を非表示（参考デザインに無い） */
.p-about-page .article-header .entry-title,
.p-about-page .date-tags,
.p-about-page .toc { display: none; }
/* 固定ページの著者情報（記事下の「✎ ユーザー名」）を非表示。
   固定ページは執筆者を出す意味がないため。投稿（記事詳細）では従来どおり表示する。 */
body.page .footer-meta { display: none; }

/* 左右20pxの余白（本文が画面端に接するのを防ぐ）。
   内側の最大幅を従来どおり920pxに保つため、max-width は左右パディング分を足した値にする */
.p-about { max-width: 960px; margin: 0 auto; padding: 8px 20px 24px; }
.p-about .about-section { margin-bottom: 120px; }   /* セクション間マージン 120px */
.p-about .about-section:last-child { margin-bottom: 0; }

/* セクション見出し（英語ラベル＋日本語見出し・中央） */
/* ※ .p-about で詳細度を上げ、記事用の .entry-content h2/p（下線・余白・24px）を打ち消す */
.p-about .about-section__label {       /* 赤ドット + 赤い英語ラベル（左寄せ）Figma 907:1272 */
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 27px;                    /* 英語ラベル↔日本語見出しの間 27px（見出し側は上マージン0） */
  text-align: left;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-cta);             /* #c8102e */
}
.p-about .about-section__label::before {  /* 10px の赤い丸 */
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cta);
}
.p-about .about-section__heading {     /* 大見出し。.entry-content h2 の下線/背景/上下余白/24px を打ち消す */
  margin: 0 0 36px;                    /* 上マージン0（=間隔はラベルの下27pxで確定）/ 下36px */
  padding: 0;
  border: none;                        /* タイトル下の下線を削除 */
  background: none;
  text-align: left;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 35px;                     /* 日本語見出し 35px */
  line-height: 1.45;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}

/* 導入文 */
.p-about__lead { max-width: 760px; margin: 0; }   /* 左寄せ見出しに合わせ左揃え */
.p-about__lead p {
  margin: 0 0 1.6em;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}

/* 企業理念のキャッチコピー（No.17 冒頭の一文） */
.p-about__catch {
  margin: 0 0 32px;
  font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.7;
  letter-spacing: var(--tracking-base); color: var(--color-main);
}
/* 代表者の署名（本文末） */
.p-about__sign {
  margin-top: 40px; text-align: right;
  font-family: var(--font-base); font-weight: 700; font-size: 14px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}

/* ブランドバナー（No.18: 各ブランドサイトへ遷移。ショートコード [smile_brand_banners]）
   画像未設定の間はロゴ＋テキストの代替バナーを表示する */
.brand-banners { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
/* 固定ページ本文（.entry-content）の ul は赤丸マーカー(::before)が付く指定になっているため、
   バナー用のリストでは打ち消す。左インデント(padding-left:1.4em)も同時に解除する。
   ※ .p-about で詳細度を上げて .entry-content ul > li::before に勝たせる */
.p-about .brand-banners,
.entry-content .brand-banners { padding-left: 0; }
.p-about .brand-banners > li::before,
.entry-content .brand-banners > li::before { content: none; }
.brand-banner { min-width: 0; position: static; }
.brand-banner--cars  { --color-brand: var(--color-brand-cars); }
.brand-banner--truck { --color-brand: var(--color-brand-truck); }
.brand-banner__link {
  display: block; overflow: hidden; text-decoration: none;
  border-radius: var(--radius-md);
  transition: box-shadow .2s ease, transform .2s ease;
}
.brand-banner__link:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.brand-banner__link picture { display: block; }
.brand-banner__img { display: block; width: 100%; height: auto; }
/* 画像未設定時の代替バナーだけ枠線を持たせる（実バナーは画像側にデザインがあるため枠なし） */
.brand-banner__fallback {
  display: flex; align-items: center; gap: 18px; padding: 28px 24px;
  background: var(--color-bg);
  border: 2px solid var(--color-brand); border-radius: var(--radius-md);
}
.brand-banner__logo { display: block; width: auto; height: 40px; flex: 0 0 auto; }
.brand-banner__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-banner__text strong {
  font-family: var(--font-base); font-weight: 700; font-size: 16px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}
.brand-banner__text small {
  font-family: var(--font-base); font-size: 12px;
  letter-spacing: var(--tracking-base); color: var(--color-brand);
}

/* 運営会社テーブル（dt/dd 行・区切り線） */
.company-table { max-width: 760px; margin: 0; }   /* 左揃え */
.company-table__row {
  display: flex;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--color-border);
}
.company-table__row:first-child { border-top: 1px solid var(--color-border); }
/* 電話番号: スマホでタップ発信。
   ・押せることが分かるようブランド赤の下線を常時表示（FAX等のただの数字と区別する）
   ・上下パディングでタップ領域を確保（指で押しやすい高さにする）
   ・数字は等幅で読み違いを防ぐ */
.company-table__tel {
  display: inline-block;
  padding: 6px 2px;
  margin: -6px -2px;                    /* 行の高さを変えないよう相殺 */
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-main);
  font-variant-numeric: tabular-nums;
  transition: color .2s ease, background-color .2s ease;
}
.company-table__tel:hover,
.company-table__tel:focus-visible { color: var(--color-main); }
.company-table__row dt {
  flex: 0 0 120px;
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}
.company-table__row dd {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: var(--tracking-base);
  color: var(--color-text);
}

/* =========================================================================
   ページ: TOP（front-page.php / 雑誌型ホーム）
   メインビジュアル / 最新情報（リード＋スライダー＋最新記事）/ ブランド別の最新記事。
   配色は smile-cars（赤＋ニュートラル）。※Ranking・Trending Tags は 2026-08-26 修正指示 No.3/No.4 で削除。
   ========================================================================= */
/* 全ページ共通で全幅1カラム化（サイドバー非表示・#content-in.wrap の max-width 解除・main 全幅）。
   ユーザー指定: content-in.wrap を全ページで上書き（TOP / 一覧 / アーカイブ / 検索 / 記事詳細 / 固定ページ / 404 すべて）。
   各ページの内側幅は .section-inner（1340px）/ .p-about（920px）等で個別に決める。 */
.sidebar { display: none; }
#main, .main { width: 100%; margin: 0; padding: 0; }   /* 親 .main の padding:36px 29px を上下左右とも解除 */
/* TOP以外のページは main に上下余白（旧 .p-archive の padding を集約）。TOPは front-top-page で除外 */
body:not(.front-top-page) #main { padding: 40px 0 88px; }
#content-in.wrap { max-width: none; width: auto; margin: 0; padding: 0; }
#content { margin: 0; }

/* 記事詳細: 本文(左) ＋ サイドバー(右) の2カラム。
   レイアウトは <main> 配下のラッパー .single-layout で組む（main / #content-in.wrap には触れない）。
   本文幅は左カラム minmax(0,1fr) が決める。 */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1160px; margin: 0 auto; padding: 0 24px; align-items: start; }
.single-layout__main { min-width: 0; }

/* パンくずリスト: 全ページ上部に統一配置し、そこから 70px のマージンでコンテンツを配置 */
.p-crumb { margin: 0 0 70px; }
.p-crumb--wide { max-width: 1160px; margin-left: auto; margin-right: auto; padding: 0 24px; }   /* 記事詳細/固定ページ: .single-layout と同幅で中央 */
/* 自前パンくず（schema.org）。Cocoon標準に依存せず全ページ同一表示 */
.c-breadcrumb__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none;
  font-family: var(--font-base); font-size: 12px; letter-spacing: var(--tracking-base); color: var(--color-text-sub);
}
.c-breadcrumb__item { display: inline-flex; align-items: center; }
.c-breadcrumb__item:not(:first-child)::before { content: "›"; margin: 0 10px; color: var(--color-text-sub); }
.c-breadcrumb__item a { color: var(--color-text-sub); text-decoration: none; }
.c-breadcrumb__item a:hover { color: var(--color-main); text-decoration: underline; }
.c-breadcrumb__item:last-child span { color: var(--color-text); }

/* 記事詳細サイドバー（人気記事 / 最新記事 各3件） */
.p-side + .p-side { margin-top: 40px; }
.p-side__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-base); font-weight: 700; font-size: 18px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}
.p-side__title::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--color-main); }
.p-side__list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.p-side__item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
.p-side__thumb {
  display: block; width: 88px; aspect-ratio: 1 / 1; object-fit: cover;
  --cutout-size: .5625rem; clip-path: var(--thumb-clip); background: #e6e8ec;
}
.p-side__body { min-width: 0; }
.p-side__item-title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 14px; line-height: 1.5;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-side__item-title a { color: inherit; text-decoration: none; }
.p-side__item-title a:hover { text-decoration: underline; }
.p-side__body .c-date { margin-top: 6px; }

.p-top { color: var(--color-text); }

/* ---- メインビジュアル（No.1: 1440×700px。設定 > サイト表示記事 で画像を指定）---- */
.mv { margin-bottom: 56px; }
.mv__inner { width: 100%; max-width: 1440px; margin: 0 auto; }
.mv__inner picture { display: block; }
/* PC/SPで縦横比が異なるため比率はCSSで固定せず、img/source の width・height 属性に委ねる
   （属性があればブラウザが読込前から高さを確保するのでCLSは出ない） */
.mv__img { display: block; width: 100%; height: auto; }
.mv__ph {                            /* 画像未設定時のプレースホルダー */
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1440 / 700;
  background: var(--color-noimg-bg);
}
.mv__ph-text {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: .18em;
  color: var(--color-text-sub);
}
.mv__ph-text small { font-size: 12px; letter-spacing: .12em; }
.section-inner { width: 1340px; margin: 0 auto; /* padding: 0 24px; */ max-width: 90%; }
.section-soft { background: var(--color-bg-soft); padding: 60px 0; }

/* セクション見出し（英語＋日本語） */
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.section-head__en {
  margin: 0; font-family: var(--font-en); font-weight: 700; font-size: 26px;
  letter-spacing: 0.02em; color: var(--color-main);
}
.section-head__ja {
  margin: 0; font-family: var(--font-base); font-weight: 500; font-size: 13px;
  letter-spacing: var(--tracking-base); color: var(--color-text-sub);
}

/* 小タグpill（カード内） */
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.c-tags__item {
  padding: 3px 11px; border-radius: 100px; background: var(--color-tag-bg);   /* タグ #1A4CA7 */
  font-family: var(--font-base); font-weight: 700; font-size: 11px; line-height: 1.6;
  letter-spacing: var(--tracking-base); color: #fff;
}
/* 共通: プレースホルダーのサムネ（グレー面） */
/* TOPページ（最新情報セクション）のアイキャッチ未設定時も、カードと同じ2ロゴダミー */
.is-ph .topics-lead__visual, .is-ph .topics-card__thumb, .is-ph .topics-item__thumb {
  display: block;
  background-color: var(--color-noimg-bg);
  background-image: url(images/logo-cars.png), url(images/logo-truck.png);
  background-repeat: no-repeat, no-repeat;
  background-position: center 36%, center 67%;
  background-size: auto 24%, auto 24%;
}
.p-top a { text-decoration: none; color: inherit; }

/* ---- 最新情報（旧FV。クラス名は topics-* ）---- */
.topics { padding: 0; }
.topics__inner { display: grid; grid-template-columns: 880px minmax(0, 1fr); gap: 30px; }   /* topics__main を 880px に（側は残り幅） */
.topics__main { min-width: 0; }

/* 共通: カテゴリ / 日付 / リードノート */
.c-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-base); font-weight: 700; font-size: 12px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}
.c-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand, var(--color-main)); }
.c-cat--cars  { --color-brand: var(--color-brand-cars); }
.c-cat--truck { --color-brand: var(--color-brand-truck); }
.p-top a.c-cat { color: var(--color-text); text-decoration: none; }
.p-top a.c-cat:hover { text-decoration: underline; }
.c-date {
  display: block; margin-top: 10px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: var(--tracking-base); color: var(--color-text-sub);
}
.c-lead-note { margin: 8px 0 0; font-size: 12px; color: var(--color-text-sub); letter-spacing: var(--tracking-base); }

/* リード（左ビジュアル + 右記事） */
.topics-lead { display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 28px; align-items: start; }
.topics-lead__visual {
  display: block; width: 540px; max-width: 100%; aspect-ratio: 16 / 9;
  clip-path: var(--thumb-clip);
  background: #d8dbe0;
}
.topics-lead__body { min-width: 0; }
.topics-lead__body .c-cat { margin-bottom: 10px; }
.topics-lead__title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 20px; line-height: 1.5;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}
.topics-lead__body .c-tags { margin-top: 14px; }

/* スライダー（カード + 左右矢印。JSで translateX 送り → 無限ループ） */
.topics-slider {                             /* リードとスライダーの間に横線。線と各要素の距離は上下25px */
  position: relative; margin-top: 25px; padding-top: 25px;
  border-top: 1px solid var(--color-border);
}
.topics-cards { overflow: hidden; }                         /* ビューポート（はみ出しをクリップ） */
.topics-cards__track {
  display: flex; gap: 28px;
  transition: transform .5s ease;                       /* スライド送りアニメ */
  will-change: transform;
}
.topics-card { flex: 0 0 426px; min-width: 0; position: relative; }   /* 426×2 + gap28 = 880（2枚ぴったり） */
.topics-card + .topics-card::before {            /* スライド間の縦線（gap28の中央。幅計算は変えない） */
  content: ""; position: absolute; top: 0; bottom: 0; left: -14px;
  width: 1px; background: var(--color-border);
}
/* 動きを抑える設定では送りアニメを無効化（自動再生もJS側でオフ） */
@media (prefers-reduced-motion: reduce) {
  .topics-cards__track { transition: none; }
}
.topics-card__thumb {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  clip-path: var(--thumb-clip);
  overflow: hidden;
}
.topics-card__thumb img, .topics-item__thumb img, .topics-lead__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topics-card__new {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px;
  background: var(--color-main); color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: 0.04em;
}
.topics-card__body { padding-top: 12px; }
.topics-card__body .c-cat { margin-bottom: 8px; }
.topics-card__title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 15px; line-height: 1.5;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topics-card__body .c-tags { margin-top: 8px; }
/* 矢印 */
.topics-slider__arrow {
  position: absolute; top: var(--topics-arrow-y, 140px); transform: translateY(-50%);   /* サムネ画像の上下中央（JSが実測しCSS変数で渡す） */
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #fff; box-shadow: 0 2px 10px rgba(40, 40, 40, 0.15);
  color: var(--color-text); font-size: 18px; cursor: pointer; z-index: 2;
}
.topics-slider__arrow--prev { left: -16px; }
.topics-slider__arrow--next { right: -16px; }
.topics-slider__arrow:hover { opacity: .85; }

/* コントロール（ドット + 一時停止） */
.topics__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.topics__dots { display: flex; gap: 8px; }
.topics__dots span { width: 8px; height: 8px; border-radius: 50%; background: #d4d8de; }
.topics__dots .is-current { background: var(--color-main); }
.topics__pause { display: inline-flex; padding: 0; border: none; background: none; color: var(--color-text-sub); font-size: 13px; cursor: pointer; }

/* 最新記事（右サイド・縦型リスト） */
.topics__side {
  padding-left: 25px;
  border-left: 1px solid var(--color-cta);   /* #C8102E */
}
.topics__side-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 25px; padding: 12px 0; font-family: var(--font-base); font-weight: 700; font-size: 16px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  border-top: 2px solid var(--color-cta);            /* 上: 赤線 #C8102E */
  border-bottom: 1px solid var(--color-border);      /* 下: 記事間の横線と同色 #e5e5e5 */
}
.topics__side-title::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--color-main); } /* ◆ */
.topics-list { display: flex; flex-direction: column; gap: 0; }
.topics-item + .topics-item {                          /* 投稿間に横線。線と各投稿の間は上下とも25px */
  margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--color-border);
}
.topics-item {                                  /* 横並び: サムネ30.6% + 本文1fr */
  display: grid;
  grid-template-columns: 124px 1fr;
  grid-column: 1 / 3;
  grid-row: 1 / 5;
  grid-column-gap: 1.125rem;
  column-gap: 1.125rem;
  grid-row-gap: 0;
  row-gap: 0;
  align-items: start;
}
.topics-item__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; --cutout-size: .5625rem; clip-path: var(--thumb-clip); background: #e6e8ec; }   /* 小サムネは角カット小さめ */
.topics-item__body { padding-top: 0; min-width: 0; }
.topics-item__body .c-tags { margin-top: 0; }
.topics-item__title {
  margin: 8px 0 0; font-family: var(--font-base); font-weight: 700; font-size: 14px; line-height: 1.55;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- ブランド別の最新記事（No.3: 旧 Ranking の位置。カーズ / トラックを左右に並べる）---- */
.brand-latest {
  background: #fff2f2;
  border-top: 2px solid var(--color-cta);
  border-bottom: 2px solid var(--color-cta);
  padding: 100px 0;
  margin-top: 100px;
}
.brand-latest .section-head {
  padding-bottom: 50px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 50px;
}
.brand-latest__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; position: relative; }
.brand-latest__grid::before {            /* 2カラムの間の縦線（gap56の中央） */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px);
  width: 1px; background: var(--color-border);
}
.brand-col { min-width: 0; }
.brand-col__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--color-brand); }
.brand-col--cars  { --color-brand: var(--color-brand-cars); }
.brand-col--truck { --color-brand: var(--color-brand-truck); }
.brand-col__logo { display: block; width: auto; height: 34px; }
.brand-col__title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 16px;
  letter-spacing: var(--tracking-base); color: var(--color-text);
}
.brand-list { margin: 0; padding: 0; list-style: none; }
.brand-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.brand-item__thumb { display: block; }
.brand-item__img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  --cutout-size: .5625rem; clip-path: var(--thumb-clip); background: var(--color-noimg-bg);
}
.brand-item__img--noimg {                /* アイキャッチ未設定時: 一覧カードと同じダミー */
  background-color: var(--color-noimg-bg);
  background-image: url(images/logo-cars.png), url(images/logo-truck.png);
  background-repeat: no-repeat, no-repeat;
  background-position: center 36%, center 67%;
  background-size: auto 24%, auto 24%;
}
.brand-item__body { min-width: 0; }
.brand-item__title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 15px; line-height: 1.55;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.brand-col__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--font-base); font-weight: 700; font-size: 14px;
  letter-spacing: var(--tracking-base); color: var(--color-brand);
}
.p-top .brand-col__more { color: var(--color-brand); }   /* .p-top a の inherit を上書き */
.brand-col__more::after { content: "›"; font-size: 18px; line-height: 1; }
.brand-col__more:hover { text-decoration: underline; }
.brand-col__empty { margin: 22px 0 0; color: var(--color-text-sub); font-size: 14px; }

/* === サイトフッター（footer-bottom をフィルターで差し替え） === */
.site-footer { text-align: left; padding: 56px 20px 44px; }   /* Cocoon既定の中央寄せを左寄せに。左右20pxは画面端に接しないため */
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* No.6: ブランドロゴ2枚（それぞれのサイトへ遷移） */
.site-footer__brands { display: flex; align-items: flex-start; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-footer__brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; }
.site-footer__brand img { display: block; width: auto; height: 40px; }
.site-footer__brand-label {
  font-family: var(--font-base); font-weight: 700; font-size: 12px;
  letter-spacing: var(--tracking-base); color: var(--color-text-sub);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.site-footer__brand:hover .site-footer__brand-label { color: var(--color-cta); border-bottom-color: var(--color-cta); }

/* No.7: 運営会社情報 */
.site-footer__company { max-width: 460px; }
.site-footer__company-head {
  margin: 0 0 8px; font-family: var(--font-base); font-weight: 700; font-size: 12px;
  letter-spacing: var(--tracking-base); color: var(--color-cta);
}
.site-footer__company-name { margin: 0 0 10px; font-family: var(--font-base); font-weight: 700; font-size: 15px; letter-spacing: var(--tracking-base); }
.site-footer__company-name a { color: var(--color-text); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer__company-name a:hover { border-bottom-color: var(--color-cta); }
.site-footer__company-list { margin: 0; font-family: var(--font-base); font-size: 12px; line-height: 1.9; letter-spacing: var(--tracking-base); color: var(--color-text-sub); }
.site-footer__company-list > div { display: flex; gap: 10px; }
.site-footer__company-list dt { flex: 0 0 64px; font-weight: 700; color: var(--color-text); }
.site-footer__company-list dd { margin: 0; min-width: 0; }
.site-footer__company-list dd a { color: inherit; text-decoration: none; }
.site-footer__company-sep { margin: 0 6px; opacity: .5; }

.site-footer__row {                                          /* 主ナビ */
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-top: 44px;
}

/* フッターナビ／ポリシー: ドット区切り（ヘッダーと同じ作法） */
.site-footer__nav, .site-footer__policy { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-footer__nav li, .site-footer__policy li { display: flex; align-items: center; }
.site-footer__nav li:not(:first-child)::before,
.site-footer__policy li:not(:first-child)::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-cta); opacity: .5; margin: 0 16px;
}
.site-footer__nav a {
  font-family: var(--font-base); font-weight: 700; font-size: 15px;
  letter-spacing: var(--tracking-base); color: var(--color-text); text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.site-footer__nav a:hover { border-bottom-color: var(--color-cta); }
/* ポリシー系リンク */
.site-footer__policy { margin-top: 26px; }
.site-footer__policy a {
  font-family: var(--font-base); font-weight: 500; font-size: 13px;
  letter-spacing: var(--tracking-base); color: var(--color-text); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-footer__policy a:hover { border-bottom-color: var(--color-cta); }

.site-footer__copy {
  margin: 30px 0 0; text-align: right;
  font-family: var(--font-en); font-size: 12px; letter-spacing: var(--tracking-base); color: var(--color-text-sub);
}

/* === 記事一覧ページ（home.php / 参考: archive.png 踏襲。3カラムカードグリッド）=== */
/* 上下パディングは <main>（TOP以外）へ移動。 #main の padding 節を参照 */
.p-archive .section-head { margin-bottom: 26px; }

/* 絞り込み（No.10: スマイルカーズ / スマイルトラック の切替タブ。アコーディオン廃止） */
.a-brands { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 44px; padding: 18px 24px; border-radius: 12px; background: var(--color-bg-soft); }
.a-brands__label {
  font-family: var(--font-base); font-weight: 700; font-size: 13px;
  letter-spacing: var(--tracking-base); color: var(--color-text-sub);
}
.a-brands__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.a-brands__item {
  display: inline-block; padding: 9px 20px; border-radius: 100px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  font-family: var(--font-base); font-weight: 700; font-size: 14px; color: var(--color-text);
  text-decoration: none; letter-spacing: var(--tracking-base);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.a-brands__item:hover { border-color: var(--color-brand, var(--color-main)); color: var(--color-brand, var(--color-main)); }
.a-brands__item--cars  { --color-brand: var(--color-brand-cars); }
.a-brands__item--truck { --color-brand: var(--color-brand-truck); }
/* 選択中: 「すべて」は黒、各ブランドはブランド色で塗る（--color-brand の既定値で切替） */
.a-brands__item.is-current {
  background: var(--color-brand, var(--color-text));
  border-color: var(--color-brand, var(--color-text));
  color: #fff;
}
.a-brands__item.is-current:hover { color: #fff; }

/* 件数 */
.a-count {
  margin: 0 0 28px; padding-bottom: 26px; border-bottom: 1px solid var(--color-border);
  font-family: var(--font-base); color: var(--color-text);
}
.a-count__num { font-family: var(--font-en); font-weight: 700; font-size: 30px; margin-right: 4px; }

/* カードグリッド（3カラム）。各行の間に全幅の区切り線 */
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.a-grid__rule { grid-column: 1 / -1; height: 0; border-top: 1px solid var(--color-border); }   /* 行間の連続した横線 */
.a-card { min-width: 0; position: relative; }
/* 列間の縦線（2・3列目カードの左ガター中央。カード高さに合わせる） */
.a-grid > .a-card:nth-child(4n+2)::before,
.a-grid > .a-card:nth-child(4n+3)::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -20px;
  width: 1px; background: var(--color-border);
}
.a-card__thumb-link { display: block; position: relative; }
.a-card__img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  clip-path: var(--thumb-clip); background: #e6e8ec;
}
/* アイキャッチ未設定時のダミー: ヘッダーの2ロゴ（Cars/Truck）を縦積み・上下左右中央・薄グレー背景。
   背景URLは style.css からの相対（サブディレクトリ移設でも不変＝ルール10準拠）。 */
.a-card__img--noimg {
  background-color: var(--color-noimg-bg);
  background-image: url(images/logo-cars.png), url(images/logo-truck.png);
  background-repeat: no-repeat, no-repeat;
  background-position: center 36%, center 67%;
  background-size: auto 24%, auto 24%;
}
.a-card__new {                            /* 赤いダイヤのNEWバッジ（参考は青→赤） */
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--color-main); transform: rotate(45deg);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.a-card__new span {
  transform: rotate(-45deg);
  color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .04em;
}
.a-card__body { padding-top: 14px; }
.a-card__cat {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--font-base); font-weight: 700; font-size: 13px;
  letter-spacing: var(--tracking-base); color: var(--color-main); text-decoration: none;
}
.a-card__cat:hover { text-decoration: underline; }
.a-card__cat--cars  { color: var(--color-brand-cars); }
.a-card__cat--truck { color: var(--color-brand-truck); }
.a-card__title {
  margin: 0; font-family: var(--font-base); font-weight: 700; font-size: 17px; line-height: 1.55;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-card__title a { color: inherit; text-decoration: none; }
.a-card__title a:hover { text-decoration: underline; }
.a-card__tags { margin-top: 12px; }
.c-tags__item a { color: inherit; text-decoration: none; }   /* タグpill内リンク */
.a-card .c-date { margin-top: 12px; }

/* ページャー（the_posts_pagination） */
.p-archive .pagination { margin-top: 60px; }
.p-archive .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.p-archive .pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--color-border); border-radius: 8px;
  font-family: var(--font-en); font-weight: 700; color: var(--color-text); text-decoration: none;
}
.p-archive .pagination .page-numbers.current { background: var(--color-main); border-color: var(--color-main); color: #fff; }
.p-archive .pagination a.page-numbers:hover { border-color: var(--color-main); color: var(--color-main); }

.a-empty { padding: 48px 0; color: var(--color-text-sub); }

/* === 検索結果ページ（search.php / 参考: Google風リスト）=== */
.p-search .section-head { margin-bottom: 36px; }
/* コンテンツ（入力＋結果）は 820px・中央寄せ */
.s-body { max-width: 820px; margin: 0 auto; }

/* 検索入力ボックス（角丸ピル＋虫眼鏡） */
/* フォーム自体をピル枠にし、虫眼鏡アイコン＋入力を flex 兄弟で並べる（テキストとの重なり防止・参考踏襲） */
.s-form {
  display: flex; align-items: center; gap: 14px; margin-bottom: 44px; padding: 0 24px;
  border: 1px solid var(--color-border); border-radius: 100px;
  background: var(--color-bg); box-shadow: 0 1px 6px rgba(40, 40, 40, 0.06);
}
.s-form:focus-within { border-color: var(--color-main); }
.s-form__icon { flex: 0 0 auto; color: var(--color-main); font-size: 18px; line-height: 1; }
.s-form .s-form__input {                 /* Cocoon の input 既定を上書き（枠なし・透明・余白0で枠内を埋める） */
  flex: 1 1 auto; min-width: 0; height: 56px;
  padding: 0; border: none; background: none; box-shadow: none;
  font-family: var(--font-base); font-size: 16px; color: var(--color-text);
}
.s-form .s-form__input:focus { outline: none; }

/* 件数メタ */
.s-meta {
  margin: 0 0 8px; font-family: var(--font-base); font-size: 14px;
  color: var(--color-text-sub); letter-spacing: var(--tracking-base);
}

/* 結果リスト（サムネ左＋本文右。各結果の上に区切り線） */
.s-result { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--color-border); }
.s-result__thumb-link { flex: 0 0 200px; display: block; }
.s-result__img {
  display: block; width: 200px; aspect-ratio: 16 / 10; object-fit: cover;
  --cutout-size: .5625rem; clip-path: var(--thumb-clip); background: #e6e8ec;
}
.s-result__img--noimg {   /* 検索結果も同じダミー（ヘッダー2ロゴ・縦積み・薄グレー） */
  background-color: var(--color-noimg-bg);
  background-image: url(images/logo-cars.png), url(images/logo-truck.png);
  background-repeat: no-repeat, no-repeat;
  background-position: center 36%, center 67%;
  background-size: auto 24%, auto 24%;
}
.s-result__body { min-width: 0; }
.s-result__title {
  margin: 0 0 8px; font-family: var(--font-base); font-weight: 700; font-size: 18px; line-height: 1.5;
  letter-spacing: var(--tracking-base); color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s-result__title a { color: inherit; text-decoration: none; }
.s-result__title a:hover { text-decoration: underline; }
.s-result__snippet {
  margin: 0 0 8px; font-family: var(--font-base); font-size: 14px; line-height: 1.7;
  color: var(--color-text-sub); letter-spacing: var(--tracking-base);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.s-result__url {
  font-family: var(--font-base); font-size: 13px; color: var(--color-accent); text-decoration: none;
  word-break: break-all; letter-spacing: var(--tracking-base);
}
.s-result__url:hover { text-decoration: underline; }
.p-search .pagination { margin-top: 48px; }

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* FV: main 880px の2カラムは横幅が要るため、1279px以下で先に1カラムへ（側の潰れ防止） */
@media screen and (max-width: 1279px){
  .topics__inner { grid-template-columns: 1fr; gap: 36px; }
  .topics__side { padding-left: 0; border-left: none; }   /* 縦積み時は左の境界線を消す */
}
/*1023px以下*/
@media screen and (max-width: 1023px){
  /* ヘッダー: ロゴ左・ハンバーガー右（CocoonのモバイルBP=1023に合わせる）。
     親 .header-in は flex-direction:column のため row へ上書き */
  /* モバイルは header-container-in が column+space-between で .header が上端に張り付くため上下中央へ */
  .header-container-in.hlt-top-menu { justify-content: center; }
  #header-in { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }

  /* Cocoonの下部モバイルメニューバーを撤去。ただしハンバーガーのドロワー一式
     (#navi-menu-input / #navi-menu-content) はこのバー内の .navi-menu-button にあり
     ヘッダーのハンバーガーが依存するため、DOMは残してバーの見た目だけ消す */
  .mobile-footer-menu-buttons.mobile-menu-buttons {
    position: static; height: 0; min-height: 0; margin: 0; padding: 0;
    background: none; box-shadow: none; border: none; overflow: visible;
  }
  .mobile-footer-menu-buttons > li.menu-button { display: none; }            /* 見えるボタンを全て非表示（Cocoonの .mobile-menu-buttons .menu-button に勝つ詳細度） */
  .mobile-footer-menu-buttons > li.navi-menu-button { display: block; }      /* ドロワーのDOMは保持 */
  .mobile-footer-menu-buttons > li.navi-menu-button > .menu-open { display: none; } /* バー内ハンバーガーは隠す（ヘッダー側を使用） */
  #header-in .logo-header { margin: 0; text-align: left; flex: 0 1 auto; }
  .theme-hamburger { display: inline-flex; }
  /* TOP: ブランド別の最新記事を1カラムに */
  .brand-latest__grid { grid-template-columns: 1fr; gap: 40px; }
  .brand-latest__grid::before { display: none; }   /* 1カラム時は左右間の縦線を消す */
  /* TOP: スライダーは横幅を縮めて2枚ぴったり（JSは実測なので自動追従） */
  .topics-card { flex: 0 0 calc((100% - 28px) / 2); }
  /* 記事一覧: 3→2カラム */
  .a-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .a-grid__rule { display: none; }   /* 行間線は3カラム前提のため2列以下は無効化 */
  .a-card::before { display: none; }   /* 縦線も3カラム前提のため無効化 */
  .a-card { border-bottom: 1px solid var(--color-border); padding-bottom: 26px; }   /* 代わりにカード下線で区切り */
  /* 記事詳細: 2カラム→1カラムに（サイドバーは本文の下）。820px中央寄せ */
  .single-layout { grid-template-columns: 1fr; max-width: 820px; gap: 40px; }
}

/*834px以下*/
@media screen and (max-width: 834px){
  #archive-title.archive-title {
    min-height: 180px;
    font-size: 30px;
    border-bottom-right-radius: 72px;
  }

  /* FV: リードを縦積み（画像→本文）。540px固定列が溢れるため */
  .topics-lead { grid-template-columns: 1fr; gap: 18px; }
  .topics-lead__visual { width: 100%; }
  /* モバイルヘッダー: バーを低く・ロゴを小さめに（ハンバーガー/ドロワーはCocoon標準＝メニュー割当後に機能） */
  .header-container-in.hlt-top-menu { min-height: 56px; }
  .header-container-in.hlt-top-menu .logo-header,
  .header-container-in.hlt-top-menu .logo-header img,
  .header-container-in.hlt-top-menu.hlt-tm-small .logo-header,
  .header-container-in.hlt-top-menu.hlt-tm-small .logo-header img { max-height: 36px; }

  /* Aboutページ: バナーを1カラム・見出し縮小 */
  .p-about .about-section__heading { font-size: 26px; margin-bottom: 28px; }
  .p-about__catch { font-size: 19px; }
  .brand-banners { gap: 18px; }
  .company-table__row { flex-direction: column; gap: 4px; }
  .company-table__row dt { flex-basis: auto; }

  /* フッター: 各行を縦積み・コピーライト左寄せ */
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; }
  .site-footer__copy { text-align: left; }
}

/*600px以下*/
@media screen and (max-width: 600px){
  /* メインビジュアル: SP素材(fv01-sp-ver02.jpg)は 375×550＝表示サイズちょうどで
     描き起こされているため、トリミングせず原寸比のまま表示する。
     ※旧素材(852×1846)は縦813px相当と長かったため CSS でトリミングしていたが、
       2026-08-28 に差し替えられたためその指定は不要になった。 */
  .mv__ph { aspect-ratio: 375 / 550; }   /* 画像未設定時のプレースホルダーを新素材に合わせる */

  /* TOP: スライダーは1枚表示（2枚だとカードが細くなりすぎる） */
  .topics-card { flex: 0 0 100%; }
  /* スライダー矢印を内側へ（画面外に出るのを防ぐ） */
  .topics-slider__arrow--prev { left: 4px; }
  .topics-slider__arrow--next { right: 4px; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  #archive-title.archive-title {
    min-height: 132px;
    font-size: 24px;
    border-bottom-right-radius: 48px;
  }
  /* TOP: ブランド別の最新記事のサムネを縮小 */
  .brand-item { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  /* 記事一覧: 1カラム */
  .a-grid { grid-template-columns: 1fr; gap: 36px; }
  /* 検索結果: サムネを縮小 */
  .s-result { gap: 16px; }
  .s-result__thumb-link { flex-basis: 120px; }
  .s-result__img { width: 120px; }
  /* カードはサムネをやや小さく */
  .ect-entry-card .entry-card-thumb,
  .ect-entry-card .entry-card-thumb-image,
  .ect-entry-card .entry-card-thumb img {
    width: 96px;
    height: 96px;
  }
  .ect-entry-card .entry-card-thumb { flex-basis: 96px; }
  .ect-entry-card .entry-card { gap: 16px; }
  .ect-entry-card .entry-card-title { font-size: 17px; }
}
