/* ページ全体 */
body{
    font-family:sans-serif;
    background:#f5f5f5;
    margin:0;

    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}

/* タイトル */
h1{
    text-align:center;
}
/* 試合カード */
.card{
    background:white;
    padding:20px;
    margin:15px auto;
    width:400px;
    border-radius:10px;
    box-shadow:0 0 10px gray;
}

/* ヘッダー */
header{
    position: relative;

    background-image: url("../images/dynamiteleague_landscape_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 380px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
}

header::before{
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 45%,
        rgba(0,0,0,0.35) 75%,
        rgba(0,0,0,0.75) 100%
    );

    z-index: 1;
}

header h1{
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 56px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}


/* サブタイトル */

header p{
    position: relative;
    z-index: 2;
    margin-top: 15px;
    font-size: 24px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

/* メイン */
main{
    width: 90%;
    max-width:1200px;
    margin:30px auto;
}

section{
    background:white;
    margin-bottom:30px;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}
section h2{
    color:#F82627;
    border-left:6px solid #F82627;
    padding-left:10px;
}

#hero{
    text-align:center;
}

.poster{
    margin:20px auto;
}

.poster img{
    width:100%;
    max-width:900px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,0.2);
}

/* ===== お知らせ ===== */

.news-item{
    padding:15px 0;
    border-bottom:1px solid #ddd;
}

.news-item:last-child{
    border-bottom:none;
}

.news-item .date{
    display:inline-block;
    font-weight:bold;
    color:#F82627;
    margin-bottom:5px;
}

.news-item p{
    margin:5px 0 0 0;
}


.match-title{

    color:#F82627;

    font-weight:bold;

    margin-bottom:15px;

}



.score{

    color:#F82627;

    font-size:34px;

}

.status{

    margin-top:15px;

    text-align:center;

    color:#666;

}



.match-title {
    font-weight: bold;
    margin-bottom: 8px;
}



.score {
    font-size: 18px;
    font-weight: bold;
}

.winner {
    color: #F82627;
    font-weight: bold;
}
.winner{
    color: #F82627;
    font-weight: bold;
}

.match-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.before {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.finished {
    background-color: #e5e7eb;
    color: #374151;
}

.match-detail{
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;

    background: white;

    border-radius: 15px;

    box-shadow: 0 0 15px rgba(0,0,0,0.15);

    text-align: center;
}

.match-detail h1{
    margin-bottom: 10px;
}

.match-detail p{
    color: #666;
}


.team{

    width:30%;

    font-size:30px;

    font-weight:bold;

}

.score{

    width:40%;

    font-size:48px;

    font-weight:bold;

}


.match-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.match-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
}

.detail-link{
    color:#F82627;
    font-weight:bold;
}



.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.match-title {
    font-weight: bold;
    font-size: 16px;
}

.match-date {
    font-size: 13px;
    color: #666;
}



.team-logo {
    width: 60px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
}

