/* ── Reel Compare: comparison table ── */

.reel-compare-wrap {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Toolbar ── */
.reel-compare-toolbar {
    margin-bottom: 10px;
}

.reel-diff-toggle {
    padding: 6px 16px;
    background: #2c5f8a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.reel-diff-toggle:hover  { background: #1e4266; }
.reel-diff-toggle.active { background: #c0392b; }

/* ── Scroll wrapper ── */
.reel-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dde;
    border-radius: 6px;
}

/* ── Table base ── */
.reel-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

/* ── Thead ── */
.reel-compare-table thead th {
    background: #1a2744;
    color: #e8eef8;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 10;
}
.reel-compare-table thead th.reel-label-col {
    text-align: left;
    width: 140px;
    min-width: 110px;
}
.reel-compare-table thead th.reel-reel-col {
    text-align: center;
    min-width: 160px;
}

/* メーカーバッジ */
.reel-maker-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
    background: #4a6fa5;
    color: #fff;
}
thead th.shimano .reel-maker-badge { background: #2980b9; }
thead th.daiwa   .reel-maker-badge { background: #c0392b; }

.reel-reel-col a {
    display: block;
    color: #b8d4f0;
    text-decoration: none;
    font-size: 13px;
    margin-top: 2px;
}
.reel-reel-col a:hover { text-decoration: underline; }

/* ── Section header rows ── */
.reel-section-row td {
    background: #eceff4;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    padding: 7px 14px;
    letter-spacing: 0.04em;
    border-top: 2px solid #ccd3de;
}

/* ── Data rows ── */
.reel-compare-table tbody tr:not(.reel-section-row) th,
.reel-compare-table tbody tr:not(.reel-section-row) td {
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.reel-compare-table tbody tr:not(.reel-section-row) th {
    text-align: left;
    font-weight: normal;
    color: #555;
    white-space: nowrap;
    background: #f9fafb;
}

.reel-compare-table tbody tr:not(.reel-section-row) td {
    text-align: center;
}

.reel-unit {
    font-size: 11px;
    color: #aaa;
    margin-left: 3px;
}

/* ── Same value rows ── */
.reel-row-same th,
.reel-row-same td {
    color: #bbb;
    background: #fdfdfd;
}

/* ── Diff value rows ── */
.reel-row-diff {
    background: #fff;
}
.reel-row-diff td {
    color: #1a2744;
    font-weight: 600;
}

/* ── 差分のみ表示モード ── */
.reel-compare-wrap.hide-same .reel-row-same    { display: none; }
.reel-compare-wrap.hide-same .reel-section-row { display: none; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .reel-compare-table thead th,
    .reel-compare-table tbody tr:not(.reel-section-row) th,
    .reel-compare-table tbody tr:not(.reel-section-row) td {
        padding: 6px 8px;
        font-size: 12px;
    }
    .reel-compare-table thead th.reel-label-col {
        width: 90px;
        min-width: 80px;
    }
    .reel-compare-table thead th.reel-reel-col {
        min-width: 120px;
    }
}
