/* EROPORTA 0.4.7: ロゴと読む・探す・保存する操作の整理。作品画像は加工しない。 */
body.ep-site { background: #f7f6f7; }
.ep-main { --ep-ink: #29232b; --ep-sub: #68616a; --ep-line: #e4dfe4; --ep-accent: #982b51; --ep-skin-accent: #982b51; }
.ep-main .ep-container { max-width: 1320px; padding: 20px 24px 40px; }
.ep-main a, .ep-main button, .ep-main input, .ep-main select { -webkit-tap-highlight-color: rgba(152,43,81,.13); }
.ep-main a:focus-visible, .ep-main button:focus-visible, .ep-main input:focus-visible, .ep-main select:focus-visible, .ep-main summary:focus-visible { outline: 3px solid #982b51; outline-offset: 3px; }
.ep-main [id] { scroll-margin-top: 20px; }

/* 小さな黒いラベルから、独立した扉のマークとワードマークへ。 */
.ep-bar { padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ep-line); }
.ep-bar-row { gap: 22px; }
.ep-logo img { width: 182px; height: auto; }
.ep-logo-kana { display: block; margin: 3px 0 0 41px; color: #68616a; font-size: 11px; line-height: 1.1; letter-spacing: .13em; }
.ep-bar-search { gap: 8px; }
.ep-bar-search input[type="search"] { height: 46px; padding: 0 14px; border-color: #d9d1d9; border-radius: 9px; background: #fff; }
.ep-bar-search .ep-btn { min-height: 46px; padding: 0 18px; border-radius: 9px; background: #982b51; border-color: #982b51; color: #fff; font-weight: 700; }
.ep-audience-note { margin: 6px 0 0; font-size: 11px; line-height: 1.5; text-align: right; color: #68616a; }
.ep-nav { margin-top: 12px; gap: 7px; }
.ep-main a.ep-nav-item { min-height: 40px; padding: 0 14px; border-color: #e1dbe2; }
.ep-main a.ep-nav-item.is-current { background: #982b51; border-color: #982b51; }
.ep-nav-n { font-variant-numeric: tabular-nums; }
.ep-main .ep-page-title { font-size: clamp(22px, 2vw, 29px); line-height: 1.6; letter-spacing: .015em; }
.ep-main .ep-page-title::after { display: none; }
.ep-main .ep-h2 { margin: 30px 0 14px; font-size: 19px; line-height: 1.6; }
.ep-main .ep-h2::before { width: 3px; background: #982b51; }
.ep-top .ep-top-title { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.ep-top .ep-top-title .ep-note { font-size: 13px; line-height: 1.7; }
.ep-main .ep-lead { font-size: 15px; color: #5c555f; }

/* 密度を保ちながら、作品名を3行、ボタンを44pxに。 */
.ep-main .ep-grid { gap: 16px 12px; }
.ep-main .ep-grid .ep-card { min-width: 0; padding: 7px; border: 1px solid #e1dce3; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(36,22,37,.025); }
.ep-main .ep-grid .ep-card:hover { border-color: #c19aad; }
.ep-card-body { flex: 1 1 auto; gap: 5px; padding: 8px 3px 3px; }
.ep-main .ep-grid .ep-card-title { margin: 0; font-size: 14px; line-height: 1.6; min-height: 4.8em; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.ep-card-sub { font-size: 12px; line-height: 1.6; }
.ep-card-meta { font-size: 11px; line-height: 1.5; gap: 5px; }
.ep-card-meta .ep-tag { padding: 2px 5px; background: #f5f0f3; color: #62505c; border-color: #ded3da; }
.ep-card-foot { margin-top: auto; padding-top: 8px; gap: 6px; }
.ep-main a.ep-card-info, .ep-card-foot .ep-save-work { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 4px 7px; border-radius: 7px; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.ep-main a.ep-card-info { color: #792343; background: #f8f1f5; border-color: #e8d9e1; }
.ep-card-foot .ep-save-work { background: #fff; }
.ep-card-foot .ep-save-work[aria-pressed="true"] { background: #f4e7ee; color: #792343; border-color: #cda1b3; }
.ep-go-cap { padding: 5px 2px 2px; gap: 4px; line-height: 1.5; }
.ep-go-name { font-size: 11px; }
.ep-go-note { color: #68616a; }
.ep-top .ep-grid:not(.ep-grid-strip) > .ep-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: 10px; width: 100%; max-width: 660px; }
.ep-top .ep-grid:not(.ep-grid-strip) > .ep-card:only-child .ep-card-body { height: 100%; padding-top: 3px; }
.ep-feature { background: #f2eaf0; border: 1px solid #e6d7e0; padding: 16px; }
.ep-feature::before, .ep-feature-frame::before, .ep-feature-frame::after, .ep-feature-title::after { display: none; }
.ep-feature-frame { padding: 0; border: 0; background: transparent; box-shadow: none; }
.ep-feature-label { background: #982b51; letter-spacing: .04em; }
.ep-main .ep-grid.ep-grid-strip { column-gap: var(--ep-strip-gap); row-gap: 0; padding-bottom: 8px; }

/* 作品詳細: 画像と要点、主要な移動先、作品データ、出典の順に読む。 */
.ep-detail-head { gap: 24px; padding: 22px; margin: 12px 0 18px; border: 1px solid #e1dce3; border-radius: 16px; background: #fff; }
.ep-detail-main { min-width: 0; }
.ep-detail-main .ep-page-title { margin: 8px 0 14px; font-size: clamp(21px,2vw,27px); line-height: 1.6; }
.ep-detail-main .ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 15px; }
.ep-detail-facts { margin: 12px 0 18px; padding: 12px 0; gap: 9px; border-top: 1px solid #ece7ed; border-bottom: 1px solid #ece7ed; font-size: 14px; }
.ep-detail-facts dt { font-size: 12px; }
.ep-detail-facts dd { min-width: 0; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.ep-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; }
.ep-detail-actions .ep-btn, .ep-detail-actions .ep-save-work { min-height: 46px; padding: 10px 13px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.ep-detail-actions .ep-btn-go { flex: 1 1 100%; background: #982b51; color: #fff; border-color: #982b51; font-weight: 700; }
.ep-detail-actions .ep-btn-go:hover { background: #7e2041; }
.ep-detail-img .ep-go-cap { padding-top: 9px; }
.ep-detail-img .ep-go-note { font-size: 11px; }
.ep-detail-jump { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.ep-detail-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #dbd3dd; border-radius: 999px; background: #fff; color: #543e50; font-size: 13px; text-decoration: none; }
.ep-listing { margin: 0 0 20px; padding: 20px; background: #fff; border: 1px solid #e1dce3; border-radius: 12px; }
.ep-facts-table { margin: 0; font-size: 14px; }
.ep-facts-table th, .ep-facts-table td { padding: 13px 12px; line-height: 1.85; vertical-align: top; border-color: #ece7ed; }
.ep-facts-table th { width: 126px; font-weight: 500; background: #faf8fa; color: #635b66; }
.ep-facts-table td { overflow-wrap: anywhere; }
.ep-facts-table td a { text-decoration: underline; text-decoration-color: #d7becb; text-underline-offset: 3px; }
.ep-src-line { margin: 18px 0 0; padding: 14px 16px; border-radius: 8px; background: #f5f2f5; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.ep-guide-links { margin: 14px 0; line-height: 2; }
.ep-intro { max-width: 860px; margin: 24px 0; padding: 22px; background: #fff; border: 1px solid #e1dce3; border-radius: 12px; font-size: 16px; line-height: 1.95; }
.ep-intro p { font-size: inherit; line-height: inherit; margin: 0 0 1.3em; }
.ep-intro p:last-child { margin-bottom: 0; }

/* サービス案内と運営ページ。幅を絞るのは読むページだけ。 */
.ep-page .ep-page-body { font-size: 15px; line-height: 1.9; }
.ep-page-guide .ep-page-head, .ep-page-guide .ep-page-body, .ep-page-guide .ep-guide-others,
.ep-page-about .ep-page-head, .ep-page-about .ep-page-body,
.ep-page-policy .ep-page-head, .ep-page-policy .ep-page-body,
.ep-page-privacy .ep-page-head, .ep-page-privacy .ep-page-body,
.ep-page-contact .ep-page-head, .ep-page-contact .ep-page-body { max-width: 860px; margin-left: auto; margin-right: auto; }
.ep-page-guide .ep-page-body, .ep-page-about .ep-page-body, .ep-page-policy .ep-page-body, .ep-page-privacy .ep-page-body, .ep-page-contact .ep-page-body { padding: 26px 30px; background: #fff; border: 1px solid #e1dce3; border-radius: 14px; }
.ep-page-guide .ep-page-body { font-size: 16px; line-height: 1.95; }
.ep-page-guide .ep-page-body p { margin: 0 0 1.4em; }
.ep-page-guide .ep-page-body h2, .ep-page-guide .ep-page-body h3, .ep-page .ep-page-body .ep-info .ep-h3 { margin: 30px 0 12px; font-size: 19px; line-height: 1.65; }
.ep-page .ep-page-body .ep-info .ep-h3:first-child { margin-top: 0; }
.ep-page-guide .ep-page-body nav { padding: 18px 22px; margin: 22px 0 30px; background: #f7f1f5; border: 1px solid #ebdce5; border-radius: 10px; }
.ep-page-guide .ep-page-body li { margin: 5px 0; }
.ep-page-guide .ep-page-body nav a { display: inline-block; padding: 4px 0; text-underline-offset: 4px; }
.ep-page .ep-info a { text-underline-offset: 4px; }
.ep-info-dl { padding: 12px 16px; background: #f7f4f7; border-radius: 9px; }
.ep-info-dl dd a { display: inline-block; padding: 7px 0; overflow-wrap: anywhere; }
.ep-svc-card, .ep-live-card, .ep-provider-card { border-color: #e1dce3; border-radius: 12px; background: #fff; }
.ep-live-card { padding: 22px; }
.ep-svc-card-actions .ep-btn, .ep-live-card-actions .ep-btn { min-height: 46px; border-radius: 8px; }
.ep-live-rules { border-radius: 12px; background: #f1edf2; padding: 20px; }
.ep-live-rules li { line-height: 1.9; margin-bottom: 10px; }
.ep-live-rules li:last-child { margin-bottom: 0; }

/* フッターは、運営・問い合わせ・掲載方針を押しやすい間隔で。 */
.ep-site-foot { margin-top: 32px; padding: 20px 24px; border: 1px solid #e1dce3; border-radius: 14px; background: #f0edf2; }
.ep-footer-brand { display: inline-block; margin-bottom: 12px; }
.ep-footer-brand img { display: block; width: 168px; height: auto; }
/* 0.5.0（R71）: リンクの並べ方は eroporta-portal.css の .ep-foot-groups（まとまりごと）。ここでは決めない */
.ep-site-foot .ep-note { font-size: 12px; line-height: 1.9; color: #625a65; }
.ep-filter-sum { min-height: 48px; align-items: center; padding: 10px 14px; border-color: #dfd7e0; background: #fff; }
.ep-kind-tabs a, .ep-pagination a, .ep-pagination span { min-height: 44px; }

@media (min-width: 1000px) {
  .ep-detail-head { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); padding: 26px; gap: 30px; }
}
@media (max-width: 699px) {
  .ep-main .ep-container { padding: 16px 16px 28px; }
  .ep-bar { margin-bottom: 15px; padding-bottom: 10px; }
  .ep-bar-row { gap: 13px; }
  .ep-logo img { width: 138px; }
  .ep-logo-kana { margin-left: 31px; font-size: 10px; }
  .ep-bar-search { gap: 6px; }
  .ep-bar-search input[type="search"] { height: 44px; padding: 0 8px; }
  .ep-bar-search .ep-btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .ep-audience-note { margin-top: 7px; font-size: 10px; }
  .ep-main a.ep-nav-item { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .ep-main .ep-grid { gap: 13px 10px; }
  .ep-main .ep-grid .ep-card { padding: 5px; border-radius: 9px; }
  .ep-main .ep-grid .ep-card-title { font-size: 13px; line-height: 1.6; }
  .ep-card-foot { gap: 4px; }
  .ep-main a.ep-card-info, .ep-card-foot .ep-save-work { font-size: 11px; padding: 3px 5px; }
  .ep-top .ep-top-title .ep-note { display: block; margin-left: 0; }
  .ep-detail-head { padding: 13px; gap: 20px; }
  .ep-detail-main .ep-page-title { font-size: 21px; margin-top: 7px; }
  .ep-detail-img .ep-go-cap { flex-wrap: wrap; }
  .ep-listing { padding: 12px; }
  .ep-facts-table th { width: 76px; font-size: 12px; padding: 11px 8px; }
  .ep-facts-table td { font-size: 13px; padding: 11px 9px; }
  .ep-main .ep-h2 { font-size: 18px; }
  .ep-h2 .ep-note { display: block; margin-left: 0; font-size: 12px; }
  .ep-page-guide .ep-page-body, .ep-page-about .ep-page-body, .ep-page-policy .ep-page-body, .ep-page-privacy .ep-page-body, .ep-page-contact .ep-page-body { padding: 20px 18px; }
  .ep-page-guide .ep-page-body h2, .ep-page-guide .ep-page-body h3 { font-size: 18px; }
  .ep-page-guide .ep-page-body nav { padding: 14px 16px; }
  .ep-live-card { padding: 18px; }
  .ep-site-foot { padding: 20px 16px; }
  .ep-intro { padding: 18px; }
}
@media (max-width: 359px) {
  .ep-main .ep-container { padding-left: 12px; padding-right: 12px; }
  .ep-bar-row { gap: 9px; }
  .ep-logo img { width: 122px; }
  .ep-logo-kana { margin-left: 27px; }
}

/* 保存の入口は横送り不要。スマホはロゴ＋保存の下に検索欄を置く。 */
.ep-bar-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.ep-logo-kana { margin-left: 45px; }
.ep-main a.ep-saved-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 8px 12px; border: 1px solid #cfafbf; border-radius: 9px; background: #fff; color: #792343; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.ep-main a.ep-saved-shortcut:hover, .ep-main a.ep-saved-shortcut.is-current { background: #f4e7ee; border-color: #982b51; }
.ep-saved-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 999px; background: #982b51; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.ep-saved-count[hidden] { display: none; }
/* 0.4.19（Core 0.5.27）: 保存の「しおり」の印（作品のカード・保存した作品・上部の「保存した作品」）。形は CSS で描く（画像・文字の上に重ねない）。
   未保存は輪郭だけ（中は --ep-bm-hole＝ボタンの地の色）。保存済み（aria-pressed="true"）は掲載元の色（--ep-vc。無ければボルドー）で塗り、チェックを入れる */
.ep-bm { position: relative; display: inline-block; flex: none; width: .78em; height: 1.02em; vertical-align: -.14em; }
.ep-bm::before, .ep-bm::after { content: ""; position: absolute; -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.ep-bm::before { top: 0; right: 0; bottom: 0; left: 0; background: currentColor; }
.ep-bm::after { top: .14em; right: .14em; bottom: .26em; left: .14em; background: var(--ep-bm-hole, #fff); }
[aria-pressed="true"] > .ep-bm::before { background: var(--ep-vc, #982b51); }
[aria-pressed="true"] > .ep-bm::after { top: .17em; right: auto; bottom: auto; left: .29em; width: .2em; height: .42em; -webkit-clip-path: none; clip-path: none; background: none; border: solid var(--ep-vt, #fff); border-width: 0 .12em .12em 0; transform: rotate(45deg); }
.ep-main a.ep-saved-shortcut:hover .ep-bm, .ep-main a.ep-saved-shortcut.is-current .ep-bm { --ep-bm-hole: #f4e7ee; }
.ep-card-foot .ep-save-status, .ep-detail-actions .ep-save-status { font-size: 12px; line-height: 1.6; }
.ep-main a.ep-save-view { display: flex; align-items: center; min-height: 44px; width: fit-content; max-width: 100%; color: #792343; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ep-main .ep-detail-actions a.ep-btn-go { background: #982b51; color: #fff; border-color: #982b51; }
.ep-main .ep-detail-actions a.ep-btn-go:hover { background: #7e2041; }
.ep-saved-intro { margin: 4px 0 20px; padding: 14px 16px; background: #f1eaf0; border-radius: 9px; font-size: 14px; line-height: 1.85; }
.ep-saved-help { margin-top: 28px; border: 1px solid #ded5df; border-radius: 9px; background: #fff; }
.ep-saved-help summary { min-height: 48px; padding: 12px 16px; cursor: pointer; font-size: 14px; }
.ep-saved-help .ep-saved-notice { margin: 0; border: 0; padding: 0 16px 16px; }
.ep-saved .ep-saved-card { padding: 16px; border: 1px solid #e1dce3; border-radius: 12px; background: #fff; }
.ep-saved .ep-saved-actions .ep-btn { min-height: 44px; padding: 10px 12px; line-height: 1.6; }
/* 保存した一覧の「〇〇 のページへ（外部サイト）」: 長い行き先はボタンの中で折り返す（スマホで文字が枠からはみ出さない。Tarik 0.4.7） */
.ep-saved .ep-saved-actions .ep-btn { min-width: 0; max-width: 100%; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.ep-saved .ep-card-title { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .ep-bar-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .ep-bar-search { grid-column: 1 / -1; grid-row: 2; }
  .ep-logo-kana { margin-left: 34px; }
  .ep-main a.ep-saved-shortcut { min-height: 44px; padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 359px) {
  .ep-logo-kana { margin-left: 30px; }
  .ep-bar-row { column-gap: 8px; }
}
/* ---------------------------------------------------------------- 0.4.9（EROPORTA Core 0.5.12.2）: 画像中心のサービスの紹介 */
/* 公式のバナーはカードの先頭。画像は原本のまま（縦横比を保った縮小だけ・角丸・切り抜き・重ねる文字なし）。「PR」は画像の外の上。
   余白・背景・枠・控えめな影は外側のカードに付ける（カードの角丸は内側の余白の外なので、画像の端は切れない）。押せる範囲は画像の幅だけ */
.ep-svc-banner { margin: 0 0 12px; padding: 0; }
.ep-svc-banner-pr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #6b6470; }
.ep-svc-banner-pr .ep-pr { margin-right: 0; }
.ep-main a.ep-svc-banner-link, a.ep-svc-banner-link { display: block; max-width: max-content; margin: 0 auto; line-height: 0; text-decoration: none; }
.ep-main .ep-svc-banner-img, .ep-svc-banner-img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; filter: none; opacity: 1; }
.ep-live-card.has-banner, .ep-svc-card.has-banner, .ep-svc-guide.has-banner, .ep-live-brief.has-banner { background: #fff; border: 1px solid #e1dce3; box-shadow: 0 1px 2px rgba(35,35,31,.04), 0 6px 18px rgba(35,35,31,.06); }
.ep-live-brief.has-banner { padding: 14px; border-radius: 12px; }
.ep-live-card.has-banner .ep-svc-card-name { margin-top: 2px; font-size: 18px; }
.ep-svc-card-meta { margin: 0 0 2px; font-size: 12.5px; line-height: 1.6; color: #6b6470; }
.ep-live-card.has-banner .ep-svc-card-actions { margin-top: 10px; }
/* 0.4.9: 上部の分野の案内（共通ヘッダー・1 か所だけ）。トップの本文の「目的から探す」と同じ形（左端に色帯がある白いカード）を小さくした 2 行（分野名・作品数／案内数）。
   収まる幅は 7 つを横 1 列（余りは等しく広げる）、狭い幅はこの段だけ横に送る（文字は重ねない・折り返さない・ページ全体は横にはみ出さない） */
.ep-nav { display: flex; flex-wrap: nowrap; gap: 6px; margin: 8px 0 0; padding: 0 0 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ep-nav::-webkit-scrollbar { display: none; }
.ep-main a.ep-nav-item { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; box-sizing: border-box; min-width: 74px; height: 46px; min-height: 46px; padding: 3px 10px 3px 9px; color: var(--ep-ink); font-size: 13.5px; font-weight: normal; line-height: 1.3; text-decoration: none; white-space: nowrap; background: #fff; border: 1px solid #e1dce3; border-left: 4px solid var(--ep-ent-color, var(--ep-ink)); border-radius: 7px; }
.ep-main a.ep-nav-item:hover, .ep-main a.ep-nav-item:focus { background: #fff; border-color: #b9aebd; border-left-color: var(--ep-ent-color, var(--ep-ink)); }
.ep-main a.ep-nav-item.is-current { color: var(--ep-ink); background: #f8f0f4; border-color: var(--ep-ent-color, #982b51); border-left-color: var(--ep-ent-color, #982b51); box-shadow: inset 0 -2px 0 var(--ep-ent-color, #982b51); }
.ep-nav-label { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ep-nav-meta { display: block; font-size: 11.5px; line-height: 1.3; color: #6b6470; font-variant-numeric: tabular-nums; }
.ep-nav-meta .ep-nav-n, .ep-nav-meta .ep-nav-g, .ep-nav-item.is-current .ep-nav-n { font-size: inherit; font-weight: normal; color: inherit; }
.ep-nav-video { --ep-ent-color: var(--ep-kind-video); }
.ep-nav-anime { --ep-ent-color: var(--ep-kind-anime); }
.ep-nav-manga { --ep-ent-color: var(--ep-kind-manga); }
.ep-nav-game { --ep-ent-color: var(--ep-kind-game); }
.ep-nav-voice { --ep-ent-color: var(--ep-kind-voice); }
.ep-nav-live { --ep-ent-color: var(--ep-kind-live); }
.ep-nav-sites { --ep-ent-color: var(--ep-kind-sites); }
@media (max-width: 699px) {
  .ep-nav { margin-top: 6px; gap: 5px; }
  .ep-main a.ep-nav-item { flex: 0 0 auto; min-width: 70px; height: 44px; min-height: 44px; padding: 2px 9px 2px 8px; }
  .ep-nav-label { font-size: 13px; }
  .ep-nav-meta { font-size: 11px; }
}
/* ---------------------------------------------------------------- 0.4.10（EROPORTA Core 0.5.12.3）: 作品のページの公式のサンプル（動画・画像）と拡大ビュー */
/* 欄は外側の容器（白・細い枠・角丸・控えめな影）で整える。画像・動画そのものは加工しない（縦横比を保った縮小だけ・角丸で切らない・上に重ねない） */
.ep-work-sec { margin: 16px 0; padding: 14px; background: #fff; border: 1px solid #e1dce3; border-radius: 12px; box-shadow: 0 1px 2px rgba(35,35,31,.04), 0 6px 18px rgba(35,35,31,.05); }
.ep-main .ep-work-sec > .ep-h2 { margin: 0 0 10px; padding: 0; font-size: 17px; line-height: 1.5; }
.ep-work-sec .ep-h2 .ep-note { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: normal; }   /* 枚数は見出しの横（スマホでも改行しない） */
.ep-movie-frame { position: relative; width: 100%; margin: 0 auto; overflow: hidden; background: #f4f2f5; }
.ep-movie-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* JavaScript があるとき: プレイヤーは公式の大きさのまま（幅・高さは JavaScript）、枠が狭ければ縦横比を保って縮める */
.ep-movie-frame.is-scaled iframe { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; }
.ep-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-gallery-item { margin: 0; padding: 0; list-style: none; }
.ep-main button.ep-gallery-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; aspect-ratio: 3 / 2; margin: 0; padding: 4px; background: #f4f2f5; border: 1px solid #e6e1e8; border-radius: 6px; cursor: zoom-in; }
.ep-main button.ep-gallery-btn:hover, .ep-main button.ep-gallery-btn:focus-visible { border-color: #982b51; }
.ep-gallery-btn img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.ep-gallery-none { font-size: 11px; color: #6b6470; }
.ep-gallery-more { display: none; margin: 10px 0 0; text-align: center; }
.ep-gallery-more[hidden], .ep-gallery-more [hidden] { display: none !important; }   /* 0.4.14: 「すべて見る」と「折りたたむ」はどちらか一方だけ */
/* 0.4.14: 公式の mp4（DUGA）の video。白い欄の中に、黒い地の動画の枠（縦横比は動画のまま・拡大しない・自動再生しない） */
.ep-video-frame { max-width: 720px; margin: 0 auto; background: #121014; border: 1px solid #e1dce3; border-radius: 8px; overflow: hidden; }
.ep-sample-video { display: block; width: 100%; height: auto; max-height: 70vh; margin: 0 auto; background: #121014; }
/* 一覧の並べ方と最初に見せる枚数は、このファイルの末尾（0.4.49・R40） */
@media (max-width: 599.98px) {
  .ep-work-sec { padding: 12px; }
}
/* 拡大ビュー（ページの中・暗い背景）。上の帯に「現在／全枚数」と閉じる、下の帯に前へ・次へ（どれも画像の外）。画像は縮めるだけ（小さい画像は元の大きさのまま） */
html.ep-lb-open, html.ep-lb-open body { overflow: hidden; }
.ep-lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147482000; display: flex; flex-direction: column; color: #fff; background: #121014; overscroll-behavior: contain; }
.ep-lb[hidden] { display: none; }
.ep-lb-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.ep-lb-bottom { justify-content: center; gap: 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.ep-lb-count { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ep-lb-stage { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.ep-lb-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border: 0; border-radius: 0; }
.ep-lb-status { flex: 1 1 auto; margin: 0; font-size: 13px; text-align: center; color: rgba(255,255,255,.8); }
.ep-lb button { min-width: 88px; min-height: 44px; padding: 8px 14px; font-size: 15px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; cursor: pointer; }
.ep-lb button:disabled { opacity: .35; cursor: default; }
.ep-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------------------------------------------------------- 0.4.11（EROPORTA Core 0.5.15）: 作品の画像を引き伸ばさない */
/* 一覧・保存・作品のページの画像は、表示の枠より小さいときに大きく見せない（縮めるだけ・全体を出す・切り抜かない）。
   DiGiket の画像（大 560×420・小さい代替 82×82）など、枠より小さい公式の画像を拡大しない。枠より大きい画像（FANZA の 800×538 など）は今までどおり縮めて全体 */
.ep-thumb img, .ep-saved-thumb img, .ep-sv-thumb img { object-fit: scale-down; }
.ep-detail-img img { width: auto; max-width: 100%; margin: 0 auto; }

/* ---------------------------------------------------------------- 0.4.12（EROPORTA Core 0.5.16）: DiGiket の横長の画像の枠 */
/* DiGiket の配信の画像は横長（観測は 560×420・4:3）。どの一覧でも 4:3 の枠に全体を出す（縮めるだけ・切り抜かない・拡大しない）。
   漫画の一覧の縦長の枠（3:4）より優先する。ほかのサービスの漫画の表紙は縦長の枠のまま。作品のページは横長の扱い（幅 320px に抑えない） */
.ep-grid .ep-thumb.ep-thumb-wide43, .ep-thumb.ep-thumb-wide43 { aspect-ratio: 4 / 3; }
@supports not (aspect-ratio: 1 / 1) {
	.ep-grid .ep-thumb.ep-thumb-wide43, .ep-thumb.ep-thumb-wide43 { height: 0; padding-top: 75%; }
}

/* 0.4.22（Core 0.5.32）: 上部の解説記事のリンク（年齢の表記の行の左）・分野のトップの解説記事・記事の終わりの「EROPORTA で探す」 */
.ep-audience-note { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 14px; }
.ep-main a.ep-bar-guides { display: inline-flex; align-items: center; min-height: 24px; margin-right: auto; color: #792343; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ep-main a.ep-bar-guides.is-current { text-decoration: none; }
.ep-kind-articles { margin: 28px 0 0; padding: 14px 16px; border: 1px solid var(--ep-line); border-radius: 10px; background: #fff; }
.ep-kind-articles ul { margin: 6px 0 0; padding-left: 1.2em; list-style: disc; }
.ep-kind-articles li { margin: 4px 0; line-height: 1.6; }
.ep-kind-articles li a, .ep-guide-explore li a { display: block; padding: 3px 0; text-underline-offset: 4px; }
.ep-kind-articles .ep-note a { display: inline-block; padding: 4px 0; text-underline-offset: 4px; }
.ep-kind-articles .ep-note { margin: 6px 0 0; }
.ep-page-guide .ep-guide-explore { max-width: 860px; margin-left: auto; margin-right: auto; }

/* 0.4.48（R39）: サンプル画像の一覧は公式の大きい画像。0.4.49（R40）で並べ方を下の「高さをそろえた行」に置き換えた */

/* 0.4.49（R40）: サンプル画像の一覧を「高さをそろえた行」にする（前は 3／4／6 列の 3:2 の枠で、縦長の大きい画像 555×800 が枠の高さに合わせて細く残り、
 * 小さい画像だけの掲載元は枠を画像に合わせる別扱い〔s と l の URL が同じか〕だった）。
 * - 各画像の枠の縦横比は、読み込んだ画像の実寸（naturalWidth／naturalHeight。--r。assets/js/eroporta-samples.js）。読み込む前は 3:2 で場所を取る。
 * - 行の高さの目安 --ep-gh（スマホ 96px〔横長 2 枚が 1 行に入る〕・600〜999px 150px・1000px 以上 170px）。行の中で幅を縦横比に応じて分け合うので、縦長・横長が混ざっても高さがそろい、空きマスが出ない。
 *   最後の行だけは伸ばさない（::after が残りの幅を受け取る）。1 枚が目安の 2.2 倍より広くはならない。縦横比は 0.5〜2.5 に収める（極端に細長い画像でページを縦長にしない）。
 * - 実寸がその枠より小さい画像（DUGA・ソクミルの 120×90 前後・大きい画像が読めず小さい画像にした 1 枚）は、その画像だけ元の大きさの枠（is-native。引き伸ばさない）。
 * - 最初に見せる枚数（およそ 2 行）: スマホ 4・600〜999px 6・1000px 以上 8。続きは「すべて見る」。画像の上に文字を重ねない・切り抜かない */
.ep-gallery { display: flex; flex-wrap: wrap; gap: 8px; --ep-gh: 96px; }
.ep-gallery::after { content: ""; flex: 1000 1 0px; }
.ep-gallery-item { --r: 1.5; flex: var(--r) 1 calc(var(--r) * var(--ep-gh)); min-width: 0; max-width: calc(var(--r) * var(--ep-gh) * 2.2); }
.ep-main button.ep-gallery-btn { width: 100%; aspect-ratio: var(--r); padding: 2px; }
.ep-gallery-btn img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ep-gallery-item.is-native { flex: 0 0 auto; max-width: 100%; }
.ep-main .ep-gallery-item.is-native button.ep-gallery-btn { width: auto; max-width: 100%; aspect-ratio: auto; padding: 2px; }
.ep-gallery-item.is-native .ep-gallery-btn img { width: var(--nw); max-width: 100%; max-height: none; }
@media (max-width: 599.98px) {
  .ep-sample-imgs:not(.is-expanded) .ep-gallery-item:nth-child(n+5) { display: none; }
  .ep-sample-imgs.has-more-n4 .ep-gallery-more { display: block; }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .ep-gallery { --ep-gh: 150px; }
  .ep-sample-imgs:not(.is-expanded) .ep-gallery-item:nth-child(n+7) { display: none; }
  .ep-sample-imgs.has-more-n6 .ep-gallery-more { display: block; }
}
@media (min-width: 1000px) {
  .ep-gallery { --ep-gh: 170px; }
  .ep-sample-imgs:not(.is-expanded) .ep-gallery-item:nth-child(n+9) { display: none; }
  .ep-sample-imgs.has-more-n8 .ep-gallery-more { display: block; }
}
/* 拡大ビューの知らせ（小さい画像を表示しています・読み込めません）は上の帯の中（画像の外）。読み込み中だけ薄く */
.ep-lb-status.is-note { color: #ffd98a; }
/* 0.4.49（R40）: JavaScript があるときは、折りたたみ中に実際の最初の 2 行だけを出す（assets/js/eroporta-samples.js の cutRows）。CSS の枚数の切り方は使わない */
.ep-sample-imgs.is-rows:not(.is-none) .ep-gallery-item:nth-child(n) { display: block; }
.ep-sample-imgs.is-rows:not(.is-none) .ep-gallery-item.is-over:nth-child(n) { display: none; }
.ep-sample-imgs.is-rows.is-cut .ep-gallery::after { display: none; }
.ep-sample-imgs.is-rows .ep-gallery-more { display: none; }
.ep-sample-imgs.is-rows.has-hidden .ep-gallery-more, .ep-sample-imgs.is-rows.is-expanded .ep-gallery-more { display: block; }
.ep-lb-count { flex: 0 0 auto; white-space: nowrap; }   /* 0.4.49（R40）: スマホで「1 / 6」が 2 行に割れない */

/* 0.5.20（R86）: FANZA ヘルプセンターで確かめたこと（分野のトップ・ゲームの記載ページ・作品ページ） */
.ep-help-facts { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--ep-line); border-left: 4px solid #8a1f3d; border-radius: 10px; background: #fff; }
.ep-help-facts-h { margin: 0; font-weight: 700; line-height: 1.5; }
.ep-help-facts-h .ep-note { display: block; font-weight: 400; }
.ep-help-facts ul { margin: 6px 0 0; padding-left: 1.2em; list-style: disc; }
.ep-help-facts li { margin: 6px 0; line-height: 1.65; overflow-wrap: anywhere; }
.ep-help-facts li a { display: inline-block; padding: 2px 0; text-underline-offset: 4px; }

/* 作品詳細の広告CTA。通常リンクと価格・比較の表示は変えない。 */
.ep-main.ep-single .ep-detail-actions > a.ep-btn-go[data-ep-link="ad"],
.ep-work-purchase-sticky a.ep-btn-go[data-ep-link="ad"] {
  background: linear-gradient(110deg, #c02131, #b94700);
  border: 1px solid #b02e1d;
  color: #fff;
  box-shadow: 0 3px 8px rgba(147, 42, 21, .16);
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.ep-main.ep-single .ep-detail-actions > a.ep-btn-go[data-ep-link="ad"]:hover,
.ep-work-purchase-sticky a.ep-btn-go[data-ep-link="ad"]:hover {
  background: linear-gradient(110deg, #a61b2a, #963a00);
}
.ep-main.ep-single .ep-work-purchase-note {
  flex: 0 0 100%;
  color: #8d2c19;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.ep-work-purchase-sticky, .ep-work-sticky-space { display: none; }
@media screen and (max-width: 767px) {
  .ep-work-purchase-sticky:not([hidden]) {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    max-height: 35vh;
    overflow-y: auto;
    padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #e4c5bb;
    background: #fffaf7;
    box-shadow: 0 -3px 14px rgba(40, 20, 15, .12);
  }
  .ep-work-sticky-links {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-padding-inline: 4px;
  }
  .ep-work-purchase-sticky a.ep-btn-go {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 min(250px, calc(100vw - 88px));
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
  }
  .ep-work-purchase-sticky a.ep-btn-go:only-child { flex: 1 1 auto; }
  .ep-work-purchase-vendor { display: block; font-size: 13px; }
  .ep-work-purchase-sticky .ep-pr, .ep-work-purchase-sticky .ep-ext { flex-shrink: 0; }
  .ep-work-purchase-sticky .ep-pr { color: #fff; border-color: currentColor; }
  .ep-work-sticky-close {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #ded2cc;
    border-radius: 8px;
    background: #fff;
    color: #4b3027;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
  }
  .ep-work-purchase-sticky a:focus-visible, .ep-work-sticky-close:focus-visible {
    outline: 3px solid #702514;
    outline-offset: 1px;
  }
  .ep-work-sticky-space { display: block; height: var(--ep-work-sticky-space, 0px); }
  html.ep-work-sticky-ready { scroll-padding-bottom: var(--ep-work-sticky-space, 0px); }
  html.ep-lb-open .ep-work-purchase-sticky,
  html:not(.ep-age-ok) body.ep-age-locked .ep-work-purchase-sticky { display: none; }
}

/* wave21: exact-listing price actions and a three-card sample shelf, scoped to details. */
.ep-main.ep-single .ep-work-price-actions {
  display: flex; flex-wrap: wrap; align-items: flex-start; align-content: start;
  gap: 4px; margin: 4px 0 0; padding: 0; min-width: 0; max-width: 100%; height: auto; min-height: 0;
}
.ep-main.ep-single .ep-work-price-actions:empty { display: none !important; }
.ep-main.ep-single .ep-work-price-actions > a.ep-work-price-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  flex: 0 1 auto; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 40px; height: auto;
  margin: 0; padding: 5px 8px; border: 1px solid #b02e1d; border-radius: 6px;
  background: linear-gradient(110deg, #c02131, #b94700); color: #fff; font-size: 12px; line-height: 1.35;
  font-weight: 700; white-space: normal; overflow-wrap: anywhere; text-decoration: none;
}
.ep-main.ep-single .ep-work-price-label { display: block; min-width: 0; }
.ep-main.ep-single .ep-work-price-vendor { display: block; font-size: 10px; line-height: 1.3; font-weight: 400; }
.ep-main.ep-single .ep-work-price-actions .ep-pr,
.ep-main.ep-single .ep-work-price-actions .ep-ext { flex-shrink: 0; color: #fff; border-color: currentColor; }
.ep-main.ep-single .ep-work-price-actions .ep-pr { font-size: 10px; padding: 0 2px; }
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related {
  display: block; box-sizing: border-box; width: 100%; max-width: none !important; min-width: 0;
  height: auto; min-height: 0; max-height: 140px; margin: 4px 0 0; padding: 0;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related > h3 {
  margin: 0 0 4px; padding: 0; border: 0; height: 16px; min-height: 0;
  font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: auto;
  box-sizing: border-box; width: 100%; max-width: none !important; min-width: 0; justify-items: stretch;
  align-items: start; align-content: start; gap: 4px; margin: 0; padding: 0; height: auto; min-height: 0;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-card {
  display: grid; grid-template-rows: 74px 32px; gap: 2px; box-sizing: border-box;
  margin: 0; padding: 3px; min-width: 0; width: 100%; max-width: none !important; height: 116px; min-height: 0; max-height: 140px;
  border: 1px solid var(--ep-line); border-radius: 5px; background: #fff;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-info {
  display: grid; grid-template-rows: 44px 28px; gap: 2px; min-width: 0; height: 74px;
  margin: 0; padding: 0; color: var(--ep-ink); text-decoration: none;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-thumb {
  display: block; width: 100%; height: 44px; min-height: 0; margin: 0; padding: 0; overflow: hidden;
  background: #f4f2f3; border-radius: 3px;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-thumb img {
  display: block; width: 100%; height: 44px; max-height: 44px; margin: 0; padding: 0; object-fit: contain;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  height: 28px; min-height: 0; max-height: 28px; margin: 0; padding: 0; overflow: hidden;
  font-size: 11px; line-height: 14px; font-weight: 600; overflow-wrap: anywhere;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-cta {
  display: flex; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box;
  height: 32px; min-height: 0; min-width: 0; margin: 0; padding: 2px; border: 1px solid #b02e1d; border-radius: 4px;
  color: #fff; background: linear-gradient(110deg, #c02131, #b94700); font-size: 11px; line-height: 14px;
  font-weight: 700; white-space: nowrap; text-decoration: none;
}
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-cta .ep-pr { flex-shrink: 0; margin: 0; padding: 0 1px; font-size: 9px; line-height: 12px; color: #fff; border-color: currentColor; }
.ep-main.ep-single .ep-work-price-actions > a.ep-work-price-cta:hover,
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-cta:hover { color: #fff; background: linear-gradient(110deg, #a61b2a, #963a00); }
.ep-main.ep-single .ep-work-price-actions a:focus-visible,
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related a:focus-visible { outline: 2px solid #8a1f3d; outline-offset: 2px; }
@media screen and (max-width: 359px) {
  :is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-cta { font-size: 10px; }
  :is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sample-related-cta .ep-pr { font-size: 8px; }
}

/* wave22: seller-specific emphasis; all other sellers retain their existing actions. */
.ep-main.ep-single .ep-main-image-hint {
  margin: 4px 0 0; padding: 0; color: #694c54; font-size: 12px; line-height: 1.4;
  text-align: center; overflow-wrap: anywhere;
}
.ep-main.ep-single .ep-detail-actions > a.ep-btn-go[data-ep-go="sokmil"][data-ep-link="ad"],
.ep-main.ep-single .ep-work-price-actions > a.ep-work-price-cta[data-ep-go="sokmil"][data-ep-link="ad"],
.ep-work-purchase-sticky a.ep-btn-go[data-ep-go="sokmil"][data-ep-link="ad"] {
  border-color: #d39b2f; box-shadow: 0 0 0 1px #edc778, 0 3px 8px rgba(147,42,21,.16);
}
.ep-sokmil-cta-badge {
  display: inline-block; flex-shrink: 0; box-sizing: border-box; max-width: 100%; margin: 0; padding: 1px 4px;
  border-radius: 3px; background: #ffe6a1; color: #5c2a00; font-size: 10px; line-height: 13px;
  font-weight: 700; white-space: nowrap;
}
.ep-work-purchase-label > .ep-sokmil-cta-badge,
.ep-work-price-label > .ep-sokmil-cta-badge { display: block; width: fit-content; margin: 0 auto 2px; }
.ep-work-purchase-sticky [data-ep-go="sokmil"][data-ep-link="ad"] .ep-work-purchase-vendor { display: none; }
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sokmil-focus > h3 { color: #8a3b16; }
:is(.ep-main.ep-single, .ep-sokmil-acquisition) .ep-sokmil-focus .ep-sample-related-card { border-color: #d9b465; }
