/* ============================================================
   ガチャ沼レーダー — シンプル・モバイルファースト CSS
   ============================================================ */

:root {
  --color-bg:        #f8f8f8;
  --color-surface:   #ffffff;
  --color-border:    #e0e0e0;
  --color-text:      #1a1a1a;
  --color-muted:     #666666;
  --color-accent:    #0066cc;
  --color-accent-bg: #e8f0fb;

  --color-stock:     #1a7a3f;
  --color-stock-bg:  #e6f4ec;
  --color-refill:    #795500;
  --color-refill-bg: #fff3cd;
  --color-lottery:   #8b0000;
  --color-lottery-bg:#fce8e8;

  /* スピードバッジ (0=最速 → 8=遅い) */
  --speed-0: #d4281e; /* 最速：赤 */
  --speed-1: #e05c00;
  --speed-2: #e07800;
  --speed-3: #c89000;
  --speed-4: #8a9a00;
  --speed-5: #4a9a20;
  --speed-6: #3a8a40;
  --speed-7: #447799;
  --speed-8: #556688;
  --speed-9: #888888;

  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font); line-height: 1.6; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── レイアウト ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ── ヘッダー ── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-logo {
  font-size: 1.1rem; font-weight: 700;
  color: var(--color-text); text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-nav-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  background: #fff;
  white-space: nowrap;
  line-height: 1.2;
}
.site-nav-link:hover { text-decoration: none; opacity: .88; }

/* ── フッター ── */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  color: var(--color-muted);
  font-size: .8rem;
  text-align: center;
}

/* ── ページ見出し ── */
.page-head { padding: 20px 0 12px; }
.page-head h1 { font-size: 1.3rem; }
.page-sub { color: var(--color-muted); font-size: .9rem; margin-top: 4px; }

/* ── 検索窓 ── */
.search-wrap { margin-top: 10px; }
.search-input {
  width: 100%; max-width: 480px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  -webkit-appearance: none;
}
.search-input:focus { border-color: var(--color-accent); }

/* ── アイテム一覧グリッド ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 8px;
}
@media (min-width: 540px)  { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .item-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .item-grid { grid-template-columns: repeat(5, 1fr); } }

.item-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--color-text);
  transition: border-color .15s;
}
.item-card:hover { border-color: var(--color-accent); }

.item-card-top {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
}
.item-card-top:hover { text-decoration: none; }

.item-info--title { padding: 8px 10px 4px; }
.item-info--meta  { padding: 0 10px 10px; margin-top: auto; }

.item-thumb {
  width: 100%;
  aspect-ratio: 1 / 0.98;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.item-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.16);
  transform-origin: top center;
}
.item-thumb--no-img {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: .8rem;
}

.item-info { padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 480px)  { .item-title { font-size: 13px; } }
@media (min-width: 760px)  { .item-title { font-size: 12px; } }
@media (min-width: 1000px) { .item-title { font-size: 11px; } }

.item-meta-row, .item-stats-row {
  display: flex; flex-wrap: wrap; gap: 4px;
}

/* ── チップ・バッジ ── */
.meta-chip {
  font-size: .75rem;
  background: #f0f0f0;
  color: var(--color-muted);
  padding: 2px 7px; border-radius: 20px;
}
.meta-chip--link {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  text-decoration: none;
}
.meta-chip--link:hover { text-decoration: underline; }

.stat-badge {
  font-size: .78rem; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.stat-stock   { background: var(--color-stock-bg);   color: var(--color-stock);   }
.stat-refill  { background: var(--color-refill-bg);  color: var(--color-refill);  }
.stat-lottery { background: var(--color-lottery-bg); color: var(--color-lottery); }
.stat-no-stock { background: #eee; color: #888; }

/* ── 在庫なしセクション ── */
.no-stock-section { margin-top: 32px; }
.section-title {
  font-size: 1rem; font-weight: 700;
  border-left: 3px solid var(--color-accent);
  padding-left: 10px;
  margin-bottom: 12px;
}
.no-stock-list { list-style: none; padding: 0; }
.no-stock-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }

/* ── アイテム詳細ページ ── */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--color-muted); }
.breadcrumb a { color: var(--color-muted); }

.item-header {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  flex-wrap: wrap;
}
.item-header-img {
  width: 180px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-border);
}
.item-header-info { flex: 1; min-width: 200px; }
.item-header-info h1 { font-size: 1.15rem; margin-bottom: 8px; }

.lottery-badge {
  background: var(--color-lottery-bg);
  color: var(--color-lottery);
  font-size: .85rem; font-weight: 600;
  padding: 6px 10px; border-radius: var(--radius);
  margin-bottom: 8px; display: inline-block;
}

.item-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; margin: 8px 0; }
.item-dl dt { color: var(--color-muted); white-space: nowrap; }
.item-dl dd { font-weight: 500; }

