@charset "UTF-8";

/*!
Theme Name: NIJIERO
Description: NIJIERO専用子テーマ - おすすめエロゲ・エロ漫画・エロ同人を紹介するサイト
Theme URI: https://nijiero.net/
Author: NIJIERO
Template: cocoon-master
Version: 3.1.0
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  /* ============================================================
     Brand Colors — ここを変えるだけでテーマ全体の色が変わります
     ============================================================ */
  --ni-red:       #e8385b;   /* メインアクセント（レッド） */
  --ni-red-l:     #ff6b8a;   /* レッド（ライト） */
  --ni-red-d:     #c01e42;   /* レッド（ダーク） */
  --ni-red-pale:  #fff0f3;   /* レッド（極薄背景） */
  --ni-red-border:#f5c0cc;   /* レッド（ボーダー） */
  --ni-orange:    #ff7043;   /* オレンジ */
  --ni-gold:      #f5a623;   /* ゴールド（セール・スター） */

  /* Neutrals */
  --ni-dark:      #1a1a2e;   /* メインダーク（ネイビー） */
  --ni-dark-d:    #14142a;   /* ダーク（ディープ） */
  --ni-dark-2:    #2a1535;   /* ダーク（パープル寄り） */
  --ni-text:      #2d2d2d;   /* 本文テキスト */
  --ni-text-l:    #444;      /* テキスト（ライト） */
  --ni-sub:       #6b7280;   /* サブテキスト */
  --ni-sub-l:     #888;      /* サブテキスト（ライト） */
  --ni-border:    #e8e3de;   /* ボーダー */
  --ni-border-d:  #c8c0b8;   /* ボーダー（ダーク） */
  --ni-bg:        #faf9f7;   /* ページ背景 */
  --ni-bg2:       #f3f0ec;   /* セカンダリ背景 */
  --ni-white:     #ffffff;

  /* DLsite / FANZA */
  --ni-dl:        #2176ff;   /* DLsite ブルー */
  --ni-dl-d:      #0a56d0;   /* DLsite ブルー（ダーク） */

  /* Grade Colors */
  --ni-ss:        #e84393;   /* SS グレード（ピンク） */
  --ni-s:         #e8385b;   /* S グレード（レッド） */
  --ni-a:         #ff9f43;   /* A グレード（オレンジ） */
  --ni-b:         #2ecc71;   /* B グレード（グリーン） */
  --ni-c:         #3498db;   /* C グレード（ブルー） */
  --ni-d:         #95a5a6;   /* D グレード（グレー） */

  /* Typography */
  --ni-font:      'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --ni-font-en:   'Zen Kaku Gothic New', sans-serif;

  /* Spacing & Shape */
  --ni-radius:    10px;
  --ni-radius-lg: 16px;
  --ni-shadow:    0 2px 20px rgba(0,0,0,.07);
  --ni-shadow-md: 0 4px 32px rgba(0,0,0,.12);
}

/* ============================================================
   Base & Reset Overrides
   ============================================================ */
body {
  font-family: var(--ni-font);
  background: var(--ni-bg);
  color: var(--ni-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ni-red);
  transition: color .2s, opacity .2s;
}
a:hover { color: var(--ni-red-d); opacity: .85; }

/* ============================================================
   Header
   ============================================================ */
#header {
  background: var(--ni-dark) !important;
  border-bottom: 3px solid var(--ni-red) !important;
}

#header .logo-text a,
#header .site-name a {
  font-family: var(--ni-font-en) !important;
  font-weight: 900 !important;
  font-size: 1.6em !important;
  color: var(--ni-white) !important;
  letter-spacing: .05em;
  text-decoration: none;
}

#header .tagline,
#header .site-description {
  color: rgba(255,255,255,.55) !important;
  font-size: .75em !important;
}

/* ── ヘッダーロゴ横のアダルトバッジ ── */
#header .logo-box::after {
  content: '18+';
  display: inline-block;
  background: var(--ni-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   Navigation
   ============================================================ */
#navi .navi-in > ul > li > a {
  font-weight: 700;
  color: rgba(255,255,255,.85) !important;
  transition: color .2s;
}
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a {
  color: var(--ni-red-l) !important;
}
#navi {
  background: var(--ni-dark-d, #14142a) !important;
}

/* ============================================================
   Post Cards (記事カード)
   ============================================================ */