.score {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.winner {
    font-weight: bold;
    color: #F82627;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status.before {
    background: #ff9800;
    color: white;
}

.status.live {
    background: #2196F3;
    color: white;
}

.status.finished {
    background: #F82627;
    color: white;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.detail-link {
    text-align: center;
    color: #F82627;
    font-weight: bold;
    margin-top: 10px;
}

.detail-link:hover {
    text-decoration: underline;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-box span {
    display: block;
    width: 140px;
    text-align: center;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.score {
    font-size: 30px;
    font-weight: bold;
    white-space: nowrap;
}

.winner-text {
    text-align: center;
    color: #F82627;
    font-weight: bold;
    margin-top: 15px;
}

#homeRuns,
#steals {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: center;
}

#homeRuns li,
#steals li {
    text-align: center;
}

.scoreboard {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    border-collapse: collapse;
    border: 3px solid #333;   /* 表全体の外枠 */
}

.scoreboard th,
.scoreboard td {
    border: 1px solid #999;    /* マスごとの枠線 */
    padding: 12px;
    text-align: center;
}

.scoreboard th:nth-child(5),
.scoreboard td:nth-child(5) {
    border-left: 3px solid #333;
}

.scoreboard th:first-child,
.scoreboard td:first-child {
    border-right: 3px solid #333;
    font-weight: bold;
}

.away-row td:first-child {
    background-color: #ABD7E7;   /* 水色 */
}

.home-row td:first-child {
    background-color: #DC9FDC;   /* 紫　*/
}

.away-row td:first-child,
.home-row td:first-child {
    font-weight: bold;
}

.match-page {
    background-image: url("../images/dynamiteleague_plain_bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    padding: 30px;
}

.manager {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}

.league {
    display: inline-block;
    background: #222;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.standings-link {
    text-decoration: none;
    color: inherit;
}


.standings-card {
    border: 0;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}


.standings-card:hover {
    transform: translateY(-5px);
}

.standings-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:0;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.standings-table th{
    background:#F82627;
    color:white;
    padding:12px;
    text-align:center;
    font-size:15px;
}

.standings-table td{
    padding:10px;
    text-align:center;
    border-bottom:1px solid #e5e5e5;
}

.standings-table tr:nth-child(even){
    background:#f8f8f8;
}

.standings-table tr:hover{
    background:#fff3f3;
}

.team-name{
    display:flex;
    align-items:center;
    gap:10px;
    text-align:left;
}

.team-name img{
    width:32px;
    height:22px;
    object-fit:contain;
}

.standings-table{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.standings-table th,
.standings-table td{
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.standings-table th{
    background-color: #F82627;
    color: white;
    font-weight: bold;
}

.standings-table tbody tr:nth-child(even){
    background-color: #f8f8f8;
}

.standings-table tbody tr:hover{
    background-color: #f1f1f1;
}

.standings-card{
    flex:1;
}



.match-date{

    text-align:center;

    font-weight:bold;

}



.match-teams{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:30px;

}



.match-team{

    text-align:center;

}



.match-team img{

    width:70px;

    height:70px;

    object-fit:contain;

}



.match-score{

    font-size:25px;

    font-weight:bold;

}



.match-status{

    text-align:center;

    margin-top:10px;

}

.starter{
    font-size: 0.9rem;
    color: #666;
    margin-top: 3px;
}

#City-match-list,
#Wild-match-list{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-date{
    margin: 30px auto 15px;
    max-width: 900px;
    font-size: 1.3rem;
    font-weight: bold;
    border-left: 6px solid #cbae1c;
    padding-left: 10px;
}

.match-grid{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
   

.schedule-grid{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

#homeRuns,
#awayRuns,
#homeSteals,
#awaySteals{
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: center;
}

.team-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    font-weight:bold;
    margin-top:10px;
}

.mini-logo{
    width:30px;
    height:25px;
    object-fit:contain;
}

/* 絞り込みエリア */

.filter {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px 25px;

    background: #ffffff;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}


/* ラベル */

.filter label {

    font-size: 16px;
    font-weight: bold;

    color: #333;

}


/* 試合を検索タイトル */

.filter-title {

    max-width: 900px;
    box-sizing: border-box;

    margin: 30px auto 0;

    padding: 12px;

    text-align: center;

    color: white;

    background: black;

    border: 3px solid #F82627;

    border-bottom: none;

    border-radius: 12px 12px 0 0;

    font-size: 24px;

}


/* 絞り込みボックス */

.filter {

    max-width: 900px;
    box-sizing: border-box;

    margin: 0 auto 30px;

    padding: 20px 25px;

    background: white;

    border: 3px solid #F82627;

    border-top: none;

    border-radius: 0 0 12px 12px;

    display: flex;

    justify-content: center;

    gap: 30px;

    align-items: center;

}


.filter select {

    margin-left: 10px;

    padding: 10px 40px 10px 15px;

    font-size: 15px;

    font-weight: bold;

    color: white;

    background-color: #222;

    border: 2px solid #F82627;

    border-radius: 8px;

    cursor: pointer;

    appearance: none;

    background-image: linear-gradient(45deg, transparent 50%, #F82627 50%),
                      linear-gradient(135deg, #F82627 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;

}


/* スマホ対応 */

@media(max-width:600px){

    .filter {

        flex-direction: column;

        gap: 15px;

    }


    .filter select {

        width: 180px;

    }

}

.team-list{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

    max-width:1000px;

    margin:30px auto;

}



.team-league-title{
    max-width: 1000px;
    margin: 40px auto 20px;
    padding-left: 12px;
    border-left: 6px solid #F82627;
    color: #000000;
}



.match-detail{
    position: relative;
}




.team-table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}

.team-table th,
.team-table td{

    border:1px solid #555;

    padding:12px;

}

.team-table th{

    width:35%;

    background:#ffffff;

}

.team-detail{

    max-width: 900px;
    margin: 40px auto;
    padding: 30px;

    background:#ffffff;

    background-size: cover;
    background-position: center;

    border-radius: 15px;

    color: #000000;
}

.team-top{

    display:flex;

    align-items:center;

    gap:30px;

    margin-bottom:30px;

}

.team-logo-large{
    width: 180px;
    height: 150px;
    object-fit: contain;
}

.team-info h1{
    font-size: 64px;
    margin: 0 0 15px;
}

.team-info .league{
    display: inline-block;

    padding: 12px 28px;

    border-radius: 999px;

    font-size: 24px;
    font-weight: bold;
}

.team-page{

    background-image:url("../images/dynamiteleague_plain_bg.jpg");

    background-size:cover;

    background-position:center;

    background-attachment:fixed;

}





.team-top{
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 20px 0 40px;
}

.team-profile{

    display:flex;
    gap:25px;

    margin:40px 0;
}

.profile-bar{

    width:8px;

    border-radius:999px;

    background: var(--team-color);

    flex-shrink:0;
}

.profile-text{

    flex:1;
}

.profile-text h3{

    margin-top:0;
    margin-bottom:10px;

    font-size:26px;
}

.profile-text p{

    line-height:1.9;

    margin-bottom:30px;
}

#teamLeague{
    display: inline-block;

    margin-top: 10px;

    color: #666;
    font-size: 22px;
    font-weight: 600;

    background: none;
    padding: 0;
    border-radius: 0;
}

.team-link{
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.team-link:hover{
    text-decoration: underline;
    cursor: pointer;
}

.team-link{
    color: inherit;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.team-link:hover{
    text-decoration: underline;
}

.team-table{

    width: 100%;
    border-collapse: collapse;

    margin-top: 25px;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

}

.team-table th{

    width: 180px;

    background: #F82627;
    color: white;

    padding: 16px;

    font-size: 18px;
    font-weight: bold;

    border-bottom: 1px solid #ffffff33;

}

.team-table td{

    background: #ffffff;

    color: #222;

    text-align: center;

    padding: 16px;

    font-size: 18px;

    border-bottom: 1px solid #e5e5e5;

}

.team-table tr:nth-child(even) td{

    background: #f8f8f8;

}

.team-table tr:hover td{

    background: #fff2f2;

    transition: .2s;

}

.team-detail h2{

    margin-top: 45px;

    padding-left: 14px;

    border-left: 6px solid #F82627;

    font-size: 30px;

    color: #222;

}

.team-card{

    border: 2px solid #222;
    border-radius: 15px;

    overflow: hidden;

    background: #fff;

    transition: .2s;
}

.team-card:hover{

    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(0,0,0,.25);

}

.team-card-top{

    background: white;

    padding: 35px 20px;

    text-align: center;

}

.team-card-bottom{

    padding: 15px;

    text-align: center;

    color: white;
}

.team-card-top img{

    width:120px;
    height:100px;

    object-fit:contain;
}

.team-card-bottom{

    border-top: 2px solid #111;

    padding: 16px;
}

.season-table{

    width:100%;
    border-collapse:collapse;

    margin-bottom:30px;

}

.season-table th,
.season-table td{

    border:1px solid #ccc;

    text-align:center;

    padding:10px;

}

.season-table th{

    background:#f7f7f7;

    font-size:14px;

}

.season-table a{

    text-decoration:none;

    color:#0066cc;

}

.season-table a:hover{

    text-decoration:underline;

}

.season-logo{

    width:24px;
    height:20px;

    object-fit:contain;

    vertical-align:middle;

    margin-right:4px;
}

.set-title{

    width:120px;

    background:#f5f5f5;

    font-size:22px;

    font-weight:bold;

    vertical-align:middle;

    text-align:center;

    border-left:5px solid #F82627;

}

.season-score{

    margin-left:8px;

    font-size:15px;

    font-weight:normal;

    color:#444;

}

/* ○×の行 */
.season-result td{
    border-bottom:none;
}

/* 詳細の行 */
.season-detail td{
    border-top:none;
}

.season-result td{

    font-size: 28px;

    font-weight: bold;

    border-bottom: none;

    padding: 18px 10px;

}

.season-score{

    margin-left: 10px;

    font-size: 22px;

    font-weight: bold;

    color: #222;

}

.season-table th,
.season-table td{

    min-width: 100px;

}

.season-table-wrapper{
    overflow-x: auto;
}



.match-detail{
    position: relative;
}

.match-detail{
    position:relative;
}

.team-back-button{

    display: inline-block;

    margin-bottom: 25px;

    color: rgb(0, 0, 0);

    text-decoration: none;

    font-size: 18px;

    font-weight: bold;

}

.team-back-button:hover{

    color: #F82627;

}

.match-detail{
    position: relative;
}

.match-back-button{

    position: absolute;

    top: 20px;
    left: 20px;

    color: rgb(0, 0, 0);

    text-decoration: none;

    font-size: 18px;

    font-weight: bold;

}

.match-back-button:hover{

    color: #F82627;

}

.matchup-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

.matchup-table th,
.matchup-table td {
    border: 1px solid #ccc;
    padding: 8px;
}


.matchup-team {
    min-width: 90px;
}


.matchup-team img {
    width: 42px;
    height: 35px;
    object-fit: contain;
    display: block;
    margin: auto;
}


.matchup-team span {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    font-size: 13px;
}

.matchup-team .team-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.matchup-team .team-link:hover {
    text-decoration: underline;
}

.matchup-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.matchup-link:hover {
    text-decoration: underline;
}

.ranking-container{

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}


.ranking-card{

    border: 1px solid #ccc;

    padding: 15px;

    border-radius: 10px;

}


.ranking-card h4{

    text-align: center;

    margin-top: 0;

}

@media(max-width:700px){

    .ranking-container{

        grid-template-columns:1fr;

    }

}

/* 個人成績ランキング */

.ranking-section{
    margin-top:40px;
}


.ranking-section h2{
    text-align:center;
    margin-bottom:30px;
}


/* リーグタイトル */

.ranking-section > h3{

    background-color: #F82627;

    color:rgb(255, 255, 255);

    padding:10px 20px;

    border-radius:8px;

    margin-top:40px;

}



/* 3つのカード */

.ranking-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-top:20px;

}



/* 各ランキングカード */

.ranking-card{

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 3px 8px rgba(0,0,0,0.15);

}



/* 本塁打・盗塁・勝利先発のタイトル */

.ranking-card h4{

    background:#000000;

    color:white;

    text-align:center;

    margin:0;

    padding:12px;

}



/* 表 */

.ranking-table{

    width:100%;

    border-collapse:collapse;

}



.ranking-table td,
.ranking-table th{

    padding:10px;

    text-align:center;

    border-bottom:1px solid #ddd;

}


/* 順位 */

.ranking-table td:first-child{

    width:50px;

    font-weight:bold;

}


/* 選手名 */

.ranking-table td:nth-child(2){

    font-weight:bold;

}


/* 成績 */

.ranking-table td:last-child{

    font-size:18px;

    font-weight:bold;

}



/* スマホ */

@media(max-width:700px){

    .ranking-container{

        grid-template-columns:1fr;

    }

}

/* 詳細を見るボタン */

.detail-button{
    display:block;
    width:200px;
    margin:30px auto 10px;
    padding:12px 20px;
    background:#000000;
    color:white;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
    border-radius:25px;
    transition:0.3s;
}


.detail-button::before{
    content:"";
    display:inline-block;
    margin-right:8px;
    border-top:7px solid transparent;
    border-bottom:7px solid transparent;
    border-left:10px solid white;
    vertical-align:middle;
}


.detail-button:hover{
    background:#F82627;
    transform:translateY(-2px);
}



@media (max-width:700px){

    header{

        height:180px;

        padding:20px;

    }

    header h1{

        font-size:48px;

    }

}



.schedule-grid{
    display:flex;
    flex-wrap:wrap;
    width:100%;
}

.schedule-grid{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    justify-content:stretch;
}

/* ===== ナビゲーション ===== */

nav{
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    background: #1f1f1f;

    width: 100%;
}

nav a{
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 18px 10px;

    color: #fff;
    text-decoration: none;
    font-weight: bold;

    transition: .25s;
}

nav a:link,
nav a:visited{
    color:#fff;
}

nav a:hover,
nav a:active{
    background:#F82627;
}


/* ===== スマホ ===== */

@media (max-width:700px){

    nav{

        grid-template-columns:repeat(3,1fr);

    }

    nav a{

        padding:14px 8px;
        font-size:15px;

    }

}

/* ===== 試合カード チーム表示 ===== */

.teams{

    display:grid;

    grid-template-columns:1fr auto 1fr;

    align-items:center;

    gap:5px;

}


.team-box{

    display:flex;

    flex-direction:column;

    align-items:center;

    min-width:0;

}


.team-logo{

    width:60px;

    height:50px;

    object-fit:contain;

    margin-bottom:6px;

}


.team-link{

    font-size:14px;

}


.team-link{

    color:inherit;

    text-decoration:none;

    font-weight:bold;

    white-space:nowrap;

}


.team-link:hover{

    text-decoration:underline;

}


.score{

    font-size:30px;

    font-weight:bold;

    color:#222;

    white-space:nowrap;

}



/* スマホ */

@media(max-width:700px){

    .teams{

        grid-template-columns:1fr auto 1fr;

        gap:10px;

    }


    .team-logo{

        width:55px;

        height:45px;

    }


    .score{

        font-size:22px;

    }

}

.match-card{

    width:100%;

    padding:12px;

    background:white;

    border-radius:15px;

    box-sizing:border-box;

    box-shadow:0 4px 14px rgba(0,0,0,.12);

}

@media (max-width:700px){

    .match-card{

        max-width:none;

    }

}



.schedule-container{
    width:100%;
}

.schedule-grid{

    display:grid;

    grid-template-columns:repeat(4, minmax(0, 1fr));

    gap:15px;

}

@media(max-width:700px){

    .schedule-grid{

        grid-template-columns:1fr;

    }

}

.team-logo{

    width:40px;

    height:40px;

    object-fit:contain;

}

#matchList{

    display:grid;

    grid-template-columns:repeat(4, minmax(0,1fr));

    gap:15px;

    max-width:1200px;

    margin:0 auto;

}

@media(max-width:700px){

    #matchList{

        grid-template-columns:1fr;

    }

}

.container{

    width:100%;

    max-width:1200px;

    margin:0 auto;

    padding:0 20px;

    box-sizing:border-box;

}

.league-container{

    width:100%;

    max-width:100%;

    box-sizing:border-box;

}

#Cityleague-matchup{

    overflow-x:auto;

    width:100%;

}

#Wildleague-matchup{

    overflow-x:auto;

    width:100%;

}

.matchup-table{

    min-width:700px;

}

.table-wrapper{

    display:block;

    width:100%;

    max-width:100%;

    overflow-x:auto;

    -webkit-overflow-scrolling:touch;

    box-sizing:border-box;

}

@media(max-width:700px){

    .standings-page .standings-table th,
    .standings-page .standings-table td{

        font-size:13px;

        padding:10px 6px;

    }

}

.standings-card{

    background:none;

    box-shadow:none;

    padding:0;

}

.standings-container{

    width:100%;

    max-width:1400px;

    margin:0 auto;

    padding:0 20px;

    box-sizing:border-box;

}

@media(max-width:700px){

    .matchup-table{

        width:auto;

        table-layout:fixed;

        min-width:0;

    }


    .matchup-table th,
    .matchup-table td{

        width:50px;

        min-width:50px;

        max-width:50px;

        height:40px;

        padding:3px;

        font-size:9px;

        text-align:center;

    }


    .matchup-table .matchup-team img{

        width:18px;

        height:18px;

    }


    .matchup-table .team-link{

        font-size:7px;

    }

}

@media(max-width:700px){

    .standings-table th:not(:nth-child(2)),
    .standings-table td:not(:nth-child(2)){

        min-width:45px;

    }


    .standings-table th:nth-child(2),
    .standings-table td:nth-child(2){

        min-width:100px;

    }

}

@media(max-width:700px){

    .team-top{

        display:flex;

        flex-direction:column;

        align-items:center;

        text-align:center;

    }


    .team-logo-large{

        width:180px;

        height:150px;

        margin-bottom:10px;

    }


    .team-info{

        display:flex;

        flex-direction:column;

        align-items:center;

    }


    #teamName{

        font-size:40px;

        margin:5px 0;

    }


    #teamLeague{

        font-size:14px;

        margin:5px 0;

    }

}

