:root {
  --color-main: #1f4d36;
  --color-main-dark: #143524;
  --color-sub: #6f8f72;
  --color-accent: #f2a900;
  --color-bg: #f5f3ec;
  --color-card: #ffffff;
  --color-text: #1f2521;
  --color-muted: #6f786f;
  --color-border: #dcd8cc;
  --color-warn: #e05a00;
  --color-urgent: #d93025;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(31, 77, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 17px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
}

.site-wrap {
  min-height: 100vh;
  background: var(--color-bg);
}

.site-header {
  background: var(--color-main-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
}

.site-logo small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.site-nav {
  display: none;
  gap: 4px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hamburger-btn {
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  max-height: 0;
  overflow: hidden;
  background: var(--color-main-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: max-height 0.25s ease;
}

.nav-drawer.open {
  max-height: 380px;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-main);
  padding: 32px 20px 70px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 86px;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 86' preserveAspectRatio='none'%3E%3Cpath d='M0,86 L0,67 C70,64 120,62 170,61 C225,60 260,50 320,45 C385,40 455,42 520,47 C565,51 600,57 645,55 C690,53 730,45 775,41 C825,37 860,27 905,25 C955,28 995,38 1040,47 C1085,56 1130,58 1165,60 C1185,62 1196,66 1200,68 L1200,86 Z' fill='%23f5f3ec'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-label,
.day-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.2);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.section {
  padding: 20px 16px;
}

.temp-alert-section {
  display: grid;
  gap: 10px;
  padding: 18px 16px 0;
}

.temp-alert-section[hidden] {
  display: none;
}

.temp-alert {
  border: 1px solid #e2d1a2;
  border-left: 6px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: #fff8e6;
  box-shadow: 0 10px 26px rgba(51, 43, 20, 0.08);
  padding: 14px 16px;
}

.temp-alert.is-freeze {
  border-color: #83b8d8;
  border-left-color: #0d6fa3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(221, 244, 255, 0.66)),
    repeating-linear-gradient(135deg, rgba(13, 111, 163, 0.08) 0, rgba(13, 111, 163, 0.08) 1px, transparent 1px, transparent 11px),
    #edf9ff;
}

.temp-alert.is-freeze .temp-alert-body strong {
  color: #0b5d8a;
}

.temp-alert.is-freeze .temp-alert-label {
  color: #47758c;
}

.temp-alert.is-cold {
  border-color: #b8d3dc;
  border-left-color: #2980b9;
  background: #edf7fa;
}

.temp-alert.is-cold .temp-alert-body strong {
  color: #1d6f8c;
}

.temp-alert.is-cold .temp-alert-label {
  color: #5c7f88;
}

.temp-alert.is-high {
  border-color: #e2afa8;
  border-left-color: var(--color-urgent);
  background: #fff1ee;
}

.temp-alert.is-heat .temp-alert-body strong {
  color: #8a5f00;
}

.temp-alert.is-heat .temp-alert-label {
  color: #8f7a41;
}

.temp-alert.is-high .temp-alert-body strong {
  color: #b63329;
}

.temp-alert.is-high .temp-alert-label {
  color: #9b625b;
}

.temp-alert-label {
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.temp-alert-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.temp-alert-body strong {
  color: var(--color-main);
  font-size: 20px;
}

.temp-alert-body span,
.temp-alert-note {
  color: var(--color-text);
  font-size: 14px;
}

.temp-alert-note {
  margin-top: 6px;
  color: var(--color-muted);
}

.section-title {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card,
.temp-card,
.bus-card,
.timetable-card,
.about-section,
.notice-list {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.temp-card,
.bus-card,
.about-section {
  padding: 20px;
}

.live-camera-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.live-camera-card__body {
  padding: 20px;
}

.live-camera-card__title {
  margin: 0;
  color: var(--color-main);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.live-camera-card__lead {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.live-camera-card__movie {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #111;
}

.live-camera-card__movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-camera-card__note {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.live-camera-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  background: var(--color-main);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.live-camera-card__button:hover {
  background: var(--color-main-dark);
}

.temp-card {
  position: relative;
  overflow: hidden;
}

.temp-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at top right, rgba(31, 77, 54, 0.07), transparent 70%);
}

.cond-inner {
  position: relative;
  z-index: 1;
}

.temp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2eb;
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
}

.temp-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2da050;
  animation: blink 2s ease-in-out infinite;
}

.temp-badge.stale {
  background: #fff8e1;
  color: #8d6a00;
}

.temp-badge.stale::before {
  background: #b8860b;
  animation: none;
}

.temp-badge.old {
  background: #fff3e0;
  color: var(--color-warn);
}

.temp-badge.old::before {
  background: var(--color-warn);
  animation: none;
}

.temp-badge.error {
  background: #fdecea;
  color: var(--color-urgent);
}

.temp-badge.error::before {
  background: var(--color-urgent);
  animation: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.temp-value {
  color: var(--color-main);
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.temp-value.is-error {
  color: var(--color-muted);
}

.temp-value .decimal {
  font-size: 48px;
}

.temp-value .unit {
  margin-left: 2px;
  font-size: 32px;
  font-weight: 700;
  vertical-align: super;
}

.temp-label {
  margin: 6px 0 10px;
  color: var(--color-sub);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.temp-meta,
.temp-time {
  color: var(--color-muted);
  font-size: 14px;
}

.weather-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.weather-divider::before,
.weather-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.weather-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.weather-icon {
  position: relative;
  min-width: 116px;
  width: 100%;
  padding: 20px 14px;
  border: 1px solid rgba(56, 79, 64, 0.08);
  border-radius: 8px;
  background: #f4f6f2;
  justify-self: center;
  text-align: center;
}

.weather-icon.is-sunny {
  background: #fff7df;
}

.weather-icon.is-partly-cloudy {
  background: #f7f2df;
}

.weather-icon.is-cloudy {
  background: #eef3ee;
}

.weather-icon.is-rainy {
  background: #eaf3f8;
}

.weather-icon.is-snowy {
  background: #eef8fa;
}

.weather-icon.is-foggy {
  background: #f1f3f0;
}

.weather-icon.is-thunder {
  background: #fff1c7;
}

.weather-icon.is-unknown {
  background: #f4f6f2;
}

.weather-condition {
  color: var(--color-main);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.weather-summary {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.weather-rain-stop {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 115, 201, 0.18);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.weather-rain-stop strong {
  display: block;
  margin-top: 2px;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 800;
}

.weather-stats {
  min-width: 0;
  width: 100%;
  max-width: 230px;
  justify-self: center;
}

.weather-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: baseline;
  padding: 3px 0;
  font-size: 15px;
}

.weather-stat dt {
  color: var(--color-muted);
  white-space: nowrap;
}

.weather-stat dd {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.weather-stat .rain {
  color: #2f73c9;
}

.weather-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
}

.weather-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weather-wn-link,
.weather-jma-link,
.inline-link {
  color: var(--color-main);
  font-weight: 800;
  text-decoration: none;
}

.weather-jma-link {
  color: var(--color-muted);
  font-weight: 600;
}

.error-panel {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fafaf8;
  color: var(--color-muted);
  font-size: 15px;
}

.bus-card {
  overflow: hidden;
}

.bus-items {
  margin: -4px 0 0;
}

.bus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.bus-item > div:first-child {
  min-width: 0;
}

.bus-item:last-child {
  border-bottom: 0;
}

.bus-direction {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.bus-direction span:last-child {
  min-width: 0;
  color: var(--color-main);
  font-weight: 800;
}

.operator-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.operator-badge.nankai {
  background: #f07a00;
  color: #fff;
}

.operator-badge.village {
  background: #1f7a5b;
  color: #fff;
}

.bus-time {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bus-time span {
  margin-left: 2px;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 600;
}

.bus-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.bus-edge-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.bus-edge-badge.first {
  border: 1px solid #6a8a45;
  background: #f2f8e9;
  color: #46652a;
}

.bus-edge-badge.last {
  border: 1px solid #b95c35;
  background: #fff4ed;
  color: #8b3d20;
}

.bus-remaining {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--color-accent);
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 800;
}

.bus-remaining.urgent {
  background: var(--color-urgent);
  color: #fff;
}

.bus-remaining.soon {
  background: var(--color-warn);
  color: #fff;
}

.bus-remaining.far {
  background: #eaf2eb;
  color: var(--color-main);
}

.bus-remaining.done {
  background: #ececec;
  color: var(--color-muted);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-main);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  margin-top: 16px;
}

.btn-primary::after {
  content: " →";
}

.btn-secondary {
  padding: 0 22px;
}

.map-wrap {
  overflow: hidden;
  height: 260px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: #d4e0d5;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.notice-list {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.notice-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.notice-item a {
  color: var(--color-main);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-muted);
}

.notice-dot.warn {
  background: var(--color-warn);
}

.notice-dot.info {
  background: #2f80c0;
}

.caution {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f0ede5;
  color: var(--color-muted);
  font-size: 14px;
}

.caution p {
  margin: 0;
}

.caution p + p {
  margin-top: 8px;
}

.site-footer {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--color-main-dark);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.bus-page-header {
  background: var(--color-main);
  color: #fff;
  padding: 24px 20px;
}

.bus-page-title {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 800;
}

.service-note,
.update-date {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.timetable-grid {
  display: grid;
  gap: 16px;
}

.timetable-card {
  overflow: hidden;
}

.timetable-head {
  padding: 14px 20px;
  background: var(--color-main);
  color: #fff;
}

.timetable-route {
  font-size: 17px;
  font-weight: 800;
}

.timetable-sub,
.timetable-operator {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.day-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.day-tab {
  padding: 13px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: var(--color-bg);
  color: var(--color-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.day-tab + .day-tab {
  border-left: 1px solid var(--color-border);
}

.day-tab.active {
  background: #fff;
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

.common-badge {
  display: inline-block;
  margin: 12px 16px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111, 143, 114, 0.12);
  color: var(--color-sub);
  font-size: 13px;
  font-weight: 800;
}

.timetable-body {
  padding: 14px 20px 16px;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
}

.time-row:last-child {
  border-bottom: 0;
}

.time-hour {
  width: 34px;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 800;
}

.time-minutes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  min-width: 0;
}

.time-minute {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.route-mark {
  margin-right: 3px;
  color: #2f7555;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.time-minute.next {
  position: relative;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px 4px 42px;
  border-radius: 6px;
  background: rgba(242, 169, 0, 0.14);
  color: var(--color-main);
}

.time-minute.next::before {
  content: "次";
  position: absolute;
  top: 50%;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 18px;
  transform: translateY(-48%);
  color: #b87c00;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.official-links {
  padding: 16px;
  font-size: 15px;
}

.official-links h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.link-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.link-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f5f9f6;
  color: var(--color-main);
  font-weight: 800;
  text-decoration: none;
}

.about-content {
  display: grid;
  gap: 16px;
}

.about-section h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg);
  color: var(--color-main);
  font-size: 17px;
}

.about-section p {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.about-section p + p {
  margin-top: 8px;
}

.about-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f0ede5;
  color: var(--color-muted);
  font-size: 14px;
}

.about-list {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.camera-sensor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.camera-sensor-list div {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f7f3ea;
}

.camera-sensor-list dt {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.camera-sensor-list dd {
  margin: 0;
  color: var(--color-main);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.done-panel {
  padding: 32px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #f5f5f5;
  color: var(--color-muted);
  text-align: center;
}

.done-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.temperature-overview .section {
  padding-right: 16px;
  padding-left: 16px;
}

.temp-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.temp-mini-label {
  margin-bottom: 4px;
  color: var(--color-sub);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.temp-mini-value {
  color: var(--color-main);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.temp-mini-value span {
  margin-left: 1px;
  font-size: 22px;
  font-weight: 700;
  vertical-align: super;
}

.temp-mini-value .temp-mini-decimal {
  margin-left: 0;
  font-size: 28px;
  font-weight: 800;
  vertical-align: baseline;
}

.temp-mini-time {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 13px;
}

.temp-mini-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf2eb;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 800;
}

.temp-mini-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2da050;
  animation: blink 2s ease-in-out infinite;
}

.temp-mini-badge.stale {
  background: #fff8e1;
  color: #8d6a00;
}

.temp-mini-badge.stale::before {
  background: #b8860b;
  animation: none;
}

.chart-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--color-border);
}

.chart-title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 800;
}

.chart-range-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.period-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.period-tab {
  min-width: 0;
  padding: 12px 8px;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.period-tab:last-child {
  border-right: 0;
}

.period-tab.active {
  background: #fff;
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

.chart-scroll-hint {
  padding: 8px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #faf9f5;
  color: var(--color-muted);
  font-size: 13px;
}

.chart-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.chart-scroll-wrap::-webkit-scrollbar {
  height: 5px;
}

.chart-scroll-wrap::-webkit-scrollbar-track {
  background: var(--color-bg);
}

.chart-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-border);
}

.chart-inner {
  position: relative;
  min-width: 960px;
  min-height: 250px;
}

.chart-y-axis {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 40px;
  height: 0;
  pointer-events: none;
}

.chart-y-axis span {
  position: absolute;
  left: 4px;
  width: 32px;
  transform: translateY(-50%);
  color: #8e958d;
  font-size: 10px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.temp-svg {
  display: block;
  width: 100%;
  height: 250px;
}

.chart-marker-label {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  fill: var(--color-main);
  font-size: 10px;
  font-weight: 800;
}

.chart-marker-label.is-max {
  fill: #c0392b;
}

.chart-marker-label.is-min {
  fill: #2980b9;
}

.chart-marker-label.is-current {
  fill: #b87c00;
}

.chart-hit-area {
  cursor: pointer;
}

.chart-data-note {
  padding: 0 20px 14px;
  color: var(--color-muted);
  font-size: 13px;
}

.summary-card {
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.summary-period {
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 13px;
}

.summary-stats {
  display: flex;
}

.summary-stat {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.summary-stat:last-child {
  border-right: 0;
}

.summary-stat-label {
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.summary-stat-value {
  color: var(--color-main);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.summary-stat-value.is-max {
  color: #c0392b;
}

.summary-stat-value.is-min {
  color: #2980b9;
}

.summary-stat-value span {
  font-size: 14px;
  font-weight: 700;
}

.summary-stat-time {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.chart-tooltip {
  position: absolute;
  z-index: 10;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-main-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s;
}

.chart-tooltip.show {
  opacity: 1;
}

.chart-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-main-dark);
}

.chart-tooltip-temp {
  font-size: 15px;
}

.chart-tooltip-time {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.temp-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-main);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.temp-page-link:hover {
  background: #f0f7f2;
}

.temp-page-link-sub {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.related-link:hover {
  background: #f0f7f2;
}

.related-link-arrow {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1;
}

.day-archive-head {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.day-archive-head h2 {
  margin: 0;
  color: var(--color-main);
  font-size: 24px;
  line-height: 1.35;
}

.day-archive-head p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.day-live-link {
  justify-self: start;
}

.day-archive-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.day-date-tab {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
}

.day-date-tab.active {
  border-color: var(--color-main);
  background: var(--color-main);
  color: #fff;
}

.day-date-tab span,
.day-date-tab small {
  display: block;
  line-height: 1.25;
}

.day-date-tab span {
  font-size: 15px;
  font-weight: 800;
}

.day-date-tab small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 11px;
}

.day-date-tab.active small {
  color: rgba(255, 255, 255, 0.76);
}

.day-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-border);
  box-shadow: var(--shadow-card);
}

.day-summary-card div {
  min-width: 0;
  padding: 13px 12px;
  background: var(--color-card);
}

.day-summary-card span,
.day-summary-card strong {
  display: block;
}

.day-summary-card span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.day-summary-card strong {
  margin-top: 2px;
  color: var(--color-main);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sky-condition-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #cbdccf;
  border-radius: var(--radius-md);
  background: #f0f7f2;
  color: var(--color-main);
}

.sky-condition-summary span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.sky-condition-summary strong {
  font-size: 18px;
  line-height: 1.3;
}

.sky-condition-summary small {
  flex-basis: 100%;
  color: var(--color-muted);
  font-size: 12px;
}

.sky-condition-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.sky-condition-note div {
  display: grid;
  gap: 4px;
}

.sky-condition-note span {
  color: var(--color-main);
  font-size: 13px;
  font-weight: 800;
}

.sky-condition-note p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.75;
}

.sky-condition-spec {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
}

.sky-condition-spec h3 {
  margin: 0 0 12px;
  color: var(--color-main);
  font-size: 16px;
  line-height: 1.4;
}

.sky-condition-spec dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.sky-condition-spec dl > div {
  display: grid;
  grid-template-columns: minmax(92px, 0.24fr) 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
}

.sky-condition-spec dt {
  color: var(--color-main);
  font-size: 13px;
  font-weight: 800;
}

.sky-condition-spec dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.75;
}

.day-slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.day-slot {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.day-slot.is-js-hidden {
  display: none;
}

.day-slot-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e7e4da;
}

.day-slot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(245, 243, 236, 0.82)),
    repeating-linear-gradient(135deg, rgba(31, 77, 54, 0.07) 0, rgba(31, 77, 54, 0.07) 1px, transparent 1px, transparent 12px);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.day-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.day-slot-meta time {
  color: var(--color-text);
  font-weight: 800;
}

.day-slot-meta span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ef;
  color: var(--color-main);
  font-size: 11px;
  font-weight: 800;
}

.day-slot--missing .day-slot-meta span {
  background: #f3eee3;
  color: var(--color-muted);
}

.sky-condition-badge {
  margin: -2px 12px 10px;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 800;
}

.day-load-more {
  width: 100%;
  margin-top: 16px;
}

.day-load-more[hidden] {
  display: none;
}

.day-noscript {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .sky-condition-spec dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .weather-row {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .weather-icon,
  .weather-stats {
    width: 100%;
    max-width: none;
  }

  .weather-stat {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    width: 100%;
  }

  .weather-stat dd {
    text-align: right;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-logo {
    font-size: 15px;
  }

  .site-logo small {
    font-size: 10px;
  }

  .hero,
  .page-hero {
    padding: 28px 16px 66px;
  }

  .temp-card,
  .bus-card,
  .about-section {
    padding: 16px;
  }

  .temp-value {
    font-size: 58px;
  }

  .temp-value .decimal {
    font-size: 40px;
  }

  .weather-row {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .weather-icon {
    min-width: 0;
    width: 100%;
  }

  .weather-stats {
    max-width: none;
  }

  .weather-condition {
    font-size: 30px;
  }

  .weather-summary {
    font-size: 12px;
  }

  .weather-stat {
    gap: 8px;
    font-size: 13px;
  }

  .camera-sensor-list {
    grid-template-columns: 1fr;
  }

  .bus-item {
    gap: 10px;
  }

  .bus-time {
    font-size: 26px;
  }

  .bus-remaining {
    padding: 5px 10px;
    font-size: 13px;
  }

  .bus-status {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .temp-mini-card {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 759px) {
  .live-camera-card__button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .site-header {
    padding: 16px 48px;
  }

  .site-nav {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }

  .nav-drawer {
    display: none;
  }

  .hero,
  .page-hero {
    padding: 56px 48px 96px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 28px 48px;
  }

  .live-camera-card__body {
    padding: 24px;
  }

  .live-camera-card__title {
    font-size: 24px;
  }

  .cond-inner {
    display: flex;
    align-items: stretch;
  }

  .cond-temp-area {
    flex: 0 0 260px;
  }

  .cond-weather-area {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .cond-weather-area .weather-meta-row {
    margin-top: auto;
  }

  .weather-divider {
    flex-direction: column;
    width: 1px;
    margin: 0 28px;
  }

  .weather-divider span {
    writing-mode: vertical-rl;
    white-space: nowrap;
  }

  .bus-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bus-item {
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
    padding: 16px 20px;
  }

  .bus-direction {
    font-size: 16px;
  }

  .bus-item:last-child {
    border-right: 0;
  }

  .map-wrap {
    height: 340px;
  }

  .home-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding: 0 48px;
  }

  .home-grid .section {
    padding-right: 0;
    padding-left: 0;
  }

  .timetable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .temperature-overview {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 20px;
    padding: 28px 48px;
  }

  .temperature-overview .section {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .temperature-overview .temp-mini-card,
  .temperature-overview .summary-card {
    flex: 1;
  }

  .related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .day-archive-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .day-archive-tabs {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .day-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .chart-inner {
    min-width: 0;
  }
}
