:root {
  --bg: #f7f4ef;
  --bg2: #eee9e0;
  --white: #ffffff;
  --ink: #1c1a16;
  --ink2: #4a4640;
  --ink3: #7a7570;
  --red: #c0392b;
  --red-light: #faeae8;
  --blue: #1a5f8a;
  --blue-light: #e8f2f9;
  --green: #2d6a3f;
  --green-light: #e8f4ec;
  --amber: #8a5e10;
  --amber-light: #fdf3e3;
  --teal: #1a6b5a;
  --teal-light: #e5f5f1;
  --coral: #9e3a1e;
  --coral-light: #fdeee9;
  --gray: #4a4640;
  --gray-light: #f0ede8;
  --purple: #4a3a8a;
  --purple-light: #eeecfb;
  --border: rgba(28,26,22,0.12);
  --shadow: 0 2px 12px rgba(28,26,22,0.08);
  --radius: 8px;
  --radius-lg: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
}

/* ヘッダー */
.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header a.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.breadcrumb span { color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ページヘッダー */
.page-hero {
  padding: 48px 40px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.page-hero .category-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-weight: 500;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.page-hero .lead {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 640px;
}

/* 本文 */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* セクション */
.content-section {
  margin-bottom: 32px;
}
.content-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.content-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
}
.content-section p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 10px;
}

/* カード */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 12px; }

/* 指標カード */
.metric-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.metric-val { font-size: 22px; font-weight: 700; font-family: 'Noto Serif JP', serif; }
.metric-lbl { font-size: 11px; color: var(--ink2); margin-top: 3px; }
.metric-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* ポイントリスト */
.point-list { list-style: none; }
.point-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}
.point-list li:last-child { border-bottom: none; }
.point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* アラート */
.alert {
  border-left: 3px solid;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
.alert-warn { border-color: var(--amber); background: var(--amber-light); color: var(--amber); }
.alert-info { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.alert-ok { border-color: var(--green); background: var(--green-light); color: var(--green); }
.alert-danger { border-color: var(--coral); background: var(--coral-light); color: var(--coral); }

/* テーブル */
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { background: var(--bg2); padding: 8px 12px; text-align: left; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--border); }
.data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--ink2); }
.data-table tr:last-child td { border-bottom: none; }

/* チェックリスト */
.checklist { list-style: none; }
.checklist li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 0; font-size: 13px; color: var(--ink2);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.check-icon { color: var(--green); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* 関連リンク */
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-links h3 { font-size: 13px; font-weight: 700; color: var(--ink3); margin-bottom: 12px; letter-spacing: 0.05em; }
.related-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(26,95,138,0.2);
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.related-link:hover { background: #d0e8f5; }

/* 戻るボタン */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink3);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--ink); }

/* フッター */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .page-hero { padding: 32px 20px 28px; }
  .page-content { padding: 0 20px 60px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 22px; }
}
</style>