#record span{
    margin-right:8px;
}


@media(max-width:700px){

    #record{

        display:flex;

        flex-direction:column;

        gap:3px;

    }


    #record span{

        margin-right:0;

    }

}

@media(max-width:700px){

    .team-table{

        font-size:11px;

    }


    .team-table th,
    .team-table td{

        padding:3px 5px;

    }

}

.season-table-wrapper{

    overflow-x:auto;

}


.season-table{

    border-collapse:collapse;

    width:max-content;

}


.season-table th,
.season-table td{

    padding:6px;

    text-align:center;

}


@media(max-width:700px){

    .season-table{

        font-size:10px;

    }


    .season-table th,
    .season-table td{

        padding:2px;

    }


    .season-logo{

        width:15px;

        height:15px;

    }


    .set-title{

        font-size:10px;

        width:35px;

    }

}


.match-page .match-team-name{

    font-size:32px;

    font-weight:900;

}


.match-page .team-logo{

    width:130px;

    height:130px;

}


.match-page .manager,
.match-page .starter{

    font-size:20px;

    font-weight:bold;

    color:#000000;

}


.match-page .score{

    font-size:50px;

    font-weight:900;

}

.match-page .match-team-name a{

    font-size:32px;

    font-weight:900;

    text-decoration:none;

}

