/* =============================================================
   台所の覚え書き — 和書の料理本の体裁
   刷り紙一色に振り切る。本文は明朝、分量はゴシック、
   差し色は朱。レシピの頁は見開き（左＝写真の頁／右＝本文の頁）。
   印刷物に寄せた意匠なので、暗色テーマは持たない。
   ============================================================= */

:root {
  /* 紙と墨 */
  --desk: #e7e1d3;
  --paper: #fbf9f4;
  --kinari: #f1ebdd;
  --sumi: #1c1a17;
  --sumi-2: #575147;
  --sumi-3: #8a8275;
  --rule: #ddd6c6;
  --rule-2: #c2b8a3;

  /* 差し色：朱 */
  --shu: #b23a2b;
  --shu-pale: #f2e0dc;

  /* 火加減（差し色とは別系統の意味色） */
  --heat-off: #97907f;
  --heat-low: #c99a2a;
  --heat-mid: #cf6a2c;
  --heat-high: #b23a2b;
  --heat-rest: #5c8199;

  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', 'MS PMincho', serif;
  --gothic: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--desk);
  color: var(--sumi);
  font-family: var(--mincho);
  font-size: 16.5px;
  line-height: 2.05;
  font-feature-settings: 'palt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--shu);
}

:focus-visible {
  outline: 2px solid var(--shu);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ================================================================ 表紙 */

.cover {
  position: relative;
  height: clamp(26rem, 66vh, 36rem);
  overflow: hidden;
  background: var(--sumi);
}

.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 17, 14, 0.72) 0%, rgba(20, 17, 14, 0.35) 46%, rgba(20, 17, 14, 0.12) 100%);
}

/* 題簽（表紙に貼った題名の紙片） */
.cover-slip {
  position: absolute;
  top: 50%;
  left: clamp(1.5rem, 7vw, 5.5rem);
  transform: translateY(-50%) rotate(-0.8deg);
  padding: clamp(1.6rem, 3vw, 2.3rem) clamp(0.9rem, 2vw, 1.3rem);
  background: var(--paper);
  background-image: var(--grain);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24), 0 16px 34px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.7rem;
}

.cover-slip::after {
  content: '';
  position: absolute;
  inset: 0.4rem;
  border: 1px solid var(--rule-2);
  pointer-events: none;
}

.slip-title {
  writing-mode: vertical-rl;
  margin: 0;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  letter-spacing: 0.2em;
  line-height: 1.25;
  color: var(--sumi);
  max-height: 22rem;
}

.slip-kicker,
.slip-author {
  writing-mode: vertical-rl;
  margin: 0;
  font-family: var(--gothic);
  color: var(--sumi-3);
}

.slip-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  align-self: flex-start;
  padding-top: 0.3rem;
}

.slip-author {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  align-self: flex-end;
  padding-bottom: 0.3rem;
}

/* 帯 */

.band {
  background: var(--kinari);
  background-image: var(--grain);
  border-bottom: 1px solid var(--rule-2);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.band-text {
  margin: 0;
  flex: 1 1 22rem;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--sumi-2);
}

.band-count {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--shu);
  white-space: nowrap;
}

/* ------------------------------------------------------------ 検索・絞込み */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1.4rem;
}

.search {
  flex: 1 1 15rem;
}

.search input {
  width: 100%;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  font-family: var(--gothic);
  font-size: 0.86rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  background: transparent;
  color: var(--sumi-2);
  font-family: var(--gothic);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--shu);
  color: var(--shu);
}

.chip.is-active {
  background: var(--shu);
  border-color: var(--shu);
  color: var(--paper);
}

/* ================================================================ 目次 */

.toc {
  background: var(--paper);
  background-image: var(--grain);
  border: 1px solid var(--rule-2);
  box-shadow: 0 1px 2px rgba(40, 32, 22, 0.06), 0 14px 34px rgba(40, 32, 22, 0.09);
  padding: clamp(1.8rem, 4vw, 3.4rem) clamp(1.2rem, 4vw, 3.4rem);
}

.toc-head {
  margin: 0 0 2.4rem;
  text-align: center;
  font-weight: 400;
}

