.pdf-page {
  width: 595px;
  height: 842px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* コピー本風PDF */
.pdf-page.t-copybook {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  padding: 52px 48px;
  background: #fafaf8;
  color: #2a2220;
}
.pdf-page.t-copybook .pdf-rule {
  border-top: 1.5px solid #b0a898;
  margin-bottom: 20px;
}
.pdf-page.t-copybook .pdf-pg-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pdf-page.t-copybook .pdf-pg-body {
  font-size: 12px;
  line-height: 2.1;
  white-space: pre-wrap;
  word-break: break-all;
}
.pdf-page.t-copybook .pdf-pg-caption {
  font-size: 10px;
  color: #888;
  margin-top: 12px;
  font-style: italic;
}
.pdf-page.t-copybook .pdf-pg-image {
  margin: 16px 0;
  text-align: center;
}
.pdf-page.t-copybook .pdf-pg-image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.pdf-page.t-copybook .pdf-page-num {
  position: absolute;
  bottom: 32px;
  right: 48px;
  font-size: 10px;
  color: #bbb;
}
.pdf-page.t-copybook.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 48px;
  border: 3px solid #3a3530;
}
.pdf-page.t-copybook .pdf-cover-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.pdf-page.t-copybook .pdf-cover-subtitle {
  font-size: 14px;
  color: #7a7068;
  margin-bottom: 24px;
}
.pdf-page.t-copybook .pdf-cover-image { margin: 24px 0; max-width: 340px; }
.pdf-page.t-copybook .pdf-cover-image img { max-width: 100%; max-height: 260px; object-fit: contain; }
.pdf-page.t-copybook .pdf-cover-author { font-size: 13px; color: #9a928a; margin-top: 14px; }
.pdf-page.t-copybook .pdf-cover-year { font-size: 11px; color: #bbb; margin-top: 4px; }

/* ミニマル文芸風PDF */
.pdf-page.t-minimal {
  font-family: "Hiragino Sans", sans-serif;
  padding: 72px 64px;
  background: #fff;
  color: #1a1a1a;
}
.pdf-page.t-minimal .pdf-pg-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 36px;
  color: #333;
}
.pdf-page.t-minimal .pdf-pg-body {
  font-size: 11.5px;
  line-height: 2.2;
  white-space: pre-wrap;
  word-break: break-all;
  color: #444;
}
.pdf-page.t-minimal .pdf-pg-caption {
  font-size: 10px;
  color: #aaa;
  text-align: center;
  margin-top: 20px;
}
.pdf-page.t-minimal .pdf-pg-image { margin: 24px 0; text-align: center; }
.pdf-page.t-minimal .pdf-pg-image img { max-width: 100%; max-height: 300px; object-fit: contain; }
.pdf-page.t-minimal .pdf-page-num {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: #ccc;
}
.pdf-page.t-minimal.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pdf-page.t-minimal .pdf-cover-rule { width: 40px; height: 1px; background: #ccc; margin: 0 auto 20px; }
.pdf-page.t-minimal .pdf-cover-title {
  font-size: 34px;
  font-weight: 200;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  line-height: 1.5;
}
.pdf-page.t-minimal .pdf-cover-subtitle { font-size: 12px; color: #999; letter-spacing: 0.1em; margin-bottom: 24px; }
.pdf-page.t-minimal .pdf-cover-image { margin: 24px 0; }
.pdf-page.t-minimal .pdf-cover-image img { max-width: 380px; max-height: 280px; object-fit: contain; }
.pdf-page.t-minimal .pdf-cover-author { font-size: 11px; color: #bbb; letter-spacing: 0.15em; margin-top: 20px; }
.pdf-page.t-minimal .pdf-cover-year { font-size: 10px; color: #ddd; margin-top: 6px; }

/* 写真ZINE風PDF */
.pdf-page.t-photo {
  font-family: "Hiragino Sans", sans-serif;
  padding: 40px;
  background: #181820;
  color: #f0f0f0;
}
.pdf-page.t-photo .pdf-pg-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e0e0e0;
  margin-bottom: 16px;
}
.pdf-page.t-photo .pdf-pg-image { margin: 0 0 16px; text-align: center; }
.pdf-page.t-photo .pdf-pg-image img { max-width: 100%; max-height: 500px; object-fit: cover; border-radius: 3px; }
.pdf-page.t-photo .pdf-pg-body { font-size: 11px; color: #c0c0c0; line-height: 1.9; white-space: pre-wrap; word-break: break-all; }
.pdf-page.t-photo .pdf-pg-caption { font-size: 9.5px; color: #666; margin-top: 10px; font-style: italic; }
.pdf-page.t-photo .pdf-page-num { position: absolute; bottom: 28px; right: 40px; font-size: 10px; color: #444; }
.pdf-page.t-photo.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 56px;
  position: relative;
}
.pdf-page.t-photo .pdf-cover-bg { position: absolute; inset: 0; }
.pdf-page.t-photo .pdf-cover-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.pdf-page.t-photo .pdf-cover-text { position: relative; z-index: 1; }
.pdf-page.t-photo .pdf-cover-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  line-height: 1.2;
  margin-bottom: 10px;
}
.pdf-page.t-photo .pdf-cover-subtitle { font-size: 13px; color: #ddd; margin-bottom: 8px; }
.pdf-page.t-photo .pdf-cover-author { font-size: 12px; color: #aaa; }

/* ポップPDF */
.pdf-page.t-pop {
  font-family: "Hiragino Sans", sans-serif;
  padding: 52px 48px;
  background: #fff9f0;
  color: #4a3a35;
  background-image: radial-gradient(rgba(255,138,92,.12) 2px, transparent 2px);
  background-size: 26px 26px;
}
.pdf-page.t-pop .pdf-pg-title {
  font-size: 16px;
  font-weight: 800;
  color: #e85a4f;
  padding-bottom: 8px;
  border-bottom: 3px dotted #ffb08a;
  margin-bottom: 18px;
}
.pdf-page.t-pop .pdf-pg-body {
  font-size: 12px;
  line-height: 2.0;
  white-space: pre-wrap;
  word-break: break-all;
}
.pdf-page.t-pop .pdf-pg-caption {
  font-size: 10px;
  color: #b0906a;
  margin-top: 12px;
  font-weight: 700;
}
.pdf-page.t-pop .pdf-pg-image { margin: 16px 0; text-align: center; }
.pdf-page.t-pop .pdf-pg-image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 14px;
}
.pdf-page.t-pop .pdf-page-num {
  position: absolute;
  bottom: 32px;
  right: 48px;
  font-size: 10px;
  color: #d8a888;
  font-weight: 700;
}
.pdf-page.t-pop.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 48px;
  border: 14px solid #ff8a5c;
  border-radius: 4px;
}
.pdf-page.t-pop .pdf-cover-title {
  font-size: 32px;
  font-weight: 900;
  color: #e85a4f;
  margin-bottom: 12px;
  line-height: 1.35;
}
.pdf-page.t-pop .pdf-cover-subtitle { font-size: 14px; color: #8a7a6e; margin-bottom: 24px; }
.pdf-page.t-pop .pdf-cover-image { margin: 24px 0; max-width: 340px; }
.pdf-page.t-pop .pdf-cover-image img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 14px; }
.pdf-page.t-pop .pdf-cover-author { font-size: 13px; color: #b0a090; margin-top: 14px; font-weight: 700; }
.pdf-page.t-pop .pdf-cover-year { font-size: 11px; color: #c8b8a8; margin-top: 4px; }

/* ノスタルジックPDF */
.pdf-page.t-retro {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  padding: 56px 52px;
  background: #f6efe0;
  color: #4a3a2a;
}
.pdf-page.t-retro::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(138,112,80,.35);
  pointer-events: none;
}
.pdf-page.t-retro .pdf-rule {
  border-top: 1px solid #c8b088;
  margin-bottom: 20px;
}
.pdf-page.t-retro .pdf-pg-title {
  font-size: 15px;
  font-weight: 700;
  color: #6a5232;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pdf-page.t-retro .pdf-pg-body {
  font-size: 12px;
  line-height: 2.2;
  white-space: pre-wrap;
  word-break: break-all;
}
.pdf-page.t-retro .pdf-pg-caption {
  font-size: 10px;
  color: #a89878;
  margin-top: 12px;
  font-style: italic;
}
.pdf-page.t-retro .pdf-pg-image { margin: 16px 0; text-align: center; }
.pdf-page.t-retro .pdf-pg-image img {
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  border: 1px solid #c8b088;
  background: #fffcf4;
  padding: 6px;
  box-sizing: border-box;
}
.pdf-page.t-retro .pdf-page-num {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: #b0a080;
}
.pdf-page.t-retro.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 48px;
}
.pdf-page.t-retro.pdf-cover::before {
  inset: 26px;
  border: 4px double #8a7050;
}
.pdf-page.t-retro .pdf-cover-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  line-height: 1.5;
}
.pdf-page.t-retro .pdf-cover-subtitle { font-size: 13px; color: #8a7a62; letter-spacing: 0.1em; margin-bottom: 24px; }
.pdf-page.t-retro .pdf-cover-image { margin: 24px 0; max-width: 340px; }
.pdf-page.t-retro .pdf-cover-image img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border: 1px solid #c8b088;
  background: #fffcf4;
  padding: 8px;
  box-sizing: border-box;
}
.pdf-page.t-retro .pdf-cover-author { font-size: 12px; color: #a89878; letter-spacing: 0.14em; margin-top: 16px; }
.pdf-page.t-retro .pdf-cover-year { font-size: 10px; color: #c0b098; margin-top: 5px; }

/* 雑誌風PDF */
.pdf-page.t-magazine {
  font-family: "Hiragino Sans", sans-serif;
  padding: 44px 42px;
  background: #ffffff;
  color: #1a1a1a;
}
.pdf-page.t-magazine .pdf-pg-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #111;
  border-left: 5px solid #e84040;
  padding-left: 10px;
  margin-bottom: 18px;
}
.pdf-page.t-magazine .pdf-pg-body {
  font-size: 11.5px;
  color: #333;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-all;
}
.pdf-page.t-magazine .pdf-pg-caption {
  font-size: 9.5px;
  color: #999;
  margin-top: 10px;
}
.pdf-page.t-magazine .pdf-pg-image { margin: 0 0 16px; text-align: center; }
.pdf-page.t-magazine .pdf-pg-image img { max-width: 100%; max-height: 420px; object-fit: cover; }
.pdf-page.t-magazine .pdf-page-num {
  position: absolute;
  bottom: 28px;
  right: 42px;
  font-size: 10px;
  color: #bbb;
  font-weight: 700;
}
.pdf-page.t-magazine.pdf-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  position: relative;
}
.pdf-page.t-magazine .pdf-cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 606px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}
.pdf-page.t-magazine .pdf-cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.pdf-page.t-magazine .pdf-cover-text {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 236px;
  padding: 28px 40px;
  box-sizing: border-box;
  background: #fff;
  border-top: 10px solid #e84040;
}
.pdf-page.t-magazine .pdf-cover-title {
  font-size: 34px;
  font-weight: 900;
  color: #111;
  line-height: 1.25;
  margin-bottom: 10px;
}
.pdf-page.t-magazine .pdf-cover-subtitle { font-size: 13px; color: #888; margin-bottom: 8px; }
.pdf-page.t-magazine .pdf-cover-author { font-size: 12px; color: #aaa; }

/* ── 目次ページ（PDF） ── */
.pdf-toc { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pdf-toc-row { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 2; }
.pdf-toc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-toc-dots { flex: 1; min-width: 16px; border-bottom: 1.5px dotted currentColor; opacity: .35; transform: translateY(-4px); }
.pdf-toc-num { font-variant-numeric: tabular-nums; }

/* ── 見開き写真（PDF） ── */
.pdf-spread { position: absolute; inset: 0; overflow: hidden; }
.pdf-spread img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 200%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.pdf-spread.side-left img  { left: 0; }
.pdf-spread.side-right img { left: -100%; }
.pdf-spread-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}

/* ── ギャラリーページ（PDF） ── */
.pdf-gallery {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.pdf-gallery-1 { grid-template-columns: 1fr; }
.pdf-gallery-2 { grid-template-columns: 1fr 1fr; }
.pdf-gallery-3 { grid-template-columns: 1fr 1fr; }
.pdf-gallery-4 { grid-template-columns: 1fr 1fr; }

.pdf-gallery-3 .pdf-gallery-item:last-child { grid-column: span 2; }

.pdf-gallery-item { overflow: hidden; border-radius: 3px; }
.pdf-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdf-gallery-1 .pdf-gallery-item { height: 500px; }
.pdf-gallery-2 .pdf-gallery-item { height: 340px; }
.pdf-gallery-3 .pdf-gallery-item { height: 240px; }
.pdf-gallery-4 .pdf-gallery-item { height: 220px; }

/* ── PDF サイドレイアウト ── */
.pdf-side-layout { display: flex; gap: 20px; margin-top: 8px; }
.pdf-side-image { width: 44%; flex-shrink: 0; }
.pdf-side-image img { width: 100%; height: 240px; object-fit: cover; border-radius: 3px; }
.pdf-side-text { flex: 1; overflow: hidden; }

/* ── PDF 全面画像レイアウト ── */
.pdf-full-layout { position: relative; height: 580px; border-radius: 3px; overflow: hidden; }
.pdf-full-layout img { width: 100%; height: 100%; object-fit: cover; }
.pdf-full-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.pdf-page .pdf-full-overlay .pdf-pg-title { color: #fff; }
.pdf-page .pdf-full-overlay .pdf-pg-body  { color: rgba(255,255,255,.85); }

.pdf-page { font-family: var(--font-body); }
.pdf-page .pdf-pg-title, .pdf-page .pdf-cover-title { font-family: var(--font-heading); }
