/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 23 2026 | 12:34:41 */
/* 競馬指数表示用CSS - 既存デザイン統合版 */

/* 基本設定 */
.race-feature-container {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
}

/* メイン見出し */
.venue-title {
    background: linear-gradient(135deg, #8dd2fc38 0%, #8dd2fc38 100%);
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border-radius: 5px;
}

/* タブ機能 */
.race-feature-container .tab-container {
    border: none;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}

.tab-headers {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.race-feature-container .tab-header {
    padding: 8px 6px;
    cursor: pointer;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
    font-weight: bold;
    width: calc(100% / 6);
    text-align: center;
    box-sizing: border-box;
}

.race-feature-container .tab-header:nth-child(6n) {
    border-right: none;
}

.race-feature-container .tab-header:hover {
    background: #e8f4f8;
}

.race-feature-container .tab-header.active {
    background: #fff;
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
    font-weight: 900;
}

.race-feature-container .tab-content {
    display: none;
    padding: 0;
    background: #fff;
}

.race-feature-container .tab-content.active {
    display: block;
}

/* レース見出し */
.race-title {
    background: linear-gradient(135deg, #8dd2fc38 0%, #8dd2fc38 100%);
    padding: 12px 15px;
    margin: 20px 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-radius: 4px;
}

/* セクション見出し（H3タグ） */
.section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    padding: 8px 0;
}

.section-title.ability-section {
    color: #009e64;
}

.section-title.expected-section {
    color: #0693e3;
}

.section-title.matrix-section {
    color: #f98e8e;
}

/* 波乱度画像 - WordPress Block対応 */
.race-feature-container .wp-block-image {
    text-align: center;
    margin: 15px 0;
}

.race-feature-container .wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* セクション見出し */
.section-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 20px 0 10px 0;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

.section-header.ability {
    background: #fff;
    color: #009e64;
    border: 2px solid #009e64;
}

.section-header.expected {
    background: #fff;
    color: #0693e3;
    border: 2px solid #0693e3;
}

.section-header.matrix {
    background: #fff;
    color: #f98e8e;
    border: 2px solid #f98e8e;
}

.section-header.list {
    background: #fff;
    color: #818181;
    border: 2px solid #818181;
}

.section-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* 上位馬リスト */
.top-horses {
    background: linear-gradient(90deg, rgba(141, 255, 141, 0.8) 0%, rgba(40, 116, 252, 0.8) 100%);
    padding: 0;
    margin: 10px 0 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.top-horses.expected {
    background: linear-gradient(90deg, rgba(6, 147, 227, 0.8) 0%, rgba(202, 146, 255, 0.8) 100%);
}

.race-feature-container .top-horses-content {
    background: #eeeeee;
    padding: 8px 15px;
    margin-left: 8px;
}

.race-feature-container .horse-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.race-feature-container .horse-list li {
    margin: 6px 0;
    padding: 4px 0;
}

.race-feature-container .horse-list strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.3;
}

.race-feature-container .rank-info {
    font-size: 14px;
    color: #666;
    padding-left: 15px;
    line-height: 1.4;
}

/* === 既存テーブルスタイルの統合 === */

/* テーブル全体のスタイル */
.my-sortable-table table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #d9d9d9;
}

/* テーブルのヘッダーとデータのスタイル */
.my-sortable-table th,
.my-sortable-table td {
    padding: 1px;
}

/* テーブルの行のスタイル */
.my-sortable-table tr {
    border-bottom: 1px solid #d9d9d9;
    background-color: #fff;
}

/* ホバー時のスタイル */
.my-sortable-table tr:hover {
    background-color: #f1f1f1;
}

/* ヘッダー行の文字を中央揃え・太字に (PC) */
.my-sortable-table table th {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

/* 1列目と3列目の文字を中央揃え */
.my-sortable-table table td:nth-child(1),
.my-sortable-table table td:nth-child(3) {
    text-align: center;
}

/* 列幅の指定 (PC) */
.my-sortable-table table th:nth-child(1),
.my-sortable-table table td:nth-child(1) {
    width: 3em;
}

.my-sortable-table table th:nth-child(2),
.my-sortable-table table td:nth-child(2) {
    width: 12em;
    padding-left: 5px;
}

.my-sortable-table table th:nth-child(3),
.my-sortable-table table td:nth-child(3) {
    width: 4em;
}

/* タブ風ボタンのスタイル */
div.tab-buttons {
    margin-bottom: 10px;
}

div.tab-buttons button.tab-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px 5px 0 0;
    background-color: #f5f5f5;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: none;
}

div.tab-buttons button.tab-button:hover {
    background-color: #eee;
}

div.tab-buttons button.tab-button.active {
    background-color: #7acdff;
    color: white;
    border-color: #7acdff;
}

/* テーブルのスタイルを調整 */
.my-sortable-table table {
    border-top: 1px solid #7acdff;
}

/* テーブル本文の文字サイズ (PC) */
.my-sortable-table table td {
    font-size: 11px;
}

/* 新しいレイアウトのテーブル (table-type-new) のスタイル */
.table-type-new .my-sortable-table table td:nth-child(5) {
    border-left: 1px dotted #d9d9d9;
}

/* マトリクス画像 */
.matrix-image {
    text-align: center;
    margin: 20px 0;
}

.matrix-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.matrix-image img:hover {
    transform: scale(1.02);
}

/* スペーサー */
.spacer {
    height: 15px;
}

/* モバイル向けのスタイル */
@media (max-width: 768px) {

    .venue-title {
        font-size: 20px;
        padding: 12px 15px;
    }

    .race-feature-container .tab-header {
        padding: 6px 4px;
        font-size: 14px;
        width: calc(100% / 6);
        box-sizing: border-box;
    }

    .race-feature-container .tab-content {
        padding: 0;
    }


    .race-title {
        font-size: 16px;
        padding: 10px 12px;
    }

    .section-header {
        font-size: 15px;
        padding: 8px 12px;
    }

    .race-feature-container .top-horses-content {
        padding: 6px 12px;
    }

    .race-feature-container .horse-list li {
        margin: 4px 0;
        padding: 2px 0;
    }

    .race-feature-container .horse-list strong {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .race-feature-container .rank-info {
        font-size: 13px;
    }

    /* モバイル用テーブルスタイル */
    .my-sortable-table table td {
        font-size: 9px;
    }

    .my-sortable-table table th {
        font-size: 10px;
    }

    .my-sortable-table table th:nth-child(1),
    .my-sortable-table table td:nth-child(1) {
        width: 1.8em;
        white-space: nowrap;
    }

    .my-sortable-table table th:nth-child(2),
    .my-sortable-table table td:nth-child(2) {
        width: 11em;
        white-space: nowrap;
        padding-left: 5px;
    }

    .my-sortable-table table th:nth-child(3),
    .my-sortable-table table td:nth-child(3) {
        width: 3em;
    }
}

@media (max-width: 480px) {
    .race-feature-container .tab-headers {
        justify-content: flex-start;
    }

    .race-feature-container .tab-header {
        width: calc(100% / 6);
        padding: 6px 3px;
        font-size: 12px;
        box-sizing: border-box;
    }

    .race-feature-container .horse-list strong {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .race-feature-container .rank-info {
        font-size: 12px;
    }

}
/* ボタンの親要素をFlexboxにする */
div.tab-buttons {
    display: flex; /* ボタンを横並びに配置 */
    gap: 8px;      /* ボタン間の隙間を8px空ける */
    align-items: center; /* ボタンの縦位置を中央に揃える */
}

/* tab-buttons内のbrタグを非表示にする */
div.tab-buttons br {
    display: none;
}