/* 説明書のページ（2026-10-18 明るい業務向けのデザイン） */
.guide-hero { position: relative; padding: 72px 0 40px; text-align: center; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.guide-hero h1 {
  width: fit-content;
  max-width: var(--read);
  margin: 12px auto 16px;
  text-align: left;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}
.guide-hero h1 .accent { color: var(--brand); }
.guide-hero p {
  width: fit-content;
  max-width: var(--read);
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.guide-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 24px 0 96px; }
.guide-toc { position: sticky; top: 88px; align-self: start; padding: 18px 12px; max-height: calc(100vh - 120px); overflow-y: auto; }
.guide-toc h3 { font-size: 13px; font-weight: 800; line-height: 1.4; color: var(--ink); margin: 0 8px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.guide-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { position: relative; display: block; padding: 7px 10px 7px 38px; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink-2); transition: background .2s, color .2s; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 10px; top: 7px; font-size: 12px; font-weight: 800; line-height: 1.75; color: var(--brand); font-variant-numeric: tabular-nums; }
.guide-toc a:hover { color: var(--brand-d); background: var(--brand-l); }

.guide-body {
  min-width: 0;
  padding: 44px 48px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.guide-section { padding: 0; margin-bottom: 64px; scroll-margin-top: 88px; }
.guide-section:last-child { margin-bottom: 0; }
.guide-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.guide-section-num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--brand);
}
.guide-section h2 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; line-height: 1.4; color: var(--ink); }
.guide-section .lead { font-size: 16px; line-height: 1.95; color: var(--ink-2); margin-bottom: 22px; }

.guide-shot { margin: 28px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow-m); }
.guide-shot img { display: block; width: 100%; height: auto; background: #fff; }
.guide-shot figcaption { padding: 12px 18px; font-size: 14px; font-weight: 700; line-height: 1.75; color: var(--ink-2); border-top: 1px solid var(--line); }

.guide-steps { list-style: none; margin: 20px 0; padding: 0; counter-reset: gstep; display: grid; gap: 8px; }
.guide-steps li { counter-increment: gstep; position: relative; padding: 13px 16px 13px 56px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.guide-steps li::before { content: counter(gstep); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; background: var(--brand); }
.guide-steps li strong { color: var(--ink); }

.guide-note, .guide-warn { margin: 22px 0; padding: 16px 20px; border-radius: var(--r); font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.guide-note { background: var(--brand-l); border-left: 4px solid var(--brand); }
.guide-warn { background: var(--red-l); border-left: 4px solid var(--red); }
.guide-note::before, .guide-warn::before { display: inline-block; margin-right: 10px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .06em; vertical-align: 2px; color: #fff; }
.guide-note::before { content: "POINT"; background: var(--brand); }
.guide-warn::before { content: "注意"; background: var(--red); }

.guide-body h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.5; }
.guide-body p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 16px; }
.guide-body ul.bullet { list-style: none; margin: 12px 0 20px; padding: 0; }
.guide-body ul.bullet li { position: relative; padding: 5px 0 5px 20px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.guide-body ul.bullet li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 7px; height: 7px; border-radius: 1px; background: var(--brand); }
.guide-body a, .guide-note a, .guide-warn a { color: var(--brand-d); font-weight: 700; text-decoration: underline; }
.guide-body code { font-family: Consolas, Menlo, monospace; font-size: .92em; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.guide-text-red { color: var(--red); font-weight: 800; }
.guide-text-green { color: var(--green); font-weight: 800; }

@media (max-width: 1024px) {
  .guide-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 0 72px; }
  .guide-toc { position: static; max-height: none; }
}
@media (max-width: 768px) {
  .guide-hero { padding: 48px 0 28px; }
  .guide-hero p { font-size: 15px; }
  .guide-hero p br { display: none; }
  .guide-body { padding: 24px 16px; }
  .guide-section { margin-bottom: 48px; }
  .guide-steps li { padding: 12px 12px 12px 50px; font-size: 15px; }
  .guide-steps li::before { left: 10px; }
}
