/*
Theme Name: 志ノオト
Theme URI: https://kokorozashi-note.jp
Author: WillGear Inc.
Description: 志ノオト（ココロザシ ノ オト）公式テーマ。白と墨、明朝、大日付。固定ページはテンプレートで固定し、記事（notes）だけブロックエディターで更新する。
Version: 0.1.0
Requires PHP: 7.4
License: Proprietary
Text Domain: kokorozashi-note
*/

/* =============================================================
   志ノオト 静的モック 共通スタイル（DESIGN.md v1.2 準拠）
   01 トークン / 02 リセット / 03 レイアウト / 04 ヘッダー・メニュー
   05 共通パーツ（大日付・ラベル・ピル・カード・ルビ） / 06 モーション
   ============================================================= */

/* ---------- 01 トークン ---------- */
:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --gray-text: #555555;
  --gray-muted: #9a9a9a;
  --gray-line: #e5e5e2;
  --gray-bg: #f7f7f5;
  --blue: #0A72A3; /* ホバー時の文字色。白地で5.32:1（AA基準4.5:1を満たす）。旧#0A8CC7は3.76:1で不足 */               /* 署名色。ホバー・小さなマーカー・アクティブ表示のみ */

  --font-jp: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-en: "Playfair Display", "Times New Roman", Georgia, serif;

  --shell: 1320px;
  --article-w: 1160px;   /* 記事ページ（扉・本文・次に読む）の共通幅 */
  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 88px;

  --dur: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 02 リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* テキストリンク：墨＋下線、ホバーで署名色 */
.text-link { text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
.text-link:hover { color: var(--blue); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; z-index: 100; }

/* ---------- 03 レイアウト ---------- */
.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }

/* ---------- 04 ヘッダー・メニュー ---------- */
.site-header { background: var(--paper); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
/* メディア名の読み（ココロザシ ノ オト）：ロゴの脇に必ず置く */
.brand-reading { font-size: 11px; letter-spacing: 0.18em; line-height: 1; color: var(--gray-text); padding-bottom: 3px; white-space: nowrap; }
.header-nav { display: flex; gap: 40px; font-size: 13px; letter-spacing: 0.1em; line-height: 1; }
.header-nav a { padding: 8px 0; border-bottom: 1px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.header-nav a:hover, .header-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.header-nav a:hover { color: var(--blue); }
.menu-button { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 0 0 12px; font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }
.menu-button i { display: block; width: 22px; height: 1px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }

/* パンくず：本文の邪魔をしない細い一行。1行に収め、末尾は省略する */
.crumbs { width: min(100% - var(--gutter) * 2, var(--shell)); margin: 22px auto 0; font-size: 12px; letter-spacing: 0.06em; color: var(--gray-text); }
.single-notes .crumbs { width: min(100% - var(--gutter) * 2, var(--article-w)); }
.crumbs ol { list-style: none; display: flex; flex-wrap: nowrap; align-items: baseline; margin: 0; padding: 0; }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--gray-muted); }
.crumbs li + li::before { content: "／"; margin: 0 8px; color: var(--gray-muted); }
.crumbs a { color: var(--gray-text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.crumbs a:hover, .crumbs a:focus-visible { border-bottom-color: var(--gray-text); }
@media (max-width: 860px) { .crumbs { margin-top: 14px; font-size: 11px; } }

/* 読み進めたときだけ右上に出る小さなメニューボタン。本文の邪魔をしないよう控えめに */
.nav-fab { position: fixed; top: 12px; right: var(--gutter); z-index: 20;
  width: 44px; height: 44px; display: none; place-items: center;
  background: var(--paper); border: 1px solid var(--gray-line); border-radius: 50%;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.nav-fab i { display: block; width: 18px; height: 1px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
.nav-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.nav-fab:hover, .nav-fab:focus-visible { border-color: var(--ink); }
@media (max-width: 1080px) { .nav-fab { display: grid; } }
@media (prefers-reduced-motion: reduce) { .nav-fab { transition: none; transform: none; } }

.kn-menu { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--ink); }
.kn-menu::backdrop { background: rgba(26, 26, 26, 0.2); }
.kn-menu__inner { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; padding-block: 20px 40px; }
.kn-menu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.kn-menu__close { min-height: 44px; padding: 12px 0 12px 16px; font-size: 12px; letter-spacing: 0.12em; }
.kn-menu nav { display: grid; gap: 4px; margin-top: 32px; }
.kn-menu nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--gray-line); font-size: 18px; letter-spacing: 0.06em; }
.kn-menu__foot { margin-top: 40px; font-size: 12px; color: var(--gray-text); letter-spacing: 0.06em; }
/* メニュー内の記事リスト：読み終えた人がそのまま次へ行けるように */
.kn-menu nav.kn-menu__notes { margin-top: 40px; gap: 0; }
/* 中身が日本語なので欧文書体は当てない（Playfairに和字が無く、別の書体へ落ちていた） */
.kn-menu__label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--gray-muted); margin: 0 0 8px; }
.kn-menu nav.kn-menu__notes a { display: flex; align-items: center; gap: 16px; padding: 14px 0; font-size: 14px; }
.kn-menu__thumb { flex: none; width: 48px; height: 60px; overflow: hidden; border-radius: 4px; background: var(--gray-bg); }
.kn-menu__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kn-menu__text { min-width: 0; }
.kn-menu__co { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--gray-muted); }
.kn-menu__ttl { margin-top: 4px; font-size: 14px; line-height: 1.6; letter-spacing: 0.03em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 36px; }
  .brand-reading { font-size: 10px; letter-spacing: 0.14em; padding-bottom: 0; }
  .header-nav { display: none; }
  .menu-button { display: inline-flex; }
}

