/* 全サイト共通の見た目。サイトごとの色は --accent（layout.mjs が部門の色を入れる） */
:root {
  --bg: #ffffff; --fg: #1e293b; --muted: #64748b; --line: #e2e8f0; --card: #f8fafc;
  --accent: #334155;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f172a; --fg: #e2e8f0; --muted: #94a3b8; --line: #334155; --card: #1e293b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75; font-size: 16px;
}
a { color: var(--accent); }
.site-header { border-bottom: 3px solid var(--accent); padding: 12px 16px 8px; }
.site-name { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); }
.pr-notice { margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); }
.site-main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 8px 0 12px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
th { background: var(--card); }
.table-wrap { overflow-x: auto; }
.facts dt { font-weight: 700; margin-top: 8px; }
.facts dd { margin: 0 0 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 16px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.copyright { margin: 8px 0 0; }
/* フォーム */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, button { font: inherit; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg); min-height: 44px;
}
button { min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
button.secondary { background: transparent; color: var(--accent); }
.hint { font-size: 0.8rem; color: var(--muted); margin: 2px 0 0; }
/* 広告の枠（承認前モードでは組み立て時に中身ごと消える） */
.ad-slot { margin: 24px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; }
.table-wrap td:nth-child(n+2) { white-space: nowrap; }
