/* ==========================================================================
   他の党と何が違うの？ - Party Comparison Table
   ========================================================================== */

.dpfp-comparison-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.dpfp-comparison-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.dpfp-comparison-section .dpfp-section-title {
    font-size: 1.8rem;
    color: var(--dpfp-blue, #004098);
    font-weight: bold;
}

.dpfp-comparison-section .section-desc {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

/* Table Wrapper - horizontal scroll on mobile */
.comparison-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Table */
.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--dpfp-blue, #043e80);
    color: #fff;
}

.comparison-table th {
    padding: 14px 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
    border-radius: 12px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 12px 0 0;
}

/* Highlight column */
.comparison-table th.party-highlight {
    background: rgba(255,255,255,0.15);
}

.comparison-table td.party-highlight {
    background: rgba(4, 62, 128, 0.03);
}

/* Body */
.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    vertical-align: middle;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Stance Badges */
.stance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.stance-positive {
    background: #d1fae5;
    color: #065f46;
}

.stance-neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.stance-negative {
    background: #fef2f2;
    color: #991b1b;
}

.stance-unique {
    background: #eff6ff;
    color: #1e40af;
}

/* Source Note */
.comparison-source {
    max-width: 900px;
    margin: 15px auto 0;
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .dpfp-comparison-section {
        padding: 40px 15px;
    }

    .dpfp-comparison-section .dpfp-section-title {
        font-size: 1.4rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }

    .stance-badge {
        font-size: 0.75rem;
        padding: 3px 7px;
    }
}
