/* 柔道整復師とは（/jusei/）：国立国会図書館の古い図版を、年表の流れに沿って見せる。
   色と文字は style.css の変数（勝色・畳色・Shippori／BIZ UDPGothic）をそのまま使う。 */

/* 図版の共通：古い紙の色に合わせ、写真の枠より「掛け軸・額」に近い控えめな縁取り */
.ndl-hero, .tl-figs figure { margin: 0; }
.ndl-hero img, .tl-figs img {
  display: block; width: 100%; height: auto;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(23 37 63 / 0.04), 0 10px 24px -14px rgb(23 37 63 / 0.35);
}
.ndl-hero figcaption, .tl-figs figcaption { margin-top: 8px; display: grid; gap: 2px; }
.ndl-what { font-size: 0.9375rem; color: var(--sumi); line-height: 1.6; }
.ndl-cite { font-size: var(--fs-sm); color: var(--nibi); line-height: 1.6; }
.ndl-cite a { color: var(--nibi); }

/* 冒頭の絵巻：本文の幅いっぱいに。上下に畳色の細い線を引いて、巻物らしく */
.ndl-hero { margin-bottom: 2.4em; padding: 14px 0; border-top: 3px double var(--tatami); border-bottom: 3px double var(--tatami); }

/* 年表の中の図版。li の2列目（年の右）に入る */
.timeline li > div > p { margin: 0; }
.tl-figs { margin-top: 14px; display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.tl-figs.is-one { grid-template-columns: minmax(0, 300px); }
.tl-figs img { max-height: 420px; object-fit: contain; }

/* 末尾の出典の説明 */
.ndl-note { margin-top: 2.4em; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--tatami); }
.ndl-note p { margin: 0; font-size: 0.9375rem; }
.ndl-note p + p { margin-top: 6px; }
.ndl-note-title { font-weight: 700; color: var(--kachi); }

@media (max-width: 560px) {
  .tl-figs.is-one { grid-template-columns: minmax(0, 240px); }
  .tl-figs img { max-height: 360px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tl-figs img { transition: box-shadow 0.2s ease; }
  .tl-figs a:hover img { box-shadow: 0 14px 30px -14px rgb(23 37 63 / 0.45); }
}
