/* =========================================================
   人気ランキング（2026-11-09）— js/rank.js と index.html の #rank
   暗いページの中で、ここだけ生成りの地に黒文字（FAQ後の案内カードと同じ配色）
   ========================================================= */
.rank {
  --rk-ink: #0b0b0e;
  --rk-dim: rgba(11, 11, 14, 0.58);
  --rk-line: rgba(11, 11, 14, 0.12);
  --rk-up: #e8322b;
  --rk-down: #2a63e8;
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--ink);
  color: var(--rk-ink);
  padding: clamp(56px, 9vh, 104px) var(--pad) clamp(48px, 8vh, 88px);
}
.rank[hidden] { display: none !important; }
/* 大きな「No.1」を右上にはみ出させて敷く */
.rank::before {
  content: "No.1";
  position: absolute;
  right: -0.04em;
  top: -0.13em;
  font-family: var(--f-en);
  font-size: clamp(200px, 30vw, 500px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(11, 11, 14, 0.045);
  pointer-events: none;
  user-select: none;
}
.rk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rank-in { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

/* ---- 見出しとタブ ---- */
.rank-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; }
.rank-title { display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 400; }
.rank-title-en { font-family: var(--f-en); font-size: clamp(56px, 8vw, 120px); line-height: 0.9; letter-spacing: 0.01em; }
.rank-title-ja { font-family: var(--f-ja-s); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--rk-dim); }
.rank-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 100px; background: rgba(11, 11, 14, 0.07); }
.rank-tab {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 104px; padding: 10px 18px 9px; border: 0; border-radius: 100px;
  background: transparent; color: var(--rk-ink); cursor: pointer;
  font: inherit; line-height: 1; transition: background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rank-tab[hidden] { display: none; }
.rank-tab b { font-family: var(--f-en); font-weight: 400; font-size: 19px; letter-spacing: 0.06em; }
.rank-tab small { font-family: var(--f-ja-s); font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; opacity: 0.6; }
.rank-tab:hover { background: rgba(11, 11, 14, 0.08); }
.rank-tab[aria-selected="true"] { background: var(--rk-ink); color: var(--ink); }
.rank-tab:focus-visible { outline: 2px solid var(--rk-ink); outline-offset: 2px; }
.rank-date { margin: 22px 0 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--rk-dim); }
.rank-date::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--rk-up); vertical-align: 1px; animation: rk-blink 1.6s ease-in-out infinite; }
@keyframes rk-blink { 50% { opacity: 0.25; } }
.rank-note { margin: 26px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--rk-dim); }
/* DATA CENTRAL（data.html）への入口 */
.rank-data { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rank-data-btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 24px; border-radius: 100px; background: #0b0b0e; color: var(--ink) !important; text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s; }
.rank-data-btn:hover { transform: translateY(-2px); background: #1a1d2b; }
.rank-data-en { font-family: var(--f-en); font-size: 20px; letter-spacing: 0.06em; background: linear-gradient(100deg, #fff 10%, #4ef0ff 55%, #8a7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-data-ja { font-family: var(--f-ja-s); font-weight: 700; font-size: 12.5px; color: rgba(244, 241, 234, 0.75); }
.rank-data-arrow { font-family: var(--f-mono); color: #4ef0ff; transition: transform 0.3s var(--ease); }
.rank-data-btn:hover .rank-data-arrow { transform: translateX(4px); }
/* 年間アワードへ（2026-11-10）：赤い地に金の文字 */
.rank-award-btn { background: #3a0710; }
.rank-award-btn:hover { background: #5c0614; }
.rank-award-btn .rank-data-en { background: linear-gradient(115deg, #fff4c2 0%, #f0c75a 40%, #b8862b 70%, #f7e1a0 100%); -webkit-background-clip: text; background-clip: text; }
.rank-award-btn .rank-data-arrow { color: #f0c75a; }

.rank-top, .rank-list { list-style: none; margin: 0; padding: 0; }
.rank a { color: inherit; text-decoration: none; }
.rank a:focus-visible { outline: 2px solid var(--rk-ink); outline-offset: 4px; border-radius: 16px; }

/* ---- トロフィー（金・銀・銅）---- */
.rk-card--1 { --m1: #fff1b0; --m2: #f5b70a; --m3: #a86f00; }
.rk-card--2 { --m1: #ffffff; --m2: #c4cbd4; --m3: #6f7986; }
.rk-card--3 { --m1: #ffe0c2; --m2: #d98a4b; --m3: #874a1c; }
.rk-card--4 { --m1: #f2f0ea; --m2: #8f8d88; --m3: #4f4d49; }   /* 4位は鉄色 */
.rank { --rk-base: #0b0b0e; }
.rk-trophy { display: inline-block; flex: none; width: 1.05em; height: 1.05em; margin: -0.05em 0.12em 0 -0.06em; overflow: visible; filter: drop-shadow(0 2px 0 rgba(11, 11, 14, 0.12)); }

/* ---- 1〜3位のカード ---- */
/* 1位は左に大きく、2〜4位は右に3段（上・中・下を1位のカードの高さにそろえる） */
.rank-top { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); grid-template-rows: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.rk-card--1 { grid-row: 1 / 4; }
.rk-card--2 { align-self: start; }
.rk-card--3 { align-self: center; }
.rk-card--4 { align-self: end; }
.rk-card-link { position: relative; display: flex; flex-direction: column; height: 100%; }
.rk-card-img { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #d9d4c8; aspect-ratio: 20 / 13; box-shadow: 0 1px 0 rgba(11, 11, 14, 0.06), 0 18px 40px -22px rgba(11, 11, 14, 0.45); }
.rk-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.rk-card-link:hover .rk-card-img img { transform: scale(1.045); }
/* 1位だけ、画像に光が1回走る */
.rk-card--1 .rk-card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 210, 0.55) 50%, transparent 62%);
  transform: translateX(-110%);
}
.rank-body.is-play .rk-card--1 .rk-card-img::after { transform: translateX(110%); transition: transform 1.3s var(--ease) 0.7s; }

.rk-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 4px 0; min-width: 0; }
.rk-card-no { display: inline-flex; align-items: flex-end; font-family: var(--f-en); font-size: 44px; line-height: 0.9; letter-spacing: 0.01em; }
.rk-card-no i { font-style: normal; font-size: 0.48em; line-height: 1.3; margin-right: 0.06em; color: var(--rk-dim); }
.rk-card--1 .rk-card-no { font-size: clamp(56px, 6vw, 84px); }
/* 作品名は英語も日本語も Noto Sans JP 900（ヒーロー以外は同じ書体：本人 2026-11-09。Dela Gothic One は小さいと字がつぶれる） */
.rk-card-name { max-width: 100%; font-family: var(--f-ja-s); font-weight: 900; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; letter-spacing: 0.02em; text-wrap: balance; transition: transform 0.5s var(--ease); }
.rk-card--1 .rk-card-name { font-size: clamp(26px, 2.7vw, 40px); }
.rk-card-link:hover .rk-card-name { transform: translateX(6px); }
.rk-card-sub { font-family: var(--f-ja-s); font-weight: 700; font-size: 13.5px; line-height: 1.5; color: var(--rk-dim); }
.rk-card-en { font-family: var(--f-ja-s); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: 0.06em; color: rgba(11, 11, 14, 0.4); }
.rk-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.rk-views { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--rk-dim); }
.rk-views b { font-family: var(--f-ja); font-weight: 400; font-size: 17px; letter-spacing: 0.02em; color: var(--rk-ink); }
.rk-card--1 .rk-views b { font-size: 22px; }

/* 2・3位（PC）は横並びのカード */
@media (min-width: 900px) {
  .rk-card:not(.rk-card--1) .rk-card-link { flex-direction: row; align-items: center; gap: 20px; }
  .rk-card:not(.rk-card--1) .rk-card-img { flex: 0 0 46%; border-radius: 12px; }
  .rk-card:not(.rk-card--1) .rk-card-body { padding: 0; gap: 2px; }
  .rk-card:not(.rk-card--1) .rk-card-no { font-size: 34px; }
  .rk-card:not(.rk-card--1) .rk-card-name { font-size: clamp(17px, 1.55vw, 22px); }
  .rk-card:not(.rk-card--1) .rk-card-sub { font-size: 12px; }
  .rk-card:not(.rk-card--1) .rk-card-foot { margin-top: 4px; }
}

/* ---- 順位の変化 ---- */
.rk-move {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 4px 9px 3px; border-radius: 100px;
  font-family: var(--f-en); font-size: 14px; letter-spacing: 0.06em; line-height: 1.2; white-space: nowrap;
}
.rk-move.is-up { background: var(--rk-up); color: #fff; }
.rk-move.is-down { background: var(--rk-down); color: #fff; }
.rk-move.is-stay { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(11, 11, 14, 0.18); color: var(--rk-dim); }
.rk-move.is-new { background: #ffd23a; color: var(--rk-ink); }
.rk-kids {
  display: inline-block; margin-left: 0.5em; padding: 0.22em 0.6em 0.14em; border-radius: 100px;
  background: var(--kids, #f08d29); color: #fff;
  font-family: var(--f-en); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; line-height: 1.2; vertical-align: 0.3em;
}

/* ---- 4〜10位：棒グラフの一覧 ---- */
.rank-list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rk-line); }
.rank-list[hidden] { display: none; }
.rk-row { border-bottom: 1px solid var(--rk-line); }
.rk-row-link {
  display: grid; grid-template-columns: 52px 118px minmax(0, 1.1fr) minmax(0, 1fr) 60px;
  align-items: center; gap: 0 20px; padding: 12px 10px 12px 4px; border-radius: 12px;
  transition: background 0.3s;
}
.rk-row-link:hover { background: rgba(11, 11, 14, 0.045); }
.rk-row-no { font-family: var(--f-en); font-size: 34px; line-height: 1; text-align: center; }
.rk-row-img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 13; object-fit: cover; border-radius: 8px; background: #d9d4c8; }
.rk-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-row-name { font-family: var(--f-ja-s); font-weight: 900; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; transition: transform 0.5s var(--ease); }
.rk-row-link:hover .rk-row-name { transform: translateX(6px); }
.rk-row-sub { font-family: var(--f-ja-s); font-weight: 700; font-size: 11.5px; line-height: 1.4; color: var(--rk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bar { position: relative; display: block; height: 12px; border-radius: 100px; background: rgba(11, 11, 14, 0.07); overflow: hidden; }
.rk-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w, 0.5) * 100%); border-radius: 100px; background: var(--rk-ink); }
.rk-row .rk-move { justify-self: end; }
/* 11〜20位（「MORE」で開く） */
.rank-more { margin-top: 0; border-top: 0; }
.rank-more:not([hidden]) .rk-row { animation: rk-more 0.55s var(--ease) var(--d, 0s) both; }
@keyframes rk-more { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rank-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.rank-more-wrap[hidden] { display: none; }
.rank-more-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 26px; border-radius: 100px;
  border: 2px solid var(--rk-ink); background: transparent; color: var(--rk-ink); cursor: pointer;
  font: inherit; line-height: 1; transition: background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rank-more-btn b { font-family: var(--f-en); font-weight: 400; font-size: 20px; letter-spacing: 0.08em; }
.rank-more-btn small { font-family: var(--f-ja-s); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; opacity: 0.6; }
.rank-more-btn i { font-style: normal; font-family: var(--f-mono); font-size: 14px; transition: transform 0.4s var(--ease); }
.rank-more-btn:hover { background: var(--rk-ink); color: var(--ink); }
.rank-more-btn:hover i { transform: translateY(2px); }
.rank-more-btn:focus-visible { outline: 2px solid var(--rk-ink); outline-offset: 3px; }
.rk-row-sub .rk-kids { margin: 0 0.5em 0 0; font-size: 10.5px; vertical-align: 0.08em; }

/* ---- 見えたときの動き ---- */
.rk-card, .rk-row { opacity: 0; transform: translateY(22px); }
.rk-bar i { transform: scaleX(0); transform-origin: left center; }
.rank-body.is-play .rk-card, .rank-body.is-play .rk-row {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.rank-body.is-play .rk-bar i { transform: none; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + 0.2s); }
/* ===== RISING（急上昇・2026-11-10）：炎のタブ、開くと帯が赤く色づき火の粉が舞う ===== */
.rk-flame { display: inline-block; width: 0.8em; height: 1.05em; overflow: visible; vertical-align: -0.12em; }
.rk-flame-o { fill: #ff5a1f; }
.rk-flame-i { fill: #ffd23a; }
.rank-tab--rise { position: relative; flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 5px; max-width: 132px; }
.rank-tab--rise .rk-flame { font-size: 18px; transform-origin: 50% 90%; animation: rk-flicker 1.1s ease-in-out infinite; }
.rank-tab--rise small { flex-basis: 100%; text-align: center; }
.rank-tab--rise[aria-selected="true"] { background: linear-gradient(135deg, #ff3d1f, #ff8a1f 55%, #ffc23a); color: #fff; box-shadow: 0 8px 22px -8px rgba(255, 70, 20, 0.7); }
.rank-tab--rise[aria-selected="true"] .rk-flame-o { fill: #fff; }
.rank-tab--rise[aria-selected="true"] .rk-flame-i { fill: #ffd23a; }
@keyframes rk-flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 30% { transform: scale(0.94, 1.08) rotate(2deg); } 60% { transform: scale(1.05, 0.95) rotate(-1deg); } }

.rank { transition: background-color 0.8s var(--ease); }
.rank.is-rising { background: radial-gradient(120% 70% at 50% 110%, rgba(255, 98, 31, 0.22), transparent 60%), var(--ink); }
.rank.is-rising::before { content: "HOT"; color: rgba(255, 70, 20, 0.07); }
.rk-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.6s; }
.rank.is-rising .rk-embers { opacity: 1; }
.rk-embers i {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0 25%, #ffb02e 45%, rgba(255, 70, 20, 0) 72%);
  opacity: 0; animation: rk-ember var(--t) linear var(--dl) infinite; animation-play-state: paused;
}
.rank.is-rising .rk-embers i { animation-play-state: running; }
@keyframes rk-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.95; }
  70% { opacity: 0.6; }
  100% { transform: translate(var(--dx), -105vh) scale(0.3); opacity: 0; }
}
/* 開いた瞬間に下から炎が一度ふわっと上がる */
.rank::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 90, 20, 0.55), rgba(255, 180, 40, 0.25) 45%, transparent 70%);
  opacity: 0; transform: translateY(20%);
}
.rank.is-ignite::after { animation: rk-ignite 1.4s var(--ease) both; }
@keyframes rk-ignite { 0% { opacity: 0; transform: translateY(30%) scaleY(0.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-25%) scaleY(1.2); } }
.rk-card-flame { width: 0.85em; height: 1.1em; margin: 0 0.1em 0 -0.04em; transform-origin: 50% 90%; animation: rk-flicker 1.3s ease-in-out infinite; }
.rk-rise { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--f-ja-s); font-weight: 700; font-size: 11.5px; color: var(--rk-dim); }
.rk-rise b {
  font-family: var(--f-en); font-weight: 400; font-size: 30px; letter-spacing: 0.01em; line-height: 1;
  background: linear-gradient(180deg, #ffb02e, #ff3d1f); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rk-card--1 .rk-rise b { font-size: 44px; }
.rk-move.is-rise { background: linear-gradient(135deg, #ff3d1f, #ff9a1f); color: #fff; }
.rank.is-rising .rk-bar i { background: linear-gradient(90deg, #ffb02e, #ff3d1f); }

/* ===== SNSで話題（ピル） ===== */
.sns-pill {
  /* 高さを決めて上下中央に。Noto Sans JP は字の中心が行の中心より約0.063em下にあるので、下の余白でその分持ち上げる */
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 1.8em; margin-left: 0.5em; padding: 0 0.7em 0.13em; border-radius: 100px;
  background: #1d9bf0; color: #fff; font-family: var(--f-ja-s); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; line-height: 1;
  vertical-align: middle; white-space: nowrap;
}
.row-title .sns-pill { font-size: 0.42em; }

/* ===== テーマ別（小さく7枚） ===== */
.rank-themes { margin-top: clamp(40px, 6vw, 72px); }
.rank-themes[hidden] { display: none; }
.rank-themes-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-weight: 400; }
.rank-themes-en { font-family: var(--f-en); font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: 0.02em; }
.rank-themes-ja { font-family: var(--f-ja-s); font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
.rank-themes-date { margin: 8px 0 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--rk-dim); }
.rk-themes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1099px) { .rk-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* 3列は 1100px 以上（1000px だとカードが約290px になり、作品名が2行に収まらない） */
.rk-theme { --c: #0b0b0e; background: #fff; border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 1px 0 rgba(11, 11, 14, 0.06), 0 12px 28px -20px rgba(11, 11, 14, 0.35); }
.rk-theme--night { --c: #3b3f9e; } .rk-theme--morning { --c: #e8920c; } .rk-theme--lunch { --c: #3c9a46; }
.rk-theme--mobile { --c: #e85d75; } .rk-theme--desktop { --c: #2f6fd0; } .rk-theme--weekend { --c: #c2417a; } .rk-theme--weekday { --c: #5b6472; }
.rk-theme-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rk-theme-ic { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--c); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-theme--night .rk-theme-ic path { fill: #fff; stroke: none; }
.rk-theme-t { display: flex; flex-direction: column; min-width: 0; }
.rk-theme-t b { font-family: var(--f-ja-s); font-weight: 900; font-size: 16px; line-height: 1.3; color: var(--c); }
.rk-theme-t small { font-size: 11px; line-height: 1.4; color: var(--rk-dim); }
.rk-theme-list { list-style: none; margin: 0; padding: 0; }
.rk-theme-list li + li { border-top: 1px solid var(--rk-line); }
.rk-theme-list a { display: grid; grid-template-columns: 16px 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 2px; border-radius: 8px; transition: background 0.25s; }
.rk-theme-list a:hover { background: rgba(11, 11, 14, 0.04); }
.rk-theme-no { font-family: var(--f-en); font-size: 17px; text-align: center; color: var(--c); }
.rk-theme-img { display: block; width: 54px; height: auto; aspect-ratio: 20 / 13; object-fit: cover; border-radius: 6px; background: #d9d4c8; }
.rk-theme-nm { font-family: var(--f-ja-s); font-weight: 900; font-size: 13px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-theme-v { font-family: var(--f-mono); font-size: 11px; color: var(--rk-dim); white-space: nowrap; }
.rk-theme-list li.is-text a { grid-template-columns: 16px minmax(0, 1fr) auto auto; padding: 5px 2px; }
.rk-theme-list li.is-text .rk-theme-no { font-size: 14px; opacity: 0.75; }
.rk-theme-list li.is-text .rk-theme-nm { font-size: 12px; font-weight: 700; -webkit-line-clamp: 1; }
.rk-theme-list a { grid-template-columns: 16px 54px minmax(0, 1fr) auto auto; }
.rk-theme-mv { font-family: var(--f-en); font-size: 11px; letter-spacing: 0.04em; min-width: 26px; text-align: right; }
.rk-theme-mv.is-up { color: var(--rk-up); }
.rk-theme-mv.is-down { color: var(--rk-down); }
.rk-theme-mv.is-new { color: #c98a00; }
.rk-theme--golden { --c: #d9483b; } .rk-theme--tablet { --c: #0f9fa8; } .rk-theme--regular { --c: #8a5a2b; } .rk-theme--search { --c: #6b4fd6; } .rk-theme--longseller { --c: #1f6f8b; }
@media (max-width: 640px) {
  /* スマホは横にすべらせて見る */
  .rk-themes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 14px; scrollbar-width: none; }
  .rk-themes::-webkit-scrollbar { display: none; }
  .rk-theme { scroll-snap-align: start; }
  .rank-tab--rise { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rk-card, .rk-row, .rk-bar i { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rank-more:not([hidden]) .rk-row { animation: none; }
  .rk-embers, .rank::after { display: none; }
  .rank-tab--rise .rk-flame, .rk-card-flame { animation: none; }
  .rk-card--1 .rk-card-img::after { display: none; }
  .rank-date::before { animation: none; }
}

/* ---- タブレット・スマホ ---- */
@media (max-width: 899px) {
  /* 1位の下に、2〜4位を横長のカードで3段 */
  .rank-top { grid-template-columns: 1fr; grid-template-rows: auto; }
  .rk-card--1 { grid-row: auto; }
  .rk-card:not(.rk-card--1) { align-self: start; }
  .rk-card:not(.rk-card--1) .rk-card-link { flex-direction: row; align-items: center; gap: 14px; }
  .rk-card:not(.rk-card--1) .rk-card-img { flex: 0 0 42%; border-radius: 10px; }
  .rk-card:not(.rk-card--1) .rk-card-body { padding: 0; gap: 2px; }
  .rk-card-no { font-size: 30px; }
  .rk-card-name { font-size: 18px; }
}
@media (max-width: 640px) {
  .rank-head { align-items: flex-start; }
  .rank-tabs { width: 100%; }
  .rank-tab { flex: 1 1 0; min-width: 0; padding: 9px 6px 8px; }
  .rank-tab b { font-size: 16px; }
  .rank-top { gap: 22px 14px; }
  .rk-card-body { padding-top: 10px; }
  .rk-card-no { font-size: 24px; }
  .rk-card--1 .rk-card-no { font-size: 52px; }
  .rk-card-name { font-size: 15px; }
  .rk-card--1 .rk-card-name { font-size: 24px; }
  .rk-card-sub { font-size: 11px; }
  .rk-card:not(.rk-card--1) .rk-card-body { padding-top: 0; }
  .rk-card:not(.rk-card--1) .rk-views b { font-size: 14px; }
  .rk-card:not(.rk-card--1) .rk-card-en { display: none; }
  .rk-row-link { grid-template-columns: 30px 84px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 12px; padding: 12px 2px; }
  .rk-row-no { grid-row: 1 / 3; font-size: 26px; }
  .rk-row-img { grid-row: 1 / 3; }
  .rk-row-main { grid-column: 3; }
  .rk-bar { grid-column: 3; grid-row: 2; height: 8px; }
  .rk-row .rk-move { grid-column: 4; grid-row: 1 / 3; min-width: 40px; font-size: 13px; }
  .rk-row-name { font-size: 14.5px; }
}
