:root {
  --bg: #d9d8dd; --surface: #ffffff; --line: #e9d3dc; --text: #33292f; --muted: #64535d; /* 背景はグレー・カードやヘッダーは白（docs/spec/sale-site-site.md「色」） */
  --accent: #ec4079; --accent-2: #d9770a; --fanza: #e8384f; --dlsite: #1f6fd1; --buy-dlsite: #1c1d83; --buy-fanza: #e62e3b;
  --soft: #fff0f5; --shadow: 0 4px 14px #3b2f3714;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.7; }
html.gate-open body { overflow: hidden; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; max-width: 1100px; margin: 0 auto; }
.site-title { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--accent); }
.pr-note { margin: 0; font-size: .75rem; color: var(--muted); }
.rank-bnr { margin: 40px 0 0; text-align: center; line-height: 0; }
.rank-bnr { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rank-bnr img { display: block; }
.rank-bnr + .site-footer { margin-top: 16px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 16px; font-size: .8rem; color: var(--muted); text-align: center; }
.site-footer a { color: var(--muted); }
.site-footer .footer-links { margin: 10px 0; }

h1 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); line-height: 1.4; margin: 16px 0 8px; }
h2 { font-size: 1.2rem; margin: 40px 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); }
.lead { color: var(--muted); }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: border-color .15s; }
.card a:hover { border-color: var(--accent); }
.card__img { position: relative; aspect-ratio: 3 / 2; background: #f6e7ed; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__rank { position: absolute; top: 6px; left: 6px; background: var(--accent-2); color: #fff; font-weight: 800; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.card__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__title { margin: 4px 0 0; font-size: .85rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta, .card__campaign { margin: 0; font-size: .72rem; color: var(--muted); }
.card__campaign { color: var(--accent-2); }
.price { margin: auto 0 0; font-size: .85rem; padding-top: 4px; }
.price s { color: var(--muted); font-size: .75rem; }
.price__off { background: var(--accent); color: #fff; font-weight: 800; font-size: .72rem; padding: 1px 6px; border-radius: 4px; }
.badge { align-self: flex-start; font-size: .65rem; padding: 1px 6px; border-radius: 4px; color: #fff; }
.badge--fanza { background: var(--fanza); }
.badge--dlsite { background: var(--dlsite); }

.post-list { padding-left: 1.2em; }
.post-list li { margin: 6px 0; }
.btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(255, 244, 248, .97); }
.age-gate[hidden] { display: none; }
.age-gate__box { max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-align: center; }
.age-gate__title { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.price s, .price strong { white-space: nowrap; }

.guide-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list span { font-size: .85rem; color: var(--muted); }
.guide { max-width: 760px; }
.guide h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.guide li { margin: 4px 0; }
.guide a { color: var(--accent); }
.crumb { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ===== 作品紹介の記事 ===== */
.guide { max-width: 800px; margin-left: auto; margin-right: auto; } /* 記事は画面のまんなかに置く */
.crumb { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.guide h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.45; margin: 8px 0 10px; }
.guide .lead { font-size: .98rem; line-height: 1.8; margin: 0 0 6px; }
.guide p { line-height: 1.95; margin: 0 0 1.1em; }
.guide h2 { margin: 44px 0 14px; padding: 2px 0 2px 12px; font-size: 1.25rem; }
.guide > h2:first-of-type { margin-top: 28px; }

.work-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; margin: 20px 0 8px; align-items: start; }
.work-img { margin: 0; }
.work-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 28px #ec407933; }
.work-hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.work-stats { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.work-ranks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work-ranks li { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 12px; border-radius: 999px; background: #fff4e3; border: 1px solid #f6d29b; font-size: .78rem; }
.work-ranks span { color: var(--muted); }
.work-ranks strong { color: var(--accent-2); font-size: 1.05rem; }
.work-ranks small { font-size: .7rem; color: var(--accent-2); }
.work-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.work-tiles li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); text-align: center; }
.work-tiles span { font-size: .72rem; color: var(--muted); }
.work-tiles strong { font-size: 1.3rem; line-height: 1.3; }
.work-tiles small { font-size: .7rem; color: var(--muted); }
.work-stats__at { margin: 10px 0 0; font-size: .72rem; color: var(--muted); text-align: right; }

.work-info { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.work-info > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.work-info > div:last-child { border-bottom: 0; }
.work-info dt { color: var(--muted); }
.work-info dd { margin: 0; overflow-wrap: anywhere; }
.work-info .wi-num { color: var(--accent-2); font-size: 1rem; }
.work-info > .wi-stat { border-bottom: 0; padding: 5px 14px; }
.work-info > .wi-stat .wi-num { color: #d4202a; font-size: 1.35rem; font-weight: 700; }
.work-info > .wi-stat--last { border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.work-info .wi-pill { display: inline-block; padding: 0 8px; border-radius: 4px; font-size: .75rem; line-height: 1.6; background: #eee; }
.work-info .wi-pill--age { background: #ffe0e8; color: #d4204a; }
.work-info .wi-pill--fmt { background: #dff5d8; color: #2a7a1a; }
.work-info .wi-pill--file { background: #fdecd8; color: #b35a00; }
.work-info .wi-hub { display: inline-block; margin-left: 6px; padding: 1px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .76rem; text-decoration: none; white-space: nowrap; }
.work-info .wi-hub:hover { background: var(--accent); color: #fff; }
.work-info + .work-stats__at { margin-top: 6px; }
.work-catch { margin: 0 0 12px; }
.work-catch__copy { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; line-height: 1.5; color: var(--accent); }
.work-catch__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work-catch__tags li { padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; }

.work-link { margin: 0; }
.work-link a { display: block; text-align: center; padding: 14px 20px; border-radius: 999px; background: linear-gradient(135deg, #f0508a, #ff7a6e); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px #ec407944; transition: transform .15s, box-shadow .15s; }
.work-link a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px #ec407966; }

/* 購入カード（サイト共通）：左に小さいサムネイル、右にタイトル・サブ文章、その下に購入ボタン */
.work-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 18px 0 26px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.work-card__img { display: block; }
.work-card__img img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; background: #e6e6ea; }
.work-card__body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.work-card__body strong { line-height: 1.45; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-card__body > span { font-size: .8rem; color: var(--muted); }
.work-card__buy { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.work-card__buy a.dl-go { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin: 0; }
.work-card__buy a.dl-go, .work-card__buy a.dl-go span { color: #fff; }

.work-thumbs { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.work-thumbs li { margin: 0; }
.work-thumbs img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #f6e7ed; display: block; }

.sample-embed { margin: 22px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sample-embed > strong { display: block; margin-bottom: 10px; }
.sample-embed__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.sample-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sample-embed .small { font-size: .78rem; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.sample-box { margin: 22px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }

.work-cta { margin: 40px 0 8px; text-align: center; }

.work-cta .work-link a { display: inline-block; padding: 14px 36px; }
.work-cta--card { text-align: left; }
.work-cta--card .work-card { margin: 0 0 10px; border-color: var(--accent); }
.work-cta--card > .work-link { text-align: center; }

.related { margin: 44px 0 0; }
.related.pickup { margin: 6px 0; } /* 関連広告・キーワード広告の枠：上下の余白を詰める */
.related .small { font-size: .74rem; color: var(--muted); }

.refs { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .74rem; line-height: 1.7; color: var(--muted); }
.refs a { color: var(--muted); }

.works li a { display: block; text-decoration: none; }

@media (max-width: 640px) {
  .work-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .work-info > div { grid-template-columns: 6.5em minmax(0, 1fr); }
}

/* ===== 白とピンクの仕上げ ===== */
.card a, .guide-list a, .work-stats, .work-info, .sample-embed, .work-card { box-shadow: 0 2px 10px #ec40790f; }
.guide h2, h2 { border-left-color: var(--accent); }
.toc a { background: #fff; }
.btn:not(.btn--primary) { background: #fff; }
.age-gate__box { box-shadow: var(--shadow); }

/* ===== トップページ ===== */
.top-hero { margin: 8px 0 8px; padding: 30px 22px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, #fff0f5, #ffe1ec); border: 1px solid #f4b6cc; }
.top-hero__eyebrow { margin: 0 0 4px; font-size: .78rem; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.top-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--accent); }
.top-hero__lead { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.work-tiles-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.work-tile a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 10px #ec40790f; transition: transform .15s, box-shadow .15s, border-color .15s; }
.work-tile a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.work-tile__img { aspect-ratio: 4 / 3; background: #f6e7ed; }
.work-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-tile__body { padding: 10px 12px 12px; }
.work-tile__title { margin: 0 0 4px; font-weight: 700; font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-tile__meta { margin: 0; font-size: .75rem; color: var(--muted); }
.more { margin: 6px 0 0; text-align: right; }

/* ===== ヘッダー（ピンクの帯・中央にタイトル・左にメニュー・右に検索） ===== */
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 52px 1fr 52px; grid-template-rows: 50px 22px; align-items: center; max-width: none; margin: 0; padding: 0; height: 72px; border: 0; background: #ff2493; color: #fff; box-shadow: 0 2px 10px #ff249344; }
.site-title { justify-self: center; font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; color: #fff; text-decoration: none; text-align: center; }
.hd-btn { display: flex; align-items: center; justify-content: center; width: 52px; height: 50px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-decoration: none; }
.hd-btn:hover { background: #ffffff22; }
.pr-bar { grid-column: 1 / -1; box-sizing: border-box; height: 22px; margin: 0; padding: 0 12px; line-height: 21px; text-align: center; font-size: .72rem; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); box-shadow: none; }
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: #2b1620aa; }
.drawer-bg[hidden], .drawer[hidden] { display: none; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(300px, 84vw); overflow-y: auto; padding: 0 0 24px; background: #fff; box-shadow: 6px 0 30px #0003; }
.drawer__title { margin: 0; padding: 14px 18px; background: #ff2493; color: #fff; font-weight: 800; font-size: 1.05rem; }
.drawer__sub { margin: 18px 18px 4px; font-size: .74rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; }
.drawer li a:hover { background: var(--soft); color: var(--accent); }
html.menu-open body { overflow: hidden; }
.search-box { margin: 12px 0 8px; }
.search-input { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 999px; font: inherit; background: #fff; color: var(--text); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px #ec407922; }
.search-msg { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }

/* TOP: 広告枠・画像枠 / 新着の横並び / ランキングの縦並び */
.slot { display: flex; align-items: center; justify-content: center; margin: 14px 0; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.slot--ad { min-height: 90px; }
.slot--img { min-height: 160px; }
.work-tiles-row { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.work-tiles-row .work-tile { flex: 0 0 200px; scroll-snap-align: start; }

/* ヘッダー下のカテゴリナビ（スマホ優先・横スクロール） */
.cat-nav { position: sticky; top: 72px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); transition: top .25s ease; }
.cat-nav ul { list-style: none; margin: 0; padding: 8px 10px; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 1100px; margin-inline: auto; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav li { flex: 0 0 auto; }
.cat-nav li:first-child { margin-left: auto; } .cat-nav li:last-child { margin-right: auto; } /* チップが枠より狭いPCでは中央に寄せる（あふれるスマホでは今まで通り横スクロール。justify-content:center だと左が切れるので余白で寄せる） */
.cat-nav a { display: block; padding: 10px 16px; min-height: 44px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.cat-nav a.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* DLsiteへ移動するボタン */
.dl-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: linear-gradient(135deg, #f0508a, #ff7a6e); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px #ec407944; }
.dl-go:hover { box-shadow: 0 10px 24px #ec407966; }
.dl-go--dlsite { background: var(--buy-dlsite); box-shadow: 0 6px 18px #1c1d8355; } .dl-go--dlsite:hover { box-shadow: 0 10px 24px #1c1d8388; }
.dl-go--fanza { background: var(--buy-fanza); box-shadow: 0 6px 18px #e62e3b55; } .dl-go--fanza:hover { box-shadow: 0 10px 24px #e62e3b88; }
/* .work-link a（ピンクのグラデーション）より強く指定する：購入ボタンは、記事のどこでも DLsite＝紺・FANZA＝赤 */
.work-link a.dl-go--dlsite { background: var(--buy-dlsite); box-shadow: 0 6px 18px #1c1d8355; } .work-link a.dl-go--dlsite:hover { box-shadow: 0 10px 24px #1c1d8388; }
.work-link a.dl-go--fanza { background: var(--buy-fanza); box-shadow: 0 6px 18px #e62e3b55; } .work-link a.dl-go--fanza:hover { box-shadow: 0 10px 24px #e62e3b88; }
.work-link a.dl-go + a.dl-go { margin-top: 10px; }
.work-cta .work-link { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } .work-cta .work-link a.dl-go + a.dl-go { margin-top: 0; }
.dl-go__arrow { font-size: 1.05em; }
.work-link a.dl-go { display: flex; padding: 14px 20px; }
.work-cta .work-link a.dl-go { display: inline-flex; padding: 14px 20px; flex: 0 0 min(100%, 300px); width: min(100%, 300px); box-sizing: border-box; } /* 2つのボタンは同じ横幅 */
.dl-go--trial { background: #fff; color: #e0407a; border: 2px solid #f0508a; box-shadow: 0 4px 12px #ec407922; }
.work-hero .work-link + .work-link { margin-top: 10px; }

.hub-meta { color: var(--muted); margin: 0 0 14px; }
.hub-link { margin: 22px 0 0; font-weight: 700; }
.work-tile__badge { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; }


/* 作品記事：レイアウト3種（a=表紙左 / b=表紙右 / c=表紙を上に大きく）と余白 */
.guide--a .work-hero, .guide--b .work-hero, .guide--c .work-hero { margin: 28px 0 36px; gap: 28px; }
.guide--b .work-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.guide--b .work-hero .work-img { order: 2; }
.guide--c .work-hero { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
.guide--c .work-hero .work-img { max-width: 480px; margin: 0 auto; }
.guide--c h1, .guide--c .lead { text-align: center; }
.guide[class*="guide--"] .lead { margin-bottom: 12px; }
.guide[class*="guide--"] p { margin-bottom: 1.4em; }
.guide[class*="guide--"] h2 { margin: 56px 0 18px; }
.guide[class*="guide--"] .work-cta, .guide[class*="guide--"] .related { margin-top: 48px; }
@media (max-width: 720px) { .guide--b .work-hero { grid-template-columns: minmax(0, 1fr); } .guide--b .work-hero .work-img { order: 0; } .guide[class*="guide--"] h2 { margin-top: 44px; } }

/* カテゴリのチップ（ボイス・ASMR／青年コミック／スマホゲーム…） */
.chip { display: inline-block; padding: 1px 8px; margin: 0 0 4px; border-radius: 999px; font-size: .68rem; line-height: 1.6; font-weight: 700; color: #fff; background: var(--accent); }
.chip--voice { background: #ec4079; } .chip--comic { background: #7c5cd6; } .chip--smartphone { background: #1f9d8a; } .chip--bishoujo { background: #e08a1e; } .chip--doujin { background: #3b82c4; }
.chip-line { margin: 12px 0 0; } .guide--c .chip-line { text-align: center; }

/* 作品紹介一覧 */
.works-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.works-jump a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--surface); }
.works-jump small, .works-sec h2 small { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: .75rem; }
.works-sec { margin: 40px 0 0; scroll-margin-top: 70px; }
.works-sec h2 { margin: 0 0 16px; }

/* 検索モーダル */
.sm[hidden] { display: none; }
.sm { position: fixed; inset: 0; z-index: 100; }
.sm__back { position: absolute; inset: 0; background: rgba(40, 10, 25, .55); }
.sm__panel { position: relative; max-width: 760px; max-height: calc(100vh - 32px); margin: 16px auto; padding: 16px; overflow-y: auto; border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.sm__head { display: flex; gap: 10px; align-items: center; }
.sm__head .search-input { flex: 1; min-width: 0; }
.sm__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sm__panel .search-msg { margin: 12px 2px 12px; }
.sm-open body { overflow: hidden; }
.drawer__btn { display: block; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; font-size: .95rem; cursor: pointer; }
.drawer__btn:hover { background: var(--soft); color: var(--accent); }


/* 青年コミックの試し読み（DLsite公式ビューアの埋め込み） */
.trial-viewer { margin: 22px 0; padding: 14px; } /* 枠線・角丸・背景・影は付けない（2026-10-19） */
.guide .trial-viewer h2, .trial-viewer h2 { margin: 0 0 10px; padding-top: 0; font-size: 1.1rem; }
.trial-viewer__btn { text-align: center; margin: 6px 0; }
.trial-viewer .trial-viewer__btn .btn--primary, .trial-viewer .trial-viewer__btn .btn--primary:visited, .trial-viewer .trial-viewer__btn .btn--primary:hover { color: #fff; text-decoration: none; } /* 本文リンクの文字色（ピンク）に負けて、ボタンの文字が背景と同じ色になっていた */
.trial-viewer__note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; text-align: center; line-height: 1.7; }
.trial-viewer__note a { color: var(--accent, #e0407a); font-weight: 700; }

/* スマホ（719px以下）：TOPのタイルの文字を少し小さく */
@media (max-width: 719px) {
  .work-tiles-row--top .work-tile__body { padding: 8px 9px 10px; }
  .work-tiles-row--top .work-tile__title { font-size: .82rem; -webkit-line-clamp: 2; }
}

/* TOPの「人気の記事」：3列×2行（スマホもPCも3列） */
.top-pv { margin: 20px 0 10px; }
.top-pv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 10px 0 6px; padding: 0; }
.top-pv__grid .work-tile { min-width: 0; }
.top-pv__grid .work-tile__body { padding: 4px 6px 5px; }
.top-pv__grid .work-tile__title { font-size: .7rem; }
@media (min-width: 720px) { .top-pv__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* TOPのpixiv（イラスト画像）：小さなタイルを1行。スマホ4列（4件）・PC6列（6件） */
.top-px { margin: 26px 0 10px; }
.top-px__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 10px 0 6px; padding: 0; }
.top-px__grid .work-tile { min-width: 0; }
.top-px__grid .work-tile__body { padding: 4px 6px 5px; }
.top-px__grid .work-tile__title { font-size: .8rem; }
.top-px .more { margin: 4px 0 0; text-align: right; }
/* 2カラム×10行（20件）。スマホ・PCとも同じ */
.top-px__grid .work-tile:nth-child(n+21) { display: none; }
@media (min-width: 720px) { .top-px__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .top-px__grid .work-tile:nth-child(n+21) { display: block; } .top-px__grid .work-tile:nth-child(n+31) { display: none; } } /* PCは3列×10行＝30件 */

/* TOPの大見出し（青年コミック・同人・ボイス・ゲーム）とカテゴリの小見出し */
.top-group { margin: 30px 0 10px; }
.top-group > h2 { margin-bottom: 4px; }
.top-cat h3 { margin: 18px 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.top-cat h3::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--accent); }
.hd-btn--space { cursor: default; } .hd-btn--space:hover { background: none; }

/* 関連作品：TOPのカテゴリと同じタイル */
.related-grid { margin: 12px 0; }
.related .work-tile a { color: var(--text); }
.related .work-tile a:hover { color: var(--text); }
.related .work-tile__title { margin: 0; font-size: .85rem; line-height: 1.5; font-weight: 700; }

/* 関連作品：いろいろなカテゴリが混ざるので、画像の枠を青年コミックの表紙と同じ縦長（317×450）にそろえる。
   横長の画像（同人・ゲームなど）は切り取らずに中央に置き、上下の足りない部分はグレー */
.related .work-tile__img { position: relative; aspect-ratio: 317 / 450; height: auto; background: #e6e6ea; overflow: hidden; }
.related .work-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }


/* TOPスライダー（新着）：1枚を中央に置き、左右に隣の作品が少しはみ出す（スマホ・PC共通） */
.slider { position: relative; margin: 14px 0 24px; }
.slider__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; border: 0; font-size: 1.05rem; }
.slider__new { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.slider__view { position: relative; }
.slider__track { --sh: 220px; list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
/* 高さだけそろえ、横幅は画像の比率なり（切り取らない）。横にスクロールして見る */
.slider__slide { flex: 0 0 auto; height: var(--sh); scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; background: #f3e6ec; }
.slider__slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.slider__slide img { display: block; height: 100%; width: auto; max-width: none; }
.slider__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.slider__cap .chip { display: block; width: fit-content; margin: 0; }
.slider__nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.slider__btn { pointer-events: auto; width: 34px; height: 34px; margin: 0 2px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (min-width: 720px) {
  .slider__track { --sh: 320px; gap: 14px; }
  .slider__btn { width: 40px; height: 40px; margin: 0 10px; }
}

/* 作品タイルの一覧は全ページ共通：スマホ2カラム・PC（720px以上）3カラム
   （TOPのカテゴリ・作品紹介一覧・カテゴリページ・関連作品・検索結果） */
.work-tiles-row--top, .work-tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; overflow: visible; padding: 4px 0 8px; list-style: none; margin: 0; }
.work-tiles-row--top .work-tile, .work-tiles-grid .work-tile { flex: none; min-width: 0; }
.work-tiles-grid--2 { margin-top: 16px; }
@media (min-width: 720px) {
  .work-tiles-row--top, .work-tiles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; } /* PCは4列（2026-10-27。それまで3列） */
}


/* TOPの見出し（新着・漫画・ボイス・ゲーム）を同じデザインに：左に丸いバッジ＋見出し */
.sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; border: 0; font-size: 1.05rem; }
.sec-badge { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.top-group > h2.sec-title { margin: 0 0 6px; }
.sec-badge--pick { background: #f5a524; }
.site-footer .credit { font-size: .75rem; color: var(--muted); }

/* FANZAのセール速報：DMMの画像は切り抜き禁止なので、枠に収めて全体を表示する */
.card--fanza .card__img img { object-fit: contain; background: #f3eef1; }
.card__soon { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: #e0306e; color: #fff; font-size: .7rem; font-weight: 800; }
.sec-badge--sale { background: #e0306e; }
.sale-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.gone-note { margin: 12px 0; padding: 10px 14px; border-radius: 8px; background: #fff3f6; border: 1px solid #f3c1d1; color: #a0204e; font-weight: 700; font-size: .9rem; }
/* タイル：サムネイル中心。カテゴリは画像の左下に重ね、タイトルは1行で省略（docs/spec/sale-site-site.md） */
.work-tile__img { position: relative; }
.chip--on-img { position: absolute; left: 6px; bottom: 6px; top: auto; z-index: 1; margin: 0; box-shadow: 0 1px 4px #0004; }
.work-tile__body, .work-tiles-row--top .work-tile__body { padding: 7px 9px 8px; }
.work-tile__title, .work-tiles-row--top .work-tile__title, .related .work-tile__title { margin: 0; font-size: .82rem; line-height: 1.5; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.work-tile__meta { display: none; }
/* タイルの余白を詰める（スマホ 縦10px・横8px／PC 縦16px・横12px） */
.work-tiles-row--top, .work-tiles-grid { gap: 10px 8px; padding: 2px 0 4px; }
.work-tile__body, .work-tiles-row--top .work-tile__body { padding: 5px 8px 6px; }
@media (min-width: 720px) { .work-tiles-row--top, .work-tiles-grid { gap: 16px 12px; } }
/* まとめ（DLsite・FANZA横断）：作品ごとの購入ボタン（docs/spec/sale-site-site.md の「まとめ」）。.work-tile a の共通指定を打ち消す */
.work-tile.hub-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.work-tile.hub-tile > a, .work-tile.hub-tile > .hub-tile__head { display: block; height: auto; border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--text); text-decoration: none; transform: none; }
.work-tile--fanza .work-tile__img img { object-fit: contain; background: #f3eef1; }
.hub-tile__buy { display: flex; flex-direction: column; gap: 6px; padding: 2px 8px 8px; margin-top: auto; }
.work-tile.hub-tile .buy { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; height: auto; padding: 6px 10px; border: 0; border-radius: 8px; box-shadow: none; font-size: .78rem; font-weight: 700; color: #fff; text-decoration: none; transform: none; }
.work-tile.hub-tile .buy b { font-size: .82rem; color: #fff; }
.work-tile.hub-tile .buy--dlsite { background: var(--buy-dlsite); } .work-tile.hub-tile .buy--fanza { background: var(--buy-fanza); }
.work-tile.hub-tile .buy:hover { opacity: .9; }
.buy__best { flex: none; padding: 0 6px; border-radius: 999px; background: #ffd60a; color: #222; font-size: .65rem; line-height: 1.6; }
.work-tile.hub-tile .buy > span:not(.buy__best) { flex: 1; }
.work-tile.hub-tile .hub-tile__read { display: block; height: auto; padding: 2px 0 0; border: 0; box-shadow: none; background: none; font-size: .75rem; text-align: center; color: var(--accent); }
.work-tile.hub-tile .buy { white-space: nowrap; padding: 6px 8px; gap: 4px; font-size: .74rem; } .work-tile.hub-tile .buy b { font-size: .78rem; }
/* 作品カードの画像：既定は青年コミックの表紙と同じ縦長（317:450）で、グレーの余白を出さず枠いっぱいに表示（cover）。
   ボイス・ASMR・同人・スマホゲームは、枠の高さをそろえた横長（4:3）で、画像をそのままの比率で全体表示（余白はグレー）（docs/spec/sale-site-site.md） */
.work-tile__img, .related .work-tile__img { position: relative; aspect-ratio: 317 / 450; height: auto; background: #e6e6ea; overflow: hidden; }
.work-tile__img img, .related .work-tile__img img, .work-tile--fanza .work-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: transparent; }
.work-tile--voice .work-tile__img, .related .work-tile--voice .work-tile__img,
.work-tile--doujin .work-tile__img, .related .work-tile--doujin .work-tile__img,
.work-tile--smartphone .work-tile__img, .related .work-tile--smartphone .work-tile__img { aspect-ratio: 4 / 3; }
.work-tile--voice .work-tile__img img, .related .work-tile--voice .work-tile__img img,
.work-tile--doujin .work-tile__img img, .related .work-tile--doujin .work-tile__img img,
.work-tile--smartphone .work-tile__img img, .related .work-tile--smartphone .work-tile__img img { object-fit: contain; object-position: center; }

/* ライブチャット広告（Stripchat）。未設定の間は出ない（docs/spec/sale-site-ads.md） */
.live-ad { margin: 6px 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #fff0f6, #ffe3ef); text-align: center; }
.live-ad--article { margin-top: 8px; }
.live-ad__head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-weight: 800; font-size: .95rem; }
.live-ad__frame { height: 260px; margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #222; }
.live-ad__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-ad__btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 999px; background: #e0245e; color: #fff; font-weight: 800; text-decoration: none; }
.live-ad__btn:hover { background: #c41a4f; color: #fff; }
.live-ad__note { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
@media (min-width: 720px) { .live-ad__frame { height: 320px; } }

.dl-banners { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 14px 0; }
.dl-banners img { display: block; max-width: 100%; height: auto; }

/* pixiv作品（公式の埋め込み） */
.px-embed{display:flex;justify-content:center;margin:14px 0}.px-embed iframe{width:100%;max-width:480px;height:480px;border:0;border-radius:12px;background:#0002}
.px-meta{text-align:center}.share{display:flex;gap:8px;align-items:center;justify-content:center;margin:10px 0}.share a{padding:4px 14px;border:1px solid var(--line);border-radius:999px;text-decoration:none}
.px-img{margin:14px 0;text-align:center}.px-img img{max-width:100%;height:auto;border-radius:12px}

.px-au-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.px-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent, #e0407a); background: var(--surface); }
.px-ico:hover { background: var(--accent, #e0407a); color: #fff; }
/* 作者の販売ページ（Patreon・BOOTH・FANZA）。作者の横の小さなラベル */
.px-shop { display: inline-block; padding: 2px 9px; border-radius: 6px; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.5; text-decoration: none; letter-spacing: .02em; }
.work-info a.px-shop, .work-info a.px-shop:hover { color: #fff; }
.px-shop:hover { opacity: .85; }
.px-shop--patreon { background: #000; }
.px-shop--booth { background: #fc4d50; }
.px-shop--fanza { background: var(--fanza); }

/* 作品ページの右下固定ボタン（スクロールで出る） */
.dl-fixed { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: 90%; max-width: 560px; box-sizing: border-box; z-index: 40; display: none; gap: 8px; }
.dl-fixed.is-on { display: flex; }
.dl-fixed__btn { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px #0004; }
.dl-fixed__btn--dlsite { background: var(--buy-dlsite); } .dl-fixed__btn--fanza { background: var(--buy-fanza); }
.dl-fixed__btn { gap: 8px; padding: 6px 12px 6px 6px; line-height: 1.25; } .dl-fixed__txt { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; } .dl-fixed__img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; } .dl-fixed__name { font-weight: 700; } .dl-fixed__price { font-size: .84rem; font-weight: 700; opacity: .95; } /* 価格は下の行 */
.dl-go__price { margin-left: 8px; padding-left: 8px; border-left: 1px solid #ffffff80; font-size: .92em; font-weight: 700; } /* 購入ボタンの価格（ラベルの右） */
body:has(.dl-fixed.is-on) { padding-bottom: 76px; }
/* TOPのイラスト画像：入れ替えのフェード */
.top-px__grid .work-tile__img img { transition: opacity .25s ease; }
.top-px__grid .work-tile__img img.px-fade { opacity: 0; }

/* 作者・サークルのまとめページ：画像を大きく、PCは4列で、たくさん並べる */
@media (min-width: 720px) { .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; } }
/* まとめの一覧は、PC は4列のまま（広告を4作品ごとに入れるので、5列だと行が余って段落ちする）。広い画面では間を少し広げる */
@media (min-width: 1100px) { .hub-grid { gap: 22px 18px; } }
/* 画像は枠いっぱいに（グレーの余白を出さない）。文字・バッジ・ボタンは真ん中揃え。「紹介記事を読む」はボタン風 */
.hub-grid .work-tile__img, .hub-grid .work-tile--voice .work-tile__img, .hub-grid .work-tile--doujin .work-tile__img, .hub-grid .work-tile--smartphone .work-tile__img { aspect-ratio: auto; height: auto; background: none; overflow: visible; }
.hub-grid .work-tile__img img, .hub-grid .work-tile--voice .work-tile__img img, .hub-grid .work-tile--doujin .work-tile__img img, .hub-grid .work-tile--smartphone .work-tile__img img { position: static; display: block; width: 100%; height: auto; margin: 0 auto; object-fit: contain; object-position: center; }
.hub-grid .work-tile__body { text-align: center; }
.hub-grid .work-tile__title { text-align: center; }
.hub-grid .chip { margin-left: auto; margin-right: auto; }
.work-tile.hub-tile .hub-tile__read { display: block; margin: 2px 8px 8px; padding: 8px 10px; border: 1.5px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); font-weight: 700; font-size: .8rem; text-align: center; text-decoration: none; }
.work-tile.hub-tile .hub-tile__read:hover { background: var(--accent); color: #fff; }

/* まとめページ：値段はタイトルの下に飾りなしで。購入ボタンは「DLsiteはこちら」 */
.hub-grid .hub-tile__price { margin: 4px 0 0; font-size: .82rem; font-weight: 400; color: var(--text); text-align: center; }
.work-tile.hub-tile .buy { justify-content: center; gap: 8px; text-align: center; }
.work-tile.hub-tile .buy > span:not(.buy__best) { flex: 0 1 auto; }

/* まとめページ（最終）：画像の枠は全部同じ高さ・グレー背景は残す（画像は枠の中に全体を収める）。値段は左揃え。ボタン2つは同じ高さ・幅・文字の大きさ */
.hub-grid .work-tile__img, .hub-grid .work-tile--voice .work-tile__img, .hub-grid .work-tile--doujin .work-tile__img, .hub-grid .work-tile--smartphone .work-tile__img { position: relative; aspect-ratio: 3 / 4; height: auto; background: #e6e6ea; overflow: hidden; }
.hub-grid .work-tile__img img, .hub-grid .work-tile--voice .work-tile__img img, .hub-grid .work-tile--doujin .work-tile__img img, .hub-grid .work-tile--smartphone .work-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; background: transparent; }
.hub-grid .hub-tile__price { text-align: left; }
.work-tile.hub-tile .hub-tile__buy { gap: 6px; padding: 2px 8px 8px; }
.work-tile.hub-tile .hub-tile__buy .buy, .work-tile.hub-tile .hub-tile__buy .hub-tile__read { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; margin: 0; padding: 6px 8px; border: 1.5px solid transparent; border-radius: 8px; font-size: .8rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; }
.work-tile.hub-tile .hub-tile__buy .buy b, .work-tile.hub-tile .hub-tile__buy .buy span { font-size: inherit; }
.work-tile.hub-tile .hub-tile__buy .hub-tile__read { border-color: var(--accent); }

/* 記事の更新日：タイトルの下に小さく */
.guide-updated { margin: -4px 0 10px; font-size: .75rem; color: var(--muted); }

/* PVランキング：1〜3位は王冠つきで大きく1列（幅80%）、4〜9位は小さく3列×2段 */
.rank-sec { margin: 22px 0 8px; }
/* メイン3区分（妄想画像・妄想動画・妄想カタログ）：見出し全体が大きなボタン */
.rank-sec--main { margin: 28px 0 12px; }
.rank-hero { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; }
.rank-hero::before, .rank-hero::after { content: none; }
.rank-hero a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, #ec4079, #f77a9c); color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(236, 64, 121, .3); }
.rank-hero a:hover, .rank-hero a:focus-visible { filter: brightness(1.06); }
.rank-hero__t { font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; }
.rank-hero__go { flex: none; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #ec4079; font-size: .85rem; font-weight: 700; }
.rank-sec--main .ef-grid { margin-top: 0; }
.rank-grid > li { position: relative; min-width: 0; }
.rank-grid .rank-no { pointer-events: none; }
/* 5〜10位：小さめの3列×2段（スマホ・PC共通） */
.ef-grid.rank-grid--sub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .ef-grid.rank-grid--sub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 64%; margin-left: auto; margin-right: auto; } } /* PC：1〜4位（4列）より小さく、中央に */
.rank-grid--sub .work-tile__title, .rank-grid--sub .ef-tile__title { font-size: .72rem; line-height: 1.35; }
.rank-grid--sub .work-tile__body { padding: 6px 6px 8px; }
.rank-grid--sub .chip { font-size: .6rem; padding: 1px 6px; }
/* ④〜⑥：1行10作品の横スクロール */
.rank-sec--row { margin: 22px 0 8px; }
.rank-row .work-tile { position: relative; flex: 0 0 132px; width: 132px; min-width: 0; }
.rank-row .work-tile__title { font-size: .72rem; line-height: 1.35; }
.rank-row .work-tile__body { padding: 6px 6px 8px; }
.rank-row .chip { font-size: .6rem; padding: 1px 6px; }
@media (min-width: 720px) { .rank-row .work-tile { flex-basis: 160px; width: 160px; } }
.rank-no { position: absolute; top: 6px; left: 6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(40, 20, 40, .82); color: #fff; font-weight: 800; font-size: .75rem; line-height: 22px; text-align: center; }
.rank-no--crown { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 8px; font-size: 1.05rem; line-height: 1; }
.rank-no--crown svg { width: 22px; height: 22px; }
.rank-no--1 svg { fill: #ffc72c; } .rank-no--2 svg { fill: #cfd6e0; } .rank-no--3 svg { fill: #d98a46; }

.btn--sm { padding: 5px 12px; font-size: .82rem; border-radius: 6px; }
.hub-btn { margin: 10px 0 0; text-align: right; }
.chip--other { background: #7a8594; }
.tile-date { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin: 3px 0 0; font-size: .68rem; color: var(--muted, #8a7a85); line-height: 1.2; }
.tile-date svg { flex: none; }
.tile-date, .tile-date time { white-space: nowrap; }
.tile-date .d-short { display: none; }
/* スマホ：タイルが狭いので、日付は「月/日」の1行にする（年は記事ページで見られる） */
@media (max-width: 600px) {
  .tile-date .d-full { display: none; }
  .tile-date .d-short { display: inline; }
  .tile-date { font-size: .64rem; gap: 2px; }
  .tile-date svg { width: 10px; height: 10px; }
}
.hub-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.hub-profile__name { font-weight: 700; }
.dti-ad { margin: 6px auto; text-align: center; max-width: 100%; overflow: hidden; }
.dti-ad iframe { max-width: 100%; border: 0; }
.dti-ad--pc { display: none; }
@media (min-width: 768px) { .dti-ad--pc { display: block; } }

.circle-grid .work-tile__img img { transition: opacity .45s; }
.circle-grid .work-tile__img img.px-fade { opacity: 0; }


.ad-mid{margin:20px 0;text-align:center}
/* TOPのカテゴリ別：横1列に3作品（スマホ・PCとも3列×1行） */
@media (max-width: 719px) { .top-pv__grid .work-tile:nth-child(n+7), .top-moso .work-tile:nth-child(n+5), .work-tiles-row--one .work-tile:nth-child(n+4) { display: none; } } /* スマホの掲載数（人気6・妄想設定4・カテゴリ別3）。PCは多く出す（8・8・4） */
.work-tiles-row--top.work-tiles-row--one { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .work-tiles-row--top.work-tiles-row--one { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.work-tiles-row--one .work-tile__title { font-size: .72rem; }
/* 一覧のタイルの途中に入れる広告は、グリッドの横いっぱいに */
.ad-mid--tile { grid-column: 1 / -1; list-style: none; display: flex; justify-content: center; min-width: 0; }
.ad-mid--tile > .dl-ad { flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; } /* DLsite の作品広告は並びの幅いっぱいに（中身の幅で横に広がらない） */
/* ページ送り（一覧は1ページ20作品まで） */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 22px 0 8px; }
.pager a, .pager__cur, .pager__gap { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .9rem; box-sizing: border-box; }
.pager a { border: 1px solid var(--line, #3a3340); text-decoration: none; }
.pager__cur { background: var(--accent, #ff5c8a); color: #fff; font-weight: 700; }
.pager__gap { color: #888; min-width: 0; padding: 0 2px; }
/* AI妄想動画（/ai-video/）：カード＝efake の埋め込みプレーヤー。スマホ2列・PC4列 */
.ef-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .ef-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.ef-tile .ef-open { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.ef-tile .ef-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 高さは 9:16 でそろえ、サムネイルは切らずに全体を出す。足りないところは同じサムネイルをぼかして敷く */
.ef-tile .ef-open img.ef-thumb { position: relative; object-fit: contain; }
.ef-tile .ef-open img.ef-bg { position: absolute; inset: 0; filter: blur(12px) saturate(1.1); transform: scale(1.2); opacity: .85; pointer-events: none; }
.ef-tile .ef-open:hover img.ef-thumb { opacity: .85; }
.ef-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 52px; text-align: center; padding-left: 3px; box-sizing: border-box; }
.ef-pop[hidden] { display: none; }
.ef-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.ef-pop__back { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.ef-pop__panel { position: relative; display: flex; flex-direction: column; width: min(420px, calc((92vh - 56px) * 9 / 16)); width: min(420px, calc((92dvh - 56px) * 9 / 16)); height: 92vh; height: 92dvh; background: #000; border-radius: 14px; overflow: hidden; }
.ef-pop__close { position: absolute; top: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.ef-pop__box { position: relative; flex: 1 1 auto; min-height: 0; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ef-pop__box iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
/* プレーヤーの外の空き：その動画のサムネイルをぼかして敷く（大きさは ef-popup.js が動画の縦横比で決める） */
.ef-pop__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) saturate(1.1); transform: scale(1.15); opacity: .8; pointer-events: none; }
.ef-pop__close--bar { position: static; flex: 0 0 auto; width: 100%; height: 56px; padding-bottom: env(safe-area-inset-bottom); height: calc(56px + env(safe-area-inset-bottom)); border-radius: 0; background: #1c1824; color: #fff; font-size: 1rem; font-weight: 700; }
body.ef-lock { overflow: hidden; }
@media (max-width: 719px) { .ef-pop__panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; } }
/* ヘッダー：下へスクロールすると隠し、上へ戻すと出す（header-hide.js が body に hd-hide を付ける）。カテゴリナビはその分上へ詰める */
.site-header { transition: transform .25s ease; }
body.hd-hide .site-header { transform: translateY(-100%); }
body.hd-hide .cat-nav { top: 0; }
/* pixiv の画像の枚数（一覧のカードの右下・記事の画像の上） */
.work-tile__img { position: relative; }
.px-count { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.4; pointer-events: none; }
.px-total { margin: 0 0 8px; text-align: right; }
.px-total span { display: inline-block; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: .78rem; line-height: 1.5; opacity: .75; }
/* pixiv の「もっと見る」（20枚ずつ） */
.px-img[hidden] { display: none; }
.px-more { display: block; margin: 12px auto 20px; padding: 10px 28px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
.px-more:hover { opacity: .75; }
/* LP型の作品紹介（front matter に lp: true。2026-10-29 テスト）：表紙とサンプル画像を余白なく並べる。スマホは画面の端から端まで */
.lp-samples { margin: 18px 0 26px; }
.lp-img { display: block; line-height: 0; }
.lp-img img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.work-hero--lp .work-img img { border-radius: 0; border: 0; box-shadow: none; }
@media (min-width: 721px) { .work-hero--lp .work-img { max-width: 560px; margin-left: auto; margin-right: auto; } } /* 表紙（DLsite は 560×420 や 317×450 まで）を横幅いっぱいに引き伸ばさない。引き伸ばすとぼやける */
@media (max-width: 720px) { .guide--lp .lp-samples, .guide--lp .work-hero--lp .work-img { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } }
/* 作品カード：同じ行のカードは高さがそろい、画像枠がその高さまで伸びる。サムネイルは上下中央、余白は同じサムネイルのぼかし（.work-tile__bg） */
.work-tile > a > .work-tile__img { flex: 1 0 auto; }
.work-tile > a > .work-tile__body { flex: none; }
.work-tile .work-tile__img img.work-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: blur(12px) saturate(1.1); transform: scale(1.2); opacity: .85; pointer-events: none; }
.work-tile .work-tile__img img:not(.work-tile__bg) { z-index: 1; }
.work-tile .chip--on-img { z-index: 2; }
/* TOPの作者・サークル：1行3列（スマホもPCも） */
.work-tiles-grid.circle-grid--top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.circle-grid--top .work-tile__body { padding: 4px 6px 5px; }
.circle-grid--top .work-tile__title { font-size: .72rem; }
/* TOPの妄想動画：スマホ2列×2行（5件目以降は隠す）・PC4列×2行（9件目以降は隠す）。ef-random.js が開くたびに並べ替える */
.top-ef__grid, .top-ef .ef-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.top-ef__grid > li:nth-child(n+5) { display: none; }
@media (min-width: 720px) {
  .top-ef__grid, .top-ef .ef-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top-ef__grid > li:nth-child(n+5):nth-child(-n+8) { display: list-item; }
}
/* スマホのスワイプでナビを切り替えたときだけ、横にすべらせる（nav-swipe.js が種類 next／prev を付ける。それ以外の移動では動かさない） */
@media (max-width: 719px) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .cat-nav { view-transition-name: cat-nav; }
}
/* ヘッダーとナビは動かさない（新しいページのものをそのまま出す。すべるのはその下の中身だけ） */
::view-transition-group(site-header), ::view-transition-group(cat-nav), ::view-transition-old(site-header), ::view-transition-new(site-header), ::view-transition-old(cat-nav), ::view-transition-new(cat-nav) { animation: none; }
::view-transition-old(site-header), ::view-transition-old(cat-nav) { display: none; }
@keyframes nav-out-l { to { transform: translateX(-30%); opacity: 0; } }
@keyframes nav-out-r { to { transform: translateX(30%); opacity: 0; } }
@keyframes nav-in-l { from { transform: translateX(30%); opacity: 0; } }
@keyframes nav-in-r { from { transform: translateX(-30%); opacity: 0; } }
html:active-view-transition-type(next)::view-transition-old(root) { animation: nav-out-l .22s ease-in both; }
html:active-view-transition-type(next)::view-transition-new(root) { animation: nav-in-l .22s ease-out both; }
html:active-view-transition-type(prev)::view-transition-old(root) { animation: nav-out-r .22s ease-in both; }
html:active-view-transition-type(prev)::view-transition-new(root) { animation: nav-in-r .22s ease-out both; }
/* DLsite広告（4カラム・グリッド・バナー）。docs/spec/sale-site-ads.md「DLsite広告」 */
.dl-ad { margin: 6px 0; } /* 白い背景・枠線は付けない */
.dl-ad__view { position: relative; }
.dl-ad__track { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-ad__item { min-width: 0; }
.dl-ad__item a { display: block; color: var(--text); text-decoration: none; }
.dl-ad__img { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: 8px; overflow: hidden; background: #f3eef1; }
.dl-ad__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-ad__img img.dl-ad__bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; filter: blur(12px) saturate(1.1); transform: scale(1.2); opacity: .85; pointer-events: none; }
.dl-ad__off { position: absolute; left: 4px; top: 4px; padding: 1px 7px; border-radius: 999px; background: #e0245e; color: #fff; font-size: .68rem; font-weight: 800; }
.dl-ad__title { display: block; margin-top: 4px; font-size: .74rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ad__item a:hover .dl-ad__title { text-decoration: underline; }
/* 4カラム広告（DLsite・FANZA・関連広告）：1行に並べる。PC は4つ・スマホは3つ */
.dl-ad--carousel .dl-ad__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dl-ad--carousel .dl-ad__item:nth-child(n+4) { display: none; }
.dl-ad--carousel .dl-ad__title { font-size: .66rem; }
.dl-ad--two .dl-ad__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-ad--two .dl-ad__item:nth-child(n+5), .dl-ad--one .dl-ad__item:nth-child(n+2) { display: none; } /* 2カラム：スマホは2列（2×2段）・PCは4列 */
.dl-ad--one .dl-ad__item a { display: flex; align-items: center; gap: 10px; }
.dl-ad--one .dl-ad__img { flex: 0 0 40%; }
.dl-ad--one .dl-ad__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) { .dl-ad--two .dl-ad__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .dl-ad--carousel .dl-ad__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .dl-ad--carousel .dl-ad__item:nth-child(4) { display: block; } .dl-ad--carousel .dl-ad__title { font-size: .74rem; } }
/* 2×2 グリッド：先頭の4作品 */
/* 横長バナー：先頭の1作品。画像は左、タイトルは右 */

/* 作品紹介：お得の1行（購入ボタンのすぐ上）と、記事の最下部の「作品のデータ」 */
.work-deal { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.work-deal span { padding: 3px 10px; border-radius: 999px; background: #fff1f5; color: #c2185b; font-size: .8rem; font-weight: 700; border: 1px solid #f8bbd0; }

/* エロ画像の一覧：分類のタブ（すべて｜少年マンガ｜アニメ｜ゲーム｜VTuber｜その他）。スマホは横スクロール */
.px-groups { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.px-groups::-webkit-scrollbar { display: none; }
.px-group { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.px-group span { font-size: .72rem; font-weight: 400; opacity: .7; }
.px-group.on { background: #ec4079; border-color: #ec4079; color: #fff; }
.px-group:hover { border-color: #ec4079; }

/* タグで探す（エロ画像の一覧）と、記事のタグのリンク。押すと検索の小窓が開く */
.px-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.px-tags__h { font-size: .78rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.px-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff1f5; border: 1px solid #f8bbd0; color: #c2185b; font-size: .78rem; text-decoration: none; }
.px-tag::before { content: "#"; opacity: .6; }
.px-tag:hover { background: #ec4079; color: #fff; }
.tag-link { color: inherit; text-decoration: underline; text-decoration-color: #f8bbd0; text-underline-offset: 2px; }
.px-tags__all { font-size: .78rem; font-weight: 700; color: #c2185b; text-decoration: none; margin-left: 4px; }
.px-tags--all .px-tag span { margin-left: 4px; font-size: .7rem; opacity: .7; }

/* 作品のデータ（記事の最下部）。ほかの節と同じ見出しで、箱では囲まない。カード・表は作品情報の表と同じ線と角の丸み */
.work-data { margin: 40px 0 0; padding-top: 22px; border-top: 1px dashed var(--line); }
.wd-head { text-align: center; margin: 0 0 16px; }
.wd-eyebrow { display: block; font-size: .68rem; letter-spacing: .2em; font-weight: 800; color: var(--accent); }
.work-data .wd-title { margin: 2px 0 0; padding: 0; border: 0; font-size: 1.15rem; font-weight: 800; }
.work-data .wd-title::after { content: ""; display: block; width: 36px; height: 3px; margin: 8px auto 0; border-radius: 3px; background: var(--accent); }
.work-data .wd-h { margin: 22px 0 10px; padding: 0; border: 0; font-size: .9rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.wd-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wd-price { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--buy-dlsite); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px #ec40790f; color: var(--text); text-decoration: none; }
.wd-price--fanza { border-left-color: var(--buy-fanza); }
a.wd-price:hover { border-color: var(--accent); }
.wd-price__shop { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.wd-price__now { font-size: 1.35rem; font-weight: 800; color: var(--accent-2); }
.wd-price__was { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.wd-price__end { font-size: .74rem; font-weight: 700; color: var(--fanza); }
.wd-best { padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; }
.wd-chart { margin: 0; padding: 10px 8px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px #ec40790f; }
.wd-chart svg { display: block; width: 100%; height: auto; }
.wd-grid { stroke: var(--line); stroke-width: 1; }
.wd-axis { fill: var(--muted); font-size: 9px; }
.wd-line { stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke: var(--accent); }
.wd-dot { fill: #fff; stroke-width: 2; stroke: var(--accent); }
.wd-line.is-dlsite, .wd-dot.is-dlsite { stroke: var(--buy-dlsite); }
.wd-line.is-fanza, .wd-dot.is-fanza { stroke: var(--buy-fanza); }
.wd-line.is-day, .wd-dot.is-day { stroke: var(--accent-2); }
.wd-line.is-week, .wd-dot.is-week { stroke: var(--accent); }
.wd-legend { display: flex; gap: 12px; justify-content: center; margin: 4px 0 0; font-size: .74rem; color: var(--muted); }
.wd-legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 4px; vertical-align: middle; border-radius: 2px; background: var(--accent); }
.wd-legend .is-day::before { background: var(--accent-2); }
.wd-legend .is-fanza::before { background: var(--buy-fanza); }
.wd-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.wd-cards { list-style: none; margin: 0; padding: 2px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 140px); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); }
.wd-cards > li { scroll-snap-align: start; }
.wd-cards a { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; box-shadow: 0 2px 10px #ec40790f; }
.wd-cards a:hover { border-color: var(--accent); }
.wd-cards__img { display: block; aspect-ratio: 4 / 3; background: #f3eef1; }
.wd-cards__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wd-cards__t { padding: 6px 8px 8px; font-size: .74rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-cards__pr { position: absolute; top: 4px; left: 4px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800; }

/* エロ動画のカード：タイトルは画像の下のほうに、暗めのグラデーションの上に白い文字で重ねる（2行まで） */
.ef-tile .ef-open .ef-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 8px 8px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.78)); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1.4; text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none; }
.px-tags__more { display: contents; }
.px-tags__more > summary { list-style: none; cursor: pointer; display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px dashed #f8bbd0; color: #c2185b; font-size: .78rem; }
.px-tags__more > summary::-webkit-details-marker { display: none; }
.px-tags__more[open] > summary { background: #fff1f5; }
.px-tags__rest { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin-top: 2px; }
.px-tags--inline { margin: 0; gap: 5px; }
.px-tags--inline .px-tag { font-size: .74rem; padding: 2px 9px; }
/* フッターの相互リンクの枠（最大10サイト・横に並べて折り返す） */
.top-mrss { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 12px; }
.top-mrss__h { margin: 0 0 4px; padding: 0; border: 0; font-size: .85rem; }
.top-mrss__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.top-mrss__tabs button { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .75rem; line-height: 1.5; cursor: pointer; }
.top-mrss__tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.top-mrss__list { list-style: none; margin: 0; padding: 0; }
.top-mrss__list li { padding: 4px 0; border-top: 1px dashed var(--line); font-size: .8rem; line-height: 1.5; }
.top-mrss__list li:first-child { border-top: 0; }
.top-mrss__src { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 6px; background: var(--line); font-size: .7rem; }
.footer-mutual { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 12px; }
.footer-mutual__h { flex-basis: 100%; font-weight: 700; }
/* 相互リンクのページ */
.link-info { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: .9rem; }
.link-info th, .link-info td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.link-info th { width: 7em; background: #fff1f5; white-space: nowrap; }
.link-code { overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .8rem; }
/* 相互リンクの申し込みフォーム */
.link-form { display: grid; gap: 12px; max-width: 460px; margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.link-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; }
.link-form input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.link-form__go { padding: 10px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem; cursor: pointer; }
.link-form__go:disabled { opacity: .5; cursor: default; }
.link-form__msg { margin: 0; font-size: .85rem; }
.link-form__msg.is-ok { color: #2e7d32; }
.link-form__msg.is-ng { color: #c62828; }

/* ===== 余白の詰め（全体。ブロック間は4〜8px前後に） ===== */
.container { padding: 8px 12px; }
h1 { margin: 8px 0 4px; }
h2, .guide h2, .guide[class*="guide--"] h2 { margin: 8px 0 6px; }
.guide > h2:first-of-type { margin-top: 8px; }
.guide h3 { margin: 8px 0 4px; }
.guide p { margin: 0 0 8px; }
.guide .lead, .guide[class*="guide--"] .lead { margin: 0 0 6px; }
.work-hero, .guide--a .work-hero, .guide--b .work-hero, .guide--c .work-hero { margin: 8px 0 6px; gap: 12px; }
.work-catch, .work-ranks { margin-bottom: 6px; }
.work-card { margin: 8px 0; }
.work-thumbs { margin: 8px 0; gap: 8px; }
.work-cta, .guide[class*="guide--"] .work-cta { margin: 8px 0 4px; }
.related, .guide[class*="guide--"] .related { margin: 8px 0 0; }
.work-data { margin: 8px 0 0; padding-top: 8px; }
.work-data .wd-h { margin: 8px 0 6px; }
.top-pv, .top-px, .top-group { margin: 8px 0 4px; }
.top-cat h3 { margin: 8px 0 4px; }
.related-grid { margin: 6px 0; }
.top-mrss { margin: 8px 0; }
.work-tiles-grid { gap: 8px; }
.work-tiles-grid--2 { margin-top: 8px; }
.work-tiles-row { gap: 8px; padding-bottom: 6px; }
.px-embed { margin: 6px 0; }
.px-img { margin: 6px 0; }
.px-more { margin: 8px auto; }
.px-groups { margin: 4px 0 8px; }
.px-tags { margin: 0 0 8px; }
.pager { margin: 8px 0 4px; }
.site-footer { margin-top: 16px; padding: 12px; }
.site-footer .footer-links { margin: 6px 0; }
