/*
 * tp-blog.css
 * Turning Point Today — ブログ（投稿・アーカイブ・検索結果）専用スタイル
 *
 * 格納場所: /wp-content/themes/cocoon-child-master/tp-blog/tp-blog.css
 * 読み込み: tp-blog/tp-blog.php（body.tp-blog-chrome のときのみ）
 *
 * ============================================================
 * 設計の考え方
 * ============================================================
 * 1. 額縁：ヘッダー（黒オリーブ＋金の細線）とフッター（同色）で記事を挟む。
 *    ヘッダーは「常時不透明・薄型」。読み進めている間は上へ退避し、少し戻ると現れる。
 *    LP のような重厚な演出は、ヒーローのある固定ページに任せる。
 * 2. 読書面：生成り（紙）の背景に、白に近い一枚の面。本文は 1 行 40 字前後。
 * 3. 文字：見出し＝明朝（Shippori Mincho B1）、本文＝Noto Sans JP、UI＝M PLUS Rounded 1c。
 * 4. 装飾は最小限：金は「見出し下の短い線」「リンクの下線」「ヘッダーの細線」だけに使う。
 *
 * 目次
 *   0. トークン
 *   1. Cocoon 標準ヘッダー／フッターの非表示・背景
 *   2. 共通ヘッダー（常時不透明版）・検索・現在地
 *   3. 全体レイアウト
 *   4. 記事：タイトル・メタ・アイキャッチ
 *   5. 記事：本文タイポグラフィ
 *   6. 一覧（アーカイブ・検索結果）・ページネーション
 *   7. サイドバー
 *   8. パンくず・前後記事・関連記事・その他
 *   9. レスポンシブ
 *  10. アクセシビリティ・印刷
 */

/* ══════════════════════════════════════════════════
   0. トークン
══════════════════════════════════════════════════ */
body.tp-blog-chrome {
  --tpb-paper:     #f5f1e8;   /* ページ背景（ブランドの生成り） */
  --tpb-sheet:     #fffefb;   /* 読書面 */
  --tpb-wash:      #f1efe3;   /* 引用・表見出し・コードの淡い面 */
  --tpb-ink:       #1f2a17;   /* 本文 */
  --tpb-ink-soft:  #3f4b36;   /* 補助本文 */
  --tpb-mute:      #657057;   /* メタ情報（白地で 5:1 以上） */
  --tpb-line:      rgba(61, 84, 41, 0.16);
  --tpb-line-soft: rgba(61, 84, 41, 0.09);
  --tpb-accent:    var(--tph-olive-500);
  --tpb-gold:      var(--tph-gold-500);

  --tpb-font-head: 'Shippori Mincho B1', 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --tpb-font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --tpb-font-ui:   var(--tph-font-jp);

  --tpb-measure:   44em;      /* 本文の最大幅（17px で約 750px ≒ 40〜44 字） */
  --tpb-sheet-pad: clamp(1.25rem, 4.2vw, 3.5rem);
  --tpb-radius:    14px;

  /* ヘッダーの高さ（PC 64px / SP 56px。:root 側の値より優先） */
  --tph-header-h:  64px;
}

@media (max-width: 767px) {
  body.tp-blog-chrome { --tph-header-h: 56px; }
}

/* ══════════════════════════════════════════════════
   1. Cocoon 標準ヘッダー／フッターの非表示・背景
══════════════════════════════════════════════════ */

/* 標準ヘッダー（タグライン・ロゴ・グローバルナビ）は共通ヘッダーに置き換え */
body.tp-blog-chrome #header-container,
body.tp-blog-chrome .header-container,
body.tp-blog-chrome #navi {
  display: none !important;
}

/* 標準フッター・標準トップへ戻るボタンは共通フッター（#tp-footer / #tp-pagetop）に置き換え */
body.tp-blog-chrome #footer,
body.tp-blog-chrome .footer,
body.tp-blog-chrome .footer-widget-area,
body.tp-blog-chrome .go-to-top,
body.tp-blog-chrome .go-to-top-button {
  display: none !important;
}

