@charset "UTF-8";
/* ============================================
   P-04 ランキング v2
   ============================================ */

/* ============= HERO ============= */
.ranking-hero {
  position: relative;
  padding: calc(80px + 80px) 0 calc(var(--section-pad-y) - 20px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,252,247,0.7) 0%, rgba(251,244,228,0.5) 60%, rgba(246,238,221,0.55) 100%),
    url("../images/deco/ranking-bg.jpg") center top / cover no-repeat,
    #fffafb;
  text-align: center;
}
.ranking-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}
.ranking-hero-inner { position: relative; z-index: 2; }
.ranking-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.2em;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 143, 177,0.18);
  box-shadow: 0 6px 16px rgba(255, 143, 177,0.08);
}
.ranking-hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 0.005em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ranking-hero-title .accent { color: var(--pink-deep); }
.ranking-year-month {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  font-size: 1em;
  padding: 6px 22px;
  background: linear-gradient(135deg, #fff7e1 0%, #fcecc6 100%);
  border-radius: 999px;
  border: 1.5px solid rgba(212,175,106,0.42);
  color: #8a6a2c;
  box-shadow: 0 6px 16px rgba(212,175,106,0.22);
}
.ranking-year-month .ry,
.ranking-year-month .rm { font-size: 28px; }
.ranking-year-month .rsep {
  font-size: 22px;
  color: rgba(138,106,44,0.55);
  margin: 0 1px;
}
.ranking-month-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  font-family: inherit;
}
.ranking-main-label {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
}
.ranking-hero-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 14px;
}
.ranking-hero-note {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
}

/* ヒーロー装飾アセット */
.hero-confetti, .podium-confetti {
  position: absolute;
  pointer-events: none;
  opacity: .35;
  filter: hue-rotate(-10deg);
}
.hero-confetti-1 { top: -20px; left: -10px; width: 240px; transform: rotate(-12deg); }
.hero-confetti-2 { bottom: -30px; right: -10px; width: 220px; transform: rotate(160deg); opacity: .25; }
.podium-confetti-1 { top: 6%; left: -20px; width: 200px; transform: rotate(-18deg); opacity: .42; }
.podium-confetti-2 { top: 4%; right: -20px; width: 180px; transform: rotate(196deg); opacity: .36; }
.hero-deco-paw, .hero-deco-star, .podium-bg-paw, .podium-bg-star {
  position: absolute;
  pointer-events: none;
}

/* ============= TOP3 表彰台 ============= */
.ranking-section {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(251,244,228,0.7), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(246,238,221,0.45), transparent 55%),
    #fff;
  text-align: center;
  overflow: hidden;
}
.ranking-section > .container { position: relative; z-index: 2; }
.ranking-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: end;
  max-width: 880px;
  margin: 0 auto 72px;
}
.podium-item {
  position: relative;
  display: block;
  padding: 36px 18px 0;
  text-align: center;
  border-radius: 24px 24px 0 0;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  text-decoration: none;
  color: inherit;
}
.podium-item:hover { transform: translateY(-6px); opacity: 1; }

