body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  text-align: center;
  background-color: #e0f7fa;
  padding: 24px;
}

.container {
  background: white;
  max-width: 960px;
  margin: 24px auto;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#weather-icon {
  font-size: 4.8rem;
  margin: 8px 0;
}

#temperature {
  font-size: 2em;
  font-weight: bold;
  color: #00796b;
  margin: 10px 0;
}

#humidity {
  font-size: 1em;
  color: #00695c;
  margin: 6px 0 12px 0;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  background-color: #00acc1;
  color: white;
  border: none;
  border-radius: 5px;
}

button:hover {
  background-color: #00838f;
}

.nation-container {
  margin-top: 18px;
  text-align: left;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.topic-card {
  background: #f1f8f9;
  padding: 14px;
  border-radius: 8px;
  margin-top: 8px;
  flex: 1 1 360px;
  min-width: 300px;
}

.topic-card h3 {
  margin: 0 0 6px 0;
}

#hottest-list, #coldest-list {
  list-style: decimal inside;
  margin: 8px 0 0 0;
  padding: 0;
}

#hottest-list li, #coldest-list li {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ランキング風スタイル */
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  flex-wrap: wrap;
}

.rank-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex: 0 0 38px;
}

/* 暑いリストは暖色系 */
#hottest-list .rank-badge {
  background: linear-gradient(180deg,#ff8a65,#ff7043);
}

/* 寒いリストは寒色系 */
#coldest-list .rank-badge {
  background: linear-gradient(180deg,#64b5f6,#42a5f5);
}

.city-name {
  flex: 1 1 220px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-temp {
  font-weight: 800;
  margin-left: 6px;
  color: #d84315;
  flex: 0 0 auto;
}
#coldest-list .rank-temp {
  color: #1565c0;
}
.rank-hum {
  margin-left: 12px;
  color: #555;
  font-size: 0.95em;
  flex: 0 0 auto;
}

.rank-item.top1 .rank-badge {
  width: 48px;
  height: 48px;
  font-size: 1.1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.rank-item.top1 .rank-badge::after {
  content: ' 👑';
  margin-left: 4px;
}

.rank-item:hover { transform: translateY(-2px); transition: transform .15s ease; }

@media (max-width: 800px) {
  .container { padding: 16px; }
  .nation-container { display: block; }
  .topic-card { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .container { padding: 12px; }
  #weather-icon { font-size: 3.2rem; }
}