.a-wrap {
  border-radius: var(--ni-radius) !important;
  overflow: hidden;
  border: 1px solid var(--ni-border) !important;
  box-shadow: var(--ni-shadow);
  transition: transform .2s, box-shadow .2s;
  background: var(--ni-white);
}
.a-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--ni-shadow-md);
}

.a-wrap .eye-catch img {
  transition: transform .4s;
}
.a-wrap:hover .eye-catch img {
  transform: scale(1.04);
}

.a-wrap .cat-label,
.a-wrap .post-cat-label {
  background: var(--ni-red) !important;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.a-wrap .entry-title {
  font-family: var(--ni-font-en);
  font-weight: 700;
  font-size: .95em;
  line-height: 1.5;
}

/* ============================================================
   Article Page
   ============================================================ */
.entry-title {
  font-family: var(--ni-font-en) !important;
  font-weight: 900 !important;
  font-size: 1.6em !important;
  line-height: 1.4 !important;
  color: var(--ni-dark) !important;
  border-left: 5px solid var(--ni-red) !important;
  padding-left: 14px !important;
  border-bottom: none !important;
}

/* 本文見出し */
.entry-content h2 {
  font-family: var(--ni-font-en);
  font-weight: 900;
  background: var(--ni-dark);
  color: var(--ni-white) !important;
  border-left: 5px solid var(--ni-red) !important;
  padding: 12px 18px !important;
  border-radius: 0 var(--ni-radius) var(--ni-radius) 0;
  font-size: 1.2em;
  margin: 2em 0 1em;
}

.entry-content h3 {
  font-family: var(--ni-font-en);
  font-weight: 900;
  color: var(--ni-dark);
  border-bottom: 2px solid var(--ni-red);
  padding-bottom: 6px;
  font-size: 1.05em;
  margin: 1.8em 0 .8em;
}

.entry-content h4 {
  font-weight: 700;
  color: var(--ni-red-d);
  border-left: 3px solid var(--ni-red-l);
  padding-left: 10px;
  font-size: .95em;
  margin: 1.5em 0 .6em;
}

/* 本文段落 */
.entry-content p {
  line-height: 1.9;
  font-size: .95em;
  margin-bottom: 1.2em;
}

/* ============================================================
   Sidebar
   ============================================================ */
#sidebar .widget {
  background: var(--ni-white);
  border-radius: var(--ni-radius);
  border: 1px solid var(--ni-border);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--ni-shadow);
  box-sizing: border-box;
  overflow: hidden; /* タイトルのネガティブマージンによる崩れ防止 */
  word-break: break-word; /* 長いテキストの折り返し */
}

#sidebar .widget-title,
#sidebar .widgettitle,
#sidebar .widget_title,
#sidebar h2.widget-title,
#sidebar .widget > h2,
#sidebar .widget > .widget-title {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: .9em;
  line-height: 1.4; /* タイトルが2行になっても崩れないよう */
  color: var(--ni-white) !important;
  background: var(--ni-dark);
  margin: -18px -18px 14px;
  padding: 10px 18px;
  border-radius: var(--ni-radius) var(--ni-radius) 0 0;
  border-left: 4px solid var(--ni-red);
  display: block;
  box-sizing: border-box;
  width: calc(100% + 36px); /* padding 18px × 2 分を補正 */
}

/* ============================================================
   Category Labels
   ============================================================ */