.toc-head span {
  display: inline-block;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  color: var(--sumi-2);
  padding: 0 1.4rem;
}

.toc-head span::before,
.toc-head span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2.2rem;
  height: 1px;
  background: var(--rule-2);
}

.toc-head span::before {
  right: 100%;
}

.toc-head span::after {
  left: 100%;
}

.chapter + .chapter {
  margin-top: 3.2rem;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px double var(--sumi);
  font-weight: 400;
}

.chapter-no {
  flex: 0 0 auto;
  font-family: var(--gothic);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--shu);
  white-space: nowrap;
}

.chapter-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.chapter-count {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--gothic);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--sumi-3);
  white-space: nowrap;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  border-bottom: 1px solid var(--rule);
}

.row > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0.8rem, 4rem) auto;
  align-items: center;
  gap: 0 1.1rem;
  padding: 1.05rem 0.1rem;
  text-decoration: none;
  color: inherit;
}

.row > a:hover .row-title {
  color: var(--shu);
}

.row-thumb {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border: 1px solid var(--rule-2);
}

.row-thumb--none {
  display: block;
  background: var(--kinari);
}

.row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.row-title {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  line-break: strict;
  transition: color 0.15s ease;
}

.row-summary {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--sumi-2);
}

.row-meta {
  font-family: var(--gothic);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--sumi-3);
}

.row-lead {
  align-self: end;
  margin-bottom: 0.7rem;
  border-bottom: 1px dotted var(--rule-2);
}

.row-page {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--sumi-2);
  white-space: nowrap;
}

.row-empty,
.no-hit {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--sumi-3);
}

/* ================================================================ 奥付 */

.colophon {
  margin: 3rem 0 4rem;
  padding: 1.8rem clamp(1.2rem, 4vw, 2.4rem);
  border: 1px solid var(--rule-2);
  background: var(--paper);
  background-image: var(--grain);
}

.colophon-head {
  margin: 0 0 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--sumi-2);
}

.colophon-sub {
  margin: 1.7rem 0 0.5rem;
  font-family: var(--gothic);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sumi-3);
}

.colophon-list {
  margin: 0;
  display: grid;
  gap: 0.3rem 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.colophon-list > div {
  display: flex;
  gap: 1rem;
  font-size: 0.84rem;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 0.3rem;
}

.colophon-list dt {
  flex: 0 0 3.6rem;
  font-family: var(--gothic);
  font-size: 0.72rem;
  color: var(--sumi-3);
  padding-top: 0.15rem;
}

.colophon-list dd {
  margin: 0;
}

.credits {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--sumi-2);
}

/* ============================================================== 見返し */

.endpaper {
  background: var(--kinari);
  background-image: var(--grain);
  border-bottom: 1px solid var(--rule-2);
}

.endpaper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  max-width: 92rem;
}

.back {
  font-family: var(--gothic);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.back::before {
  content: '←';
  margin-right: 0.45em;
}

.endpaper-book {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--sumi-3);
}

/* ============================================================== 見開き */

.book {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 92rem;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(40, 32, 22, 0.08), 0 22px 60px rgba(40, 32, 22, 0.14);
}

@media (min-width: 56rem) {
  .book {
    grid-template-columns: 1fr 1fr;
  }

  .book--noplate {
    grid-template-columns: 1fr;
    max-width: 52rem;
  }
}

/* 左：写真の頁 */

.plate {
  background: var(--sumi);
}

@media (min-width: 56rem) {
  .plate {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
  }
}

.plate-figure {
  margin: 0;
  position: relative;
  height: 100%;
}

.plate-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: 58vh;
}

@media (min-width: 56rem) {
  .plate-figure img {
    aspect-ratio: auto;
    max-height: none;
  }
}

.plate-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.9rem;
  padding: 3.4rem 1.4rem 1rem;
  background: linear-gradient(to top, rgba(18, 15, 12, 0.88) 0%, rgba(18, 15, 12, 0.6) 45%, transparent 100%);
  font-family: var(--gothic);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(255, 253, 247, 0.95);
}

.plate-credit {
  color: rgba(255, 253, 247, 0.72);
}

