/* レポートページスタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
.report-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.report-header h1 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
}

.analysis-date,
.session-id {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* サマリーセクション */
.summary-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.summary-section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
}

.summary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* 地点カード */
.location-cards-section {
    margin-bottom: 30px;
}

.location-cards-section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.location-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.location-card .card-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-card.site-a .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.location-card.site-b .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.location-card.site-c .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.location-name {
    font-size: 20px;
    font-weight: bold;
}

.location-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.card-body {
    padding: 20px;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.metric:last-child {
    border-bottom: none;
}

.metric.highlight {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    border-bottom: none;
}

.metric .label {
    color: #666;
    font-size: 14px;
}

.metric .value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.population-number {
    font-size: 20px !important;
    color: #667eea !important;
}

.metric.trend .value.positive {
    color: #27ae60;
}

.metric.trend .value.negative {
    color: #e74c3c;
}

/* セクション共通 */
section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
}

/* 地図セクション */
.map-section #map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

/* グラフセクション */
.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* 比較表 */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
}

.comparison-table .label-col {
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
}

.comparison-table td.positive {
    color: #27ae60;
    font-weight: 600;
}

.comparison-table td.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* フッター */
.report-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .location-cards {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }

    .comparison-table {
        font-size: 14px;
    }

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