/* ============================================================
   AIRA Score — 規約・マニュアル等のドキュメントページ共通
   ============================================================ */

:root {
  color-scheme: dark;
  --ink: #070b16;
  --panel-solid: #0d1526;
  --border: rgba(148, 184, 255, 0.14);
  --border-strong: rgba(148, 184, 255, 0.26);
  --text: #e9eefb;
  --muted: #93a3c0;
  --faint: #61708e;
  --mint: #34d399;
  --cyan: #22d3ee;
  --aurora: linear-gradient(120deg, #34d399 0%, #22d3ee 60%, #4aa8e2 100%);
  font-family: "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  background:
    radial-gradient(1000px 480px at 82% -12%, rgba(34, 211, 238, 0.10), transparent 62%),
    var(--ink);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.doc-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.doc-brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--aurora); }
.brand-name { font-family: "Space Grotesk", "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 700; }
.brand-name em { font-style: normal; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-header-link { color: var(--muted); font-size: 12.5px; }

.doc-main { max-width: 760px; margin: 0 auto; padding: 34px 20px 70px; }
.doc-main h1 { font-size: 24px; margin: 0 0 6px; }
.doc-updated { color: var(--faint); font-size: 12px; margin: 0 0 28px; }
.doc-main h2 { font-size: 17px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.doc-main h3 { font-size: 14.5px; margin: 22px 0 8px; color: var(--mint); }
.doc-main p, .doc-main li { color: var(--muted); }
.doc-main strong { color: var(--text); }
.doc-main ol, .doc-main ul { padding-left: 22px; }
.doc-main li { margin: 4px 0; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.doc-table th { width: 32%; color: var(--text); background: rgba(148, 184, 255, 0.05); font-weight: 700; white-space: nowrap; }
.doc-table td { color: var(--muted); }

.doc-figure {
  margin: 16px 0 22px;
}
.doc-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.doc-figure figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
}

.doc-note {
  margin: 18px 0; padding: 12px 16px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--panel-solid); color: var(--muted); font-size: 12.5px;
}

.doc-steps { counter-reset: step; list-style: none; padding: 0; }
.doc-steps > li {
  counter-increment: step;
  position: relative;
  margin: 14px 0; padding: 14px 16px 14px 52px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-solid);
}
.doc-steps > li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--aurora); color: #04160f;
  font-weight: 800; font-size: 13px;
}
.doc-steps h3 { margin: 0 0 4px; color: var(--text); font-size: 14.5px; }
.doc-steps p { margin: 0; font-size: 13px; }

.doc-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--faint); font-size: 12px;
}
.doc-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 8px; }
.doc-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .doc-main { padding: 24px 14px 50px; }
  .doc-table th { width: auto; white-space: normal; }
}