/* 右：本文の頁 */

.leaf {
  position: relative;
  background: var(--paper);
  background-image: var(--grain);
}

/* ノド（見開きの中央の陰） */
@media (min-width: 56rem) {
  .leaf::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3rem;
    background: linear-gradient(to right, rgba(60, 48, 34, 0.13), rgba(60, 48, 34, 0));
    pointer-events: none;
  }
}

.leaf-inner {
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.4rem, 4.5vw, 3.6rem);
  max-width: 40rem;
  margin: 0 auto;
}

/* 柱（縦書き） */
.hashira {
  display: none;
}

@media (min-width: 72rem) {
  .hashira {
    display: block;
    position: absolute;
    top: 3.4rem;
    right: 1.2rem;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--sumi-3);
  }
}

/* -------------------------------------------------------------- 扉まわり */

.recipe-head {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.recipe-chapter {
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--gothic);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--sumi-3);
}

.recipe-no {
  color: var(--shu);
  letter-spacing: 0.14em;
}

.recipe-no::before {
  content: '';
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--rule-2);
  vertical-align: middle;
  margin-right: 0.9rem;
}

.recipe-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.62rem, 3.1vw, 2.25rem);
  line-height: 1.55;
  letter-spacing: 0.05em;
  /* 日本語を文節で折り返す（対応ブラウザのみ。非対応でも従来どおり） */
  word-break: auto-phrase;
  line-break: strict;
}

.recipe-sub {
  margin: 1.1rem 0 0;
  color: var(--sumi-2);
  font-size: 0.95rem;
  line-height: 2;
}

.facts {
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  padding: 1rem 0 0;
  border-top: 1px dotted var(--rule-2);
}

.facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.facts dt {
  font-family: var(--gothic);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sumi-3);
}

.facts dd {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.made-on {
  margin: 1.2rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--sumi-3);
}

/* -------------------------------------------------------------- 各項目 */

.block {
  padding: 2.6rem 0 0;
}

.block--lead {
  padding-top: 1.9rem;
  color: var(--sumi-2);
}

.block-title {
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 400;
}

.block-title span {
  flex: 0 0 auto;
  background: var(--sumi);
  color: var(--paper);
  padding: 0.28em 1.25em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-2);
}

.block p {
  margin: 0 0 1.1rem;
}

.block p:last-child {
  margin-bottom: 0;
}

.block h3 {
  margin: 2rem 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--shu);
}

.block--notes ul,
.block--notes ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.block--notes li {
  margin-bottom: 0.45rem;
}

blockquote {
  margin: 1.3rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--rule-2);
  color: var(--sumi-2);
}

code {
  font-family: var(--gothic);
  font-size: 0.9em;
  background: var(--kinari);
  padding: 0.1em 0.4em;
}

/* -------------------------------------------------------------------- 材料 */

.ing-box {
  padding: 1.5rem 1.6rem;
  background: var(--kinari);
  border-top: 3px double var(--sumi-3);
  border-bottom: 3px double var(--sumi-3);
}

.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredients li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.34rem 0;
  border-bottom: 1px dotted var(--rule-2);
  font-size: 0.94rem;
}

.ingredients li:last-child {
  border-bottom: 0;
}

.ing-name {
  flex: 0 1 auto;
  word-break: auto-phrase;
  line-break: strict;
}

.ing-lead {
  flex: 1 1 auto;
  min-width: 1rem;
  border-bottom: 1px dotted var(--rule-2);
  transform: translateY(-0.25em);
}

/* 狭い画面では点リーダーを詰めて、材料名に行幅を譲る */
@media (max-width: 30rem) {
  .ing-lead {
    min-width: 0.4rem;
  }
}

.ing-qty {
  flex: 0 0 auto;
  font-family: var(--gothic);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--sumi);
  white-space: nowrap;
}

.ing-group {
  margin: 1.5rem 0 0.4rem !important;
  font-size: 0.8rem !important;
  font-family: var(--gothic);
  font-weight: 500;
  letter-spacing: 0.2em !important;
  color: var(--sumi-2) !important;
}

.ing-group:first-child {
  margin-top: 0 !important;
}

