.radio-wrapper {
    border: 2px solid #607d8b;
    border-radius: 5px;
    padding: 35px 10px 20px;
    max-width: 600px;
    width: 100%;
}
.radio-box {
    gap: 1rem;
    position: relative;
}
.radio-tilte {
    background: #607d8b;
    border-radius: 5px 0 5px 0;
    color: #ffffff;
    padding: 2px 15px 1px;
    position: absolute;
    top: -37px;
    left: -12px;
}

/* リーグ選択セグメントコントロール */
.league-selection-nav {
  background-color: #f0f2f5;
  border-radius: 50px;
  padding: 5px;
  display: inline-flex;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.league-nav-item {
  border-radius: 40px;
  padding: 10px 25px;
  font-weight: 700;
  color: #607d8b;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  font-size: 1rem;
  border: none;
}
.league-nav-item:hover {
  color: #455a64;
  background-color: rgba(255,255,255,0.4);
}
.league-nav-item.active {
  background-color: #fff;
  color: #607d8b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: scale(1.02);
}
@media (max-width: 576px) {
  .league-nav-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* グラフカードとコンテナ */
.chart-card {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}
@media (max-width: 768px) {
  .chart-container {
    height: 380px;
  }
}

/* チームフィルタ（独自凡例）のスタイル */
.team-toggle {
  display: none;
}
.team-filter-item {
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .team-filter-item {
    min-width: 140px; /* PCでは全チーム同じ幅にして統一感を出す */
    margin-bottom: 15px !important;
  }
}

.team-filter-label {
  position: relative;
  border: 2px solid var(--team-color); /* チームカラーを枠線に */
  background-color: transparent;
  color: #333;
  border-radius: 4px; /* 硬派な長方形 */
  padding: 8px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  user-select: none;
  cursor: pointer;
  height: 100%;
  opacity: 0.9;
}

.team-filter-label:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* チェックされている時のスタイル（ON状態） */
.team-toggle:checked + .team-filter-label {
  background-color: var(--bg-color); /* チームカラーの透過背景（当初の意図：黒文字が映える薄さ） */
  border-color: var(--team-color);
  color: #222;
  box-shadow: inset 0 0 0 1px var(--team-color); /* 少し強調 */
  opacity: 1;
}

/* チェックされていない時のスタイル（OFF状態：引き算のデザイン） */
.team-toggle:not(:checked) + .team-filter-label {
  background-color: #fff;
  border-color: #ddd;
  color: #bbb;
  opacity: 0.6;
}