.item-stat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stat-pill {
  font-size: .82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
}
.stat-pill--stock   { background: var(--color-stock-bg);   color: var(--color-stock);   }
.stat-pill--refill  { background: var(--color-refill-bg);  color: var(--color-refill);  }
.stat-pill--date    { background: var(--color-accent-bg);  color: var(--color-accent);  }

/* ── 関連ポスト ── */
.posts-section { margin-top: 20px; }
.posts-list { display: flex; flex-direction: column; gap: 8px; }
.post-link {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .9rem; font-weight: 600;
  color: var(--color-accent);
}
.post-link:hover { background: var(--color-accent-bg); }

/* ── 店舗リスト ── */
.shops-section { margin-top: 20px; }

.pref-heading {
  font-size: .85rem; font-weight: 600;
  color: var(--color-muted);
  background: #f4f4f4;
  padding: 4px 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

.shop-list { list-style: none; padding: 0; }
.shop-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.shop-item:last-child { border-bottom: none; }

.shop-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.shop-name { font-weight: 600; font-size: .95rem; }
.shop-chain {
  font-size: .75rem; color: var(--color-muted);
  background: #f0f0f0; padding: 1px 7px; border-radius: 20px;
}

.shop-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--color-muted);
}

/* スピードバッジ */
.speed-badge {
  font-size: .72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  color: #fff;
}
.speed-tier-0 { background: var(--speed-0); }
.speed-tier-1 { background: var(--speed-1); }
.speed-tier-2 { background: var(--speed-2); }
.speed-tier-3 { background: var(--speed-3); }
.speed-tier-4 { background: var(--speed-4); }
.speed-tier-5 { background: var(--speed-5); }
.speed-tier-6 { background: var(--speed-6); }
.speed-tier-7 { background: var(--speed-7); }
.speed-tier-8 { background: var(--speed-8); }
.speed-tier-9 { background: var(--speed-9); }

.refill-chip {
  background: var(--color-refill-bg);
  color: var(--color-refill);
  padding: 1px 6px; border-radius: 20px;
  font-size: .72rem; font-weight: 600;
}

.shop-address { font-size: .78rem; }

.map-link {
  font-size: .78rem; font-weight: 600;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 2px 8px; border-radius: 4px;
  white-space: nowrap;
}

.back-link {
  margin-top: 24px; margin-bottom: 8px;
  font-size: .9rem;
}

/* ── 戻るボタン（全ページ下部・共通スタイル） ── */
.back-nav {
  margin: 28px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.back-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.back-nav-btn,
a.back-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.back-nav-btn:hover,
a.back-nav-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  text-decoration: none;
  color: var(--color-text);
}
.back-nav-btn:active {
  transform: scale(.98);
}

.no-data { color: var(--color-muted); font-size: .9rem; padding: 16px 0; }

/* ── レスポンシブ ── */
@media (max-width: 480px) {
  .item-header { flex-direction: column; }
  .item-header-img { width: 100%; max-width: 200px; }
}

/* ============================================================
   店舗一覧インデックス（shop/index.html）
   ============================================================ */
/* ============================================================
   店舗一覧インデックス（shop/index.html）
   ============================================================ */
.shop-index-link {
  display: block;
  margin-top: 10px;
  padding: 11px 18px;
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  width: fit-content;
}

.pref-section { margin-bottom: 24px; }
.pref-section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  padding: 8px 4px;
  border-bottom: 2px solid var(--color-border);
}

.shop-nav-list { list-style: none; margin: 0; padding: 0; }
.shop-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  gap: 8px;
}
.shop-nav-item:active { background: var(--color-border); }

.shop-nav-left  { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.shop-nav-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.shop-nav-name  { font-size: 16px; font-weight: 600; }
.shop-nav-chain { font-size: 12px; color: var(--color-muted); }
.shop-nav-count { font-size: 12px; color: var(--color-accent); font-weight: 600; }
.shop-nav-count--muted { color: var(--color-muted); font-weight: 500; }
.shop-nav-arrow { font-size: 20px; color: var(--color-muted); }

.schedule-more-link {
  margin: 8px 4px 0;
  font-size: .85rem;
}

/* ============================================================
   店舗個別ページ（shop/{id}.html）
   ============================================================ */
.last-crawled {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 6px;
}

.shop-address-line {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}

.map-link-large {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #e8f4fd;
  border-radius: 24px;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* アイテム詳細ページの店舗名リンク */
.shop-name-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  font-weight: 600;
}
.shop-name-link:hover { text-decoration-color: var(--color-accent); }

/* ============================================================
   タブナビ（都道府県別 / あいうえお順）
   ============================================================ */
.shop-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 16px;
}
.shop-tab-btn {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.shop-tab-btn--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   都道府県・50音行ジャンプボタン
   ============================================================ */
.shop-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}
.shop-jump-btn {
  padding: 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
}
.shop-jump-btn:active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============================================================
   トップページの最新入荷リンクボタン
   ============================================================ */
