/* =========================================================
 * 試合結果ページ専用 (assets/css/results.css)
 *   1) 2022〜2024年 … 表(game-table)
 *   2) 2025年〜     … スコアボード切り替えカード
 * 「試合結果(年別)」テンプレートのページだけで読み込まれます。
 * ======================================================= */

.results-embed{margin:0 0 40px}

/* ---------- 年の切り替えプルダウン ---------- */
.year-select{margin-bottom:28px}
.selectbox-1{position:relative;display:inline-flex;align-items:center}
.selectbox-1::after{content:'';position:absolute;right:15px;width:10px;height:7px;background-color:var(--gold,#C9A227);clip-path:polygon(0 0,100% 0,50% 100%);pointer-events:none}
.selectbox-1 select{-webkit-appearance:none;appearance:none;min-width:230px;height:2.8em;padding:.4em calc(.8em + 30px) .4em .8em;border:none;border-bottom:2px solid var(--engi,#8B1E2D);border-radius:0;background-color:#fff;color:var(--engi,#8B1E2D);font:inherit;font-weight:700;cursor:pointer}
.selectbox-1 select:focus{outline:none;border-bottom-color:var(--gold,#C9A227)}

/* ---------- 1) 試合結果の表(〜2024年) ---------- */
.game-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}
.game-table thead{background-color:rgb(199,242,250)}
.game-table th,
.game-table td{padding:12px 16px;border:1px solid #ddd;text-align:left;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-table .win{color:rgb(150,17,17);font-weight:bold}
.game-table .lose{color:rgba(47,69,238,.83);font-weight:bold}
.game-table .draw{color:#000}

@media (min-width:769px){
  .game-table th:nth-child(1),.game-table td:nth-child(1){width:7%}
  .game-table th:nth-child(2),.game-table td:nth-child(2){width:20%}
  .game-table th:nth-child(3),.game-table td:nth-child(3){width:18%}
  .game-table th:nth-child(4),.game-table td:nth-child(4){width:20%}
  .game-table th:nth-child(5),.game-table td:nth-child(5){width:10%}
}

/* スマホ: 1試合ごとのカード表示 */
@media (max-width:768px){
  .game-table thead{display:none}
  .game-table tbody{display:block}
  .game-table tr{display:flex;flex-wrap:wrap;background:#fff;margin-bottom:16px;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.1);padding:10px 16px}
  .game-table td{display:inline-block;width:100%;padding:8px 0;font-size:14px;white-space:normal;overflow-wrap:break-word;word-break:break-word}
  .game-table td::before{content:attr(data-label);font-weight:bold;margin-right:8px;color:#333;display:inline-block;min-width:90px}
  .game-table td:last-child{border-bottom:none}
  .game-table td,.game-table tr{border:none}
}

/* ---------- 2) スコアボード切り替えカード(2025年〜) ---------- */
.broadcast-layout{background:#8a8600;color:#fff;font-family:'Segoe UI',sans-serif;padding:20px;max-width:1000px;margin:auto;border-radius:10px}
.tournament-name{font-size:20px;font-weight:bold;text-align:center;padding:10px;border-radius:6px}

.date-switcher{display:flex;justify-content:center;align-items:center;gap:15px;margin-bottom:15px;font-size:18px}
.date-switcher button{background:#8d9f0e;border:none;color:#fff;font-size:24px;padding:6px 14px;cursor:pointer;border-radius:6px}
.date-switcher button:disabled{opacity:.3;cursor:default}
.display-date{min-width:150px;text-align:center;font-weight:bold}

.score-bar{display:flex;justify-content:space-between;align-items:center;background:#8a8600;padding:0 20px;border-radius:8px;margin-bottom:20px;gap:80px}
.team-left,.team-right{width:40%;display:flex;align-items:center}
.team-left{justify-content:flex-end}
.team-right{justify-content:flex-start}
.team-left .score,.team-right .score{width:80px;font-size:40px;font-weight:bold;color:#fff;flex-shrink:0}
.team-left .score{text-align:right}
.team-right .score{text-align:left}
.team-name2{font-size:28px;font-weight:900;color:rgb(221,232,13);text-transform:uppercase;letter-spacing:2px;text-shadow:3px 3px 10px rgba(0,0,0,.7);white-space:nowrap;overflow:visible}
.team-logo-s{width:100px;height:auto}
.team-logo-s2{width:60px;height:auto}
.team-left img.team-logo-s .team-logo-s2{margin-left:10px}
.score-separator{font-size:1.2em}

.main-scoreboard{margin-bottom:20px}
.inning-header,.team-row{display:flex;border-bottom:1px solid #313701d9}
.inning-header{background-color:#313701d9;font-weight:bold}
.team-label{flex:2.2;text-align:center;padding:10px;border-right:1px solid #313701d9;border-left:1px solid #313701d9}
.team-label img{display:inline-block;vertical-align:middle}
.inning,.total{flex:1;text-align:center;padding:10px 5px;border-right:1px solid #313701d9;justify-content:center;align-items:center}
.total{background-color:#1e3a5f;font-weight:bold}
.cold-info{text-align:right;font-size:.9em;margin-bottom:10px;margin-top:-10px}
.grand-name{font-size:.7em;color:#aaa}

.game-status{background:#313701d9;padding:15px;border-radius:6px;display:flex;justify-content:space-around;font-size:14px;flex-wrap:wrap;gap:10px;text-align:center}
.status-item{white-space:nowrap}

.image-wrapper{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:10px}
.image-wrapper img{max-width:450px;height:auto;border-radius:8px}

@media (max-width:600px){
  .score-bar{gap:10px;justify-content:center;margin-bottom:10px}
  .team-left,.team-right{width:20%}
  .score-left,.score-right,.team-left .score,.team-right .score{font-size:28px}
  .team-label{font-size:8px;padding:6px 2px}
  .inning,.total{font-size:11px;padding:6px 1px}
  .tournament-name{font-size:16px;padding:8px}
  .long-text{font-size:14px!important}
  .team-left .score,.team-right .score{width:45px}
  .image-wrapper img{width:100%}
  .team-name2{font-size:13px!important}
  .team-logo-s2{width:40px;height:auto}
  .game-status{flex-direction:column;align-items:flex-start}
  .status-item{width:100%}
}
