@charset "UTF-8";

/* タブUI（セグメントコントロール風） */
.weather-tabs {
  display: flex;
  flex-wrap: wrap;
  background: #eef2f7;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 2rem;
}

.weather-tab-btn {
  padding: 0.55rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.weather-tab-btn:hover {
  color: #333;
  background: rgba(255,255,255,0.6);
}

.weather-tab-btn.is-active {
  background: #fff;
  color: #1a73e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.weather-tab-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: #999;
  line-height: 1;
}

.weather-tab-btn.is-active .weather-tab-sub {
  color: #7aaaee;
}

.weather-tab-panel {
  display: none;
}

.weather-tab-panel.is-active {
  display: block;
}

/* アイコンの色指定 */
.fa-sun { color: #FC913A; }
.fa-cloud { color: #B6B6B6; }
.fa-snowflake { color: #B2E2EC; }
.fa-cloud-showers-heavy { color: #B2E2EC; }
.fa-cloud-rain { color: #516C9D; }
.fa-smog { color: #B0D7D5; }
.fa-bolt { color: #FCAA00; }

/* 現在の天気カード */
.weather-current-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid #eaeaea;
}

.weather-current-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.weather-current-icon {
  font-size: 5rem;
  text-shadow: 2px 4px 6px rgba(0,0,0,0.1);
  line-height: 1;
}

.weather-current-info {
  display: flex;
  flex-direction: column;
}

.weather-current-condition {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.2rem;
}

.weather-current-temp {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.weather-current-temp span {
  font-size: 1.5rem;
  color: #777;
  font-weight: normal;
  margin-left: 0.2rem;
}

.weather-current-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
}

.weather-detail {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.detail-value {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

/* 週間天気グリッド */
.weather-weekly-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.weather-day-card {
  background: white;
  border-radius: 10px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.day-date {
  font-size: 1rem;
  font-weight: bold;
  color: #444;
  margin-bottom: 0.8rem;
}

.day-date span {
  font-size: 0.8rem;
  color: #888;
  font-weight: normal;
  display: block;
  margin-top: 0.2rem;
}

.day-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.day-condition {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: bold;
}

.day-temps {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.temp-max {
  color: #E85A70;
  font-weight: bold;
  font-size: 1.1rem;
}

.temp-min {
  color: #4EA1D5;
  font-weight: bold;
  font-size: 1.1rem;
}

.reference p {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .weather-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }
  .weather-tab-btn {
    flex: 1 1 calc(33.333% - 8px);
    padding: 0.5rem 0.3rem;
    font-size: 0.82rem;
    text-align: center;
  }
  .weather-weekly-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-current-details {
    grid-template-columns: repeat(2, 1fr);
  }
}
