@charset "UTF-8";

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

/* =============================================
   都市一覧グリッド（index.php）
   ============================================= */
.weather-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.weather-city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 0.8rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #eaeaea;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  color: inherit;
}

.weather-city-name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.6rem;
}

.weather-city-name-en {
  display: block;
  font-size: 0.72rem;
  font-weight: normal;
  color: #999;
  margin-top: 0.2rem;
}

.weather-city-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.weather-city-icon--empty {
  color: #ccc;
}

.weather-city-temp {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.weather-city-temp span {
  font-size: 0.9rem;
  color: #777;
  font-weight: normal;
}

.weather-city-temp--empty {
  color: #ccc;
}

.weather-city-condition {
  font-size: 0.85rem;
  color: #555;
}

/* =============================================
   現在の天気カード（detail.php）
   ============================================= */
.weather-current-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 1.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.82rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

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

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

.weather-day-card {
  background: #fff;
  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.2rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

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

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

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

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

/* =============================================
   年間統計（detail.php）
   ============================================= */
.weather-annual-stat {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.2rem 0 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-annual-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.weather-annual-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}
.weather-annual-stat--rain::before { background: #6FA8D4; }
.weather-annual-stat--sun::before { background: #FC913A; }

.weather-annual-stat .fas {
  font-size: 2.2rem;
  margin-right: 1.2rem;
}
.weather-annual-stat--rain .fas { color: #6FA8D4; }
.weather-annual-stat--sun .fas { color: #FC913A; }

.weather-annual-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  flex: 1; 
  letter-spacing: 0.03em;
}

.weather-annual-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.weather-annual-value small {
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  margin-left: 0.3rem;
}

/* =============================================
   他都市ナビゲーション（detail.php）
   ============================================= */
.weather-city-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.weather-city-nav a,
.weather-city-nav-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.weather-city-nav a {
  background: #ffffff;
  color: #555;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.weather-city-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  border-color: #b8cff5;
  color: #3b6bbf;
}

.weather-city-nav a .fas {
  font-size: 1.1rem;
  color: #888;
  transition: color 0.2s;
}

.weather-city-nav a:hover .fas {
  color: #3b6bbf;
}

.weather-city-nav-current {
  background: linear-gradient(135deg, #4ea1d5 0%, #3a7bc8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(58,123,200,0.25);
  pointer-events: none;
}

.weather-city-nav-current .fas {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.weather-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  background: #f5f5f5;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: background 0.15s, color 0.15s;
  margin-top: 0.5rem;
}

.weather-back-link:hover {
  background: #e8e8e8;
  color: #333;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .weather-city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-current-details {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-weekly-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .weather-current-main {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  .weather-weekly-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
