/* 累計ページ専用調整 */

/* ページ全体の横幅と中央寄せ */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* ヘッダーメニュー横並び */
.nav {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em 0;
  font-size: 1.1em;
}

.nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.nav a:hover {
  background-color: #e0e0e0;
}

.nav a.active {
  background-color: #d0eaff;
  border-color: #66aaff;
  font-weight: bold;
}

/* 表の構造と罫線 */
.table-wrapper {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  max-width: 600px;
  margin: 1em auto;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
  font-size: 19px;
}

/* 列幅の制御 */
th.rank, td.rank { width: 24px; }
th.name, td.name { width: 140px; }
th.total, td.total { width: 65px; }
th.diff, td.diff { width: 45px; }
th.no, td.no     { width: 24px; }

/* 名前列は省略表示 */
td.name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 数値列は太字 */
td.num {
  font-weight: bold;
  font-size: 16px;
}

/* 備考のスタイル */
.muted {
  margin-top: 1em;
  font-size: 0.9em;
  color: #666;
}

/* スマホ用調整 */
@media (max-width: 414px) {
  table th, table td {
    font-size: 13px;
    padding: 4px;
  }
  th.name, td.name { width: 120px; }
}

table {
  background-color: #fff; /* 白背景で透過防止 */
}

table tr:nth-child(even) {
  background-color: #fafafa;
}

@media (max-width: 414px) {
  table th, table td {
    font-size: 12px;
    padding: 3px 4px;
  }
  table {
    font-size: 12px;
  }
}