:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #7a7a7a;
  --accent: #b08968;
  --accent-dark: #8a6747;
  --line: #06c755;
  --instagram: #e4405f;
  --border: #e6dfd4;
  --sat: #2266aa;
  --sun: #c0392b;
  --ok: #2e8b57;
  --warn: #d9911a;
  --ng: #b94a4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.site-header {
  text-align: center;
  padding: 36px 16px 12px;
  max-width: 880px;
  margin: 0 auto;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  color: var(--accent-dark);
}

.site-lead {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.8;
}

.range {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 16px 0 0;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  letter-spacing: 0.04em;
}

.news-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.last-updated {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.error {
  background: #fff1f1;
  color: #a33;
  border: 1px solid #f3c2c2;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
}
.error.warn {
  background: #fff8e6;
  border-color: #f0d9a0;
  color: #8a6a1c;
}

/* Schedule table */
.schedule-card {
  padding: 12px;
}

.week-view {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.schedule {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}

table.schedule th,
table.schedule td {
  border-bottom: 1px solid #ececec;
  border-right: 1px solid #f1f1f1;
  padding: 6px 8px;
  text-align: center;
  background: #fff;
}

table.schedule thead th {
  position: sticky;
  top: 0;
  background: #fbf8f3;
  color: var(--accent-dark);
  font-weight: 600;
  z-index: 2;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

table.schedule th.time-col,
table.schedule td.time {
  position: sticky;
  left: 0;
  background: #fbf8f3;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  font-weight: 600;
  color: var(--muted);
}
table.schedule thead th.time-col { z-index: 3; }

table.schedule td.time { background: #fdfbf7; }

table.schedule th.date-head.sat,
table.schedule td.sat { background: #f1f6fb; }
table.schedule th.date-head.sat { color: var(--sat); }

table.schedule th.date-head.sun,
table.schedule td.sun { background: #fbf1f0; }
table.schedule th.date-head.sun { color: var(--sun); }

tr.hour-start td,
tr.hour-start th {
  border-top: 2px solid #d9d2c4;
}

.cell {
  display: inline-block;
  min-width: 22px;
  font-size: 14px;
  font-weight: 600;
}
.cell.available { color: var(--ok); }
.cell.limited { color: var(--warn); }
.cell.unavailable { color: var(--ng); }
.cell.unknown { color: var(--muted); }

/* Legend */
.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  background: #f7f4ee;
}
.badge.available { color: var(--ok); }
.badge.limited { color: var(--warn); }
.badge.unavailable { color: var(--ng); }
.legend-text strong { margin-right: 6px; }

/* Reserve buttons */
.reserve-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.05s ease, opacity 0.15s ease;
}
.reserve-btn:hover { opacity: 0.92; }
.reserve-btn:active { transform: scale(0.98); }
.reserve-btn.instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}
.reserve-btn.line {
  background: var(--line);
}
.reserve-icon { font-size: 18px; }

@media (max-width: 520px) {
  .reserve-buttons { grid-template-columns: 1fr; }
  .site-title { font-size: 24px; }
  .card { padding: 16px; }
  main { padding: 12px; }
}

.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 12px;
}
