/**
 * EPUBビューワー reader.css (v0.12.3)
 * 横読み/縦読み/見開き/進捗メーター対応
 */
.dc-reader {
  position: fixed;
  top: 44px; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #eee;
  overflow: hidden;
}

/* ===== ツールバー ===== */
.dc-reader__toolbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: none;
}
.dc-reader__toolbar-left,
.dc-reader__toolbar-right {
  pointer-events: auto;
}
.dc-reader__toolbtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dc-reader__toolbtn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.dc-reader__page-count {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ===== ステージ ===== */
.dc-reader__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.dc-reader__stage--horizontal {
  cursor: pointer;
}
.dc-reader__stage--spread {
  cursor: pointer;
}
.dc-reader__stage--vertical {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 44px; /* toolbar高さ分 */
  padding-bottom: 30px;
  cursor: default;
}
.dc-reader__stage--cta {
  cursor: default;
}

.dc-reader__page-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* v0.12.3b: 画像保存防止 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.dc-reader__page-img--vertical {
  width: 100%;
  max-width: 800px;
  max-height: none;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ===== 見開き ===== */
.dc-reader__spread {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  max-height: 100%;
}
.dc-reader__spread .dc-reader__page-img {
  height: 100%;
  max-height: 100%;
  width: auto;
}

/* ===== ナビ矢印 ===== */
.dc-reader__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 4px;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-reader__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.dc-reader__btn--prev { left: 8px; }
.dc-reader__btn--next { right: 8px; }

/* ===== 進捗メーター =====
   v0.14.0-p32: 横読み時 右から左へ進む (RTL)、 厚みアップ、 背景黒、 画像エリアと分離 */
.dc-reader__progress-meter {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 16px;
  background: #000;
  z-index: 10;
  padding: 0;
}
.dc-reader__progress-meter::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
  pointer-events: none;
}
.dc-reader__progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  left: auto;
  height: 8px;
  background: #ff6b35;
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 0;
  margin-top: 0;
  pointer-events: none;
}
/* v0.14.0-p32: 画像エリアは meter の上にフィックス (meter と重ならない) */
.dc-reader__stage:not(.dc-reader__stage--cta) {
  padding-bottom: 16px;
  box-sizing: border-box;
}
/* 縦読み時は右側に縦メーター (旧設定維持) */
.dc-reader--vertical .dc-reader__progress-meter {
  top: 44px; bottom: auto; right: 0; left: auto;
  width: 4px;
  height: calc(100% - 44px);
  padding: 0;
  background: rgba(255,255,255,0.05);
}
.dc-reader--vertical .dc-reader__progress-meter::before {
  width: 100%;
  height: 100%;
  top: 0;
  transform: none;
  background: rgba(255, 255, 255, 0.15);
}
.dc-reader--vertical .dc-reader__progress-fill {
  width: 100%;
  height: 0%;
  top: 0;
  right: auto;
  left: 0;
  transform: none;
  transition: height 0.2s ease;
  margin-top: 0;
}
.dc-reader--vertical .dc-reader__stage:not(.dc-reader__stage--cta) {
  padding-bottom: 0;
}