@media(max-width:700px){

    header h1{
        font-size: 28px;
    }

}

@media (max-width:700px){

    .league-container{

        display:grid;

        grid-template-columns:1fr;

        gap:30px;

    }

}

main{
    width:100%;
    max-width:1200px;
    margin:30px auto;
    padding:0 15px;
    box-sizing:border-box;
}

@media (max-width:700px){

    .table-wrapper{
        width:100%;
        max-width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        box-sizing:border-box;
    }

    .standings-table{
        width:max-content;
        min-width:100%;
    }

}

@media (max-width:700px){

    section{
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
        overflow:hidden;
    }

}


@media (max-width:700px){

    main{
        width:100%;
        padding:0 8px;
        box-sizing:border-box;
    }

    section{
        padding:10px;
    }

    .container{
        padding:0;
    }

}

@media (max-width:700px){

    section{
        padding:8px;
    }

    .container{
        padding:0 8px;
    }

    .standings-table th,
    .standings-table td{
        font-size:8px;
        padding:1px;
    }

}

@media (max-width:700px){

    main{
        width:100%;
        padding:0 8px;
        box-sizing:border-box;
    }
}

@media (max-width:700px){

    .standings-preview .standings-table{
        table-layout:auto;
        width:100%;
    }

    .standings-preview .standings-table th,
    .standings-preview .standings-table td{
        padding:0;
        margin:0;
        line-height:1.1;
        font-size:9px;
    }

}

