@charset "UTF-8";
/* ========================================================================
   作品ページ single.php(カドコミ参考の2カラム構造)
   白(#fff)× 漆黒(#333333)× ティール(#00aebe)アクセント線
   ======================================================================== */

.work-single {
  background: #fff;
  color: #333333;
}
.work-single > section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid #e5e7e9;
}
.work-single > section:last-of-type {
  border-bottom: none;
}
.work-single .work-hero__inner,
.work-single .work-volumes__inner,
.work-single .work-overview__inner,
.work-single .work-freecontent__inner,
.work-single .work-characters__inner,
.work-single .work-authors__inner,
.work-single .work-stores__inner,
.work-single .work-sns-related__inner,
.work-single .work-line-cta__inner {
  max-width: 960px; /* v0.14.0-p25: 1080 → 800 */
  margin: 0 auto;
}

.section-title {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
  color: #333333;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333333;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title__sub {
  font-size: 0.7rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* ========================================================================
   ヒーロー上部 メタ帯
   v0.14.0-p26: バナーは section.work-hero 直下 (隙間なし) — work-hero の padding-top をゼロに
   ======================================================================== */
.work-hero {
  background: #fff;
  padding: 0 0 3rem !important;
}
.work-hero__inner {
  padding: 1.5rem;
}
/* v0.15.9: PC は banner 左 / 各要素 右 の 2カラム */
.work-hero__head {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 28px;
  align-items: start;
}
.work-hero__head-media {
  align-self: start;
}
.work-hero__head .work-hero__banner {
  margin: 0;
  max-width: 480px;
}
.work-hero__head .work-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.work-hero__head-body {
  min-width: 0;
}
@media (max-width: 768px) {
  .work-hero__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* SP: サムネは画面幅いっぱいの横フィックス (inner padding 1rem を打ち消し)、 角丸なし */
  .work-hero__head-media {
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin: -1rem -1rem 0;
  }
  .work-hero__head .work-hero__banner {
    max-width: 100%;
  }
  .work-hero__head .work-hero__banner img {
    border-radius: 0;
  }
}
/* 旧: バナーが inner 外にあった時の定義 (head 内へ移行済み) */
.work-hero > .work-hero__banner {
  margin: 0 auto;
  max-width: 960px;
}
.work-hero > .work-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* v0.14.0-p28: credits-row をコンパクトに (title-top の直下) */
.work-hero__credits-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.3rem 0 0.5rem 0;
  margin: 0 0.5rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid #e5e7e9;
}
/* v0.15.12: レーベル(左) と シェア(右) を1行に */
.work-hero__label-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.work-hero__label-share-row .work-hero__label { margin: 0; }
.work-hero__label-share-row .work-hero__share { margin-left: auto; }
.work-hero__credits-row .work-hero__credits,
.work-hero__credits-row .work-hero__label,
.work-hero__credits-row .work-hero__share {
  margin: 0;
  padding: 0;
  border: none;
  font-size: inherit;
}
.work-hero__credits-row .work-hero__credits { flex: 1 1 auto; min-width: 0; }
.work-hero__credits-row .work-hero__share { margin-left: auto; }

/* v0.14.0-p28: 第1話を読むボタン (topmeta + ボタン横幅100%) */
.work-hero__first-ep {
  margin: 0 0 1.25rem;
}
/* v0.20.95: head-media 内に配置したときの余白(画像/無料バッジの下) */
.work-hero__head-media .work-hero__first-ep {
  margin: 12px 0;
}
@media (max-width: 768px) {
  /* SP: head-media が左右 -1rem で画面幅いっぱいのため、 第1話ボタン/ティッカーに左右余白 */
  .work-hero__head-media .work-hero__first-ep {
    margin: 0 9px;
  }
  .work-hero__ticker.is-done {
    margin: 9px;
  }
}
.work-hero__first-ep .work-hero__topmeta {
	display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    flex-wrap: wrap;
    margin: 8px 0;
    padding: 0;
}
/* v0.14.0-p32: 第1話 + 最新話 ボタンを 2:1 比率で並べる */
.work-hero__first-ep-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
}
.work-hero__first-ep-btn {
  flex: 2 1 0;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  min-width: 0;
}
.work-hero__latest-ep-btn {
  flex: 1 1 0;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  min-width: 0;
  line-height: 1.3;
  font-size: 0.85em;
}
.work-hero__latest-ep-btn small {
  font-size: 0.75em;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.3;
}
/* v0.15.1-p10: SP では第1話/最新話ボタンを縦2段に (PC は横並び維持) */
@media (max-width: 768px) {
  .work-hero__first-ep-buttons {
    flex-direction: column;
  }
  .work-hero__first-ep-btn,
  .work-hero__latest-ep-btn {
    flex: 1 1 auto;
    width: 100% !important;
  }
}

/* v0.14.0-p26: 詳細を見る ▼ の中に overview/characters/freecontent を内包
   折りたたみ時は intro-detail も非表示、 is-open で表示 */
.work-hero__intro-wrap .work-hero__intro-detail {
  display: none;
  margin-top: 1rem;
}
.work-hero__intro-wrap.is-open .work-hero__intro-detail {
  display: block;
}
.work-hero__intro-wrap .work-hero__intro-detail > section {
  margin: 1.5rem 0;
}

/* v0.15.9: intro-detail を latest-row 下に独立配置。 一部表示 + 開閉 */
.work-hero__detail-wrap {
  position: relative;
  margin-top: 1.25rem;
}
.work-hero__detail-wrap .work-hero__intro-detail > section {
  margin: 1.25rem 0;
}

/* v0.15.10: first-ep を head の下の 1カラムに */
.work-hero__first-ep {
  margin: 0 0 10px 0;
}
/* v0.15.10: 作品情報 ▼ (intro 本文) の開閉 */
.work-hero__intro-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.work-hero__introtext-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  border-bottom: 2px solid #333;
  color: #333;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 2px;
  margin-bottom: 0.75rem;
  align-self: flex-end;
}
.work-hero__intro-wrap .work-hero__intro {
  display: none;
  align-self: stretch;
}
.work-hero__intro-wrap.is-open .work-hero__intro {
  display: block;
}
.work-hero__intro-detail {
  /* v0.19.26: 開閉を「下に伸びる」 動きにする */
  transition: max-height 0.35s ease;
  /* v0.19.27: 高さが変わるとブラウザがスクロール位置を自動補正して
     画面が少し上に動くため、 この要素では補正を無効化する */
  overflow-anchor: none;
}
.work-hero__detail-wrap {
  overflow-anchor: none;
}
.work-hero__detail-wrap.is-collapsed .work-hero__intro-detail {
  /* v0.19.23: 見える範囲をもう少し狭める(480px → 240px) */
  max-height: 240px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.work-hero__detail-wrap.is-open .work-hero__intro-detail {
  max-height: none;
  /* v0.19.28: overflow を visible に戻すと BFC が解除され、
     中の section の上マージンが親と相殺して「登場人物」以下が数px上にずれる。
     max-height:none なので hidden のままでも中身は切れない。 */
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}
.work-hero__detail-wrap .work-hero__intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--brand, #ff6b35);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
}

.work-hero__topmeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.meta-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 0;
  position: relative;
}
.meta-badge--status {
  background: #333333;
  color: #fff;
}
.meta-badge--status.meta-badge--completed {
  background: #555;
}
/* 先行配信: v0.20.4 シンプルなデザイン(控えめな枠線バッジ) */
.meta-badge--advance {
  background: #fff5f5;
  color: #c0392b;
  border: 1px solid #e8b4b4;
  font-weight: 500;
}
/* 無料配信: ゴールド系(特別感) */
.meta-badge--free {
  background: linear-gradient(135deg, #c9a961 0%, #d4b572 100%);
  color: #fff;
  font-weight: 500;
  padding-left: 22px;
  letter-spacing: 0.08em;
}
.meta-badge--free::before {
  content: '★';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  line-height: 1;
}
.work-hero__lastupdate {
  margin-left: auto;
  font-size: 0.78rem;
  color: #888;
}

/* ========================================================================
   2カラム構造
   ======================================================================== */
.work-hero__two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .work-hero__two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ========================================================================
   左カラム
   ======================================================================== */
.work-hero__left { min-width: 0; }

.work-hero__title {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
  color: #333333;
  font-weight: 700;
}
.work-hero__title-en {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 1rem;
  font-weight: 400;
}

.work-hero__banner {
  position: relative;
  margin: 0 0 1.25rem;
}
.work-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}

.work-hero__credits {
  font-size: 0.85rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7e9;
}
.credit-role {
  color: #888;
  margin-right: 4px;
  font-size: 0.75rem;
}
.credit-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-right: 6px;
}
.credit-name {
  color: var(--brand);
  text-decoration: none;
}
.credit-name--plain {
  text-decoration: none;
}
.credit-name:hover {
  text-decoration: none;
  color: var(--brand);
  opacity: 0.7;
}
.credit-sep {
  margin: 0 8px;
  color: #cfd4d8;
}

.work-hero__share {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
}
.share-link {
  color: #555;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.share-link:hover { color: #00aebe; }

/* 最新表紙 2枚並列 */
.work-hero__latest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e7e9;
  border-bottom: 1px solid #e5e7e9;
}
.latest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333333;
}
/* v0.14.0-p29: front-comics__ribbon と同じデザイン (サンプル16 端を三角に)
   aspect-ratio 3/4、 border 2px、 radius 0、 overflow visible (リボン下三角が外に出る) */
.latest-card__thumb {
  position: relative;
  width: 130px;
  height: auto;
  background: #f0f2f4;
  overflow: visible;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.latest-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
/* v0.14.0-p32: ユーザー指定スタイル (小さめ、 #ff3d00 オレンジ) */
.latest-card__badge {
  display: inline-block;
  position: absolute;
  top: -6px;
  left: 3px;
  margin: 0;
  padding: 4px 0 3px;
  z-index: 5;
  width: 25px;
  text-align: center;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #ff3d00;
  border-radius: 0 2px 0 0;
  pointer-events: none;
  line-height: 1.2;
}
.latest-card__badge::before {
  position: absolute;
  content: '';
  top: 0;
  right: -3px;
  border: none;
  border-bottom: solid 4px #c93000;
  border-right: solid 3px transparent;
}
.latest-card__badge::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 0;
  border-left: 12.5px solid transparent;
  border-right: 12.5px solid transparent;
  border-top: 6px solid #ff3d00;
}
.latest-card__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  align-items: center;
}
.latest-card__label {
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.06em;
}
.latest-card__count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #333333;
}

