/* ✅ 天気ごとに背景を変更 */
.weather-info.clear {
  background: linear-gradient(to bottom, #0093E9 0%, #80D0C7 100%);
}
.weather-info.cloudy {
  background: linear-gradient(to bottom, #b0c4de 0%, #d3d3d3 100%);
}
.weather-info.rainy {
  background: linear-gradient(to bottom, #1DBAB2 0%, #00174F 100%);
  color: #fff;
}
.weather-info.night {
  background: linear-gradient(to bottom, #486B89 0%, #09204A 100%);
  color: #fff;
}

/* ✅ ウィジェット全体 */
.mash-weather {
  clear: both;
  margin: 0 auto;
  display: block;
  width: 100%;
  text-align: center;
}

.weather-info {
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.weather-info h2 {
  font-family: "DotGothic16", sans-serif !important;
  margin: 0 auto !important;
  padding: 0;
  font-size: 20px;
  letter-spacing: 0.2em;
  border: none;
}

/* ✅ ヘッダー全体 */
.header-box-weath {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
}

/* ✅ ロゴ */
.kyuji-logo img {
  width: 60px !important;
  height: auto;
}

/* ✅ 右側ブロック（切替・セレクト・日付） */
.right-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* ✅ 日付 */
.hon {
  font-size: 14px;
  color: white;
}

/* ✅ 操作系（切り替えとセレクト） */
.weather-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ 切り替えボタン */
.weather-toggle {
  display: flex;
  gap: 5px;
}
.toggle-btn {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-btn.active {
  background: #fff;
  color: #000;
}

/* ✅ セレクトボックス */
.eaera select {
  width: 120px;
  font-size: 12px !important;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.change-area option {
  background: #1b263b;
  color: white;
}

/* ✅ 気温 */
.current-temp {
  font-size: 32px;
  font-weight: bold;
  font-family: "DotGothic16", sans-serif !important;
  letter-spacing: 0.1em;
}
.temp-range {
  font-size: 14px;
  font-family: "DotGothic16", sans-serif !important;
  letter-spacing: 0.1em;
}
.weather-desc {
  margin-bottom: 10px !important;
}

/* ✅ 天気アイコンアニメ */
@keyframes sway {
  0%   { transform: rotate(0deg) translateX(0px); }
  25%  { transform: rotate(2deg) translateX(3px); }
  50%  { transform: rotate(0deg) translateX(0px); }
  75%  { transform: rotate(-2deg) translateX(-3px); }
  100% { transform: rotate(0deg) translateX(0px); }
}
.weather-icon {
  animation: sway 3s infinite ease-in-out;
  display: block;
  margin: 0 auto;
  width: 100px;
  height: auto;
}

/* ✅ 横並びの天気詳細（今日の天気用） */
.weather-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 5px 0;
}
.weather-item {
  text-align: center;
  font-size: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.weather-item p {
  margin-bottom: -5px !important;
}
.weather-icon-small {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
}

/* ✅ 週間天気：6日表示・中央寄せグリッド（3列×2行） */
.weekly-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 20px;
  margin-top: 10px;
  padding-bottom: 5px;
  justify-content: center;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* ✅ 各日の天気 */
.forecast-day {
  text-align: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px;
  color: #fff;
  width: 100%;
  max-width: 100px;
  min-width: 60px;
  box-sizing: border-box;
}
.forecast-day .date {
  font-size: 11px;
  margin-bottom: 4px;
}
.forecast-day .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.forecast-day .temp {
  font-size: 13px;
  font-weight: bold;
}
