/**
 * 買取比較シミュレータ - フロントエンド用CSS
 */

.bstb-compare-simulator {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
}

/* タイトル */
.bstb-simulator-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 15px 0;
    padding: 12px;
    background: #4caf50;
    color: #fff;
    border-radius: 8px;
}

/* サブタイトル */
.bstb-simulator-subtitle {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 15px 0;
    padding: 10px;
    color: #2e7d32;
}

/* 額面表示 */
.bstb-simulator-amount {
    font-size: 16px;
    margin: 10px 0;
    text-align: center;
}

.bstb-simulator-value {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
}

/* スライダー */
.bstb-simulator-slider {
    width: 100%;
    margin: 20px 0;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.bstb-simulator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

.bstb-simulator-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* テーブル */
.bstb-simulator-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    font-size: 14px;
}

.bstb-simulator-table th {
    padding: 8px;
    border: 1px solid #ccc;
    background: #c8e6c9;
    font-weight: bold;
}

.bstb-simulator-table td {
    padding: 8px;
    border: 1px solid #ccc;
}

.bstb-simulator-rate-row {
    background: #ffffff;
}

.bstb-simulator-price-row {
    background: #f9fdf9;
}

.bstb-simulator-rate-cell {
    vertical-align: middle;
}

.bstb-simulator-rate-item {
    margin: 5px 0;
}

.bstb-simulator-rate-label {
    font-size: 12px;
    color: #666;
}

.bstb-simulator-rate {
    font-weight: bold;
    color: #2e7d32;
}

.bstb-simulator-price-cell {
    vertical-align: middle;
}

.bstb-simulator-price {
    font-weight: bold;
    font-size: 28px;
    margin: 5px 0;
    color: #2e7d32;
}

.bstb-simulator-site-header {
    text-align: center;
}

.bstb-simulator-price-sub {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
}

/* 最終更新日時 */
.bstb-simulator-updated {
    text-align: right;
    font-size: 12px;
    color: #555;
    margin: 10px 0 0 0;
}

.bstb-simulator-updated-bold {
    font-weight: bold;
}

/* エラー表示 */
.bstb-simulator-error {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    text-align: center;
    margin: 20px 0;
}

/* カスタム追加行 */
.bstb-custom-data-cell {
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .bstb-compare-simulator {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }

    .bstb-simulator-title {
        font-size: 18px;
        padding: 10px;
    }

    .bstb-simulator-subtitle {
        font-size: 16px;
        padding: 8px;
    }

    .bstb-simulator-table {
        font-size: 12px;
    }

    .bstb-simulator-table th,
    .bstb-simulator-table td {
        padding: 6px;
    }

    .bstb-simulator-price-sub {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bstb-simulator-title {
        font-size: 16px;
    }

    .bstb-simulator-subtitle {
        font-size: 14px;
    }

    .bstb-simulator-table {
        font-size: 11px;
    }

    .bstb-simulator-table th,
    .bstb-simulator-table td {
        padding: 4px;
    }
}