/* 背景：Cocoon の背景画像設定（柄）を打ち消し、静かな生成りに。
   柄を残したい場合は、この 1 ブロックを削除してください。 */
body.tp-blog-chrome {
  background-color: var(--tpb-paper) !important;
  background-image: none !important;
  color: var(--tpb-ink);
  font-family: var(--tpb-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 固定ヘッダー分の余白 */
  padding-top: var(--tph-header-h);
}

body.tp-blog-chrome #container,
body.tp-blog-chrome .container {
  background: transparent;
}

/* ══════════════════════════════════════════════════
   2. 共通ヘッダー（常時不透明版）
   tp-header.css は「ヒーロー上で透明 → スクロールで不透明」。
   ブログにはヒーローが無いので、最初から不透明にする。
══════════════════════════════════════════════════ */
.tph-header.tph-header--solid {
  background: rgba(13, 18, 9, 0.97);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(200, 164, 74, 0.2);
  transition:
    transform 0.38s var(--tph-ease-out),
    box-shadow 0.4s var(--tph-ease-out);
}

.tph-header.tph-header--solid.is-scrolled {
  background: rgba(13, 18, 9, 0.97);
  box-shadow: 0 1px 0 rgba(200, 164, 74, 0.28), 0 10px 30px rgba(0, 0, 0, 0.16);
}

/* 金の細線は最初から全幅 */
.tph-header--solid .tph-header-line {
  width: 100%;
  opacity: 0.5;
}

/* 読み進めている間は上へ退避（JS が .is-retreated を付け外し） */
.tph-header.tph-header--solid.is-retreated {
  transform: translateY(-100%);
  box-shadow: none;
}

/* 現在地（カテゴリ） */
.tph-nav-link.is-current {
  color: var(--tph-cream);
}
.tph-nav-link.is-current::after {
  transform: scaleX(1);
}
.tph-drawer-link.is-current {
  color: var(--tph-gold-400);
}

/* 閉じているドロワー：影が画面右端に漏れないようにし、キーボードフォーカスの対象からも外す */
body.tp-blog-chrome .tph-drawer:not(.is-open) {
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.48s var(--tph-ease-out), visibility 0s linear 0.48s, box-shadow 0s linear 0.48s;
}
body.tp-blog-chrome .tph-drawer.is-open {
  visibility: visible;
  transition: transform 0.48s var(--tph-ease-out), visibility 0s;
}

/* 検索ボタン */
.tph-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 0.7rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--tph-border);
  background: transparent;
  color: rgba(254, 253, 249, 0.8);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tph-search-toggle:hover,
.tph-search-toggle[aria-expanded="true"] {
  color: var(--tph-gold-400);
  border-color: rgba(200, 164, 74, 0.5);
  background: rgba(200, 164, 74, 0.08);
}
.tph-search-toggle:focus-visible {
  outline: 2px solid var(--tph-gold-500);
  outline-offset: 3px;
}

/* 検索バー（ヘッダー直下に展開） */
.tph-searchbar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem var(--tph-gutter) 1.25rem;
  background: rgba(13, 18, 9, 0.985);
  border-top: 1px solid var(--tph-border);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}
.tph-searchbar[hidden] { display: none; }
.tph-searchbar.is-open { animation: tph-search-in 0.28s var(--tph-ease-out) both; }

