.sg-ranking-page {
  margin: 24px 0;
}

.br-pickup-head {
      margin: 0px !important;
}
.br-pickup-head {
    margin-top: 16px !important;
}

.sg-member-info-table th {
    width: 20% !important;
}

.sg-member-info-table td {
    width: 80% !important;
}
.sg-ranking-page-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.4;
}

.sg-ranking-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #666;
}

.sg-ranking-grid {
  display: block;
   margin-bottom: 32px;
}

.sg-ranking-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.sg-ranking-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.sg-ranking-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.sg-ranking-table-wrap {
  overflow-x: auto;
}

.sg-ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.sg-ranking-table th,
.sg-ranking-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
  white-space: nowrap;
}

.sg-ranking-table th {
  background: #f8fafc;
  font-weight: 700;
}

.sg-col-name-left {
  text-align: left;
}

.sg-ranking-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.sg-ranking-link:hover {
  text-decoration: underline;
}

.sg-ranking-empty {
  padding: 24px 12px;
  color: #666;
}

.sg-ranking-error {
  color: #c00;
}

@media (min-width: 960px) {
  .sg-ranking-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.post_content table.sg-ranking-table thead th {
  background-color: #e2fdf4 !important;
  color: #000 !important;
}

.sg-ranking-block {
  display: block;
  margin: 0 0 24px;
}

.post_content .sg-ranking-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: #fff !important;
  box-shadow: none !important;
}

.post_content .sg-ranking-table thead th {
  background-color: #e2fdf4 !important;
  color: #000 !important;
}

.post_content .sg-ranking-table th,
.post_content .sg-ranking-table td {
  border-radius: 0 !important;
}