@media (max-width:700px){

    .standings-preview .team-name{
        gap:2px;
    }

    .standings-preview .team-name img{
        width:16px;
        height:12px;
    }

}

/* PC */
.standings-container{
    display: block;
}

.standings-card{
    flex: 1;
}

@media (max-width:700px){

    .standings-container{
        display: block;
    }

}

@media(max-width:700px){

    .standings-page .standings-table th,
    .standings-page .standings-table td{

        font-size:13px;
        padding:10px 6px;
        font-weight:bold;

    }

}

@media(max-width:700px){

    .standings-page .table-wrapper{

        width:100%;

    }

}

@media(max-width:700px){

    .standings-preview .standings-table th,
    .standings-preview .standings-table td{

        padding:10px 2px;

    }

    .standings-preview .standings-table th:nth-child(2),
    .standings-preview .standings-table td:nth-child(2){

        min-width:80px;

    }

}

@media(max-width:700px){

    .standings-preview .standings-table td{

        font-weight:700;

    }

}

section {
    max-width: 100%;
}


.standings-preview-container{
    display: flex;
    gap: 30px;
    align-items: flex-start;
}


@media(max-width:700px){

    .standings-preview-container{
        flex-direction: column;
        gap:20px;
    }

}

.postseason-table{

    width:100%;
    border-collapse:collapse;
    margin-top:15px;

}