/* 1位 */
.podium-item.rank-1 { padding-top: 80px; }
.podium-item.rank-2 { padding-top: 48px; }
.podium-item.rank-3 { padding-top: 44px; }
.podium-item.rank-1 .podium-icon {
  width: 132px; height: 132px;
  border: 4px solid var(--gold);
  box-shadow: 0 18px 40px rgba(197,160,89,0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.podium-item.rank-1 .podium-name { font-size: 18px; color: var(--orange-deep); }
.podium-item.rank-1 .podium-base {
  height: 220px;
  background: linear-gradient(180deg, #f5d97a 0%, #c5a059 100%);
}
.podium-item.rank-1 .podium-base-num { color: rgba(255,255,255,0.85); }

.podium-item.rank-2 .podium-icon {
  width: 108px; height: 108px;
  border: 3px solid #c4cad0;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #e6e9ee, #b8c0c7);
}
.podium-item.rank-2 .podium-base {
  height: 160px;
  background: linear-gradient(180deg, #d8dde2 0%, #99a2ab 100%);
}

.podium-item.rank-3 .podium-icon {
  width: 100px; height: 100px;
  border: 3px solid #d28f5a;
  box-shadow: 0 12px 28px rgba(184,107,57,0.36);
  background: linear-gradient(135deg, #e8b48a, #b87b4d);
}
.podium-item.rank-3 .podium-base {
  height: 130px;
  background: linear-gradient(180deg, #d99a6a 0%, #a06e3f 100%);
}

.podium-crown {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  color: var(--gold);
  filter: drop-shadow(0 6px 12px rgba(197,160,89,0.6));
  animation: crownBob 3s ease-in-out infinite;
}
.podium-crown svg { width: 100%; height: 100%; }
.podium-crown-img {
  position: absolute;
  top: -42px; left: 50%;
  transform: translateX(-50%);
  width: 86px;
  filter: drop-shadow(0 8px 16px rgba(197,160,89,0.5));
  animation: crownBob 3s ease-in-out infinite;
  z-index: 4;
}
.podium-crown-img img { width: 100%; height: auto; display: block; }
.podium-crown-silver {
  width: 64px; top: -30px;
  filter: drop-shadow(0 6px 12px rgba(140,140,160,0.42));
}
.podium-crown-bronze {
  width: 58px; top: -26px;
  filter: drop-shadow(0 6px 12px rgba(184,107,57,0.42));
}
.podium-crown-gold {
  width: 92px; top: -46px;
  filter: drop-shadow(0 10px 18px rgba(212,175,106,0.6)) drop-shadow(0 0 8px rgba(255,220,140,0.4));
}

/* クラッカー（1位の左右） */
.podium-cracker {
  position: absolute;
  width: 110px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}
.podium-cracker-l {
  top: -10px; left: -50px;
  transform: rotate(-25deg) scaleX(-1);
  animation: crackerL 4.5s ease-in-out infinite;
}
.podium-cracker-r {
  top: -10px; right: -50px;
  transform: rotate(25deg);
  animation: crackerR 4.5s ease-in-out infinite;
}
@keyframes crackerL {
  0%,100% { transform: rotate(-25deg) scaleX(-1) translateY(0); }
  50% { transform: rotate(-22deg) scaleX(-1) translateY(-4px); }
}
@keyframes crackerR {
  0%,100% { transform: rotate(25deg) translateY(0); }
  50% { transform: rotate(22deg) translateY(-4px); }
}
@keyframes crownBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.podium-medal {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  color: #c4cad0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}
.podium-item.rank-3 .podium-medal { color: #d28f5a; }
.podium-medal svg { width: 100%; height: 100%; }

.podium-rank-num {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.podium-item.rank-1 .podium-rank-num { font-size: 28px; color: var(--orange-deep); }

.podium-icon {
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  padding: 4px;
  transition: transform .35s;
}
.podium-item:hover .podium-icon { transform: scale(1.04); }
.podium-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.podium-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  word-break: break-all;
  line-height: 1.4;
}
.podium-label {
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}
.podium-base {
  position: relative;
  border-radius: 14px 14px 0 0;
  margin: 0 -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(255,255,255,0.4), inset 0 -8px 18px rgba(0,0,0,0.18);
}
.podium-base::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  border-radius: 14px 14px 0 0;
}
.podium-base-num {
  font-family: "DM Serif Display", serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}

/* ============= 4-20位 ============= */
.ranking-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0 4px;
}
.ranking-list-h {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.ranking-list-meta {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ranking-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ranking-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 16px;
  background: #fff;
  border: 1.5px solid #f1ddc9;
  border-radius: 16px;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(165,108,72,0.04);
}
.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(212,175,106,0.55);
  box-shadow: 0 12px 22px rgba(165,108,72,0.12);
  opacity: 1;
}
.ranking-row .rank-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e1, #f3e0b5);
  color: #8a6a2c;
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,175,106,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.ranking-row .rank-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink));
  overflow: hidden;
  flex-shrink: 0;
}
.ranking-row .rank-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.ranking-row .rank-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  word-break: break-all;
  color: var(--ink);
}
.ranking-row .rank-arrow {
  color: var(--orange);
  opacity: .4;
  transition: opacity .25s, transform .25s;
}
.ranking-row:hover .rank-arrow { opacity: 1; transform: translateX(4px); }

/* ============= アーカイブ ============= */
.ranking-archive {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
  text-align: center;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 28px;
}
.archive-tab {
  padding: 16px 12px;
  background: #fff;
  border: 1px solid #FFE0EA;
  border-radius: 14px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.archive-tab span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.archive-tab strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.archive-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(255, 143, 177,0.14);
}
.archive-tab:hover span { color: var(--orange); }
.archive-tab.active {
  background: linear-gradient(135deg, #ff6a30, #e85520);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 143, 177,0.32);
}
.archive-tab.active span { color: rgba(255,255,255,0.85); }
.archive-tab.active:hover { color: #fff; }
.archive-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
  margin-top: 8px;
}

/* ============= Return CTA Icon ============= */
.return-cta-card { position: relative; }
.return-cta-icon {
  width: 72px; height: 72px;
  margin: -110px auto 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(197,160,89,0.4);
  transform: rotate(-6deg);
}
.return-cta-icon svg { width: 36px; height: 36px; }

@media (max-width: 960px) {
  .ranking-hero-title { font-size: 38px; }
  .ranking-podium { gap: 12px; max-width: 640px; }
  .podium-item.rank-1 .podium-icon { width: 104px; height: 104px; }
  .podium-item.rank-2 .podium-icon, .podium-item.rank-3 .podium-icon { width: 84px; height: 84px; }
  .podium-base-num { font-size: 60px; }
  .podium-item.rank-1 .podium-base { height: 180px; }
  .podium-item.rank-2 .podium-base { height: 130px; }
  .podium-item.rank-3 .podium-base { height: 110px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ranking-hero { padding: calc(56px + 40px) 0 var(--section-pad-y); }
  .ranking-hero-title { font-size: 26px; line-height: 1.3; }
  .ranking-main-label { font-size: 39px; }
  .ranking-hero-title .dot { width: 8px; height: 8px; vertical-align: 3px; }
  .ranking-hero-sub { font-size: 13px; }
  .ranking-podium { gap: 10px; margin-bottom: 56px; padding: 0 6px; margin-top: 60px; }
  .podium-item { padding: 56px 6px 0; border-radius: 16px 16px 0 0; }
  .podium-item.rank-1 { padding-top: 78px; }
  .podium-item.rank-2 { padding-top: 58px; }
  .podium-item.rank-3 { padding-top: 54px; }
  .podium-crown { width: 38px; height: 38px; top: -4px; }
  .podium-crown-img { width: 60px; top: -30px; }
  .podium-crown-gold { width: 70px; top: -36px; }
  .podium-crown-silver { width: 50px; top: -24px; }
  .podium-crown-bronze { width: 46px; top: -22px; }
  .podium-cracker { width: 70px; }
  .podium-cracker-l { top: 6px; left: -36px; }
  .podium-cracker-r { top: 6px; right: -36px; }
  .podium-medal { width: 28px; height: 28px; top: 6px; }
  .podium-rank-num { font-size: 16px; margin-bottom: 8px; }
  .podium-item.rank-1 .podium-rank-num { font-size: 20px; }
  .podium-item.rank-1 .podium-icon { width: 72px; height: 72px; margin-bottom: 12px; }
  .podium-item.rank-2 .podium-icon, .podium-item.rank-3 .podium-icon { width: 60px; height: 60px; margin-bottom: 10px; }
  .podium-name { font-size: 11px; margin-bottom: 4px; }
  .podium-item.rank-1 .podium-name { font-size: 13px; }
  .podium-label { font-size: 9px; margin-bottom: 14px; letter-spacing: 0.16em; }
  .podium-base { margin: 0 -6px; }
  .podium-base-num { font-size: 38px; }
  .podium-item.rank-1 .podium-base { height: 110px; }
  .podium-item.rank-2 .podium-base { height: 80px; }
  .podium-item.rank-3 .podium-base { height: 68px; }
  .podium-confetti-1, .podium-confetti-2 { width: 140px; opacity: .28; }
  .ranking-list-head { padding: 0 6px; }
  .ranking-list-h { font-size: 18px; }
  .ranking-row { padding: 12px 16px; gap: 14px; }
  .ranking-row .rank-num { font-size: 20px; min-width: 32px; }
  .ranking-row .rank-icon { width: 40px; height: 40px; }
  .ranking-row .rank-name { font-size: 13px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .archive-tab { padding: 12px 8px; }
  .archive-tab strong { font-size: 13px; }
}
