  :root {
    /* 2026-07-26再調整：前回のワイン系フル彩色は「目が痛い、毎日通うにはきつい」との
       フィードバックで撤回。地の色は黒に近いニュートラルな暗さに戻し、彩度の高い
       色は要所（バッジ・グラフバー・強調ボタン）だけに絞って使う方針に変更。 */
    color-scheme: dark;
    --bg: #121014;
    --panel: #1a171b;
    --panel-2: #221e23;
    --border: #332e33;
    --text: #e8e4e6;
    --text-dim: #9c939b;
    --accent: #ff4d7e;
    --on-accent: #1a0610;
    --play: #ff6f91;
    --character: #f0a857;
    --fetish: #a86cff;
    /* v6語彙で新設した4カテゴリ目「世界観」（2026-07-29追加）。色が未定義でバッジが
       地色に沈み読めなかったため、他3カテゴリと同じ明度・彩度帯で1色足す。舞台設定＝
       作品の「背景」にあたるカテゴリなので、前面の3色（桃/琥珀/紫）より一段落ち着いた
       青緑を当て、暖色3色との判別を容易にする。 */
    --setting: #4fb3a6;
    /* プレイ傾向4象限の色（2026-07-29追加、ユーザー要望「どのエリアにいるか一目で」）。
       縦軸（冷暖軸）を色の冷暖でそのまま表現する：上段＝甘マゾは暖色（琥珀・桃）、
       下段＝尊厳破壊は寒色（鋼青・紫）。左右は同じ段の中での色相差で区別する。
       初版は男性側を琥珀と朱にしていたが同系色すぎて判別できずユーザー指摘で
       朱→鋼青に変更（女性側の桃・紫は確定）。4色とも既存パレットの明度帯に合わせる。 */
    --area-male-sweet: #f2b96f;
    --area-female-sweet: #ff8fb4;
    --area-male-harsh: #4f9fe0;
    --area-female-harsh: #a86cff;
    /* 作品形式（cg/game/manga等）バッジ専用の寒色系パレット（2026-07-26追加）。
       タグ3カテゴリの暖色系（ピンク/琥珀/紫）と意図的に住み分け、「上のバッジ＝寒色、
       下のタグ＝暖色」という一貫したルールにして色数が増えても混乱しないようにする。 */
    --fmt-voice_asmr: #52c4d6;
    --fmt-manga: #6a93e0;
    --fmt-game: #6bc47d;
    --fmt-cg: #7a8ba0;
    --fmt-novel: #9b8ec9;
    --fmt-other: #8a8690;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 14px 18px;
    background: var(--bg);
    color: var(--text);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.55;
    font-size: 14.5px;
  }
  .wrap { max-width: 1140px; margin: 0 auto; }

  .nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 6px 0 10px;
    z-index: 10;
    flex-wrap: wrap;
  }
  .nav .counter { color: var(--text-dim); font-size: 13px; margin-right: auto; }
  /* 公開ビューのコンパクトなブランドリンク（詳細は list.html の .site-brand 参照） */
  .brand-mini { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; margin-right: 6px; }
  .brand-mini svg { flex: none; }
  .brand-mini span {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800; font-size: 15px; letter-spacing: .08em;
    background: linear-gradient(90deg, #ff8fb4, #ff4d7e 55%, #a86cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .btn {
    display: inline-block;
    padding: 6px 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
  }
  .btn:hover { border-color: var(--accent); }
  .btn.disabled { opacity: 0.35; pointer-events: none; }
  .btn.nav-right { margin-left: auto; }
  .nav-tools { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
  .btn.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }

  /* 「刺さった」と「あとで」。線画アイコン＋文字で、押す前後がひと目で分かるようにする。
     押していない時は輪郭だけ、押すと塗りつぶし＋淡い発光（2026-08-01デザイン刷新）。 */
  .act {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px 6px 11px; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .16s ease; line-height: 1;
  }
  .act:hover { color: var(--text); border-color: var(--text-dim); }
  .act-icon {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linejoin: round; transition: fill .16s ease;
  }
  .act-count {
    font-family: "Segoe UI", Arial, sans-serif; font-size: 12px;
    font-weight: 700; letter-spacing: .02em;
  }
  .act-count:empty { display: none; }
  .act-like:hover { color: #ff6f91; border-color: #ff6f91; }
  .act-like.on {
    color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff5c86, #ff2f6b);
    box-shadow: 0 2px 12px rgba(255, 77, 126, .35);
  }
  .act-like.on .act-icon { fill: currentColor; stroke: none; }
  .act-later:hover { color: var(--fetish); border-color: var(--fetish); }
  .act-later.on {
    color: #fff; border-color: transparent; background: linear-gradient(135deg, #b07dff, #8b4dff);
    box-shadow: 0 2px 12px rgba(168, 108, 255, .3);
  }
  .act-later.on .act-icon { fill: currentColor; stroke: none; }
  .act:disabled { opacity: .5; cursor: default; }

  form.goto { display: flex; gap: 6px; }
  form.goto input {
    width: 120px;
    padding: 5px 9px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
  }

  .card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .card h2 {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* トップカード：画像＋タイトル＋4指標を1枚に詰める */
  /* align-items: flex-start（2026-07-25追加）：デフォルトのstretchのままだと、
     右カラムの高さが画像の固定高さ(330px)に強制的に合わせられてしまい、声優が
     多い作品でサークル欄が複数行に折り返すと、その分プレイ傾向（散布図）が
     圧迫されて潰れてしまう不具合があった（ユーザー指摘）。flex-startにして
     右カラムを内容に応じて自然に伸ばせるようにする。 */
  .top-card { display: flex; gap: 16px; padding: 12px; align-items: flex-start; }
  .top-img {
    flex: none;
    width: 440px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel-2);
    border: 1px solid var(--border);
    position: relative;
  }
  .top-img a { display: block; width: 100%; height: 100%; }
  .top-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* アフィリエイト広告表示（景品表示法のステマ規制対応。将来アフィリエイト画像に
     差し替えても常に表示され続けるよう、UIの固定要素として今から組み込んでおく） */
  .ad-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(16, 19, 26, 0.8);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    pointer-events: none;
  }
  .top-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

  h1 { font-size: 17px; margin: 0; line-height: 1.3; }
  .title-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  /* 作品名とUFOTWバッジは同じ行に。長い題でもバッジが右端に残るようh1側を伸縮させる */
  .title-row:has(.ufotw-badge) { flex-wrap: nowrap; align-items: flex-start; }
  .title-row:has(.ufotw-badge) h1 { flex: 1; min-width: 0; }
  .title-row .ufotw-badge { margin-left: auto; align-self: flex-start; }
  @media (max-width: 620px) {
    .title-row:has(.ufotw-badge) { flex-wrap: wrap; }
    .title-row .ufotw-badge { margin-left: 0; }
  }
  .format-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: 13px;
  }
  .format-badge.fmt-voice_asmr { background: var(--fmt-voice_asmr); }
  .format-badge.fmt-manga { background: var(--fmt-manga); }
  .format-badge.fmt-game { background: var(--fmt-game); }
  .format-badge.fmt-cg { background: var(--fmt-cg); }
  .format-badge.fmt-novel { background: var(--fmt-novel); }
  .format-badge.fmt-other { background: var(--fmt-other); }
  .release-badge { color: var(--text-dim); font-size: 13px; }
  .tag-source-note {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-dim);
    background: var(--panel);
    border: 1px solid var(--border);
  }
  h1 a { color: var(--text); text-decoration: none; }
  h1 a:hover { text-decoration: underline; }

  /* サークル名・声優・イラスト等：公式データで絶対的に正しく購買判断への影響も大きいため、
     タイトル・カテゴリに次ぐ優先度で目立たせる（2026-07-26追加、ユーザー方針：
     「タイトル＞カテゴリ＞サークルや声優名＞＞＞その他の情報」の順で目立たせたい）。
     ★彩度の高い色は文章（読む文字）に使うと視認性が落ち目が疲れるため避け、実際に
     読ませたい名前は高コントラストな地色×太字×大きめサイズで目立たせる。アクセント
     カラーは各項目の左に小さな縦線（4px）として添えるだけに留め、面積を絞って使う。
     役割（サークル/声優/イラスト）ごとの色分けはしない：登場は1回ずつで数も少なく、
     色を増やすより統一感を優先した方がラベル文字だけで十分見分けられると判断。 */
  /* display:flexをやめてinline-block化（2026-07-25）：flexだと各役割（サークル/
     声優/イラスト）が短くてもそれぞれ独立した行になりがちで、特に声優が多い
     作品でスペース効率が悪かった（ユーザー指摘）。inline-blockにして文章のように
     詰めて流し、右側に余白があればサークルの右に続けて次の役割が並ぶようにする。 */
  .creator-row { margin-top: 10px; }
  .creator-item {
    display: inline-block;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
    padding-left: 9px;
    margin: 0 18px 8px 0;
    border-left: 3px solid var(--accent);
  }
  .creator-item a {
    color: inherit;
    text-decoration: none;
  }
  .creator-item a:hover {
    text-decoration: underline;
  }
  .creator-role {
    display: inline-block;
    color: var(--text-dim);
    font-weight: 400;
    font-size: 11px;
    margin-right: 6px;
  }
  .chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
  }

  /* 評価4要素：ラベルは常に上端固定、値/根拠文はその下の残り空間で中央寄せ
     （箱ごとに中身の量が違っても見た目の基準線が揃うようにする） */
  .metrics { display: flex; gap: 8px; flex: 1; align-items: stretch; }
  .metric {
    flex: 1;
    min-width: 110px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .metric .label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
  }
  .metric-body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .metric .value { font-size: 30px; font-weight: 700; line-height: 1; }
  .metric .value.unset { font-size: 14px; font-weight: 400; color: var(--text-dim); }
  .tentative-note { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
  .metric.scatter-metric { flex: 1.4; min-width: 150px; }

  /* width基準（2026-07-25変更）：以前はheight:100%基準だったため、上記
     align-items:flex-start化と合わせて、周囲の内容量に関わらずカードの
     横幅から一定のサイズを確保できるようにする（声優が多くて縦に潰れても
     正方形の大きさ自体は変わらない）。 */
  .scatter-box {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg);
    border-radius: 6px;
    margin: 0 auto;
  }
  /* 作品が属する象限だけを塗る。位置はJinja側で付く .area-* クラスで決まる。
     外側の角は枠の角丸に合わせる（overflow:hiddenにすると軸の端にある点が
     欠けてしまうため、角丸を個別指定する方式にしている）。 */
  .scatter-quad { position: absolute; width: 50%; height: 50%; }
  .area-male-sweet .scatter-quad { left: 0; top: 0; background: rgba(242, 185, 111, 0.20); border-radius: 6px 0 0 0; }
  .area-female-sweet .scatter-quad { left: 50%; top: 0; background: rgba(255, 143, 180, 0.20); border-radius: 0 6px 0 0; }
  .area-male-harsh .scatter-quad { left: 0; top: 50%; background: rgba(79, 159, 224, 0.22); border-radius: 0 0 0 6px; }
  .area-female-harsh .scatter-quad { left: 50%; top: 50%; background: rgba(168, 108, 255, 0.24); border-radius: 0 0 6px 0; }
  /* その象限を構成する2語（縦軸・横軸のラベル）だけを同じ色で点灯させ、
     「色＝どの傾向か」の対応をその場で読み取れるようにする。 */
  .area-male-sweet .scatter-axis-label.left,
  .area-male-sweet .scatter-axis-label.top,
  .area-male-sweet .scatter-dot,
  .area-male-sweet .area-name { color: var(--area-male-sweet); }
  .area-female-sweet .scatter-axis-label.right,
  .area-female-sweet .scatter-axis-label.top,
  .area-female-sweet .scatter-dot,
  .area-female-sweet .area-name { color: var(--area-female-sweet); }
  .area-male-harsh .scatter-axis-label.left,
  .area-male-harsh .scatter-axis-label.bottom,
  .area-male-harsh .scatter-dot,
  .area-male-harsh .area-name { color: var(--area-male-harsh); }
  .area-female-harsh .scatter-axis-label.right,
  .area-female-harsh .scatter-axis-label.bottom,
  .area-female-harsh .scatter-dot,
  .area-female-harsh .area-name { color: var(--area-female-harsh); }
  .scatter-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .area-name {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
  }
  .scatter-grid-v, .scatter-grid-h {
    position: absolute;
    background: var(--border);
  }
  .scatter-grid-v { left: 50%; top: 0; width: 1px; height: 100%; }
  .scatter-grid-h { top: 50%; left: 0; height: 1px; width: 100%; }
  .scatter-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    /* 点の色は象限の色（.area-*が指定するcolor）に追従させる */
    color: var(--fetish);
    background: currentColor;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
  }
  .scatter-axis-label {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    background: rgba(28, 15, 20, 0.55);
    padding: 1px 5px;
    border-radius: 3px;
  }
  .scatter-axis-label.top { top: 6px; left: 50%; transform: translateX(-50%); }
  .scatter-axis-label.bottom { bottom: 6px; left: 50%; transform: translateX(-50%); }
  .scatter-axis-label.left { left: 6px; top: 50%; transform: translate(0, -50%); }
  .scatter-axis-label.right { right: 6px; top: 50%; transform: translate(0, -50%); }

  .summary-text { font-size: 14.5px; white-space: pre-wrap; }

  /* 18禁ゲート（list.html側と同一。詳細ページ直リンクでの流入もあるため両方に置く） */
  .age-gate {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10, 8, 11, 0.94);
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .age-gate.open { display: flex; }
  .age-gate-panel {
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    max-width: 430px; padding: 30px 26px; text-align: center;
  }
  .age-gate-panel .gate-brand {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800; font-size: 20px; letter-spacing: .08em;
    background: linear-gradient(90deg, #ff8fb4, #ff4d7e 55%, #a86cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 14px;
  }
  .age-gate-panel p { margin: 0 0 20px; font-size: 14px; line-height: 1.8; color: var(--text); }
  .age-gate-enter {
    display: block; width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: var(--accent); color: var(--on-accent);
    font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .age-gate-leave {
    display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-dim);
  }
  /* ゲート表示中は背後のコンテンツをぼかす（list.html側と同じ措置） */
  body.age-locked > .wrap { filter: blur(18px); pointer-events: none; user-select: none; }

  .eval-note { margin-bottom: 12px; }
  .eval-note:last-child { margin-bottom: 0; }
  .eval-note-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
  }
  .eval-note p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }

  /* タグ：カテゴリを色分けした太いグラフバー。可変長の根拠文が多いため、
     固定グリッドではなく段組み（CSS columns）で2列に流し込む（幅が狭い画面では
     自動的に1列に戻る）。 */
  .tag-columns { column-count: 2; column-gap: 18px; }
  .tag-more-btn { display: none; }
  /* スマホは1列（根拠文が読める幅を確保）。ただし全件縦に並べると長大になるため、
     強度上位8件だけ見せて残りはボタンで展開する（2026-07-30、ユーザー相談への回答。
     デスクトップは2列で高さが半分になるので折りたたまない）。 */
  @media (max-width: 700px) {
    .tag-columns { column-count: 1; }
    .tag-columns.tags-collapsed .tag-row.tag-extra { display: none; }
    .tag-more-btn {
      display: block; width: 100%; padding: 11px;
      background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
      color: var(--text); font-size: 13.5px; cursor: pointer;
    }
  }
  .tag-row {
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s ease, background .15s ease;
  }
  /* カード全体をタグページへのリンクに（2026-08-01）。透明な面を敷いて当たり判定にする。
     touch-action: manipulation でスマホのダブルタップ拡大による誤爆も抑える。 */
  .tag-row-link {
    position: absolute; inset: 0; z-index: 1;
    border-radius: 8px; touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 77, 126, .12);
  }
  .tag-row:hover { border-color: var(--accent); background: #262029; }
  .tag-name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
  .tag-name { font-weight: 700; font-size: 14.5px; }
  .tag-row:hover .tag-name { color: var(--accent); }
  .cat-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--on-accent);
  }
  .cat-badge.play { background: var(--play); }
  .cat-badge.character { background: var(--character); }
  .cat-badge.fetish_attribute { background: var(--fetish); }
  .cat-badge.setting { background: var(--setting); }
  .graph-row { display: flex; align-items: center; gap: 8px; }
  .graph-track {
    flex: 1;
    height: 14px;
    border-radius: 4px;
    background: var(--panel-2);
    overflow: hidden;
  }
  .graph-fill { height: 100%; border-radius: 4px 0 0 4px; }
  .graph-fill.play { background: var(--play); }
  .graph-fill.character { background: var(--character); }
  .graph-fill.fetish_attribute { background: var(--fetish); }
  .graph-fill.setting { background: var(--setting); }
  .graph-score { font-size: 13.5px; font-weight: 700; width: 28px; text-align: right; flex: none; }
  .evidence {
    margin: 6px 0 0;
    padding: 5px 10px;
    border-left: 3px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
  }

  /* 関連作品（「近い性癖の作品」）。共閲覧またはタグ類似のバッチ事前計算を表示するだけ。
     居心地方針に合わせ、静かなカードリンクのみ（ボタン・煽り文言なし）。 */
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
  }
  .related-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .related-card:hover { border-color: var(--accent); }
  .related-img { aspect-ratio: 4 / 3; background: var(--bg); }
  .related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .related-title {
    padding: 6px 8px 2px;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .related-meta { padding: 0 8px 7px; font-size: 10.5px; color: var(--text-dim); }
  .feature-quote { border-left: 3px solid var(--accent); padding-left: 13px; }
  .feature-quote + .feature-quote { margin-top: 14px; }
  .feature-quote-body { margin: 0 0 5px; line-height: 1.85; }
  .feature-quote-meta { font-size: 11.5px; color: var(--text-dim); }
  .feature-quote-meta a { color: var(--text-dim); }
  .feature-quote-meta a:hover { color: var(--accent); }

  .site-footer {
    margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 12px;
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  }
  .site-footer a { color: inherit; }
  .site-footer a:hover { color: var(--accent); }

  .acts-line {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
  }
  .acts-label { color: var(--text-dim); margin-right: 8px; }
  .acts-value { color: var(--text); font-weight: 600; }

  details summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-bottom: 6px; }
  .debug-block { margin-bottom: 10px; }
  .debug-block h3 { font-size: 11.5px; color: var(--text-dim); margin: 0 0 3px; }
  .desc-text {
    white-space: pre-wrap;
    font-size: 13px;
    color: var(--text-dim);
    max-height: 300px;
    overflow-y: auto;
    background: var(--panel-2);
    border-radius: 6px;
    padding: 8px 10px;
  }

  .hint { color: var(--text-dim); font-size: 11.5px; text-align: center; margin-top: 6px; }
  .ad-disclosure {
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  /* レスポンシブ対応（2026-07-25追加、同日ブレークポイント修正）：幅の狭い画面では
     画像＋4指標の横並びを縦積みにする。★860pxだと画像(固定440px)がまだ横並びのまま
     なのに4指標の必要最小幅合計(110+110+150+110+gap=504px)が収まらず、861〜1010px
     幅で指標が画面右へはみ出す不具合があったため、はみ出しが起きない1024pxまで
     ブレークポイントを引き上げた。 */
  @media (max-width: 1024px) {
    .top-card { flex-direction: column; }
    .top-img { width: 100%; }
    .metrics { flex-wrap: wrap; }
    .metric { min-width: calc(50% - 4px); }
    /* ★プレイ傾向だけ100%幅にしていたため、スマホ幅で人気度/マゾ度のような
       2列組みにならずボリュームと縦に分断されていた（ユーザー指摘）。他の指標と
       同じ50%幅にして、プレイ傾向とボリュームも1行に並ぶようにする。 */
    .metric.scatter-metric { min-width: calc(50% - 4px); }
  }
  @media (max-width: 480px) {
    body { padding: 10px 12px; font-size: 14px; }
    .wrap { max-width: 100%; }
    /* スマホの指標は2×2グリッド（≤1024pxの50%ルールをそのまま生かす）。
       一度「数字3つを1行＋プレイ傾向を下段」の3+1配置にしたが、ユーザー裁定で
       50%の2×2に戻した（2026-07-30。見た目の整いは2×2が上、という判断。
       全幅縦積み時代の「散布図が画面幅いっぱいの巨大な正方形になる」問題は
       50%セルに収まることで同時に解消される）。 */
    .nav .counter { margin-right: 0; order: 10; width: 100%; text-align: center; }
    form.goto { width: 100%; }
    form.goto input { flex: 1; width: auto; }
  }

/* UFOTW・LOVENSE連動バッジ（2026-08-01）。作品名の右に置き、Fantiaの解説記事へ飛ぶ。
   目立たなすぎたため一回り大きくした（同日ユーザー指摘）。 */
.ufotw-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  flex: none; padding: 9px 18px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(168,108,255,.16), rgba(255,77,126,.16));
  border: 1px solid var(--fetish); color: var(--text);
  text-decoration: none; line-height: 1.25; transition: all .15s ease;
}
.ufotw-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(168,108,255,.34);
}
.ufotw-name { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--fetish); }
.ufotw-state { font-size: 16px; font-weight: 700; }
@media (max-width: 620px) {
  .ufotw-badge { padding: 7px 14px; }
  .ufotw-name { font-size: 11.5px; }
  .ufotw-state { font-size: 14px; }
}

/* スマホでは「ランダム」の文字を落としてサイコロだけにする（2026-08-01ユーザー指示） */
@media (max-width: 620px) {
  .nav .wide-only { display: none; }
}
