/* IT資格・試験日程カレンダー 共通スタイル(外部フォント・外部スクリプトなし) */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d8dee4;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --soon-bg: #fde8e8;
  --soon-text: #8a1c1c;
  --warn-bg: #fff4e0;
  --warn-text: #7a4100;
  --ok-bg: #e6f4ea;
  --ok-text: #14532d;
  --focus: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1c2026;
    --text: #e6e8eb;
    --muted: #a3acb6;
    --border: #39414b;
    --accent: #6cb2ff;
    --accent-text: #0b1520;
    --soon-bg: #4a1d1d;
    --soon-text: #ffc9c9;
    --warn-bg: #3d2c10;
    --warn-text: #ffd8a0;
    --ok-bg: #173a24;
    --ok-text: #b7f0c8;
    --focus: #fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.site-header .brand { font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
main { padding: 16px 0 32px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 12px 0; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.lead { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; font-size: 15px; }
th { background: var(--bg); white-space: nowrap; }
.sched-list { list-style: none; padding: 0; margin: 0; }
.sched-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.sched-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sched-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.sched-what { font-weight: 600; }
.meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.meta .stale { color: var(--warn-text); background: var(--warn-bg); border-radius: 4px; padding: 0 4px; }
.days { font-size: 14px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.badge.soon { background: var(--soon-bg); color: var(--soon-text); }
.badge.kind { background: var(--ok-bg); color: var(--ok-text); }
.badge.tentative { background: var(--warn-bg); color: var(--warn-text); }
.badge.pr { background: var(--warn-bg); color: var(--warn-text); }
tr.past td { color: var(--muted); }
.exam-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.exam-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.exam-grid .mode { display: block; font-size: 13px; color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 700; border-radius: 6px; padding: 8px 14px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); padding: 12px 0 24px; }
.site-footer p { margin: 6px 0; }
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  th, td { font-size: 14px; padding: 5px 6px; }
}
