/* 本のサイズの本文 PDF: 紙面の見た目(マス・ルビ・傍点は genko.css と同じ)。長さは mm で決める */
.sheet.book .block { position: absolute; }
/* 仕上がりの線(画面だけ。印刷・PDF には出ない) */
.sheet.book .trim-guide { position: absolute; border: 0.2mm dashed #c9a8a0; pointer-events: none; }
/* ノンブル(ページ番号) */
.sheet.book .nombre { position: absolute; font-size: 2.8mm; line-height: 1; color: #111; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
/* 扉(タイトルページ) */
.sheet.book.tobira { display: flex; flex-direction: row-reverse; justify-content: center; }
.sheet.book.tobira .tobira-title, .sheet.book.tobira .tobira-author { writing-mode: vertical-rl; text-orientation: mixed; margin: 0; letter-spacing: .15em; line-height: 1.5; }
.sheet.book.tobira .tobira-title { font-weight: 700; text-align: center; }
.sheet.book.tobira .tobira-author { text-align: end; }
.sheet.book.tobira .tobira-title:empty::before { content: '(無題)'; color: #999; }
/* 目次 */
.sheet.book .toc { position: absolute; display: flex; flex-direction: row-reverse; justify-content: flex-start; align-content: flex-start; flex-wrap: wrap; overflow: hidden; }
.sheet.book .toc-title { writing-mode: vertical-rl; margin: 0; font-weight: 700; letter-spacing: .15em; }
.sheet.book .toc-item { writing-mode: vertical-rl; text-orientation: mixed; margin: 0; display: flex; justify-content: space-between; letter-spacing: .05em; }
.sheet.book .toc-item .toc-no { font-variant-numeric: tabular-nums; -webkit-text-combine: horizontal; text-combine-upright: all; }
.sheet.book .toc-item .toc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trim-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
@media print {
  .sheet.book .trim-guide { display: none !important; }
  /* 印刷所でグレースケールにされても薄くならないよう、紙面の文字は純黒にする(画面では #111) */
  .sheet.book, .sheet.book .nombre, .sheet.book .tobira-title, .sheet.book .tobira-author, .sheet.book .toc { color: #000 !important; }
  /* iPhone 向けの縮小(genko.css)は本の紙面には使わない。本の PDF はパソコンの Chrome で作る前提 */
  .sheet.book { transform: none !important; height: auto; }
}
/* 画面では本のページを 2 つ並べる(印刷では 1 ページずつ) */
.sheets.two-up { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.sheets.two-up .sheet-box { margin: 0; }
@media print { .sheets.two-up { display: block !important; } }
