:root {
  --bg: #fffafc; --surface: #ffffff; --line: #f4d9e3; --text: #3b2f37; --muted: #8b7682;
  --accent: #ec4079; --accent-2: #d9770a; --fanza: #e8384f; --dlsite: #1f6fd1;
  --soft: #fff0f5; --shadow: 0 6px 20px #ec407922;
  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); }
.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); }

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; }
.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-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: flex; gap: 16px; align-items: center; margin: 18px 0 26px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.work-card__img { flex: 0 0 140px; }
.work-card__img img { width: 100%; height: auto; border-radius: 8px; display: block; }
.work-card__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.work-card__body strong { line-height: 1.5; }
.work-card__body span { font-size: .85rem; color: var(--muted); }

.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; padding: 22px 18px; text-align: center; border-radius: 16px; border: 1px solid #f4b6cc; background: linear-gradient(160deg, #fff0f5, #ffe3ee); }
.work-cta p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.work-cta .work-link a { display: inline-block; padding: 14px 36px; }

.related { margin: 44px 0 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-card { flex-direction: column; align-items: flex-start; }
  .work-card__img { flex-basis: auto; width: 70%; }
  .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: 18px 0 0; text-align: center; }
.site-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.site-links a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s; }
.site-links a:hover { border-color: var(--accent); }
.site-links strong { color: var(--accent); }
.site-links a > span { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ===== ヘッダー（ピンクの帯・中央にタイトル・左にメニュー・右に検索） ===== */
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; max-width: none; margin: 0; padding: 0; height: 50px; 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 { margin: 0; padding: 3px 12px; text-align: center; font-size: .72rem; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); }
.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: #fff8fb; 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: 50px; z-index: 40; background: var(--soft); border-bottom: 1px solid var(--line); }
.cat-nav ul { list-style: none; margin: 0; padding: 8px 10px 0; 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 a { display: block; padding: 10px 16px; min-height: 44px; box-sizing: border-box; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; 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__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 30px; }
.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; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px #ec40790f; }
.guide .trial-viewer h2, .trial-viewer h2 { margin: 0 0 10px; padding-top: 0; font-size: 1.1rem; }
.trial-viewer__frame { width: 100%; max-width: 560px; margin: 0 auto; height: min(78vh, 760px); background: #222; border-radius: 10px; overflow: hidden; }
.trial-viewer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.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の大見出し（同人・青年コミック・ボイス・ゲーム）とカテゴリの小見出し */
.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(3, minmax(0, 1fr)); gap: 28px 20px; }
}


/* 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; }