.cat-label-1  { background: var(--ni-red, #e8385b) !important; } /* エロゲ */
.cat-label-2  { background: #ee5a24 !important; } /* エロ漫画 */
.cat-label-3  { background: #8854d0 !important; } /* 同人誌 */
.cat-label-4  { background: #0984e3 !important; } /* 同人ゲーム */
.cat-label-5  { background: #00b894 !important; } /* レビュー */

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumb {
  background: var(--ni-bg2) !important;
  border-radius: var(--ni-radius);
  padding: 8px 14px !important;
  font-size: .78em !important;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background: var(--ni-dark) !important;
  color: rgba(255,255,255,.6) !important;
  border-top: 3px solid var(--ni-red) !important;
}
#footer a { color: rgba(255,255,255,.7) !important; }
#footer a:hover { color: var(--ni-red-l) !important; }
#footer .footer-copyright {
  font-size: .75em;
  text-align: center;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .current,
.page-numbers.current {
  background: var(--ni-red) !important;
  color: #fff !important;
  border-color: var(--ni-red) !important;
}
.pagination a,
.page-numbers a {
  border-color: var(--ni-border) !important;
  color: var(--ni-text) !important;
}
.pagination a:hover,
.page-numbers a:hover {
  background: var(--ni-red-pale) !important;
  border-color: var(--ni-red) !important;
  color: var(--ni-red) !important;
}

/* ============================================================
   Tags
   ============================================================ */
.post-tags a,
.tag-cloud-link {
  background: var(--ni-bg2) !important;
  border: 1px solid var(--ni-border) !important;
  color: var(--ni-sub) !important;
  border-radius: 50px !important;
  padding: 3px 12px !important;
  font-size: .75em !important;
  transition: background .2s, color .2s;
}
.post-tags a:hover,
.tag-cloud-link:hover {
  background: var(--ni-red-pale) !important;
  color: var(--ni-red) !important;
  border-color: var(--ni-red-l) !important;
}

/* ============================================================
   SNS Share Buttons
   ============================================================ */
.sns-buttons .sns-button {
  border-radius: var(--ni-radius) !important;
  font-weight: 700;
}

/* ============================================================
   Table of Contents (目次)
   ============================================================ */
.table-of-contents {
  background: var(--ni-bg2) !important;
  border: 1px solid var(--ni-border) !important;
  border-left: 4px solid var(--ni-red) !important;
  border-radius: 0 var(--ni-radius) var(--ni-radius) 0 !important;
}
.table-of-contents .toc-title {
  font-family: var(--ni-font-en);
  font-weight: 900;
  color: var(--ni-dark) !important;
}

/* ============================================================
   Blockquote
   ============================================================ */
blockquote {
  border-left: 4px solid var(--ni-red) !important;
  background: var(--ni-red-pale) !important;
  border-radius: 0 var(--ni-radius) var(--ni-radius) 0;
  padding: 14px 20px !important;
  font-size: .9em;
}

/* ============================================================
   Info / Note Boxes (Cocoon標準)
   ============================================================ */
.memo-box { border-color: var(--ni-red) !important; }
.memo-box .memo-box-label { background: var(--ni-red) !important; }

/* ============================================================
   18禁 警告バナー（サイト全体に1回出す用）
   ============================================================ */
#nijiero-age-notice {
  background: linear-gradient(135deg, var(--ni-dark, #1a1a2e) 0%, #2d1b36 100%);
  border-bottom: 3px solid var(--ni-red);
  color: rgba(255,255,255,.8);
  text-align: center;
  font-size: .8em;
  padding: 6px 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
#nijiero-age-notice span {
  color: var(--ni-red-l);
  font-weight: 900;
}

/* ============================================================
   ──── ショートコード共通スタイル ────
   ============================================================ */

/* ── [game_info] ── */
.nijiero-game-info {
  background: var(--ni-white);
  border: 1px solid var(--ni-border);
  border-radius: var(--ni-radius-lg);
  overflow: hidden;
  margin: 28px 0;
  box-shadow: var(--ni-shadow-md);
}
.nijiero-game-info__head {
  background: var(--ni-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nijiero-game-info__head-title {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: .8em;
  color: rgba(255,255,255,.55);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nijiero-game-info__head-badge {
  background: var(--ni-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 50px;
}
.nijiero-game-info__body {
  display: flex;
  gap: 24px;
  padding: 22px;
  flex-wrap: wrap;
}
.nijiero-game-info__cover {
  flex-shrink: 0;
  width: 180px;
}
.nijiero-cover-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.nijiero-cover-placeholder {
  width: 180px;
  height: 240px;
  background: var(--ni-bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
}
.nijiero-game-info__meta { flex: 1; min-width: 200px; }
.nijiero-game-title {
  font-family: var(--ni-font-en) !important;
  font-size: 1.4em !important;
  font-weight: 900 !important;
  color: var(--ni-dark) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.3 !important;
}
.nijiero-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.nijiero-info-table th,
.nijiero-info-table td {
  padding: 6px 10px;
  border: 1px solid var(--ni-border);
  text-align: left;
  vertical-align: middle;
}
.nijiero-info-table th {
  background: var(--ni-bg2);
  width: 36%;
  font-weight: 700;
  color: var(--ni-sub);
  white-space: nowrap;
}

/* ── 購入ボタン ── */
.nijiero-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.nijiero-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .85em;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, filter .15s;
  font-family: var(--ni-font);
  letter-spacing: .03em;
}
.nijiero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.nijiero-btn--dlsite {
  background: linear-gradient(135deg, var(--ni-red-l, #ff6b8a), var(--ni-red, #e8385b));
  color: #fff !important;
}
.nijiero-btn--fanza {
  background: linear-gradient(135deg, var(--ni-a, #ff9f43), #ee5a24);
  color: #fff !important;
}
.nijiero-btn-icon { font-size: 1.1em; }

/* ── [review_score] ── */
.nijiero-review-score {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--ni-white);
  border: 1px solid var(--ni-border);
  border-radius: var(--ni-radius-lg);
  padding: 22px;
  margin: 28px 0;
  box-shadow: var(--ni-shadow-md);
  flex-wrap: wrap;
}
.nijiero-review-score__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nijiero-total-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid;
}
.nijiero-total-num {
  font-family: var(--ni-font-en);
  font-size: 2.1em;
  font-weight: 900;
  line-height: 1;
}
.nijiero-total-label { font-size: 10px; color: var(--ni-sub); }
.nijiero-grade--ss { border-color: var(--ni-ss); color: var(--ni-ss); }
.nijiero-grade--s  { border-color: var(--ni-s);  color: var(--ni-s);  }
.nijiero-grade--a  { border-color: var(--ni-a);  color: var(--ni-a);  }
.nijiero-grade--b  { border-color: var(--ni-b);  color: var(--ni-b);  }
.nijiero-grade--c  { border-color: var(--ni-c);  color: var(--ni-c);  }
.nijiero-grade--d  { border-color: var(--ni-d);  color: var(--ni-d);  }
.nijiero-grade-badge {
  font-family: var(--ni-font-en);
  font-size: 1.2em;
  font-weight: 900;
  padding: 2px 16px;
  border-radius: 50px;
  color: #fff;
}
.nijiero-grade--ss .nijiero-grade-badge { background: var(--ni-ss); }
.nijiero-grade--s  .nijiero-grade-badge { background: var(--ni-s);  }
.nijiero-grade--a  .nijiero-grade-badge { background: var(--ni-a);  }
.nijiero-grade--b  .nijiero-grade-badge { background: var(--ni-b);  }
.nijiero-grade--c  .nijiero-grade-badge { background: var(--ni-c);  }
.nijiero-grade--d  .nijiero-grade-badge { background: var(--ni-d);  }
.nijiero-review-score__detail { flex: 1; min-width: 220px; }
.nijiero-score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12.5px;
}
.nijiero-score-bar__label { width: 90px; color: var(--ni-sub); flex-shrink: 0; }
.nijiero-score-bar__track {
  flex: 1;
  height: 9px;
  background: var(--ni-bg2);
  border-radius: 6px;
  overflow: hidden;
}
.nijiero-score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ni-red-l), var(--ni-red));
  border-radius: 6px;
  transition: width .7s cubic-bezier(.4,0,.2,1);
}
.nijiero-score-bar__num { width: 28px; text-align: right; font-weight: 700; }
.nijiero-score-comment {
  font-size: 12.5px;
  color: var(--ni-sub);
  background: var(--ni-bg2);
  padding: 9px 13px;
  border-radius: 8px;
  margin: 10px 0 0;
  line-height: 1.7;
  border-left: 3px solid var(--ni-red-l);
}

/* ── [review_points] ── */
.nijiero-review-points {
  display: flex;
  gap: 14px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.nijiero-points {
  flex: 1;
  min-width: 200px;
  border-radius: var(--ni-radius);
  padding: 16px 18px;
}
.nijiero-points--good { background: #eafaf3; border: 1px solid #a9dfbf; }
.nijiero-points--bad  { background: #fff2f2; border: 1px solid #f5c6c6; }
.nijiero-points__title {
  font-family: var(--ni-font-en) !important;
  font-size: .9em !important;
  font-weight: 900 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.nijiero-points--good .nijiero-points__title { color: #1a7a45; }
.nijiero-points--bad  .nijiero-points__title { color: #b83232; }
.nijiero-points ul { margin: 0; padding: 0; list-style: none; }
.nijiero-points li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 5px;
}
.nijiero-point-icon { flex-shrink: 0; margin-top: 1px; }

/* ── [game_gallery] ── */
.nijiero-gallery { margin: 28px 0; }
.nijiero-gallery__title {
  font-family: var(--ni-font-en) !important;
  font-size: .9em !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  border-left: 4px solid var(--ni-red) !important;
  padding-left: 10px !important;
  border-bottom: none !important;
  background: none !important;
  color: var(--ni-dark) !important;
}
.nijiero-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.nijiero-gallery-item { overflow: hidden; border-radius: 6px; }
.nijiero-gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s;
}
.nijiero-gallery-item:hover img { transform: scale(1.05); }
.nijiero-gallery__note { font-size: 11px; color: #bbb; margin: 8px 0 0; }

/* ── [review_verdict] ── */
.nijiero-verdict {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--ni-radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.nijiero-verdict--buy  { background: linear-gradient(135deg, #fff0f2, #ffe0e6); border: 2px solid var(--ni-red); }
.nijiero-verdict--sale { background: linear-gradient(135deg, #fff8e6, #fff3d0); border: 2px solid var(--ni-gold); }
.nijiero-verdict--skip { background: var(--ni-bg2); border: 2px solid #c8c8c8; }
.nijiero-verdict__icon { font-size: 2.4em; flex-shrink: 0; }
.nijiero-verdict__label {
  display: block;
  font-family: var(--ni-font-en);
  font-size: 1.1em;
  font-weight: 900;
}
.nijiero-verdict--buy  .nijiero-verdict__label { color: var(--ni-red); }
.nijiero-verdict--sale .nijiero-verdict__label { color: #b8760a; }
.nijiero-verdict--skip .nijiero-verdict__label { color: var(--ni-sub); }
.nijiero-verdict__message { margin: 4px 0 0; font-size: .9em; color: var(--ni-text); line-height: 1.6; }

/* ── [img_caption] ── */
.nijiero-img-caption { margin: 24px 0; padding: 0; }
.nijiero-img-caption img {
  width: 100%;
  display: block;
  border-radius: var(--ni-radius) var(--ni-radius) 0 0;
}
.nijiero-img-caption figcaption {
  padding: 13px 18px;
  line-height: 1.85;
  background: var(--ni-bg2);
  border: 1px solid var(--ni-border);
  border-top: none;
  border-radius: 0 0 var(--ni-radius) var(--ni-radius);
}

/* ── [ni_box] インフォボックス ── */
.nijiero-box {
  border-radius: var(--ni-radius);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 5px solid;
  font-size: .9em;
  line-height: 1.8;
}
.nijiero-box--info   { background: #eff6ff; border-color: #3b82f6; }
.nijiero-box--warn   { background: #fffbeb; border-color: var(--ni-gold); }
.nijiero-box--check  { background: #f0fdf4; border-color: #22c55e; }
.nijiero-box--caution{ background: var(--ni-red-pale, #fff0f3); border-color: var(--ni-red); }
.nijiero-box__title  {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: 1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── [ni_ranking] ランキングボックス ── */
.nijiero-ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--ni-white);
  border: 1px solid var(--ni-border);
  border-radius: var(--ni-radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--ni-shadow);
  transition: transform .2s, box-shadow .2s;
}
.nijiero-ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--ni-shadow-md);
}
.nijiero-rank-num {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: 2em;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  padding-top: 4px;
}
.nijiero-rank-num.rank-1 { color: var(--ni-gold, #f5a623); }
.nijiero-rank-num.rank-2 { color: #9ba4b5; }
.nijiero-rank-num.rank-3 { color: #cd7f32; }
.nijiero-rank-num.rank-other { color: var(--ni-sub); font-size: 1.4em; }
.nijiero-ranking-item__thumb { width: 80px; flex-shrink: 0; }
.nijiero-ranking-item__thumb img { width: 100%; border-radius: 6px; display: block; }
.nijiero-ranking-item__body { flex: 1; }
.nijiero-ranking-item__title {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: .95em;
  margin: 0 0 6px;
  color: var(--ni-dark);
  line-height: 1.4;
}
.nijiero-ranking-item__desc { font-size: .82em; color: var(--ni-sub); line-height: 1.6; margin-bottom: 8px; }
.nijiero-ranking-item__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ni-red);
  color: #fff;
  font-weight: 900;
  font-size: .78em;
  padding: 2px 10px;
  border-radius: 50px;
  margin-right: 8px;
}

/* ── [ni_spec] スペックテーブル ── */
.nijiero-spec {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88em;
}
.nijiero-spec th {
  background: var(--ni-dark);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 700;
  width: 32%;
  border: 1px solid #333;
}
.nijiero-spec td {
  padding: 9px 14px;
  border: 1px solid var(--ni-border);
  background: var(--ni-white);
  line-height: 1.6;
}
.nijiero-spec tr:nth-child(even) td { background: var(--ni-bg2); }

/* ── [affiliate_btn] ── */
/* styles already covered in btn section above */

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 834px) {
  .nijiero-game-info__body { flex-direction: column; }
  .nijiero-game-info__cover { width: 100%; max-width: 180px; margin: 0 auto; }
  .nijiero-review-score { flex-direction: column; align-items: flex-start; }
  .nijiero-review-points { flex-direction: column; }
  .entry-title { font-size: 1.3em !important; }
}

@media screen and (max-width: 480px) {
  .nijiero-btn { padding: 10px 16px; font-size: .82em; }
  .nijiero-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .nijiero-ranking-item__thumb { display: none; }
}

/* ============================================================
   ★★★ サイドバー表示修正（2カラムレイアウト強制）★★★
   スクリーンショットで確認されたサイドバー非表示の修正
   ============================================================ */
@media screen and (min-width: 834px) {

  /* Cocoon の content-wrap を常に flex 2カラムに */
  .content-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 24px;
    box-sizing: border-box;
  }

  /* 記事本文エリア */
  #main,
  .main,
  .main-wrap {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  /* サイドバーエリア強制表示 */
  #sidebar,
  .sidebar,
  .widget-area {
    width: 280px !important;
    min-width: 280px !important;
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* スティッキーサイドバー（Affinger風）*/
@media screen and (min-width: 834px) {
  .ni-sticky-sidebar {
    position: sticky;
    top: 80px;
  }
}

/* ============================================================
   Affinger風 機能追加
   ============================================================ */

/* ── スクロール読み込みプログレスバー ── */
#ni-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ni-red), var(--ni-orange));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── 記事カードの NEW / HOT バッジ ── */
.a-wrap .new-label-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ni-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: .05em;
  pointer-events: none;
}
.a-wrap .hot-label-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ni-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: .05em;
  pointer-events: none;
}
.a-wrap { position: relative; }

/* ── 読了時間表示 ── */
.ni-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78em;
  color: var(--ni-sub);
  background: var(--ni-bg2);
  padding: 3px 10px;
  border-radius: 50px;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.ni-reading-time::before {
  content: '⏱';
  font-size: 1em;
}

/* ── フローティングSNSシェアボタン ── */
#ni-float-share {
  position: fixed;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}
.ni-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none !important;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.ni-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.ni-float-btn--x       { background: #000; color: #fff !important; }
.ni-float-btn--copy    { background: var(--ni-sub); color: #fff !important; font-size: 13px; }
.ni-float-btn--top     { background: var(--ni-dark); color: rgba(255,255,255,.7) !important; font-size: 16px; }

/* ── ページトップボタン強化 ── */
#ni-back-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 28px;
  background: var(--ni-dark);
  color: rgba(255,255,255,.8) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
  z-index: 1000;
  cursor: pointer;
  border: none;
}
#ni-back-top.show { display: flex; }
#ni-back-top:hover { background: var(--ni-red); transform: translateY(-2px); }

/* ── 記事末尾 ライター著者ボックス（Affinger風）── */
@media (max-width: 600px) {
}

/* ── 目次（TOC）スタイル強化 ── */
.toc-box,
#ez-toc-container,
.table-of-contents {
  background: var(--ni-bg2) !important;
  border: 1px solid var(--ni-border) !important;
  border-left: 4px solid var(--ni-red) !important;
  border-radius: 0 var(--ni-radius) var(--ni-radius) 0 !important;
  padding: 16px 20px !important;
  margin: 28px 0 !important;
}

/* ── サイドバー スティッキー広告ウィジェット ── */
.ni-sidebar-sticky-ad {
  position: sticky;
  top: 80px;
  background: var(--ni-white);
  border: 1px solid var(--ni-border);
  border-radius: var(--ni-radius);
  padding: 14px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--ni-shadow);
}
.ni-sidebar-sticky-ad__label {
  font-size: 10px;
  color: var(--ni-sub);
  margin-bottom: 8px;
  text-align: center;
}

/* ── ランキングウィジェット（サイドバー用）── */
.ni-sidebar-ranking__item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ni-border);
  align-items: center;
  text-decoration: none !important;
}
.ni-sidebar-ranking__item:last-child { border-bottom: none; }
.ni-sidebar-ranking__num {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: 1.2em;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
  color: var(--ni-sub);
}
.ni-sidebar-ranking__num.r1 { color: var(--ni-gold, #f5a623); }
.ni-sidebar-ranking__num.r2 { color: #9ba4b5; }
.ni-sidebar-ranking__num.r3 { color: #cd7f32; }
.ni-sidebar-ranking__thumb {
  width: 52px;
  flex-shrink: 0;
}
.ni-sidebar-ranking__thumb img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.ni-sidebar-ranking__title {
  font-size: .8em;
  font-weight: 700;
  color: var(--ni-text) !important;
  line-height: 1.5;
}

/* ── おすすめ記事ボックス（Affinger風）── */
.ni-pickup-box {
  background: linear-gradient(135deg, var(--ni-red-pale), #fff9f0);
  border: 2px solid var(--ni-red);
  border-radius: var(--ni-radius-lg);
  padding: 18px;
  margin: 32px 0;
}
.ni-pickup-box__title {
  font-family: var(--ni-font-en);
  font-weight: 900;
  font-size: .85em;
  color: var(--ni-red);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ni-pickup-box__title::before {
  content: '★';
  color: var(--ni-gold);
}
.ni-pickup-box a {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none !important;
  color: var(--ni-text) !important;
  transition: opacity .2s;
}
.ni-pickup-box a:hover { opacity: .8; }
.ni-pickup-box__thumb {
  width: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.ni-pickup-box__thumb img { width: 100%; display: block; }
.ni-pickup-box__text {
  font-size: .88em;
  font-weight: 700;
  line-height: 1.5;
}

/* ── 記事ヘッダー情報バー ── */
.ni-entry-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ni-border);
  margin-bottom: 20px;
  font-size: .8em;
  color: var(--ni-sub);
}
.ni-entry-meta-bar .ni-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── コピーバナー ── */
.ni-copy-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--ni-dark);
  color: rgba(255,255,255,.9);
  font-size: .8em;
  padding: 8px 20px;
  border-radius: 50px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.ni-copy-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==============================================
   NIJIERO v13 追加スタイル
   ① スクロール追従TOC（デスクトップ）
   ② アイコン非表示クラス
   ③ 関連記事・also-read 見た目改善
============================================== */

/* ① スクロール追従TOC
   .ni-toc に sticky クラスが付いているとき
   （JavaScriptで付与） */
.ni-toc--sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* ② アイコンを非表示にするユーティリティクラス */
.ni-no-icon .ni-also-read__title::before,
.ni-no-icon .ni-related-posts__title::before {
    display: none !important;
    content: none !important;
}

/* ③ also-read タイトル改善（アイコンなし版） */
.ni-also-read__title {
    padding-left: 12px !important;
    border-left: 3px solid var(--ni-red, #e8385b) !important;
}

/* ③ 関連記事タイトル改善 */
.ni-related-posts__title {
    padding-left: 12px !important;
    border-left: 3px solid var(--ni-red, #e8385b) !important;
}


/* ==============================================
   ④ 赤丸マーカー非表示修正（スクリーンショット対応）
   Cocoon デフォルトの entry-content ul > li::before / ::marker
   がコンテナ外にはみ出す問題を修正。
   ショートコード専用リスト（.ni-*）は除外。
============================================== */

/* --- クラスなし ul の ::before を非表示 --- */
.entry-content ul:not([class]) > li::before,
.entry-content ul:not([class]) > li::marker {
    display: none !important;
    content: none !important;
    color: transparent !important;
}

/* --- Cocoon がクラス付き ul に赤丸を付ける場合も封じる --- */
/* （.is-style-* 等 Cocoon のブロックスタイル） */
.entry-content ul:not([class*="ni-"]):not([class*="wp-"]) > li::before {
    display: none !important;
    content: none !important;
}

/* --- ni-* ショートコード内の ::before は温存 --- */
/* （.ni-points-good li::before / .ni-summary-list li::before 等） */
/* ni-* クラス付き ul への汎用リセットは行わない */

/* --- はみ出し防止: ni-* 以外のコンテナに overflow 設定 --- */
.entry-content > p,
.entry-content > ul,
.entry-content > ol {
    overflow: visible;
}

/* --- ::marker の色をテーマカラーに統一（◎等を非表示にしない場合の代替） --- */
.entry-content ul:not([class]) > li::marker {
    color: var(--ni-dark, #1a1a2e) !important;
}
