.pamphlet-section { padding: calc(64px + var(--home-heading-space-extra, 0px)) 0 64px; }
.pamphlet-heading { margin-bottom: 20px; text-align: right; }
.pamphlet-heading h2 { margin-bottom: 10px; font-size: var(--home-heading-size); }
.pamphlet-reader { --page-ratio: .7085; max-width: 1040px; margin-inline: auto; }
.pamphlet-stage {
  --page-height: clamp(340px, 52vw, 560px);
  position: relative;
  width: min(100%, calc(var(--page-height) * var(--page-ratio) * 2));
  height: var(--page-height);
  margin-inline: auto;
  perspective: 1800px;
  touch-action: pan-y pinch-zoom;
}
.pamphlet-spread { display: flex; justify-content: center; width: 100%; height: 100%; }
.pamphlet-page {
  position: relative;
  display: block;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #eef2f7;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 12px 26px #13274324;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}
.pamphlet-page img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.pamphlet-spread:not(.is-single) .pamphlet-page:first-child::after,
.pamphlet-spread:not(.is-single) .pamphlet-page:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #071a302b, transparent 7%);
  pointer-events: none;
}
.pamphlet-spread:not(.is-single) .pamphlet-page:last-child::after { background: linear-gradient(to right, #071a302b, transparent 7%); }
.pamphlet-page:focus-visible, .pamphlet-stage:focus-visible { outline: 3px solid #2455bc; outline-offset: 4px; }
.pamphlet-turn {
  position: absolute;
  top: 0;
  z-index: 2;
  transform-origin: left center;
  backface-visibility: hidden;
  pointer-events: none;
  animation: pamphlet-turn-forward 480ms cubic-bezier(.25,.65,.25,1) both;
}
.pamphlet-turn.is-backward { animation-name: pamphlet-turn-backward; }
.pamphlet-turn-underlay { position: absolute; top: 0; z-index: 1; pointer-events: none; }
@keyframes pamphlet-turn-forward { from { transform: rotateY(0); opacity: 1; } to { transform: rotateY(-105deg); opacity: .25; } }
@keyframes pamphlet-turn-backward { from { transform: rotateY(-105deg); opacity: 1; } to { transform: rotateY(0); opacity: 1; } }
.pamphlet-controls {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  margin-top: 22px;
}
.pamphlet-arrow {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease, color .2s ease;
}
.pamphlet-arrow--previous { left: calc(50% - 112px); }
.pamphlet-arrow--next { right: calc(50% - 112px); }
.pamphlet-arrow .icon { width: 24px; height: 24px; }
.pamphlet-arrow--previous .icon { transform: rotate(180deg); }
.pamphlet-arrow:focus-visible { outline: 3px solid #2455bc; outline-offset: 4px; }
.pamphlet-arrow:disabled { cursor: default; opacity: 1; }
.pamphlet-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}
.pamphlet-actions { display: flex; justify-content: flex-start; margin-top: 18px; }
.pamphlet-download { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.pamphlet-download .icon { width: 18px; height: 18px; }
.pamphlet-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pamphlet-reader:not(.is-ready) .pamphlet-controls { display: none; }
.pamphlet-page.has-load-error::before { content: "ページを読み込めませんでした。PDFダウンロードもご利用ください。"; position: absolute; inset: 20px; display: grid; place-content: center; background: #eef2f7; color: var(--ink); font-size: 14px; }
@media (max-width: 760px) {
  .pamphlet-section { padding: calc(36px + var(--home-heading-space-extra, 0px)) 0 36px; }
  .pamphlet-stage { width: min(80%, 320px); height: auto; aspect-ratio: var(--page-ratio); }
  .pamphlet-spread { position: absolute; inset: 0; }
  .pamphlet-page, .pamphlet-turn { width: 100%; flex-basis: 100%; }
  .pamphlet-controls { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pamphlet-turn { animation: none; }
  .pamphlet-arrow { transition: none; }
}
