/* 
 * フェルミ推定とバイブコーディング記事固有のスタイル
 * ファイル配置場所: /ai/css/article/fermi-vibe-coding.css
 */

/* 原則ボックス */
.principle-box {
    background: #f0f7ff;
    border: 1px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.principle-box h4 {
    color: #0066cc;
    margin-top: 0;
    margin-bottom: 15px;
}

.principle-box ol {
    margin: 0;
    padding-left: 25px;
}

.principle-box li {
    margin-bottom: 10px;
}

/* 進化タイムライン */
.evolution-timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.evolution-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-item h4 {
    background: #0066cc;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 14px;
    color: #666;
}

/* 比較テーブル */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* 不確実性マトリクス */
.uncertainty-matrix {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.uncertainty-matrix h4 {
    margin-top: 0;
    color: #333;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #666;
    padding: 15px;
    text-align: center;
}

.matrix-table th {
    background: #e0e0e0;
    font-weight: bold;
}

/* 共通点 */
.common-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.point-item {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 15px;
}

.point-item h4 {
    margin-top: 0;
    color: #28a745;
}

.point-item p {
    margin: 0;
    color: #666;
}

/* メソドロジーステップ */
.methodology-steps {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.methodology-steps h4 {
    color: #856404;
    margin-top: 0;
}

.methodology-steps ol {
    margin: 0;
    padding-left: 25px;
}

.methodology-steps li {
    margin-bottom: 15px;
}

.methodology-steps li strong {
    display: block;
    color: #856404;
    margin-bottom: 5px;
}

.methodology-steps li p {
    margin: 0;
    color: #666;
}

/* ケーススタディ */
.case-study {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.case-study h4 {
    color: #2e7d32;
    margin-top: 0;
}

.case-study ul {
    margin: 10px 0;
    padding-left: 25px;
}

/* 教育提案 */
.education-proposal {
    background: #f3e5f5;
    border: 1px solid #9c27b0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.education-proposal h4 {
    color: #6a1b9a;
    margin-top: 0;
}

/* 結論ポイント */
.conclusion-points {
    background: #e1f5fe;
    border-left: 4px solid #0288d1;
    padding: 20px;
    margin: 20px 0;
}

.conclusion-points ul {
    margin: 0;
    padding-left: 25px;
}

.conclusion-points li {
    margin-bottom: 8px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .evolution-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .evolution-timeline::before {
        display: none;
    }
    
    .common-points {
        grid-template-columns: 1fr;
    }
    
    .comparison-table,
    .matrix-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td,
    .matrix-table th,
    .matrix-table td {
        padding: 8px;
    }
}
