/* QUIPPO 操作マニュアル — shared docs styling.
   Base rules mirror index.html; the rest are documentation-only components. */
@layer base { html, body { margin: 0; padding: 0; } body { overscroll-behavior: none; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ddc0bc; border-radius: 9999px; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; }
[class*="headline"], [class*="display"] { font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; vertical-align: middle; }

:root {
  --primary: #98382c;
  --primary-container: #b85042;
  --stamp-hover: #A24336;
  --ink: #241915;
  --tertiary: #64564b;
  --muted: #56423f;
  --surface-warm: #F4F3EA;
  --surface-subtle: #EBE9DE;
  --border: #E2DFD2;
  --secondary: #4e6356;
  --secondary-container: #cee5d4;
}

/* Anchor offset so section links don't hide under the fixed header */
.doc-article :target { scroll-margin-top: 96px; }

/* ---- Prose rhythm ---- */
.doc-prose { color: var(--ink); }
.doc-prose h2 { font-family: 'Shippori Mincho B1', serif; font-size: 24px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 3rem 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.doc-prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.doc-prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 2rem 0 0.75rem; }
.doc-prose p { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 1rem; }
.doc-prose a { color: var(--primary-container); text-decoration: underline; text-underline-offset: 2px; }
.doc-prose a:hover { color: var(--stamp-hover); }
.doc-prose strong { color: var(--ink); font-weight: 700; }
.doc-prose ul, .doc-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc-prose li { font-size: 15px; line-height: 1.9; color: var(--muted); margin-bottom: 0.35rem; }
.doc-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--surface-subtle); color: var(--primary); padding: 0.12em 0.4em; border-radius: 5px; }

/* ---- Numbered steps ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; background: var(--primary-container); color: #fff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.1rem; bottom: 0.1rem; width: 2px; background: var(--border); }
.steps > li .step-title { font-weight: 700; color: var(--ink); font-size: 15px; display: block; margin-bottom: 0.2rem; }

/* ---- Figures / screenshots ---- */
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(58,46,41,0.08); background: #fff; }
figure.fig { margin: 1.25rem 0 1.75rem; }
figure.fig figcaption { font-size: 12.5px; color: var(--tertiary); margin-top: 0.6rem; text-align: center; }
.shot-sm { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---- Callouts ---- */
.callout { display: flex; gap: 0.75rem; border-radius: 12px; padding: 1rem 1.1rem; margin: 1.25rem 0; font-size: 14px; line-height: 1.85; border: 1px solid var(--border); background: var(--surface-warm); color: var(--muted); }
.callout .material-symbols-outlined { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.callout strong { display: block; color: var(--ink); margin-bottom: 0.15rem; }
.callout-note { background: #eef4f0; border-color: #cfe3d6; }
.callout-note .material-symbols-outlined { color: var(--secondary); }
.callout-role { background: #fff1ec; border-color: #f3d9d1; }
.callout-role .material-symbols-outlined { color: var(--primary-container); }
.callout-warn { background: #fff4ed; border-color: #f6d8c2; }
.callout-warn .material-symbols-outlined { color: #b5670c; }

/* ---- Role pills ---- */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 11.5px; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 9999px; letter-spacing: 0.02em; }
.pill-admin { background: #fdece9; color: #98382c; }
.pill-owner { background: #e7efe9; color: #3c5648; }
.pill-member { background: var(--surface-subtle); color: var(--muted); }

/* ---- Sidebar TOC ---- */
.toc a { display: block; font-size: 14px; color: var(--muted); padding: 0.4rem 0.75rem; border-radius: 8px; text-decoration: none; transition: background .15s, color .15s; }
.toc a:hover { background: var(--surface-warm); color: var(--ink); }
.toc a.active { background: #fff1ec; color: var(--primary); font-weight: 700; }
.toc a.disabled { color: #b6ada4; pointer-events: none; }
.toc .toc-group { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); padding: 1.1rem 0.75rem 0.35rem; }
.toc .soon { font-size: 10px; background: var(--surface-subtle); color: var(--tertiary); padding: 0.05rem 0.4rem; border-radius: 9999px; margin-left: 0.35rem; }

/* ---- Cards on the hub ---- */
.chapter-card { display: flex; flex-direction: column; gap: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; height: 100%; }
.chapter-card:hover { box-shadow: 0 12px 28px rgba(58,46,41,0.10); transform: translateY(-2px); border-color: #f0d7cf; }
.chapter-card.soon { opacity: 0.7; pointer-events: none; }

/* Mobile: hide sidebar */
@media (max-width: 1023px) { .toc-aside { display: none; } }
