/* cocohate / ranking.css */

/* breadcrumb は pref.css と共通だが ranking.html はインラインで対応 */
.breadcrumb-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  margin-top: 60px;
}
.breadcrumb-inner { max-width:1200px; margin:0 auto; padding:0.6rem 2rem; }
.breadcrumb { list-style:none; display:flex; align-items:center; gap:0.5rem; font-size:0.78rem; flex-wrap:wrap; }
.breadcrumb li { display:flex; align-items:center; gap:0.5rem; }
.breadcrumb li::after { content:'›'; color:var(--text3); }
.breadcrumb li:last-child::after { content:''; }
.breadcrumb a { color:var(--text2); text-decoration:none; transition:color 0.2s; }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb li:last-child span { color:var(--text3); }

/* ===== RANKING HERO ===== */
.ranking-hero {
  position: relative;
  padding: 8rem 2rem 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ranking-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(192,57,43,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(139,74,42,0.1) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(200,169,110,0.03) 80px, rgba(200,169,110,0.03) 81px),
    var(--bg);
}

.ranking-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.ranking-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s ease both;
}

.ranking-hero-desc {
  color: var(--text2);
  font-size: 1rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

/* ===== TABS ===== */
.rank-tab-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 50;
}

.rank-tab-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.rank-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text2);
  padding: 1rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.rank-tab:hover { color: var(--accent); }

.rank-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(200,169,110,0.05);
}

/* ===== RANKING BODY ===== */
.ranking-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.rank-section { display: none; }
.rank-section.active { display: block; }

/* ===== RANK CARD ===== */
.rank-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.rank-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow);
}

/* 順位番号 */
.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text3);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem 0.5rem;
}

.rank-gold   { color: #c8a96e; background: rgba(200,169,110,0.12); }
.rank-silver { color: #a8a8b8; background: rgba(168,168,184,0.10); }
.rank-bronze { color: #c87a4e; background: rgba(200,122,78,0.10); }

/* 画像 */
.rank-img-wrap {
  width: 200px;
  min-height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-img-placeholder {
  width: 100%; height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-size: 3rem;
}

/* カード本文 */
.rank-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rank-card-meta-top {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.rank-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.rank-card-location {
  font-size: 0.8rem;
  color: var(--accent);
}

.rank-card-desc {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}

.rank-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.rank-danger {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: var(--font-heading);
}

.danger-stars { color: var(--accent2); }

.rank-era {
  font-size: 0.72rem;
  color: var(--text3);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-heading);
}

.rank-detail-link {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.rank-detail-link:hover { opacity: 0.7; }

/* ===== CTA ===== */
.ranking-cta {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.ranking-cta-inner { max-width: 600px; margin: 0 auto; }

.ranking-cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.ranking-cta p {
  color: var(--text2);
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .rank-card {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .rank-img-wrap {
    display: none;
  }
  .rank-num {
    grid-row: 1 / 3;
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .rank-tab { padding: 0.8rem 1rem; font-size: 0.8rem; }
  .ranking-body { padding: 2rem 1rem; }
}