/* キャッチ + 紹介 */
.work-hero__catch {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
  margin: 0.6rem;
  padding-left: 12px;
  border-left: 3px solid #333333;
  line-height: 1.5;
}
.work-hero__intro-wrap {
  margin-bottom: 0;
}
.work-hero__intro {
  font-size: 0.88rem;
  line-height: 1.3;
  color: #333;
  margin: 0 0 0.6rem;
  white-space: pre-line;
}
.work-hero__intro-toggle {
  font-size: 0.78rem;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.work-hero__intro-toggle .caret { margin-left: 2px; }

/* CTA */
.work-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
  text-align: center;
}
.btn--primary {
  background: #fddd09;
  color: #1f2933;
  border: none;
}
.btn--primary:hover {
  background: #ffeb64;
  color: #1f2933;
}
.btn--secondary {
  background: #fff;
  color: #333333;
  border: 1px solid #333333;
  gap: 0.1rem;
}
.btn--secondary:hover {
  background: #333333;
  color: #fff;
}
.btn--free {
  background: #333333;
  color: #fff;
  border: 1px solid #333333;
  flex-direction: column;
  padding: 0.7rem 1.25rem;
  line-height: 1.3;
  gap: 2px;
}
.btn--free:hover {
  background: #fff;
  color: #333333;
}
.btn__free-label {
  font-weight: 700;
  font-size: 0.95rem;
}
.btn__free-exp {
  font-size: 0.72rem;
  opacity: 0.85;
}
.btn--small { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn--line {
  background: var(--line-green);
  color: #fff;
  border: 1px solid var(--line-green);
}
.btn--line:hover {
  background: #fff;
  color: var(--line-green);
}
.btn--fanletter {
  background: #fff;
  color: #333333;
  border: 1px solid #333333;
}
.btn--fanletter:hover {
  background: #333333;
  color: #fff;
}

/* ========================================================================
   右カラム タブ + リスト
   ======================================================================== */
.work-hero__right { min-width: 0; }

.trial-tabs {
  display: flex;
  gap: 6px;
  background: transparent;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 3px solid #333333;
}
.trial-tab {
  flex: 1;
  padding: 0.85rem 1rem;
  background: #eef1f3;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  text-align: center;
  position: relative;
  top: 3px;
}
.trial-tab:hover {
  background: #e2e6e9;
  color: #333333;
}
.trial-tab.is-active {
  background: #333333;
  color: #fff;
  font-weight: 700;
  top: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.trial-tab.is-active .trial-tab__count {
  color: #333;
}
/* 「無料公開」タブだけ特別感のある色(深い緋色) */
.trial-tab[data-trial-tab="freeread"].is-active {
  background: linear-gradient(135deg, #b8860b 0%, #d4a040 100%);
  color: #fff;
  position: relative;
}
.trial-tab[data-trial-tab="freeread"].is-active::after {
  content: '★';
  margin-left: 5px;
  font-size: 0.75rem;
}

.trial-list-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0 0.6rem 0.25rem;
  border-bottom: 2px solid #333333;
  font-size: 0.8rem;
  color: #555;
}
.trial-list-info__count {
  font-weight: 500;
  color: #333333;
}
.trial-sort-btn {
  cursor: pointer;
  color: var(--brand, #ff6b35) !important;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 5px 10px;
  background: no-repeat;
  border: none;
}
.trial-sort-btn:hover {
}
.trial-sort-btn[aria-pressed="true"] {
}
.trial-sort-btn .caret { margin-left: 4px; font-size: 0.7rem; }

.trial-panel { display: none; }
.trial-panel.is-active { display: block; }

.trial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 1000px;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .trial-list { max-height: 600px; }
}
.trial-list::-webkit-scrollbar { width: 6px; }
.trial-list::-webkit-scrollbar-thumb { background: #cfd4d8; border-radius: 3px; }

.trial-row {
  display: block;
  padding: 0;
  border-bottom: 1px solid #f0f2f4;
}
.trial-row__thumb {
  width: 100px;
  background: #f0f2f4;
  flex: 0 0 100px;
  overflow: hidden;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.trial-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.trial-row__thumb--empty {
  background: linear-gradient(135deg, #f0f2f4 25%, transparent 25%, transparent 50%, #f0f2f4 50%, #f0f2f4 75%, transparent 75%);
  background-size: 8px 8px;
}
.trial-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 0;
}
.trial-row__date {
  font-size: 0.7rem;
  color: #888;
}
.trial-row__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
}
.trial-row__period {
  font-size: 0.7rem;
  color: #555;
}
.trial-row__action {
  flex: 0 0 auto;
  padding: 5px 12px;
  background: #fff;
  color: #333333;
  border: 1px solid #333333;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 500;
}
.trial-row__action:hover {
  background: #333333;
  color: #fff;
}

.trial-divider {
  display: block;
  padding: 8px 12px;
  background: #f7f9fa;
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #f0f2f4;
  border-top: 1px solid #f0f2f4;
  margin: 4px 0;
}

.trial-empty {
  padding: 1.5rem 0;
  color: #888;
  font-size: 0.85rem;
  text-align: center;
}

/* ========================================================================
   単行本スライダー(全幅セクション)
   ======================================================================== */
.work-volumes {
  background: #fff;
}
.volumes-slider {
  position: relative;
}
.volumes-slider__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
.volumes-slider__track::-webkit-scrollbar { height: 6px; }
.volumes-slider__track::-webkit-scrollbar-thumb { background: #cfd4d8; border-radius: 3px; }

.volume-card {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #333333;
}
.volume-card__cover {
  width: 150px;
  height: 213px;
  background: #f0f2f4;
  overflow: hidden;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.volume-card__cover img {
  /* v0.19.46: 縦幅が短く下が見切れる問題→ 枠内に表紙全体を収める(切り取らない) */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.volume-card__num {
  font-size: 0.78rem;
  color: #555;
  text-align: center;
}

.volumes-slider__arrow {
  position: absolute;
  top: 60px !important;
  transform: none;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #333333;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.volumes-slider__arrow:hover {
  background: #333333;
  color: #fff;
}
.volumes-slider__arrow.is-disabled {
  opacity: 0.2;
  pointer-events: none;
}
.volumes-slider__arrow--prev { left: -12px; }
.volumes-slider__arrow--next { right: -12px; }

/* ========================================================================
   下段の各セクション
   ======================================================================== */

/* 作品概要 */
.work-overview__body {
  font-size: 1rem;
  line-height: 1.95;
  color: #333333;
}
.work-overview__body p { margin: 0 0 1rem; }

/* 自由フォーム */
.fc-heading { color: #333333; margin: 2rem 0 1rem; }
.fc-text { font-size: 1rem; line-height: 1.95; margin: 0 0 1.5rem; }
.fc-image { margin: 1.5rem 0; }
.fc-image img { max-width: 100%; height: auto; display: block; }
.fc-image figcaption { font-size: 0.85rem; color: #888; margin-top: 0.5rem; }
.fc-gallery { display: grid; gap: 0.4rem; margin: 1.5rem 0; align-items: start; }
.fc-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fc-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fc-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
.fc-gallery__figure { margin: 0; }
.fc-gallery img { width: 100%; height: auto; display: block; border-radius: 4px; cursor: zoom-in; }
.fc-gallery__caption { grid-column: 1 / -1; font-size: 0.85rem; color: #888; margin-top: 0.5rem; }

/* 画像ギャラリー モーダルスライダー */
.fc-gallery-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
}
.fc-gallery-modal[hidden] { display: none; }
.fc-gallery-modal__stage {
  max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.fc-gallery-modal__img {
  max-width: 90vw; max-height: 88vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 4px;
}
.fc-gallery-modal__close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.fc-gallery-modal__close:hover { background: rgba(255,255,255,0.3); }
.fc-gallery-modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.fc-gallery-modal__nav:hover { background: rgba(255,255,255,0.3); }
.fc-gallery-modal__nav--prev { left: 20px; }
.fc-gallery-modal__nav--next { right: 20px; }
.fc-gallery-modal__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9rem; background: rgba(0,0,0,0.4);
  padding: 4px 14px; border-radius: 999px;
}
@media (max-width: 600px) {
  .fc-gallery-modal__nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .fc-gallery-modal__nav--prev { left: 8px; }
  .fc-gallery-modal__nav--next { right: 8px; }
}
.fc-video { margin: 1.5rem 0; }
.fc-video__embed { position: relative; padding-bottom: 56.25%; height: 0; background: #333; }
.fc-video__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fc-video__caption { font-size: 0.85rem; color: #888; margin-top: 0.5rem; }
.fc-quote {
  border-left: 3px solid #00aebe;
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}
.fc-quote cite { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: #888; font-style: normal; }
.fc-button { text-align: center; margin: 1.5rem 0; }
.fc-divider { border: 0; height: 1px; background: #e5e7e9; margin: 2rem 0; }
.fc-divider--space { background: transparent; height: 2rem; }

/* 登場人物 */
.work-characters__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.character-card {
  background: #fff;
  border: 1px solid #e5e7e9;
  padding: 1rem;
}
.character-card__image img { width: 100%; height: auto; display: block; }
.character-card__role { color: #888; font-size: 0.78rem; }
.character-card__name {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
}
.character-card__desc { font-size: 0.9rem; line-height: 1.7; color: #333; }

/* 作家紹介 (v0.19.26: 役職 / 丸アイコン / 名前 の中央寄せカードを PC5列・SP3列で並べる) */
.work-authors__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem 0.75rem;
}
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 4px;
  background: none;
  border: none;
  text-decoration: none;
  color: inherit;
}
.author-card__role {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.author-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.author-card:hover .author-card__icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.16);
}
.author-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-card__initial {
  font-size: 1.6rem;
  font-weight: 700;
  color: #9aa3ad;
}
.author-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2933;
  word-break: break-word;
}
.author-card:hover .author-card__name {
  color: #00aebe;
}

@media (max-width: 768px) {
  .work-authors__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.5rem;
  }
  .author-card__icon { width: 76px; height: 76px; }
  .author-card__name { font-size: 0.82rem; }
  .author-card__role { font-size: 0.68rem; }
}

/* ストア */
.work-stores__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: #f7f9fa;
  padding: 4px;
  flex-wrap: wrap;
}
.store-tab {
  background: transparent;
  border: none;
  color: #555;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.store-tab:hover {
  color: #333333;
}
.store-tab.is-active {
  background: #333333;
  color: #fff;
  font-weight: 700;
}
.work-stores__panel { display: none; }
.work-stores__panel.is-active { display: block; }
.store-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}
.store-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #e5e7e9;
  color: #333333;
  text-decoration: none;
}
.store-item a:hover {
  background: #f7f9fa;
  border-color: #333333;
}
.store-item.is-advance a {
  border-color: #333333;
  background: #333333;
  color: #fff;
}
.store-item.is-advance a:hover {
  background: #fff;
  color: #333333;
}
.store-item__badge {
  font-size: 0.7rem;
  background: #fff;
  color: #333333;
  padding: 2px 6px;
  border: 1px solid #333333;
}
.store-item.is-advance .store-item__badge {
  background: #fff;
  color: #333333;
  border-color: #fff;
}

/* SNS / 関連作品 */
.work-sns-related__inner > div + div { margin-top: 3rem; }
.work-sns__group { margin-bottom: 1.5rem; }
.work-sns__group-title { font-size: 0.95rem; color: #333333; margin: 0 0 0.5rem; font-weight: 700; }
.sns-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sns-list a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid #333333;
  color: #333333;
  text-decoration: none;
  font-size: 0.85rem;
}
.sns-list a:hover { background: #333333; color: #fff; }
.related-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.related-item a { display: block; text-decoration: none; color: #333333; }
.related-item img { width: 100%; height: auto; display: block; border: 1px solid #e5e7e9; }
.related-item__title { display: block; font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.4; }

/* LINE CTA */
.work-line-cta {
  background: #f7f9fa;
  text-align: center;
}
.work-line-cta__title {
  font-size: 1.3rem;
  color: #333333;
  margin: 0 0 1rem;
  font-weight: 700;
}
.work-line-cta__lead {
  font-size: 0.92rem;
  color: #333;
  margin: 0 0 1.5rem;
}

/* フローティング */
.floating-line {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--line-green);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.floating-line:hover { background: #05a849; color: #fff; }
.floating-line__icon {
  background: #fff;
  color: var(--line-green);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* v0.19.12: 作品ページ独自の floating-top 定義を撤去。
   トップページ等と同じ site-front.css の共通デザイン(濃色の丸ボタン)に統一する。 */

/* ========================================================================
   単行本ストアモーダル
   ======================================================================== */
.vol-modal[hidden] { display: none; }
.vol-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vol-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  cursor: pointer;
}
.vol-modal__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.vol-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  z-index: 2;
}
.vol-modal__close:hover { color: #333333; }

.vol-modal__header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7e9;
}
.vol-modal__thumb {
  width: 80px;
  height: 113px;
  flex: 0 0 80px;
  background: #f0f2f4;
  overflow: hidden;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.vol-modal__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.vol-modal__head-body {
  flex: 1;
  min-width: 0;
}
.vol-modal__title {
  font-size: 1.05rem;
  margin: 0 0 4px;
  font-weight: 700;
  color: #333333;
}
.vol-modal__lead {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.vol-modal__stores {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vol-modal__store {
  border-bottom: 1px solid #f0f2f4;
}
.vol-modal__store:last-child { border-bottom: none; }
.vol-modal__store a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: none;
  color: #333333;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.vol-modal__store a:hover {
  background: #f7f9fa;
}
.vol-modal__store-name { flex: 1; }
.vol-modal__store-badge {
  background: #d63b3b;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  letter-spacing: 0.04em;
}
.vol-modal__store-arrow {
  color: #888;
  font-size: 1.2rem;
  line-height: 1;
}
.vol-modal__store.is-advance a {
  background: #fff7f5;
}
.vol-modal__store.is-advance a:hover {
  background: #ffeae5;
}
.vol-modal__empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* volume-card ボタン化対応 */
.volume-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.volume-card:hover .volume-card__cover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.volume-card__cover {
  transition: all 0.15s ease;
}

/* ========================================================================
   v0.11.2 追加スタイル
   - work-hero__title-top: メタ帯の上にタイトル
   - work-hero__latest-row: 最新カード + CTAの横並び
   - work-hero__credits: 役職別グルーピング
   - work-hero__label: レーベル表示
   - share-icon: SVGアイコン化
   - trial-shortcut: 最新刊ショートカット行
   - trial-row__badge: 「更新」バッジ
   - trial-row--latest: 最新行ハイライト
   - trial-row--access-*: アクセス制限別の色分け
   - trial-row__subtitle: エピソードタイトル
   - trial-row__period: 期限表記
   - trial-row__action--*: ボタンバリエーション
   - trial-expand-btn: +全表示ボタン
   - read-badge: 既読バッジ
   ======================================================================== */

.work-hero__title-top {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* v0.14.0-p25: ヒーローバナー — border / radius 無し */
.work-hero__banner {
  position: relative;
  margin: 0 0 1.25rem;
}
.work-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* 作家ブロック(役職別グルーピング) */
.work-hero__credits {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7e9;
}
.credit-line {
  font-size: 0.88rem;
  line-height: 1.7;
  display: block;
}
.credit-line .credit-role {
  display: inline-block;
  min-width: 4em;
  color: #888;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}
.credit-line .credit-name {
  color: var(--brand);
  text-decoration: none;
}
.credit-line .credit-name:hover {
  color: var(--brand);
  text-decoration: none;
  opacity: 0.7;
}

/* レーベル */
.work-hero__label {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7e9;
}
.label-line__role {
  color: #888;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}
.label-line__name {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.label-line__name:hover {
  color: var(--brand);
  text-decoration: none;
  opacity: 0.7;
}

/* シェアアイコン(SVG) */
.work-hero__share {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  color: #333333;
  border: 1px solid #333333;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: all 0.15s ease;
}
/* v0.14.0-p34: SNS アイコン内 SVG を 14px に縮小 */
.share-icon svg {
  width: 14px;
  height: 14px;
}
.share-icon:hover {
  background: #333333;
  color: #fff;
}
.share-icon.is-copied {
  background: #00aebe;
  color: #fff;
  border-color: #00aebe;
}

/* 最新カード + CTA 横並び */
.work-hero__latest-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7e9;
  margin-bottom: 1.25rem;
}
.work-hero__latest-row .latest-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #333333;
}
/* v0.14.0-p31: front-comics と同じ表紙スタイル (overflow visible でリボン三角を表示) */
.work-hero__latest-row .latest-card__thumb {
  position: relative;
  width: 120px;
  height: auto;
  background: #f0f2f4;
  overflow: visible;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.work-hero__latest-row .latest-card__thumb img {
  width: 100%; height: auto; display: block;
  position: relative; z-index: 1;
}
.work-hero__latest-row .latest-card__thumb-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #aaa; font-size: 0.7rem;
}
/* v0.14.0-p31: 旧 .work-hero__latest-row .latest-card__badge は撤廃
   (.latest-card__badge のリボン風デザインを効かせるため) */
.work-hero__latest-row .latest-card__body {
  text-align: center;
  align-items: center;
  display: flex; flex-direction: column; gap: 2px;
  width: 100%;
}
.work-hero__latest-row .latest-card__label,
.work-hero__latest-row .latest-card__count {
  display: block;
  width: 100%;
  text-align: center;
}
.work-hero__latest-row .latest-card__label {
  font-size: 0.7rem; color: #888;
}
.work-hero__latest-row .latest-card__count {
  font-size: 0.85rem; font-weight: 700; color: #333333;
}
.work-hero__latest-row .work-hero__cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* v0.12.5z: 上詰め */
  gap: 0.5rem;
  min-width: 0;
}

/* 「N話・巻無料配信中」インフォブロック */
.cta-free-info {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #f9f3e3 0%, #fcf6dd 100%);
  border: 1px solid #c9a961;
  border-radius: 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cta-free-info strong {
  font-size: 0.85rem;
  color: #8b6f3a;
  font-weight: 700;
}
.cta-free-info small {
  font-size: 0.7rem;
  color: #555;
}

/* タブの件数(小) */
.trial-tab__count {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.7;
  margin-left: 2px;
}

/* 最新刊ショートカット行 */
.trial-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #333333;
  color: #fff;
  margin-bottom: 1rem;
  border-radius: 2px;
}
.trial-shortcut__badge {
  background: #fff;
  color: #333333;
  font-size: 0.7rem;
  padding: 3px 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.trial-shortcut__title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}
.trial-shortcut__action {
  background: #fff;
  color: #333333;
  border: 1px solid #fff;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 2px;
}
.trial-shortcut__action:hover {
  background: #00aebe;
  border-color: #00aebe;
  color: #fff;
}

/* リスト各行 - 改良版 */
.trial-row {
  position: relative;
}
.trial-row.is-hidden { display: none; }
.trial-row--latest {
  background: linear-gradient(90deg, #fff5f0 0%, transparent 100%);
}
.trial-row__badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 7px;
  margin-right: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.trial-row__badge--update {
  background: #ff6b35;
  color: #fff;
}
.trial-row__subtitle {
  display: block;
  font-size: 0.78rem;
  color: #555;
  font-weight: 400;
  margin-top: 2px;
}
.trial-row__period {
  font-size: 0.7rem;
  color: #888;
}
.trial-row__period--free {
  color: #b8860b;
  font-weight: 500;
}

/* アクセス制限ごとの行スタイル */
.trial-row--access-members_only {
  background: #f9f5fa;
}
/* v0.12.5b: タイトル前の鍵マークは削除(会員限定は別ラベルで案内) */

/* ボタンバリエーション */
.trial-row__action--members {
  background: #c3b047;
  color: #fff;
  border:none;
}
.trial-row__action--members:hover {
  background: #fff;
  color: #d63b3b;
}
.trial-row__action--free {
  background: linear-gradient(135deg, #b8860b 0%, #d4a040 100%);
  color: #fff;
  border-color: #c9a961;
}
.trial-row__action--free:hover {
  background: #fff;
  color: #b8860b;
}
.trial-row__action--disabled {
  background: #f0f2f4;
  color: #888;
  border-color: #e5e7e9;
  pointer-events: none;
  cursor: not-allowed;
}

/* 「+全N話を表示」ボタン */
.trial-expand-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #333333;
  border: 1px dashed #cfd4d8;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  text-align: center;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.trial-expand-btn:hover {
  border-style: solid;
  border-color: #333333;
  background: #f7f9fa;
}

/* 既読バッジ */
.read-badge {
  display: inline-block;
  background: #e5e7e9;
  color: #555;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
/* v0.14.0-p28: 閲覧済みのリスト → 右下に紙折り曲げ (dog-eared) + 罫線維持
   background-clip: padding-box で背景を padding 内に限定し、 border-bottom が見えるように */
.trial-row.is-read {
  position: relative;
  background: linear-gradient(
    -45deg,
    transparent 14px,
    #f5f5f5 14px,
    #f5f5f5 100%
  );
  background-clip: padding-box;
}
.trial-row.is-read .trial-row__title {
  color: inherit;
}
.trial-row.is-read::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 12px 12px;
  border-color: transparent transparent #c3c8cd transparent;
  pointer-events: none;
}

/* v0.14.0-p40: サムネは border 1px グレー + radius 0 で統一 */
.trial-row__thumb {
  border-radius: 0;
  border: 1px solid #e5e7e9;
}
.trial-row__thumb img {
  display: block;
}
.trial-row__thumb-empty {
  width: 100%; height: 142px;
  background: linear-gradient(135deg, #f0f2f4 25%, transparent 25%, transparent 50%, #f0f2f4 50%, #f0f2f4 75%, transparent 75%);
  background-size: 8px 8px;
}

/* タイトル(枠の中の話タイトル) */
.trial-row__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
  display: block;
  line-height: 1.4;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  /* v0.14.0-p26: title-top は media query 上部で 0.9rem !important に変更 */
  .work-hero__latest-row { flex-direction: column; }
  .work-hero__latest-row .latest-card { align-items: center; }
  .trial-shortcut { flex-wrap: wrap; }
  .trial-shortcut__title { width: 100%; }
}

/* ========================================================================
   v0.11.2d UI修正
   - バナー黒淵 3px
   - 作家ブロック横並び
   - 「更新」リボン(サムネ左上から斜め)
   - 連載 行全体クリック
   - コミックスCTA情報
   - サムネ 横幅120px+3px黒淵、padding 14px
   ======================================================================== */

/* v0.14.0-p25: バナー border / radius 無し */
.work-hero__banner {
  border: none;
}

/* 作家ブロック横並び */
.work-hero__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7e9;
}
.credit-segment {
  display: inline-flex;
  align-items: baseline;
}
.credit-segment .credit-role {
  display: inline;
  min-width: 0;
  margin-right: 0.4em;
  color: #888;
  font-size: 0.75rem;
}
.work-hero__credits .credit-sep {
  margin: 0 0.6em;
  color: #cfd4d8;
}

/* 行のレイアウト・サムネ */
.trial-row {
  padding: 0;
  border-bottom: 1px solid #f0f2f4;
}
.trial-row__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 125px 5px 10px;
}
a.trial-row__inner:hover {
  background: #f7f9fa;
}
a.trial-row__inner {
  transition: background 0.15s ease;
}

/* サムネ: 横幅120px固定、縦は画像比率に合わせて自動 (height: auto で表紙が切れないように)
   v0.14.0-p40: border 1px + radius 0 で統一 */
.trial-row__thumb {
  position: relative;
  overflow: hidden;
  width: 120px;
  flex: 0 0 120px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
  background: #f0f2f4;
}
.trial-row__thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.trial-row__thumb-empty {
  width: 100%;
  background: linear-gradient(135deg, #f0f2f4 25%, transparent 25%, transparent 50%, #f0f2f4 50%, #f0f2f4 75%, transparent 75%);
  background-size: 8px 8px;
}

/* 「更新」リボン(左上から斜め) */
.trial-row__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;
}

.trial-row__period--members {
  color: #d63b3b;
  font-weight: 500;
}
.trial-row__period--expired,
.trial-row__period--pre {
  color: #888;
}

/* 配信ストアCTA の上のコミックス情報 */
.cta-volume-info {
  padding: 0.6rem 0.75rem;
  background: #f7f9fa;
  border-left: 3px solid #333333;
  font-size: 0.78rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cta-volume-info__label {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.04em;
}
.cta-volume-info__title {
  color: #333333;
}
.cta-volume-info__title strong {
  font-weight: 700;
  margin-left: 4px;
  color: #333333;
}
.cta-volume-info__date {
  font-size: 0.7rem;
  color: #555;
}

/* v0.14.0-p31: trial-list 内の trial-row も flex に統一
   (連載は trial-row__inner が flex container だが、 コミックスは trial-row__inner が無く
    li 直下が thumb + body + action のため、 li 自体が flex でないと縦並びになる) */
.trial-list .trial-row {
  display: flex;
  align-items: stretch;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .work-hero__credits {
    flex-direction: column;
  }
  .work-hero__credits .credit-sep {
    display: none;
  }
  .credit-segment {
    margin-bottom: 0.3rem;
  }
}

/* ========================================================================
   v0.11.3a UI 微調整
   - リボン: 右上 → 左上
   - サムネ: 幅120px固定、縦は成り行き
   - サムネ黒淵: 1px → 3px
   - .trial-row の padding: 全方向 14px
   ======================================================================== */

/* リボンを左上に移動 */
.trial-row__ribbon {
  top: 8px;
  left: -22px;
  right: auto;
  transform: rotate(-45deg);
}

/* リストサムネを幅120px固定、縦は自動、黒淵3px */
.trial-row__thumb {
  width: 120px;
  height: auto;
  flex: 0 0 120px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.trial-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.trial-row__thumb-empty {
  width: 100%;
  background: linear-gradient(135deg, #f0f2f4 25%, transparent 25%, transparent 50%, #f0f2f4 50%, #f0f2f4 75%, transparent 75%);
  background-size: 8px 8px;
}

/* trial-row の padding を全方向 14px に */
.trial-row {
  padding: 8px 14px;
  border-bottom: 1px solid #f0f2f4;
}

/* 行全体クリック対応の inner はマージン調整不要に */
a.trial-row__inner {
  padding: 0;
  margin: 0;
}
a.trial-row__inner:hover {
  background: #f7f9fa;
}

/* ========================================================================
   v0.11.3a 微調整
   - リボン左上化、サムネ120px固定+成り行き縦・黒淵3px、padding 14px
   ======================================================================== */

/* リボン左上に変更 */
.trial-row__ribbon {
  top: 8px;
  left: -22px;
  right: auto;
  transform: rotate(-45deg);
}

/* サムネ: 横120px固定、縦は成り行き、黒淵3px */
.trial-row__thumb {
  width: 120px;
  height: auto;
  flex: 0 0 120px;
  border: 1px solid #e5e7e9;
  border-radius: 0;
}
.trial-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.trial-row__thumb-empty {
  width: 120px;
}

/* .trial-row 全体に padding 14px */
.trial-row {
  padding: 8px 14px;
  border-bottom: 1px solid #f0f2f4;
}
.trial-row > .trial-row__inner,
a.trial-row__inner {
  padding: 0;
  margin: 0;
}
a.trial-row__inner:hover {
  background: transparent;
}
.trial-row:hover {
  background: #f7f9fa;
}

/* ========================================================================
   v0.11.3b アスペクト比の出し分け + NoImage 対応
   - 連載タブ(episodes): 115:73 (横長)
   - コミックスタブ(volumes): 3:4 (縦長)
   ======================================================================== */

/* 連載タブ(panel=episodes)配下のサムネ: 横長(幅100px、高さは画像のアスペクト比に従う)
   v0.12.2d: 縦横比は画像のまま、NO IMAGE プレースホルダーのみ 115:73 横長 */
.trial-panel[data-trial-panel="episodes"] .trial-row__thumb {
  width: 65px;
  flex: 0 0 65px;
}
.trial-panel[data-trial-panel="episodes"] .trial-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.trial-panel[data-trial-panel="episodes"] .trial-row__thumb-empty {
  width: 65px;
  height: auto;
}

/* コミックスタブ(panel=volumes)配下のサムネ: v0.15.1-p7 幅 80px */
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb,
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb-empty {
  width: 80px;
  height: auto;
  flex: 0 0 80px;
}
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* NoImage 表示(画像なし時の placeholder) */
.trial-row__thumb-empty {
  background: #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  position: relative;
}
.trial-row__thumb-empty::before {
  content: 'NO IMAGE';
  font-weight: 600;
  color: #b0b6bc;
}

/* リボン位置調整(コミックスタブの縦長サムネだとリボンが食い込む可能性) */
.trial-row__ribbon {
  z-index: 3;
}

/* ========================================================================
   v0.11.3c 修正
   - read-badge タグ風(角丸枠線・透明背景)
   - ホバー時の背景はそのまま、バッジは独立
   - trial-list スクロール無効を再確認
   ======================================================================== */

/* タグ風 read-badge(最終定義) */
.read-badge {
  display: inline-block;
  border: 1px solid #b0b6bc;
  color: #888;
  background: transparent;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.5;
}

.trial-row:hover .read-badge {
  background: #fff;  /* hover時の row 背景でバッジが沈まないよう */
}

/* trial-row のスタイル安定化(最終定義) — v0.15.1-p7: 新構造に合わせ block + inner が flex */
.trial-row {
  position: relative;
  display: block;
  padding: 0;
  border-bottom: 1px solid #f0f2f4;
}
.trial-row__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 125px 5px 10px;
  text-decoration: none;
  color: inherit;
}
.trial-row:hover {
  background: #f7f9fa;
}

/* 「最新」行のグラデは控えめに */
.trial-row--latest {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.04) 0%, transparent 60%);
}
.trial-row--latest:hover {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.08) 0%, #f7f9fa 60%);
}

/* trial-list のスクロール無効を最終的に強制 */
.trial-panel,
.trial-list {
  max-height: none !important;
  overflow: visible !important;
}

/* is-hidden を確実に効かせる */
.trial-row.is-hidden,
.trial-panel[data-trial-panel="volumes"] .trial-row.is-hidden,
.trial-panel[data-trial-panel="episodes"] .trial-row.is-hidden {
  display: none !important;
}

/* ========================================================================
   v0.11.3d 微修正
   - read-badge の幅をコンテンツ幅に(flex子要素対応)
   ======================================================================== */

.read-badge {
  align-self: flex-start;
  width: auto;
}

/* ========================================================================
   v0.11.4a 修正
   - read-badge を確実に文字幅+左寄せ(タグデザイン)
   - 古い順時の「+全表示」ボタンを最上部
   - cta-volume-info デザイン変更(背景・ボーダーなし、タイトル大)
   ======================================================================== */

/* read-badge: 確実にコンテンツ幅 + 左寄せ */
.read-badge {
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content;
  flex: 0 0 auto;
}

/* trial-row 自体の hover ハイライトを強める */
.trial-row .read-badge {
  margin-left: 0;
  margin-top: 4px;
}

/* cta-volume-info: 背景色・ボーダー無し、タイトル大きめ */
.cta-volume-info {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.cta-volume-info__label {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.04em;
}
.cta-volume-info__title {
  font-size: 0.9rem !important;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
}
.cta-volume-info__title strong {
  font-size: 1.15rem !important;
  margin-left: 6px;
  color: #333333;
  font-weight: 700;
}
.cta-volume-info__date {
  font-size: 0.75rem !important;
  color: #555;
}

/* ========================================================================
   v0.11.5 配信ストアのアイコン表示
   - ロゴはもとのサイズを保持しつつ、CSS で一律高さ揃え
   - ホバーで浮き上がり、先行配信は枠線で強調
   ======================================================================== */

.store-list--icons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.store-list--icons .store-item {
  list-style: none;
  margin: 0;
}
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: #fff;
  border: 3px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: #333333;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  min-width: 0;
}
.store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #333333;
}
.store-logo {
  height: 36px;          /* 一律高さ揃え */
  max-height: 36px !important;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.store-label-fallback {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 4px;
}

/* 先行配信ストア(目立たせる) - 通常と同じ border 3px に統一 */
.store-item.is-advance .store-link {
  border-color: #ff6b35;
  padding: 3px;
}
.store-item__badge {
  position: absolute;
  top: -8px; right: -8px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
}

/* 単行本ストアモーダル内のアイコン表示 */
.vol-modal__stores--icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vol-modal__store {
  list-style: none;
  margin: 0;
}
.vol-modal__store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: #fff;
  border: 3px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: #333333;
  transition: all 0.15s ease;
  position: relative;
  min-height: 50px;
}
.vol-modal__store-link:hover {
  border-color: #333333;
  background: #f7f9fa;
}
.vol-modal__store-logo {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.vol-modal__store.is-advance .vol-modal__store-link {
  border-color: #ff6b35;
  border-width: 2px;
  padding: 3px;
}
.vol-modal__store-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 3px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .store-logo { height: 30px; }
  .store-link { padding: 6px 10px; }
}

/* ========================================================================
   v0.11.5b ストアアイコン白地対応
   - 白背景のロゴが多いため、コンテナを淡いグレーに変更
   - ホバー時に白背景に切り替わって浮き上がり感を演出
   ======================================================================== */

.store-link {
  background: #f7f9fa !important;
  border: 1px solid #c5cad0 !important;
  padding: 10px 14px !important;
}
.store-link:hover {
  background: #fff !important;
  border-color: #333333 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
}

/* 単行本ストアモーダル内も同様に */
.vol-modal__store-link {
  background: #f7f9fa !important;
  border: 1px solid #c5cad0 !important;
}
.vol-modal__store-link:hover {
  background: #fff !important;
  border-color: #333333 !important;
}

/* ロゴ画像の余白を確保(白ロゴが背景と一体化しないよう) */
.store-logo,
.vol-modal__store-logo {
  margin: 2px 0;
}

/* 先行配信ストアの強調を維持 */
.store-item.is-advance .store-link {
  background: #fff4ee !important;
  border-color: #ff6b35 !important;
  border-width: 2px !important;
  padding: 9px 13px !important;
}
.store-item.is-advance .store-link:hover {
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25) !important;
}
.vol-modal__store.is-advance .vol-modal__store-link {
  background: #fff4ee !important;
  border-color: #ff6b35 !important;
  border-width: 2px !important;
}

/* ========================================================================
   v0.11.5c UI微調整
   - ストアアイコン: 白背景・3px枠・is-advance は枠線のみコーラル
   - ストアバッジ: 黒地白字
   - 最新表紙・volumes-slider画像枠を 3px solid #333333 + radius 4px
   - btn--primary に色付け + radius 4px
   - コミックスリスト: 画像右に回り込み
   ======================================================================== */

/* === 1. .store-link: 白背景に戻し、枠 3px、is-advance は枠線のみコーラル === */
.store-link {
  background: #fff !important;
  border: 3px solid #c5cad0 !important;
  padding: 8px 12px !important;
}
.store-link:hover {
  background: #fff !important;
  border-color: #333333 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
}
.store-item.is-advance .store-link {
  background: #fff !important;
  border: 3px solid #ff6b35 !important;
  padding: 8px 12px !important;
}
.store-item.is-advance .store-link:hover {
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.30) !important;
}

/* モーダル内も同様(枠3px・白背景) */
.vol-modal__store-link {
  background: #fff !important;
  border: 3px solid #c5cad0 !important;
}
.vol-modal__store-link:hover {
  background: #fff !important;
  border-color: #333333 !important;
}
.vol-modal__store.is-advance .vol-modal__store-link {
  background: #fff !important;
  border: 3px solid #ff6b35 !important;
}

/* === 2. .store-item__badge を黒地白字 === */
.store-item__badge {
  background: #333333 !important;
  color: #fff !important;
  border: 1px solid #333333;
}
.vol-modal__store-badge {
  background: #333333 !important;
  color: #fff !important;
}

/* === 3. volumes-slider 内表紙の枠 (v0.14.0-p40: 1px border + radius 0) === */
.volume-card__cover {
  border: 1px solid #e5e7e9 !important;
  border-radius: 0 !important;
  overflow: hidden;
}
/* 旧定義の互換用 */
.volumes-slider__track .vol-item__thumb,
.volumes-slider__track [class*="thumb"] {
  border: 1px solid #e5e7e9 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

/* === 4. .btn.btn--primary 色付け + radius 4px === */
.btn,
.btn--primary,
.btn--secondary {
  border-radius: 4px !important;
}
.btn--primary {
  background: #fddd09 !important;
  color: #1f2933 !important;
  border: none;
  font-weight: 600;
}
.btn--primary:hover {
  background: #ffeb64 !important;
  border-color: #e85a28 !important;
}
.btn--secondary {
  background: #fff !important;
  color: #333333 !important;
  border: 2px solid #333333 !important;
}
.btn--secondary:hover {
  background: #333333 !important;
  color: #fff !important;
}

/* === 5. cta-free-info (表示はそのまま、データ側で volume のみ集計に変更済) === */

/* === 6. 連載中バッジ (PHP側で件数付与済) === */

/* === 7. コミックスリスト: v0.15.1-p7 連載と同じ inner flex 構造に統一 === */
.trial-panel[data-trial-panel="volumes"] .trial-row {
  display: block !important;
  position: relative;
}
.trial-panel[data-trial-panel="volumes"] .trial-row__action {
  margin-top: 0;
}

/* ========================================================================
   v0.11.5g UI微調整
   ======================================================================== */

/* === 1. .work-hero padding 強制 === */
.work-hero {
  padding: 2rem 1rem 3rem !important;
}

/* === 2. スマホ閲覧時もwork-hero__latest-row内、CTAは右に回り込む === */
@media (max-width: 768px) {
  .work-hero__latest-row {
    flex-direction: row !important;
    align-items: stretch !important;
  }
  .work-hero__latest-row .latest-card {
    flex: 0 0 auto !important;
    align-items: flex-start !important;
  }
  .work-hero__latest-row .work-hero__cta {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* === 3. スマホ閲覧時、連載・コミックスの一覧 左右 padding を 0 === */
@media (max-width: 768px) {
  .trial-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .trial-panel {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .trial-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* === 4. 単行本スライダー: 表紙を少し小さく(3.5枚見せ)+ 矢印中央位置調整 === */
.volume-card {
  flex: 0 0 110px !important;  /* 150 → 110 */
}
.volume-card__cover {
  width: 110px !important;     /* 150 → 110 */
  height: 156px !important;    /* 213 → 156(3:4キープ) */
}
/* 矢印を表紙の縦中央に配置(volume-card__num の高さを除外) */
.volumes-slider {
  position: relative;
}
.volumes-slider__arrow {
  top: 60px !important;
  transform: none !important;
  margin-top: 4px;             /* スライダー padding 分 */
}

/* スマホ時のスライダー: 表紙さらに小さめで 3.5 枚見せ */
@media (max-width: 768px) {
  .volume-card {
    flex: 0 0 28vw !important;     /* 100/3.5 ≒ 28vw */
  }
  .volume-card__cover {
    width: 28vw !important;
    height: calc(28vw * 4 / 3) !important;
  }
  .volumes-slider__arrow {
    top: calc(28vw * 2 / 3) !important;   /* 高さの半分 */
  }
}

/* === 5. コミックスタブに「N巻無料配信中」副表示 === */
.trial-tab {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trial-tab__free {
  display: block;
  font-size: 0.65rem;
  color: #b8860b;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.trial-tab.is-active .trial-tab__free {
  color: #ff6b35;
}

/* ========================================================================
   v0.11.5h スマホ時の work-hero__right を画面端まで広げる
   - .work-hero の padding: 2rem 1rem 3rem の左右1remを負のマージンで相殺
   - これにより連載/コミックスタブ〜リスト末尾まで画面端まで届く
   ======================================================================== */

@media (max-width: 768px) {
  .work-hero__right {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }
  /* タブ内・リストもしっかり画面幅を使う */
  .work-hero__right .trial-tabs,
  .work-hero__right .trial-list-info,
  .work-hero__right .trial-shortcut,
  .work-hero__right .trial-panel,
  .work-hero__right .trial-list {
    width: 100%;
  }
}

/* ========================================================================
   v0.11.5i スマホ閲覧時の細部調整
   ======================================================================== */

@media (max-width: 768px) {
  /* trial-tabs: 背景無し・上下マージン無し・padding 10px */
  .trial-tabs {
    background: transparent !important;
    padding: 10px !important;
    margin: 0 !important;
  }
  /* trial-tab: padding 0.5rem・黒枠 3px・マージン無し */
  .trial-tab {
    padding: 0.5rem !important;
    border: 3px solid #333 !important;
    margin: 0 !important;
  }
  /* trial-list-info: 内余白調整 */
  .trial-list-info {
    padding: 0.6rem 0 0.6rem 0.25rem !important;
  }
  /* trial-shortcut: padding 無し */
  .trial-shortcut {
    padding: 0 !important;
  }
  /* trial-row: 7px 10px に圧縮 */
  .trial-row {
    padding: 7px 10px !important;
  }
  /* trial-expand-btn: 左右に余白 */
  .trial-expand-btn {
    margin-left: 10px !important;
    margin-right: 10px !important;
    width: calc(100% - 20px) !important;
  }
}

/* === ストアリンクを 380px 以下で 3列グリッド配置 === */
@media (max-width: 380px) {
  .store-list--icons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .store-list--icons .store-item {
    width: 100%;
    margin: 0;
  }
  .store-list--icons .store-link {
    width: 100% !important;
    padding: 6px 4px !important;
    box-sizing: border-box;
  }
  .store-logo {
    max-width: 100% !important;
    height: auto !important;
    max-height: 32px !important;
  }
}

/* ========================================================================
   v0.11.5j スマホ閲覧時の細部調整(続き)
   ======================================================================== */

@media (max-width: 768px) {
  /* work-hero padding 統一 */
  .work-hero {
    padding: 0 0 1rem !important;
  }
  .work-hero__inner {
    padding: 1rem;
  }
  /* v0.14.0-p26: SP バナーは全幅 + 下に 1px ライン */
  .work-hero > .work-hero__banner {
    margin: 0;
    max-width: none;
    border-bottom: 1px solid #e5e7e9;
  }
  /* v0.14.0-p34: SP は credits を縦並び (上)、 label + share を横並び (下) */
  .work-hero__credits-row {
    display: block;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .work-hero__credits-row .work-hero__credits {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7e9;
    display: block;
  }
  /* レーベルとシェアは横並び (左 label、 右 share) */
  .work-hero__credits-row .work-hero__label {
    display: inline-flex;
    align-items: center;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    vertical-align: middle;
  }
  .work-hero__credits-row .work-hero__share {
    display: inline-flex;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    margin-left: auto;
    border-bottom: none;
    float: right;
  }
  /* label + share を横並びにするためのラッパー的扱い: ::after で clearfix */
  .work-hero__credits-row::after {
    content: '';
    display: block;
    clear: both;
  }
  /* v0.14.0-p26: SP title 0.9rem */
  .work-hero__title-top { font-size: 0.9rem !important; }

  /* 各セクションに左右 padding を均等付与 */
  .work-single > section {
    padding: 1rem;
  }

  /* trial-shortcut: padding 12px、角丸なし */
  .trial-shortcut {
    padding: 12px !important;
    border-radius: 0 !important;
  }

  /* trial-list-info: 4方向均等の 0.6rem */
  .trial-list-info {
    padding: 0.6rem !important;
  }

  /* ストアリンクを 3列グリッド固定(iPhone15 等の幅でも均等配置) */
  .store-list--icons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .store-list--icons .store-item {
    width: 100%;
    margin: 0;
  }
  .store-list--icons .store-link {
    width: 100% !important;
    padding: 8px 6px !important;
    box-sizing: border-box;
  }
  .store-logo {
    max-width: 100% !important;
    height: auto !important;
    max-height: 36px !important;
  }
}

/* ========================================================================
   v0.11.5k UI微調整
   ======================================================================== */

/* === credits: スマホ時も横並び維持(改行なし、はみ出し時は横スクロール) === */
@media (max-width: 768px) {
  .work-hero__credits {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .work-hero__credits::-webkit-scrollbar {
    height: 4px;
  }
  .work-hero__credits::-webkit-scrollbar-thumb {
    background: #cfd4d8;
    border-radius: 2px;
  }
  .credit-segment {
    flex-shrink: 0;
  }
}

/* === work-hero__catch: border 無し・色 #d63b3b === */
.work-hero__catch {
  border: none !important;
  border-left: none !important;
  padding: 0 !important;
  color: #d63b3b !important;
}

/* === cta-free-info: 改行しない・横並び === */
/* v0.12.3a: 旧 row !important を解除(3行縦並びにするため) */
.cta-free-info {
  flex-direction: column !important;
  align-items: stretch !important;
  white-space: normal !important;
  text-align: left !important;
}
.cta-free-info strong,
.cta-free-info small {
  white-space: normal !important;
}

/* === latest-card__body: 中央配置 === */
.latest-card__body {
  text-align: center !important;
  align-items: center !important;
}

/* === store-link: grid セル内で中央配置 === */
.store-list--icons .store-link {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  text-align: center;
}

/* === 連載タブ: 上下中央配置(副表示なし時) === */
.trial-tab {
  justify-content: center !important;
}
.trial-tab__update {
  display: block;
  font-size: 0.65rem;
  color: #ff6b35;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.trial-tab.is-active .trial-tab__update {
  color: #ff6b35;
}

/* ========================================================================
   v0.11.5l 微調整
   ======================================================================== */

/* === スライダースクロールバー非表示 === */
.volumes-slider__track {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}
.volumes-slider__track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* === スマホ時の表紙サイズ縮小(4枚目が右に少し見える 22vw 設定) === */
@media (max-width: 768px) {
  .volume-card {
    flex: 0 0 25vw !important;
  }
  .volume-card__cover {
    width: 25vw !important;
    height: calc(25vw * 4 / 3) !important;
  }
  .volumes-slider__arrow {
    top: calc(17vw * 2 / 3) !important;
  }
}

/* === cta-free-info の文字サイズ === */
.cta-free-info strong {
  font-size: 0.7rem !important;
}
.cta-free-info small {
  font-size: 0.6rem !important;
}

/* === latest-card__body を確実に中央合わせ === */
.work-hero__latest-row .latest-card__body,
.latest-card__body {
  display: block !important;
  text-align: center !important;
}
.latest-card__body .latest-card__label,
.latest-card__body .latest-card__count {
  display: block !important;
  text-align: center !important;
  width: 100%;
}

/* ========================================================================
   v0.11.5m UI微調整
   ======================================================================== */

/* === trial-row__thumb 100px === */
.trial-row__thumb {
  flex: 0 0 100px !important;
}
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb,
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb-empty {
  width: 80px !important;
  flex: 0 0 80px !important;
}

/* === スマホ時の単行本スライダー: 17vw 設定(5枚以上見え) === */
@media (max-width: 768px) {
  .volume-card {
    flex: 0 0 25vw !important;
  }
  .volume-card__cover {
    width: 25vw !important;
    height: calc(25vw * 4 / 3) !important;
  }
  .volumes-slider__arrow {
    top: calc(17vw * 2 / 3) !important;
  }
}

/* === store-list--icons PC時 gap 10px === */
@media (min-width: 769px) {
  .store-list--icons {
    gap: 9px !important;
  }
}

/* === trial-expand-btn 色調整(ゴールド系) === */
.trial-expand-btn {
  background: linear-gradient(135deg, #f9f3e3 0%, #fcf6dd 100%) !important;
  color: #8b6f3a !important;
  border: 1px dashed #c9a961 !important;
}
.trial-expand-btn:hover {
  border-color: #c9a961 !important;
  border-style: solid !important;
  background: linear-gradient(135deg, #fcf6dd 0%, #f9f3e3 100%) !important;
}

/* === モーダル dialog border-radius === */
.vol-modal__dialog {
  border-radius: 10px !important;
}

/* === モーダル header の新構造 === */
.vol-modal__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #333333;
  line-height: 1.4;
}
.vol-modal__title-sep {
  color: #888;
  margin: 0 0.2em;
}
.vol-modal__status {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  font-weight: 500;
}

/* === モーダル ストアアイコン: padding + スマホ時 3列 === */
.vol-modal__stores--icons {
  padding: 20px 14px !important;
}
@media (max-width: 768px) {
  .vol-modal__stores--icons {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ========================================================================
   v0.11.6a 修正
   ======================================================================== */

/* === 単行本一覧サムネを 22vw に戻す(17vw→22vw)+ 矢印位置も対応 === */
@media (max-width: 768px) {
  .volume-card {
    flex: 0 0 25vw !important;
  }
  .volume-card__cover {
    width: 25vw !important;
    height: calc(25vw * 4 / 3) !important;
  }
  .volumes-slider__arrow {
    top: calc(17vw * 2 / 3) !important;
  }
}

/* === 作家クレジット: 区切り「／」横並び、はみ出し時は改行(横スクロールなし) === */
.work-hero__credits {
  display: block !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .work-hero__credits {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    white-space: normal !important;
  }
}
.credit-segment {
  display: inline;
  flex-shrink: initial;
  white-space: nowrap;
}
.credit-segment + .credit-segment::before {
  content: '／';
  color: #888;
  margin: 0 0.25em;
}
.credit-segment__role {
  margin-right: 0.4em;
}

/* ========================================================================
   v0.12.2c-e: 連載タブの「最新話固定カード」
   ======================================================================== */
.latest-episode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.latest-episode-card__thumb {
  flex: 0 0 100px;
  width: 100px;
}
.latest-episode-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #333;
  border-radius: 4px;
  box-sizing: border-box;
}
.latest-episode-card__thumb-empty {
  width: 100%;
  background: #f0f2f4;
  border: 3px solid #333;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
}
.latest-episode-card__thumb-empty::before {
  content: 'NO IMAGE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b6bc;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.latest-episode-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}
.latest-episode-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2933;
  white-space: normal;
  word-break: break-word;
  width: 100%;
}
.latest-episode-card__count {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ========================================================================
   v0.12.2c: 配信日(未来)・無料期間 表示
   ======================================================================== */
.trial-row__date--future {
  color: #d97706;
  font-weight: 600;
}
.trial-row__period--free {
  color: #c2410c;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ========================================================================
   v0.12.2c: 単行本スライダー、未来配信日ラベル
   ======================================================================== */
.volume-card__future-date {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 600;
  text-align: center;
}

/* ========================================================================
   v0.12.2g-h: cta-free-info(連載・コミックス情報 + アンカーリンク)
   ======================================================================== */
.cta-free-info {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-free-info__label {
  font-size: 0.7rem;
  color: #333333;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.cta-free-info__body {
  font-size: 0.85rem;
  color: #c2410c;
  line-height: 1.4;
}
.cta-free-info__body strong {
  font-weight: 700;
  color: #c2410c;
  margin-right: 4px;
}
.cta-free-info__exp {
  font-size: 0.78rem;
  color: #c2410c;
}
/* v0.12.2h-i: ラベル/本文は縦、ボタンは横並び */
.cta-free-info__links {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin-top: 4px;
}
.cta-free-info__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #333333;
  border-radius: 4px;
  color: #333333;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.cta-free-info__link:hover {
  background: #333333;
  color: #ffffff;
}

/* v0.12.4a: コミックスタブの「立ち読み」ボタン */
.trial-row__action--trial {
  background: #fff !important;
  color: #1f2933 !important;
  border: 1px solid #1f2933 !important;
}
.trial-row__action--trial:hover {
  background: #1f2933 !important;
  color: #fff !important;
}
.trial-row__action--disabled {
  background: #f0f0f0 !important;
  color: #999 !important;
  border: 1px solid #ddd !important;
  cursor: not-allowed;
}

/* v0.12.5: read-badge を trial-row__title の右にインライン表示 */
.trial-row__body {
  /* タイトルとバッジが横並びになるよう調整 */
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trial-row__title + .read-badge {
  display: inline-block;
  margin-top: 0;
  vertical-align: middle;
  font-size: 0.65rem;
  padding: 1px 6px;
}
/* タイトル行とバッジを同じ行に並べる */
.trial-row__body > .trial-row__title:has(+ .read-badge) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* v0.12.5a: 連載 period の「会員ユーザー限定」リンクスタイル */
a.trial-row__period.trial-row__period--members {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.trial-row__period.trial-row__period--members:hover {
  filter: brightness(0.95);
}
/* pre + members 同時表示時、改行 */
.trial-row__period--pre + .trial-row__period--members {
  margin-top: 4px;
}

/* ========================================================================
   v0.12.5d: 単行本カードの NEW リボン(斜め・trial-row__ribbon と同様)
   ======================================================================== */
.volume-card { position: relative; }
.volume-card__cover { position: relative; overflow: hidden; }
.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);
  transform-origin: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}

/* ========================================================================
   v0.12.5c: サイト全体の黒 (#333333) を 落ち着いた濃グレー (#333333) に
   ※ #333 / #333333 は別途残す(リーダー背景など)
   ======================================================================== */
:root {
  --dc-text-primary: #333333;
}
body {
  color: #333333;
  font-size: 0.88rem;
}
/* 見出し・強調系はサイズ指定維持(下記でも明示的にサイズ指定済みのものに影響なし) */
h1, h2, h3, h4, h5, h6, strong, b, .section-title, .work-hero__title-top {
  /* font-size は元の指定を維持(これらは別途 rem 指定済み) */
}

/* ========================================================================
   v0.12.5d: 作品紹介・登場人物・自由フォームの本文サイズを 0.88rem に
   ======================================================================== */
.work-overview__body,
.work-overview__body p,
.work-characters .fc-text,
.fc-text,
.work-freecontent,
.work-freecontent p,
.work-freecontent__body {
  font-size: 0.88rem;
}

/* v0.14.0-p25: work-hero__header-banner は撤廃 (ACF contents_image 関連も削除) */

/* trial-row 配信日(title の上に表示) */
.trial-row__release-date {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* 旧 read-badge は非表示(JS でも生成しないが、 万一残ったときの保険) */
.read-badge { display: none !important; }

@media (max-width: 768px) {
  /* v0.14.0-p25: work-hero__header-banner 関連は撤廃 */
}

/* ========================================================================
   v0.13.0-p14: 連載リスト「ストアでお楽しみください」 行
   v0.13.0-p15: 子要素を確実に中央配置
   ======================================================================== */
.trial-row--store-skip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #fff8e7;
  border: 1px dashed #e0b870;
  border-radius: 4px;
  margin: 4px 0;
  text-align: center;
}
.trial-row__store-skip-message {
  font-size: 0.85rem;
  color: #6b5530;
  text-align: center;
  width: 100%;
}
.trial-row__store-skip-link {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  margin: 0 auto;
}
.trial-row__store-skip-link:hover {
  opacity: 0.85;
}


/* ========================================================================
   v0.14.0-p32: trial-tabs スタイリッシュデザイン (下線型タブ)
   trial-shortcut の下に配置されることを前提に、 シンプルなフラット下線タブに刷新
   ======================================================================== */
.trial-tabs {
  display: flex !important;
  gap: 0 !important;
  border-bottom: 1px solid #e5e7e9 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 1rem 0 0.5rem !important;
  box-shadow: none !important;
}
.trial-tab {
  flex: 1 1 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 8px !important;
  font-size: 0.9rem !important;
  color: #888 !important;
  cursor: pointer !important;
  position: relative !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  transition: color 0.2s ease !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.trial-tab:hover {
  color: #555 !important;
  background: #fff;
}
.trial-tab.is-active {
  color: var(--brand, #ff6b35) !important;
  font-weight: 700 !important;
  background: rgba(0,0,0,0.02) !important;
}
.trial-tab.is-active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--brand, #ff6b35) !important;
  border-radius: 2px 2px 0 0 !important;
}
.trial-tabs .trial-tab__main {
  font-size: 0.95rem !important;
}
.trial-tabs .trial-tab__count {
  font-size: 0.85em;
  opacity: 0.7;
  font-weight: inherit;
}
.trial-tabs .trial-tab__free,
.trial-tabs .trial-tab__update {
  font-size: 0.65rem !important;
  color: #ff3d00 !important;
  font-weight: 600 !important;
}
.trial-tab.is-active .trial-tab__free,
.trial-tab.is-active .trial-tab__update {
  color: #ff3d00 !important;
}

@media (max-width: 768px) {
  .trial-tabs {
    margin: 1rem 0 0.5rem !important;
  }
  .trial-tab {
    padding: 10px 4px !important;
    font-size: 0.85rem !important;
  }
  .trial-tabs .trial-tab__main {
    font-size: 0.9rem !important;
  }
}

/* ========================================================================
   v0.14.0-p33: レーベルロゴ表示 (テキストの代わりに画像リンク)
   v0.14.0-p34: ロゴを小型化 (PC 20px / SP 18px)
   ======================================================================== */
.work-hero__label .label-line__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.work-hero__label .label-line__logo {
  display: block;
  max-height: 20px;
  width: auto;
  object-fit: contain;
}
.work-hero__label .label-line__name {
  font-size: 0.78rem;
  color: #555;
}
@media (max-width: 768px) {
  .work-hero__label .label-line__logo {
    max-height: 18px;
  }
}

/* ========================================================================
   v0.14.0-p35: 同じ作家の作品 / おすすめの作品 (8件、 PC4列 / SP2列)
                section-title 共通 (work-same-author / work-same-label / work-volumes 統一)
   ======================================================================== */
.work-same-author,
.work-same-label {
  background: #fff;
  padding: 2rem 1.5rem;
}
.work-same-author__inner,
.work-same-label__inner {
  max-width: 960px;
  margin: 0 auto;
}

/* section-title 共通スタイル (見出し + 右端「もっと見る」) */
.work-same-author .section-title,
.work-same-label .section-title,
.work-volumes .section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand, #ff6b35);
}
.work-same-author .section-title__main,
.work-same-label .section-title__main,
.work-volumes .section-title__main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2933;
  margin: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.work-same-author .section-title__sub,
.work-same-label .section-title__sub,
.work-volumes .section-title__sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.05em;
}
.work-same-author .section-title__more,
.work-same-label .section-title__more {
  font-size: 0.78rem;
  color: var(--brand, #ff6b35);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
}
.work-same-author .section-title__more:hover,
.work-same-label .section-title__more:hover {
  text-decoration: underline;
}

/* 4列 grid (PC) / 2列 (SP) */
.work-same-author__grid,
.work-same-label__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.work-same-author__item,
.work-same-label__item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.work-same-author__item:hover,
.work-same-label__item:hover {
  opacity: 0.85;
}
.work-same-author__thumb,
.work-same-label__thumb {
  display: block;
  width: 100%;
  background: #f0f2f4;
  border: 1px solid #e5e7e9;
  border-radius: 8px;
}
.work-same-author__no-image,
.work-same-label__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.work-same-author__title,
.work-same-label__title {
  font-size: 0.78rem;
  margin: 6px 0 2px;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* v0.14.0-p35: front-ranking-v2__subtitle と同じスタイルのサブタイトル「全○話配信中」 */
.work-same-author__subtitle,
.work-same-label__subtitle {
  font-size: 0.7rem;
  color: var(--brand, #ff6b35);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .work-same-author,
  .work-same-label {
    padding: 1.5rem 1rem;
  }
  .work-same-author__grid,
  .work-same-label__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ========================================================================
   v0.14.0-p36: コミックスの大きな表紙画像 (covers/N.jpg、 ~1500x2200) を
   小さく表示する時の品質改善
   - latest-card は thumbs (小) → 既に綺麗、 そのまま
   - コミックス trial-row__thumb / volume-card__cover は covers (大) を縮小
   ======================================================================== */
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb img,
.volume-card__cover img,
.front-comics__cover img {
  /* fallback: Firefox / Safari 系の高品質スケーリング */
}

/* ========================================================================
   v0.15.0: 待てば無料 バッジ + 状態表示
   v0.15.0-p5: コンパクトなアイコンとして右端・上下中央に配置
   ======================================================================== */
.trial-row {
  position: relative;
}
.trial-row__wait-free-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  background: #fff4e6;
  color: #c0521b;
  border: 1px solid #f6c79f;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}
/* SP では更にコンパクトに */
@media (max-width: 768px) {
  .trial-row__wait-free-icon {
    right: 8px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}

/* wait_free_waiting の行は非活性表示 */
.trial-row--wait_free_waiting .trial-row__inner {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================================================
   v0.15.1: trial-list-info の NEW バッジ
   ======================================================================== */
.trial-list-info__new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px 4px 6px;
  background: #ff3d00;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-left: 4px;
  vertical-align: middle;
  border-radius:3px;
}

/* ========================================================================
   v0.15.1-p3: 既存 .trial-row が display:flex で .trial-row__inner と競合していた件を解消
     既存 .trial-row(line 628) は flex container として直接 thumb/body を子に持つ前提だったが
     新構造では .trial-row__inner が flex container を担うため、 .trial-row は block に戻す。
     これにより inner が幅 100% を取れず content min-width に縮んで縦書きになる問題を解消。
   ======================================================================== */

/* .trial-row を block に上書き (既存 display: flex を打ち消し) */
.trial-row {
  display: block !important;
  align-items: initial !important;
  gap: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* サムネ画像幅: 連載 65px / コミックス 80px */
.trial-row__thumb {
  width: 65px !important;
  flex: 0 0 65px !important;
}
.trial-row--volume .trial-row__thumb,
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb {
  width: 80px !important;
  flex: 0 0 80px !important;
}

/* trial-row__inner: ユーザー希望 padding 5px 10px、 side の余白は main で確保 */
.trial-row a.trial-row__inner,
.trial-row > a.trial-row__inner,
.trial-row > div.trial-row__inner,
a.trial-row__inner,
div.trial-row__inner,
.trial-row__inner {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 12px !important;
  padding: 5px 10px 5px 10px !important;
  align-items: flex-start !important;
  text-decoration: none;
  color: inherit;
}
.trial-row__inner--clickable {
  cursor: pointer;
}
.trial-row__inner--clickable:hover {
  background: #f7f9fa;
}

/* body は flex column で main を含む */
.trial-row__body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* main は flex column */
.trial-row__main {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

/* side は .trial-row 基準で右端・上下中央 (行全体の高さ基準なので毎日無料行でも安定) */
.trial-row {
  position: relative;
}
.trial-row__side {
  position: absolute !important;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 105px;
  z-index: 2;
}

/* タイトル */
.trial-row__main .trial-row__title {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f2933;
  line-height: 1.3;
  min-width: 0;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}
.trial-row__main .trial-row__subtitle {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 400;
}

/* 未来配信日 */
.trial-row__future-date {
  font-size: 0.7rem;
  color: #6b7280;
}

/* 毎日無料アイコン (side 内) */
.trial-row__side .trial-row__wait-free-icon {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  /* v0.15.8-p2: 画像アイコンのため背景・余白なし */
  background: transparent !important;
  padding: 0;
  border: none;
  line-height: 1;
}
.trial-row__wf-img {
  display: block;
  height: 27px;
  width: auto;
}
.trial-row__wf-clock {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: block;
}

/* 早読みNh */
.trial-row__early-read {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1;
}

/* 閲覧期限残り */
.trial-row__expires-info {
  font-size: 0.6rem;
  padding: 3px 7px;
  color: #047857;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
}

/* コミックス: アクションボタン (side に配置) */
.trial-row__side .trial-row__action {
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-weight: 600;
}
.trial-row__side .trial-row__action--free {
  background: var(--brand, #ff6b35) !important;
  color: #fff;
  border: none;
}
.trial-row__side .trial-row__action--trial {
  background: #fff;
  color: #1f2933;
  border: 1px solid #1f2933;
}
.trial-row__side .trial-row__action--members {
  background: #c3b047;
  color: #fff;
}

/* コミックス: アクセスラベル (main の 1 行目に表示) */
.trial-row__access-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 7px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.trial-row__access-label--full {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.trial-row__access-label--trial,
.trial-row__access-label--forbidden {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}

/* 管理者編集リンク */
.trial-row__edit-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  color: #2563eb;
  text-decoration: none;
  margin-top: 4px;
  padding: 1px 4px;
}
.trial-row__edit-link:hover {
  background: #dbeafe;
  text-decoration: underline;
}

/* trial-list-info の NEW バッジを count の右隣に表示するための左グループ */
.trial-list-info__left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* trial-row の境界線は inner に */
.trial-row + .trial-row .trial-row__inner {
  border-top: 1px solid #f0f2f4;
}

/* SP 調整 */
@media (max-width: 768px) {
  .trial-row__inner {
    padding: 5px 10px !important;
    padding-right: 115px !important;
    gap: 10px !important;
  }
  .trial-row__main .trial-row__title {
    font-size: 0.78rem;
  }
  .trial-row__side {
  }
  .trial-row__side .trial-row__wait-free-icon,
  .trial-row__early-read,
  .trial-row__expires-info {
  }
  .trial-row__side .trial-row__action {
  }
}

/* ========================================================================
   v0.15.1-p10: 作品タグ一覧 (work-hero__inner の下)
   ======================================================================== */
.work-hero__tags {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-hero__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #555;
  background: #f0f2f4;
  border: 1px solid #e2e6e9;
  border-radius: 14px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.work-hero__tag:hover {
  background: #e5e7eb;
  color: #4b5563;
  border-color: #d1d5db;
}
@media (max-width: 768px) {
  .work-hero__tags {
    padding: 0.5rem 0.75rem 1rem;
    gap: 6px;
  }
  .work-hero__tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}

/* v0.15.1-p11: 連載リスト 誰でも無料 (public + 無料期間開始あり) の【無料で読む】ラベル */
.trial-row__free-read {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  background: #1f2933;
  color: #fff;
  border: none;
  border-radius: 5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

/* v0.15.1-p13: 連載リスト 立ち読み (list_only / 期間終了) ラベル */
.trial-row__trial-read {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  background: #fff;
  color: #1f2933;
  border: 1px solid #1f2933;
  border-radius: 5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* v0.15.1-p14: 【無料で読む】 の下の閲覧期限表示 */
.trial-row__free-deadline {
  display: block;
  font-size: 0.6rem;
  color: #6b7280;
  line-height: 1.3;
  text-align: center;
  margin-top: 3px;
  white-space: nowrap;
}

/* ============================================================
   v0.16.4: お気に入りボタン (作品ページ)
   ============================================================ */
.work-hero__fav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0.5rem 1rem;
}
.dc-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #fff;
  border: 1.5px solid #e0a800;
  border-radius: 999px;
  color: #c47d00;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dc-fav-btn:hover { background: #fff8e6; }
.dc-fav-btn.is-active {
  background: #e0a800;
  color: #fff;
}
.dc-fav-btn__icon { font-size: 1.05rem; line-height: 1; }
.dc-fav-btn:disabled { opacity: 0.6; cursor: default; }

/* ============================================================
   v0.16.6: お気に入りボタン icon バリアント (SNSアイコン左の丸★)
   ============================================================ */
.dc-fav-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #ff4d6d;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
  vertical-align: middle;
}
.dc-fav-btn--icon .dc-fav-btn__icon { font-size: 0.95rem; line-height: 1; display: block; }
.dc-fav-btn--icon .dc-fav-heart { width: 20px; height: 20px; display: block; }
.dc-fav-btn--icon:hover { color: #ff4d6d; transform: scale(1.08); }
/* オフ=線ハート、 オン=塗りハート。 どちらもピンク・枠なし */
.dc-fav-btn--icon.is-active {
  background: transparent;
  border-color: transparent;
  color: #ff4d6d;
}
.dc-fav-btn--icon:disabled { opacity: 0.6; cursor: default; }

/* 未ログイン時のお気に入り誘導ボタン (作品ページ) */
.work-hero__fav--guest {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0.5rem 1rem;
}
.work-hero__fav-guest-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1.5px solid #e0a800;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}
.work-hero__fav-guest-btn:hover { background: #fff4d6; }
.work-hero__fav-guest-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c47d00;
  margin-bottom: 4px;
}
.work-hero__fav-guest-note {
  display: block;
  font-size: 0.76rem;
  color: #8a7350;
  line-height: 1.5;
}

/* ============================================================
   作品ページ: 累計応援♥数
   ============================================================ */
.work-hero__cheer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 12px;
  background: #fff0f4;
  border: 1px solid #ffd6e1;
  border-radius: 999px;
  font-size: 0.82rem;
}
.dc-cheer-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dc-cheer-total__icon { color: #ff2d6f; font-size: 0.95rem; line-height: 1; }
.dc-cheer-total__num { font-weight: 700; color: #e0235c; }
.work-hero__cheer-note { color: #b06; font-size: 0.76rem; }

/* single_split のリスト行: 「ストアで読む」 (立ち読みと区別、 ゴールド枠) */
.trial-row__store-read {
  background: #fff;
  color: #b8860b;
  border-color: #e0a800;
}

/* 管理者向け: 公開予約 (future) バッジ */
.trial-row__scheduled {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #ea580c;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  margin-right: 6px;
}

/* リスト: 最新話・最新刊の配信日 */
.trial-row__release-date {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
}

/* 応援♥を作品画像の右下にオーバーレイ */
.work-hero__head-media { position: relative; }
.work-hero__cheer--overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin-top: 0;
  z-index: 2;
  background: rgba(255, 240, 244, 0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ============================================================
   作品情報 開閉 (キャッチ + 長文紹介 + タグ)
   ============================================================ */
.work-hero__overview { position: relative; margin-top: 10px; }
.work-hero__overview .work-hero__catch {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1f2933;
  margin: 0 0 6px;
}
/* 折りたたみ時: 詳細(長文+タグ)は隠す */
.work-hero__overview.is-collapsed .work-hero__overview-body {
  display: block;
  /* v0.19.11: 紹介文(work-hero__intro)が うっすら見える程度まで狭める */
  max-height: 52px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.work-hero__overview.is-open .work-hero__overview-body {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.work-hero__overview-body { margin-top: 8px; }
.work-hero__overview .work-hero__intro {
  font-size: 0.86rem;
  line-height: 1.85;
  color: #3a4250;
  margin: 0 0 12px;
}
/* 折りたたみ時、 キャッチを2〜3行でクランプし下端をぼかす */
/* v0.19.11: キャッチはグラデ(mask)をかけず、 常にはっきり見せる */
.work-hero__overview.is-collapsed .work-hero__catch {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-hero__overview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 4px 0;
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.work-hero__overview-toggle .caret { font-size: 0.7rem; }

/* タグ一覧 */
.work-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.work-hero__tag {
  font-size: 0.76rem;
  color: #4b5563;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
}
.work-hero__tag:hover { background: #e5e7eb; }

/* ============================================================
   登場人物 (左カラム内: PC3列 / SP2列、 丸サムネ)
   ============================================================ */
.work-characters { margin-top: 20px; }
.work-characters__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
}
.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.character-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f3f5;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.12);
  margin-bottom: 8px;
}
.character-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.character-card__role {
  display: inline-block;
  font-size: 0.68rem;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 2px;
}
.character-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2933;
  margin: 0 0 4px;
}
.character-card__desc {
  font-size: 0.74rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}
@media (max-width: 768px) {
  .work-characters__list { grid-template-columns: repeat(2, 1fr); }
  .character-card__image { width: 100px; height: 100px; }
}

/* ============================================================
   自由フォーム 見出し
   ============================================================ */
.work-freecontent { margin-top: 20px; }
.fc-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2933;
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #b8860b;
  line-height: 1.4;
}
.fc-text { font-size: 0.86rem; line-height: 1.8; color: #3a4250; margin-bottom: 12px; }
.fc-image { margin: 12px 0; }
.fc-image img { max-width: 100%; height: auto; border-radius: 4px; }
.fc-image figcaption { font-size: 0.74rem; color: #6b7280; margin-top: 4px; text-align: center; }


/* ============ 無料バッジ + topmeta (head-media内・画像の下) (v0.17.81) ============ */
.work-hero__free-line {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  padding: 3px 3px 5px 3px;
  margin-bottom: 10px;
}
.work-hero__free-badge {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #d63b3b !important;
  letter-spacing: 0.04em;
}
.work-hero__free-exp { display: block; font-size: 0.72rem; color: #888; margin-top: 3px; }
.work-hero__topmeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 10px;
}

/* ============ section-sns-related SNSアイコン (v0.17.91) ============ */
.work-sns__icons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.work-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; }
.work-sns-icon svg { width: 22px; height: 22px; display: block; }
.work-sns-icon:hover { transform: translateY(-2px); opacity: 0.9; }
/* 作品公式: アクセント色(目立たせる) */
.work-sns__icons--work .work-sns-icon { background: var(--brand, #00aebe); color: #fff; }
/* デジカタ編集部公式: フッターと同じデザイン(ダークの円) */
.work-sns__icons--official .work-sns-icon { background: #1f2933; color: #fff; }

/* v0.19.11 / v0.20.106: 会員無料の「無料で読む」 ボタン(連載・コミックス共通)
   通常の「無料で読む」 と同じ形状で、 会員限定であることを鍵アイコンと配色で示す。
   v0.20.106: 未ログイン時=ブランド色 / ログイン時=ダーク(#1f2933)、 鍵アイコン拡大、
   未ログイン時はボタン上部に「ログインユーザー無料!」 バルーンを表示。 */
.trial-row__free-read--members {
  background: #f5334f;
  color: #fff;
  gap: 6px;
}
.trial-row__free-read--members-in {
  background: var(--brand, #00aebe);
}
.trial-row__free-read .dc-lock-icon {
  display: inline-block;
  flex: 0 0 auto;
  color: #fff;
  vertical-align: -2px;
}
.trial-row__free-read--members .dc-lock-icon {
  width: 15px;
  height: 15px;
}
/* v0.20.106: 会員無料ボタン上のバルーン(未ログイン時) */
.trial-row__members-balloon {
  display: inline-block;
  position: relative;
  align-self: center;
  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;
}
.trial-row__members-balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #f5334f;
}

/* v0.19.12: コミックススライダー 最新刊の配信日(リストの配信日と同じトーン) */
.volume-card__release-date {
  display: block;
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   v0.19.23 作品ページ ヒーローの演出
   ============================================================ */

/* バナー: 中心から円形に広がって現れる */
.work-hero__banner {
  overflow: hidden;
}
.work-hero__banner img {
  animation: dcBannerCircleIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dcBannerCircleIn {
  from {
    clip-path: circle(0% at 50% 50%);
    transform: scale(1.06);
  }
  to {
    clip-path: circle(75% at 50% 50%);
    transform: scale(1);
  }
}

/* ティッカー: タイピングアニメーション */
.work-hero__ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 1.6em;
  padding: 0;
  background: #fffaf0;
  font-size: 0.85rem;
  color: #c47d00;
  letter-spacing: 0.03em;
  text-align: center;
  border: 1.5px solid #e0a800;
  border-radius: 3px;
  margin: 5px 3px;
}
.work-hero__ticker-text {
  white-space: pre-wrap;
}
.work-hero__ticker-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: #ff3d00;
  animation: dcTickerCaret 0.9s step-end infinite;
}
.work-hero__ticker.is-done .work-hero__ticker-caret {
  display: none;
}
@keyframes dcTickerCaret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* お気に入り登録ボタン: padding を詰める */
.work-hero__fav.work-hero__fav--guest {
  padding: 0;
}

/* 作品公式SNS(登場人物の上) */
.work-hero__sns-group {
  margin: 0 10px 14px;
}

/* 動きを減らす設定の環境では演出を止める */
@media (prefers-reduced-motion: reduce) {
  .work-hero__banner img { animation: none; clip-path: none; }
  .work-hero__ticker-caret { animation: none; }
}

/* ============================================================
   v0.19.24 作品ページ 指定スタイル(既存定義を上書き)
   ============================================================ */
/* ※ .work-hero__head / __first-ep / __latest-row は、 SP用メディアクエリを
   打ち消さないよう元の定義側(上部)を直接編集している。 ここには追記しないこと。 */

/* 無料バッジ: 「\\ 〇巻無料配信中 //」 の \\ // をリズムよく点滅 */
.work-hero__free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.work-hero__free-slash {
  color: #d63b3b;
  font-weight: 700;
  animation: dcSlashBlink 1.2s ease-in-out infinite;
}
.work-hero__free-slash--r {
  animation-delay: 0.15s;
}
@keyframes dcSlashBlink {
  0%, 100% { opacity: 1; transform: translateY(0); }
  25%      { opacity: 0.25; }
  50%      { opacity: 1; transform: translateY(-2px); }
  75%      { opacity: 0.25; }
}

/* 展開ボタンをリストの途中に置く */
.trial-row--expand {
  list-style: none;
  padding: 0;
  border: none;
  margin: 10px 0;
}
.trial-row--expand .trial-expand-btn {
  width: 100%;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .work-hero__free-slash { animation: none; }
}

/* ============================================================
   v0.19.29
   ============================================================ */

/* お気に入り登録ボタン(ログイン時): dc_favorite_button の丸ピル型スタイルが
   当たってしまい未ログイン時と見た目が違ったため、 ゲスト用の見た目に揃える。
   .dc-fav-btn と同じ詳細度では打ち消せないので 2クラス指定にする。 */
.dc-fav-btn.work-hero__fav-guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1.5px solid #e0a800;
  border-radius: 10px;
  color: #c47d00;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.dc-fav-btn.work-hero__fav-guest-btn:hover {
  background: #fff4d6;
}
/* 登録済み状態の反転(is-active)もゲストと同じ見た目に固定 */
.dc-fav-btn.work-hero__fav-guest-btn.is-active {
  background: #fffaf0;
  color: #c47d00;
}
.dc-fav-btn.work-hero__fav-guest-btn .work-hero__fav-guest-title {
  margin-bottom: 0;
}

/* リストのサムネを行の上下中央に
   (.trial-row__inner の align-items:flex-start !important は
    子の align-self で上書きできる) */
.trial-row__thumb {
  align-self: center;
}

/* v0.19.30: 立ち読み増量ボタン(通常の「立ち読み」 と区別) */
.trial-row__trial-read--boost {
  background: #e0a800;
  color: #fff;
  border-color: #e0a800;
}

/* v0.20.180: 未来配信(公開予定)の行を目立たせる。 連載・コミックス共通。
   ボタン無し(PHP側で side を出さない)+ 背景を淡いブランド色トーンに。 */
.trial-list .trial-row--upcoming {
  background: #eef8fa;
}
.trial-list .trial-row--upcoming:hover {
  background: #e6f4f7;
}
/* v0.20.181: 未来配信日ラベルは枠なし・#ff3d00・改行なしで収める
   (「YYYY/M/D(曜日)配信」がタイトル下に1行で並ぶ) */
.trial-list .trial-row--upcoming .trial-row__future-date {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #ff3d00;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* v0.19.34: ストアアイコン SP は4列 + 枠線を細く */
@media (max-width: 768px) {
  .store-list--icons .store-link {
    border-width: 0.5px !important;
    padding: 6px 3px !important;
  }
}

/* v0.19.37: おすすめ作品カードのレーベルバッジ。
   見た目は /works/ (site-front.css の .front-flat-card__label-badge)に統一するため、
   ここでは配置のためのラッパーだけ用意し、 バッジ自体のスタイルは上書きしない。 */
.work-same-label__item { position: relative; }
.work-same-label__thumb-wrap { position: relative; display: block; }

/* v0.19.34: ソートボタンの ↑↓ */
.trial-sort-btn__arrows {
  margin-left: 4px;
  font-size: 0.85em;
  letter-spacing: -1px;
}


/* v0.19.37: 本文カットは Ken Burns風(フェード + ゆっくり上下パン) */
.work-hero__banner[data-hero-slideshow] {
  position: relative;
  overflow: hidden;
}
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--main {
  transition: opacity 0.9s ease;
}
.work-hero__banner[data-hero-slideshow].is-showing-cut .work-hero__banner-img--main {
  opacity: 0;
}
/* v0.20.30: カットから バナーへ戻る際、 水面に波紋が広がるような円形リップル演出。
   中心から円形に開きつつ、 わずかな scale の揺り戻しで「波紋」感を出す。 */
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--main.is-ripple-in {
  animation: dcBannerRipple 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* v0.20.31: スライドショー時、 メイン/カット画像の初回 dcBannerCircleIn を無効化
   (バナー復帰時の波紋 dcBannerRipple と二重に走って波紋が2回に見えるのを防ぐ)。 */
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--main,
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--cut {
  animation: none;
}
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--main.is-ripple-in {
  animation: dcBannerRipple 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dcBannerRipple {
  0% {
    clip-path: circle(0% at 50% 50%);
    transform: scale(1.05);
  }
  100% {
    clip-path: circle(75% at 50% 50%);
    transform: scale(1);
  }
}
/* v0.20.29: object-fit:cover で枠を完全に埋める(左右トリミングは許容)。
   object-position を top→bottom に動かして縦長ページの上→下を見せる。
   左右は常に枠幅にフィット、 上下の空白も出ない。 scale で拡大も付与。 */
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--cut {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.9s ease;
  pointer-events: none;
  will-change: opacity, object-position;
}
.work-hero__banner[data-hero-slideshow] .work-hero__banner-img--cut.is-show {
  opacity: 1;
  /* object-position の transition-duration は JS(applyPan)が設定する */
}
@media (prefers-reduced-motion: reduce) {
  .work-hero__banner[data-hero-slideshow] .work-hero__banner-img--cut { display: none; }
}

/* v0.19.45: SP はヒーローバナー(スライドショー)の角丸を無しに */
@media (max-width: 768px) {
  .work-hero__banner[data-hero-slideshow] .work-hero__banner-img {
    border-radius: 0;
  }
}


/* v0.19.47: 連載最終話の「完結」 リボン(通常の「更新」 とは色を変える) */
.trial-row__ribbon--final {
  background: #6b46c1;
}

/* v0.19.49: 連載リストの「毎日無料」 はアイコンのみ表示(テキストなし) */
.trial-row__daily-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trial-row__daily-free .trial-row__wf-img {
  height: 28px;
  width: auto;
  display: block;
}

/* v0.19.51: 完結バッジ(連載リスト上部の NEW と同位置・色違い) */
.trial-list-info__new-badge--final {
  background: #6b46c1 !important;
}

/* v0.19.55: 毎日無料の閲覧期限はアイコンの下に右寄せで小さく並べる */
.trial-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* v0.19.56: 毎日無料が上限到達でロック中の行(クリック不可)。
   ★ side列(アイコン+次回時刻ラベル)は薄くせず、 サムネ・本文だけ薄くする */
.trial-row__inner--daily-locked {
  cursor: default;
  background: #f7f7f8;
}
.trial-row__inner--daily-locked .trial-row__thumb img {
  filter: grayscale(0.4);
  opacity: 0.55;
}
.trial-row__inner--daily-locked .trial-row__main {
  opacity: 0.55;
}
.trial-row__daily-locked-label {
  font-size: 0.6rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 5px;
  padding: 3px 7px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

/* v0.19.58: SP でリストのタブ・件数・次回更新を画面上部に固定。
   top は JS が固定ヘッダー(site-header-wrap)の高さに合わせて --dc-sticky-top に設定する
   (ヘッダーはスクロールで隠れる = translateY するので固定値では追従できない)。 */
@media (max-width: 768px) {
  .work-hero__right .trial-tabs {
    position: sticky;
    top: var(--dc-sticky-top, 0px);
    z-index: 30;
    background: #ffffff !important;
    margin-top: 0 !important;
    padding-top: 6px;
  }
  /* v0.19.63: タブ/件数バーの実高(JSが --dc-tabs-h / --dc-listinfo-h を設定)を積む。
     trial-tab__free の有無でタブ高が変わっても隙間が出ない。 */
  .work-hero__right .trial-list-info {
    position: sticky;
    top: calc(var(--dc-sticky-top, 0px) + var(--dc-tabs-h, 52px));
    z-index: 29;
    background: #ffffff;
  }
}

/* v0.19.69: 連載タブの「毎日無料 ＋〇話 閲覧可」(コミックスの trial-tab__free と同じ扱い) */
.trial-tab__free--daily {
  color: #047857;
}
.trial-tab.is-active .trial-tab__free--daily {
  color: #ecfdf5;
}

/* v0.20.94: お気に入りゲスト案内アイコンを♥SVGに */
/* v0.20.95: ゲスト案内ボタンは block(幅100%)を維持し、 アイコン+テキストを横並び中央に */
.work-hero__fav-guest-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.work-hero__fav-guest-icon { display: inline-flex; align-items: center; justify-content: center; color: #e0a800; flex: 0 0 auto; }
.work-hero__fav-guest-icon svg { width: 20px; height: 20px; display: block; }
.work-hero__fav-guest-btn .work-hero__fav-guest-title { margin-bottom: 0; }

/* v0.20.107: ログイン時 first-ep 2ボタン — 「続きから読む」(2/3) + 「第1話を読む」(1/3) */
.work-hero__first-ep-btn--sub {
  flex: 1 1 0 !important;
  flex-direction: row !important;
  font-size: 0.9em !important;
}

/* v0.20.108: 続きから読む(2/3ボタン)— 下に #No 話タイトル を小さく表示 */
.work-hero__first-ep-btn--resume {
  flex-direction: column;
  line-height: 1.1;
}
.work-hero__resume-sub {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

/* ============================================================
   v0.20.110: first-ep 下 お気に入り/共有 アクション + 共有モーダル
   ============================================================ */
.work-hero__first-ep-actions { display:flex; gap:8px; width:100%; margin-top:8px; }
.work-hero__action-btn {
  flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 8px; border:1px solid #dfe3e7; border-radius:8px; background:#f4f6f8; color:#37474f;
  font-size:0.85rem; font-weight:700; cursor:pointer; box-sizing:border-box; text-decoration:none; line-height:1.2;
}
.work-hero__action-btn:hover { background:#eceff2; }
.work-hero__action-btn.is-active { color:#f5a623; }
.work-hero__action-btn .dc-fav-btn__icon { display:inline-flex; }
.work-hero__action-btn .dc-fav-heart { width:18px; height:18px; }
.work-hero__action-icon { display:inline-flex; }
.work-hero__first-ep-actions .dc-fav-btn { background:#f4f6f8; }

/* work-hero__share の★お気に入りを他の共有アイコンと同じ円に */
.work-hero__share .dc-fav-btn--icon {
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; border:1px solid #e0e4e8; background:#fff; color:#8a939b; cursor:pointer; padding:0;
}
.work-hero__share .dc-fav-btn--icon:hover { background:#f3f5f7; }
.work-hero__share .dc-fav-btn--icon.is-active { color:#f5a623; border-color:#f5a623; }
.work-hero__share .dc-fav-btn--icon .dc-fav-heart { width:20px; height:20px; }

/* 共有モーダル(GANMA風) */
.dc-share-modal[hidden] { display:none; }
.dc-share-modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.dc-share-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.55); }
.dc-share-modal__dialog {
  position:relative; z-index:1; width:min(92vw,380px); max-height:88vh; overflow:auto;
  background:#fff; border-radius:14px; padding:22px 20px 16px; text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,0.3);
}
.dc-share-modal__x { position:absolute; top:8px; right:10px; border:0; background:none; font-size:22px; line-height:1; color:#9aa3ab; cursor:pointer; }
.dc-share-modal__head { font-size:0.95rem; font-weight:700; color:#1f2933; margin:0 0 14px; }
.dc-share-modal__img { width:100%; max-width:300px; border-radius:8px; display:block; margin:0 auto 12px; }
.dc-share-modal__work-title { font-size:0.95rem; font-weight:700; color:#1f2933; margin:0 0 4px; }
.dc-share-modal__desc {
  font-size:0.78rem; color:#6b7785; line-height:1.6; margin:0 0 16px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.dc-share-modal__sns { display:flex; justify-content:center; gap:16px; margin:0 0 16px; flex-wrap:wrap; }
.dc-share-modal__sns-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-share-modal__sns-ic { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; }
.dc-share-modal__sns-ic--x { background:#000; }
.dc-share-modal__sns-ic--line { background:#06c755; }
.dc-share-modal__sns-ic--ig { background:#e1306c; }
.dc-share-modal__sns-ic--copy { background:#e9edf0; color:#6b7785; }
.dc-share-modal__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.111: first-ep を 4ボタン1行に(SPも)。 レーベルはテキストリンク化
   ============================================================ */
.work-hero__first-ep { display:flex; gap:6px; width:100%; align-items:stretch; margin:12px 0; }
.work-hero__first-ep-btn { flex:2 1 0; }        /* 続きから読む / 単独の第1話 */
.work-hero__first-ep-btn--sub { flex:1 1 0; }   /* 第1話を読む(狭) */
.work-hero__ep-icon-btn {
  flex:0 0 auto; width:46px; display:flex; align-items:center; justify-content:center;
  border:1px solid #dfe3e7; border-radius:8px; background:#f4f6f8; color:#8a939b;
  cursor:pointer; padding:0; text-decoration:none;
}
.work-hero__ep-icon-btn:hover { background:#eceff2; }
.work-hero__ep-icon-btn.is-active { color:#f5a623; }
.work-hero__ep-icon-btn .dc-fav-heart { width:20px; height:20px; }
/* レーベル テキストリンク(credits 下) */
.work-hero__label-link { margin:6px 0 0; font-size:0.82rem; line-height:1.4; }
.work-hero__label-link-role { color:#9aa3ab; margin-right:6px; }
.work-hero__label-link-name { color:var(--brand,#00aebe); text-decoration:none; font-weight:700; }
.work-hero__label-link-name:hover { text-decoration:underline; }

/* ============================================================
   v0.20.112: first-ep 微調整 + レーベルリンクを credits と同じ見た目に
   ============================================================ */
.work-hero__first-ep .btn { padding: 0.7rem 0.5rem; }
.work-hero__first-ep-btn--resume { line-height: 0.8; }

/* お気に入り/共有 アイコンボタン: 行の高さに合わせ、 白地・枠付きを維持
   (.dc-fav-btn--icon の height:28px / border:none / ピンク色 を打ち消す) */
.work-hero__ep-icon-btn {
  height: auto;
  align-self: stretch;
  width: 46px;
  background: #fff;
  border: 1px solid #dfe3e7;
  border-radius: 8px;
  color: #8a939b;
  transition: none;
}
.work-hero__ep-icon-btn:hover { background: #f4f6f8; transform: none; }
/* お気に入り登録済み(★): 枠を残したまま金色に */
.work-hero__ep-icon-btn.is-active,
.work-hero__ep-icon-btn--fav.is-active {
  color: #f5a623;
  border: 1px solid #dfe3e7;
  background: #fff;
}
.work-hero__ep-icon-btn .dc-fav-heart { width: 22px; height: 22px; }
/* 共有ボタンの地は白 */
.work-hero__ep-icon-btn--share { background: #fff; }

/* レーベル テキストリンク: work-hero__credits と同じ見た目・ボーダーなし */
.work-hero__label-link { font-size: 0.85rem; margin: 0 0 0.75rem; color: #333; line-height: 1.4; }
.work-hero__label-link-role { color: #888; font-size: 0.75rem; margin-right: 4px; }
.work-hero__label-link-name { color: #333; text-decoration: none; font-weight: 400; }
.work-hero__label-link-name:hover { text-decoration: underline; }

/* v0.20.113: レーベルリンクは credits と同一(role グレー / name ブランド色)・ボーダーなし */
.work-hero__label-link.work-hero__credits {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.work-hero__label-link .credit-segment__role { color: #888; }
.work-hero__label-link .credit-name { color: var(--brand, #00aebe); }

/* v0.20.114: レーベル/クレジットのスタイル微調整(ユーザー指定・SPも共通) */
.work-hero__credits-row {
  padding: 0.3rem 0 0 0;
  border-bottom: none;
}
.work-hero__label-link.work-hero__credits {
  margin: 0 0.5rem 0;
  font-size: 0.78rem;
}
.work-hero__label-link .credit-segment__role {
  color: #333333;
}
/* 作家名(credits)自体の下ボーダーも除去 = 作家名とレーベルの間を border 無しに */
.work-hero__credits-row .work-hero__credits {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* v0.20.115: SP(≤768px)で credits-row に付く下ボーダー(作家名とレーベルの間の線)を確実に除去 */
@media (max-width: 768px) {
  .work-hero__credits-row,
  .work-hero__credits-row .work-hero__credits {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* ============================================================
   v0.20.117: リスト/first-ep/latest-card/既読/共有モーダル 調整
   ============================================================ */
/* 共有モーダル: 紹介文は全文表示(行数制限解除)、 URLコピーが収まるよう調整 */
.dc-share-modal__desc {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
.dc-share-modal__sns { gap: 10px; }
.dc-share-modal__sns-btn { width: 60px; }
.dc-share-modal__sns-lbl { font-size: 0.6rem; white-space: nowrap; }

/* first-ep: SPで「第1話を読む」が折り返さないよう 続きから読む を少し狭める */
.work-hero__first-ep-btn { flex: 1.5 1 0; }

/* 連載リストのサムネイルを少し大きく(縦横比維持) */
.trial-row__thumb { width: 90px !important; flex: 0 0 90px !important; }

/* 連載/コミックスリスト: 行の border 重なり(太見え)を解消 */
.trial-list .trial-row { border: none; }

/* 既読の折り返し: 下地の白を除去(コーナー三角の背後をグレーに) */
.trial-row.is-read {
  background: linear-gradient(-45deg, #dfe1e4 14px, #f5f5f5 14px, #f5f5f5 100%);
}

/* latest-card__count の下に無料バッジ情報 */
.latest-card__free { display: block; font-size: 0.7rem; font-weight: 700; color: #d63b3b; margin-top: 2px; }

/* ============================================================
   v0.20.118: first-ep はみ出し / 既読単色 / リスト境界 / 作家-レーベルborder / storeタブ
   ============================================================ */
/* first-ep が画面幅をはみ出さないように(SP横ブレ対策) */
.work-hero__first-ep { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.work-hero__first-ep > * { min-width: 0; }
.work-hero__first-ep .btn { min-width: 0; overflow: hidden; }
.work-hero__resume-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
  .work-hero__ep-icon-btn { width: 40px; }
  .work-hero__first-ep { gap: 5px; }
}

/* 既読リストは単色背景に(グラデ見え解消)。 折りは ::after 三角のみ */
.trial-row.is-read { background: #f5f5f5; }

/* 連載/コミックスリスト: 全行に1pxの下border(expand・最下部含む)。 内側borderは殺して二重化防止 */
.trial-list .trial-row { border: none; border-bottom: 1px solid #e5e7e9; }
.trial-list .trial-row__inner { border: none; }

/* 作家名〜レーベルの上下にborder(間は無し) */
.work-hero__credits-row { border-top: 1px solid #e5e7e9; padding-top: 0.4rem; }
.work-hero__label-link.work-hero__credits { border-bottom: 1px solid #e5e7e9 !important; padding-bottom: 0.4rem; margin-bottom: 0.75rem; }

/* ストアタブ: SPで「電子単行本版」等が折り返さないように */
@media (max-width: 768px) {
  .store-tab {
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0;
    min-width: 0;
    white-space: nowrap;
  }
}

/* ============================================================
   v0.20.119: first-ep SPはみ出し / credits余白 / リストborder整理 / 既読ドッグイヤー
   ============================================================ */
/* credits-row 上余白 */
.work-hero__credits-row { margin-top: 7px; }

/* first-ep SP はみ出し対策(強め) */
@media (max-width: 768px) {
  .work-hero__first-ep { gap: 4px; overflow: hidden; }
  .work-hero__first-ep-btn { flex: 1 1 0 !important; min-width: 0 !important; }
  .work-hero__first-ep .btn { padding: 0.6rem 0.3rem; font-size: 0.82rem; min-width: 0; }
  .work-hero__ep-icon-btn { width: 38px; flex: 0 0 38px; }
  .work-hero__resume-sub { font-size: 0.72em; }
}

/* リストborder: 全行を単一1px下線に統一(二重化解消)。「+全〇話を表示」(expand)は下線なし */
.trial-list .trial-row { border: none !important; }
.trial-list .trial-row__inner { border: none !important; }
.trial-list .trial-row:not(.trial-row--expand) { border-bottom: 1px solid #e5e7e9 !important; }

/* 既読の折り返し(ドッグイヤー)= ピッコマ風の角三角。 旧border三角を打ち消し、 単色グレー三角に */
.trial-row.is-read { background: #f5f5f5; }
.trial-row.is-read::after {
  border: none !important;
  width: 18px !important;
  height: 18px !important;
  background: linear-gradient(135deg, transparent 50%, #b9bec4 50%) !important;
}

/* ============================================================
   v0.20.120: first-ep SPはみ出し(ユーザー提案) + expand直下の上罫線
   ============================================================ */
@media (max-width: 768px) {
  /* ユーザー提案: 左右に余白を確保して画面幅内に収める */
  .work-hero__head-media .work-hero__first-ep {
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    max-width: 100%;
  }
}

/* 「+全〇話を表示」(expand)の直下の行にだけ上罫線が無い → border-top を1px追加 */
.trial-list .trial-row--expand + .trial-row {
  border-top: 1px solid #e5e7e9 !important;
}

/* ============================================================
   v0.20.121: トグルのボタン化 / cta最新1行 / 公式SNS小アイコン / is-read / 他
   ============================================================ */
/* first-ep SP gap 6 / キャッチ行間 */
@media (max-width: 768px) { .work-hero__first-ep { gap: 6px; } }
.work-hero__overview .work-hero__catch { line-height: 1.3; }

/* トグルをボタン風・左右中央に(もっと表示する ∨ / 続きを見る ∨ / 閉じる ∧) */
.work-hero__overview-toggle,
.work-hero__intro-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px auto 0; padding: 8px 24px;
  width: fit-content; min-width: 220px; max-width: 100%; box-sizing: border-box;
  border: 1px solid #d1d5db; border-radius: 999px; background: #fff;
  color: #374151; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.work-hero__overview-toggle:hover,
.work-hero__intro-toggle:hover { background: #f7f9fa; }
.work-hero__overview-toggle .caret,
.work-hero__intro-toggle .caret { font-size: 0.95em; line-height: 1; }

/* 「+全〇話を表示」(expand): 閉じている時も下線を出す。 v0.20.120の直下border-topは打ち消す */
.trial-list .trial-row--expand + .trial-row { border-top: none !important; }
.trial-list .trial-row--expand { border-bottom: 1px solid #e5e7e9 !important; }

/* 既読ドッグイヤー(角の折り返し) */
.trial-row.is-read::after {
  border: none !important;
  width: 22px !important; height: 22px !important;
  background: linear-gradient(135deg, transparent 0, transparent 50%, #cfd3d7 50%, #b0b5bb 100%) !important;
  box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.08);
}

/* cta 最新情報 1行 + 無料バッジ点滅 */
.cta-latest-line { font-size: 0.85rem; color: #333; margin: 6px 0 2px; }
.cta-latest-free { font-weight: 700; color: #d63b3b; animation: dc-blink 1s steps(1) infinite; }
@keyframes dc-blink { 50% { opacity: 0; } }

/* 作品公式SNS: credits/label 下の小アイコン1行 */
.work-hero__work-sns { display: flex; gap: 8px; align-items: center; margin: 5px 0 0; }
.work-hero__work-sns-icon { display: inline-flex; width: 22px; height: 22px; color: #555; }
.work-hero__work-sns-icon:hover { color: var(--brand, #00aebe); }
.work-hero__work-sns-icon svg { width: 100%; height: 100%; }
/* 旧SNSグループは廃止(念のため非表示) */
.work-sns__group.work-hero__sns-group { display: none; }

/* ============================================================
   v0.20.122: トグル仕様変更 / latest-row SP / expand余白 / 折り目
   ============================================================ */
/* トグルボタン(ユーザー指定スタイル) */
.work-hero__overview-toggle,
.work-hero__intro-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: -15px auto; padding: 6px;
  width: fit-content; min-width: 160px; max-width: 100%; box-sizing: border-box;
  border: 1px solid #d1d5db; border-radius: 999px; background: #fff;
  color: #374151; font-size: 0.7rem; font-weight: 500; cursor: pointer; position: relative;
}
.work-hero__overview-toggle:hover,
.work-hero__intro-toggle:hover { background: #f7f9fa; }

/* SP: latest-row を横並びに */
@media (max-width: 768px) {
  .work-hero__latest-row {
    flex-direction: row !important;
    align-items: stretch !important;
    margin-top: 30px;
  }
}

/* expand: ボタン下部にも余白(border と接しないように) */
.trial-list .trial-row--expand { padding-bottom: 10px !important; }

/* 既読の折り目(ドッグイヤー)を作り直し = 右下の折り返し三角 */
.trial-row.is-read { position: relative !important; background: #f4f5f6 !important; }
.trial-row.is-read::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border: none !important;
  background: linear-gradient(to top left, #b9bcc1 0%, #d7d9dc 55%, transparent 55%) !important;
  box-shadow: none !important;
}

/* ============================================================
   v0.20.123: intro-toggle の詳細度負け対策 + expand margin-bottom
   ============================================================ */
/* .work-hero__detail-wrap .work-hero__intro-toggle(詳細度0,2,0)に勝てるよう同詳細度で上書き */
.work-hero__detail-wrap .work-hero__intro-toggle,
.work-hero__overview .work-hero__overview-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: -15px auto; padding: 6px;
  width: fit-content; min-width: 160px; max-width: 100%; box-sizing: border-box;
  border: 1px solid #d1d5db; border-radius: 999px; background: #fff;
  color: #374151; font-size: 0.7rem; font-weight: 500; cursor: pointer; position: relative;
}
.work-hero__detail-wrap .work-hero__intro-toggle .caret { margin-left: 0; }

.trial-list .trial-row--expand { margin-bottom: 0 !important; }

/* ============================================================
   v0.20.124: 余白調整 / cta-latest 2行・点滅無し / is-read 元デザインに戻す
   ============================================================ */
.work-hero__head { margin-bottom: 30px; }
.work-hero__detail-wrap.is-open .work-hero__intro-detail { padding-bottom: 20px; }
@media (max-width: 768px) { .work-hero__tags { padding: 0.5rem 0.75rem 2rem; } }
@media (max-width: 880px) { .work-hero__two-col { gap: 40px; } }
.cta-latest-line { margin: 0; line-height: 1.6; }

/* cta 無料バッジ: 改行済み・点滅無し */
.cta-latest-free { display: inline-block; font-weight: 700; color: #d63b3b; animation: none !important; }

/* is-read の折り目を「調整前(元)」に戻す */
.trial-row.is-read {
  background: linear-gradient(-45deg, transparent 14px, #f5f5f5 14px, #f5f5f5 100%) !important;
}
.trial-row.is-read::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border: 10px solid #cccccc !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
  box-sizing: border-box !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* v0.20.125: 既読の折り返し三角を半分サイズに(元デザインの縮小版) */
.trial-row.is-read::after {
  width: 10px !important;
  height: 10px !important;
  border-width: 5px !important;
}

/* v0.20.127: 既読の折り目(ユーザー確定版) + ホバーで折り目を保持 */
.trial-row.is-read {
  background: linear-gradient(-45deg, transparent 0px, #f5f5f5, #f5f5f5 100%) !important;
}
.trial-row.is-read::after {
  width: 5px !important;
  height: 5px !important;
  border: 5px solid #cccccc !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
}
/* 既読行のホバー: 折り目デザインを保ったまま少し濃く */
.trial-row.is-read:hover {
  background: linear-gradient(-45deg, transparent 0px, #ececec, #ececec 100%) !important;
}

/* 作品ページ バナーゾーン */
.dc-banner-work-ticker { margin: 0 0 10px; }
.dc-banner-work-inner { margin: 16px 0; }
.dc-banner-work-ticker img, .dc-banner-work-inner img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* v0.20.128: バナー枠 微調整 */
.dc-banner-work-ticker { margin: 7px auto; }
.dc-banner-slot__item img { border-radius: 0; }

/* v0.20.129: SPで ticker上バナーに左右余白 */
@media (max-width: 768px) {
  .dc-banner-zone.dc-banner-work-ticker { padding: 0 9px; }
}

/* v0.20.133: 余白調整(PC/SP) */
.dc-banner-work-inner { margin: 9px auto; }
.work-hero { padding: 1rem 3rem !important; }
@media (max-width: 768px) {
  .work-hero { padding: 0 !important; }
  .work-hero__inner { padding: 1rem 1rem 0 1rem; }
  .dc-banner-work-inner { margin: 9px; }
}

/* v0.20.134: 続きから読む(resume)は hidden 時に確実に非表示(クラスのdisplayに負けないように) */
.work-hero__first-ep-btn--resume[hidden] { display: none !important; }

/* v0.20.135: 応援メッセージ モーダル + 封筒ボタン */
.work-hero__ep-icon-btn--cheer { color: #e0567a; }
.work-hero__ep-icon-btn--cheer:hover { color: #d6335f; }
.dc-cheer-modal[hidden] { display: none; }
.dc-cheer-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.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: min(92vw, 400px); max-height: 88vh; overflow: auto; background: #fff; border-radius: 14px; padding: 22px 20px 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.dc-cheer-modal__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: #9aa3ab; cursor: pointer; }
.dc-cheer-modal__head { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.98rem; font-weight: 700; color: #1f2933; margin: 0 0 12px; }
.dc-cheer-modal__head svg { color: #e0567a; }
.dc-cheer-modal__work { font-size: 0.95rem; font-weight: 700; color: #1f2933; text-align: center; margin: 0 0 6px; }
.dc-cheer-modal__to { font-size: 0.84rem; color: #4b5563; text-align: center; margin: 0 0 12px; }
.dc-cheer-modal__select { font-size: 0.84rem; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; max-width: 60%; }
.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; resize: vertical; }
.dc-cheer-modal__ts { margin: 12px 0 0; display: flex; justify-content: center; }
.dc-cheer-modal__submit { width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 999px; background: var(--brand, #00aebe); color: #fff; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.dc-cheer-modal__submit:disabled { opacity: 0.6; cursor: default; }
.dc-cheer-modal__msg { font-size: 0.82rem; color: #4b5563; text-align: center; margin: 10px 0 0; min-height: 1em; }

/* v0.20.156: 作品ページ 応援メッセージモーダルのフォームは16pxでiOSズーム防止 */
.dc-cheer-modal .dc-cheer-modal__text, .dc-cheer-modal .dc-cheer-modal__select { font-size: 16px; }

/* v0.20.157: 応援メッセージモーダル セレクトと本文案内の行間 */
.dc-cheer-modal__to { line-height: 3; }

/* v0.20.165: 配信ストアのタブをセグメント風ボタンに */
.work-stores__tabs { display: inline-flex; background: #eef1f3; border-radius: 999px; padding: 4px; gap: 0; }
.work-stores .store-tab { border: 0; background: transparent; border-radius: 999px; padding: 0.55rem 1.3rem; color: #555; font-weight: 700; transition: background 0.15s, color 0.15s; }
.work-stores .store-tab.is-active { background: #333333; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }

/* v0.20.167: 配信ストア タブ(セグメント)= 各タブ内容幅・中央揃え(flex:1/min-width解除で右寄り解消) */
.work-stores .store-tab { flex: 0 0 auto; min-width: auto; text-align: center; white-space: nowrap; }
.work-stores__panel.is-active { animation: dc-tab-slide-work 0.25s ease; }
@keyframes dc-tab-slide-work { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

/* v0.20.169: SPはストア一覧をグリッド化(flex-wrapのサブピクセルで枠線が欠ける問題対策) */
@media (max-width: 768px) {
  .work-stores .store-list--icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 3px 4px; }
  .work-stores .store-list--icons .store-item { width: auto; margin: 0; }
  .work-stores .store-list--icons .store-item a, .work-stores .store-list--icons .store-link { width: 100%; box-sizing: border-box; border-width: 1px !important; }
  .work-stores .store-list--icons .store-logo { max-width: 100%; height: 26px; }
}

/* v0.20.172: 先行配信ストアの枠を他と同じに(サイズ差解消)＋バッジをコーラルに */
.work-stores .store-item.is-advance .store-link { border-color: #c5cad0 !important; }
@media (max-width: 768px) { .work-stores .store-item.is-advance .store-link { padding: 6px 3px !important; } }
.store-item__badge { background: #ff6b35 !important; color: #fff !important; border-color: #ff6b35 !important; }
/* v0.20.172: 続きから読む と サブの隙間をさらに詰める */
.work-hero__first-ep-btn--resume { line-height: 1.0; }
.work-hero__resume-sub { margin-top: -3px; line-height: 1.1; }

/* v0.20.174: first-ep ボタン SP パディング + 先行バッジを左上に */
@media (max-width: 768px) {
  .work-hero__first-ep .btn { padding: 0.7rem 0.3rem 0.4rem 0.3rem; }
}
.store-item__badge { right: auto; left: -8px; }

/* =========================================================
   v0.20.180: No IMG / 画像なしプレースホルダの潰れ防止(作品ページ共通)
   各サムネ枠は「幅固定・高さは画像依存」のため、 画像なし/リンク切れだと高さが 0 に潰れる。
   プレースホルダ(サーバ側の *-empty / __no-image と、 JS置換の .dc-noimg)に
   想定画像比率の aspect-ratio を与え、 枠を保ったまま中央寄せする。
   ========================================================= */
/* 連載/コミックスのリストサムネ プレースホルダ共通(比率は下でパネル別に指定) */
.trial-row__thumb .dc-noimg,
.trial-row__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: #f0f2f4;
  color: #b0b6bc;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}
/* 連載(エピソード)= サムネ画像(横長 600:371) */
.trial-panel[data-trial-panel="episodes"] .trial-row__thumb .dc-noimg,
.trial-panel[data-trial-panel="episodes"] .trial-row__thumb-empty {
  aspect-ratio: 600 / 371;
}
/* コミックス(単行本)= 表紙(縦長 3:4) */
.trial-row--volume .trial-row__thumb .dc-noimg,
.trial-row--volume .trial-row__thumb-empty,
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb .dc-noimg,
.trial-panel[data-trial-panel="volumes"] .trial-row__thumb-empty {
  aspect-ratio: 3 / 4;
}
/* 作品ページ 最新話/最新刊カード(縦長 3:4) */
.latest-card__thumb .dc-noimg,
.latest-card__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: #f0f2f4;
  color: #b0b6bc;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
}
/* 関連作品(あなたにおすすめ)カード(横長バナー 600:371) */
.work-same-label__thumb.dc-noimg,
.work-same-author__thumb.dc-noimg,
.work-same-label__thumb.work-same-label__no-image,
.work-same-author__thumb.work-same-author__no-image {
  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.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

/* v0.20.223: 未配信作品の「近日連載開始！」ボタン(リンク無し・非クリック) */
.work-hero__first-ep-btn--upcoming {
  cursor: default;
  opacity: .92;
  pointer-events: none;
}