@keyframes tph-search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tph-searchform {
  display: flex;
  gap: 0.6rem;
  max-width: 640px;
  margin: 0 auto;
}
.tph-searchform input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 1.3rem;
  border-radius: var(--tph-radius-pill);
  border: 1px solid rgba(200, 164, 74, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tph-cream);
  font-family: var(--tph-font-jp);
  font-size: 0.95rem;
  box-shadow: none;
}
.tph-searchform input[type="search"]::placeholder { color: rgba(245, 241, 232, 0.5); }
.tph-searchform input[type="search"]:focus {
  outline: none;
  border-color: var(--tph-gold-500);
  background: rgba(255, 255, 255, 0.1);
}
.tph-searchform button {
  height: 46px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--tph-radius-pill);
  background: linear-gradient(135deg, var(--tph-gold-600), var(--tph-gold-500) 60%, var(--tph-gold-400));
  color: var(--tph-olive-900);
  font-family: var(--tph-font-jp);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.tph-searchform button:focus-visible { outline: 2px solid var(--tph-cream); outline-offset: 2px; }

/* ドロワー内：検索フォーム・タグライン */
.tph-drawer-search {
  position: relative;
  margin: 1.1rem 1.8rem 0.4rem;
}
.tph-drawer-search input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 2.8rem 0 1.1rem;
  border-radius: var(--tph-radius-pill);
  border: 1px solid rgba(200, 164, 74, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--tph-cream);
  font-family: var(--tph-font-jp);
  font-size: 0.9rem;
  box-shadow: none;
  box-sizing: border-box;
}
.tph-drawer-search input[type="search"]::placeholder { color: rgba(245, 241, 232, 0.45); }
.tph-drawer-search input[type="search"]:focus { outline: none; border-color: var(--tph-gold-500); }
.tph-drawer-search button {
  position: absolute;
  top: 0;
  right: 4px;
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--tph-gold-400);
  cursor: pointer;
}
.tph-drawer-tagline {
  margin: 0 1.8rem 2.2rem;
  font-family: var(--tpb-font-head, serif);
  font-size: 0.78rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.5);
}

.tph-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ログイン中の管理バー（PC 32px / SP 46px）に重ならないように */
body.admin-bar.tp-blog-chrome .tph-header,
body.admin-bar.tp-blog-chrome .tph-progress { top: 32px; }
body.admin-bar.tp-blog-chrome .tph-drawer { top: 32px; height: calc(100dvh - 32px); }
@media (max-width: 782px) {
  body.admin-bar.tp-blog-chrome .tph-header,
  body.admin-bar.tp-blog-chrome .tph-progress { top: 46px; }
  body.admin-bar.tp-blog-chrome .tph-drawer { top: 46px; height: calc(100dvh - 46px); }
}
/* 管理バーは SP でスクロールすると消えるため、退避時はバーの分だけ上へ */
body.admin-bar.tp-blog-chrome .tph-header.tph-header--solid.is-retreated { transform: translateY(-200%); }

/* ══════════════════════════════════════════════════
   3. 全体レイアウト（本文 + サイドバー）
══════════════════════════════════════════════════ */
body.tp-blog-chrome #content {
  margin-top: 0;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(3rem, 7vw, 5.5rem);
}