/* ---------- 05 共通パーツ ---------- */
/* 大日付（シグネチャ）：大数字＝日、添えで年月 */
.bigdate { font-family: var(--font-en); font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.bigdate__day { display: block; font-size: var(--bigdate-size, clamp(56px, 7vw, 104px)); letter-spacing: -0.02em; line-height: 0.9; }
.bigdate__ym { display: block; margin-top: 0.35em; font-size: var(--bigdate-ym, 15px); letter-spacing: 0.08em; color: var(--gray-muted); }

/* ストーリーラベル：墨地白文字 */
.label { display: inline-block; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: 0.14em; line-height: 1; padding: 7px 10px 6px; border-radius: 2px; font-feature-settings: "palt" 1; }

/* ピル型ボタン：墨地白文字 */
.pill { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: 0.1em; line-height: 1; padding: 16px 26px; border-radius: 999px; transition: background-color var(--dur) var(--ease); }
.pill:hover { background: var(--blue); }
.pill .arrow { font-family: var(--font-en); font-weight: 700; }

/* カード：角丸8px・枠1px・影なし */
.card { background: var(--paper); border: 1px solid var(--ink); border-radius: 8px; }

/* 社名・氏名・肩書 */
.meta-company { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: 0.06em; line-height: 1.6; }
.meta-person { font-size: 13px; color: var(--gray-text); letter-spacing: 0.08em; line-height: 1.8; }
/* 本文と同じ太さ。400のためだけに1ウェイト分のフォントを落とさない */
.meta-person b { font-weight: 500; color: var(--ink); font-size: 16px; margin-left: 0.6em; }

/* メディア名のルビ（トップ最上部に必ず置く） */
.brand-ruby { font-size: 17px; letter-spacing: 0.06em; line-height: 1; ruby-position: over; ruby-align: start; }
.brand-ruby rt { font-size: 11px; letter-spacing: 0.1em; color: var(--gray-text); font-weight: 400; }

/* ヒーローコピー：トップ最上部の一行 */
.hero-copy { font-weight: 600; letter-spacing: 0.08em; line-height: 1.6; font-feature-settings: "palt" 1; }

/* 英字ラベル（ロゴの欧文に準拠・字間広め） */
.en-label { font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; color: var(--gray-muted); text-transform: uppercase; line-height: 1; }

/* ---------- 06 モーション（フェードのみ） ---------- */
.fade { opacity: 0; animation: fade-in 640ms var(--ease) forwards; }
.fade-2 { animation-delay: 120ms; }
.fade-3 { animation-delay: 240ms; }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; }
  * { transition-duration: 0ms !important; }
}