.ing-note {
  margin: 0.9rem 0 0 !important;
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--sumi-2);
}

/* -------------------------------------------------------------------- 手順 */

.steps-lead {
  color: var(--sumi-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.15rem;
}

.step-no {
  flex: 0 0 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--shu);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 0.35rem;
}

.step-main {
  flex: 1;
  min-width: 0;
}

.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
}

/* 手順名は朱。番号の丸と対で読ませる（.block h3 に依存させない） */
.block--steps .step-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--shu);
}

.marks {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--gothic);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--sumi-2);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.mark--time {
  color: var(--sumi-3);
  font-variant-numeric: tabular-nums;
}

.mark--time::before {
  content: '';
  width: 1px;
  height: 0.75em;
  background: var(--rule-2);
  margin-right: 0.65rem;
}

.swatch {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  background: var(--heat-off);
  transform: translateY(-0.05em);
}

.heat--off {
  background: var(--heat-off);
}
.heat--low {
  background: var(--heat-low);
}
.heat--mid {
  background: var(--heat-mid);
}
.heat--high {
  background: var(--heat-high);
}
.heat--rest {
  background: var(--heat-rest);
}

.mark.heat--off,
.mark.heat--low,
.mark.heat--mid,
.mark.heat--high,
.mark.heat--rest {
  background: transparent;
}

.step-main p {
  margin: 0 0 0.7rem;
}

.aside {
  margin: 0.85rem 0 0 !important;
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  line-height: 1.9;
  background: var(--kinari);
  color: var(--sumi-2);
}

.aside-tag {
  display: inline-block;
  margin-right: 0.7em;
  font-family: var(--gothic);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--shu);
}

.aside--caution {
  background: transparent;
  border-left: 3px solid var(--shu);
  color: var(--sumi);
}

.aside--caution::before {
  content: '※ ';
  color: var(--shu);
}

/* ------------------------------------------------------ 火加減と時間の帯 */

.timeline {
  margin: 3rem 0 0;
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid var(--rule-2);
  background: var(--paper);
}

.timeline-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-family: var(--gothic);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.timeline-label {
  color: var(--sumi-3);
}

.timeline-total {
  color: var(--sumi);
  font-variant-numeric: tabular-nums;
}

.tl-bar {
  display: flex;
  gap: 1px;
  height: 1.5rem;
  overflow: hidden;
}

.tl-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: var(--heat-off);
  color: #fffdf7;
}

.tl-min {
  font-family: var(--gothic);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tl-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  margin: 0.8rem 0 0;
  padding: 0;
  font-family: var(--gothic);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--sumi-2);
}

.tl-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------------------------------------------------------- 末尾・ノンブル */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 2.2rem 0 0;
  padding: 0;
}

.tags li {
  padding: 0.16rem 0.7rem;
  border: 1px solid var(--rule-2);
  font-family: var(--gothic);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--sumi-2);
}

.source {
  margin: 1.3rem 0 0;
  font-size: 0.78rem;
  color: var(--sumi-3);
}

.folio {
  margin: 3.4rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--sumi-3);
}

.folio::before {
  content: '— ';
}

.folio::after {
  content: ' —';
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 45%;
  text-decoration: none;
  color: inherit;
}

.pager-link--next {
  text-align: right;
  margin-left: auto;
}

.pager-link span {
  font-family: var(--gothic);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--sumi-3);
}

.pager-link strong {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--shu);
}

.foot {
  padding: 2rem 0 3rem;
  text-align: center;
  font-family: var(--gothic);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--sumi-3);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================================================ 印刷 */

@media print {
  :root {
    --desk: #fff;
    --paper: #fff;
    --kinari: #f5f3ed;
    --grain: none;
  }

  .endpaper,
  .pager,
  .toolbar,
  .foot {
    display: none !important;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.8;
  }

  .book {
    display: block;
    box-shadow: none;
    max-width: none;
  }

  .plate {
    background: none;
  }

  .plate-figure img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .leaf-inner {
    padding: 0;
    max-width: none;
  }

  .block,
  .step,
  .timeline,
  .ing-box {
    break-inside: avoid;
  }
}
