@charset "utf-8";

/* Liveness Detection API docs — self-contained, CSP-safe (no @import, no external resources) */

/* reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #1a1a1a; line-height: 1.8; background: #fff; font-size: 1.5rem;
}

/* layout */
.doc { max-width: 880px; margin: 0 auto; padding: 32px 24px 80px; }

/* header (brand + lang switch) */
.doc-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #e5e7eb; padding-bottom: 12px; margin-bottom: 8px;
  flex-wrap: wrap; gap: 8px;
}
.doc-header .brand { font-size: 1.4rem; font-weight: 700; color: #6b7280; }
.doc-header .lang-switch { font-size: 1.3rem; }
.doc-header .lang-switch a { color: #0066cc; text-decoration: none; }
.doc-header .lang-switch a:hover { text-decoration: underline; }

/* headings */
h1 { font-size: 2.6rem; margin: 24px 0 16px; line-height: 1.4; }
h2 { font-size: 2.0rem; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; }
h3 { font-size: 1.7rem; margin: 24px 0 10px; }
h4 { font-size: 1.5rem; margin: 18px 0 8px; }

/* text */
p { margin: 12px 0; }
ul, ol { margin: 12px 0 12px 24px; }
li { margin: 4px 0; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid #e5e7eb; margin: 32px 0; }

/* inline code */
code {
  font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 0.92em; background: #f3f4f6; color: #c7254e;
  padding: 2px 6px; border-radius: 4px;
}

/* code block */
pre {
  background: #1e1e2e; color: #e4e6eb; border-radius: 8px;
  padding: 16px 18px; margin: 16px 0; overflow-x: auto;
  font-size: 1.35rem; line-height: 1.6;
}
pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }

/* table */
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 1.4rem; display: block; overflow-x: auto; }
th, td { border: 1px solid #d1d5db; padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: #f3f4f6; font-weight: 700; white-space: nowrap; }
tr:nth-child(even) td { background: #fafafa; }

/* blockquote */
blockquote {
  border-left: 4px solid #0066cc; background: #f0f6ff;
  padding: 10px 16px; margin: 16px 0; color: #374151;
}
blockquote p { margin: 6px 0; }

/* TOC (pandoc --toc -> nav#TOC) */
nav#TOC {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 14px 20px; margin: 20px 0 28px;
}
nav#TOC::before { content: "目次 / Contents"; display: block; font-weight: 700; font-size: 1.3rem; color: #6b7280; margin-bottom: 8px; }
nav#TOC ul { margin: 0 0 0 18px; list-style: none; }
nav#TOC > ul { margin-left: 0; }
nav#TOC li { margin: 3px 0; }
nav#TOC a { color: #374151; font-size: 1.4rem; }
nav#TOC a:hover { color: #0066cc; }

/* prev/next nav */
.page-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #e5e7eb; font-size: 1.4rem;
}
.page-nav a { color: #0066cc; }
.page-nav .next { margin-left: auto; text-align: right; }

/* index (doc list) */
.doc-index { list-style: none; margin: 24px 0 0; }
.doc-index li { border-bottom: 1px solid #eee; margin: 0; }
.doc-index li a { display: block; padding: 16px 8px; color: #1a1a1a; }
.doc-index li a:hover { background: #f9fafb; text-decoration: none; }
.doc-index .t { display: block; font-size: 1.6rem; font-weight: 700; color: #0066cc; }
.doc-index .d { display: block; font-size: 1.3rem; color: #6b7280; }

/* language landing */
.lang-landing { max-width: 480px; margin: 80px auto; text-align: center; padding: 0 24px; }
.lang-landing h1 { font-size: 2.2rem; margin-bottom: 8px; border: 0; }
.lang-landing p { color: #6b7280; font-size: 1.4rem; margin-bottom: 28px; }
.lang-landing a {
  display: block; padding: 18px; margin: 12px 0; border: 1px solid #d1d5db;
  border-radius: 8px; color: #0066cc; font-size: 1.7rem;
}
.lang-landing a:hover { background: #f0f6ff; text-decoration: none; }

/* responsive */
@media (max-width: 640px) {
  .doc { padding: 20px 16px 60px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  pre { font-size: 1.25rem; }
}