/* ---------- 下層共通 ---------- */
/* 下層ページ共通（カード・チップ・節・フッター・フォーム） */
.page-head { padding-top: clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; }
.page-head .count { margin-left: 14px; font-family: var(--font-en); font-weight: 700; font-variant-numeric: lining-nums; font-size: 0.8em; color: var(--gray-text); letter-spacing: 0.04em; }
.page-head__lead { margin-top: 16px; font-size: 14px; color: var(--gray-text); letter-spacing: 0.06em; }
.sec { padding-top: clamp(56px, 7vw, 96px); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec__title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.rcard { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.rcard .bigdate { --bigdate-size: 52px; --bigdate-ym: 12px; }
.rcard .bigdate__ym { color: var(--gray-text); }
.rcard__photo { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--ink); border-radius: 8px; }
.rcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.rcard__body { margin-top: 14px; }
.rcard__label { margin-bottom: 10px; }
.rcard__company { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.6; }
.rcard__title { margin-top: 6px; font-size: 14px; line-height: 1.8; letter-spacing: 0.03em; color: var(--gray-text); font-feature-settings: "palt" 1; }
.rcard:hover .rcard__title { text-decoration: underline; text-underline-offset: 0.25em; }

.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 4px; font-size: 13px; letter-spacing: 0.06em; line-height: 1; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip small { font-family: var(--font-en); font-weight: 700; font-variant-numeric: lining-nums; font-size: 12px; color: var(--gray-text); transition: color var(--dur) var(--ease); }
.chip:hover { background: var(--ink); color: #fff; }
.chip:hover small { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tags__rows { display: grid; gap: 8px; }
.tags__row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--gray-line); }
.tags__row:last-child { border-bottom: 1px solid var(--gray-line); }
.tags__name { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; }
.tags__note { margin-top: 14px; font-size: 12px; color: var(--gray-text); letter-spacing: 0.04em; }

/* About */
.about { padding-top: clamp(48px, 7vw, 104px); }
.about__title { font-size: 14px; letter-spacing: 0.12em; color: var(--gray-text); }
.about__title ruby { ruby-align: start; }
.about__title rt { font-size: 8px; letter-spacing: 0.06em; color: var(--gray-muted); }
.about__statement { margin-top: 36px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.7; letter-spacing: 0.06em; }
.about__text { margin-top: 28px; font-size: clamp(16px, 1.5vw, 19px); line-height: 2.1; letter-spacing: 0.05em; max-width: 49em; }
.about__contact { margin-top: clamp(72px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--gray-line); max-width: 560px; }
.about__contact h2 { font-size: 18px; font-weight: 600; letter-spacing: 0.12em; }
.about__contact > p { margin-top: 12px; font-size: 15px; line-height: 2; letter-spacing: 0.04em; }
.form { margin-top: 32px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; letter-spacing: 0.1em; }
.field__label small { margin-left: 8px; font-size: 10px; letter-spacing: 0.14em; color: var(--gray-text); }
.field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); font: inherit; font-size: 16px; letter-spacing: 0.04em; color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 0.3em; }
.form .pill { justify-self: start; }
.form__note { font-size: 13px; color: var(--gray-text); letter-spacing: 0.04em; line-height: 1.9; }

.site-footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--gray-line); padding: 40px 0 32px; }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer__brand img { height: 32px; width: auto; }
.site-footer__op { margin-top: 14px; font-size: 12px; letter-spacing: 0.08em; color: var(--gray-text); }
.site-footer__op a { text-decoration: underline; text-underline-offset: 0.3em; }
.site-footer__op a:hover { color: var(--blue); }
.site-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.08em; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.site-footer__copy { margin-top: 36px; font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--gray-muted); }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .tags__row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .site-footer__inner { flex-direction: column; }
}