/* メインアクセント */
.sg-ranking-page-title {
    display: block !important;
    width: 100% !important;

    margin: 28px 0 24px !important;
    padding: 18px 16px !important;

    /* 板っぽい背景 */
    /* background: linear-gradient(180deg, #f3e6c9 0%, #e2d1a3 100%) !important; */
    background: linear-gradient(180deg, #f3ecff 0%, #e2d9f7 100%) !important;

    /* 看板ライン */
    border-top: 4px solid #111 !important;
    border-bottom: 4px solid #111 !important;

    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;

    text-align: center !important;
    color: #111 !important;

    /* 🔥 和フォント（ここ重要） */
    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "MS PMincho",
        "Noto Serif JP",
        serif !important;

    /* 文字強化 */
    font-size: 40px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    line-height: 1.4 !important;

    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .sg-ranking-page-title {
        font-size: 26px !important;
        padding: 14px 10px !important;
        margin: 20px 0 18px !important;
    }
}








.sg-ranking-table a {
    color: #1e73be !important;
    text-decoration: none;
}
.sg-ranking-table a:hover {
    color: #0b5ed7 !important;
    text-decoration: underline;
}
.sg-ranking-table a:visited {
    color: #1e73be !important;
}

.sg-hit-label{
  display:inline-block;
  padding:1px 4px;
  font-size:10px;
  font-weight:700;
  color:#fff;
  background:#ef4444;
  border-radius:3px;
  line-height:1.2;
}

/* テーブル全体 */
.sg-ranking-table {
  width: 100% !important;
  table-layout: auto !important; /* ←これが核心 */
  border-collapse: collapse;
}

/* セル */
.sg-ranking-table th,
.sg-ranking-table td {
  padding: 1px !important;
  font-size: 12px !important;
  text-align: center;
  white-space: nowrap;
}

/* 数値系ちょい詰める */
.sg-ranking-table td {
  font-variant-numeric: tabular-nums;
}

/* スマホ最適化 */
@media (max-width: 768px) {

  .sg-ranking-table th,
  .sg-ranking-table td {
    font-size: 10px !important;
    padding: 1px !important;
  }

  /* 金額列を少し広めに */
  .sg-ranking-table th:nth-child(3),
  .sg-ranking-table th:nth-child(4),
  .sg-ranking-table td:nth-child(3),
  .sg-ranking-table td:nth-child(4) {
    width: 20%;
  }
}

.sg-ranking-table th,
.sg-ranking-table td {
  font-weight: 700 !important;
}

.sg-ranking-table th,
.sg-ranking-table td {
  font-size: 12px !important;
}

.sg-ranking-table th,
.sg-ranking-table td {
  padding: 1px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: center;
  white-space: nowrap;
}

.sg-ranking-table td img {
  margin-right: 2px;
  vertical-align: middle;
}
/* 基本（PC含む） */
.sg-ranking-table th,
.sg-ranking-table td {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 1px !important;
}

/* スマホだけ */
@media (max-width: 768px) {
  .sg-ranking-table th,
  .sg-ranking-table td {
    font-size: 13px !important;
  }
}
.sg-ranking-table {
  line-height: 1.4;
}

.sg-member-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-member-stat-card {
  margin: 0;
  padding: 0;
}

.sg-member-stat-name {
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.sg-member-stat-name a {
  color: #1e73be !important;
  text-decoration: none !important;
}

.sg-member-stat-name a:visited {
  color: #1e73be !important;
}

.sg-member-stat-name a:hover {
  color: #0b5ed7 !important;
  text-decoration: underline !important;
}

.sg-member-stat-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.sg-member-stat-table th,
.sg-member-stat-table td {
  width: 25%;
  padding: 1px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .sg-member-stat-name {
    font-size: 14px !important;
  }

  .sg-member-stat-table th,
  .sg-member-stat-table td {
    font-size: 13px !important;
  }
}

.sg-ranking-table th {
  background: #e2fdf4 !important;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(1),
.sg-bet-list-head + .sg-ranking-table td:nth-child(1) {
    width: 14%;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(2),
.sg-bet-list-head + .sg-ranking-table td:nth-child(2) {
    width: 14%;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(3),
.sg-bet-list-head + .sg-ranking-table td:nth-child(3) {
    width: 20%;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(4),
.sg-bet-list-head + .sg-ranking-table td:nth-child(4) {
    width: 10%;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(5),
.sg-bet-list-head + .sg-ranking-table td:nth-child(5) {
    width: 20%;
}

.sg-bet-list-head + .sg-ranking-table th:nth-child(6),
.sg-bet-list-head + .sg-ranking-table td:nth-child(6) {
    width: 20%;
}

.sg-member-total-head + .sg-ranking-table {
    table-layout: fixed;
    width: 100%;
}

.sg-member-total-head + .sg-ranking-table th:nth-child(1),
.sg-member-total-head + .sg-ranking-table td:nth-child(1) {
    width: 20%;
}

.sg-member-total-head + .sg-ranking-table th:nth-child(2),
.sg-member-total-head + .sg-ranking-table td:nth-child(2) {
    width: 30%;
}

.sg-member-total-head + .sg-ranking-table th:nth-child(3),
.sg-member-total-head + .sg-ranking-table td:nth-child(3) {
    width: 20%;
}

.sg-member-total-head + .sg-ranking-table th:nth-child(4),
.sg-member-total-head + .sg-ranking-table td:nth-child(4) {
    width: 30%;
}




.sg-member-stat-table {
    width: 100%;
    table-layout: fixed;
}

.sg-member-stat-table th:nth-child(1),
.sg-member-stat-table td:nth-child(2),
.sg-member-stat-table th:nth-child(3),
.sg-member-stat-table td:nth-child(4) {
    box-sizing: border-box;
}

.sg-member-stat-table th:nth-child(1) {
    width: 20%;
}

.sg-member-stat-table td:nth-child(2) {
    width: 30%;
}

.sg-member-stat-table th:nth-child(3) {
    width: 20%;
}

.sg-member-stat-table td:nth-child(4) {
    width: 30%;
}









.sg-ranking-table {
    width: 100%;
    table-layout: fixed;
}

.sg-ranking-table .sg-col-rank {
    width: 20%;
    text-align: center;
}

.sg-ranking-table .sg-col-name {
    width: 40%;
}

.sg-ranking-table .sg-col-rate {
    width: 40%;
    text-align: center;
}


@media (max-width: 768px) {
    .sg-ranking-table thead th,
    .sg-ranking-table tbody td {
        font-size: 16px !important;
    }
}

.sg-refund-label {
    background: #1e88e5 !important;
}


.sg-team-total-table th {
    width: 20% !important;
}

.sg-team-total-table td {
    width: 80% !important;
}

/* 下のカード表と高さ揃える */
.sg-team-total-table th,
.sg-team-total-table td {
    height: 32px;
    line-height: 32px;
}

.sg-ranking-table {
    border-collapse: collapse !important;
    width: 100%;
}

.sg-ranking-table th,
.sg-ranking-table td {
    border: 1px solid #ccc !important;
}
.sg-spacer {
    height: 16px;
}



.sg-ranking-grid .sg-ranking-section-title {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;

    margin: 48px 0 24px !important;
    padding: 12px 10px !important;

    background: #e3f1ff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);

    color: #111 !important;

    /* 🔥 和フォント */
    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "MS PMincho",
        "Noto Serif JP",
        serif !important;

    /* 見出しチューニング */
    font-size: 24px !important;
    font-weight: 700 !important;   /* ←筆っぽさ重視で少し落とす */
    letter-spacing: 0.12em !important;
    line-height: 1.4 !important;
}

/* 左右の太線 */
.sg-ranking-grid .sg-ranking-section-title::before,
.sg-ranking-grid .sg-ranking-section-title::after {
    content: "";
    flex: 1 1 0;
    max-width: 180px;
    border-top: 2px solid #111;
}

@media (max-width: 768px) {
    .sg-ranking-grid .sg-ranking-section-title {
        gap: 10px !important;
        margin: 28px 0 20px !important;
        padding: 10px 8px !important;
        font-size: 20px !important;
    }

    .sg-ranking-grid .sg-ranking-section-title::before,
    .sg-ranking-grid .sg-ranking-section-title::after {
        max-width: 80px;
        border-top: 2px solid #222;
    }
}

.sg-member-performance-head {
    margin-bottom: 16px !important;
}
.sg-member-stat-name .sg-ranking-link {
    font-size: 20px !important;
}



.sg-member-name {
    display: block;
    width: 100%;

    margin: 32px 0 18px;
    padding: 18px 16px;

    /* 🔥 シルバー（上品グラデ） */
    background: linear-gradient(
        180deg,
        #f2f2f2 0%,
        #d9d9d9 50%,
        #c4c4c4 100%
    );

    /* 金属感のライン */
    border-top: 4px solid #888;
    border-bottom: 4px solid #555;

    text-align: center;
    color: #111;

    /* 和フォント維持 */
    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "MS PMincho",
        "Noto Serif JP",
        serif;

    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;

    /* 軽い立体感 */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 3px 10px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .sg-member-name {
        font-size: 24px;
        padding: 14px 10px;
        margin: 24px 0 14px;
    }
}

@media (max-width: 768px) {
    .sg-ranking-page .sg-ranking-table thead th,
    .sg-ranking-page .sg-ranking-table tbody th {
        font-size: 13px !important;

        height: 32px !important;
        line-height: 32px !important;
        padding: 0 6px !important;
        vertical-align: middle !important;
    }
}




.sg-ranking-subnav {
  margin: 16px 0 20px;
  text-align: center;
}

.sg-ranking-subnav-link {
  display: inline-block;
  padding: 10px 24px;
  background: #eef2f7; /* 薄めの上品グレー */
  color: #333;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d0d5dc;
  transition: all 0.2s ease;
}

.sg-ranking-subnav-link:hover {
  background: #e2e7ee;
  color: #000;
  border-color: #b8bec6;
}







/* =========================
   イベントヘッダー（最終版）
========================= */
.sg-bet-top-event {
    text-align: center;
    padding: 8px 4px;
    margin-bottom: 12px;

    background: #f3f0ff; /* ←背景復活 */
    border: none;
    box-shadow: none;
}

/* イベント名 */
.sg-bet-event-name {
    font-size: 26px;
    font-weight: 800;
    color: #4c1d95;
    line-height: 1.2;
}

/* strong不要対応 */
.sg-bet-event-name strong {
    font-weight: inherit;
}

/* 期間 */
.sg-bet-note {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}
/* SWELLのデフォルト余白＆clear無効化 */
.post_content > * {
    clear: none !important;
    margin-bottom: 0 !important;
}
/* =========================
   スマホ最適化
========================= */
@media (max-width: 767px) {
    .sg-bet-event-name {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 2px;
    }

    .sg-bet-note {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}