/* 買物代行ページ専用スタイル */

/* 比較セクション */
.comparison-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-section h3 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    padding: 20px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
    color: white;
}

.comparison-table th:first-child {
    background: #4CAF50;
}

.comparison-table th:nth-child(2) {
    background: #757575;
}

.comparison-table th:nth-child(3) {
    background: #4CAF50;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

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

.comparison-table .highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    font-weight: 600;
    color: #2e7d32;
}

/* 比較例カード */
.comparison-examples {
    margin-top: 50px;
}

.comparison-examples h4 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.example-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.example-card.highlight-example {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.example-amount {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.price-section {
    padding: 20px;
}

.price-section.old-section {
    background: #fafafa;
    border-bottom: 2px dashed #e0e0e0;
}

.price-section.new-section {
    background: #f1f8f4;
}

.section-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 6px;
}

.old-section .section-label {
    background: #757575;
    color: white;
}

.new-section .section-label {
    background: #4CAF50;
    color: white;
}

.price-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
}

.price-detail.total-row {
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 16px;
}

.new-section .price-detail.total-row {
    border-top-color: #4CAF50;
    color: #2e7d32;
}

.price-value {
    font-weight: 600;
    color: #333;
}

.new-section .price-value {
    color: #2e7d32;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comparison-section {
        padding: 25px 15px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .price-section {
        padding: 15px;
    }
}