/* ===== CTA(立ち読み終了) ===== */
.dc-reader__cta {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 480px;
  margin: auto;
}
.dc-reader__cta-title {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #fff;
}
.dc-reader__cta-msg {
  margin: 0 0 1.5rem;
  color: #ccc;
  font-size: 0.95rem;
}
.dc-reader__cta-btn {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: background 0.15s ease;
}
.dc-reader__cta-btn:hover { background: #e55a25; }
.dc-reader__cta-back {
  display: block;
  margin: 0.5rem auto 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ccc;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.dc-reader__cta-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== ローディング・エラー ===== */
.dc-reader__loading,
.dc-reader__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee;
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}
.dc-reader__error { color: #ff6b6b; }

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .dc-reader__btn { display: none; } /* スマホはタップで操作 */
  .dc-reader__toolbar { padding: 4px 8px; }
  .dc-reader__toolbtn,
  .dc-reader__page-count { font-size: 0.75rem; padding: 4px 8px; }
}

/* ===== v0.12.3a: 縦読みのページ間隙間 + CTA表示 ===== */
.dc-reader__page-img--vertical {
  margin-bottom: 8px;  /* ページとページの間隙 */
}
.dc-reader__cta-vertical-slot {
  width: 100%;
  max-width: 800px;
  margin: 24px auto 60px;
  padding: 24px;
  background: #2a2a2a;
  border-radius: 8px;
  color: #eee;
  text-align: center;
  /* v0.14.0-p13: 画像 load 完了まで非表示 (layout 確定前の「一瞬の読了ページ表示」 対策) */
  visibility: hidden;
}
.dc-reader__cta-vertical-slot.is-ready {
  visibility: visible;
}

/* viewer-header の縦読みモード時、ツールバーは page-read.php 側で管理 */
body.dc-reader--vertical .dc-reader__toolbar { display: none; }

/* スマホでは画像はみ出し防止 */
@media (max-width: 768px) {
  .dc-reader__page-img--vertical {
    width: 100%;
    max-width: 100% !important;
  }
}

/* ===== v0.12.3b: 画像保存防止 — body 全体での補助 ===== */
body.dc-reader-page {
  font-family: メイリオ, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.dc-reader-page img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: none !important;
}
/* テキスト要素(CTA / トースト等)は選択を許可 */
body.dc-reader-page .dc-reader__cta,
body.dc-reader-page .viewer-gate {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ===== v0.12.5g: ローディング進捗バー ===== */
.dc-reader__loading,
.dc-reader__error {
  flex-direction: column;
  gap: 1rem;
}
.dc-reader__loading-bar {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.dc-reader__loading-bar-fill {
  height: 100%;
  background: #ff6b35;
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 3px;
}
.dc-reader__spinner {
  /* 旧スピナー(縦読み準備中などで使用) */
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: dc-reader-spin 0.8s linear infinite;
}
@keyframes dc-reader-spin {
  to { transform: rotate(360deg); }
}
.dc-reader__loading-msg {
  margin: 0;
  color: #eee;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.dc-reader__loading-inline {
  width: 100%;
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 0.85rem;
}

/* ========================================================================
   v0.12.4a: 読了ページ — 白背景カードデザイン
   ======================================================================== */
.dc-reader__stage--cta {
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto;
  padding: 24px 16px 60px;
}
.dc-reader--vertical .dc-reader__cta-vertical-slot {
  background: transparent;
  padding: 24px 0 0;
}

.dc-endpage {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  color: #1f2933;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 0; /* v0.19.59: 下部pad を0(フッターを底まで) */
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.dc-endpage__title {
  font-size: 1.4rem;
  margin: 0;
  text-align: center;
  color: #1f2933;
  font-weight: 700;
}
.dc-endpage__msg {
  margin: 0;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}

.dc-endpage__h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #1f2933;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e8ee;
  font-weight: 700;
}

/* === 今読んでいた作品 === */
.dc-endpage__current {
  display: flex;
  gap: 14px;
  background: #f7f9fa;
  padding: 14px;
  border-radius: 0;
  align-items: flex-start;
}
.dc-endpage__current-cover {
  width: 100px;
  height: auto;
  flex: 0 0 100px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.dc-endpage__current-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dc-endpage__current-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #1f2933;
}
.dc-endpage__current-sub {
  font-size: 0.85rem;
  margin: 0;
  color: #555;
}

/* 配信ストアトリガー(current/latest 共通) */
.dc-endpage__store-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #1f2933;
  color: #1f2933;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  align-self: flex-start;
}
.dc-endpage__store-trigger:hover {
  background: #1f2933;
  color: #fff;
}

/* === ストアモーダル === */
.dc-endpage__store-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dc-endpage__store-modal[hidden] { display: none; }
.dc-endpage__store-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.dc-endpage__store-modal-dialog {
  position: relative;
  background: #fff;
  color: #1f2933;
  border-radius: 0;
  padding: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.dc-endpage__store-modal-dialog h4 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}
.dc-endpage__store-modal-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none;
  border: none;
  color: #1f2933;
  font-size: 1.4rem;
  cursor: pointer;
}

/* === 次の話/巻 === */
/* v0.19.16: カード自体はリンクにせず白背景。 遷移はバッジ(ボタン)のみ */
.dc-endpage__next-card {
  display: flex;
  gap: 12px;
  background: #fff;
  color: #1f2933;
  padding: 12px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
  text-decoration: none;
}
.dc-endpage__next-card--trial {
  background: #fff;
}
.dc-endpage__next-thumb {
  /* v0.20.67: サムネイル(横長)も表紙(縦長)も、横幅固定・縦は成り行きで
     縦横比を維持する。 flex で縦に引き伸ばされて潰れるのを防ぐ。 */
  width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 0;
  background: #f0f2f4;
}
.dc-endpage__next-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
}
.dc-endpage__next-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
/* v0.19.16: バッジ = 実際のリンク(ボタン) */
.dc-endpage__next-badge {
  display: inline-block;
  background: #ff6b35;
  color: #fff !important;
  padding: 7px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}
.dc-endpage__next-badge:hover { opacity: 0.85; }
.dc-endpage__next-badge--trial,
.dc-endpage__next-badge--store {
  background: #1f2933;
  color: #fff !important;
}

/* === ストアリスト(モーダル内) === */
.dc-endpage__store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.dc-endpage__store-item {
  background: #fff;
  border-radius: 0;
  overflow: visible; /* v0.19.56: 先行バッジが枠外に出るため hidden をやめる */
}
.dc-endpage__store-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 0;
  position: relative;
}
.dc-endpage__store-item.is-advance a {
  border-color: #ff6b35;
}
.dc-endpage__store-item img {
  max-width: 100%;
  max-height: 30px;
}
.dc-endpage__store-item span:not(.dc-endpage__store-badge) {
  color: #333333;
  font-size: 0.78rem;
}
.dc-endpage__store-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #333333;
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}