/* ---------- トップ：FV（記録のカルーセル） ---------- */

  /* =====================================================
     FV D案「記録のカルーセル」— 大日付が送りになる
     ===================================================== */
  /* 1枚目（志ノオトの紹介） */
  .record__eyebrow { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--gray-text); line-height: 1; margin-bottom: 22px; }
  .record__title--brand { margin-top: 0; font-size: clamp(32px, 3.1vw, 46px); line-height: 1.45; letter-spacing: 0.06em; }
  .record__lead { margin-top: 26px; max-width: 30em; font-size: clamp(15px, 1.1vw, 16px); line-height: 2.1; letter-spacing: 0.04em; color: var(--gray-text); }

  /* ステージ：左44%＝文字面（shell内）／右56%＝写真を画面右端まで */
  .stage {
    --stage-h: clamp(560px, calc(100vh - var(--header-h) - 100px), 760px);
    margin-top: 20px;
    /* 左の余白はヘッダーのロゴと同じ位置。文字は画面幅に応じて広がり、残りを写真が右端まで使う */
    display: grid;
    grid-template-columns: var(--gutter) clamp(520px, 38vw, 820px) minmax(0, 1fr);
  }
  .stage__text { grid-column: 2; display: flex; flex-direction: column; min-height: var(--stage-h); padding-right: 48px; }
  .stage__photo { grid-column: 3; position: relative; height: var(--stage-h); overflow: hidden; background: var(--gray-bg); }
  .stage__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; opacity: 0; transition: opacity 900ms var(--ease); }
  .stage__photo img.is-active { opacity: 1; }

  /* 記録：同じセルに重ねて透過で切り替える（高さは最も高い記録に揃う） */
  .records { display: grid; flex: 1; align-content: center; }
  .record { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s linear 700ms; }
  .record.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
  .record .bigdate { --bigdate-size: clamp(96px, 9vw, 128px); --bigdate-ym: 18px; }
  .record .bigdate__day { letter-spacing: -0.03em; margin-left: -0.03em; }
  .record .bigdate__ym { color: var(--gray-text); letter-spacing: 0.1em; margin-top: 12px; }
  /* 肉声タイトル：約物を詰め（palt）、改行は語で指定する */
  .record__title { margin-top: 28px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; line-height: 1.5; letter-spacing: 0.03em; font-feature-settings: "palt" 1; }
  .record__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
  .record__meta { margin-top: 22px; }
  .record__meta .meta-company { font-size: 17px; }
  .record__cta { margin-top: 30px; }

  /* 索引：顔の小写真が送り。選択中は墨の枠、社名がその横に開く */
  .index { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--gray-line); display: flex; align-items: center; gap: 12px; }
  .index__btn { display: flex; align-items: center; gap: 0; padding: 0; font-family: var(--font-jp); text-align: left; }
  .index__btn img { display: block; width: 56px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid transparent; opacity: 0.55; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease); }
  .index__btn:hover img { opacity: 1; }
  .index__btn[aria-current="true"] img { opacity: 1; border-color: var(--ink); }
  .index__name { display: block; max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.5; color: var(--ink); transition: max-width 420ms var(--ease), opacity 420ms var(--ease), margin-left 420ms var(--ease); }
  .index__btn[aria-current="true"] .index__name { max-width: 16em; margin-left: 14px; opacity: 1; }
  .index__current { display: none; }
  /* 一時停止：コーポレートサイトと同じ丸ボタン（細枠・記号のみ） */
  .index__pause { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--gray-line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .index__pause:hover { border-color: var(--ink); }
  .ic-pause { display: block; width: 9px; height: 11px; position: relative; }
  .ic-pause::before, .ic-pause::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2.5px; background: currentColor; }
  .ic-pause::before { left: 0; }
  .ic-pause::after { right: 0; }
  .ic-play { display: block; width: 0; height: 0; margin-left: 2px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

  @media (max-width: 860px) {
    .stage { --stage-h: auto; grid-template-columns: 1fr; }
    .stage__photo { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 4 / 5; max-height: 58vh; width: 100%; }
    .stage__text { grid-column: 1; grid-row: 2; min-height: 0; padding: 28px var(--gutter) 0; }
    .record .bigdate { --bigdate-size: 76px; --bigdate-ym: 15px; }
    .record .bigdate__ym { margin-top: 8px; }
    .record__title { margin-top: 20px; font-size: 27px; line-height: 1.55; }
    .record__title--brand { margin-top: 0; font-size: 28px; }
    .record__lead { margin-top: 18px; font-size: 15px; line-height: 2; }
    .stage { margin-top: 12px; }
    .record__meta { margin-top: 18px; }
    .record__cta { margin-top: 24px; }
    .index { margin-top: 28px; gap: 10px; flex-wrap: wrap; }
    .index__name { display: none; }
    .index__current { display: block; width: 100%; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.5; }
    .index__btn { flex: none; }
    .index__btn img { width: 48px; height: 60px; }
    .index__name { font-size: 12px; }
    .index__btn[aria-current="true"] .index__name { margin-left: 10px; }
    .index__pause { flex: none; margin-left: auto; }
  }

/* ---------- トップ：FVの下 ---------- */

  /* ===== トップ：FVの下 ===== */

  /* 特集：縦書きの見出し＋横並び3本（日付が写真より先に目に入る） */
  .featured { display: grid; grid-template-columns: 56px 1fr; gap: 32px; }
  .featured__label { writing-mode: vertical-rl; font-size: 14px; font-weight: 600; letter-spacing: 0.3em; line-height: 1; padding-top: 56px; position: relative; }
  .featured__label::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 1px; background: var(--ink); transform: translateX(-50%); }

  /* 最新の記録：特集以外を自動で並べる（該当0本なら節ごと出ない）。カードは特集と同じ */

  /* タグから探す：墨一色のチップ */

  /* ステートメント＋取材のご相談 */
  .statement { padding-top: clamp(88px, 11vw, 144px); padding-bottom: clamp(72px, 9vw, 120px); }
  .statement__lead { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.7; letter-spacing: 0.06em; }
  .statement__text { margin-top: 22px; font-size: clamp(16px, 1.4vw, 18px); line-height: 2.1; letter-spacing: 0.05em; max-width: 46em; }
  .statement__link { margin-top: 28px; font-size: 14px; letter-spacing: 0.08em; }

  /* フッター：白地・細罫 */

  @media (max-width: 860px) {
    .featured { grid-template-columns: 40px 1fr; gap: 16px; }
  }

