/* 週間予測表示のスタイル */

.weekly-predictions {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.weekly-predictions h3 {
  margin-top: 0;
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
}

.predictions-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.predictions-table thead {
  background: #2c3e50;
  color: white;
}

.predictions-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #2c3e50;
}

.predictions-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.predictions-table tbody tr:hover {
  background: #f5f5f5;
}

.predictions-table tbody tr.today {
  background: #fffacd;
  font-weight: 500;
}

.predictions-table tbody tr.today:hover {
  background: #fff8dc;
}

/* 交通状況の表示スタイル */
.traffic-smooth {
  color: #27ae60;
  font-weight: 600;
  background: #d4edda;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

.traffic-jam {
  color: #e74c3c;
  font-weight: 600;
  background: #f8d7da;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

.traffic-unknown {
  color: #7f8c8d;
  font-weight: 600;
  background: #e8e8e8;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .predictions-table {
    font-size: 14px;
  }

  .predictions-table th,
  .predictions-table td {
    padding: 8px;
  }

  .weekly-predictions h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .weekly-predictions {
    padding: 10px;
  }

  .predictions-table {
    font-size: 12px;
  }

  .predictions-table th,
  .predictions-table td {
    padding: 6px;
  }

  .traffic-smooth,
  .traffic-jam,
  .traffic-unknown {
    min-width: 50px;
    font-size: 11px;
    padding: 2px 4px;
  }
}