/* === 最新コミックス === */
.dc-endpage__latest-card {
  display: flex;
  gap: 14px;
  background: #f7f9fa;
  padding: 14px;
  border-radius: 0;
  align-items: flex-start;
}
.dc-endpage__latest-thumb {
  width: 100px;
  height: auto;
  flex: 0 0 100px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.dc-endpage__latest-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}
.dc-endpage__latest-title {
  margin: 0;
  font-weight: 700;
  color: #1f2933;
  font-size: 0.95rem;
}
.dc-endpage__latest-status {
  margin: 0;
  color: #ff6b35;
  font-size: 0.85rem;
  font-weight: 600;
}

/* === アクションボタン === */
.dc-endpage__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.dc-endpage__action {
  background: #fff;
  border: 1px solid #d0d4d8;
  color: #1f2933;
  padding: 8px 14px;
  border-radius: 0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dc-endpage__action:hover:not(:disabled) {
  background: #f0f0f0;
}
.dc-endpage__action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === シェアモーダル === */
.dc-endpage__share-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dc-endpage__share-modal[hidden] { display: none; }
.dc-endpage__share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.dc-endpage__share-dialog {
  position: relative;
  background: #fff;
  color: #1f2933;
  border-radius: 0;
  padding: 20px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-endpage__share-dialog h4 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1rem;
}
.dc-endpage__share-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none;
  border: none;
  color: #1f2933;
  font-size: 1.4rem;
  cursor: pointer;
}
.dc-endpage__share-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: #444;
  color: #fff;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.dc-endpage__share-btn--x { background: #333; }
