:root {
  --primary: #1f4e79;
  --primary-light: #e8f0f8;
  --accent: #c0392b;
  --text: #222;
  --muted: #666;
  --border: #ddd;
  --bg: #f6f7f9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--primary); }
header.site-header { background: var(--primary); color: #fff; }
header.site-header .inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
header.site-header a { color: #fff; text-decoration: none; }
.site-title { font-size: 1.4rem; font-weight: bold; }
nav a { margin-left: 16px; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; margin-bottom: 20px;
}
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.25rem; border-left: 5px solid var(--primary); padding-left: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--primary-light); border-radius: 8px; padding: 16px; text-align: center; }
.stat .num { font-size: 2rem; font-weight: bold; color: var(--primary); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--primary-light); white-space: nowrap; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.search-form input[type=text], .search-form select { padding: 8px; border: 1px solid var(--border); border-radius: 4px; min-width: 240px; }
button, .btn {
  background: var(--primary); color: #fff; border: none; border-radius: 4px;
  padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; font-size: .95rem;
}
.btn-danger { background: var(--accent); }
.btn-link { background: none; color: var(--primary); padding: 0; text-decoration: underline; }
.muted { color: var(--muted); font-size: .9rem; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: .8rem;
  background: #eee; color: #333; white-space: nowrap;
}
.badge-achieved { background: #d4edda; color: #155724; }
.badge-partially_achieved { background: #e2f0d9; color: #3c763d; }
.badge-in_progress { background: #fff3cd; color: #856404; }
.badge-not_started { background: #e2e3e5; color: #383d41; }
.badge-broken { background: #f8d7da; color: #721c24; }
.score { color: #e6a700; letter-spacing: 1px; }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; color: var(--muted); }
.messages { list-style: none; padding: 0; }
.messages li { background: #d4edda; color: #155724; padding: 10px 14px; border-radius: 4px; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.summary-list { display: flex; gap: 8px; flex-wrap: wrap; }
form.eval-form p { margin: 0 0 12px; }
form.eval-form label { font-weight: bold; display: block; }
form.eval-form textarea, form.eval-form input[type=url], form.eval-form select { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; }
form.eval-form ul { list-style: none; padding: 0; display: flex; gap: 12px; margin: 0; }
form.eval-form ul label { font-weight: normal; display: inline; }
.errorlist { color: var(--accent); }
.pledge-content { white-space: pre-wrap; }
.evaluation { border-top: 1px solid var(--border); padding: 12px 0; }
.evaluation:first-child { border-top: none; }
