/* 競艇予想プラグイン用CSS */

/* テーブル基本スタイル */
.table__onerace {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ヘッダー行 */
.table__onerace__tr--1 th {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.table__onerace__tr--1 th .font__bold {
    font-weight: bold;
    line-height: 1.4;
}

.table__onerace__tr--1 th span[style*="font-size: 12px"] {
    font-size: 12px !important;
    opacity: 0.9;
}

/* 買い目行 */
.table__onerace__tr--2 {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table__onerace__tr--2:hover {
    background: #e9ecef;
}

.table__onerace__tr--2__td--1 {
    padding: 12px;
    vertical-align: top;
    border-right: 1px solid #dee2e6;
}

.table__onerace__tr--2__td--1:last-child {
    border-right: none;
}

/* 内部テーブル */
.table__onerace__tr--2__td--1 table {
    width: 100%;
    border-collapse: collapse;
}

.table__onerace__tr--2__td--1 table th {
    background: #495057;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px 0 0 4px;
    min-width: 30px;
}

.table__onerace__tr--2__td--1 table td {
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

/* 艇番表示 */
.goutei {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 艇番別カラー */
.goutei_1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #333;
    border: 2px solid #333;
}

.goutei_2 {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.goutei_3 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.goutei_4 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.goutei_5 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
}

.goutei_6 {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

/* エラーメッセージ */
.yosou-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.yosou-no-data {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

/* コンテナ */
.yosou-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Parts機能用スタイル */
.yosou-parts {
    max-width: 600px;
    margin: 0 auto;
}

.yosou-kaime-only {
    text-align: center;
    padding: 20px;
}

.yosou-kaime-only .kaime-item {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    vertical-align: middle;
}

.yosou-kaime-only .kaime-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.yosou-stadium-only {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 10px 0;
}

.yosou-race-only {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 8px;
    margin: 10px 0;
}

.yosou-time-only {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 10px 0;
}

.yosou-screenshot-only {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    margin: 10px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .table__onerace__tr--2__td--1 {
        padding: 8px;
    }

    .table__onerace__tr--1 th {
        font-size: 14px;
        padding: 12px;
    }

    .goutei {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }

    .table__onerace__tr--2__td--1 table th {
        font-size: 12px;
        padding: 6px;
    }

    .table__onerace__tr--2__td--1 table td {
        padding: 6px 2px;
    }

    .yosou-kaime-only .kaime-item {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .yosou-stadium-only,
    .yosou-race-only,
    .yosou-time-only,
    .yosou-screenshot-only {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .yosou-container {
        padding: 10px;
    }

    .table__onerace__tr--2__td--1 {
        width: 50% !important;
    }

    .goutei {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
        margin: 0 1px;
    }
}
