/* =========================
   全体レイアウト・共通
   ========================= */
body {
    font-family: "Yu Gothic", "MS PGothic", sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 10px;
    font-size: 12px;
}

/* ページ見出し */
.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 16px;
    margin-bottom: 10px;
}

/* =========================
   表ヘッダー（サッカー馬柱ヘッダー）
   ========================= */
.table-wrapper {
    overflow-x: auto;
    /*overflow-x: visible;*/
    -webkit-overflow-scrolling: touch;
}

.row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ccc;
}
.table-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;

    display: flex;
    flex-direction: row;
    border: 2px solid #333;
    margin-bottom: 6px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: bold;
}

/* ランク・選手名・試合成績ヘッダー */
.th-rank {
    width: 20px;
    min-width: 20px;
    text-align: center;
    border-right: 1px solid #333;
}

.th-player {
    width: 184px;
    min-width: 184px;
    padding-left: 6px;
    border-right: 1px solid #333;
}

.th-matches {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-left: 6px;
}

.th-matches-top {
    font-size: 12px;
    margin-bottom: 2px;
}

.th-matches-bottom {
    font-size: 11px;
    color: #333;
}

/* =========================
   1選手 = 横1行
   ========================= */
.player-column {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #ccc;
    margin-bottom: 1.2px;
    padding: 0;
}

/* 左列：rowno + 選手情報（固定列） */
.fixed-col {
    position: sticky;
    left: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 210px;
/*    border-right: 2px solid #333;*/
}
    
/* rowno（馬番） */
.rowno {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    margin-top: 3px;
    white-space: nowrap;
}

/* 選手情報ブロック */
.blk-name {
    width: 185px;
    min-width: 185px;
    font-size: 14px;
    line-height: 1.2;
    margin-top: 4px;
    background: #fcfcfc;
}

/* 名前＋能力値の2カラム */
.player-header {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

/* 左：名前（大きめ） */
.p-name {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    width: 130px;
    min-width: 130px;
}

/* 右：最大 / 中間（小さめ） */
.p-stats {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.2;
}

.p-max,
.p-mid {
    display: flex;
  /*  justify-content: space-between;*/
    width: 55px;
}

.p-num {
    display: inline-block;
    width: 25px;
    text-align: right;
    font-weight: bold;
}

/* 選手の補足情報 */
.p-info {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
    color: #333;
}

/* =========================
   右側：試合履歴（横スクロール）
   ========================= */
.match-row {
    display: flex;
    flex-direction: row;
}

/* 各試合の縦長カラム（馬柱風） */
.match-box {
    width: 118px;
    min-height: 60px;
    border-left: 1px solid #ccc;
    padding: 2px 4px;
    font-size: 10px;
    background: #ffffff;
}

/* ゼブラ背景 */
.match-box:nth-child(even) {
    background: #fafafa;
}

/* 行間 1pt */
.match-box div {
    margin-bottom: 0.1pt;
}

/* 1行目：game_time + play_point */
.m-topline {
    display: flex;
    justify-content: space-between;
}

.m-topline-b {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 11px;
}

/* 2行目：大会名 */
.m-title {
    font-size: 10px;
}

/* 3行目：対戦相手 */
.m-vs {
    font-size: 10px;
}

/* Win / Draw / Lose 色分け */
.m-result {
    font-weight: bold;
}

.m-result.win {
    color: #0066cc;
}

.m-result.draw {
    color: #666666;
}

.m-result.lose {
    color: #cc0000;
}

/* 5行目：出場形態＋時間 */
.m-play {
    font-size: 10px;
}

/* goal / yellow / red 表示 */
.m-cards {
    font-size: 11px;
    margin-bottom: 1pt;
}

.goal {
    color: #0066cc;
    font-weight: bold;
    margin-right: 4px;
}

.yellow {
    color: #d4aa00;
    font-weight: bold;
    margin-right: 4px;
}

.red {
    color: #cc0000;
    font-weight: bold;
    margin-right: 4px;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(240, 240, 240, 0.95);
    border-top: 2px solid #333;
    padding: 8px 10px;
    z-index: 3000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-nav {
    display: flex;
    gap: 10px;
}

.page-btn {
    background: #0066cc;
    color: #fff;
    padding: 10px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    justify-content: center;    /* 横方向中央 */
    align-items: center;        /* 縦方向中央 */
}

.footer-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-filter label {
    font-size: 14px;
}

.footer-filter button {
    padding: 4px 10px;
    font-size: 14px;
}

.position-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6px;
}

.checkbox-row {
  display: flex;
  gap: 0.12px;
}
