/* 同人ナビ 自動化：作品カード（スマホファースト） */
.dnfa-list { --dnfa-red: #d7263d; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 1.5em 0; }
.dnfa-card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; align-items: start; }
.dnfa-thumb { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #f3f3f3; line-height: 0; }
.dnfa-thumb img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.dnfa-off { position: absolute; top: 6px; left: 6px; background: var(--dnfa-red); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; padding: 6px 7px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.dnfa-off small { font-size: 10px; margin-left: 1px; }
.dnfa-rank { position: absolute; bottom: 6px; left: 6px; z-index: 1; background: #222; color: #fff; font-weight: 800; font-size: 16px; line-height: 1; padding: 6px 8px; border-radius: 6px; }
.dnfa-rank small { font-size: 10px; margin-left: 1px; }
.dnfa-rank-1 { background: #c9a227; } .dnfa-rank-2 { background: #8f9aa3; } .dnfa-rank-3 { background: #a8693a; }
.dnfa-crown { margin-right: 2px; }
.dnfa-card .dnfa-body p, .article .dnfa-card .dnfa-body p { margin: 0 0 5px !important; line-height: 1.5 !important; }
.dnfa-card .dnfa-body p:last-child { margin-bottom: 0 !important; }
.dnfa-title { font-weight: 700; font-size: 15px; }
.dnfa-title a { color: #222; text-decoration: none; }
.dnfa-circle { font-size: 13px; color: #777; }
.dnfa-price { font-size: 14px; }
.dnfa-now { color: var(--dnfa-red); font-weight: 800; font-size: 17px; }
.dnfa-was { color: #999; font-size: 13px; }
.dnfa-tags span { display: inline-block; font-size: 12px; color: #555; background: #f5f5f5; border-radius: 999px; padding: 2px 9px; margin: 0 4px 4px 0; }
.dnfa-review { font-size: 13px; color: #555; }
.dnfa-review span { color: #f0a500; margin-right: 2px; }
.dnfa-end { display: inline-block; font-size: 12px; font-weight: 700; color: var(--dnfa-red); background: #fff5f6; border-radius: 4px; padding: 2px 8px; }
.dnfa-end.is-ended { color: #777; background: #f3f3f3; }
.dnfa-card .dnfa-body .dnfa-btns { margin-top: 8px !important; }
.dnfa-card .dnfa-body .dnfa-tags { margin-bottom: 2px !important; }
.dnfa-btn { display: block; text-align: center; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 10px 12px; text-decoration: none !important; }
.dnfa-btn-sample { background: var(--dnfa-red); color: #fff !important; box-shadow: 0 2px 0 #a81a2d; }
.dnfa-btn-sample:hover { opacity: .9; }
.dnfa-admin { font-size: 12px; }
.dnfa-admin a { color: #888; }

/* トップページ用：横スクロール */
.dnfa-type-scroll { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.dnfa-type-scroll .dnfa-card { flex: 0 0 160px; grid-template-columns: 1fr; scroll-snap-align: start; padding: 8px; }
.dnfa-type-scroll .dnfa-title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dnfa-type-scroll .dnfa-tags, .dnfa-type-scroll .dnfa-circle, .dnfa-type-scroll .dnfa-review { display: none; }

/* トップページのまとまり */
.dnfa-home-sec { margin: 0 0 2em; }
.dnfa-home-sec .dnfa-list { margin: .8em 0; }
.dnfa-dummy-note { font-size: 12px; color: #a35d00; background: #fff7e6; border-radius: 4px; padding: 4px 8px; margin: .5em 0 !important; }
.dnfa-more { text-align: right; margin: .3em 0 0 !important; font-size: 14px; font-weight: 700; }
.dnfa-more a { color: #d7263d; text-decoration: none; }

/* 記事内の補足 */
.dnfa-lead { background: #fff5f6; border-left: 5px solid #d7263d; padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1em 0; }
.dnfa-asof { font-size: 13px; color: #777; }
.dnfa-credit { font-size: 12px; color: #888; text-align: right; margin-top: 1.5em; }

/* タブレット以上：2列 */
/* リッチ化（v0.2.2） */
.dnfa-meta { font-size: 12px; color: #777; }
.dnfa-samples { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; line-height: 0; }
.dnfa-samples img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #f3f3f3; }
.dnfa-home-sec .dnfa-samples { display: none; }
.dnfa-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: .8em 0; }
.dnfa-stat { background: #fff5f6; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.dnfa-stat-label { font-size: 12px; color: #777; font-weight: 700; }
.dnfa-stat-num { font-size: 24px; font-weight: 800; color: #d7263d; line-height: 1.2; }
.dnfa-stat-num small { font-size: 12px; margin-left: 2px; color: #d7263d; }
.dnfa-stat-range { font-size: 18px; }
.dnfa-stat-note { font-size: 12px; color: #888; margin: .3em 0 0 !important; }
.dnfa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .6em 0 !important; }
.dnfa-chips a, .dnfa-chips span { display: inline-block; font-size: 14px; font-weight: 700; border: 1px solid #d7263d; color: #d7263d; border-radius: 999px; padding: 6px 14px; text-decoration: none; background: #fff; }
.dnfa-chips-static span { border-color: #e6e6e6; color: #444; font-weight: 600; }
.dnfa-chips span small { color: #999; margin-left: 4px; font-size: 11px; }

.dnfa-follow { border: 2px solid #1d1d1f; border-radius: 12px; padding: 14px 16px; margin: 2em 0 1em; text-align: center; background: #fff; }
.dnfa-follow p { margin: 0 0 6px !important; }
.dnfa-follow-lead { font-weight: 800; font-size: 16px; }
.dnfa-follow-sub { font-size: 13px; color: #666; }
.dnfa-follow-btn a { display: inline-block; background: #1d1d1f; color: #fff !important; font-weight: 700; border-radius: 999px; padding: 10px 22px; text-decoration: none !important; margin-top: 4px; }
.dnfa-follow-btn a:hover { opacity: .85; }

@media (min-width: 768px) {
  .dnfa-stat-grid { grid-template-columns: repeat(4, 1fr); }
	.dnfa-list:not(.dnfa-type-scroll) { grid-template-columns: 1fr 1fr; }
	.dnfa-card { grid-template-columns: 120px 1fr; }
}

/* Xの作品紹介から来たときに目立たせる */
.dnfa-card.dnfa-hit{outline:3px solid #d7263d;outline-offset:3px;border-radius:8px;animation:dnfa-hit 1.6s ease-out 2}
@keyframes dnfa-hit{0%{box-shadow:0 0 0 0 rgba(215,38,61,.45)}100%{box-shadow:0 0 0 14px rgba(215,38,61,0)}}

/* トップの売れ筋TOP10（コンパクト表示）にも「無料サンプルを見る」を小さめに出す（Xの作品紹介からの着地用） */
.dnfa-home-sec.dnfa-home-ranking .dnfa-card .dnfa-body .dnfa-btns { display: block; margin-top: 6px !important; }
.dnfa-home-sec.dnfa-home-ranking .dnfa-card .dnfa-btn { display: inline-block; width: auto; font-size: 13px; padding: 6px 14px; min-height: 0; line-height: 1.4; }

/* 性癖（人気タグ）の一覧 */
.dnfa-hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
@media (min-width: 768px) { .dnfa-hub { grid-template-columns: repeat(4, 1fr); } }
.dnfa-hub-tile { display: block; text-decoration: none !important; color: #222 !important; background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.dnfa-hub-tile:hover { border-color: #d7263d; }
.dnfa-hub-img { display: block; aspect-ratio: 4 / 3; background: #f3f3f3; overflow: hidden; }
.dnfa-hub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnfa-hub-name { display: block; font-weight: 700; font-size: 15px; padding: 8px 10px 0; color: #d7263d; }
.dnfa-hub-sub { display: block; font-size: 12px; color: #666; padding: 2px 10px 10px; }

/* ---- 見やすさ・押しやすさ（2026/12/03） ---- */
/* 作品リストの記事：目次と上のシェアボタンを出さず、作品をすぐ見せる */
.main:has(.entry-content .dnfa-asof) .entry-content .toc { display: none; }
.main:has(.entry-content .dnfa-asof) .sns-share:not(.ss-bottom) { display: none; }
/* 「もっと見る →」などのリンクを押しやすく */
.dnfa-more a { display: inline-block; padding: 12px 4px; }
/* トップの売れ筋TOP10のボタンを少し大きく */
.dnfa-home-sec.dnfa-home-ranking .dnfa-card .dnfa-btn { padding: 9px 18px; font-size: 14px; }
/* フッターメニューの行の高さを広げる */
.navi-footer .menu-footer .menu-item a { padding-top: 10px !important; padding-bottom: 10px !important; }

/* シリーズの順番の表 */
.dnfa-series-table th:first-child { width: 2.5em; text-align: center; }
.dnfa-series-table td { font-size: 14px; }
.dnfa-series-off { color: #d7263d; font-weight: 700; font-size: 12px; }
.dnfa-series-table td:nth-child(3), .dnfa-series-table td:nth-child(4) { white-space: nowrap; font-size: 13px; }

/* 編集部の3人 */
.dnfa-team-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
@media (min-width: 768px) { .dnfa-team-grid { grid-template-columns: repeat(3, 1fr); } }
.dnfa-team-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #eee; border-left: 4px solid var(--dnfa-c, #d7263d); border-radius: 10px; padding: 10px; }
@media (min-width: 768px) { .dnfa-team-card { flex-direction: column; align-items: stretch; text-align: center; border-left-width: 1px; border-top: 4px solid var(--dnfa-c, #d7263d); } }
.dnfa-team-img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #f3f3f3; }
@media (min-width: 768px) { .dnfa-team-img { width: 140px; height: 140px; flex-basis: auto; margin: 0 auto; } }
.dnfa-team-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.dnfa-team-body { display: block; }
.dnfa-team-role { display: block; font-size: 12px; color: var(--dnfa-c, #d7263d); font-weight: 700; }
.dnfa-team-name { display: block; font-size: 17px; font-weight: 700; color: #222; margin: 2px 0 4px; }
.dnfa-team-line { display: block; font-size: 14px; color: #444; line-height: 1.6; }
.dnfa-team-time { display: block; font-size: 12px; color: #888; margin-top: 4px; }
.dnfa-card .dnfa-body .dnfa-series-link { margin: 6px 0 0 !important; font-size: 13px; }
.dnfa-card .dnfa-series-link a { display: inline-block; padding: 6px 0; color: #2b3a67; font-weight: 700; text-decoration: none; }
