/* 福祉爪ケア マニュアル共通スタイル */
:root {
  --brand: #ea580c;
  --brand-light: #fff7ed;
  --brand-dark: #c2410c;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 24px 20px 80px; }
header.top {
  background: var(--brand);
  color: #fff;
  padding: 24px 20px;
  border-bottom: 4px solid var(--brand-dark);
}
header.top .inner { max-width: 900px; margin: 0 auto; }
header.top h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
header.top .sub { font-size: 13px; opacity: 0.9; }
nav.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0 32px;
}
nav.toc h2 { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); font-weight: 600; }
nav.toc ol { margin: 0; padding-left: 22px; }
nav.toc ol li { padding: 3px 0; font-size: 14px; }
nav.toc a { color: var(--brand-dark); text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }
section.chapter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 20px 0;
}
section.chapter h2 {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--brand);
  color: var(--brand-dark);
  font-size: 20px;
}
section.chapter h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  color: var(--text);
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}
section.chapter p { margin: 8px 0; }
section.chapter ul, section.chapter ol { padding-left: 22px; margin: 8px 0; }
section.chapter li { margin: 4px 0; }
.note {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}
.warn {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
  color: #7f1d1d;
  font-size: 14px;
}
.tip {
  background: #ecfdf5;
  border-left: 4px solid var(--success);
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}
.kbd {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 12px;
  color: #374151;
}
.btn-sample {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}
.step {
  counter-reset: step;
  padding: 0;
  list-style: none;
}
.step li {
  counter-increment: step;
  padding: 8px 0 8px 40px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.step li:last-child { border-bottom: none; }
.step li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 26px; height: 26px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-weight: 700;
  font-size: 13px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 14px;
}
table th, table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table th { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 13px;
  color: #b45309;
}
footer.foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 0 10px;
}
@media (max-width: 600px) {
  section.chapter { padding: 16px; }
  header.top h1 { font-size: 18px; }
}

/* -----------------------------------
   msj-payment 風のドキュメントスタイル (事務局マニュアル用)
   ----------------------------------- */
.wrap-doc { max-width: 900px; margin: 0 auto; padding: 24px 20px 80px; }
.doc-meta { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.article-content { font-size: 15px; line-height: 1.85; color: var(--text); }
.article-content h1 {
  font-size: 30px; font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
.article-content h1:first-child { margin-top: 0; }
.article-content h2 {
  font-size: 22px; font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand);
  color: var(--brand-dark);
  scroll-margin-top: 5rem;
}
.article-content h3 {
  font-size: 17px; font-weight: 700;
  margin-top: 1.8rem; margin-bottom: 0.5rem;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  scroll-margin-top: 5rem;
}
.article-content h4 {
  font-size: 15px; font-weight: 700;
  margin-top: 1.2rem; margin-bottom: 0.4rem;
  color: var(--text);
}
.article-content p { margin: 0.75rem 0; }
.article-content ul, .article-content ol { padding-left: 1.8rem; margin: 0.5rem 0 0.9rem; }
.article-content li { margin: 3px 0; }
.article-content blockquote {
  margin: 1rem 0;
  padding: 12px 16px;
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  border-radius: 0 6px 6px 0;
  color: #7c2d12;
}
.article-content blockquote p { margin: 0.2rem 0; }
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.article-content .fig-caption {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 22px;
  font-style: normal;
}
.article-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.article-content table th { background: var(--brand-light); color: var(--brand-dark); }

