@charset "UTF-8";
/*
Theme Name: ZOKUHO
Theme URI: https://zokuho.com/
Author: 続報
Author URI: https://zokuho.com/
Description: ウェブのニュースサイト「続報（ZOKUHO）」のためのWordPressテーマ。明朝のサイト名と罫線で組むテキスト中心のレイアウトに、読了バー・この話題の動き・本文中の関連記事・次の記事の連続表示など、記事を読み進めてもらう仕掛けを備えています。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zokuho
Tags: news, blog, two-columns, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* =============================================================
   0. デザイントークン
   ============================================================= */
:root {
  /* ブランドカラー。分野名・リンクに使います */
  --brand:        #1b2a5e;
  --brand-dark:   #131f46;
  --accent:       #c8102e;   /* 速報・NEW・読了バー */

  --ink:          #1a1a1a;
  --ink-2:        #3e3e3e;
  --muted:        #717171;
  --muted-2:      #a0a0a0;
  --visited:      #6f6a7a;   /* 読んだ記事の見出し */
  --rule:         #1a1a1a;   /* 見出し上の罫 */
  --line:         #d9d5cd;
  --line-2:       #e9e6df;
  --bg:           #ffffff;
  --bg-soft:      #f5f3ee;
  --bg-footer:    #f3f1eb;

  --container:    1240px;
  --gap:          44px;
  --sidebar-w:    300px;
  --article-w:    720px;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic",
               Meiryo, system-ui, -apple-system, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho",
                "Noto Serif JP", "BIZ UDPMincho", serif;
}

/* =============================================================
   1. リセット & ベース
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; vertical-align: middle; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0 0 1em; }
button { font-family: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: #fff; border: 2px solid var(--ink);
}

.l-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* 読んだ記事の見出しは少し沈める（未読が目に入りやすくなる） */
.p-list__title a:visited,
.p-flash__title a:visited,
.p-topic__list a:visited,
.p-ranking__title:visited,
.p-sidelist__title:visited,
.p-timeline__title a:visited,
.p-inline-related__list a:visited { color: var(--visited); }

/* =============================================================
   2. ヘッダー
   ============================================================= */
.l-header { background: #fff; }

.l-masthead__inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-block: 22px 16px;
}

.p-title { flex: none; min-width: 0; }
.p-title__link { display: inline-block; color: var(--ink); }
.p-title__link:hover { color: var(--ink); text-decoration: none; }
.p-title__logo { display: block; width: 188px; height: auto; }
.p-title__name {
  font-family: var(--font-serif); font-size: 46px; font-weight: 900;
  letter-spacing: .05em; line-height: 1; white-space: nowrap;
}
.p-title__sub { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.p-title__date {
  margin: 8px 0 0; font-family: var(--font-serif); font-size: 13px;
  letter-spacing: .08em; color: var(--ink-2); white-space: nowrap;
}
.custom-logo-link img { display: block; max-height: 60px; width: auto; }

.l-masthead__tools { display: flex; align-items: center; gap: 20px; min-width: 0; padding-bottom: 2px; }
.p-headlinks { display: flex; align-items: center; gap: 18px; }
.p-headlinks a { font-size: 13px; color: var(--ink-2); white-space: nowrap; }

/* スマホ用のボタン（検索・メニュー） */
.p-headbtn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 50px; height: 46px; padding: 0; border: 0; background: none; color: var(--ink);
}
.p-headbtn__label { font-size: 9.5px; font-weight: 700; line-height: 1; white-space: nowrap; font-feature-settings: "palt" 1; }

/* 2-2. グローバルナビ：太罫＋細罫の下に分野を並べる */
.l-gnav__inner { position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.l-gnav__inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 3px; background: var(--rule);
}
.l-gnav__list { display: flex; flex-wrap: wrap; }
.l-gnav__list > li { position: relative; }
.l-gnav__list > li > a {
  display: flex; align-items: center; height: 44px; padding: 0 10px;
  font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.l-gnav__list > li:first-child > a { padding-left: 0; }
.l-gnav__list > li > a:hover { color: var(--brand); text-decoration: none; }
.l-gnav__list > li.current-menu-item > a,
.l-gnav__list > li.current-menu-ancestor > a,
.l-gnav__list > li.current-cat > a { box-shadow: inset 0 -3px 0 var(--brand); }

.l-gnav__list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--rule);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.l-gnav__list li:hover > .sub-menu,
.l-gnav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.l-gnav__list .sub-menu a { display: block; padding: 10px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); }
.l-gnav__list .sub-menu li:last-child a { border-bottom: 0; }