/* ---------- 記事ページ ---------- */

  /* ===== 記事ページ ===== */
  /* 扉：FVと同じ構図（左＝言葉、右＝写真を右端まで） */
  .ah { --ah-h: clamp(520px, calc(100vh - var(--header-h) - 140px), 680px); width: min(100% - var(--gutter) * 2, var(--article-w)); margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .ah__text { grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: var(--ah-h); padding-right: 48px; }
  .ah__photo { grid-column: 2; height: var(--ah-h); overflow: hidden; background: var(--gray-bg); border-radius: 8px; }
  .ah__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
  .ah .bigdate { --bigdate-size: clamp(96px, 9vw, 128px); --bigdate-ym: 18px; }
  .ah .bigdate__day { letter-spacing: -0.03em; margin-left: -0.03em; }
  .ah .bigdate__ym { color: var(--gray-text); letter-spacing: 0.1em; margin-top: 12px; }
    /* 文字サイズの上下限は、原稿で指定した改行がどの画面幅でも守られるように決めている。
     1行あたり全角12文字までが入る値。これより長い行を指定すると、勝手に折り返す */
  .ah__title { margin-top: 28px; font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; line-height: 1.5; letter-spacing: 0.03em; font-feature-settings: "palt" 1; text-wrap: pretty; }
  .ah__meta { margin-top: 22px; }
  .ah__meta .meta-company { font-size: 17px; }
  .ah__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }

  /* 本文＋サイド */
  /* 本文は1カラムで中央。行長は全角38字前後（DESIGN §6） */
  /* 本文＋サイドバーの2カラム。本文の行長は全角46字前後、サイドバーは追従する */
  .article { width: min(100% - var(--gutter) * 2, var(--article-w)); margin: clamp(56px, 7vw, 96px) auto 0;
             display: grid; grid-template-columns: minmax(0, 48em) 300px; justify-content: space-between; column-gap: 72px; }
  .body { font-size: 17px; line-height: 2.05; letter-spacing: 0.04em; font-weight: 500; }
  .body p { margin: 0 0 1.5em; }
  .body p.q { text-indent: -0.5em; }
  .body .ch { margin: 3.4em 0 1.5em; display: grid; gap: 6px; }
  .body .ch:first-child { margin-top: 0; }
  .body .ch__no { font-size: 12px; letter-spacing: 0.24em; color: var(--gray-text); font-weight: 400; }
  .body .ch__title { font-size: 22px; font-weight: 600; line-height: 1.6; letter-spacing: 0.06em; }
  .body figure { margin: 2.6em 0; }
  .body figure img { width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 8px; }
  .body figure.fig--small img { width: auto; max-width: 100%; }
  .body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--gray-text); letter-spacing: 0.04em; }
  .closing { margin-top: 4em; padding-top: 2.2em; border-top: 1px solid var(--gray-line); }
  .closing h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; margin: 0 0 1em; }
  .closing h3 + p, .closing p { font-size: 15.5px; line-height: 2; margin: 0 0 0.7em; }
  .closing h3:not(:first-child) { margin-top: 2.4em; }
  .credit { margin-top: 3em; font-size: 13px; line-height: 1.9; color: var(--gray-text); letter-spacing: 0.04em; }

  /* 右のサイドバー。読みながら次の記事へ行けるよう画面に追従させる */
  .side { position: sticky; top: 32px; align-self: start; font-size: 14px; }
  .side__lead { font-size: 15px; font-weight: 600; line-height: 1.8; letter-spacing: 0.04em; }
  .side__statement { margin-top: 10px; font-size: 13px; line-height: 2; letter-spacing: 0.03em; color: var(--gray-text); }
  .side__link { margin-top: 14px; font-size: 13px; letter-spacing: 0.06em; }
  .side__head { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--gray-line); font-size: 12px; letter-spacing: 0.24em; color: var(--gray-text); }
  .side ul { margin-top: 14px; display: grid; gap: 14px; }
  .side li a, .side li { display: flex; align-items: baseline; gap: 12px; }
  .side li[aria-current="page"] { color: var(--gray-muted); }
  .side__day { font-family: var(--font-en); font-weight: 700; font-variant-numeric: lining-nums; font-size: 24px; line-height: 1; white-space: nowrap; }
  .side__day small { font-size: 10px; letter-spacing: 0.08em; margin-left: 6px; }
  .side__co { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; }
  .side li a:hover .side__co { text-decoration: underline; text-underline-offset: 0.25em; }

  /* 次に読む */
  .next { width: min(100% - var(--gutter) * 2, var(--article-w)); margin: clamp(80px, 10vw, 128px) auto 0; }
  .next__title { font-size: 20px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 32px; }


  @media (max-width: 1080px) {
    .article { grid-template-columns: 1fr; row-gap: 64px; }
    .side { position: static; margin-top: 1em; padding-top: 2.4em; border-top: 1px solid var(--gray-line); }
  }
  @media (max-width: 860px) {
    .ah { --ah-h: auto; width: auto; margin: 16px 0 0; grid-template-columns: 1fr; }
    .ah__text { grid-column: 1; min-height: 0; padding: 0 var(--gutter); }
    .ah__photo { grid-column: 1; height: auto; aspect-ratio: 4 / 5; max-height: 58vh; margin-top: 28px; border-radius: 0; }
    .ah .bigdate { --bigdate-size: 76px; --bigdate-ym: 15px; }
    .ah .bigdate__ym { margin-top: 8px; }
    /* 280pxの折りたたみ端末でも、指定した改行が守られる大きさ（全角12文字まで） */
    .ah__title { margin-top: 20px; font-size: clamp(18px, 6.7vw, 27px); line-height: 1.55; }
    .ah__tags { margin-top: 22px; }
    .article { margin-top: 40px; }
    .body { font-size: 16px; line-height: 2.0; }
    .body h2 { font-size: 23px; }
    .body h2 .ch__no { font-size: 15px; }
    .body h2 .ch__title { font-size: 23px; }
  }

