/* 親要素（フレックスコンテナ）の設定 */
.main .main-list {
  display: flex;
  align-items: center; /* ★重要：ここで縦の「ド真ん中」に揃える */
  justify-content: space-between; /* ★重要：タイトルを左、ボタンを右端に分ける */
  margin: 15px 0px; /* <hr>との間隔調整 */
}

/* 見出しのスタイル */
.main .main-title {
  position: relative;
  padding: 0 25px 0 30px;
  font-size: 1.3rem;
  font-weight: bold;
  white-space: nowrap;
  margin: 0; /* h3が元々持っている外側の余白（margin）をリセット */
  line-height: 1; /* 行の高さのズレをなくす */
}

/* 左側のボールの絵文字 */
.main .main-title::before {
  content: "⚾";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* これでボールも文字の縦真ん中に来ます */
  font-size: 1.2rem;
}

/* 右側のボタンを囲むsectionのスタイル調整 */
.main .main-list .name-btns {
  /* インラインで書かれていた style="padding-top: 1rem;" は効かなくなるか、ズレの原因になるのでCSSで上書きリセットします */
  padding-top: 0 !important;
  margin: 0;
}

/* 右側のボタン自体のスタイル（必要に応じて調整してください） */
.main .main-list .name-btns a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap; /* ボタンの文字も折り返さない */
}

/* 見出し（年度など）のスタイル */
.tournament-group-title {
  border-left: 5px solid #0056b3; /* スポーティーなブルー */
  padding-left: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin: 2.5rem 0 1rem;
  line-height: 1.4;
}

/* 大会リストをグリッド（タイル状）に並べる */
.modern-tournament-list {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(280px, 1fr)
  ); /* PCは横並び、スマホは縦並び */
  gap: 15px;
  padding: 0;
  list-style: none;
  margin-bottom: 2rem;
}

/* カード型リンクのスタイル */
.modern-tournament-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa; /* 薄いグレー */
  border: 1px solid #e9ecef;
  border-radius: 8px; /* 角丸 */
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease; /* アニメーションを滑らかに */
}

/* マウスオーバー時（ホバー）の動き */
.modern-tournament-list li a:hover {
  background-color: #ffffff;
  border-color: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15); /* フワッと影をつける */
  transform: translateY(-2px); /* 少し上に浮く */
  color: #0056b3;
}

/* 右側の矢印アイコン */
.modern-tournament-list li a::after {
  content: "〉";
  font-size: 0.9em;
  color: #ccc;
  transition: color 0.3s;
}
.modern-tournament-list li a:hover::after {
  color: #0056b3;
}