/* =============================================================
   3. 見出し（セクション）
   ============================================================= */
.c-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  border-top: 3px solid var(--rule); padding-top: 10px; margin: 0 0 4px;
}
.c-head__title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.c-head__more { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.c-head__more::after { content: "›"; margin-left: 5px; }
.c-head--accent { border-top-color: var(--accent); }
.c-head--accent .c-head__title { color: var(--accent); }
.c-head--sub { border-top-width: 1px; padding-top: 9px; }
.c-head--sub .c-head__title { font-size: 17px; }

/* =============================================================
   4. 本文レイアウト
   ============================================================= */
.l-body { padding: 28px 0 64px; }
.l-body__inner { display: grid; grid-template-columns: minmax(0,1fr) var(--sidebar-w); gap: var(--gap); }
.l-body--full .l-body__inner { grid-template-columns: minmax(0,1fr); }
.single-post .l-content { max-width: var(--article-w); }

.c-section { margin-bottom: 44px; }
.c-block { margin-bottom: 32px; }

/* 読みかけの記事（トップ） */
.p-resume {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 24px; padding: 11px 14px;
  background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.p-resume__label { flex: none; font-weight: 700; color: var(--accent); }
.p-resume__link { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-resume__meta { flex: none; font-size: 12px; color: var(--muted); }
.p-resume__close {
  flex: none; width: 28px; height: 28px; margin: -4px -6px -4px 0; padding: 0;
  border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted);
}

/* トップの主要ニュース：左リード / 右リスト（間に縦罫） */
.p-top { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
.p-top > .p-lead { padding-right: 26px; }
.p-top > .p-list { border-left: 1px solid var(--line); padding-left: 26px; }
.p-top > .p-list .p-list__item:first-child { padding-top: 2px; }

/* リード記事 */
.p-lead__kicker { margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
.p-lead__kicker:empty { display: none; }
.p-lead__title {
  font-family: var(--font-serif); font-size: 29px; font-weight: 700;
  line-height: 1.42; letter-spacing: .01em; margin-bottom: 10px;
}
.p-lead__meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.p-lead__figure { margin: 0 0 12px; }
.p-lead__figure img, .p-lead__figure svg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-soft); }
.p-lead__excerpt { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin: 0; }

/* テキスト主体の記事リスト（見出し左＋小サムネ右） */
.p-list__item {
  display: grid; grid-template-columns: minmax(0,1fr) 108px; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
.p-list__item:last-child { border-bottom: 0; }
.p-list__item--nothumb { grid-template-columns: minmax(0,1fr); }
.p-list__title { font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.p-list__excerpt { margin: 6px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.p-list__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 6px; }
.p-list__thumblink { display: block; }
.p-list__thumb { display: block; width: 108px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.p-list--tight .p-list__item { padding: 11px 0; }
.p-list--tight .p-list__title { font-size: 14.5px; }

/* 写真を上に大きく出す行（分野別の先頭など） */
.p-list__item--feature { grid-template-columns: minmax(0,1fr); gap: 10px; }
.p-list__item--feature .p-list__thumblink { order: -1; }
.p-list__item--feature .p-list__thumb { width: 100%; aspect-ratio: 16 / 9; }
.p-list .p-list__item--feature .p-list__title { font-size: 17px; line-height: 1.5; }

/* 速報リスト（時刻＋見出し、2段組み） */
.p-flash { columns: 2; column-gap: 40px; column-rule: 1px solid var(--line-2); }
.p-flash__item {
  display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid;
}
.p-flash__time { font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-flash__title { font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.p-flash__title .c-new { margin-left: 6px; }

/* メタ部品 */
.c-kicker { font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.p-lead__kicker .c-kicker { font-size: 13px; }
.c-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-new { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .06em; white-space: nowrap; }
.c-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); }
.c-hash { font-size: 12px; color: var(--brand); }

/* 続報を追う */
.p-topics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 40px; }
.p-topic { padding: 12px 0 14px; border-bottom: 1px solid var(--line-2); }
.p-topic__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.p-topic__name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: .03em; }
.p-topic__count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.p-topic__list li {
  display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 8px; align-items: baseline;
  padding: 4px 0; font-size: 14px; line-height: 1.6;
}
.p-topic__list time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-topic__list li:first-child a { font-weight: 700; }

/* タブ（リリース種別 / 朝刊・夕刊） */
.p-tabs {
  display: flex; gap: 26px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.p-tabs::-webkit-scrollbar { display: none; }
.p-tabs__btn {
  position: relative; flex: none; padding: 10px 0 9px; border: 0; background: none; white-space: nowrap;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--muted-2);
}
.p-tabs__btn:hover { color: var(--ink); }
.p-tabs__btn.is-active { color: var(--ink); }
.p-tabs__btn.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink);
}
.p-tabs__panel { display: none; }
.p-tabs__panel.is-active { display: block; }
.p-tabs__more { margin: 10px 0 0; text-align: right; }

/* ボタン */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border: 1px solid var(--rule); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.c-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.c-btn--brand { background: var(--ink); color: #fff; }
.c-btn--brand:hover { background: #000; color: #fff; }

/* 2カラム */
.c-cols2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 40px; }

/* 写真で見る（暗い帯） */
.p-photoband { padding: 16px 20px 22px; background: #1f1f21; color: #eee; }
.p-photoband .c-head { border-top: 0; padding-top: 0; margin-bottom: 12px; }
.p-photoband .c-head__title { color: #fff; }
.p-photos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.p-photos__item img, .p-photos__item svg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #333; }
.p-photos__title { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: #e6e6e6; }
.p-photos__title:hover { color: #fff; }

/* もっと読む */
.p-more {
  display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 16px;
  border: 1px solid var(--rule); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink);
}
.p-more:hover { background: var(--ink); color: #fff; text-decoration: none; }
.p-more.is-loading { opacity: .55; pointer-events: none; }

/* ページネーション */
.c-pagination { margin-top: 28px; }
.c-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.c-pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); background: #fff;
}
.c-pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.c-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-pagination .page-numbers.dots { border-color: transparent; }

/* =============================================================
   5. サイドバー
   ============================================================= */
.l-sidebar { min-width: 0; }
.l-sidebar__sticky { position: sticky; top: 24px; }
.admin-bar .l-sidebar__sticky { top: 56px; }
.p-widget { margin-bottom: 34px; }
.p-widget__title {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: .04em;
  border-top: 3px solid var(--rule); padding-top: 9px; margin-bottom: 4px;
}

/* ランキング */
.p-ranking__item {
  display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
.p-ranking__item:last-child { border-bottom: 0; }
.p-ranking__num {
  font-family: var(--font-serif); font-size: 24px; font-weight: 700; line-height: 1.05;
  color: var(--ink); font-variant-numeric: lining-nums;
}
.p-ranking__item:nth-child(n+4) .p-ranking__num { font-size: 19px; color: var(--muted-2); }
.p-ranking__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; margin-bottom: 2px; }

/* サイド記事リスト */
.p-sidelist__item {
  display: grid; grid-template-columns: minmax(0,1fr) 72px; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.p-sidelist__item:last-child { border-bottom: 0; }
.p-sidelist__item--nothumb { grid-template-columns: minmax(0,1fr); }
.p-sidelist__thumb { display: block; width: 72px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.p-sidelist__title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.6; margin-bottom: 2px; }

.p-catlist li, .l-sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.p-catlist li a, .l-sidebar .widget ul li a { color: var(--ink); font-weight: 500; margin-right: 4px; }
.l-sidebar .widget select { width: 100%; padding: 8px; border: 1px solid var(--line); }

/* ブロックウィジェットの見出し・検索も同じ組みに */
.l-sidebar .widget_block h2 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
  border-top: 3px solid var(--rule); padding-top: 9px; margin: 0 0 4px;
}
.l-sidebar .wp-block-search__label { font-size: 13px; font-weight: 700; }
.l-sidebar .wp-block-search__input { border: 1px solid var(--line); border-radius: 0; font-family: inherit; }
.l-sidebar .wp-block-search__button { margin-left: 6px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font-family: inherit; font-weight: 700; }

/* =============================================================
   6. 記事詳細
   ============================================================= */
.p-breadcrumb { font-size: 12px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.p-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.p-breadcrumb li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted-2); }
.p-breadcrumb a { color: var(--muted); }

/* 読了バー */
.p-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.p-progress__bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .p-progress { top: 32px; }

.p-article__header { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.p-article__kicker { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; }
.p-article__kicker a { color: var(--brand); }
.p-article__kicker .p-article__type { color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); }
.p-article__edition { color: var(--accent); }
.p-article__title {
  font-family: var(--font-serif); font-size: 32px; font-weight: 700;
  line-height: 1.45; letter-spacing: .01em; margin-bottom: 14px;
}
.p-article__meta { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.p-article__meta .c-date { font-size: 12.5px; }

/* 続報のお知らせ */
.p-followup {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 14px; align-items: baseline;
  margin: 0 0 22px; padding: 11px 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line);
}
.p-followup__label { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.p-followup__link { font-size: 15px; font-weight: 700; line-height: 1.55; }
.p-followup__meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.p-followup__meta a { color: var(--brand); }

.p-article__figure { margin: 0 0 24px; }
.p-article__figure img { display: block; width: 100%; }
.p-article__figure figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.p-article__lead { margin: 0 0 24px; font-size: 17px; font-weight: 700; line-height: 1.9; }

.p-article__body { font-size: 17px; line-height: 2; font-feature-settings: normal; overflow-wrap: anywhere; }
.p-article__body > * { margin-top: 0; margin-bottom: 0; }
.p-article__body > * + * { margin-top: 1.4em; }
.p-article__body h2 {
  position: relative; margin-top: 2.2em; padding-top: 14px;
  font-family: var(--font-serif); font-size: 21px; line-height: 1.55;
}
.p-article__body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.6em; height: 3px; background: var(--rule); }
.p-article__body h3 { margin-top: 1.9em; font-size: 18px; line-height: 1.6; }
.p-article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.p-article__body ul { list-style: disc; padding-left: 1.5em; }
.p-article__body ol { list-style: decimal; padding-left: 1.7em; }
.p-article__body li { margin-bottom: .45em; }
.p-article__body blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); color: var(--ink-2); font-size: 16px; }
.p-article__body figure { margin-left: 0; margin-right: 0; }
.p-article__body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.p-article__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-article__body th, .p-article__body td { border: 1px solid var(--line); padding: 9px 11px; }
.p-article__body th { background: var(--bg-soft); }

/* 本文中の関連記事 */
.p-article__body .p-inline-related { margin: 2em 0; padding: 10px 0 8px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); }
.p-inline-related__label { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.p-article__body .p-inline-related__list { list-style: none; padding: 0; }
.p-article__body .p-inline-related__list li { margin: 0; padding: 6px 0; line-height: 1.6; }
.p-article__body .p-inline-related__list a { font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.p-article__body .p-inline-related__list a:hover { color: var(--brand); text-decoration: underline; }
.p-inline-related__list .c-date { margin-left: 10px; }

.p-article__footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.p-tags { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; }
.p-tags__label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.p-tags a { color: var(--brand); font-weight: 700; }
.p-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.p-share__btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.p-share__btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* この話題の動き */
.p-timeline { margin-top: 40px; }
.p-timeline__list { margin-top: 6px; }
.p-timeline__item {
  position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 12px;
  padding: 9px 0 9px 22px;
}
.p-timeline__item::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.p-timeline__item:first-child::before { top: 18px; }
.p-timeline__item:last-child::before { bottom: auto; height: 18px; }
.p-timeline__item::after {
  content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px;
  border: 2px solid var(--muted-2); border-radius: 50%; background: #fff;
}
.p-timeline__item.is-current::after { border-color: var(--ink); background: var(--ink); }
.p-timeline__item.is-newer::after { border-color: var(--accent); }
.p-timeline__date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-timeline__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.p-timeline__item.is-current .p-timeline__title { color: var(--muted); font-weight: 500; }
.p-timeline__here { margin-left: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* あわせて読みたい */
.p-related { margin-top: 44px; }

/* 次の記事 / 続けて表示 */
.p-next { margin-top: 48px; padding-top: 10px; border-top: 3px solid var(--rule); }
.p-next__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.p-next__link { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 20px; align-items: start; color: var(--ink); }
.p-next__link:hover { color: var(--ink); text-decoration: none; }
.p-next__link:hover .p-next__title { text-decoration: underline; text-underline-offset: 4px; }
.p-next__title { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.5; }
.p-next__meta { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.p-next__thumb { display: block; width: 150px; aspect-ratio: 4 / 3; object-fit: cover; }
.p-next__status { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.p-next__status:empty { display: none; }
.p-next.is-loading { min-height: 90vh; }
.p-next.is-loading .p-next__link { opacity: .45; }

.p-stream { margin-top: 56px; }
.p-stream__sep {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; padding-top: 10px;
  border-top: 3px solid var(--rule); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent);
}
.p-stream__end { margin-top: 48px; padding-top: 14px; border-top: 3px solid var(--rule); font-size: 14px; font-weight: 700; }
.p-stream__end a::after { content: "›"; margin-left: 6px; }

.p-comments { margin-top: 44px; }

.p-page__title {
  font-family: var(--font-serif); font-size: 28px; padding-top: 12px;
  border-top: 3px solid var(--rule); margin-bottom: 22px;
}

/* アーカイブ見出し */
.p-archive-head { border-top: 3px solid var(--rule); padding-top: 12px; margin-bottom: 22px; }
.p-archive-head__sub { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.p-archive-head__title { font-family: var(--font-serif); font-size: 28px; line-height: 1.35; }
.p-archive-head__desc { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.p-archive-head__desc p { margin: 0; }
.p-archive-head__count { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.p-archive-search { margin-bottom: 20px; }
.p-archive-search .p-search { max-width: 480px; }
.p-archive-search .p-search__field { width: 100%; height: 42px; font-size: 15px; }
.p-list--archive { margin-top: 22px; border-top: 1px solid var(--line); }

/* 空 / 404 */
.p-empty { text-align: center; padding: 60px 20px; }
.p-empty__code { font-family: var(--font-serif); font-size: 56px; font-weight: 700; line-height: 1; margin: 0; }
.p-empty__title { font-size: 19px; margin: 18px 0 9px; }
.p-empty__text { color: var(--muted); font-size: 14px; }
.p-empty .p-search { display: inline-block; margin-top: 20px; }
.p-empty__recent { margin-top: 36px; }

/* 検索フォーム */
.p-search { position: relative; }
.p-search__field {
  width: 220px; height: 34px; padding: 0 36px 0 12px;
  border: 1px solid var(--line); border-radius: 0; font-size: 13.5px;
  font-family: inherit; background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.p-search__field:focus { outline: none; border-color: var(--ink); }
.p-search__submit {
  position: absolute; top: 0; right: 0; width: 34px; height: 100%;
  border: 0; background: none; color: var(--muted); display: grid; place-items: center;
}
.p-search__submit:hover { color: var(--ink); }

/* ドロワー（スマホのメニュー） */
.p-drawer { position: fixed; inset: 0; z-index: 200; }
.p-drawer__overlay {
  position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.42);
  opacity: 0; transition: opacity .22s;
}
.p-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: min(86vw, 360px);
  padding: 0 20px 40px; background: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.p-drawer.is-open .p-drawer__overlay { opacity: 1; }
.p-drawer.is-open .p-drawer__panel { transform: none; }
.p-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; margin-bottom: 16px; border-bottom: 3px solid var(--rule);
}
.p-drawer__brand { display: block; }
.p-drawer__logo { display: block; width: 112px; height: auto; }
.p-drawer__title { font-family: var(--font-serif); font-size: 22px; font-weight: 900; letter-spacing: .05em; }
.p-drawer__close { padding: 8px 0 8px 12px; border: 0; background: none; font-size: 14px; font-weight: 700; }
.p-drawer .p-search__field { width: 100%; height: 44px; font-size: 16px; }
.p-drawer__nav { margin-top: 12px; }
.p-drawer__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 700; }
.p-drawer__list .sub-menu a { padding-left: 16px; font-size: 14px; font-weight: 500; }
.p-drawer__subhead { margin: 22px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--rule); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.p-drawer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 13.5px; }

/* =============================================================
   7. フッター
   ============================================================= */
.l-footer { margin-top: 20px; background: var(--bg-footer); color: var(--ink-2); font-size: 13px; border-top: 3px solid var(--rule); }
.l-footer a { color: var(--ink-2); }
.l-footer a:hover { color: var(--ink); }
.l-footer__top { padding: 36px 0 30px; border-bottom: 1px solid var(--line); }
.l-footer__cols { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.l-footer__brand .p-title__logo { width: 148px; }
.l-footer__tagline { margin: 12px 0 0; max-width: 28em; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.l-footer__heading {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.l-footer__list li { margin-bottom: 8px; font-size: 13px; }
.l-footer__list--2col { columns: 2; column-gap: 16px; }
.l-footer__bottom { padding-block: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.l-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; }
.l-footer__copy { font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

.p-pagetop {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 42px; height: 42px; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.p-pagetop.is-visible { opacity: .88; visibility: visible; }
.p-pagetop:hover { opacity: 1; }

/* =============================================================
   8. レスポンシブ
   ============================================================= */
@media (max-width: 1180px) {
  :root { --gap: 32px; --sidebar-w: 272px; }
  .p-headlinks a:nth-child(n+3) { display: none; }
}

@media (max-width: 980px) {
  .l-body__inner { grid-template-columns: minmax(0,1fr); }
  .single-post .l-content { max-width: none; }
  .l-sidebar { padding-top: 8px; }
  .l-sidebar__sticky { position: static; }
  .p-top { grid-template-columns: minmax(0,1fr); }
  .p-top > .p-lead { padding-right: 0; padding-bottom: 6px; }
  .p-top > .p-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 10px; }
  .p-top > .p-list .p-list__item:first-child { padding-top: 14px; }
  .c-cols2 { grid-template-columns: minmax(0,1fr); }
  .l-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .l-container { padding-inline: 16px; }
  .admin-bar .p-progress { top: 46px; }

  .l-masthead__inner { align-items: center; padding-block: 12px; }
  .p-title__logo { width: 132px; }
  .p-title__name { font-size: 32px; }
  .p-title__sub { font-size: 11px; }
  .p-title__date { display: none; }
  .l-masthead__tools { gap: 2px; margin-right: -4px; }
  .l-masthead__tools .p-headlinks,
  .l-masthead__tools .p-search { display: none; }
  .p-headbtn { display: inline-flex; }

  /* 分野は横スクロールで全部見せる */
  .l-gnav__inner::before { top: -5px; }
  .l-gnav__inner::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  }
  .l-gnav__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .l-gnav__list::-webkit-scrollbar { display: none; }
  .l-gnav__list > li > a { height: 42px; padding: 0 12px; font-size: 14px; }
  .l-gnav__list > li:last-child > a { padding-right: 28px; }
  .l-gnav__list .sub-menu { display: none; }

  .l-body { padding-top: 20px; }
  .c-section { margin-bottom: 36px; }
  .c-head__title { font-size: 19px; }

  .p-lead__title { font-size: 23px; }
  .p-list__item { grid-template-columns: minmax(0,1fr) 112px; gap: 12px; }
  .p-list__thumb { width: 112px; }
  .p-list__title, .p-list--tight .p-list__title { font-size: 15.5px; }
  .p-flash { columns: 1; }
  .p-flash__title { font-size: 15px; }
  .p-tabs { gap: 20px; }
  .p-tabs__btn { font-size: 17.5px; }
  .p-topics { grid-template-columns: minmax(0,1fr); }
  .p-topic__list li { font-size: 14.5px; }
  .p-photoband { margin-inline: -16px; padding-inline: 16px; }
  .p-photos { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 12px; }
  .p-photos__title { font-size: 14px; }
  .p-sidelist__title, .p-ranking__title { font-size: 15px; }

  .p-article__title { font-size: 24px; }
  .p-article__lead { font-size: 16px; }
  .p-article__body { font-size: 16.5px; line-height: 1.95; }
  .p-article__body h2 { font-size: 19.5px; }
  .p-timeline__item { grid-template-columns: minmax(0,1fr); gap: 0; }
  .p-next__link { grid-template-columns: minmax(0,1fr) 104px; gap: 14px; }
  .p-next__thumb { width: 104px; }
  .p-next__title { font-size: 19px; }
  .p-page__title, .p-archive-head__title { font-size: 23px; }
  .p-resume__meta { display: none; }

  .c-pagination .page-numbers { min-width: 44px; height: 44px; }
  .l-footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .p-empty__code { font-size: 44px; }
  .p-share__btn { padding: 0 11px; }
}

/* =============================================================
   9. WordPress 標準クラス
   ============================================================= */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100%, 1000px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.sticky .p-list__title::before { content: "注目　"; color: var(--accent); }
.bypostauthor > article { display: block; }

@media print {
  .l-gnav, .l-sidebar, .l-footer, .p-pagetop, .l-masthead__tools,
  .p-progress, .p-next, .p-stream, .p-related, .p-share, .p-inline-related { display: none !important; }
  body { font-size: 11pt; }
}
