/* 全体レイアウト */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;       /* 画面全体に広げる */
  display: flex;
  flex-direction: column;  /* ヘッダー→メイン→フッターを縦並び */
  box-sizing: border-box;
}

/* ヘッダー */
header {
  height: 120px;
  background: navy;
  color: white;
  padding: 20px;
  box-sizing: border-box;
}

header h1 {
  font-size: 2em;
  margin: 0;
  text-align: center;
}

header nav ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

header nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

header nav a.active {
  background-color: #e6ecf9;
  color: navy;
  border-bottom: 3px solid navy;
}

header nav a:hover {
  background-color: #e6ecf9;
  color: navy;
}


/* コンテナ（右側スクロールを効かせるため min-height:0 が重要） */
.container {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;          /* ← これがないと右側スクロールが効かなくなる */
}

/* 左カラム */
.left {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
  border-right: 1px solid #ccc;
  overflow: hidden;
  box-sizing: border-box;
}

/* 右カラム（スクロール可能） */
.right {
  flex: 6;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f9f9ff);
  overflow-y: auto;       /* スクロールを有効化 */
  box-sizing: border-box;
}

/* 左カラムリンク */
.left a {
  display: block;
  margin: 8px 0;
  padding: 10px 15px;
  background: linear-gradient(135deg, #ffffff, #e6e6ff);
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: navy;
  font-weight: bold;
  transition: all 0.3s ease;
}

.left a:hover {
  background: navy;
  color: white;
  transform: scale(1.05);
}

.left a::before {
  content: "⚾";
  margin-right: 8px;
  font-size: 1.2em;
}

/* 右カラム内要素 */
.right h2 {
  border-left: 5px solid navy;
  padding-left: 10px;
  margin-bottom: 15px;
  font-size: 1.4em;
  color: #333;
}

.right table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.right th, .right td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.right th {
  background-color: #e6ecf9;
  color: navy;
  font-weight: bold;
}

.right tr:nth-child(even) {
  background-color: #f5f8fc;
}

.right .info-box {
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== フッター ===== */
footer {
  height: 60px;
  background-color: #e6ecf9;
  color: navy;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;             /* 常に最下部 */
}

/* スマホ用レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .right table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .right th, .right td {
    padding: 6px;
    font-size: 0.85em;
  }

  .team-title {
    font-size: 1.4em;
    padding: 10px 0;
  }

  .left a {
    font-size: 0.9em;
    padding: 8px 12px;
  }
}
