.aafd-num{font-variant-numeric:tabular-nums}
.aafd-wrap{margin:1.6em 0}
.aafd-title{font-size:1.25em;margin:0 0 .3em}
.aafd-updated{font-size:.78em;color:#7d8a90;margin:0 0 .8em}
.aafd-empty{color:#7d8a90}

/* 見出し */
/* 見出しに薄い帯を敷く。
   白地に文字が続くだけだと、どこで話が変わったのか分からない。
   帯の色は設定した濃い色から作るので、色を変えれば追従する。 */
.aafd-head{display:flex;align-items:center;gap:11px;margin:2.4em 0 1em;
padding:10px 14px;border-radius:12px;background:var(--navy-w);
border-left:5px solid var(--navy)}
.aafd-head-badge{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--navy)}
.aafd-head-text{flex:1 1 auto;min-width:0}
.aafd-eyebrow{display:block;font-size:.62em;font-weight:800;letter-spacing:.2em;color:#7d8a90;margin-bottom:1px}
/* テーマの見出しデザインを打ち消す。
   SWELLは h2 に背景・白文字・上下線を当てるので、
   打ち消しが弱いと「白文字が薄い帯に乗って読めない」状態になる。
   色と線も含めて、ここで完全に上書きする。 */
.aafd-h2{margin:0 !important;padding:0 !important;border:0 !important;background:none !important;
font-size:1.12em !important;font-weight:900 !important;line-height:1.3 !important;
color:#22323a !important;text-align:left !important;box-shadow:none !important}
.aafd-h2::before,.aafd-h2::after{display:none !important;content:none !important}
.aafd-head--rose .aafd-head-badge{background:var(--rose)}
.aafd-head--rose{background:var(--rose-w);border-left-color:var(--rose)}
.aafd-head--gold .aafd-head-badge{background:#c9971a}
.aafd-head--gold{background:#fdf6e3;border-left-color:#c9971a}

/* 作品カード */
.aafd-cards{display:grid;gap:11px}
.aafd-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.aafd-list{grid-template-columns:1fr}
.aafd-card{position:relative;display:flex;flex-direction:column;text-decoration:none;color:inherit;
border:1px solid #e4e9ea;border-radius:12px;overflow:hidden;background:#fff;transition:transform .15s,box-shadow .15s}
.aafd-card:hover{transform:translateY(-2px);box-shadow:0 5px 16px rgba(26,88,102,.14)}
.aafd-list .aafd-card{flex-direction:row;align-items:stretch}
/* 1列表示は画像をカードの高さいっぱいに敷く作りなので、4:3の固定から外す */
.aafd-list .aafd-thumb{flex:0 0 40%;max-width:180px;aspect-ratio:auto}
.aafd-list .aafd-thumb img{height:100%;object-fit:cover}
/* 中身が枠より高くなったとき、中央寄せだと上下に等しくはみ出して
   題名の頭から切れる。上から詰めれば、切れるとしても末尾側になる。 */
.aafd-list .aafd-body{flex:1;justify-content:flex-start;padding:10px 12px;min-width:0}
/* 1列表示は3行なので、確保する高さも3行ぶん（1.4×3=4.2em）に合わせる */
.aafd-list .aafd-name{-webkit-line-clamp:3;font-size:.9em;min-height:4.2em}
/* 表紙の縦横比は大半が4:3（560×420）だが、動画作品などに16:9が混じる。
   height:auto のままだと画像の高さがカードごとに変わり、
   同じ行の隣のカードまで引き伸ばされていた。
   枠を4:3に固定し、中に「収める」。4:3の表紙は余白ゼロでぴったり収まり、
   横長のものだけ上下にわずかな余白が出る。
   切って埋める（cover）にはしない。同人の表紙は「本文55P」「全174P」など
   端に情報が入っていることが多く、切ると消えるため。 */
.aafd-thumb{display:block;position:relative;background:#eef1f2;aspect-ratio:4/3;overflow:hidden}
.aafd-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.aafd-body{display:flex;flex-direction:column;gap:4px;padding:9px 10px 11px}
/* 実データ100件で数えると、タイトルは中央値23字・平均27字・最長83字。
   1行11〜12字なので、2行では半分しか最後まで読めていなかった。
   4行にすると9割弱が収まる。5行以降は伸びが鈍く（93%→95%）、
   残りは音声作品の【】が続く80字級で、何行あっても収まらない。
   1列表示（.aafd-list）は1行16字ほど入るので3行のままでよい。 */
.aafd-name{font-size:.84em;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:5.6em}
.aafd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.74em}
.aafd-star{color:#c9971a;font-weight:900}
.aafd-count{color:#7d8a90}
.aafd-off{background:var(--rose);color:#fff;border-radius:3px;padding:2px 5px;font-weight:900;font-size:.62em;align-self:center;white-space:nowrap;letter-spacing:-.01em}
/* 「30%OFF 770円 1,100円」のように定価が4桁になると1行に入りきらず、
   折り返してカードが1行ぶん高くなっていた。詰めて収める。
   実データの価格は中央値330円・8割が55〜880円なので、
   4桁が絡むのは一部だけ。それでも入らない組み合わせは折り返させる
   （切り詰めると金額が読めなくなるため、wrapは残す）。 */
.aafd-prices{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
/* セールの終わる日時。
   はじめは flex:0 0 100% で必ず改行させていたが、1列表示のカードは
   本文を上下中央に置く作りで、1行増えると中身が枠からはみ出し、
   題名の頭が上に切れた（1位と3位のカードで発生）。
   値段と同じ行に置き、入らないときだけ折り返させる。 */
.aafd-until{font-size:.72em;font-weight:700;color:var(--rose);opacity:.85;white-space:nowrap}
.aafd-price{font-size:.94em;font-weight:900;color:var(--rose);letter-spacing:-.01em}
.aafd-list-price{font-size:.66em;color:#a8b2b6;text-decoration:line-through;font-weight:600;letter-spacing:-.01em}

/* 順位リボン（金・銀・銅） */
.aafd-badge{position:absolute;top:0;left:0;z-index:2;min-width:26px;height:26px;display:flex;
align-items:center;justify-content:center;font-size:.8em;font-weight:900;color:#fff;background:#8b979c;border-radius:0 0 8px 0}
.aafd-rank-1 .aafd-badge{background:#c9971a;font-size:.95em}
.aafd-rank-2 .aafd-badge{background:#9aa3a9}
.aafd-rank-3 .aafd-badge{background:#b5763a}
.aafd-rank-1{border-color:#e8b21e;box-shadow:0 0 0 2px rgba(232,178,30,.25)}
.aafd-rank-2{border-color:#c3cbcf}
.aafd-rank-3{border-color:#d9b18c}
.aafd-card.aafd-current{border:2px solid var(--navy);background:var(--navy-w)}
.aafd-here{position:absolute;top:6px;left:6px;background:var(--navy);color:#fff;font-size:.7em;
padding:.15em .6em;border-radius:999px;z-index:2}

/* 星 */
.aafd-stars{position:relative;display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle}
.aafd-stars-bg{color:#dfe3e5}
.aafd-stars-fg{position:absolute;top:0;left:0;overflow:hidden;color:#e8b21e;white-space:nowrap}

/* 属性リスト */
.aafd-terms{list-style:none !important;margin:0 !important;padding:0 !important;
display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:9px}
.aafd-terms li{margin:0 !important;padding:0 !important;list-style:none !important}
.aafd-terms li::before,.aafd-terms li::marker{content:none !important;display:none}
.aafd-term{display:block}
.aafd-term a{display:flex;align-items:center;gap:11px;min-height:56px;border:1px solid #e4e9ea;
border-radius:11px;padding:9px 12px;background:#fff;text-decoration:none;color:inherit;line-height:1.35}
.aafd-term a:hover,.aafd-term a:active{background:var(--navy-w)}
.aafd-term-thumb{flex:0 0 auto;width:44px;height:44px;border-radius:7px;overflow:hidden;background:#eef1f2}
.aafd-term-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.aafd-term-name{flex:1 1 auto;min-width:0;color:#22323a;font-weight:700;font-size:.95em}
.aafd-term-count{flex:0 0 auto;color:var(--navy);font-weight:800;font-size:.82em;background:var(--navy-w);border-radius:999px;padding:3px 11px;font-variant-numeric:tabular-nums}

/* メーカーの評価ランキング
 *
 * クラス名は aafd-mrank。aafd-rank は作品ページの「順位（表彰台）」が
 * 既に使っており、あちらの .aafd-rank{display:flex} が後ろにあるため、
 * 同じ名前だと display:block が打ち消されて横並びのまま崩れる（v3.59.0の不具合）。
 *
 * v3.58.0では ol に .aafd-terms を付けて索引の見た目を借りていたが、
 * SWELLが ol に独自の装飾を当てるため、横並びのまま画面からはみ出し、
 * 名前が1文字ずつ縦に折れた。ul にしたうえで、索引の
 * grid（230pxの多段組み）を引き継がないよう完全に別物として書く。
 * 順位は上から下へ読むものなので、多段にしてはいけない。 */
.aafd-mrank{list-style:none !important;margin:12px 0 0 !important;padding:0 !important;display:block}
.aafd-mrank>li{margin:0 0 7px !important;padding:0 !important;list-style:none !important;display:block}
.aafd-mrank>li::before,.aafd-mrank>li::marker{content:none !important;display:none}
.aafd-mrank a{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;
border:1px solid var(--line);border-radius:11px;padding:9px 12px;background:#fff;text-decoration:none;color:inherit;line-height:1.35}
.aafd-mrank a:hover,.aafd-mrank a:active{background:var(--navy-w)}
.aafd-mrank-no{flex:0 0 auto;width:26px;text-align:center;color:var(--mute);font-weight:800;font-size:.95em;font-variant-numeric:tabular-nums}
.aafd-mrank>li:nth-child(1) .aafd-mrank-no{color:var(--gold)}
.aafd-mrank>li:nth-child(2) .aafd-mrank-no{color:var(--silver)}
.aafd-mrank>li:nth-child(3) .aafd-mrank-no{color:var(--bronze)}
.aafd-mrank-thumb{flex:0 0 auto;width:44px;height:44px;border-radius:7px;overflow:hidden;background:#eef1f2}
.aafd-mrank-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.aafd-mrank-body{flex:1 1 auto;min-width:0}
/* 長い社名は折り返さず省略する。折り返すと行の高さが揃わず、
   順位の列が上下にずれて読みにくくなる。 */
.aafd-mrank-name{display:block;color:var(--ink);font-weight:700;font-size:.95em;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aafd-mrank-sub{display:block;margin-top:2px;color:var(--mute);font-size:.78em;font-weight:600}
.aafd-mrank-avg{flex:0 0 auto;color:#fff;background:var(--navy);font-weight:800;font-size:.88em;border-radius:999px;padding:4px 11px;font-variant-numeric:tabular-nums}

/* 索引からランキングへの入口。ただのリンクだと見出しの下に
   青い文字が1行あるだけで、何の行なのか分からなかった。 */
.aafd-mrank-link{display:flex;align-items:center;gap:10px;margin:12px 0;
border:1px solid var(--gold);border-radius:11px;padding:11px 13px;background:var(--gold-w);text-decoration:none;color:inherit}
.aafd-mrank-link:hover,.aafd-mrank-link:active{background:#fbefd0}
.aafd-mrank-link-icon{flex:0 0 auto;display:flex;align-items:center}
.aafd-mrank-link-body{flex:1 1 auto;min-width:0}
.aafd-mrank-link-title{display:block;color:var(--ink);font-weight:800;font-size:.95em}
.aafd-mrank-link-note{display:block;margin-top:2px;color:var(--mute);font-size:.78em;font-weight:600}
.aafd-mrank-link-go{flex:0 0 auto;color:var(--gold);font-weight:800;font-size:1.1em}

.aafd-page{max-width:1100px;margin:0 auto;padding:16px}

/* パンくず */
.aafd-crumbs{display:flex;flex-wrap:wrap;gap:5px 10px;margin:0 0 16px;font-size:.78em;line-height:1.4}
/* 広告表記（ステマ規制）。
   小さくしない・薄くしない。消費者庁の運用基準では、文字が小さい表示や
   周囲に紛れる表示が「不適切な例」に挙げられている。
   本文と同じ大きさ・読める濃さにして、左の線で位置だけ分かるようにする。 */
.aafd-pr{margin:0 0 16px;padding:8px 12px;background:#fbf7ec;border-left:4px solid #c9a227;
color:#3a3a3a;font-size:1em;line-height:1.6}
.aafd-pr-tag{display:inline-block;margin-right:8px;padding:1px 7px;background:#c9a227;
color:#fff;font-weight:700;border-radius:3px;font-size:.9em}
.aafd-crumb{position:relative;display:inline-block;padding:7px 24px 7px 13px;background:var(--navy-w);
color:var(--navy);font-weight:700;text-decoration:none;border-radius:4px 0 0 4px;max-width:100%;
clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%)}
.aafd-crumb > span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.aafd-crumb:hover{background:var(--navy-w2)}
/* 末尾は次が続かないので矢印を出さない */
.aafd-crumb.is-current{background:var(--navy);color:#fff;clip-path:none;
border-radius:4px;padding-right:13px}
/* ページが無い属性。矢羽根のまま、押せないことが分かる色にする */
.aafd-crumb.is-plain{background:#f4f6f7;color:#9aa3a9;font-weight:600}

.aafd-page-title{font-size:1.4em;margin:0 0 .4em;line-height:1.35;font-weight:900}
.aafd-summary{font-size:.87em;color:#3c4a51;line-height:1.85;margin:22px 0 8px;padding:15px 16px;
background:#fbfcfc;border:1px solid #e4e9ea;border-radius:12px}

/* 前へ 番号 次へ を1行に収める。いちばん幅を食うのは
   「前へ 1 … 5 6 7 … 25 次へ」の形で、この寸法で約340px。
   幅360pxの端末でも折り返さない。狭ければ折り返して2行になる。 */
.aafd-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:26px 0}
.aafd-page-link{border:1px solid #cfd8db;border-radius:8px;padding:10px 12px;text-decoration:none;color:var(--navy);font-weight:700;font-size:.85em}
.aafd-page-link:hover{background:var(--navy-w);border-color:var(--navy)}
/* 端まで来たとき。押せないことが分かるようにする */
.aafd-page-link.is-off{color:#b6c0c4;border-color:#e4e9ea;background:#fbfcfc}
/* 番号。前へ次へだけでは25ページ・84ページの中を動けない */
.aafd-page-nums{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px}
.aafd-page-num{box-sizing:border-box;min-width:32px;text-align:center;border:1px solid #cfd8db;border-radius:8px;
padding:10px 3px;text-decoration:none;color:var(--navy);font-weight:700;font-size:.85em;line-height:1.2}
.aafd-page-num:hover{background:var(--navy-w);border-color:var(--navy)}
/* いま見ているページ。紺＝移動の色で塗る */
.aafd-page-num.is-now{background:var(--navy);border-color:var(--navy);color:#fff}
/* 番号が飛んでいるところ。これは押せないものなのでグレーでよい */
.aafd-page-gap{color:#b6c0c4;font-size:.85em}
/* 番号の下に1行。折り返させるので幅いっぱいにする */
.aafd-page-now{width:100%;text-align:center;font-size:.8em;color:#7d8a90}
/* 一覧の上に置くほう。見出しとの間を詰める */
.aafd-pagination.is-top{margin:0 0 16px}
/* 頭文字でしぼる。1行に14個並ぶので、正方形に近い形で詰める。
   .aafd-head は見出し（AAFD_UI::heading）が既に使っているので別名にする */
.aafd-kanas{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.aafd-kana{display:inline-block;min-width:38px;box-sizing:border-box;text-align:center;
padding:9px 8px;border:1px solid #cfd8db;border-radius:8px;text-decoration:none;
color:var(--navy);font-weight:700;font-size:.85em;line-height:1.2}
.aafd-kana:hover{background:var(--navy-w);border-color:var(--navy)}
.aafd-kana.is-now{background:var(--navy);border-color:var(--navy);color:#fff}
/* 並べ替え */
.aafd-sorts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.aafd-sort{display:inline-block;padding:7px 13px;border:1px solid #cfd8db;border-radius:999px;
background:#fff;color:var(--navy);font-size:.8em;font-weight:700;text-decoration:none;line-height:1.3}
.aafd-sort:hover{background:var(--navy-w);border-color:var(--navy)}
.aafd-sort.is-on{background:var(--navy);border-color:var(--navy);color:#fff}
/* ページを打ち切ったときの案内 */
.aafd-cap{margin:0 0 24px;padding:14px 15px;border:1px solid #e4e9ea;border-radius:10px;
background:#fbfcfc;font-size:.8em;color:#5c6b73;line-height:1.8}

.aafd-search{display:flex;gap:6px;margin:0 0 1.2em}
.aafd-search-input{flex:1;min-width:0;border:1px solid #cfd8db;border-radius:8px;padding:11px 13px;font-size:16px}
.aafd-search-button{border:0;border-radius:999px;padding:11px 22px;background:var(--navy);color:#fff;font-size:.9em;font-weight:800;cursor:pointer;white-space:nowrap}
.aafd-search-button:hover{background:var(--navy-d)}
.aafd-cards + .aafd-cards{margin-top:12px}

/* 検索ブロック（枠で囲って探し方の起点にする） */
.aafd-find{border:2px solid var(--navy);border-radius:14px;overflow:hidden;margin:0 0 22px;background:#fff}
.aafd-find-head{display:flex;align-items:center;gap:9px;background:var(--navy);color:#fff;
padding:12px 16px;font-weight:800;font-size:1.02em;line-height:1.2}
.aafd-find-head svg{flex:0 0 auto}
.aafd-find-body{padding:16px}
.aafd-find-lead{margin:0 0 10px;font-size:.83em;color:#3c4a51;line-height:1.7}
.aafd-find .aafd-search{margin:0}
.aafd-find .aafd-search-input{border:2px solid var(--navy);padding:13px}
.aafd-find-label{margin:16px 0 8px;font-size:.75em;font-weight:800;color:#7d8a90;letter-spacing:.06em}
.aafd-chips{display:flex;flex-wrap:wrap;gap:7px}
.aafd-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
background:var(--navy-w);color:var(--navy);font-size:.82em;font-weight:700;text-decoration:none;line-height:1.2}
.aafd-chip:hover,.aafd-chip:active{background:var(--navy-w2);color:var(--navy-d)}
.aafd-chip-num{font-size:.85em;font-weight:800;color:#7d8a90;font-variant-numeric:tabular-nums}

/* まだ集めていない年（リンクさせない） */
.aafd-tile.is-pending{display:flex;align-items:center;gap:14px;padding:15px 16px;background:#f7f9f9;
border:1px dashed #cfd8db;border-radius:12px;color:#9aa3a9;cursor:default}
.aafd-tile.is-pending .aafd-tile-name{color:#9aa3a9}

/* 入口タイル（1列・横長） */
.aafd-tiles{display:flex;flex-direction:column;gap:9px;margin:0 0 22px}
.aafd-tile{display:flex;align-items:center;gap:14px;padding:15px 16px;text-decoration:none;color:inherit;
background:#fff;border:1px solid #e4e9ea;border-radius:12px}
.aafd-tile:hover,.aafd-tile:active{background:var(--navy-w);color:inherit}
.aafd-tile-icon{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:var(--navy-w)}
.aafd-tile-text{flex:1 1 auto;min-width:0}
.aafd-tile-name{display:block;font-weight:800;font-size:1.02em;color:var(--navy);line-height:1.25}
.aafd-tile-sub{display:block;font-size:.75em;color:#7d8a90;font-variant-numeric:tabular-nums}
.aafd-tile-arrow{flex:0 0 auto;color:var(--navy);opacity:.45;font-size:1.3em;font-weight:900;line-height:1}

/* 収録件数 */
.aafd-stats{position:relative;overflow:hidden;background:linear-gradient(150deg,var(--navy),var(--navy-d));
border-radius:16px;padding:26px 20px 22px;text-align:center;color:#fff;margin:0 0 20px}
.aafd-stats::after{content:"";position:absolute;right:-42px;bottom:-52px;width:150px;height:150px;
border-radius:50%;background:rgba(255,255,255,.05)}
.aafd-stats-label{margin:0;font-size:.74em;font-weight:700;letter-spacing:.16em;color:rgba(255,255,255,.78)}
.aafd-stats-num{margin:6px 0 0;font-size:3.1em;font-weight:900;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.aafd-stats-unit{font-size:.3em;font-weight:800;margin-left:.3em;color:#e8b21e;letter-spacing:0}
.aafd-stats-sub{margin:14px 0 0;font-size:.8em;color:rgba(255,255,255,.92);font-variant-numeric:tabular-nums;
padding-top:12px;border-top:3px solid #e8b21e;display:inline-block}
.aafd-stats-date{margin:.35em 0 0;font-size:.74em;color:rgba(255,255,255,.68)}

/* 作品ページ */
.aafd-item-cover-hero{margin:0 0 14px;border-radius:14px;overflow:hidden;background:#eef1f2}
.aafd-item-cover-hero img{width:100%;height:auto;display:block}
.aafd-item-page .aafd-page-title{text-align:center}
.aafd-item-page .aafd-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:.7em 0 1em}
.aafd-item-page .aafd-badges .aafd-tag{background:#fdf6e3;border:1px solid #ecd9a0;color:#8a6608;font-weight:800}
.aafd-score-box{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font-size:1.75em;margin:0 0 .5em}
.aafd-score-num{font-weight:900;color:#c9971a}
.aafd-score-box .aafd-count{font-size:.55em}

/* 価格 */
.aafd-pricebox{border:1px solid var(--rose-l);border-radius:14px;overflow:hidden;margin:0 0 13px;background:#fff}
.aafd-pricebox-head{background:var(--rose);color:#fff;font-weight:900;text-align:center;padding:10px 12px;font-size:.94em;letter-spacing:.03em}
.aafd-pricebox.is-sale .aafd-pricebox-head{display:flex;align-items:center;justify-content:center;gap:10px}
.aafd-sale-rate{background:#fff;color:var(--rose);border-radius:999px;padding:2px 12px;font-size:.88em;font-weight:900}
.aafd-pricebox-body{padding:18px 14px 16px;text-align:center;background:var(--rose-w)}
.aafd-pricerow{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:10px}
.aafd-was{font-size:1.1em;color:#a8929a;text-decoration:line-through}
.aafd-arrow{font-size:1.15em;color:var(--rose-l);font-weight:900}
.aafd-now{font-size:2.1em;font-weight:900;color:var(--rose);line-height:1.1;font-variant-numeric:tabular-nums}
.aafd-saved{margin:.5em 0 0;font-size:.86em;font-weight:800;color:#c9971a}
.aafd-pricenote{margin:.4em 0 0;font-size:.78em;color:#7d8a90}

/* 購入ボタン（サイトで唯一の赤） */
.aafd-buy{position:relative;display:block;overflow:hidden;text-align:center;background:#c0392b;
color:#fff !important;padding:17px 18px;border-radius:12px;text-decoration:none;font-weight:900;
font-size:1.08em;box-shadow:0 5px 16px rgba(192,57,43,.3);line-height:1.4}
.aafd-buy:hover,.aafd-buy:active{background:#a93226;color:#fff}
.aafd-buy > *{position:relative;z-index:1}
.aafd-buy small{display:block;margin-top:3px;font-size:.7em;font-weight:600;opacity:.85}
.aafd-buy::after{content:"";position:absolute;top:-60%;left:-60%;width:38%;height:220%;
background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0));
transform:rotate(20deg);animation:aafd-shine 3.6s ease-in-out infinite}
@keyframes aafd-shine{0%{left:-60%}28%{left:130%}100%{left:130%}}
@media(prefers-reduced-motion:reduce){.aafd-buy::after{display:none}}
.aafd-tachiyomi{display:block;text-align:center;margin-top:10px;padding:13px 18px;border-radius:12px;
border:2px solid var(--navy);background:#fff;color:var(--navy) !important;
text-decoration:none;font-weight:800;font-size:.98em;line-height:1.4}
.aafd-tachiyomi:hover,.aafd-tachiyomi:active{background:var(--navy);color:#fff !important}
.aafd-tachiyomi small{display:block;margin-top:3px;font-size:.72em;font-weight:600;opacity:.8}
border:1px solid rgba(0,0,0,.06)}
background:var(--navy)}
.aafd-articles{margin:22px 0}
.aafd-article-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(0,0,0,.08)}
.aafd-article-list li{border-bottom:1px solid rgba(0,0,0,.08)}
.aafd-article-list a{display:flex;align-items:center;gap:11px;padding:13px 4px;text-decoration:none;
color:var(--ink);font-size:.97em;line-height:1.5;font-weight:700}
.aafd-article-list a:hover{color:var(--navy)}
/* 左の丸。ここが一覧の1行だと分かるようにする */
.aafd-article-list a::before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;
background:var(--navy);opacity:.5}
/* 題名。長いときはここだけが折り返す */
.aafd-article-t{flex:1 1 auto;min-width:0}
/* 右の「›」。下の「ジャンルから ›」と同じ形にそろえる */
.aafd-article-list a::after{content:"";flex:0 0 auto;width:7px;height:7px;margin-right:2px;
border-right:2px solid currentColor;border-bottom:2px solid currentColor;
transform:rotate(-45deg);opacity:.3}
.aafd-eyecatch{margin:0 0 22px;padding:0}
.aafd-eyecatch img{display:block;width:100%;height:auto;border-radius:12px}
.aafd-article-more{margin:10px 0 0;text-align:right}
.aafd-article-more a{color:var(--navy);font-weight:700;text-decoration:none;font-size:.92em}
.aafd-buy-end{margin:32px 0 8px;padding:18px 16px;border:1px solid #e4e9ea;border-radius:14px;background:#fbfcfc}
.aafd-buy-end-title{margin:0 0 12px;font-size:.95em;font-weight:800;color:#3c4a51;line-height:1.45;text-align:center}

/* 順位（表彰台モチーフ） */
.aafd-ranks{display:flex;flex-direction:column;gap:8px}
.aafd-rank{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;
border:1px solid #e4e9ea;border-radius:12px;text-decoration:none;color:inherit}
.aafd-podium{flex:0 0 auto;display:flex;align-items:flex-end;gap:2px;width:26px;height:24px}
.aafd-podium span{flex:1;border-radius:2px 2px 0 0;background:#dbe2e4}
.aafd-podium span:nth-child(1){height:55%}
.aafd-podium span:nth-child(2){height:100%}
.aafd-podium span:nth-child(3){height:38%}
.aafd-rank-label{flex:1 1 auto;min-width:0;font-weight:700;font-size:.95em}
.aafd-rank-kind{display:inline-block;font-size:.68em;font-weight:800;color:#fff;background:var(--navy);
border-radius:4px;padding:2px 6px;margin-right:6px;letter-spacing:.04em;vertical-align:middle}
.aafd-rank-value{flex:0 0 auto;text-align:right;white-space:nowrap;font-weight:900;color:#7d8a90;font-variant-numeric:tabular-nums}
.aafd-rank-value strong{font-size:1.45em;letter-spacing:-.02em}
.aafd-rank-total{display:block;font-size:.66em;color:#7d8a90;font-weight:600}
.aafd-rank--gold{border:2px solid #e8b21e;background:#fdf6e3}
.aafd-rank--gold .aafd-podium span:nth-child(1){background:#9aa3a9}
.aafd-rank--gold .aafd-podium span:nth-child(2){background:#e8b21e}
.aafd-rank--gold .aafd-podium span:nth-child(3){background:#b5763a}
.aafd-rank--gold .aafd-rank-label{color:#8a6608}
.aafd-rank--gold .aafd-rank-value{color:#c9971a}
.aafd-rank--pink .aafd-podium span:nth-child(2){background:var(--rose-l)}
.aafd-rank--pink .aafd-rank-value{color:var(--rose)}
.aafd-rank--pink .aafd-rank-value strong{font-size:1.35em}
/* plain は真ん中の段。濃い色をそのまま使うと、
   赤系にしたときに上位（ピンク）より強く見えて順番が逆に読める。
   ここは色で競わせず、黒に寄せる。 */
.aafd-rank--plain .aafd-podium span:nth-child(2){background:#7d8a90}
.aafd-rank--plain .aafd-rank-value{color:#22323a}
.aafd-rank--plain .aafd-rank-value strong{font-size:1.2em}
.aafd-rank--quiet{background:#fbfcfc}
.aafd-rank--quiet .aafd-podium span:nth-child(2){background:#c3cbcf}
.aafd-rank--quiet .aafd-rank-label{color:#7d8a90}
.aafd-rank--quiet .aafd-rank-value{color:#7d8a90}
.aafd-rank--quiet .aafd-rank-value strong{font-size:1.05em}

/* 属性ページの統計 */
/* トップの [aafd_stats] が .aafd-stats / .aafd-chip を使っているので、
   こちらは t（term）を付けた別名にする。同じ名前にすると後から書いたほうが勝ち、
   トップの白抜き文字が白い箱に乗って読めなくなる。 */
/* 女優のプロフィール。
   顔写真があるので、写真と文字を横に並べる。
   画面が狭いときは縦に積む。 */
.aafd-actress{display:flex;gap:16px;align-items:flex-start;margin:0 0 22px;padding:16px;
border:1px solid var(--navy-w2);border-radius:16px;background:#fff;
box-shadow:0 2px 10px rgba(0,0,0,.05)}
.aafd-actress-photo{flex:0 0 116px;width:116px;border-radius:12px;overflow:hidden;
background:var(--navy-w);aspect-ratio:3/4}
.aafd-actress-photo img{width:100%;height:100%;object-fit:cover;display:block}
.aafd-actress-body{flex:1 1 auto;min-width:0}
.aafd-actress-name{margin:0 !important;padding:0 !important;border:0 !important;
background:none !important;font-size:1.2em !important;font-weight:900 !important;
color:#22323a !important;line-height:1.25 !important}
.aafd-actress-name::before,.aafd-actress-name::after{display:none !important;content:none !important}
.aafd-actress-ruby{margin:2px 0 10px;font-size:.78em;color:var(--mute)}
.aafd-actress-spec{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0;
font-size:.86em;line-height:1.5}
.aafd-actress-spec dt{margin:0;color:var(--mute);font-weight:700;white-space:nowrap}
.aafd-actress-spec dd{margin:0;color:#22323a;font-weight:700;
font-variant-numeric:tabular-nums}
@media(max-width:480px){
.aafd-actress{gap:13px;padding:13px}
.aafd-actress-photo{flex:0 0 92px;width:92px}
.aafd-actress-spec{font-size:.82em;gap:4px 10px}
}
.aafd-tstats{margin:0 0 24px;padding:18px 16px;border:1px solid #e4e9ea;border-radius:14px;background:#fbfcfc}
/* 箱の題（「◯◯ のデータ」）。中の小見出しと区別が付くよう、こちらは下線で示す。 */
.aafd-tstats-title{margin:0 0 14px;padding-bottom:9px;font-size:1.02em;font-weight:900;color:#22323a;
border-bottom:2px solid var(--navy)}
.aafd-tstats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media(min-width:600px){.aafd-tstats-grid{grid-template-columns:repeat(4,1fr)}}
.aafd-tstat{padding:10px 12px;background:#fff;border:1px solid #e4e9ea;border-radius:10px}
.aafd-tstat-label{display:block;font-size:.7em;font-weight:700;color:#7d8a90;letter-spacing:.03em}
.aafd-tstat-value{display:block;margin:2px 0 1px;font-size:1.25em;font-weight:900;color:var(--navy);
font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.aafd-tstat-note{display:block;font-size:.68em;color:#7d8a90;font-weight:600;line-height:1.4}
.aafd-tstat.is-sale .aafd-tstat-value{color:var(--rose)}
.aafd-tstats-text{margin:18px 0 0;padding-top:14px;border-top:1px solid #e4e9ea}
.aafd-tstats-text p{margin:0 0 .7em;font-size:.82em;color:#3c4a51;line-height:1.85}
.aafd-tstats-text p:last-child{margin-bottom:0}
/* 箱の中の小見出し。
   ただの太字だと、上のチップの並びとの切れ目が分からない。
   左に色の線を立てて、次の話が始まったことを示す。 */
.aafd-tstats-sub{margin:20px 0 10px;padding:6px 0 6px 11px;font-size:.86em;font-weight:800;
color:#22323a;border-left:4px solid var(--navy);background:var(--navy-w);border-radius:0 8px 8px 0}
.aafd-tstats-sub:first-of-type{margin-top:18px}
.aafd-tchips{display:flex;flex-wrap:wrap;gap:6px}
.aafd-tchip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;background:#fff;
border:1px solid #cfd8db;border-radius:999px;font-size:.8em;font-weight:700;
color:var(--navy);text-decoration:none;line-height:1.3}
.aafd-tchip:hover{background:var(--navy-w);border-color:var(--navy)}
.aafd-tchip.is-plain{color:#7d8a90;background:#f4f6f7;border-color:#e4e9ea}
.aafd-tchip-count{font-size:.85em;font-weight:800;color:#7d8a90;font-variant-numeric:tabular-nums}

/* 表・タグ・サンプル */
.aafd-note{font-size:.78em;color:#7d8a90;margin:.5em 0 0;line-height:1.7}
.aafd-history,.aafd-spec{width:100%;border-collapse:collapse;font-size:.9em;background:#fff}
/* 見出し列は「どの項目か」を示すだけなので、中身より目立たせない。
   濃い色をそのまま使うと、赤系にしたときに中身より強くなる。 */
.aafd-history th,.aafd-spec th{background:#f4f6f7;color:#3c4a51;font-weight:800;text-align:left;
padding:10px;border:1px solid var(--navy-w2);white-space:nowrap;width:8em;vertical-align:top}
.aafd-history td,.aafd-spec td{padding:10px;border:1px solid #e4e9ea}
.aafd-has-movie{position:absolute;left:6px;bottom:6px;width:22px;height:22px;border-radius:50%;
background:rgba(0,0,0,.55);border:1.5px solid rgba(255,255,255,.9)}
.aafd-has-movie::after{content:"";position:absolute;left:8px;top:5px;border-style:solid;
border-width:5px 0 5px 8px;border-color:transparent transparent transparent #fff}
.aafd-movie{position:relative;aspect-ratio:3/2;margin:0 0 8px;border-radius:14px;overflow:hidden;
background:#000}
.aafd-movie iframe{display:block;width:100%;height:100%;border:0}
.aafd-movie-btn{display:block;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer;
position:relative}
.aafd-movie-btn img{width:100%;height:100%;object-fit:cover;opacity:.62;display:block}
.aafd-movie-play{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;
border-radius:50%;background:rgba(255,255,255,.92)}
.aafd-movie-play::after{content:"";position:absolute;left:26px;top:19px;border-style:solid;
border-width:13px 0 13px 21px;border-color:transparent transparent transparent var(--navy)}
.aafd-movie-label{position:absolute;left:0;right:0;bottom:12px;color:#fff;font-weight:800;
font-size:.86em;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.aafd-deliveries{display:flex;flex-wrap:wrap;gap:6px 10px}
/* 画質ごとの値段。「ダウンロード 590円 (1,180円 → 50%OFF)」は
   狭い画面では横に収まらない。ひとかたまりで折り返さない指定にしていたため、
   セールの表示が右端で切れていた。中の語ごとに折り返せるようにして、
   数字と単位（590円 / 50%OFF）だけを分けないようにする。 */
.aafd-delivery{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 .35em;
background:#f4f8f9;border:1px solid var(--navy-w2);
border-radius:6px;padding:3px 8px;white-space:normal;max-width:100%}
.aafd-delivery strong,.aafd-delivery-was{white-space:nowrap}
.aafd-delivery-was{color:var(--rose);font-weight:700}
.aafd-history th{width:auto}
.aafd-tags{display:flex;flex-wrap:wrap;gap:9px}
.aafd-tag{display:inline-block;border:1px solid #e4e9ea;background:#fbfcfc;border-radius:999px;padding:.3em .9em;font-size:.85em;color:#5b686e}
.aafd-tag.is-flat{color:#9aa3a9;background:#f4f6f7}
a.aafd-tag.is-link{display:inline-flex;align-items:center;gap:8px;min-height:46px;border:1px solid #cfe0e3;
background:#fff;color:var(--navy);font-size:1em;font-weight:700;text-decoration:none;padding:.5em .7em .5em 1.1em}
a.aafd-tag.is-link:hover,a.aafd-tag.is-link:active{background:var(--navy-w);border-color:var(--navy)}
.aafd-tag-count{background:var(--navy-w);color:var(--navy);border-radius:999px;padding:1px 8px;font-size:.85em;font-weight:800;font-variant-numeric:tabular-nums}
.aafd-tag-arrow{color:var(--navy);opacity:.55;font-weight:900;font-size:1.1em;line-height:1}
/* 作品形式のボタン。1つずつ縦に並べる。
   アイコンは絵文字ではなく線画（SVG）。端末で絵柄が変わらず、
   読み込むファイルも増えない。

   3.164.0まで2列に並べていた。同人（CG・コミック・ボイス・ゲーム）と
   動画（VR・VR以外）は最長4文字なので収まっていたが、電子書籍で
   DMMが返す「美少女ノベル・官能小説」（12文字）が入ると枠からあふれ、
   件数が画面の外へ押し出された（画面幅360pxで、ページの横幅が480pxになる）。

   あふれた原因は2つある。どちらも直す。
     1. 2列だと1つあたりの幅が半分しかない
     2. min-width の既定が auto なので、下の text-overflow が働かず
        枠自身が中身の幅まで広がっていた（省略の「…」が出なかった）
   フロアの名前はDMMが返すもので、こちらでは長さを決められない。
   どんな長さが来ても崩れない形にしておく。 */
.aafd-formats{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 18px}
.aafd-fmt{display:flex;align-items:center;gap:8px;padding:12px 13px;
background:#fff;border:2px solid var(--navy-w2);border-radius:10px;
color:var(--navy);font-weight:700;text-decoration:none;line-height:1.3;
min-width:0}
.aafd-fmt.is-all{grid-column:1 / -1}
.aafd-fmt svg{flex:0 0 auto}
.aafd-fmt > span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aafd-fmt > b{flex:0 0 auto;font-size:.92em;font-weight:800;color:#4a6b73;
font-variant-numeric:tabular-nums}
.aafd-fmt.is-now{background:var(--navy);border-color:var(--navy);color:#fff}
.aafd-fmt.is-now > b{color:#cfe4e8}
.aafd-fmt-note{margin:-10px 0 16px;font-size:.85em;color:#666}
a.aafd-fmt:hover{border-color:var(--navy)}
/* 順位の決め方の説明。閉じていても1行目は必ず読める。 */
.aafd-score-note{margin:0 0 14px;font-size:.92em;line-height:1.6}
.aafd-score-note>summary{cursor:pointer;color:var(--navy);font-weight:700;padding:8px 10px;
background:var(--navy-w);border-radius:6px;list-style:none}
.aafd-score-note>summary::-webkit-details-marker{display:none}
.aafd-score-note>summary::after{content:"　＋";font-weight:900}
.aafd-score-note[open]>summary::after{content:"　−"}
.aafd-score-note>p{margin:8px 2px 0;color:#444}
.aafd-samples{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.aafd-samples img{width:100%;height:auto;border-radius:8px;display:block}
.aafd-sample{display:block;position:relative;cursor:zoom-in;border-radius:8px;overflow:hidden}
.aafd-samples-hint{margin:8px 0 0;font-size:.85em;color:#666;text-align:center}
/* 画像を大きく見る。外部のライブラリは使っていない。
   開くのは一覧と同じ画像なので、通信は増えない。 */
.aafd-lb{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.92);
display:flex;align-items:center;justify-content:center;padding:12px}
.aafd-lb[hidden]{display:none}
.aafd-lb-img{max-width:100%;max-height:92vh;width:auto;height:auto;
border-radius:4px;object-fit:contain}
.aafd-lb-close,.aafd-lb-prev,.aafd-lb-next{position:absolute;background:rgba(0,0,0,.5);
color:#fff;border:0;cursor:pointer;line-height:1;padding:0;border-radius:999px}
.aafd-lb-close{top:12px;right:12px;width:44px;height:44px;font-size:26px}
.aafd-lb-prev,.aafd-lb-next{top:50%;transform:translateY(-50%);width:44px;height:64px;
font-size:34px;border-radius:8px}
.aafd-lb-prev{left:6px}
.aafd-lb-next{right:6px}
.aafd-lb-count{position:absolute;bottom:10px;left:0;right:0;margin:0;text-align:center;
color:#fff;font-size:.9em;font-variant-numeric:tabular-nums}
.aafd-more{margin:14px 0 0}
/* 文中のリンクに見えて見落とされるので、押せる帯にする。
   紺は「探す・移動する」の色。 */
.aafd-more a{display:flex;align-items:center;gap:11px;padding:13px 15px;
background:var(--navy-w);border:1px solid #cfe0e4;border-radius:10px;
color:var(--navy);font-weight:800;font-size:.88em;line-height:1.45;text-decoration:none}
.aafd-more a:hover,.aafd-more a:active{background:var(--navy-w2);border-color:var(--navy)}
.aafd-more a::before{content:"\00BB";flex:0 0 auto;
display:inline-flex;align-items:center;justify-content:center;
width:26px;height:26px;border-radius:7px;background:var(--navy);
color:#fff;font-size:1.05em;font-weight:900;line-height:1}

@media(max-width:480px){
/* 見出し列は少しだけ詰める。5.5emまで狭めると「メーカーの実績」が
   折り返してしまうので、6文字が1行に収まる幅を確保する。 */
.aafd-history th,.aafd-spec th{width:6.5em;padding:8px}
.aafd-history td,.aafd-spec td{padding:8px}
.aafd-grid{grid-template-columns:repeat(2,1fr);gap:10px}
.aafd-list .aafd-thumb{flex:0 0 38%}
.aafd-list .aafd-name{font-size:.85em}
.aafd-terms{grid-template-columns:1fr;gap:8px}
.aafd-crumbs{font-size:.72em}
.aafd-crumb{padding:6px 20px 6px 11px}
.aafd-crumb.is-current{padding-right:11px}
.aafd-stats-num{font-size:2.7em}
}
@media(min-width:600px){
.aafd-item-cover-hero{max-width:460px;margin-left:auto;margin-right:auto}
.aafd-samples{grid-template-columns:repeat(3,1fr)}
}

/* 管理人の見立て（3.144.0）
   色と太さはSWELLのクラスに任せる。ここでは余白と枠だけ。
   swl-marker / font_col_red / is-style-icon_good / is-style-icon_bad は
   SWELLの設定画面で色を変えられるので、こちらでは指定しない。 */
.aafd-review-lead{margin:12px 0 8px;line-height:1.7}
.aafd-review-price{margin:0 0 14px;line-height:2}
.aafd-review-good,.aafd-review-caution{margin:0 0 14px}
.aafd-review-good p,.aafd-review-caution p{margin:0 0 8px;line-height:1.8}
.aafd-review-good p:last-child,.aafd-review-caution p:last-child{margin-bottom:0}
.aafd-review-note{margin:0 0 8px;font-size:.85em;line-height:1.7;opacity:.8}

/* 見立ての中のリンク（3.151.0）
   緑や青の箱の中に出るので、色だけだと押せると気づかれない。
   下線を付けて、下に隙間を空けて読みやすくする。 */
.aafd-review-link{text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:2px}
.aafd-review-link:hover{text-decoration-thickness:3px}
