/* Sakana AI Scientist 記事専用スタイル */

/* 研究コスト比較 */
.cost-comparison {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cost-comparison h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.cost-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.cost-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.cost-item h4 {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1.1rem;
}

.cost-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0.5rem 0;
}

.cost-amount.highlight {
    color: #2196F3;
}

.cost-item p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.cost-reduction-result {
    text-align: center;
    padding: 1rem;
    background: #1976D2;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.reduction-percentage {
    font-size: 2.5rem;
    font-weight: bold;
}

.reduction-label {
    font-size: 1.2rem;
}

/* GitHubスターカウンター */
.github-stars-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.stars-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.stars-counter .fab {
    color: #333;
}

.stars-number {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: #f0ad4e;
}

.counter-label {
    font-size: 1.2rem;
    color: #666;
}

.stars-growth {
    color: #666;
    font-size: 0.9rem;
}

/* 実験成功率ドーナツチャート */
.success-rate-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-rate-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.donut-chart-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.success-rate-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.rate-item.success .rate-color {
    background: rgba(75, 192, 192, 0.8);
}

.rate-item.failure .rate-color {
    background: rgba(255, 99, 132, 0.8);
}

/* AI研究自動化システムの進化 - 境界線を確実に表示 */
.evolution-timeline {
    margin: 0;
    padding: 0;
}

.evolution-box {
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.evolution-box-latest {
    background: #fffde7;
}

/* より明確な境界線のための追加スタイル */
.timeline-item {
    border: 2px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.timeline-item.latest {
    background: #fffde7;
    border-color: #2196F3;
    border-width: 3px;
}

.timeline-date {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.timeline-title {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.timeline-description {
    font-size: 1rem;
    color: #555;
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
}

.timeline-tags {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* 品質向上プログレスバー */
.quality-progress-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quality-progress-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.quality-levels {
    max-width: 600px;
    margin: 0 auto;
}

.quality-level {
    margin-bottom: 2rem;
}

.level-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.level-time {
    font-weight: bold;
    color: #333;
}

.level-score {
    color: #666;
    font-weight: bold;
}

.progress-bar {
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 12px;
    transition: width 1.5s ease-out;
}

.progress-fill.future {
    background: #2196F3;
}

.progress-fill.target {
    background: #FF9800;
}

.level-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.quality-threshold {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    color: #FF9800;
    font-weight: bold;
}

/* 安全性インシデント */
.safety-incidents {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.safety-incidents h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.safety-incidents ul {
    margin: 0;
    padding-left: 1.5rem;
}

.safety-incidents li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 比較テーブル */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.comparison-table tr:hover {
    background: #fafafa;
}

/* SWOT分析 */
.swot-analysis {
    margin: 2rem 0;
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.swot-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swot-item h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.swot-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.swot-item li {
    margin-bottom: 0.5rem;
}

.strengths {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.weaknesses {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.opportunities {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.threats {
    background: #fff3e0;
    border-left: 4px solid #FF9800;
}

/* ユースケース */
.use-cases-section {
    margin: 3rem 0;
}

.use-case {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.use-case h3 {
    margin-bottom: 1rem;
    color: #1976D2;
}

/* エグゼクティブサマリー */
.executive-summary {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #1976D2;
}

.executive-summary h2 {
    margin-bottom: 1rem;
    color: #1565C0;
}

/* 分析セクション */
.analysis-section {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.analysis-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.analysis-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

/* 思考促進セクション */
.engagement-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fafafa;
    border-radius: 8px;
}

.thought-experiment,
.future-questions,
.reader-engagement {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.thought-experiment h3,
.future-questions h3,
.reader-engagement h3 {
    color: #1976D2;
    margin-bottom: 1rem;
}

/* 結論セクション */
.conclusion-section {
    background: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #2196F3;
}

.conclusion-section h2 {
    margin-bottom: 1rem;
    color: #1565C0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cost-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cost-amount {
        font-size: 1.5rem;
    }
    
    .reduction-percentage {
        font-size: 2rem;
    }
    
    .counter-value {
        font-size: 2.5rem;
    }
    
    .swot-grid {
        grid-template-columns: 1fr;
    }
    
    .evolution-box,
    .timeline-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .timeline-tags {
        font-size: 0.8rem;
    }
}