.postseason-table th{

    background:#F82627;
    color:white;
    padding:10px;

}

.postseason-table td{

    padding:10px;
    text-align:center;
    border-bottom:1px solid #ddd;

}

.postseason-table tr:nth-child(even){

    background:#f7f7f7;

}

#postseason-matches{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

#postseason-matches .match-card{
    max-width: 360px;
}

.postseason-match-title{
    grid-column: 1 / -1;
    margin: 20px 0 0;
    font-size: 1.6rem;
    font-weight: bold;
}

.postseason-brackets{

    display: flex;
    gap: 30px;
    align-items: flex-start;

}

.postseason-league{

    flex: 1;

}

.postseason-table{

    width: 100%;
    border-collapse: collapse;

}

.postseason-table th,
.postseason-table td{

    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;

}

.winner-row td{
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
}

#postseason-bracket{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.postseason-league{
    width: 100%;
}

@media (max-width:700px){

    #postseason-bracket{
        flex-direction: column;
    }

}

.postseason-table{
    width: 100%;
    table-layout: fixed;
}

.postseason-table th,
.postseason-table td{
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px){

    #postseason-bracket{
        grid-template-columns: 1fr;
    }

    .postseason-league{
        width: 100%;
    }

}

.postseason-table td:nth-child(2),
.postseason-table td:nth-child(4){
    font-size: 0.85rem;
}

.cs-match{

    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
    margin-bottom:10px;
    background:white;

}


.cs-stage{

    font-weight:bold;
    margin-bottom:10px;

}


.cs-teams{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;

}


.cs-game{

    text-align:center;
    margin-top:10px;

}

.cs-card{

    background:white;
    border-radius:12px;
    padding:15px;
    margin-bottom:10px;
    text-align:center;

}


