/* 高齢者向け: 大きな文字・高コントラスト・縦一本の導線 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f9fd;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --sub-text: #555555;
  --primary: #1a6bb8;
  --hot: #c62828;
  --cold: #1565c0;
  --normal: #2e7d32;
  --border: #d5dde5;
  --warn-bg: #fff3cd;
  --warn-text: #7a5c00;
  --alert-bg: #c62828;
  --alert-text: #ffffff;
}

html {
  font-size: 16px;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDGothic", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.5rem; /* 24px */
  line-height: 1.6;
}

.site-header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px 16px 16px;
}

.site-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.today-date {
  font-size: 1.5rem;
  margin-top: 4px;
  font-weight: 600;
}

/* 警報・注意報の帯 */
.warning-band {
  padding: 16px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.warning-band.advisory {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-bottom: 3px solid #e0b400;
}

.warning-band.warning {
  background: var(--alert-bg);
  color: var(--alert-text);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 1.5rem;
  color: var(--primary);
  border-left: 8px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 16px;
}

/* きょうの天気 */
.today-card {
  text-align: center;
}

.today-card h2 {
  text-align: left;
}

.today-icon {
  font-size: 6rem;
  line-height: 1.2;
}

.today-text {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.temps {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.temp-block {
  flex: 1;
  max-width: 240px;
  background: #f4f7fa;
  border-radius: 12px;
  padding: 12px 8px 14px;
}

.temp-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sub-text);
}

.temp-value {
  font-size: 3.4rem; /* 約54px */
  font-weight: 700;
  line-height: 1.2;
}

.temp-unit {
  font-size: 1.8rem;
}

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

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

.diff-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.4;
}

.diff-text.hot { color: var(--hot); }
.diff-text.cold { color: var(--cold); }
.diff-text.normal { color: var(--normal); }

.updated-at {
  font-size: 1.05rem;
  color: var(--sub-text);
  margin-top: 14px;
}

.error-text {
  color: var(--hot);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 12px;
}

/* 週間予報 */
.weekly-list {
  list-style: none;
}

.weekly-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}

.weekly-list li:last-child {
  border-bottom: none;
}

.weekly-left {
  flex: 1;
  min-width: 0;
}

.weekly-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.weekly-day .dow-sat { color: var(--cold); }
.weekly-day .dow-sun { color: var(--hot); }

.weekly-icon {
  flex: 0 0 1.6em;
  font-size: 2.2rem;
  text-align: center;
}

.weekly-text {
  display: block;
  font-size: 1.1rem;
  color: var(--sub-text);
  line-height: 1.4;
}

.weekly-temp {
  flex: 0 0 auto;
  text-align: right;
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.weekly-temp .w-max { color: var(--hot); }
.weekly-temp .w-min { color: var(--cold); }

/* AI質問コーナー */
.ask-hint {
  font-size: 1.25rem;
  color: var(--sub-text);
  margin-bottom: 12px;
}

.preset-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.preset-btn {
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: #eef5fc;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 64px;
  cursor: pointer;
  text-align: left;
}

.preset-btn:active {
  background: #d8e9f9;
}

.ask-label {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ask-input {
  width: 100%;
  font-family: inherit;
  font-size: 1.3rem;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.ask-input:focus {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
}

.ask-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 16px;
  min-height: 68px;
  cursor: pointer;
}

.ask-btn:active {
  background: #145a9e;
}

.ask-btn:disabled {
  background: #9bb8d4;
  cursor: default;
}

.answer-area {
  margin-top: 20px;
  background: #f4f7fa;
  border-radius: 12px;
  padding: 16px;
}

.answer-question {
  font-size: 1.15rem;
  color: var(--sub-text);
  font-weight: 700;
  margin-bottom: 8px;
}

.answer-text {
  font-size: 1.35rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 関連リンク */
.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 12px;
}

.link-list a {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: #eef5fc;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 16px 14px;
  min-height: 64px;
  text-decoration: none;
}

.link-list a::after {
  content: " ▶";
  font-size: 1rem;
}

.site-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--sub-text);
  padding: 16px 0 40px;
}

@media (max-width: 380px) {
  body { font-size: 1.35rem; }
  .temp-value { font-size: 2.9rem; }
}
