/* 静的ページ（about / legal）共通 — index.html のトーンに合わせた最小セット */
:root {
  --bg: #ffffff;
  --bg2: #f4f4f5;
  --border: rgba(0, 0, 0, 0.09);
  --border2: rgba(0, 0, 0, 0.2);
  --text: #111111;
  --ink: #333333;
  --text2: #555555;
  --text3: #999999;
  --green: #1a7a40;
  --r: 6px;
  --r2: 10px;
  --font: "Noto Sans JP", sans-serif;
  --sh: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #f0f0f1;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  opacity: 0.85;
}
.site-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh);
}
.site-page-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.site-page-brand:hover {
  opacity: 0.9;
}
.site-page-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-page-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.site-page-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-page-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}
.site-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}
.site-page-nav a {
  color: var(--text2);
  text-decoration: none;
}
.site-page-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-page-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.site-page-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.site-page-lead {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.65;
}
.site-page-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
}
.site-page-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.site-page-section p {
  margin-bottom: 12px;
  color: var(--text2);
  font-size: 15px;
}
.site-page-section p:last-child {
  margin-bottom: 0;
}
.site-page-section ul,
.site-page-section ol {
  margin: 0 0 12px 1.1em;
  color: var(--text2);
  font-size: 15px;
}
.site-page-section li {
  margin-bottom: 6px;
}
.site-page-section li:last-child {
  margin-bottom: 0;
}
.site-page-note {
  font-size: 13px;
  color: var(--text3);
  background: var(--bg2);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-top: 8px;
}
.site-page-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 20px 24px;
  margin-top: auto;
}
.site-page-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: 12px;
  color: var(--text3);
}
.site-page-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.site-page-footer-links a {
  color: var(--text3);
  font-weight: 600;
  text-decoration: none;
}
.site-page-footer-links a:hover {
  color: var(--text2);
  text-decoration: underline;
}
@media (max-width: 560px) {
  .site-page-main h1 {
    font-size: 1.28rem;
  }
  .site-page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 静的問題ページ（tools/build_question_pages.py 生成） */
.q-static-body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #f0f0f1;
  min-height: 100vh;
  margin: 0;
}
.q-static-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  box-shadow: var(--sh);
}
.q-static-brand {
  font-weight: 600;
  margin-bottom: 8px;
}
.q-static-brand a {
  color: var(--text);
  text-decoration: none;
}
.q-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text2);
}
.q-breadcrumb li::after {
  content: "›";
  margin-left: 10px;
  opacity: 0.45;
}
.q-breadcrumb li:last-child::after {
  content: none;
}
.q-static-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.q-meta {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
}
.q-meta code {
  font-size: 12px;
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 4px;
}
.q-h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.45;
}
.q-h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.q-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
}
.q-stem,
.q-exp {
  white-space: normal;
  word-break: break-word;
}
.q-opts {
  margin: 0;
  padding-left: 1.1em;
}
.q-opt {
  margin-bottom: 8px;
}
.q-opt-num {
  font-weight: 600;
  margin-right: 4px;
}
.q-answer strong {
  color: var(--green);
}
.q-app-link {
  margin-top: 8px;
  font-size: 15px;
}
.q-static-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 16px 20px 28px;
  margin-top: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 12px;
}