.cs-teams{

    display:flex;
    justify-content:center;
    gap:20px;
    align-items:center;

}

.postseason-preview-card{

    background:white;
    border-radius:15px;
    padding:20px;
    margin-bottom:15px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);

}


.preview-set{

    font-size:18px;
    font-weight:bold;
    margin-bottom:15px;
    text-align:center;

}



.preview-table{

    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:20px;

}



.preview-team{

    display:flex;
    align-items:center;
    gap:10px;

}



.preview-team img{

    width:45px;
    height:45px;
    object-fit:contain;

}



.preview-score{

    text-align:center;
    font-size:24px;
    font-weight:bold;

}



.preview-score small{

    display:block;
    font-size:13px;
    font-weight:normal;
    margin-top:5px;

}

#cs-preview-list{

    display:flex;
    gap:20px;

}


.cs-league-card{

    flex:1;

}


.cs-league-card h3,
.cs-league-card h4{

    text-align:center;

}

@media (max-width: 768px){

    #cs-preview-list{
        flex-direction: column;
    }

}

#cs-preview-list{

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-top: 20px;

}

.cs-league-card{

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 16px;

}

@media (max-width: 768px){

    #cs-preview-list{

        grid-template-columns: 1fr;

    }

}

.advantage-row td{

    font-size: 14px;

    font-weight: normal;

}

.allstar-teams{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:40px;
}


.allstar-team-box{
    width:300px;
    text-align:center;
}


.allstar-score{
    font-size:50px;
    font-weight:bold;
    margin-top:100px;
}

.allstar-team-box ul{
    list-style:none;
    padding:0;
    text-align:left;
    width:180px;
    margin:0 auto;
}


.allstar-team-box li{
    display:flex;
    gap:10px;
}

.position{
    width:25px;
}

.team-cell{
    border-right:3px solid #333 !important;
    font-weight:bold;
}

.runs-cell{
    border-left:3px solid #333 !important;
}

.allstar-detail #allstarDate,
.allstar-detail #allstarStadium,
.allstar-detail #manager,
.allstar-detail #mvp,
.allstar-detail #winPitcher,
.allstar-detail #losePitcher,
.allstar-detail #homeBattery,
.allstar-detail #awayBattery {
    color: #222;
    font-weight: 500;
}

.allstar-detail p {
    color: #222;
}

.allstar-team-box p {
    color: #222;
    font-weight: 600;
}

.game-event{
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    border-left: 5px solid #ccc;
}

.game-event.play{
    border-left-color: #999;
}

.game-event.scorePlay{
    border-left-color:#F82627;
    background:#fff3f3;
}

.game-event.change{
    border-left-color: #0077cc;
    background: #f3f8ff;
}

.game-event strong{
    font-size: 1em;
    font-weight: bold;
}

.allstar-preview-logo{
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.allstar-preview-match{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:50px;
}

.allstar-preview-team{
    width: 180px;
    text-align: center;
}

.preview-score{
    width: 120px;
    text-align: center;
    font-size: 42px;
    font-weight: bold;
}

.allstar-preview-logo{
    width:240px;
    height:240px;
    object-fit:contain;
}

.allstar-preview-match{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:50px;
    margin:20px 0;
}

.allstar-preview-team{
    width:180px;
    text-align:center;
    font-weight:bold;
}

.allstar-preview-logo{
    width:110px;
    height:110px;
    object-fit:contain;
}

.preview-score{
    font-size:65px;
    font-weight:bold;
    min-width:140px;
    text-align:center;
}

.preview-date,
.preview-stadium{
    text-align:center;
    margin:6px 0;
}

.allstar-card h3{
    text-align:center;
    margin-bottom:20px;
}

.team-cell{
    border-right:3px solid #333 !important;
    font-weight:bold;
}

.runs-cell{
    border-left:3px solid #333 !important;
}

/* 通常の3回目の太線を打ち消す */
.allstar-scoreboard th:nth-child(5),
.allstar-scoreboard td:nth-child(5){
    border-left: 1px solid #999;
}

#allstarPreviewStatus{
    display: inline-block;
    margin: 10px auto;
}

.match-card{
    text-align: center;
}

@media (max-width:700px){

    .allstar-preview-match{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:5px;
        padding:0 5px;
    }


    .allstar-preview-team{
        width:75px;
        flex:none;
        text-align:center;
        display:flex;
        flex-direction:column;
        align-items:center;
    }


    .allstar-preview-logo{
        width:60px;
        height:60px;
        object-fit:contain;
    }


    .allstar-preview-team p{
        font-size:10px;
        white-space:nowrap;
        margin:4px 0 0;
        transform:scale(0.85);
    }


    .preview-score{
        flex:none;
        font-size:35px;
        margin:0 3px;
    }

}