/* ---------- プライバシーポリシー（コーポレートと共通） ---------- */

.privacy-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 40px 88px;
}

.privacy-note .eyebrow {
  margin-bottom: 26px;
}

.privacy-note h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
}

.privacy-note p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--muted);
  max-width: 40em;
}


/* ---------- WordPress 本文ブロック ---------- */
.body .wp-block-image { margin: 2.6em 0; }
.body .wp-block-image img { width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 8px; }
.body .wp-block-image figcaption, .body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--gray-text); letter-spacing: 0.04em; text-align: left; }
.body .wp-block-image figcaption::before { content: "写真："; }
.body .wp-block-quote { margin: 2.4em 0; padding: 0 0 0 1.2em; border-left: 1px solid var(--ink); }
.body .wp-block-quote p { margin-bottom: 0.8em; }
.body .wp-block-quote cite { font-size: 13px; color: var(--gray-text); font-style: normal; }
.body h2 { margin: 4em 0 1.6em; display: grid; gap: 10px; font-size: 27px; font-weight: 600; line-height: 1.6; letter-spacing: 0.06em; }
.body h2:first-child { margin-top: 0; }
.body h2 .ch__no { font-size: 16px; letter-spacing: 0.2em; color: var(--ink); font-weight: 600; }
.body h2 .ch__title { font-size: 27px; font-weight: 600; line-height: 1.6; letter-spacing: 0.06em; }
.body h3 { margin: 3em 0 1.2em; font-size: 17px; font-weight: 600; letter-spacing: 0.14em; }
.body h3 + p { font-size: 15.5px; }
.body .wp-block-separator { margin: 3.2em auto; width: 64px; border: 0; border-top: 1px solid var(--ink); }
.body .wp-block-separator.is-style-wide { width: 100%; }
.body ul, .body ol { margin: 1.8em 0; padding-left: 1.6em; }
.body ul { list-style: disc; }
.body ol { list-style: decimal; }
.body li { margin-bottom: 0.6em; padding-left: 0.2em; }
.body li::marker { color: var(--gray-text); }
.body .wp-block-pullquote { margin: 3em 0; padding: 1.6em 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: left; }
.body .wp-block-pullquote p { font-size: 21px; line-height: 1.9; letter-spacing: 0.04em; }
.body .wp-block-pullquote cite { display: block; margin-top: 0.8em; font-size: 13px; color: var(--gray-text); font-style: normal; }
.body .wp-block-table { margin: 2.6em 0; overflow-x: auto; }
.body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.body .wp-block-table th, .body .wp-block-table td { padding: 12px 14px; border: 1px solid var(--gray-line); text-align: left; line-height: 1.8; }
.body .wp-block-table th { background: var(--gray-bg); font-weight: 600; }
.body .wp-block-embed, .body .wp-block-video { margin: 2.6em 0; }
.body .wp-block-embed__wrapper { position: relative; }
.body .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { padding-top: 56.25%; }
.body .wp-block-embed.wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body .wp-block-embed iframe, .body .wp-block-video video { max-width: 100%; border-radius: 8px; }
.body .wp-block-gallery { margin: 2.6em 0; }
.body .wp-block-gallery img { border: 1px solid var(--ink); border-radius: 8px; }
.body .wp-block-audio { margin: 2.6em 0; }
.body .wp-block-audio audio { width: 100%; }
.body a { text-decoration: underline; text-underline-offset: 0.25em; }
.body a:hover { color: var(--blue); }
.page-body { max-width: 39.5em; font-size: 16px; line-height: 2; }
.page-body p { margin: 0 0 1.4em; }
.empty { font-size: 15px; line-height: 2; letter-spacing: 0.04em; }
.hp { position: absolute; left: -9999px; }
.form-notice { margin-top: 20px; padding: 20px 0; border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); font-size: 15px; line-height: 2; }
.form-notice--error { color: #8a1f1f; }
.index__blank { display: block; width: 56px; height: 70px; border-radius: 6px; background: var(--gray-bg); }
/* ページ送り */
.pagination { margin-top: clamp(48px, 6vw, 80px); }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; font-family: var(--font-en); font-weight: 700; font-variant-numeric: lining-nums; font-size: 15px; letter-spacing: 0.06em; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--gray-line); border-radius: 4px; color: var(--gray-text); }
.pagination .page-numbers.current { color: var(--ink); border-color: var(--ink); }
.pagination .page-numbers:hover { color: var(--ink); border-color: var(--ink); }
.pagination .prev, .pagination .next { font-family: var(--font-jp); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 記事ページのサイドの文 */
.side__lead { font-size: 15px; font-weight: 600; line-height: 1.8; letter-spacing: 0.04em; }
.side__statement { margin-top: 10px; font-size: 13px; line-height: 2; letter-spacing: 0.03em; color: var(--gray-text); }
.statement__link { margin-top: 28px; font-size: 14px; letter-spacing: 0.08em; }

/* プライバシーポリシー本文（コーポレートと同じ組み） */
.privacy-body { max-width: 70ch; font-size: 15px; line-height: 2; }
.privacy-body h2 { font-size: 17px; font-weight: 600; margin: 36px 0 8px; letter-spacing: 0.06em; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.privacy-body p, .privacy-body li { font-size: 15px; line-height: 2; }
.privacy-body .privacy-intro { margin-bottom: 8px; }
.privacy-body ul { list-style: disc; padding-left: 1.5em; margin: 0; }
.privacy-body ol { list-style: decimal; padding-left: 1.8em; margin: 0; }
.privacy-body li { padding-left: 0.2em; }
.privacy-body li::marker { color: var(--gray-text); }
.privacy-body ul + h3, .privacy-body ol + p, .privacy-body ul + p { margin-top: 12px; }
.privacy-body a { text-decoration: underline; text-underline-offset: 0.25em; }
.privacy-body a:hover { color: var(--blue); }
.privacy-dl { margin: 6px 0 0; }
.privacy-dl div { display: grid; grid-template-columns: 8em 1fr; gap: 8px; }
.privacy-dl dt { color: var(--gray-text); }
.privacy-date { margin-top: 40px; color: var(--gray-text); }

/* ---------- 印刷（記事を紙にして取材先へ渡す場面を想定） ---------- */

@media print {
  @page { margin: 16mm 14mm; }

  /* 画面の中でしか意味がないものは紙に出さない */
  .menu-button,
  .nav-fab,
  .kn-menu,
  .crumbs,
  .header-nav,
  .side,
  .next,
  .site-footer__nav,
  .ah__tags,
  .skip-link { display: none !important; }

  html, body { background: #fff; color: #000; }
  body { font-size: 10.5pt; line-height: 1.85; }
  a { color: #000; text-decoration: none; }

  .site-header__inner { height: auto; padding: 0 0 6mm; }
  .brand img { height: 9mm; width: auto; }

  /* 扉：画面用の高さ指定を解く。そのままだと1枚目がほぼ空白になり、写真も出ない */
  .ah { --ah-h: auto; display: block; width: auto; margin: 0; }
  .ah__text { display: block; min-height: 0; padding: 0; }
  .ah .bigdate { --bigdate-size: 32pt; --bigdate-ym: 9pt; }
  .ah__title { margin-top: 4mm; font-size: 17pt; line-height: 1.5; }
  .ah__meta { margin-top: 3mm; }
  .ah__meta .meta-company { font-size: 11pt; }
  /* 紙の幅は860px以下と判定されるため、スマホ用の aspect-ratio 4/5 が効いてしまう。解除する */
  .ah__photo { width: 100%; height: 82mm; aspect-ratio: auto; max-height: none; margin-top: 5mm;
    background: none; border-radius: 0; overflow: hidden; break-inside: avoid; }
  .ah__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

  /* 本文：1カラムにして、見出しと写真が変な位置で切れないようにする */
  .article { display: block; width: auto; margin-top: 7mm; }
  .body { font-size: 10.5pt; line-height: 1.85; }
  .body p { orphans: 2; widows: 2; }
  .body h2 { margin: 8mm 0 3mm; gap: 2mm; break-after: avoid; break-inside: avoid; }
  .body h2 .ch__no { font-size: 9pt; }
  .body h2 .ch__title { font-size: 13pt; }
  .body h3 { margin: 5mm 0 2mm; font-size: 11pt; break-after: avoid; }
  .body .wp-block-image { margin: 5mm 0; break-inside: avoid; }
  .body .wp-block-image img { width: auto; max-width: 100%; max-height: 95mm; border: 1px solid #999; }
  .body .wp-block-image figcaption, .body figcaption { font-size: 8.5pt; color: #444; }
  .body .wp-block-quote, .body .wp-block-pullquote, .body .wp-block-table { break-inside: avoid; }
  .body .wp-block-separator { border-top-color: #000; }

  /* 紙だけを見た人が出どころを追えるように */
  .site-footer { margin-top: 8mm; padding-top: 4mm; border-top: 1px solid #000; }
  .site-footer__inner { display: block; }
  .site-footer__brand img { height: 7mm; width: auto; }
  .site-footer__copy { font-size: 8.5pt; }
  .site-footer__copy::after { content: " ／ https://kokorozashi-note.jp"; }
}