body.tp-blog-chrome #content-in,
body.tp-blog-chrome .content-in {
  width: 100%;
  max-width: calc(1160px + var(--tph-gutter) * 2);
  margin: 0 auto;
  padding-left: var(--tph-gutter);
  padding-right: var(--tph-gutter);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.tp-blog-chrome #content-in,
  body.tp-blog-chrome .content-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
  body.tp-blog-chrome #main,
  body.tp-blog-chrome .main {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  body.tp-blog-chrome #sidebar,
  body.tp-blog-chrome .sidebar {
    flex: 0 0 300px;
    width: 300px;
    margin: 0;
  }
}

@media (max-width: 1023px) {
  body.tp-blog-chrome #content-in,
  body.tp-blog-chrome .content-in { display: block; }
  body.tp-blog-chrome #main,
  body.tp-blog-chrome .main,
  body.tp-blog-chrome #sidebar,
  body.tp-blog-chrome .sidebar { width: 100%; max-width: none; }
  body.tp-blog-chrome #sidebar,
  body.tp-blog-chrome .sidebar { margin-top: 2rem; }
}

/* 読書面（記事本体・一覧が載る 1 枚の面） */
body.tp-blog-chrome #main,
body.tp-blog-chrome .main {
  background: var(--tpb-sheet);
  border: 1px solid var(--tpb-line);
  border-radius: var(--tpb-radius);
  padding: var(--tpb-sheet-pad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 50px -28px rgba(31, 42, 23, 0.28);
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   4. 記事：タイトル・メタ・アイキャッチ
══════════════════════════════════════════════════ */
body.tp-blog-chrome .article-header,
body.tp-blog-chrome .entry-content,
body.tp-blog-chrome .eye-catch-wrap {
  max-width: var(--tpb-measure);
  margin-left: auto;
  margin-right: auto;
}

body.tp-blog-chrome .article .entry-title,
body.tp-blog-chrome h1.entry-title {
  margin: 0 0 1.1rem;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--tpb-font-head);
  font-weight: 700;
  font-size: clamp(1.62rem, 1.15rem + 1.9vw, 2.45rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--tpb-ink);
  font-feature-settings: 'palt' 1;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* タイトル下の金の短い線（見出しの階層を示す唯一の装飾） */
body.tp-blog-chrome .article .entry-title::after,
body.tp-blog-chrome h1.entry-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 1.3rem;
  background: linear-gradient(90deg, var(--tph-gold-600), var(--tph-gold-400));
}

/* メタ情報（日付・更新日・カテゴリ） */
body.tp-blog-chrome .date-tags,
body.tp-blog-chrome .post-meta,
body.tp-blog-chrome .entry-categories-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.1rem;
  font-family: var(--tpb-font-ui);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--tpb-mute);
}
body.tp-blog-chrome .date-tags a,
body.tp-blog-chrome .post-meta a { color: var(--tpb-mute); text-decoration: none; }
body.tp-blog-chrome .date-tags a:hover { color: var(--tpb-accent); }

/* カテゴリ・タグのラベル：淡いオリーブの丸ラベル（大文字化しない） */
body.tp-blog-chrome .entry-categories a,
body.tp-blog-chrome .entry-category a,
body.tp-blog-chrome .cat-link,
body.tp-blog-chrome .cat-label {
  display: inline-block;
  padding: 0.18em 0.85em;
  border: 0;
  border-radius: 999px;
  background: rgba(90, 122, 62, 0.11);
  color: var(--tph-olive-600);
  font-family: var(--tpb-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
body.tp-blog-chrome .entry-categories a:hover,
body.tp-blog-chrome .entry-category a:hover,
body.tp-blog-chrome a.cat-link:hover {
  background: var(--tph-olive-600);
  color: var(--tph-cream);
}

/* アイキャッチ */
body.tp-blog-chrome .eye-catch-wrap { margin-top: 1.6rem; margin-bottom: 2.4rem; }
body.tp-blog-chrome .eye-catch {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tpb-wash);
}
body.tp-blog-chrome .eye-catch img,
body.tp-blog-chrome .eye-catch-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════════════
   5. 記事：本文タイポグラフィ
══════════════════════════════════════════════════ */
body.tp-blog-chrome .entry-content {
  font-family: var(--tpb-font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--tpb-ink);
  line-break: strict;
  overflow-wrap: anywhere;
}

body.tp-blog-chrome .entry-content > :first-child { margin-top: 0; }

body.tp-blog-chrome .entry-content p {
  margin: 0 0 1.75em;
}

/* 本文リンク：クラス無しの素のリンクだけ（ブログカード・ボタン・関連記事は対象外） */
body.tp-blog-chrome .entry-content a:not([class]) {
  color: var(--tph-olive-500);
  text-decoration: underline;
  text-decoration-color: var(--tph-gold-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 0.2s, text-decoration-thickness 0.2s;
}
body.tp-blog-chrome .entry-content a:not([class]):hover {
  color: var(--tph-olive-700);
  text-decoration-thickness: 2px;
}

body.tp-blog-chrome .entry-content strong { font-weight: 700; color: var(--tpb-ink); }

/* 見出し h2：明朝 + 下罫線 + 金の短い線 */
body.tp-blog-chrome .article .entry-content h2 {
  position: relative;
  margin: 3.4em 0 1.3em;
  padding: 0 0 0.8em;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--tpb-line);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--tpb-font-head);
  font-weight: 700;
  font-size: clamp(1.32rem, 1.1rem + 0.9vw, 1.65rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--tpb-ink);
  font-feature-settings: 'palt' 1;
  word-break: auto-phrase;
  text-wrap: balance;
}
body.tp-blog-chrome .article .entry-content h2::before { content: none; }
body.tp-blog-chrome .article .entry-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--tph-gold-600), var(--tph-gold-400));
}

