/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

/* 地域選択フォーム */
.location-selector {
  margin-bottom: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select-group {
  margin-bottom: 15px;
}

.select-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.select-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
}

/* 天気カード */
.weather-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
}

.weather-header {
  background-color: #3b82f6;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-header h2 {
  font-size: 1.2rem;
}

.publish-time {
  font-size: 0.8rem;
}

/* タブ */
.weather-tabs {
  padding: 15px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* 天気情報 */
.weather-info {
  text-align: center;
  margin-bottom: 20px;
}

.weather-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.weather-telop {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.weather-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.temperature {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.temperature-item {
  text-align: center;
}

.temperature-label {
  font-size: 0.8rem;
  color: #666;
}

.temperature-max {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e53e3e;
}

.temperature-min {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3182ce;
}

/* 服装アドバイス */
.clothing-advice {
  background-color: #ebf8ff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.clothing-advice h3 {
  color: #2c5282;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.clothing-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.clothing-icon {
  font-size: 1.8rem;
  margin-right: 10px;
}

.clothing-text h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.clothing-description {
  font-size: 0.85rem;
  color: #555;
}

.clothing-overall {
  background-color: #fff;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #bee3f8;
  font-size: 0.9rem;
  color: #2b6cb0;
  margin-top: 10px;
}

/* 降水確率 */
.rain-chance {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.rain-chance h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.rain-chance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rain-chance-item {
  text-align: center;
}

.rain-chance-label {
  font-size: 0.8rem;
  color: #666;
}

.rain-chance-value {
  font-weight: 500;
}

/* 詳細情報 */
.weather-details {
  font-size: 0.9rem;
  margin-top: 15px;
}

.weather-details p {
  margin-bottom: 5px;
}

.weather-details span {
  font-weight: 500;
}

/* フッター */
footer {
  text-align: center;
  margin-top: 30px;
  padding: 15px 0;
  color: #666;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
}

footer a {
  color: #3182ce;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ローディング */
.loading {
  text-align: center;
  padding: 30px;
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* エラー */
.error {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  display: none;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  
  .rain-chance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
} 