/* 公開マニュアルサイトのスタイル。
   もとになる値は design/tokens/tokens.css（正本）。見た目は
   design/screens/ManualClip 公開サイト・ログイン モック.dc.html に合わせている。 */
:root {
  --brand-50: #eff6ff;
  --brand-200: #bfdbfe;
  --brand-500: #2563eb;
  --brand-700: #1e40af;
  --brand-800: #1e3a8a;
  --n-0: #ffffff;
  --n-25: #fcfcfd;
  --n-50: #f7f8fa;
  --n-100: #eef0f4;
  --n-200: #e2e5ea;
  --n-300: #cbd0d8;
  --n-400: #9aa2ae;
  --n-500: #6b7280;
  --n-600: #4b5563;
  --n-700: #374151;
  --n-800: #1f2937;
  --info: #1f6fd0;
  --info-bg: #eaf2fd;
  --highlight: #ef4444;

  --bg: var(--n-50);
  --surface: var(--n-0);
  --surface-sub: var(--n-25);
  --border: var(--n-200);
  --border-strong: var(--n-300);
  --text: var(--n-800);
  --text-sub: var(--n-500);
  --text-weak: var(--n-400);
  --accent: var(--brand-700);
  --accent-hover: var(--brand-800);
  --accent-vivid: var(--brand-500);
  --accent-bg: var(--brand-50);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-full: 999px;
  --shadow-2: 0 4px 12px rgba(17, 24, 39, .08);
  --shadow-3: 0 12px 32px rgba(17, 24, 39, .16);

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
          "Yu Gothic UI", Meiryo, sans-serif;
  --header-h: 57px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

a { color: var(--accent); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -2px 0 var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.site-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(220px, 50vw);
  object-fit: contain;
}
.nav-toggle {
  display: none;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.header-search { margin-left: auto; width: 300px; max-width: 45vw; }
.header-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--n-25);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent-vivid);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.search-form input:focus { outline: none; }