/* h3：明朝 + 左のオリーブ線 */
body.tp-blog-chrome .article .entry-content h3 {
  margin: 2.6em 0 1em;
  padding: 0.1em 0 0.1em 0.85em;
  background: none;
  border: 0;
  border-left: 3px solid var(--tph-olive-400);
  border-radius: 0;
  font-family: var(--tpb-font-head);
  font-weight: 700;
  font-size: clamp(1.14rem, 1.02rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--tpb-ink);
  font-feature-settings: 'palt' 1;
}
body.tp-blog-chrome .article .entry-content h3::before,
body.tp-blog-chrome .article .entry-content h3::after { content: none; }

/* h4：UI フォント、装飾なし */
body.tp-blog-chrome .article .entry-content h4 {
  margin: 2.2em 0 0.8em;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--tpb-font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--tph-olive-600);
}
body.tp-blog-chrome .article .entry-content h4::before,
body.tp-blog-chrome .article .entry-content h4::after { content: none; }

/* 目次ジャンプ時に固定ヘッダーへ隠れない */
body.tp-blog-chrome .entry-content :is(h2, h3, h4, [id]) {
  scroll-margin-top: calc(var(--tph-header-h) + 20px);
}

/* リスト */
body.tp-blog-chrome .entry-content ul,
body.tp-blog-chrome .entry-content ol {
  margin: 0 0 1.75em;
  padding-left: 1.5em;
}
body.tp-blog-chrome .entry-content li { margin: 0.45em 0; padding-left: 0.15em; }
body.tp-blog-chrome .entry-content li::marker { color: var(--tph-olive-400); }
body.tp-blog-chrome .entry-content ol li::marker { font-weight: 700; }

/* 引用 */
body.tp-blog-chrome .entry-content blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 1.2em 1.5em;
  background: var(--tpb-wash);
  border: 0;
  border-left: 3px solid var(--tph-gold-500);
  border-radius: 0 10px 10px 0;
  font-style: normal;
  color: var(--tpb-ink-soft);
}
body.tp-blog-chrome .entry-content blockquote::before,
body.tp-blog-chrome .entry-content blockquote::after { content: none; }
body.tp-blog-chrome .entry-content blockquote > :last-child { margin-bottom: 0; }

/* 表 */
body.tp-blog-chrome .entry-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
body.tp-blog-chrome .entry-content th,
body.tp-blog-chrome .entry-content td {
  padding: 0.7em 0.9em;
  border: 1px solid var(--tpb-line);
  vertical-align: top;
}
body.tp-blog-chrome .entry-content th {
  background: var(--tpb-wash);
  font-weight: 700;
  color: var(--tpb-ink);
  text-align: left;
}

/* コード */
body.tp-blog-chrome .entry-content code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--tpb-wash);
  font-size: 0.9em;
  color: var(--tph-olive-700);
}
body.tp-blog-chrome .entry-content pre {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  border-radius: 10px;
  background: var(--tph-olive-800);
  color: var(--tph-cream);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}
body.tp-blog-chrome .entry-content pre code { padding: 0; background: none; color: inherit; }