.dc-endpage__share-btn--line { background: #00b900; }
.dc-endpage__share-btn--copy { background: #555; }
.dc-endpage__share-btn:hover { opacity: 0.85; }

/* === レーベル === */
.dc-endpage__label {
  text-align: center;
}
.dc-endpage__label-link {
  display: inline-block;
  text-decoration: none;
  color: #555;
  font-size: 0.85rem;
}
.dc-endpage__label-link img {
  max-height: 36px;
  width: auto;
  vertical-align: middle;
}

/* === おすすめ作品 === */
.dc-endpage__rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dc-endpage__rec-item {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #1f2933;
  display: flex;
  flex-direction: column;
}
.dc-endpage__rec-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.dc-endpage__rec-item p {
  margin: 0;
  padding: 8px 4px;
  font-size: 0.78rem;
  text-align: left;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .dc-endpage__rec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === フッター === */
.dc-endpage__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
/* v0.19.59: フッターのボタンは幅を揃える */
.dc-endpage__footer > .dc-reader__cta-back,
.dc-endpage__footer > .dc-reader__cta-workpage,
.dc-endpage__footer > .dc-reader__cta-close {
  width: 260px;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.dc-reader__cta-back {
  background: #fff;
  border: 1px solid #1f2933;
  color: #1f2933;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.dc-reader__cta-back:hover {
  background: #1f2933;
  color: #fff;
}
/* v0.14.0-p32: ビューワーを閉じるボタン */
.dc-reader__cta-close {
  background: transparent;
  border: 1px solid #888;
  color: #888;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
.dc-reader__cta-close:hover {
  background: #888;
  color: #fff;
}

/* v0.12.5a: 読了ページ NO IMAGE フォールバック */
.dc-endpage__no-image {
  background: #e3e8ee;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0;
  /* 元の dc-endpage__*-cover/thumb クラスの aspect-ratio を活用 */
}

/* v0.12.5d: 読了ページ コミックス最新刊の NEW リボン(斜め) */
.dc-endpage__latest-thumb-wrap {
  position: relative;
  flex: 0 0 100px;
  overflow: hidden;
}
.dc-endpage__latest-ribbon {
  position: absolute;
  top: 8px;
  left: -25px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 25px;
  transform: rotate(-45deg);
  transform-origin: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}
.dc-endpage__latest-thumb-wrap .dc-endpage__latest-thumb {
  flex: none;
}

/* v0.12.5f: 読了ページ 会員限定ラベル */
.dc-endpage__next-members,
.dc-endpage__latest-members {
  display: inline-block;
  background: #f9f0fc;
  color: #6a2480;
  border: 1px solid #d8b4e8;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 0;
  align-self: flex-start;
  margin: 2px 0;
}
.dc-endpage__next-card--trial .dc-endpage__next-members {
  background: rgba(255,255,255,0.95);
  color: #6a2480;
}

/* ========================================================================
   v0.13.0-p6: ページ切替時のフリッカー防止 + スマホ dc-endpage 余白
   ======================================================================== */

/* 裏で配置される新ページは絶対配置でステージに重ねる(旧ページを残したまま onload 待ち) */
.dc-reader__stage--horizontal,
.dc-reader__stage--spread {
  position: relative;
}
.dc-reader__incoming {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.dc-reader__incoming img {
  display: block;
}

/* v0.13.0-p15: 読了ページの横はみ出し対策 + スマホ余白
   stage 側で padding を増やす方式に変更(width 100% + margin の二重指定で右はみ出ていた問題を解消)
   v0.13.0-p16: タテヨミ時にも同じ対策を適用、 内部 section の overflow も抑止
   v0.13.0-p17: 縦読みの specificity 競合を解決(.dc-reader--vertical を含む selector で書く)*/
.dc-reader__stage--cta {
  overflow-x: hidden;
}
.dc-reader__stage--vertical {
  overflow-x: hidden;
}
.dc-endpage {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.dc-endpage > section {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .dc-reader__stage--cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* 縦読み時の endpage 親(.dc-reader--vertical で上書きされる problem 解決) */
  .dc-reader--vertical .dc-reader__cta-vertical-slot,
  .dc-reader__cta-vertical-slot {
    padding-left: 0;
    padding-right: 0;
    padding-top: 16px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  /* v0.19.56: SP は読了ページを画面幅いっぱいに */
  .dc-endpage {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ========================================================================
   v0.13.0-p18: 横読みを「全ページ横並び + scroll-snap」 方式に変更
   縦読みと同じ「連続スクロール感」 を横方向で実現
   ======================================================================== */
.dc-reader__stage--horizontal {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* スクロールバー非表示 */
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* iOS の慣性スクロール */
  -webkit-overflow-scrolling: touch;
  /* container 内は flex で横並びにするため、 中央寄せを解除 */
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.dc-reader__stage--horizontal::-webkit-scrollbar {
  display: none;
}
.dc-reader__hpages {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.dc-reader__hpage {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  /* incoming 重ね合わせ用 position 解除 */
  position: relative;
}
.dc-reader__hpage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}
/* v0.13.0-p19: CTA トリガー hpage は透明背景で、 中央に小さなインジケーターのみ */
.dc-reader__hpage--cta-trigger {
  background: #1a1a1a;
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-reader__hpage--cta-trigger::before {
  content: '← さらに左に進むと読了ページ';
  opacity: 0.6;
}

/* v0.16.5: 読了画面のお気に入り★ボタン */
.dc-endpage__fav {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}
.dc-endpage__fav .dc-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid #ff4d6d;
  border-radius: 999px;
  color: #ff4d6d;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dc-endpage__fav .dc-fav-btn:hover { background: rgba(255,77,109,0.1); }
.dc-endpage__fav .dc-fav-btn.is-active {
  background: #ff4d6d;
  border-color: #ff4d6d;
  color: #fff;
}
.dc-endpage__fav .dc-fav-btn.is-active .dc-fav-heart { color: #fff; }
.dc-endpage__fav .dc-fav-btn__icon { font-size: 1.1rem; line-height: 1; }
.dc-endpage__fav .dc-fav-btn__icon .dc-fav-heart { width: 18px; height: 18px; display: block; }
.dc-endpage__fav .dc-fav-btn:disabled { opacity: 0.6; cursor: default; }

/* v0.16.6: 読了画面 未ログイン時のお気に入り案内 */
.dc-endpage__fav--guest {
  flex-direction: column;
  gap: 10px;
  /* v0.19.18: 中央寄せ(flex コンテナなので align-items も必要) */
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dc-endpage__fav-lead {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #1f2933;   /* v0.19.18 */
  margin: 0 auto;
  max-width: 340px;
  text-align: center;
}
/* v0.19.18: 応援ボタン(未ログイン)の下線を消す */
.dc-cheer-btn--guest {
  text-decoration: none;
}

/* ============================================================
   応援♥ボタン (読了画面)
   ============================================================ */
.dc-endpage__cheer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  text-align: center;
}
.dc-endpage__cheer-lead {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2933;
  margin: 0;
}
.dc-cheer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0bd3a, #e0a800);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  transition: transform 0.12s ease, opacity 0.15s ease;
  overflow: visible;
}
.dc-cheer-btn:hover { box-shadow: none; }
.dc-cheer-btn:active { transform: scale(0.96); }
.dc-cheer-btn__heart { font-size: 1.15rem; line-height: 1; display: inline-block; }
.dc-cheer-btn.is-maxed {
  background: #999;
  box-shadow: none;
  cursor: default;
  opacity: 0.7;
}

/* クリック時のバウンス (ハートだけ弾む) */
.dc-cheer-btn.is-bump .dc-cheer-btn__heart {
  animation: dc-cheer-bump 0.45s ease;
}
@keyframes dc-cheer-bump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 飛び出すハート */
.dc-cheer-float {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  color: #ff4d6d;
  font-size: 1.2rem;
  pointer-events: none;
  animation: dc-cheer-float 0.9s ease-out forwards;
}
@keyframes dc-cheer-float {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1.4); }
}

.dc-endpage__cheer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: #1f2933;
  margin: 0;
}
.dc-endpage__cheer-total strong { color: #ff8aab; font-size: 0.95rem; }
.dc-endpage__cheer-remain strong { color: #1f2933; }

/* 読了画面の次の話: ストアで読む / 毎日無料(解放待ち) */
.dc-endpage__next-badge--store {
  background: #e0a800;
  color: #1f2933;
}
.dc-endpage__next-waitfree {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #1f2933;
  margin: 2px 0;
}
.dc-endpage__next-wf-icon {
  height: 18px;
  width: auto;
  vertical-align: middle;
}
.dc-endpage__next-card--waitfree {
  border-color: #e0a800;
}

/* 次の話: ストアで読むボタン (モーダルトリガー) */
.dc-endpage__next-card--storebtn {
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  display: flex;
}

/* 読了ページ スタイル調整 (ユーザー要望) */
.dc-endpage__next-card--storebtn {
  background: #f7f9fa;
}
.dc-endpage__next-title {
  color: #1f2933;
}
/* next-card のホバーを無効化 (ストアで読むボタンのみクリック対象にする) */
.dc-endpage__next-card:hover {
  background: inherit;
  box-shadow: none;
}
.dc-endpage__next-card--storebtn:hover {
  background: #f7f9fa;
}
.dc-endpage__latest-body {
  text-align: left;
}

/* ストアで読むバッジを button にした分のリセット */
button.dc-endpage__next-badge--store {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ============ 読了ページ SNS (v0.17.93) ============ */
.dc-endpage__sns { margin: 24px 0; text-align: center; }
.dc-endpage__sns-group { margin-top: 12px; }
.dc-endpage__sns-title { font-size: 0.8rem; color: #888; font-weight: 700; margin: 0 0 8px; }
.dc-endpage__sns-icons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.dc-endpage__sns-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.15s ease, opacity 0.15s ease; }
.dc-endpage__sns-icon svg { width: 22px; height: 22px; display: block; }
.dc-endpage__sns-icon:hover { transform: translateY(-2px); opacity: 0.9; }
.dc-endpage__sns-icons--work .dc-endpage__sns-icon { background: var(--brand, #00aebe); color: #fff; }
.dc-endpage__sns-icons--official .dc-endpage__sns-icon { background: #1f2933; color: #fff; }

/* v0.19.17: 次の話バッジの派生
   - ログイン・会員登録(会員限定 × 未ログイン)
   - 毎日無料: 「無料で読む」 の右に毎日無料アイコン */
.dc-endpage__next-badge--login {
  background: #ff3d00;
  color: #fff !important;
}
.dc-endpage__next-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dc-endpage__next-actions .dc-endpage__next-wf-icon {
  width: 28px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

/* v0.19.45: webtoon(タテヨミ)はページとページの隙間を作らない */
body.dc-reader--webtoon .dc-reader__page-img--vertical {
  margin-bottom: 0;
}
body.dc-reader--webtoon .dc-reader__stage--vertical {
  gap: 0;
}

/* v0.19.57: 読了ページ「作品ページへ戻る」 ボタン
   cta-back と同じ形状・色は #1f2933 塗り+白文字 */
.dc-reader__cta-workpage {
  display: block;
  margin: 0.5rem auto 0;
  background: #1f2933;
  border: 1px solid #1f2933;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  width: fit-content;
}
.dc-reader__cta-workpage:hover { opacity: 0.88; color: #fff; }

/* v0.19.58: 読了ページ末尾のサイトフッター
   site-front.css が読まれるので元の見た目(暗い背景)で表示される。
   読了ページの左右パディングを打ち消して全幅に。 */
.dc-endpage__site-footer {
  margin-top: 40px;
  margin-left: -20px;   /* dc-endpage の左右padding を打ち消して全幅 */
  margin-right: -20px;
  text-align: left;
}
.dc-endpage__site-footer .site-footer {
  margin-top: 0;
}

/* v0.19.60: 次の話が毎日無料ロック中(アイコン|次回時刻 → その下に配信ストア) */
.dc-endpage__next-waitfree {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.dc-endpage__next-wf-time {
  font-size: 0.82rem;
  color: #c47d00;
  font-weight: 600;
}

/* v0.19.69: 読了ページ next-card の 閲覧期限 / ＋〇話 閲覧可 */
.dc-endpage__next-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.dc-endpage__next-expires {
  font-size: 0.72rem;
  color: #047857;
  white-space: nowrap;
}

/* v0.20.94: 応援ボタンのアイコンをメガホンSVGに(お気に入り♥と区別) */
.dc-cheer-btn__heart svg { display: block; width: 20px; height: 20px; }
.dc-cheer-btn__heart { display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   v0.20.107: 読了ページ 会員無料ボタンを作品ページに合わせる
   ・ログイン時(会員無料で読める) = ダーク #1f2933
   ・未ログイン時(ログイン導線)   = ブランド色 + 上部バルーン
   ============================================================ */
.dc-endpage__next-badge--members-in {
  background: #1f2933 !important;
  color: #fff !important;
}
.dc-endpage__next-badge--members-out {
  background: var(--brand, #00aebe) !important;
  color: #fff !important;
}
.dc-endpage__next-balloon {
  display: inline-block;
  position: relative;
  align-self: flex-start;
  background: #f5334f;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.25;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  margin-bottom: 7px;
}
.dc-endpage__next-balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #f5334f;
}

/* ============================================================
   v0.20.116: 読了ページ 共有モーダルをリッチ化(作品ページと同形)
   ============================================================ */
.dc-endpage__share-head { font-size:0.95rem; font-weight:700; color:#1f2933; margin:0 0 14px; text-align:center; }
.dc-endpage__share-img { width:100%; max-width:300px; border-radius:8px; display:block; margin:0 auto 12px; }
.dc-endpage__share-work-title { font-size:0.95rem; font-weight:700; color:#1f2933; margin:0 0 4px; text-align:center; }
.dc-endpage__share-desc {
  font-size:0.78rem; color:#6b7785; line-height:1.6; margin:0 0 16px; text-align:center;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.dc-endpage__share-sns { display:flex; justify-content:center; gap:16px; margin:0 0 16px; flex-wrap:wrap; }
.dc-endpage__share-btn {
  display:flex; flex-direction:column; align-items:center; gap:5px;
  background:none; border:0; cursor:pointer; text-decoration:none; color:#6b7785; font-size:0.68rem; width:56px;
}
.dc-endpage__share-ic { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; }
.dc-endpage__share-ic--x { background:#000; }
.dc-endpage__share-ic--line { background:#06c755; }
.dc-endpage__share-ic--ig { background:#e1306c; }
.dc-endpage__share-ic--copy { background:#e9edf0; color:#6b7785; }
.dc-endpage__share-cancel { width:100%; padding:12px; border:0; border-top:1px solid #eef1f4; background:none; color:#1f2933; font-size:0.9rem; font-weight:700; cursor:pointer; }

/* v0.20.117: 読了ページ共有モーダルを作品ページと完全一致に */
.dc-endpage__share-dialog { width: min(92vw, 380px); max-height: 88vh; padding: 22px 20px 16px; }
.dc-endpage__share-desc {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
.dc-endpage__share-sns { gap: 10px; }
.dc-endpage__share-btn { width: 60px; }
.dc-endpage__share-lbl { font-size: 0.6rem; white-space: nowrap; }

/* v0.20.118: 読了ページ共有ダイアログを作品ページのモーダルと完全一致(380px/角丸14/block) */
.dc-endpage__share-dialog {
  max-width: 380px !important;
  width: min(92vw, 380px) !important;
  border-radius: 14px !important;
  padding: 22px 20px 16px !important;
  display: block !important;
  text-align: center;
  max-height: 88vh;
  overflow: auto;
  gap: 0 !important;
}

/* v0.20.154: 応援ボタン サムズアップ(大きめ) + タップ毎バンプ */
.dc-cheer-btn__thumb { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.dc-cheer-btn__thumb svg { display: block; width: 30px; height: 30px; }
.dc-cheer-btn.is-bump .dc-cheer-btn__thumb { animation: dc-cheer-bump 0.45s ease; }

/* v0.20.155: 読了 3アクションタイル(お気に入り/メッセージ/共有) */
.dc-endpage__actions { display: flex; gap: 0; margin: 14px auto; width: 100%; max-width: 560px; border: 1px solid #cfe6ea; border-radius: 14px; overflow: hidden; background: #fff; }
.dc-endpage__action-tile { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 4px; border: 0; border-right: 1px solid #e3edef; border-radius: 0; background: #fff; color: #1f2933; text-decoration: none; cursor: pointer; font-size: 0.72rem; font-weight: 700; line-height: 1.3; text-align: center; }
.dc-endpage__action-tile:last-child { border-right: 0; }
.dc-endpage__action-lbl { white-space: nowrap; }
.dc-endpage__action-tile:active { transform: scale(0.97); }
.dc-endpage__action-ic { display: inline-flex; color: var(--brand, #00aebe); }
.dc-endpage__action-ic svg { display: block; }
.dc-endpage__action-tile.is-active .dc-endpage__action-ic { color: #f5b400; }

/* 応援メッセージ モーダル(読了) */
.dc-cheer-modal { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.dc-cheer-modal[hidden] { display: none; }
.dc-cheer-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.dc-cheer-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 400px; background: #fff; color: #1f2933; border-radius: 14px; padding: 20px; box-sizing: border-box; }
.dc-cheer-modal__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; color: #6b7785; cursor: pointer; }
.dc-cheer-modal__head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; margin: 0 0 8px; color: var(--brand, #00aebe); }
.dc-cheer-modal__work { text-align: center; font-weight: 700; font-size: 0.9rem; margin: 0 0 12px; }
.dc-cheer-modal__to { font-size: 0.85rem; margin: 0 0 10px; line-height: 3; }
.dc-cheer-modal__text { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px; font-size: 0.9rem; font-family: inherit; min-height: 110px; resize: vertical; }
.dc-cheer-modal__ts { margin: 10px 0 0; }
.dc-cheer-modal__submit { width: 100%; margin-top: 12px; border: 0; border-radius: 999px; background: var(--brand, #00aebe); color: #fff; font-weight: 700; padding: 13px; cursor: pointer; font-size: 1rem; }
.dc-cheer-modal__msg { text-align: center; font-size: 0.82rem; color: #1f7a34; margin: 8px 0 0; min-height: 1em; }

/* v0.20.158: 読める状態は CTA を話ラベルの上に大きく(LINE風) */
.dc-endpage__next-card.is-readable .dc-endpage__next-body { display: flex; flex-direction: column; gap: 3px; }
.dc-endpage__next-card.is-readable .dc-endpage__next-actions { order: 0; }
.dc-endpage__next-card.is-readable .dc-endpage__next-badge { order: 0; }
.dc-endpage__next-card.is-readable .dc-endpage__next-title { order: 1; font-size: 0.78rem; color: #6b7785; font-weight: normal; }
.dc-endpage__next-card.is-readable .dc-endpage__next-meta { order: 2; }
.dc-endpage__next-card.is-readable .dc-endpage__next-badge { font-size: 1rem; font-weight: 700; }

/* v0.20.158: ビューワー調整 */
.dc-reader__stage--vertical { padding-top: 20px; }
.dc-reader--vertical .dc-reader__cta-vertical-slot { padding: 0; }
.dc-reader__cta-vertical-slot { margin: 0 auto 60px; }
.dc-endpage__share-sns { gap: 0; }

/* v0.20.159: 読了 単話版/コミックス 横スクロール一覧(work-volumes風) */
.dc-endpage__vol-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; -ms-overflow-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dc-endpage__vol-scroll::-webkit-scrollbar { display: none; }
.dc-endpage__vol-item { flex: 0 0 auto; width: 110px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.dc-endpage__vol-thumb-wrap { position: relative; width: 110px; }
.dc-endpage__vol-thumb { width: 110px; height: 156px; object-fit: cover; border-radius: 6px; background: #eee; display: block; }
.dc-endpage__vol-thumb.dc-endpage__no-image { display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #999; }
.dc-endpage__vol-ribbon { position: absolute; top: 6px; left: 0; background: #00aebe; color: #fff; font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 0 4px 4px 0; }
.dc-endpage__vol-label { margin-top: 6px; font-size: 0.76rem; font-weight: 700; line-height: 1.3; }
.dc-endpage__vol-date { font-size: 0.66rem; color: #d33; margin-top: 2px; }

/* v0.20.160: next-waitfree 拡大 + cta-workpage */
.dc-endpage__next-wf-time { font-size: 0.82rem; }
.dc-endpage__next-wf-icon { height: 32px; }
.dc-reader__cta-workpage { margin: 0 auto; }

/* v0.20.160: 読了 見出しを section-title 調に(単話版/コミックス/SNS/おすすめ) */
.dc-endpage__h3 { font-size: 1.1rem; margin: 0 0 1.2rem; letter-spacing: 0.04em; color: #333; padding-bottom: 0.5rem; border-bottom: 2px solid #333; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; }
/* 読了 一覧スライダー(作品ページ volume-card 準拠) */
.dc-endpage__slider { position: relative; }
.volumes-slider__track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; -ms-overflow-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.volumes-slider__track::-webkit-scrollbar { display: none; }
.volume-card { flex: 0 0 auto; width: 110px; }
.volume-card__link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.volume-card__cover { position: relative; width: 110px; overflow: hidden; }
.volume-card__img { width: 110px; height: 156px; object-fit: cover; display: block; background: #eee; }
.volume-card__img.dc-endpage__no-image { display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #999; }
.volume-card__ribbon { position: absolute; top: 8px; left: -25px; background: #ff6b35; color: #fff; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; padding: 2px 25px; transform: rotate(-45deg); }
.volume-card__label { margin-top: 6px; font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
.volume-card__release-date { display: block; font-size: 0.68rem; color: #6b7280; margin-top: 2px; white-space: nowrap; }
.volumes-slider__arrow { position: absolute; top: 60px; z-index: 2; width: 36px; height: 36px; background: #fff; border: 1px solid #333; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #333; line-height: 1; padding: 0; }
.volumes-slider__arrow--prev { left: -6px; }
.volumes-slider__arrow--next { right: -6px; }

/* v0.20.161: 読める状態のカード全体をクリック可能に(CTAのボタン装飾を廃止しリンクを全面化) */
.dc-endpage__next-card.is-readable { position: relative; cursor: pointer; }
.dc-endpage__next-card.is-readable .dc-endpage__next-badge { background: none; border: 0; box-shadow: none; padding: 0; color: #1f2933 !important; }
.dc-endpage__next-card.is-readable .dc-endpage__next-badge::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.dc-endpage__next-card.is-readable .dc-endpage__next-actions { align-items: center; }

/* v0.20.161: スライダー矢印を枠の外に(作品ページ同様) */
.dc-endpage__slider { position: relative; }
.dc-endpage__latest { overflow: visible; }
.dc-endpage__slider .volumes-slider__track { padding-left: 38px; padding-right: 38px; }
.volumes-slider__arrow--prev { left: 2px; }
.volumes-slider__arrow--next { right: 2px; }

/* v0.20.163: next-card 状態別クリーン化 */
.dc-endpage__next-card.is-readable { display: flex; gap: 12px; text-decoration: none; color: #1f2933; cursor: pointer; }
.dc-endpage__next-card.is-readable .dc-endpage__next-body { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.dc-endpage__next-cta { font-size: 1rem; font-weight: 700; color: #1f2933; }
.dc-endpage__next-label { font-size: 0.82rem; color: #6b7785; }
.dc-endpage__next-daily { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #1f2933; margin-top: 2px; }
.dc-endpage__next-wf-icon--sm { height: 20px !important; width: auto; }
.dc-endpage__next-daily-txt { line-height: 1.2; }

/* v0.20.164: 続きはストアで ボタン */
.dc-endpage__store-cta-sec { display: flex; justify-content: center; }
.dc-endpage__store-cta { display: block; width: 100%; max-width: 420px; padding: 14px; border: 1px solid var(--brand, #00aebe); border-radius: 999px; background: #fff; color: var(--brand, #00aebe); font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: center; }
.dc-endpage__store-cta:hover { background: #f0fbfc; }

/* v0.20.165: 続きはストア タブモーダル(作品ページ準拠) */
.dc-endpage__storetabs { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.dc-endpage__storetabs[hidden] { display: none; }
.dc-endpage__storetabs-bd { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.dc-endpage__storetabs-dialog { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 82vh; overflow-y: auto; background: #fff; color: #1f2933; border-radius: 14px; padding: 22px 20px; box-sizing: border-box; }
.dc-endpage__storetabs-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; color: #6b7785; cursor: pointer; }
.dc-endpage__storetabs-head { text-align: center; font-weight: 700; margin: 0 0 14px; color: #1f2933; }
.dc-endpage__storetabs .work-stores__tabs { display: flex; justify-content: center; gap: 0; background: #eef1f3; border-radius: 999px; padding: 4px; margin: 0 auto 16px; width: fit-content; }
.dc-endpage__storetabs .store-tab { border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; color: #555; font-weight: 700; font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.dc-endpage__storetabs .store-tab.is-active { background: #333; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.dc-endpage__storetabs .work-stores__panel { display: none; }
.dc-endpage__storetabs .work-stores__panel.is-active { display: block; }
.dc-endpage__storetabs .store-list--icons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.dc-endpage__storetabs .store-item { position: relative; }
.dc-endpage__storetabs .store-item a { display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; border: 1px solid #e5e7e9; border-radius: 6px; text-decoration: none; width: 130px; height: 56px; box-sizing: border-box; }
.dc-endpage__storetabs .store-logo { max-width: 100%; max-height: 100%; height: auto; display: block; object-fit: contain; }
.dc-endpage__storetabs .store-label-fallback { font-size: 0.8rem; color: #333; text-align: center; }
.dc-endpage__storetabs .store-item__badge { position: absolute; top: -8px; left: -6px; font-size: 0.6rem; font-weight: 700; background: #fff; color: #333; padding: 1px 6px; border: 1px solid #333; border-radius: 3px; }

/* v0.20.166: 続きはストア モーダル 調整(縦幅固定・3列左寄せ・タブスライド) */
.dc-endpage__storetabs .work-stores__panel { display: none; }
.dc-endpage__storetabs .work-stores__panel.is-active { display: block; height: 42vh; max-height: 340px; overflow-y: auto; overflow-x: hidden; animation: dc-tab-slide 0.25s ease; }
.dc-endpage__storetabs .store-list--icons { justify-content: flex-start; gap: 10px; padding: 10px 8px; }
.dc-endpage__storetabs .store-item { width: calc((100% - 36px) / 3); }
.dc-endpage__storetabs .store-item a { width: 100%; height: 52px; }
@keyframes dc-tab-slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

/* v0.20.172: 読了ストアモーダルの先行バッジをコーラルに */
.dc-endpage__storetabs .store-item__badge { background: #ff6b35 !important; color: #fff !important; border-color: #ff6b35 !important; }

/* =========================================================
   v0.20.180: 読了ページ No IMG プレースホルダの潰れ防止
   .dc-endpage__next-thumb は img 自身にクラスが付くため、 JS置換の span は
   「.dc-endpage__next-thumb.dc-noimg」 になる。 rec は banner(横長)。
   ========================================================= */
.dc-endpage__next-thumb.dc-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: #f0f2f4;
  color: #b0b6bc;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  flex: 0 0 auto;
  align-self: flex-start;
}
.dc-endpage__rec-item .dc-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 600 / 371;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: #f0f2f4;
  color: #b0b6bc;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
}
