/* AI連載専用スタイル */

/* AI連載カテゴリのスタイリング */
.category.ai-series {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 記事内の特別な要素 */
.article-intro {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-left: 4px solid #dc2626;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ハイライト要素 */
.highlight {
  background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: #92400e;
}

/* 効率性表示 */
.efficiency-low {
  color: #dc2626;
  font-weight: bold;
}

.efficiency-medium {
  color: #f59e0b;
  font-weight: bold;
}

.efficiency-high {
  color: #10b981;
  font-weight: bold;
}

/* パーセンテージ表示 */
.percentage {
  font-weight: bold;
  font-size: 1.1rem;
}

.percentage.positive {
  color: #10b981;
}

.percentage.negative {
  color: #dc2626;
}

/* 比較ボックス */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.vague-communication,
.clear-communication {
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vague-communication {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #f87171;
}

.clear-communication {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #34d399;
}

.problems,
.benefits {
  margin-top: 1rem;
}

.problems ul,
.benefits ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* プロセスステップ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

/* 分析グリッド */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.analysis-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.analysis-item:hover {
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.analysis-item h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.reliability {
  margin-top: 1rem;
  font-weight: bold;
}

.reliability .high {
  color: #10b981;
}

.reliability .medium {
  color: #f59e0b;
}

.reliability .low {
  color: #dc2626;
}

/* テーブルスタイル */
.comparison-table,
.cost-table,
.learning-comparison,
.density-table,
.synergy-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.cost-table th,
.learning-comparison th,
.density-table th,
.synergy-matrix th {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td,
.cost-table td,
.learning-comparison td,
.density-table td,
.synergy-matrix td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:hover,
.cost-table tr:hover,
.learning-comparison tr:hover,
.density-table tr:hover,
.synergy-matrix tr:hover {
  background: #f9fafb;
}

.positive {
  color: #10b981;
  font-weight: bold;
}

.negative {
  color: #dc2626;
  font-weight: bold;
}

.medium {
  color: #f59e0b;
  font-weight: bold;
}

/* TIPSボックス */
.tips-box,
.ai-suggestion,
.conclusion-box {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tips-box h3,
.ai-suggestion h3,
.conclusion-box h3 {
  margin: 0 0 1rem 0;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* シナリオボックス */
.scenario-box {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.decision-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.decision-side {
  padding: 1.5rem;
  border-radius: 12px;
}

.data-side {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
}

.emotion-side {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
}

.decision-score {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
}

.result-box {
  background: white;
  border: 2px solid #6b7280;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* 学習統計 */
.learning-stats {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #ef4444;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* コストアナリシス */
.cost-analysis {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #f87171;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.loss-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.loss-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.loss-value {
  font-weight: bold;
  color: #dc2626;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.total-loss {
  background: #dc2626;
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* 未来シナリオ */
.future-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.scenario {
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid;
}

.scenario.bad {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #f87171;
}

.scenario.medium {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fbbf24;
}

.scenario.good {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #34d399;
}

.scenario h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.probability {
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
}

.probability.low {
  background: #dc2626;
}

.probability.medium {
  background: #f59e0b;
}

.probability.high {
  background: #10b981;
}

/* 最終メッセージ */
.final-message {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.final-message p:last-child {
  font-size: 1.3rem;
  font-weight: bold;
  color: #92400e;
  margin: 1rem 0 0 0;
}

/* 連載完結 */
.series-complete {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 3px solid #10b981;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.series-complete h3 {
  color: #047857;
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
}

/* 連載ナビゲーション */
.series-navigation {
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

.series-navigation h3 {
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  text-align: center;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.series-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.series-card:hover {
  border-color: #dc2626;
  transform: translateY(-2px);
}

.series-card.current {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.series-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.series-number {
  background: #dc2626;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.series-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #1f2937;
}

/* 署名 */
.signature {
  text-align: right;
  font-style: italic;
  color: #6b7280;
  margin: 3rem 0 2rem 0;
  padding: 1rem;
  border-top: 2px solid #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .comparison-box {
    grid-template-columns: 1fr;
  }

  .decision-comparison {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .loss-items {
    grid-template-columns: 1fr;
  }

  .future-scenarios {
    grid-template-columns: 1fr;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    align-self: center;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .step {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #f9fafb;
  }

  .analysis-item {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .scenario-box {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #f9fafb;
  }

  .series-navigation {
    background: #374151;
    color: #f9fafb;
  }

  .series-card {
    background: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
  }
}
