/* Burstwell site — 全ページ共通。外部のフォント・画像は読まない（端末の文字だけ）。
   色は変数にまとめ、ダークモードは prefers-color-scheme で切り替える。 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #1c1d21;
  --muted: #5d616b;
  --line: #dcdfe5;
  --accent: #d1460f;      /* リンク・見出しの印。白地で 4.5:1 以上 */
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1c1e22;
    --text: #ececef;
    --muted: #a3a7b0;
    --line: #2f3238;
    --accent: #ff8a5c;    /* 黒地で 4.5:1 以上 */
    --accent-text: #111214;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

:lang(ja) { line-height: 1.85; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 上の帯 */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-header nav a:hover { color: var(--text); }

/* 本文 */
main { padding: 2rem 0 3rem; }

h1 { font-size: 1.875rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
h3 { font-size: 1.0625rem; line-height: 1.45; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.25rem 0; }

.lead { font-size: 1.1875rem; color: var(--muted); margin-bottom: 1.5rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }

/* 要点の箱 */
.box {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.box h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.0625rem; }
.box ul:last-child, .box p:last-child { margin-bottom: 0; }

/* トップのリンク一覧（指で押しやすい高さ） */
.links { list-style: none; padding: 0; margin: 1.5rem 0; }
.links li { margin: 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  font-weight: 600;
}
.links a::after { content: "\203A"; margin-left: auto; padding-left: 1rem; color: var(--muted); font-weight: 400; }
.links .note { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }

/* 言語の切り替えの小さな行 */
.lang-switch { font-size: 0.9375rem; margin: 0 0 1.5rem; }

/* 「よくある質問」の答えの中の手順 */
.path { font-weight: 600; }

.effective {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* 日本語の節（サポートの頁） */
.ja-section {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 3px solid var(--line);
}
.ja-section > h2:first-child { border-top: 0; padding-top: 0.75rem; }

/* 下の帯 */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.site-footer nav a { color: var(--muted); padding: 0.25rem 0; }
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 2.25rem; }
  main { padding-top: 3rem; }
}
