/* 夜のホンネ — ランキング記事の共通スタイル
   cv.html のインライン style から切り出したもの。cv.html 自体は従来どおり
   インラインを持つため、ここを編集しても cv.html には影響しない。 */
/* ---- TOP10 ranking layout (scoped) ---- */
  .ranking-list { margin: 40px 0 0; }
  .ranking-item {
    border-top: 1px solid var(--line);
    padding: 40px 0 44px;
    scroll-margin-top: 80px;
  }
  .ranking-item:last-child { border-bottom: 1px solid var(--line); }
  .ranking-item.rank-01 {
    background: linear-gradient(180deg, rgba(139,46,42,.04), transparent);
    padding: 48px 20px 56px;
    border-top: 2px solid var(--accent);
  }
  .rank-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
  }
  .rank-num {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
    letter-spacing: -.02em;
  }
  .ranking-item.rank-01 .rank-num { color: var(--accent); font-size: 68px; }
  .rank-label {
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--text-mute);
    text-transform: uppercase;
  }
  .rank-item-name {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
  }
  .ranking-item.rank-01 .rank-item-name { font-size: 26px; }
  .rank-meta {
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: .05em;
    margin-bottom: 20px;
  }
  .rank-meta strong { color: var(--accent); font-weight: 500; }
  .rank-body { margin: 20px 0 24px; }
  .rank-body p { margin-bottom: 1em; }
  .rank-body .placeholder {
    background: var(--bg-alt);
    border: 1px dashed var(--line);
    color: var(--text-mute);
    padding: 16px 18px;
    font-size: 13px;
    font-family: var(--sans);
    line-height: 1.6;
    border-radius: 4px;
  }
  .rank-buy { margin-top: 20px; }
  /* 楽天テーブルのモバイル対応 (user提供の504px固定を上書き) */
  .rank-buy > table,
  .rank-buy > table div[style*="width:504px"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .rank-buy img { max-width: 100%; height: auto; }
  .rank-buy-official {
    display: block;
    border: 1px solid var(--line);
    padding: 16px 18px;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: var(--text);
    transition: border-color .2s;
  }
  .rank-buy-official:hover { border-color: var(--accent); }
  .rank-buy-official .buy-brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
  }
  .rank-buy-official .buy-note {
    font-size: 12px;
    color: var(--text-mute);
    display: block;
    margin-top: 6px;
  }
  .rank-buy-official .buy-arrow {
    color: var(--accent);
    font-size: 12px;
    margin-left: 6px;
  }
  .rank-buy-sextasy {
    display: flex;
    gap: 14px;
    border: 1px solid var(--line);
    padding: 16px;
    background: #fff;
    border-radius: 4px;
    align-items: flex-start;
  }
  .rank-buy-sextasy img { width: 120px; height: auto; flex-shrink: 0; }
  .rank-buy-sextasy .buy-body { flex: 1; min-width: 0; }
  .rank-buy-sextasy h4 { font-family: var(--serif); font-size: 15px; margin-bottom: 4px; }
  .rank-buy-sextasy .buy-price { color: var(--text-mute); font-size: 12px; margin-bottom: 6px; }
  .rank-buy-sextasy .buy-desc { font-size: 12px; color: var(--text-mute); margin-bottom: 10px; line-height: 1.6; }
  .rank-buy-sextasy .buy-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
  .rank-buy-sextasy .buy-ctas a {
    font-size: 11px; padding: 6px 10px;
    border: 1px solid var(--line);
    color: var(--text);
    letter-spacing: .1em;
  }
  .rank-buy-sextasy .buy-ctas a.primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
  }

  .toc-jump {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: 18px 20px;
    margin: 32px 0;
    font-size: 13px;
  }
  .toc-jump h3 {
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: .1em;
    margin-bottom: 10px;
  }
  .toc-jump ol { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
  .toc-jump ol li {
    padding: 4px 0;
    border-bottom: 1px dotted var(--line-soft);
  }
  .toc-jump ol li:last-child { border-bottom: none; }
  .toc-jump ol li a { color: var(--text); }
  .toc-jump ol li a:hover { color: var(--accent); }
  .toc-jump ol li .n { color: var(--text-mute); font-family: var(--serif); font-weight: 700; margin-right: 8px; display: inline-block; min-width: 34px; }

  /* chapter hero — 章 h2 直下の実画像 */
  .chapter-hero { margin: 28px 0 32px; text-align: center; }
  .chapter-hero img { width: 100%; height: auto; display: block; border-radius: 2px; }

  /* hero サブタイトル（h1 内・サイズ小さめ、色は main h1 と同じ bright cream 継承） */
  .cv-hero h1 .sub {
    display: block;
    font-size: .55em;
    font-weight: 400;
    /* color 未指定 = 親 h1（cv-hero の bright cream #faf8f5）を継承。
       body p の #cbc4b7 と被らないため意図的に inherit */
    letter-spacing: .05em;
    margin-top: 14px;
    line-height: 1.6;
    opacity: .88;
  }

  @media (min-width: 768px) {
    .rank-num { font-size: 72px; }
    .ranking-item.rank-01 .rank-num { font-size: 96px; }
    .rank-item-name { font-size: 26px; }
    .ranking-item.rank-01 .rank-item-name { font-size: 32px; }
  }

  /* ---- STERON-type ranking block (v2, 2026-09-14) ---- */
  .ranking-item.rank-01 { padding: 56px 0 48px; background: none; border-top: 1px solid var(--line); }
  .rank-head {
    font-family: var(--serif);            /* ブランド維持。sans にするなら var(--sans) */
    font-size: 22px; line-height: 1.45; font-weight: 700; color: var(--text);
    margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  .rank-head .pos { color: var(--accent); margin-right: .3em; }
  .rank-head .hook { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-mute); margin-top: 6px; letter-spacing: .04em; }
  .rank-photo { margin: 0 0 20px; }
  .rank-photo img { width: 100%; max-width: 520px; height: auto; border-radius: 4px; display: block; }
  .rank-photo figcaption { font-size: 11px; color: var(--text-mute); margin-top: 6px; }
  .rank-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
  .rank-cta a {
    display: block; text-align: center; padding: 14px 10px;
    border: 1px solid var(--accent); color: var(--accent); background: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: .04em; border-radius: 3px;
    transition: background .2s, color .2s;
  }
  .rank-cta a:hover { background: var(--accent); color: #fff; }
  .rank-cta.bottom { margin: 28px 0 0; }
  .rank-spec { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
  .rank-spec th, .rank-spec td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); line-height: 1.6; }
  .rank-spec th { width: 30%; font-weight: 700; color: var(--text); }
  .rank-spec td { color: var(--text); }
  .rank-spec .star { color: var(--text); letter-spacing: .05em; }
  .rank-spec .todo { color: var(--text-mute); font-size: 12px; }
  .rank-spec tr:first-child th, .rank-spec tr:first-child td { background: #eef4fa; font-weight: 700; }   /* STERON: 最安値行を淡青で強調 */
  .rank-spec tr:nth-child(even) th, .rank-spec tr:nth-child(even) td { background: #f7f7f7; }            /* 縞 */
  .rank-head { position: relative; }
  .rank-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: #e40000; }   /* STERON: 見出し左下の赤線 */
  .rank-photo.mid { margin: 4px 0 28px; }
  .hero-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 32px; }
  .hero-grid a { display: block; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
  .hero-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .toc { margin: 0 0 40px; background: var(--bg-alt); }
  .toc summary { justify-content: center; gap: 10px; font-size: 14px; letter-spacing: .15em; }
  .toc summary::after { content: "［開く］"; font-size: 12px; transform: none; }
  .toc[open] summary::after { content: "［閉じる］"; transform: none; }
  .toc ol.sub { padding: 6px 0 0 0; counter-reset: none; }
  .toc ol.sub li { counter-increment: none; border: none; padding: 4px 0 4px 8px; font-size: 12px; color: var(--text-mute); }
  .toc ol.sub li::before { content: none; }
  .type-map { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 32px; }
  .type-card { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 12px; }
  .type-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--text); }
  .type-desc { font-size: 12px; color: var(--text-mute); margin: 2px 0 10px; }
  .type-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .type-thumbs a { display: block; aspect-ratio: 1; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
  .type-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 600px) { .hero-grid { gap: 6px; } .type-map { gap: 8px; } .type-card { padding: 10px; } .type-name { font-size: 14px; } .type-desc { font-size: 11px; } }
  .faq, .author-box, .related { max-width: 900px; margin-left: auto; margin-right: auto; }
  .article-wrap > .faq, .article-wrap > .related { padding: 0; }
  .ranking-item .rank-buy { margin: 0 0 24px; }
  .rank-cta.single { grid-template-columns: 1fr; }
  .ranking-item { padding: 56px 0 48px; }
  .article-dates { font-size: 13px; color: var(--text-mute); margin: 0 0 16px; }
  .hero-products { margin: 0 0 36px; }
  .hero-products img { border: 1px solid var(--line-soft); }
  .hero-products figcaption { font-size: 12px; color: var(--text-mute); margin-top: 8px; }
  .rank-photo.mid img { max-width: 500px; margin: 0 auto; }
  .ranking-item .rank-body { max-width: 680px; font-size: 15px; line-height: 1.9; color: var(--text); margin: 0; }
  .ranking-item .rank-body p { margin: 0 0 1.6em; color: var(--text); font-size: 15px; line-height: 1.9; }
  .ranking-item .rank-body strong { color: var(--on-deep); font-weight: 700; }
  /* 記事全体の色役割（STERON と同じ）: 本文 --text / 太字 --on-deep / 強調 --accent / 出典 青 */
  .article-body p, .article-body li { color: var(--text); }
  .article-body strong { color: var(--on-deep); }
  .article-body .key, .rank-body .key { color: #e40000; font-weight: 700; }
  .rank-body p { color: var(--text); font-size: 15px; line-height: 1.9; }
  .rank-body strong { color: var(--on-deep); }
  .ranking-item .rank-body ul { margin: 0 0 1.6em 1.3em; }
  .ranking-item .rank-body li { margin-bottom: .5em; }
  .rank-body sup a { color: #0645ad; font-size: 11px; text-decoration: none; }   /* 出典リンクは青 */
  .editor-note { border-left: 3px solid var(--line); padding: 4px 14px; color: var(--text-mute); font-size: 13px; margin: 0 0 1.6em; line-height: 1.8; }
  @media (max-width: 600px) { .rank-cta { grid-template-columns: 1fr; } .rank-head { font-size: 20px; } .rank-spec { font-size: 13px; } .rank-spec th, .rank-spec td { padding: 9px 6px; } }

  /* ---- コントラスト修正 ----
     比較表は画像を含まないのでダーク基調に寄せる。
     商品カードは中の商品画像が白背景なので白のまま残し、文字側を暗くする。 */
  .rank-spec tr:first-child th, .rank-spec tr:first-child td { background: rgba(212,175,106,.13); }
  .rank-spec tr:nth-child(even) th, .rank-spec tr:nth-child(even) td { background: rgba(255,255,255,.04); }
  .rank-spec .todo { color: #aaa3bd; }

  .rank-buy-official { color: #1a1a1a; }
  .rank-buy-official .buy-note { color: #5c5667; }
  .rank-buy-official .buy-arrow { color: #8a6b2b; }
  .rank-buy-sextasy { color: #1a1a1a; }
  .rank-buy-sextasy .buy-price, .rank-buy-sextasy .buy-desc { color: #5c5667; }
  .rank-buy-sextasy .buy-ctas a { color: #1a1a1a; border-color: rgba(0,0,0,.2); }
  .rank-buy-sextasy .buy-ctas a.primary { color: #2a1f08; }
  .type-name { color: #1a1a1a; }
  .type-desc { color: #5c5667; }

  /* 楽天埋め込みは白地固定。body の明色が継承されるのを打ち消す */
  .rank-buy a, .rank-buy span, .rank-buy p { color: #1a1a1a; }
  .rank-buy span[style*="#BBB"], .rank-buy span[style*="#bbb"] { color: #6b6675 !important; }

  .rank-cta a { color: #7a5c23; }
  .rank-cta a:hover { background: var(--accent); color: #241a05; }

  .article-body .key, .rank-body .key { color: #ff6b5c; }
  .rank-head::after { background: #ff6b5c; }
  .rank-body sup a { color: #8fb8ff; }

/* =========== 1位へ飛ぶ固定バー（ランキング記事用） ===========
   記事が長いので、読んでいる途中でいつでも結論へ移動できるようにする。
   1位のセクションが画面に入っている間は隠す（いま見ているものへの導線は不要なため）。
   style.css の .mini-bar とは別物。z-index も競合しないよう 26 にしてある。 */
.rank1-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 26;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(12,16,39,.96) 60%, rgba(12,16,39,0));
  transform: translateY(130%);
  transition: transform .3s ease;
  pointer-events: none;
}
.rank1-bar.visible { transform: translateY(0); }
.rank1-bar a {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 14px 20px;
  background: var(--accent);
  color: #241a05;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: background .2s;
}
.rank1-bar a:hover { background: var(--accent-hover); }
.rank1-bar .label { font-size: 10px; letter-spacing: .2em; opacity: .75; }