.latest-top-link {
  display: inline-block;
  margin: 0 0 14px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: 2px solid transparent;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}
.latest-top-link:hover { text-decoration: none; opacity: .92; }

/* ============================================================
   /latest.html 速報ページ
   ============================================================ */
.latest-page {
  background: linear-gradient(160deg, #fff9f0 0%, #fff3e0 60%, #fce4d6 100%);
  min-height: 100vh;
  margin: -16px;
  padding: 16px;
}

.latest-alert {
  background: #fff;
  border: 2px solid #ff6b35;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0 20px;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
}

.latest-alert-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.latest-alert-time {
  font-size: 13px;
  font-weight: 600;
  color: #e65100;
  margin: 4px 0 2px;
}

.latest-alert-sub {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
}

.latest-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #bf360c;
}

.latest-grid { gap: 12px; }

.latest-card {
  border: 2px solid #ffab76 !important;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

.latest-card:hover {
  border-color: #ff6b35 !important;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

/* ============================================================
   ヘッダー — 投票リンク
   ============================================================ */
.site-nav-link--vote {
  background: linear-gradient(135deg, #ff4081, #f50057);
  color: #fff !important;
  border-color: transparent;
}

/* ============================================================
   投票ボタン（共通）
   ============================================================ */
.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #f5f5f5;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.vote-btn:active:not(:disabled) { transform: scale(.96); }
.vote-btn--active {
  background: #ffe4ef;
  border-color: #ff4081;
  color: #e91e63;
}
.vote-btn--locked,
.vote-btn:disabled {
  background: #ececec;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: .85;
}
.vote-btn--unavailable {
  opacity: .6;
}
.vote-btn--loading {
  opacity: .7;
  pointer-events: none;
}
.vote-btn-icon { font-size: 1em; line-height: 1; }
.vote-btn-count {
  font-size: .85em;
  font-weight: 700;
  min-width: 1.2em;
  text-align: center;
}
.vote-btn-label {
  font-size: .72em;
  font-weight: 600;
}

.vote-btn--card {
  padding: 5px 10px;
  font-size: .82rem;
}
.vote-btn--detail {
  padding: 8px 16px;
  font-size: .95rem;
}
.vote-btn--grid {
  width: 100%;
  padding: 8px 10px;
  font-size: .85rem;
  margin-top: auto;
}

.item-vote-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.item-header-vote {
  margin-top: 12px;
}

/* ============================================================
   投票ポータル /vote/
   ============================================================ */
.vote-featured {
  margin: 0 0 24px;
}
.vote-featured-link {
  display: block;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ff4081, #f50057);
  color: #fff;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(245, 0, 87, .35);
}
.vote-featured-link:hover { text-decoration: none; opacity: .95; }
.vote-featured-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: .92;
}

.vote-section { margin-bottom: 28px; }
.vote-section--archive .vote-month-link { opacity: .92; }

.vote-month-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vote-month-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
}
.vote-month-link:hover { border-color: #ff4081; text-decoration: none; }
.vote-month-link--open { border-left: 4px solid #ff4081; }
.vote-month-link--archive { border-left: 4px solid #bbb; }
.vote-month-label { font-weight: 700; }
.vote-month-meta { font-size: .82rem; color: var(--color-muted); }

.vote-status--open { color: #e91e63; font-weight: 700; }
.vote-status--closed { color: #888; font-weight: 700; }
.vote-hint {
  font-size: .88rem;
  color: var(--color-muted);
  margin-top: 8px;
}

/* 投票ページ用ワイドレイアウト（PCで6列まで） */
.container.container--wide {
  max-width: 1280px;
}

/* ============================================================
   月別投票ページ — グリッド（スマホ3列 / PC最大6列）
   ============================================================ */
.vote-week-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.vote-week-jump-btn {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
}
.vote-week-jump-btn:hover {
  border-color: #ff4081;
  color: #e91e63;
  text-decoration: none;
}

.vote-week-section {
  margin-bottom: 28px;
}
.vote-week-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ff4081;
}
.vote-week-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin-left: 4px;
}

.vote-grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 540px)  { .vote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 760px)  { .vote-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vote-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vote-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.vote-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.vote-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.98;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.vote-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.16);
  transform-origin: top center;
  pointer-events: none;
}
.vote-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: .72rem;
  color: var(--color-muted);
}

.vote-card-title {
  padding: 6px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}
.vote-card-title a {
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vote-card-title a:hover { color: var(--color-accent); }

.vote-card .vote-btn--grid {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  flex-shrink: 0;
  min-height: 36px;
}

/* ============================================================
   投票 ⇔ ランキング 双方向導線
   ============================================================ */
.vote-crosslink-bar {
  margin: 0 0 20px;
}
.vote-crosslink-bar--bottom {
  margin: 24px 0 8px;
}
.vote-crosslink {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.vote-crosslink:hover { text-decoration: none; opacity: .95; }
.vote-crosslink-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: .92;
}
.vote-crosslink--vote {
  background: linear-gradient(135deg, #ff4081, #f50057);
  box-shadow: 0 4px 16px rgba(245, 0, 87, .35);
}
.vote-crosslink--rank {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  box-shadow: 0 4px 16px rgba(245, 124, 0, .35);
}

.vote-featured-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .vote-featured-duo { grid-template-columns: 1fr 1fr; }
}

.vote-month-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .vote-month-row { grid-template-columns: 1fr 1fr; }
}
.vote-month-link--rank {
  border-left: 4px solid #ff9800;
  background: linear-gradient(90deg, #fff8e1 0%, #fff 40%);
}
.vote-month-link--rank-archive {
  border-left: 4px solid #bdbdbd;
}

/* ============================================================
   人気ランキングページ
   ============================================================ */
.rank-page-head { padding-bottom: 8px; }
.rank-updated-at {
  font-size: .82rem;
  color: var(--color-muted);
  margin-top: 6px;
}
.rank-live { padding-bottom: 8px; }

.rank-tier { margin-bottom: 28px; }
.rank-tier-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.rank-empty {
  color: var(--color-muted);
  font-size: .9rem;
  padding: 20px;
  text-align: center;
}

/* TOP 3 — 特大 */
.rank-podium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .rank-podium {
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
  }
  .rank-podium-card--1 { order: 2; }
  .rank-podium-card--2 { order: 1; }
  .rank-podium-card--3 { order: 3; }
}
.rank-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 12px 16px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.rank-podium-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.rank-podium-card--1 {
  border-color: #ffc107;
  background: linear-gradient(160deg, #fffde7 0%, #fff8e1 50%, #fff 100%);
  box-shadow: 0 6px 20px rgba(255, 193, 7, .35);
}
.rank-podium-card--2 {
  border-color: #b0bec5;
  background: linear-gradient(160deg, #f5f5f5 0%, #fff 100%);
}
.rank-podium-card--3 {
  border-color: #ffab91;
  background: linear-gradient(160deg, #fbe9e7 0%, #fff 100%);
}
.rank-podium-medal { font-size: 2rem; line-height: 1; }
.rank-podium-card--1 .rank-podium-medal { font-size: 2.6rem; }
.rank-podium-rank {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-muted);
  margin: 4px 0 8px;
}
.rank-podium-card--1 .rank-thumb {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 0.98;
}
.rank-podium-card--2 .rank-thumb,
.rank-podium-card--3 .rank-thumb {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 0.98;
}
@media (min-width: 640px) {
  .rank-podium-card--1 .rank-thumb { max-width: 220px; }
}
.rank-podium-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-podium-card--1 .rank-podium-title { font-size: 1rem; }
.rank-podium-votes {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e91e63;
}
.rank-podium-card--1 .rank-podium-votes { font-size: 1.35rem; }

/* 4〜10位 — 派手グリッド */
.rank-top10-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 540px)  { .rank-top10-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .rank-top10-grid { grid-template-columns: repeat(4, 1fr); } }
.rank-top10-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff3e0, #ffe0b2);
  border: 2px solid #ffb74d;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(255, 152, 0, .2);
}
.rank-top10-card:hover {
  text-decoration: none;
  border-color: #ff9800;
  box-shadow: 0 4px 16px rgba(255, 152, 0, .35);
}
.rank-top10-rank {
  font-size: .72rem;
  font-weight: 800;
  color: #e65100;
  margin-bottom: 6px;
}
.rank-top10-title {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 4px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-top10-votes {
  font-size: .85rem;
  font-weight: 800;
  color: #e91e63;
}

/* 11〜20位 — リスト */
.rank-rest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-rest-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}
.rank-rest-link:hover {
  text-decoration: none;
  border-color: #ff4081;
  background: #fff5f8;
}
.rank-rest-rank {
  flex-shrink: 0;
  width: 2em;
  font-size: .85rem;
  font-weight: 800;
  color: var(--color-muted);
  text-align: center;
}
.rank-rest-title {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-rest-votes {
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 800;
  color: #e91e63;
}

/* ランキング共通サムネ */
.rank-thumb {
  width: 100%;
  aspect-ratio: 1 / 0.98;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.rank-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
}
.rank-rest-link .rank-thumb {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 6px;
}
.rank-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--color-muted);
}