.match-highlights{
    display:flex;
    gap:20px;
    margin-top:20px;
}


.highlight-box{
    flex:1;
    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
    text-align:center;
}


.highlight-box h3{
    font-size:20px;
    margin-bottom:15px;
}


.highlight-box p,
.highlight-box li{
    font-size:16px;
}


.highlight-box ul{
    padding:0;
    margin:5px 0 15px;
    list-style:none;
}


.mini-logo{
    width:25px;
    height:25px;
    object-fit:contain;
}

@media(max-width:700px){

    .match-highlights{
        gap:5px;
    }

    .highlight-box{
        padding:8px 3px;
    }

    .highlight-box h3{
        font-size:14px;
    }

    .highlight-box p,
    .highlight-box li{
        font-size:12px;
    }

}

.match-highlights{
    display:flex;
    gap:20px;
    margin-top:25px;
}


.highlight-box{
    flex:1;
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    text-align:center;
}


.highlight-box h3{
    font-size:24px;
    margin:0 0 15px;
}


.highlight-box p,
.highlight-box li{
    font-size:26px;
    line-height:1.6;
}


.highlight-box ul{
    padding:0;
    margin:10px 0 20px;
    list-style:none;
}


.team-title{
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:10px;
}


.mini-logo{
    width:32px;
    height:32px;
    object-fit:contain;
}

.postseason-table td a{
    color:inherit;
    text-decoration:none;
    display:block;
}


.postseason-table td a:hover{
    text-decoration:underline;
}

.postseason-table td a{
    color:inherit;
    text-decoration:none;
    display:block;
}


.postseason-table td a:hover{
    text-decoration:underline;
}

.standings-preview > .detail-button{
    display:block;
    width:200px;
    margin:30px auto 10px;
}

.interleague-table{

    border-collapse: collapse;
    margin: 0 auto;
    font-size: 12px;

}

.interleague-table th,
.interleague-table td{

    width: 28px;
    height: 28px;
    padding: 2px;

}

.interleague-table td{

    font-weight: bold;
    font-size: 14px;

}

.interleague-table img{

    width: 18px;
    height: 18px;

}

.interleague-wrapper{

    overflow-x: auto;

}

@media (max-width:700px){

    .interleague-wrapper{

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

    }

    .interleague-table{

        min-width: 480px;

    }

}

.interleague-table th,
.interleague-table td{
    width: 28px;
    height: 28px;
    padding: 2px;
}

.interleague-table .matchup-team img{
    width: 18px;
    height: 18px;
}

.manager-list{

    list-style: none;
    padding: 0;
    margin-top: 10px;

}

.manager-list li{

    padding: 8px 12px;
    margin-bottom: 8px;

}

.postseason-match-title{
    margin: 35px 0 5px;
    padding-left: 12px;
    border-left: 5px solid #F82627;
    font-size: 28px;
}

.postseason-set-title{
    margin: 0 0 15px;
    color: #666;
    font-size: 18px;
    font-weight: normal;
}

.award-player{
    font-weight: bold;
}

.award-table{
    width:auto;
    margin:20px auto;
    border-collapse:collapse;
}

.award-table th,
.award-table td{
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.award-table th{
    background: #f5f5f5;
}

.award-section{
    max-width: 900px;
    margin: 30px auto;
}

.award-table{
    width: 100%;
    table-layout: fixed;
}

@media (max-width: 768px){

    .award-table th{
        font-size: 14px;
    }

    .award-table td{
        font-size: 14px;
    }

    .award-player{
        font-size: 14px;
    }

}

.news-link-button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    padding:8px 18px;
    border:2px solid #F82627;
    border-radius:999px;
    color:#F82627;
    background:#fff;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}

.news-link-button:hover{
    background:#F82627;
    color:#fff;
}

.scoreboard th,
.scoreboard td{
    font-size: 25px;
    font-weight:bold;
}

#mvp{
    color:#000;
}

.season-table th:not(.set-title),
.season-table td{
    width: 150px;
    min-width: 150px;
}

@media (max-width: 700px){

    .season-table th:not(.set-title),
    .season-table td{
        width: 114px;
        min-width: 114px;
        font-size: 8px;
        padding: 2px;
    }

    .season-logo{
        width: 24px;
        height: 24px;
    }

    .season-score{
        font-size: 13px;
        font-weight: bold;
    }

    .set-title{
        font-size: 14px;
    }

}