/* ---------- 全体レイアウト（左にカテゴリー、右に本文） ---------- */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
  background: var(--surface);
}
.side-nav {
  width: 232px;
  flex: none;
  border-right: 1px solid var(--border);
  background: transparent;
  padding: 20px 16px 32px;
  position: sticky;
  top: var(--header-h);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.main { flex: 1; min-width: 0; padding: 36px 40px 64px; }

/* ---------- カテゴリーのサイドバー ---------- */
.snav {
  display: block;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 13.5px;
  color: var(--text-sub);
  text-decoration: none;
  box-shadow: inset 2px 0 0 transparent;
}
.snav:hover { color: var(--text); background: transparent; }
.snav--on {
  color: var(--accent);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--accent);
}
.draft-mark {
  font-weight: 400;
  color: var(--text-weak);
  font-size: 0.92em;
}
.article-header h1 .draft-mark {
  font-size: 0.7em;
  vertical-align: middle;
}
.snav--home {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding: 6px 10px 12px;
  border-bottom: 1px solid var(--border);
}
.snav--home.snav--on { margin-bottom: 12px; }
.snav-group { margin-bottom: 2px; }
.snav-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.snav-group > summary::-webkit-details-marker { display: none; }
.snav--parent {
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 7px 4px 7px 10px;
  justify-content: space-between;
}
.snav--parent:hover { background: transparent; color: var(--text); }
.snav--parent .snav-label {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.snav--parent a.snav-label:hover { color: var(--accent); }
.snav--parent a.snav-label.is-current { color: var(--accent); font-weight: 700; }
.snav-group > summary.snav--parent::before { content: none; }
.snav-group > summary.snav--parent::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-right: 1.5px solid var(--n-400);
  border-bottom: 1.5px solid var(--n-400);
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.snav-group[open] > summary.snav--parent { background: transparent; }
.snav-group[open] > summary.snav--parent::after {
  transform: rotate(45deg);
  margin-top: -2px;
}
.snav-group--current > summary.snav--parent {
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.snav-children {
  margin: 0;
  padding: 0 0 6px 14px;
  border: 0;
}
.snav-children .snav {
  padding: 4px 8px;
  font-size: 13px;
  color: var(--text-weak);
}
.snav-children .snav:hover,
.snav-children .snav--on { color: var(--accent); }
.snav-children .snav-group { margin-bottom: 0; }
.snav-children .snav-group > summary.snav--parent {
  font-weight: 500;
  padding: 5px 4px 5px 8px;
}

/* ---------- ホーム ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero p { color: var(--text-sub); max-width: 38em; }
.search-form {
  display: flex;
  max-width: 520px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.search-form:focus-within {
  border-color: var(--accent-vivid);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.search-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.btn {
  height: 36px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--n-50); border-color: var(--border-strong); }
.btn--sm { height: 30px; padding: 0 12px; font-size: 13px; }
.search-form .btn {
  height: 42px;
  border: 0;
  border-radius: 0;
}

.snav--flow { font-weight: 600; }

/* ---------- ガイド（ホーム「はじめての方へ」・専用ページ） ---------- */
.home-guides-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.home-guides-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.home-guides-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
}
.flow-card-list {
  display: grid;
  gap: 16px;
  /* 最大4列。空き列は畳むので 2件なら半分ずつ全幅を使う */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc((100% - 48px) / 4))), 1fr));
}
.flow-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: inherit;
}
.flow-card:hover {
  border-color: var(--accent);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-3);
}
.flow-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.flow-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.flow-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}
.flow-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.flow-card-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
}
.flow-card-go::after { content: " →"; }
.flow-card:hover .flow-card-go { background: var(--accent-bg); }
.flow-card-icon { display: none; }
.flow-card .btn { flex: none; }
.card--flow { border-color: var(--accent-vivid); background: var(--accent-bg); }
.flow-chapter {
  font-size: 18px;
  margin: 28px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.flow-step { margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.flow-step .step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.flow-step .step-title h3 { font-size: 16px; margin: 0; }
.step-subheading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
  margin: 20px 0 8px;
}
.step + .step-subheading,
.step-title + * + .step-subheading { margin-top: 16px; }
.step-badge {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flow-source { font-size: 13px; color: var(--text-weak); margin-top: 8px; }

.home-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.home-section > h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.home-section-more {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.home-section-more:hover { text-decoration: underline; }
.card-grid {
  display: flex;
  flex-direction: column;
}
.card {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  text-decoration: none;
}
.card:first-child { border-top: 1px solid var(--border); }
.card:hover { color: var(--accent); }
.card b { font-size: 15px; font-weight: 600; }
.card-meta { font-size: 13px; color: var(--text-weak); flex: none; }
.card-desc { font-size: 14px; color: var(--text-sub); }
.card-thumb {
  display: block;
  height: 96px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--n-50);
  object-fit: cover;
  object-position: top center;
}
.card-thumb--none { background: repeating-linear-gradient(-45deg, var(--n-50) 0 8px, var(--n-100) 8px 16px); }
.article-faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-faq > h2 { font-size: 17px; }
.snav-group--faq { margin-top: 10px; }
.snav--faq,
.snav--extra {
  font-weight: 700;
}
.snav--faq,
.snav--extra-first {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.home-faq-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.home-faq-group > h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-sub);
}
.faq-list,
.article-list {
  border: 0;
  border-radius: 0;
}
.faq-list a[hidden] { display: none; }
.faq-list a,
.article-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.faq-list a:last-child,
.article-list a:last-child { border-bottom: 1px solid var(--border); }
.faq-list a:hover,
.article-list a:hover { background: transparent; color: var(--accent); }
.faq-list a::after,
.article-list a::after {
  content: "›";
  margin-left: auto;
  color: var(--n-300);
  font-size: 18px;
  line-height: 1;
}
.article-list-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.article-list-body b { font-size: 15px; font-weight: 600; }
.article-list-meta { font-size: 13px; color: var(--text-weak); }
.empty-home { color: var(--text-sub); }

.contact-panel {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 36px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.contact-panel h1,
.contact-panel h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.contact-panel p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 4px;
  font-size: 14px;
  color: var(--text);
}
.contact-company { font-weight: 700; }
.contact-phone a { color: inherit; text-decoration: none; }
.contact-phone a:hover { color: var(--accent); }
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  margin-top: 8px;
  text-decoration: none;
}
.contact-btn svg { flex: none; }

/* ---------- 記事ページ ---------- */
.article-layout { display: flex; align-items: flex-start; gap: 0; }
.article { flex: 1; min-width: 0; }
.breadcrumb { font-size: 13px; color: var(--text-weak); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 30px;
  line-height: 1.35;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.article-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-weak);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-tags .tag,
.article-meta .tag {
  background: var(--accent-bg);
  color: var(--brand-800);
  border-radius: var(--r-full);
  padding: 2px 10px;
  font-size: 12px;
}
.article-lead {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}

