.match {
    padding-top: 16px;
}

.match-header {
    height: 30px;
    display: flex;
    align-items: center;
}

.match-header-tag {
    height: 100%;
    width: 200px;
    flex-shrink: 0;
    background-color: #004098;
    position: relative;
    padding-top: 4px;
    padding-left: 10px;
    color: white;
    font-weight: bold;
}

.match-header-tag::after {
    background: linear-gradient(to top left, rgba(255, 255, 255, 0) 50%, #004098 50.5%) no-repeat top left / 100% 100%;
    width: 17px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 100%;
    content: '';
}

.match-header-venue {
    height: 100%;
    flex: 1;
    background-color: #f0f0f0;
    padding: 4px 8px;
    box-sizing: border-box;
    padding-left: 20px;
    font-weight: bold;
}

.match-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
}

.left-column {
    display: flex;
    flex-direction: column;
}

.match-info-schedule {
    display: flex;
    justify-content: flex-start;
    line-height: 1.2;
}

.match-info-opponent {
    font-family: 'Arial';
    margin-bottom: 11px;
    color: black;
    font-size: 25px;
    padding-left: 5px;
    font-weight: bold;
}

.match-info-venue {
    display: none;
}

.right-column {
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

/* 日付や時間のデザイン */
.match-info-date,
.match-info-time {
    padding-top: 10px;
    padding-left: 5px;
    font-family: 'Arial';
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: black;
    text-align: center;
}
.match-info-weekday {
    font-family: 'Arial';
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: black;
    text-align: center;
    padding-top: 18px;
}

.sp-result {
    display: none;
}

.result {
    font-family: 'Arial';
    font-size: 60px;
    padding-right: 40px;
    font-weight: bold;
    color: black;
}

.match-link {
    color: white !important;
    padding: 2px 6px;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}
.match-link:hover {
    color: #007bff !important;
    background-color: #f0f0f0;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.table-responsive {
    width: 100%;
}
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}
.responsive-table th, .responsive-table td {
    border: 1px solid #aaa;
    padding: 8px 4px;
    text-align: center;
    background: #fff;
    min-width: 60px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.responsive-table th {
    background: #f0f0f0;
}

/* 2列目（クラブ名）は広め＆折り返しOK */
.responsive-table th:nth-child(2),
.responsive-table td:nth-child(2) {
    min-width: 120px;
    max-width: 220px;
    text-align: left;
    white-space: normal;
    word-break: break-all;
    font-weight: bold;
}

/* 1位や数字系カラム（1,3,4,5,6,7,8,9,10列）は狭く */
.responsive-table th:nth-child(1),
.responsive-table td:nth-child(1),
.responsive-table th:nth-child(3),
.responsive-table td:nth-child(3),
.responsive-table th:nth-child(4),
.responsive-table td:nth-child(4),
.responsive-table th:nth-child(5),
.responsive-table td:nth-child(5),
.responsive-table th:nth-child(6),
.responsive-table td:nth-child(6),
.responsive-table th:nth-child(7),
.responsive-table td:nth-child(7),
.responsive-table th:nth-child(8),
.responsive-table td:nth-child(8),
.responsive-table th:nth-child(9),
.responsive-table td:nth-child(9),
.responsive-table th:nth-child(10),
.responsive-table td:nth-child(10) {
    min-width: 36px;
    max-width: 44px;
    font-weight: normal;
    white-space: nowrap;
}

.highlight-riverpunto,
.highlight-riverpunto td,
.highlight-riverpunto th {
    background: #ffe066ee;
    color: #003388;
}

@media (max-width: 600px) {
    .match-header-venue {
        height: 100%;
        color: transparent !important;
    }
    .left-column {
        width: 100%;
    }
    .match-info-venue {
        display: inline;
        padding-top: 1px;
        padding-left: 0;
        font-family: 'Arial';
        font-size: 25px;
        font-weight: bold;
        color: black;
    }

    .match-info-opponent {
        margin-bottom: 0px !important;
    }

    .result {
        display: none;
    }

    .sp-result {
        display: inline;
        font-family: 'Arial';
        font-size: 40px;
        font-weight: bold;
        color: black;
    }

    .right-column {
        display: none; /* スマホ時は右カラムごと消す（下で出す） */
    }

    /* テーブルの設定 */
    .responsive-table th, .responsive-table td {
        font-size: 12px;
        padding: 6px 2px;
        min-width: 20px;
        max-width: 48px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .responsive-table {
        min-width: 0 !important;
        width: 100%;
        font-size: 15px;
        table-layout: fixed;
    }

    .responsive-table th:nth-child(2),
    .responsive-table td:nth-child(2) {
        width: auto;
        min-width: 40px;
        max-width: 100vw;
        font-size: 14px;
        text-align: left;
        white-space: normal !important;
        word-break: break-all;
        font-weight: bold;
        padding: 4px 0 4px 10px
    }

    /* 数字カラムはさらに狭く */
    .responsive-table th:nth-child(1),
    .responsive-table td:nth-child(1) {
        width: 10%;
        min-width: 0;
        max-width: 28px;
        font-size: 15px;
        text-align: center;
        padding: 4px 0;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .responsive-table th:nth-child(3),
    .responsive-table td:nth-child(3),
    .responsive-table th:nth-child(7),
    .responsive-table td:nth-child(7),
    .responsive-table th:nth-child(10),
    .responsive-table td:nth-child(10) {
        width: 15%;
        min-width: 0;
        max-width: 28px;
        font-size: 15px;
        text-align: center;
        padding: 4px 0;
        box-sizing: border-box;
        white-space: nowrap;
    }

    /* 他カラム（非表示用 .pc-only など）は従来どおり */
    .responsive-table th,
    .responsive-table td {
        padding: 2px 1px;
        font-size: 12px;
    }

    .pc-only {
        display: none;
    }

    .highlight-riverpunto,
    .highlight-riverpunto td,
    .highlight-riverpunto th {
        background: #ffe066ee;
        color: #003388;
    }
}
