/* 聖典 あずにゃん記: 規約・エラーなど下層ページの共通スタイル（12-bible と同じトーン） */
:root {
  --paper: #fefcfc; --paper-2: #f6eeea; --ink: #201c1e; --ink-soft: #4a3f42; --black: #11080a;
  --coral: #e1756c; --red: #721e20; --brick: #8d3f3e; --rose: #a46466; --pink: #dbbbbc;
  --tartan: #c8202e; --gold: #c9a24a; --gold-hi: #f1d98e;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --fraktur: "UnifrakturMaguntia", "Zen Old Mincho", serif;
  --roman: "Cinzel", "Zen Old Mincho", serif;
  --brush: "Yuji Syuku", "Zen Old Mincho", serif;
  --lace-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 0h24v3c0 6-5 10-12 10S0 9 0 3z' fill='%23201c1e'/%3E%3Ccircle cx='12' cy='6.5' r='2.6' fill='%23fefcfc'/%3E%3Ccircle cx='5' cy='3.2' r='1.2' fill='%23fefcfc'/%3E%3Ccircle cx='19' cy='3.2' r='1.2' fill='%23fefcfc'/%3E%3Ccircle cx='12' cy='11.2' r='.9' fill='%23fefcfc'/%3E%3C/svg%3E");
  --lace-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cg transform='matrix(1 0 0 -1 0 14)'%3E%3Cpath d='M0 0h24v3c0 6-5 10-12 10S0 9 0 3z' fill='%23201c1e'/%3E%3Ccircle cx='12' cy='6.5' r='2.6' fill='%23fefcfc'/%3E%3Ccircle cx='5' cy='3.2' r='1.2' fill='%23fefcfc'/%3E%3Ccircle cx='19' cy='3.2' r='1.2' fill='%23fefcfc'/%3E%3Ccircle cx='12' cy='11.2' r='.9' fill='%23fefcfc'/%3E%3C/g%3E%3C/svg%3E");
  --tartan-bg:
    repeating-linear-gradient(90deg, rgba(0,0,0,.38) 0 5px, transparent 5px 12px, rgba(255,255,255,.22) 12px 13px, transparent 13px 18px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.38) 0 5px, transparent 5px 12px, rgba(255,255,255,.22) 12px 13px, transparent 13px 18px),
    #c8202e;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  color: var(--paper); font-family: var(--mincho); line-height: 2; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background: #11080a;
  background-image: radial-gradient(ellipse 70% 45% at 50% 20%, rgba(114,30,32,.55), transparent 70%), radial-gradient(circle at 10% 90%, rgba(141,63,62,.25), transparent 40%);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.strip { height: 52px; flex: none; display: flex; align-items: center; padding: 0 24px; color: #b9a1a2; font: 500 12px var(--roman); letter-spacing: .3em; }
@media (max-width: 720px) { .strip span { display: none; } }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(880px, 100% - 32px); margin: 0 auto; padding: 4px 0 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 48px; flex: none; border-radius: 3px 6px 6px 3px; background: linear-gradient(90deg, #3a0d0f, #721e20 20%, #5a1517); border: 1px solid var(--gold); position: relative; box-shadow: 3px 3px 0 #2a0a0b; }
.brand-mark::before { content: ""; position: absolute; left: 50%; top: 10px; width: 2px; height: 22px; margin-left: -1px; background: var(--gold-hi); }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: 16px; width: 14px; height: 2px; margin-left: -7px; background: var(--gold-hi); }
.brand-t { display: block; font-size: 19px; font-weight: 900; letter-spacing: .16em; line-height: 1.2; }
.brand-l { display: block; font: 18px/1.1 var(--fraktur); color: var(--coral); letter-spacing: .04em; }
.back { font-size: 13px; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid rgba(254,252,252,.4); padding-bottom: 2px; }
.back:hover { color: var(--coral); border-color: var(--coral); }

main { flex: 1; width: min(880px, 100% - 32px); margin: 0 auto 40px; }

/* 羊皮紙の頁 */
.sheet {
  position: relative; padding: clamp(40px, 6vw, 64px) clamp(22px, 6vw, 72px) clamp(40px, 6vw, 60px); color: var(--ink);
  background: var(--lace-t) 0 0/24px 14px repeat-x, var(--lace-b) 0 100%/24px 14px repeat-x, linear-gradient(170deg, #fefcfc, #f6eeea);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.sheet::before { content: ""; position: absolute; inset: 24px 14px; border: 3px double rgba(114,30,32,.28); pointer-events: none; }
.sheet > * { position: relative; }
.chap { text-align: center; margin-bottom: 26px; }
.chap .lat { display: block; font: 22px/1.3 var(--fraktur); color: var(--red); }
.chap h1 { margin: 4px 0 0; font-size: clamp(26px, 4.4vw, 36px); font-weight: 900; letter-spacing: .22em; line-height: 1.4; }
.chap small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); }
.orn { display: block; width: 200px; height: 14px; margin: 12px auto 0; color: var(--red); }

.sheet h2 { margin: 34px 0 10px; padding-bottom: 6px; font-size: 19px; font-weight: 900; letter-spacing: .12em; border-bottom: 1px solid rgba(114,30,32,.3); }
.sheet h2 .n { font: 700 13px var(--roman); color: var(--tartan); margin-right: 10px; letter-spacing: .08em; }
.sheet h3 { margin: 22px 0 6px; font-size: 16px; letter-spacing: .08em; color: var(--red); }
.sheet p, .sheet li { font-size: 15px; }
.sheet p { margin: 0 0 12px; }
.sheet ul, .sheet ol { margin: 0 0 14px; padding-left: 1.5em; }
.sheet li { margin-bottom: 4px; }
.sheet li::marker { color: var(--tartan); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 16px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid rgba(114,30,32,.2); }
.sheet th { white-space: nowrap; color: var(--red); font-size: 13px; letter-spacing: .06em; }
.scroll { overflow-x: auto; }
.scroll table { min-width: 520px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: rgba(114,30,32,.08); padding: 1px 5px; }
.note { font-size: 13px !important; color: var(--ink-soft); }
.box { margin: 14px 0 18px; padding: 14px 18px; border: 1px dashed rgba(114,30,32,.45); background: rgba(219,187,188,.16); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.mock { margin: 0 0 22px; padding: 10px 14px; border-left: 4px solid var(--tartan); background: rgba(225,117,108,.1); font-size: 13px !important; color: var(--ink-soft); }
.updated { text-align: right; font-size: 13px !important; color: var(--ink-soft); margin-top: 30px !important; }

.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px;
  font: 700 14.5px/1.2 var(--mincho); letter-spacing: .14em; text-decoration: none; cursor: pointer; border-radius: 2px; border: 1px solid transparent;
}
.btn-red { background: var(--red); color: var(--paper); border-color: #4a0f11; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 4px 12px rgba(114,30,32,.35); }
.btn-red:hover { background: #8a2426; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: rgba(114,30,32,.06); }

/* 問答（FAQ） */
.qa { margin: 0 0 10px; border: 1px solid rgba(114,30,32,.25); background: rgba(254,252,252,.7); }
.qa summary { cursor: pointer; list-style: none; padding: 12px 44px 12px 16px; font-weight: 700; font-size: 15px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "問"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; font-size: 13px; color: var(--paper); background: var(--red); vertical-align: 1px; }
.qa summary::after { content: "＋"; position: absolute; right: 16px; top: 12px; color: var(--red); }
.qa[open] summary::after { content: "－"; }
.qa .a { padding: 0 16px 12px 52px; }
.qa .a p { font-size: 14.5px; }

/* エラー頁 */
.err { text-align: center; }
.err .code { display: block; font: 700 clamp(64px, 14vw, 120px)/1 var(--roman); color: var(--red); letter-spacing: .06em; }
.err .code small { display: block; margin-top: 6px; font: 700 12px var(--roman); letter-spacing: .4em; color: var(--brick); }
.err h1 { margin: 18px 0 8px; font-size: clamp(22px, 4vw, 30px); font-weight: 900; letter-spacing: .16em; line-height: 1.5; }
.err .verse { margin: 0 auto; max-width: 28em; color: var(--ink-soft); }
.err .illust { display: block; width: 120px; height: auto; margin: 22px auto 0; }
.err .detail { margin-top: 22px !important; font-size: 12px !important; color: var(--rose); letter-spacing: .06em; }

/* 共通フッター */
.site-footer { flex: none; padding: 28px 16px 40px; text-align: center; border-top: 1px solid rgba(241,217,142,.14); color: #c9b3b4; }
.site-footer .lat { display: block; font: 20px var(--fraktur); color: var(--coral); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0; font-size: 13px; letter-spacing: .08em; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--coral); }
.site-footer .disc { margin: 6px 0 0; font-size: 12px; }
.site-footer .c { margin: 4px 0 0; font: 11px var(--roman); letter-spacing: .3em; color: #8f7b7c; }
