/* お知らせ — 記事ページと一覧ページ（issue #30）
 *
 * LP と同じ道具立て（1440 のカラム / 罫線 / Zen Kaku Gothic）で, 組みだけ素直にする.
 * ⚠️ **先方が管理画面から書く唯一の場所.** 見出しの深さも画像の枚数も決められないので,
 *    ブロックエディタが吐くものを一通り受ける → issue #2
 * ⚠️ 記事は日本語のみ. 英語版は作らない（2026-09-27 確定）
 */

:root {
  --report-col: 880px;        /* 本文の版面. これ以上広げると 1 行が長すぎる */
  --report-pad: 60px;         /* 面の左右のアキ */
  --report-body: 16px;
  --report-lh: 1.9;
}

@media (max-width: 1279px) {
  :root { --report-pad: 40px; --report-body: 15px; }
}

@media (max-width: 767px) {
  :root { --report-pad: 18px; --report-body: 15px; --report-col: 100%; }
}

/* 記事は**読む**画面なので版面を 880px に絞る */
.report > * {
  box-sizing: border-box;
  max-width: var(--report-col);
  margin-inline: auto;
  padding-inline: var(--report-pad);
}

/* ⚠️ 一覧は**見渡す**画面なので絞らない（2026-09-28）.
 * 880px に入れるとカードが 200px まで痩せて, タイトルがほとんど … になっていた */
.report-archive > * {
  box-sizing: border-box;
  padding-inline: var(--report-pad);
}

/* -- パンくず ------------------------------------------------------------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-small);
  color: var(--ink-label);
}

/* 区切りの / は文字で置く. 画像にしない */
.crumbs li + li::before { content: "/"; margin-right: 0.6em; }
.crumbs a { color: var(--ink-label); text-decoration: none; }
.crumbs a:hover,
.crumbs a:focus-visible { color: var(--ink-black); text-decoration: underline; }

/* ⚠️ 記事タイトルは長い. パンくずの最後だけ 1 行で省略する */
.crumbs li:last-child span {
  display: inline-block;
  max-width: 28em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* -- 記事 ----------------------------------------------------------------- */

.report-head { padding-top: 54px; padding-bottom: 8px; }

.report-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 0;
}

