:root {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 1rem;
}

h2,
h3,
h4 {
  margin-top: 0;
}

a {
  color: #1d4ed8;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.result {
  margin-top: 1rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9ca3af;
}

.live-dot.is-live {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.meta {
  margin: 0.75rem 0 0;
  color: #4b5563;
  font-size: 0.9rem;
}

label,
select,
button {
  display: block;
  width: 100%;
}

select,
button {
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

button {
  margin-top: 0.8rem;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.forecast-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.forecast-item {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.forecast-item:first-child {
  border-top: none;
}

.error {
  color: #b91c1c;
}

.status-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.status-list li {
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.status-ok {
  background: #ecfdf5 !important;
  border-color: #86efac !important;
}

.status-warn {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
}

.status-error {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
}
