/* 色はアプリ Beyond Log の Theme.swift と同じ値（案C）。外部のフォントは使わず端末の書体で表示する。 */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F1F3F8;
  --text: #0B1F4B;
  --text-sub: #3E4A66;
  --line: #C9CFDD;
  --link: #2456C8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050D22;
    --surface: #141A2B;
    --text: #FFFFFF;
    --text-sub: #BAC4DC;
    --line: #3A4663;
    --link: #8FB0FF;
  }
}

*, *::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, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.site-name { color: var(--text); font-weight: 700; letter-spacing: 0.01em; text-decoration: none; }
.site-name:hover { text-decoration: underline; }

main { padding: 2rem 0 3rem; }

h1 { margin: 0 0 0.5rem; font-size: 1.625rem; line-height: 1.4; font-weight: 700; }
h2 { margin: 2.5rem 0 0.75rem; padding-top: 0.25rem; font-size: 1.25rem; line-height: 1.5; font-weight: 700; }
h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; line-height: 1.6; font-weight: 700; }
h1, h2, h3 { scroll-margin-top: 1rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.375rem; }
li::marker { color: var(--text-sub); }

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

.meta { color: var(--text-sub); font-size: 0.9375rem; }
.history { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--text-sub); font-size: 0.9375rem; }

.table-box { margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.7; }
th, td { padding: 0.625rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface); font-weight: 700; }
tbody th { font-weight: 700; width: 1%; white-space: nowrap; }

.email { font-weight: 700; }
.notice { padding: 0.875rem 1rem; background: var(--surface); border-radius: 8px; }

.links { display: flex; flex-direction: column; gap: 0.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.links a { display: inline-block; padding: 0.5rem 0; }

.site-footer { border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-top: 0.5rem; padding-bottom: 0.75rem; }
.site-footer a { display: inline-block; padding: 0.5rem 0; }
