:root {
  color-scheme: light dark;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-soft: #5f5f65;
  --text-faint: #737378;
  --accent: #2f6ad6;
  --accent-soft: #2557b3;
  --ink: #1c1c1e;
  --on-ink: #ffffff;
  --border: #e2e2dd;
  --note-bg: #ebebe7;
  --note-border: #dcdcd6;
  --shadow: rgba(28, 28, 30, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1a1a1c;
    --text: #f4f4f6;
    --text-soft: #a8a8ae;
    --text-faint: #8e8e94;
    --accent: #74a5ff;
    --accent-soft: #9dc0ff;
    --ink: #e8e8eb;
    --on-ink: #1a1a1c;
    --border: #2e2e31;
    --note-bg: #161618;
    --note-border: #2e2e31;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }

header.site { text-align: center; padding: 56px 16px 8px; }
header.site .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px var(--shadow);
}
header.site .logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
header.site .tagline { color: var(--text-soft); font-size: 14px; margin-top: 4px; letter-spacing: 0.04em; }

h1 { font-size: 24px; font-weight: 700; margin: 8px 0 4px; letter-spacing: 0.04em; }
h2 {
  font-size: 18px; font-weight: 700;
  margin: 40px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
h3 { font-size: 16px; font-weight: 700; margin: 28px 0 4px; }
p, li { font-size: 15px; }
p { margin: 8px 0; }
.meta { color: var(--text-faint); font-size: 13px; margin-bottom: 24px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px var(--shadow);
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.btnrow { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { color: var(--on-ink); opacity: 0.86; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--ink); }
.btn.ghost:hover { color: var(--text); }

.contact {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.contact ul { margin: 6px 0 0; }
.contact .note { color: var(--text-soft); font-size: 13px; display: block; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 700; white-space: nowrap; }
td ul { margin: 0; }
@media (max-width: 560px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  th { white-space: normal; }
  tr + tr th { border-top: none; }
  td { border-top: none; }
}

ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; }
.signature { text-align: right; margin-top: 32px; color: var(--text-soft); }

footer.site { text-align: center; color: var(--text-faint); font-size: 12px; padding: 24px 16px 32px; }
footer.site a { color: var(--text-faint); margin: 0 8px; }
