:root {
  --navy: #0d2b57;
  --navy-light: #1b4a8a;
  --accent: #c8a24b;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5c6675;
  --border: #d8dde5;
  --pass: #f6d9c2;
  --first: #d7e6f7;
  --second: #dce9dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--navy-light); }

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.site-header a { color: #fff; text-decoration: none; }
.site-header .brand { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.site-header .tagline { font-size: 13px; color: #b9c6dd; }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* --- home --- */
.page-title { font-size: 26px; color: var(--navy); margin: 0 0 8px; }
.page-lead { color: var(--muted); margin: 0 0 28px; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; }
.legend span { padding: 3px 10px; border-radius: 4px; border: 1px solid var(--border); }
.legend .first { background: var(--first); }
.legend .second { background: var(--second); }
.legend .pass { background: var(--pass); }

/* --- timeline（月別 日付グリッド） --- */
.tl-month { margin-bottom: 26px; }
.tl-title { font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.tl-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
.timeline { border-collapse: collapse; background: var(--card); table-layout: fixed; }
.timeline th, .timeline td { border: 1px solid var(--border); }
.timeline thead th {
  width: 22px; padding: 3px 0; text-align: center; font-weight: 500;
  font-size: 11px; line-height: 1.2; background: #eef1f6;
}
.timeline thead th .d { display: block; }
.timeline thead th .w { display: block; color: var(--muted); font-size: 10px; }
.timeline .pref-name {
  width: 108px; min-width: 108px; padding: 4px 8px; text-align: left;
  font-size: 12px; font-weight: 700; background: #f2f4f8;
  position: sticky; left: 0; z-index: 2; white-space: nowrap;
}
.timeline .pref-name a { color: var(--navy); text-decoration: none; }
.timeline .pref-name a:hover { text-decoration: underline; }
.timeline .cell { height: 24px; position: relative; padding: 0; }
.timeline .cell.first { background: var(--first); }
.timeline .cell.second { background: var(--second); }
.timeline .cell.third { background: #e6dcf1; }
.timeline .cell.pass { background: var(--pass); }
.timeline .bar-label {
  position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 10px; color: #333; z-index: 1; pointer-events: none;
}
/* 土日の色付け（イベントのないセル・見出し） */
.timeline thead th.wd-0, .timeline td.wd-0 { background: #fdecec; }
.timeline thead th.wd-6, .timeline td.wd-6 { background: #eaf1fb; }
.timeline thead th.wd-0 .w { color: #c0392b; }
.timeline thead th.wd-6 .w { color: #2c6fb5; }

.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.pref-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
}
.pref-card:hover { box-shadow: 0 6px 18px rgba(13,43,87,.12); transform: translateY(-2px); }
.pref-card .region { font-size: 12px; color: var(--accent); font-weight: 700; }
.pref-card .name { font-size: 17px; font-weight: 700; margin-top: 2px; }

/* --- detail --- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.detail-title { font-size: 24px; color: var(--navy); border-bottom: 3px solid var(--accent); padding-bottom: 10px; }

.section { margin-top: 28px; }
.section h2 {
  font-size: 16px; color: #fff; background: var(--navy);
  padding: 6px 14px; border-radius: 4px; display: inline-block; margin: 0 0 12px;
}
.kv { margin: 0; }
.list { margin: 0; padding-left: 1.2em; }
.list li { margin: 2px 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.data-table thead th { background: #eef1f6; }

.links a { display: inline-block; margin-right: 16px; }
.note-box { background: #fffbe9; border: 1px solid var(--accent); border-radius: 6px; padding: 12px 16px; }
