:root {
  --bg-color: #ffffff;
  --text-main: #1a1a1a;
  --text-sub: #737373;
  --card-bg: transparent;
  --border-color: #eaeaea;
  --temp-max: #d63031;
  --temp-min: #0984e3;
  --font-family: 'Inter', 'Noto Sans JP', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 16px;
  /* スムーズなアニメーション用 */
  transition: background-color 0.3s ease;
}

.container {
  background: var(--card-bg);
  padding: 20px 0;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.location {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.date {
  font-size: 1rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 2px;
}

.clock-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 5px 0;
}

.time-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  min-width: 80px;
}


.current-main {
  display: flex;
  align-items: center;
  margin-top: -4px;
  height: 36px;
}

.current-icon-small {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-icon-small img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  margin-right: -4px;
}

.current-temp-small {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.current-pop-small {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
  line-height: 1;
  padding-left: 14px;
  margin-top: -2px;
}

.time {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.seconds {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.weather-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.weather-card {
  background: var(--card-bg);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

.weather-card:hover {
  transform: translateY(-2px);
}

.card-title {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 600;
  letter-spacing: 1px;
}

.weather-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  /* アイコンに少し影をつけて見やすく */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.weather-desc {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  min-height: 1.5em;
}

.pop {
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 600;
  margin-top: -4px;
}

.temps {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

.temp-max {
  color: var(--temp-max);
}

.temp-min {
  color: var(--temp-min);
}

.weekly-section {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--border-color);
  padding-top: 16px;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 8px;
}

.weekly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  gap: 8px;
  font-size: 0.9rem;
}

.weekly-day {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.85rem;
}

.weekly-item img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.weekly-pop {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
  margin-top: -4px;
}

.weekly-temps {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* スクロールバー非表示 */
.weekly-section::-webkit-scrollbar {
  display: none;
}

.weekly-section {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 480px) {
  .container {
    padding: 16px 0;
    gap: 20px;
  }

  .clock-section {
    gap: 16px;
  }

  .time {
    font-size: 3.5rem;
  }

  .current-main {
    height: 32px;
  }

  .current-icon-small {
    width: 32px;
    height: 32px;
  }

  .current-icon-small img {
    width: 32px;
    height: 32px;
  }

  .weather-card {
    padding: 16px 12px;
  }

  .weather-icon img {
    width: 56px;
    height: 56px;
  }
}