@charset "UTF-8";

/* ==========================================================================
   Project: Connect Station HOME
   File: css/financial.css
   Description: 収支報告ページ専用デザイン（透明性と信頼性）
   ========================================================================== */

/* --- ヒーローセクション --- */
.hero-financial {
    /* 信頼の紺と、金銭を表すゴールドのグラデーション */
    background-image: linear-gradient(to top, rgba(33, 37, 41, 0.9), rgba(52, 73, 94, 0.7)), url('/images/common/financial-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    color: #fff;
}
.hero-project-content { width: 100%; max-width: 1100px; margin: 0 auto; }
.project-title {
    font-family: 'Noto Serif JP', serif; font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 1rem; border-left: 6px solid #fdd835; padding-left: 1.5rem;
}

/* --- 全体レイアウト --- */
.financial-body {
    padding: 5rem 0;
    background-color: #f4f5f7;
    color: #333;
}
.report-container { max-width: 1000px; margin: 0 auto; }

/* --- 収入・支出フロー (Money Flow) --- */
.money-flow-section { margin-bottom: 5rem; }
.flow-header { text-align: center; margin-bottom: 3rem; }
.flow-header h2 { font-size: 2rem; margin-bottom: 0.5rem; color: #2c3e50; }

.flow-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1fr;
    gap: 1rem;
    align-items: center;
}
@media (max-width: 768px) { .flow-wrapper { grid-template-columns: 1fr; gap: 2rem; } }

/* 収入サイド */
.flow-column.income .flow-card { border-left: 5px solid #2ecc71; }
/* EGIC (中央) */
.flow-center { text-align: center; background: #2c3e50; color: #fff; padding: 2rem; border-radius: 50%; width: 150px; height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.flow-center img { height: 40px; margin-bottom: 0.5rem; }
/* 支出サイド */
.flow-column.expense .flow-card { border-left: 5px solid #e74c3c; }

/* フローカード（個別の項目） */
.flow-card {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.flow-card::after { /* 矢印 */
    content: '▶'; position: absolute; right: -20px; color: #ccc; font-size: 1.2rem;
}
.flow-column.expense .flow-card::after { display: none; } /* 支出側は矢印なし、または逆向き */

.item-source { font-weight: bold; font-size: 1rem; color: #555; }
.item-amount { font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 1.2rem; }
.amount-plus { color: #2ecc71; }
.amount-minus { color: #e74c3c; }
.item-desc { display: block; font-size: 0.8rem; color: #888; margin-top: 0.2rem; }

/* --- 財務諸表 (B/S, P/L) カードスタイル --- */
.financial-report-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

.report-header {
    background: #34495e;
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-header h3 { margin: 0; font-family: 'Noto Serif JP', serif; }
.report-date { font-size: 0.9rem; opacity: 0.8; }

.report-body {
    padding: 2rem;
}

/* 勘定科目リスト (テーブルを使わない) */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.account-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px dashed #eee;
}
.account-row:last-child { border-bottom: none; }
.account-row.total {
    background: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #333;
    border-bottom: none;
    margin-top: 1rem;
}
.account-name { color: #333; }
.account-value { font-family: 'Roboto', sans-serif; }

/* グラフバー */
.graph-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
    width: 100%;
}
.graph-fill { height: 100%; }

/* --- メッセージエリア --- */
.financial-message {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #bbdefb;
    margin-top: 3rem;
}
.financial-message p { margin: 0; line-height: 1.8; color: #0d47a1; }