/* ==========================================
   積立状況ページ専用スタイル
   ========================================== */

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* ヒーローセクション */
.stats-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #E8F8F5 0%, #E3F2FD 100%);
}

.stats-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stats-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.stats-title i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

.stats-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.update-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.update-info i {
    color: var(--primary-green);
}

/* 残高サマリー */
.balance-summary {
    padding: 3rem 0;
    background: var(--warm-white);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.balance-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.balance-card h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.balance-amount {
    margin: 2rem 0;
}

.balance-amount .amount {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-note {
    font-size: 1rem;
    opacity: 0.85;
}

/* 統計セクション */
.stats-section {
    background: var(--warm-white);
}

.cumulative-section {
    background: linear-gradient(180deg, var(--warm-white) 0%, rgba(232, 248, 245, 0.3) 100%);
}

.stats-block {
    margin-bottom: 4rem;
}

.stats-block-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border-light);
}

.stats-block-title i {
    color: var(--primary-green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

.stat-card.income::before {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.stat-card.expense::before {
    background: linear-gradient(90deg, #FF9800, #FF5722);
}

.stat-card.total-income {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    border: 2px solid #4CAF50;
}

.stat-card.total-expense {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 87, 34, 0.1));
    border: 2px solid #FF9800;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 212, 184, 0.2), rgba(165, 216, 230, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin: 0 auto 1.5rem;
}

.stat-card.income .stat-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
    color: #4CAF50;
}

.stat-card.expense .stat-icon {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 87, 34, 0.2));
    color: #FF9800;
}

.stat-card h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.stat-value {
    text-align: center;
    margin-bottom: 1rem;
}

.stat-value .count {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-value.large .amount {
    font-size: 2.8rem;
    color: var(--primary-green);
}

.stat-card.total-expense .stat-value.large .amount {
    color: #FF9800;
}

.stat-value .unit {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-left: 0.3rem;
}

.stat-amount {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
}

.stat-amount span {
    color: var(--primary-green);
    font-weight: 700;
}

.stat-card.expense .stat-amount span {
    color: #FF9800;
}

.stat-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* 寄付者セクション */
.donors-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
}

.donors-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.donors-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.donors-list {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.donor-item {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(127, 212, 184, 0.3);
    transition: all 0.3s ease;
}

.donor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 212, 184, 0.4);
}

.donor-item i {
    margin-right: 0.5rem;
}

.donors-note {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* グラフセクション */
.chart-section {
    background: white;
    padding: 5rem 0;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

.chart-container.full-width canvas {
    max-height: 400px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .stats-hero {
        padding: 100px 0 40px;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stats-description {
        font-size: 1rem;
    }

    .balance-amount .amount {
        font-size: 3rem;
    }

    .stats-block-title {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value .count {
        font-size: 2rem;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-container.full-width {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .balance-card {
        padding: 2rem;
    }

    .balance-amount .amount {
        font-size: 2.5rem;
    }

    .stats-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
}

/* アクティブナビリンク */
.nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
}