/* 区切り線・画像キャプション */
body.tp-blog-chrome .entry-content hr {
  height: 1px;
  margin: 3em auto;
  border: 0;
  background: var(--tpb-line);
}
body.tp-blog-chrome .entry-content figcaption,
body.tp-blog-chrome .entry-content .wp-caption-text {
  margin-top: 0.6em;
  font-family: var(--tpb-font-ui);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
  color: var(--tpb-mute);
}

/* 既存ブロック（導入文・インサイト・要点・関連）との整合：本文幅に揃え、角丸を統一 */
body.tp-blog-chrome .tp-intro-text,
body.tp-blog-chrome .tp-related-block { max-width: none; }

/* ══════════════════════════════════════════════════
   6. 一覧（アーカイブ・検索結果）・ページネーション
══════════════════════════════════════════════════ */
body.tp-blog-chrome .archive-title,
body.tp-blog-chrome .page-title {
  margin: 0 0 0.6rem;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--tpb-font-head);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--tpb-ink);
}
body.tp-blog-chrome .archive-title .fa,
body.tp-blog-chrome .archive-title [class^="icon-"] { color: var(--tpb-gold); margin-right: 0.35em; }

body.tp-blog-chrome .archive-title + .archive-description,
body.tp-blog-chrome .cat-description,
body.tp-blog-chrome .archive-description {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--tpb-ink-soft);
}

/* 記事カード：枠・影を外し、細い罫線で区切るだけの一覧 */
body.tp-blog-chrome .entry-card-wrap,
body.tp-blog-chrome a.entry-card-wrap {
  display: block;
  margin: 0;
  padding: 1.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tpb-line-soft);
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: none;
}
body.tp-blog-chrome .entry-card-wrap:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}
body.tp-blog-chrome .entry-card-wrap:last-of-type { border-bottom: 0; }

body.tp-blog-chrome .entry-card-thumb img,
body.tp-blog-chrome .entry-card-thumb .entry-card-thumb-image {
  border-radius: 8px;
  object-fit: cover;
}

body.tp-blog-chrome .entry-card-title,
body.tp-blog-chrome .card-title {
  margin: 0 0 0.5rem;
  font-family: var(--tpb-font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--tpb-ink);
  font-feature-settings: 'palt' 1;
  transition: color 0.2s;
}
body.tp-blog-chrome .entry-card-wrap:hover .entry-card-title { color: var(--tph-olive-500); }

body.tp-blog-chrome .entry-card-snippet,
body.tp-blog-chrome .card-snippet {
  font-size: 0.88rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--tpb-ink-soft);
}
body.tp-blog-chrome .entry-card-meta,
body.tp-blog-chrome .card-meta {
  font-family: var(--tpb-font-ui);
  font-size: 0.76rem;
  color: var(--tpb-mute);
}

/* ページネーション */
body.tp-blog-chrome .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 2.4rem 0 0.4rem;
}
body.tp-blog-chrome .pagination .page-numbers,
body.tp-blog-chrome .pagination a,
body.tp-blog-chrome .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid var(--tpb-line);
  border-radius: 999px;
  background: var(--tpb-sheet);
  font-family: var(--tpb-font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tpb-ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
body.tp-blog-chrome .pagination a:hover {
  border-color: var(--tph-olive-400);
  background: rgba(90, 122, 62, 0.08);
}
body.tp-blog-chrome .pagination .current,
body.tp-blog-chrome .pagination .page-numbers.current {
  background: var(--tph-olive-600);
  border-color: var(--tph-olive-600);
  color: var(--tph-cream);
}
body.tp-blog-chrome .pagination .dots { border-color: transparent; background: transparent; }

/* ══════════════════════════════════════════════════
   7. サイドバー
══════════════════════════════════════════════════ */
body.tp-blog-chrome #sidebar .widget,
body.tp-blog-chrome .sidebar .widget {
  margin: 0 0 1.4rem;
  padding: 1.3rem 1.25rem 1.2rem;
  background: var(--tpb-sheet);
  border: 1px solid var(--tpb-line);
  border-radius: 12px;
  box-shadow: none;
}

body.tp-blog-chrome .widget-sidebar-title,
body.tp-blog-chrome .widget-title,
body.tp-blog-chrome #sidebar h3 {
  margin: 0 0 0.9rem;
  padding: 0 0 0.65rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--tpb-line);
  border-radius: 0;
  font-family: var(--tpb-font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--tpb-ink);
}
body.tp-blog-chrome .widget-sidebar-title::before,
body.tp-blog-chrome .widget-sidebar-title::after { content: none; }