/* 手順は番号バッジつきで表示する */
.article-body { counter-reset: step; }
.step {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.step::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.article-body--no-numbers { counter-reset: none; }
.article-body--no-numbers .step { counter-increment: none; }
.article-body--no-numbers .step::before { content: none; display: none; }
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.article-body p { margin: 10px 0; color: var(--text); }
.article-body ul, .article-body ol { margin: 10px 0 10px 24px; color: var(--text); }
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 12px 0;
  cursor: zoom-in;
}
.article-body img.img-size--full { width: 100%; max-width: 100%; }
.article-body img.img-size--large { width: 75%; max-width: 100%; }
.article-body img.img-size--medium { width: 50%; max-width: 100%; }
.article-body img.img-size--small { width: 33%; max-width: 100%; }
.article-body code {
  background: var(--n-50);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 0.9em;
}
.article-body blockquote,
.section-note {
  border-left: 3px solid var(--info);
  background: var(--info-bg);
  padding: 12px 16px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 14px 0;
  font-size: 14px;
}
.article-body blockquote p, .section-note p { margin: 0; color: var(--n-700); }

.faq-question {
  font-size: 17px;
  margin: 28px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 記事の右側の目次 */
.toc {
  width: 200px;
  flex: none;
  border-left: 2px solid var(--brand-200);
  margin-left: 24px;
  padding: 4px 0 4px 16px;
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-title { font-size: 13px; color: var(--text-weak); }
.toc a { font-size: 13px; }
.toc a.on { background: var(--accent-bg); color: var(--brand-800); font-weight: 700; }
.toc .btn { margin-top: 12px; }

/* 画像拡大オーバーレイ */
.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 24px;
}
.img-overlay img { max-width: 95%; max-height: 95%; border-radius: var(--r-md); }

/* ---------- 検索結果 ---------- */
.search-count { font-size: 13px; color: var(--text-sub); margin: 16px 0 12px; }
.hits { display: flex; flex-direction: column; gap: 12px; }
.hit {
  display: block;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 4px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
.hit:hover { border-color: var(--border); background: transparent; }
.hit b { font-size: 15px; }
.hit-main { display: block; color: var(--text); text-decoration: none; }
.hit-meta { font-size: 13px; color: var(--text-weak); }
.hit-sub { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.hit-step { display: block; font-size: 13px; margin-top: 4px; }
.hit-sub mark { background: var(--accent-bg); color: var(--brand-800); }
.empty {
  border: 0;
  padding: 40px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.empty[hidden] { display: none; }
.empty h2 { font-size: 15px; }
.empty p { font-size: 14px; color: var(--text-sub); }

/* ---------- アクセス制御 ---------- */
.access-private {
  max-width: 36rem;
  margin: 48px auto;
  padding: 0 16px;
  text-align: center;
}
.access-private h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.access-private p {
  color: var(--text-sub);
  line-height: 1.7;
}
.access-gate {
  max-width: 24rem;
  margin: 64px auto;
  padding: 0 16px;
}
.access-gate h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.access-gate .lead {
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}
.access-gate label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.access-gate input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  font-size: 1rem;
  margin-bottom: 12px;
}
.access-gate button {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  background: var(--brand-700);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.access-gate .error {
  color: var(--danger, #b91c1c);
  font-size: 0.875rem;
  margin-top: 10px;
}

/* ---------- フッター ---------- */
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 20px 28px;
  color: var(--text-weak);
  font-size: 13px;
  line-height: 1.6;
  background: transparent;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}
.footer-title {
  font-weight: 600;
  color: var(--text-sub);
  margin: 0;
}
.site-footer p { margin: 0; }
.site-footer .generated-at { font-size: 11px; margin-top: 4px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
  margin-top: 8px;
}
.footer-nav a {
  color: var(--text-sub);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }
.footer-nav span { color: var(--n-300); }

/* ---------- 印刷（手順書として配れるように） ---------- */
@media print {
  .site-header, .side-nav, .toc, .site-footer, .search-form, .nav-toggle { display: none; }
  body { background: #fff; font-size: 12pt; }
  .layout { border: none; display: block; }
  .main { padding: 0; }
  .article-body img { border-color: #999; }
  .step { break-after: avoid; page-break-after: avoid; }
  .article-body img, .section-note { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .layout { display: block; border-left: none; border-right: none; }
  .side-nav {
    display: none;
    width: auto;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .side-nav.is-open { display: block; }
  .main { padding: 16px; }
  .article-layout { display: block; }
  .toc {
    width: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border);
    margin: 24px 0 0;
    padding: 16px 0 0;
  }
  .header-inner { padding: 10px 12px; gap: 10px; }
  .header-search { width: auto; flex: 1; max-width: none; min-width: 0; }
  .site-logo { height: 28px; max-width: 140px; }
  .article-body img { max-width: 100%; height: auto; }
}

@media (max-width: 520px) {
  .site-title { font-size: 15px; }
  .site-mark { width: 24px; height: 24px; font-size: 13px; }
  .header-search input { font-size: 16px; } /* iOSのズーム防止 */
  .hero h1,
  .article-header h1 { font-size: 24px; }
  .home-section > h2 { font-size: 18px; }
  .flow-card-list { grid-template-columns: 1fr; }
}