.report-date {
  font-size: var(--size-date, 20px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 区分. 罫で囲むだけにして, 色は足さない */
.report-kind {
  padding: 4px 12px;
  border: var(--rule) solid var(--rule-color);
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  color: var(--ink-black);
  text-decoration: none;
}

.report-kind:hover,
.report-kind:focus-visible { background: var(--ink-black); color: var(--paper-white); }

.report-title {
  margin: 18px 0 0;
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  /* ⚠️ 絵文字入りのタイトルが来る. 途中で切らず, どこでも折り返してよい */
  overflow-wrap: anywhere;
}

.report-hero { margin: 40px auto 0; }
.report-hero img { display: block; width: 100%; height: auto; }

.report-body { padding-top: 40px; padding-bottom: 60px; }

/* -- 本文（ブロックエディタが吐くもの）------------------------------------ */

.entry {
  font-size: var(--report-body);
  line-height: var(--report-lh);
  letter-spacing: 0.03em;
}

.entry > * { margin-block: 0; }
.entry > * + * { margin-top: 1.6em; }

.entry h2,
.entry h3,
.entry h4 {
  margin-top: 2.2em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.entry h2 { font-size: calc(var(--report-body) * 1.5); padding-bottom: 0.5em; border-bottom: var(--rule) solid var(--rule-color); }
.entry h3 { font-size: calc(var(--report-body) * 1.25); }
.entry h4 { font-size: calc(var(--report-body) * 1.1); }

.entry a { color: var(--ink-accent); text-underline-offset: 0.2em; }

/* ⚠️ base.css が ul / ol の行頭記号を消している. 本文の中だけ戻す */
.entry ul { list-style: disc; padding-left: 1.6em; }
.entry ol { list-style: decimal; padding-left: 1.6em; }
.entry li { display: list-item; }
.entry li + li { margin-top: 0.4em; }

/* ⚠️ 画像は版面の幅に合わせる. 原寸が小さいものは引き伸ばさない */
.entry img { max-width: 100%; height: auto; }
.entry figure { margin-inline: 0; }

.entry figcaption {
  margin-top: 0.8em;
  font-size: var(--size-small);
  line-height: 1.7;
  color: var(--ink-label);
}

.entry blockquote {
  padding-left: 1.2em;
  border-left: 3px solid var(--paper-tint-2);
  color: #444;
}

.entry table { width: 100%; border-collapse: collapse; font-size: var(--size-small); }
.entry th,
.entry td { padding: 10px 12px; border: var(--rule) solid var(--paper-tint-2); text-align: left; }

/* ⚠️ 長い URL がそのまま貼られても, 面の外へ出さない */
.entry { overflow-wrap: anywhere; }

/* -- 記事の下 ------------------------------------------------------------- */

.report-foot {
  padding-top: 34px;
  padding-bottom: 70px;
  border-top: var(--rule) solid var(--rule-color);
}

.report-back { margin: 0; }

.report-back a {
  display: inline-block;
  padding: 12px 28px;
  border: var(--rule) solid var(--rule-color);
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  color: var(--ink-black);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.report-back a:hover,
.report-back a:focus-visible { background: var(--ink-black); color: var(--paper-white); }

.report-sibling {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  font-size: var(--size-small);
  line-height: 1.7;
}

.report-sibling__next { text-align: right; }
.report-sibling a { color: var(--ink-black); text-decoration: none; }
.report-sibling a:hover,
.report-sibling a:focus-visible { text-decoration: underline; }

@media (max-width: 767px) {
  .report-sibling { grid-template-columns: 1fr; }
  .report-sibling__next { text-align: left; }

  /* ⚠️ レールが右上に固定されている. パンくずはその高さに重なるので, 幅を空ける */
  .crumbs { padding-right: var(--rail-w); }
}

/* -- 一覧 ----------------------------------------------------------------- */

/* ⚠️ 記事が 1 ページに収まるとページ送りが出ないので, **下のアキが誰も持たない**.
 * 面に持たせる（2026-09-28） */
.report-archive { padding-bottom: 90px; }

.report-archive__head { padding-top: 54px; }

.report-archive__title {
  margin: 26px 0 0;
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.report-archive__note { margin: 14px 0 0; font-size: var(--size-small); color: var(--ink-label); }

.report-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
}

.report-kinds__item {
  padding: 8px 18px;
  border: var(--rule) solid var(--rule-color);
  font-size: var(--size-small);
  letter-spacing: 0.06em;
  color: var(--ink-black);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.report-kinds__item:hover,
.report-kinds__item:focus-visible,
.report-kinds__item.is-current { background: var(--ink-black); color: var(--paper-white); }

/* カードの組みは LP の sec-news と共通（sections.css）. ここでは面の余白だけ.
 * ⚠️ 1 枚ずつ枠を持つ形になったので, 一覧側で padding を足す必要はない */
.report-archive > .news-list { margin-top: 34px; }
.report-empty { padding-block: 40px; color: var(--ink-label); }

/* ページ送り */
.report-archive .navigation.pagination { padding-top: 24px; }

.report-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.report-archive .page-numbers {
  min-width: 42px;
  padding: 9px 10px;
  border: var(--rule) solid var(--rule-color);
  font-size: var(--size-small);
  text-align: center;
  color: var(--ink-black);
  text-decoration: none;
}

.report-archive .page-numbers.current,
.report-archive .page-numbers:hover,
.report-archive .page-numbers:focus-visible { background: var(--ink-black); color: var(--paper-white); }
.report-archive .page-numbers.dots { border-color: transparent; }
