:root {
  --ink: #2b2118;
  --muted: #6b5d4d;
  --line: #e7dccb;
  --accent: #8a5a12;
  --head: #3a2a1c;
  --paper: #fffdf8;
  --soft: #f7efe1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
}
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--head); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 16px; font-size: 13px; }
.nav a { color: #f3e6cf; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

main { padding: 32px 0 72px; }
h1 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; line-height: 1.5; margin-bottom: 6px; }
.updated { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 28px; }
h2 { font-size: 18px; font-weight: 800; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
h3 { font-size: 15.5px; font-weight: 800; margin: 24px 0 8px; }
p { margin-bottom: 14px; }
ol, ul { margin: 0 0 16px; padding-left: 1.6em; }
li { margin-bottom: 8px; }
li > ul, li > ol { margin: 8px 0 0; }
td > ul:last-child, td > ol:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; line-height: 1.8; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--soft); width: 30%; font-weight: 800; }
@media (max-width: 600px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { margin-bottom: 12px; }
  td { border-top: 0; }
}

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
