/* スロッターK 自作アクセスランキング — この枠の中だけに適用 */
.skrank { --skrank-accent: #129bb7; container-type: inline-size; width: 100%; margin: 24px 0; padding: 0; border: 1px solid #e1e9ee; border-top: 3px solid var(--skrank-accent); border-radius: 10px; overflow: hidden; background: #fff; color: #222d35; font-family: inherit; line-height: 1.6; box-shadow: 0 3px 14px rgb(22 45 58 / 5%); }
.skrank, .skrank * { box-sizing: border-box; }
.skrank .skrank-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 14px 12px; }
.skrank .skrank-title { min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: #222d35; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; }
.skrank button { appearance: none; cursor: pointer; margin: 0; min-height: 36px; padding: 6px 5px; border: 1px solid #dbe6eb; border-radius: 5px; background: #fff; color: #526671; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: none; text-align: center; }
.skrank button::before, .skrank button::after { content: none; }
.skrank button:hover { background: #eff9fb; }
.skrank button:focus-visible, .skrank a:focus-visible { outline: 2px solid var(--skrank-accent); outline-offset: -3px; }
.skrank button[aria-pressed="true"] { border-color: var(--skrank-accent); background: var(--skrank-accent); color: #fff; }
.skrank .skrank-views { flex: 0 0 auto; padding: 5px 8px; min-height: 30px; font-size: 10px; }
.skrank .skrank-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 0 12px 13px; border-bottom: 1px solid #e7edf1; }
.skrank ol.skrank-list { display: block; list-style: none; margin: 0 !important; padding: 0 !important; counter-reset: none; }
.skrank .skrank-item, .skrank .skrank-empty { list-style: none; margin: 0 !important; padding: 0 !important; border: 0; }
.skrank .skrank-item::before, .skrank .skrank-empty::before { content: none !important; }
.skrank .skrank-item + .skrank-item { border-top: 1px solid #edf1f4; }
.skrank .skrank-link { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; padding: 14px 12px; color: #222d35 !important; background: #fff; text-decoration: none !important; transition: background-color .15s ease; }
.skrank .skrank-link::after { content: none !important; }
.skrank .skrank-link:hover { background: #f2fafc; }
.skrank .skrank-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: visible; border-radius: 5px; background: #edf2f5; }
.skrank img.skrank-img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0; border: 0; border-radius: 5px; object-fit: contain; box-shadow: none; }
.skrank .skrank-rank { position: absolute; z-index: 1; top: -8px; left: -8px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgb(0 0 0 / 12%); border-radius: 5px; background: #333d46; color: #fff; font: 700 14px/1 Arial, sans-serif; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
/* 1位：数字を中央に置いた金の王冠。画像素材に依存せず鮮明に表示。 */
.skrank .skrank-item:nth-child(1) .skrank-rank {
  width: 34px; height: 31px; padding-top: 8px; border: 0; border-radius: 0;
  background: linear-gradient(135deg, #fff0a9 0%, #f7d365 33%, #e6af2b 66%, #f8dd83 100%);
  color: #624300; font-weight: 900; text-shadow: 0 1px 0 rgb(255 255 255 / 50%); box-shadow: none;
  clip-path: polygon(0 12%, 25% 35%, 50% 0, 75% 35%, 100% 12%, 88% 78%, 88% 100%, 12% 100%, 12% 78%);
}
/* 2位：銀、3位：銅、4位以降：黒系。 */
.skrank .skrank-item:nth-child(2) .skrank-rank {
  background: linear-gradient(135deg, #f0f3f5 0%, #b7c1c9 58%, #e0e6eb 100%);
  border-color: #9daab5; color: #2c3b47; text-shadow: 0 1px 0 rgb(255 255 255 / 55%);
}
.skrank .skrank-item:nth-child(3) .skrank-rank {
  background: linear-gradient(135deg, #f6d0ab 0%, #d19860 58%, #b7773e 100%);
  border-color: #a86d37; color: #442810; text-shadow: 0 1px 0 rgb(255 255 255 / 35%);
}
.skrank .skrank-noimage { display: grid; place-items: center; width: 100%; height: 100%; color: #82949e; font: 700 9px/1 Arial, sans-serif; }
.skrank .skrank-text { display: block; min-width: 0; }
.skrank .skrank-post-title { display: block; margin: 0; color: #222d35; font-size: 13px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.skrank .skrank-pv { display: block; margin-top: 5px; color: #637680; font-size: 11px; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; }
.skrank[data-show-views="0"] .skrank-pv { display: none; }
.skrank .skrank-empty { padding: 24px 16px !important; color: #617580; font-size: 13px; }
.skrank p.skrank-status { margin: 0 !important; padding: 0 12px; min-height: 0; color: #657b86; font-size: 11px; line-height: 1.6; }
.skrank p.skrank-status:not(:empty) { padding: 8px 12px 12px; }
.skrank .skrank-noscript { padding: 0 12px; color: #657b86; font-size: 11px; }
.skrank.skrank-loading .skrank-list { opacity: .6; }
@container (min-width: 600px) {
  .skrank ol.skrank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skrank .skrank-item + .skrank-item { border-top: 0; }
  .skrank .skrank-item:nth-child(n+3) { border-top: 1px solid #edf1f4; }
  .skrank .skrank-item:nth-child(even) { border-left: 1px solid #edf1f4; }
  .skrank .skrank-periods { max-width: 460px; border-bottom: 0; }
  .skrank ol.skrank-list { border-top: 1px solid #e7edf1; }
}
@container (max-width: 280px) {
  .skrank .skrank-link { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
  .skrank .skrank-title { font-size: 14px; }
  .skrank .skrank-period { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .skrank .skrank-link { transition: none; } }
