.hw-updated {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.8rem;
  text-align: right;
}

.hw-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #777;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.hw-countdown {
  font-size: 0.85rem;
  color: #0097a7;
  font-weight: bold;
}

/* カウントダウン+日の出/日の入りの現地絶対時刻をまとめた1行バッジ（sunrise/sunsetのみ）。
   place.phpの.sun-time-item/.time-labelと同じトーン・区切り方（罫線）を踏襲。
   カウントダウンはHH:MM:SS固定桁（formatCountdown側で0埋め済み）+ tabular-numsで、
   数字が変わってもバッジ幅がガタつかないようにしている */
.hw-sun-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.hw-sun-badge i {
  color: #0097a7;
  font-size: 0.85em;
  margin-right: 0.3rem;
}

.hw-sun-badge .hw-countdown {
  font-size: 1em;
  color: #0097a7;
  min-width: 4.4em;
  text-align: center;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
  border-right: 1px solid #ddd;
}

/* クラスター内に上位（金/紫）マーカーが1件でも含まれる場合、クラスター自体もページテーマ色にする
   （style.cssの.marker-cluster-*divが!importantでティール固定のため、同様に!importantで上書きする） */
.hw-page-new-day .hw-cluster-gold div {
  background-color: #283593 !important;
}

.hw-page-sunrise .hw-cluster-gold div {
  background-color: #ef6c00 !important;
}

.hw-page-sunset .hw-cluster-gold div {
  background-color: #d84315 !important;
}

/* 順位バッジ（金銀銅の表彰台色は「人気ランキング」の意味合いが強いため使わず、ページごとのテーマカラーで統一） */
.trending-rank.hw-rank {
  background: #0097a7;
  font-size: 0.9rem;
}

/* ページごとのテーマカラー（bodyに hw-page-new-day / hw-page-sunrise / hw-page-sunset を付与して切り替え）
   ※「あと何秒」の文字色（.hw-countdown）はサイト共通色のまま据え置き、順位バッジ・地図ピンのみページテーマ色にする */
.hw-page-new-day .trending-rank.hw-rank { background: #283593; }

.hw-page-sunrise .trending-rank.hw-rank { background: #ef6c00; }

.hw-page-sunset .trending-rank.hw-rank { background: #d84315; }

/* hello-new-day: タイムゾーン別代表カード（上位20件に入らない国・地域も一覧できるセクション） */
.hw-tz-heading {
  margin-top: 2.5rem;
}

.hw-tz-lead {
  color: #666;
  font-size: 0.9rem;
  margin: 0.3rem 0 1.2rem;
}

.hw-tz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.hw-tz-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hw-tz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3949ab;
}

.hw-tz-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
}

.hw-tz-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.8rem;
}

.hw-tz-flag .fi {
  font-size: 1.3rem;
  border-radius: 3px;
}

.hw-tz-name {
  font-weight: bold;
  font-size: 0.95rem;
  color: #222;
}

.hw-tz-place {
  font-size: 0.75rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hw-tz-countdown {
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 0.2rem;
  color: #0097a7;
}

@media (max-width: 600px) {
  .hw-tz-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* hello-world トップ（案内ページ）用カード */
.hw-hub-lead {
  color: #444;
  margin-bottom: 1.5rem;
}

/* detail.css の .explore-options-grid は2列固定（place.php用）だが、
   hello-world トップは3枚とも並べたいので3列に上書き */
.hw-hub-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

/* detail.css に .hw-sunset-card の配色が無い（place.phpで未使用のため）ので補完 */
.hw-sunset-card {
  background: #d84315;
}
.hw-sunset-card .explore-card-bg {
  background: linear-gradient(135deg, #d84315 0%, #ff7043 50%, #8e24aa 100%);
}

/* 年末年始の特別演出 */
.hw-newyear-banner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a237e 0%, #4a148c 60%, #880e4f 100%);
  color: #fff;
  margin-bottom: 2rem;
}

.hw-newyear-banner h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #fff;
  border: none;
  padding: 0;
}

.hw-newyear-banner p {
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .hw-newyear-banner h1 {
    font-size: 1.5rem;
  }
}
