/* Application CSS */

/* Basic layout styles */
body {
    font-family: 'Nunito', sans-serif;
}

/* Form styles */
.form-control {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

/* Custom admin styles */
.admin-sidebar {
    min-height: 100vh;
}

.admin-content {
    min-height: 100vh;
}

/* Quill editor specific */
.ql-editor {
    min-height: 200px;
}

/** 以下野田追加 **/
/* チャートコンテナ */
.chart-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

/* インラインハイライト */
.highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* 警告・注目情報ボックス */
.alert-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* 情報ボックス */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* 成功・ポジティブ情報ボックス */
.success-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* 統計情報ボックス */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* 統計項目 */
.stat-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.stat-item .stat-value {
    font-size: 2.5em;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-item .stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.stat-item.negative {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-item.highlight {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 統計グリッド */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 統計カード */
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.stat-card .stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

/* 比較テーブル */
.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 #e0e0e0;
}

.comparison-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.comparison-table tr:hover {
    background-color: #fafafa;
}

/* 出典 */
.source {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 0.9em;
    color: #777;
}

/* Canvas要素 */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* 画像 */
img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* 図表コンテナ */
.figure {
    margin: 30px 0;
    text-align: center;
}

.figure img {
    margin: 10px 0;
}

.figure .caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* フローチャート */
.flow-chart {
    margin: 30px 0;
    padding: 30px;
    background-color: #fafafa;
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flow-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-age {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.flow-count {
    font-size: 1em;
    color: #666;
}

.flow-arrow {
    text-align: center;
    padding: 10px 0;
    font-size: 0.95em;
    color: #d32f2f;
    font-weight: bold;
    margin: 5px 0;
}

.flow-arrow.positive {
    color: #4caf50;
}