body.tp-blog-chrome #sidebar ul { margin: 0; padding: 0; list-style: none; }
body.tp-blog-chrome #sidebar li { padding: 0.4rem 0; border-bottom: 1px solid var(--tpb-line-soft); }
body.tp-blog-chrome #sidebar li:last-child { border-bottom: 0; }
body.tp-blog-chrome #sidebar a {
  color: var(--tpb-ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
body.tp-blog-chrome #sidebar a:hover { color: var(--tph-olive-500); }

/* ══════════════════════════════════════════════════
   8. パンくず・前後記事・関連記事・その他
══════════════════════════════════════════════════ */
body.tp-blog-chrome .breadcrumb {
  margin: 0 0 1.4rem;
  padding: 0;
  background: transparent;
  font-family: var(--tpb-font-ui);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--tpb-mute);
}
body.tp-blog-chrome .breadcrumb a { color: var(--tpb-mute); text-decoration: none; }
body.tp-blog-chrome .breadcrumb a:hover { color: var(--tph-olive-500); text-decoration: underline; }

body.tp-blog-chrome .pager-post-navi a {
  border: 1px solid var(--tpb-line);
  border-radius: 12px;
  background: var(--tpb-sheet);
  color: var(--tpb-ink);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
body.tp-blog-chrome .pager-post-navi a:hover {
  border-color: var(--tph-olive-400);
  background: rgba(90, 122, 62, 0.05);
}

body.tp-blog-chrome .related-entry-heading,
body.tp-blog-chrome .comment-reply-title,
body.tp-blog-chrome .comment-title {
  font-family: var(--tpb-font-head);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tpb-ink);
}

body.tp-blog-chrome .author-box,
body.tp-blog-chrome .comment-area .comment-body {
  border-color: var(--tpb-line);
  border-radius: 12px;
}

/* ══════════════════════════════════════════════════
   9. レスポンシブ
══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .tph-search-toggle { margin-right: 0; }
  body.tp-blog-chrome .tph-header-inner { padding: 0 1rem; }
}

@media (max-width: 600px) {
  /* スマホは読書面を画面幅いっぱいに（余白を本文へ回す） */
  body.tp-blog-chrome #content-in,
  body.tp-blog-chrome .content-in { padding-left: 0; padding-right: 0; }
  body.tp-blog-chrome #main,
  body.tp-blog-chrome .main {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.tp-blog-chrome #sidebar,
  body.tp-blog-chrome .sidebar { padding: 0 1rem; box-sizing: border-box; }

  body.tp-blog-chrome .entry-content { font-size: 1rem; line-height: 1.95; }
  body.tp-blog-chrome .entry-content table { display: block; overflow-x: auto; }
}

/* ══════════════════════════════════════════════════
   10. アクセシビリティ・印刷
══════════════════════════════════════════════════ */
body.tp-blog-chrome :is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--tph-gold-600);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tph-header.tph-header--solid { transition: none; }
  .tph-searchbar.is-open { animation: none; }
}

@media print {
  body.tp-blog-chrome { padding-top: 0; background: #fff !important; }
  body.tp-blog-chrome #main { border: 0; box-shadow: none; padding: 0; }
  body.tp-blog-chrome #sidebar,
  .tph-searchbar,
  #tp-footer,
  #tp-pagetop { display: none !important; }
}
