:root {
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #2b2d42;
  --border-radius: 12px;
  --color-safe: #00b4d8;
  --color-caution: #2a9d8f;
  --color-warning: #e9c46a;
  --color-severe: #e76f51;
  --color-danger: #7209b7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 40px;
}

header {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: white;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
}

header p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

.control-panel {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.location-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

select, button {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
}

button {
  background-color: #00b4d8;
  color: white;
  border: none;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background-color: #0096c7;
}

.day-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.2rem;
  border-left: 5px solid #00b4d8;
  padding-left: 10px;
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.wbgt-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-top: 6px solid var(--color-safe);
  transition: transform 0.2s;
}

.wbgt-card:hover {
  transform: translateY(-3px);
}

.card-time {
  font-size: 0.9rem;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
}

.wbgt-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0;
}

.wbgt-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-details {
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.status-msg {
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: #666;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}