/**
 * 大会結果ランキング共通スタイル（ダークティール・白文字・枠線・縞）
 * アーカイブ・各ランキングページで共通利用
 */
 main{
  background-color: #f3f3f3;
 }
.jpaf-rankings-wrapper{
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}
.jpaf-rankings .jpaf-ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
}

.jpaf-rankings .jpaf-ranking-table th,
.jpaf-rankings .jpaf-ranking-table td {
  border: 4px solid #f3f3f3;
  padding: 10px 20px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}

.jpaf-rankings .jpaf-ranking-table thead th {
  font-weight: bold;
  text-align: center;
  padding: 8px;
  color: #333;
  font-size: 16px;
}

/* 1列目：順位・氏名を統合したセル（SPANで色分け可能） */
.jpaf-rankings .jpaf-ranking-table tbody td:first-child {
  background-color: #323A3A;
  text-align: left;
}

.jpaf-rankings .jpaf-ranking-table tbody td:first-child .jpaf-rank-name {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.jpaf-rankings .jpaf-ranking-table tbody td:first-child .jpaf-rank {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-align: center;
  min-width: 30px;
}

.jpaf-rankings .jpaf-ranking-table tbody td:first-child .jpaf-name {
  flex: 0 1 auto;
  color: #dfc44c;
  font-size: 18px;
  font-weight: 700;
}

.jpaf-rankings .jpaf-ranking-table tbody td:nth-child(n+2) {
  text-align: center;
}

.jpaf-rankings .jpaf-ranking-table tbody tr:nth-child(odd) td:first-child {
  background-color: rgba(0,0,0,0.7);
}

.jpaf-rankings .jpaf-ranking-table tbody tr:nth-child(even) td:first-child {
  background-color: rgba(0,0,0,0.5);
}

.jpaf-rankings .jpaf-ranking-table tbody tr:nth-child(odd) td:nth-child(n+2) {
  background-color: #3F5E5D;
}

.jpaf-rankings .jpaf-ranking-table tbody tr:nth-child(even) td:nth-child(n+2) {
  background-color: #547B78;
}

/* ランキングページ：タイトル＋説明文をまとめるブロック（参考：賞金ランキング風デザイン） */
.jpaf-ranking-header {
  background-color: #E8F3F3;
  padding: 2em 2.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-sizing: border-box;
}

/* メインタイトル：中央揃え・両端に「―」・ダークティール */
.jpaf-rankings .jpaf-section-title,
.result .jpaf-section-title {
  color: #333;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.jpaf-ranking-header .jpaf-section-title {
  margin: 0 0 0.6em;
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  color: #005072;
  font-family: sans-serif;
}
.jpaf-ranking-header .jpaf-section-title::before {
  content: "― ";
  color: #005072;
}
.jpaf-ranking-header .jpaf-section-title::after {
  content: " ―";
  color: #005072;
}

/* サブタイトル（一行説明）：ダークティール・左揃え */
.jpaf-ranking-header .jpaf-ranking-subtitle {
  color: #005072;
  font-size: 1em;
  font-weight: 500;
  margin: 0 0 0.8em;
  text-align: left;
  line-height: 1.5;
}

/* 詳細説明文：本文色・左揃え・行間ゆったり */
.jpaf-ranking-header .jpaf-ranking-description {
  color: #333;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}
.jpaf-ranking-header .jpaf-ranking-description + .jpaf-ranking-description {
  margin-top: 0.5em;
}

.jpaf-rankings .jpaf-table-wrap {
  margin-bottom: 1em;
}

.jpaf-rankings-archive-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.jpaf-rankings-archive-list li {
  margin: 0.5em 0;
}

.jpaf-rankings-archive-list a {
  color: #3A5C5B;
  text-decoration: none;
  font-weight: bold;
}

.jpaf-rankings-archive-list a:hover {
  text-decoration: underline;
}

.jpaf-rankings-back {
  margin-top: 1.5em;
}

.jpaf-rankings-back a {
  color: #3A5C5B;
  font-weight: bold;
}

/* 1位ピックアップカード（同率1位は複数カードを並べて表示） */
.jpaf-ranking-1st-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.jpaf-ranking-1st-card {
  display: flex;
  align-items: start;
  gap: 0;
  background-color: #E8F3F3;
  border-radius: 12px;
  padding: 24px 28px;
  font-family: sans-serif;
  color: #014B6E;
  box-sizing: border-box;
}
.jpaf-ranking-1st-card__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding-right: 24px;
}
.jpaf-ranking-1st-card__rank-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #014B6E;
}
.jpaf-ranking-1st-card__rank-line {
  display: block;
  width: 24px;
  height: 4px;
  background-color: #014B6E;
  margin: 8px 0 4px;
  align-self: flex-start;
  margin-left: 50%;
  transform: translateX(-50%);
}
.jpaf-ranking-1st-card__rank-label {
  font-size: 14px;
  font-weight: 600;
  color: #014B6E;
}
/* 選手画像：縦長 3:4、背景画像で中央を表示 */
.jpaf-ranking-1st-card__image {
  width: 180px;
  aspect-ratio: 3 / 4;
  margin: 0 24px;
  border-radius: 0px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(1, 75, 110, 0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jpaf-ranking-1st-card__no-image {
  font-size: 12px;
  font-weight: 600;
  color: rgba(1, 75, 110, 0.5);
  text-align: center;
  line-height: 1.2;
}
.jpaf-ranking-1st-card__detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.jpaf-ranking-1st-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #014B6E;
  margin-bottom: 4px;
}
.jpaf-ranking-1st-card__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 12px;
}
.jpaf-ranking-1st-card__metric-label {
  font-size: 14px;
  font-weight: 500;
  color: #014B6E;
  margin-bottom: 2px;
}
.jpaf-ranking-1st-card__metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #014B6E;
}