:root { --bg:#f5f6fa; --panel:#fff; --text:#1b1e27; --muted:#646b7d; --border:#d9dce6; --primary:#5b5bf6; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#12141a; --panel:#1a1d25; --text:#e8eaf0; --muted:#9aa1b3; --border:#2f3442; --primary:#8a8aff; color-scheme: dark; } }
:root[data-theme="dark"] { --bg:#12141a; --panel:#1a1d25; --text:#e8eaf0; --muted:#9aa1b3; --border:#2f3442; --primary:#8a8aff; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.8 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif; }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }
.doc { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 28px 0 8px; }
a { color: var(--primary); }
.back { display: inline-block; margin-bottom: 12px; }
.meta, .note { color: var(--muted); font-size: 13px; }
.todo { background: rgba(214,158,46,.18); padding: 0 4px; border-radius: 3px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
th { width: 30%; white-space: nowrap; }
pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: rgba(127,127,127,.08); padding: 12px; border-radius: 6px; }
@media (max-width: 600px) { th { white-space: normal; width: 38%; } .doc { padding: 16px; } }
/* お問い合わせフォーム */
.contact-form { display: grid; gap: 18px; margin-top: 20px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.contact-form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.contact-form .req, .contact-form .opt { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.contact-form .req { background: #c0392b; color: #fff; }
.contact-form .opt { background: var(--border); color: var(--muted); }
.contact-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .send { justify-self: start; font: inherit; font-weight: 600; color: #fff; background: var(--primary); border: 0; border-radius: 6px; padding: 10px 28px; cursor: pointer; }
.contact-form .send:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form-status.error { color: #c0392b; }
.done { margin-top: 16px; }
