:root {
  color-scheme: light dark;
  --bg: #f3ede2;
  --surface: #faf8f3;
  --text: #2a2622;
  --text-soft: #5a534b;
  --text-faint: #958c80;
  --accent: #a8392e;
  --accent-soft: #be4035;
  --border: #d9d0bf;
  --note-bg: #f1e5cc;
  --note-border: #e0cfa9;
  --shadow: rgba(58, 48, 39, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --surface: #26231f;
    --text: #ece4d5;
    --text-soft: #c4baa9;
    --text-faint: #8f8676;
    --accent: #e0887c;
    --accent-soft: #eb9d91;
    --border: #3d3832;
    --note-bg: #2f2a22;
    --note-border: #4a4135;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

* { 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.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
.serif, h1, h2, h3, header.site .logo {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

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

header.site { text-align: center; padding: 56px 16px 8px; }
header.site .logo {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
}
header.site .seal {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 20px;
  line-height: 44px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px var(--shadow);
}
header.site .tagline { color: var(--text-soft); font-size: 14px; margin-top: 6px; letter-spacing: 0.06em; }

h1 { font-size: 24px; font-weight: 600; margin: 8px 0 4px; letter-spacing: 0.06em; }
h2 {
  font-size: 18px; font-weight: 600;
  margin: 40px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}
h3 { font-size: 16px; font-weight: 600; 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: 14px;
  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(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { color: #fff; background: var(--accent-soft); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

.contact {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 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: 600; white-space: nowrap; }
td ul { margin: 0; }
@media (max-width: 560px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  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; }
