/* ==========================================================
   KotaMi 操作マニュアル 共通スタイル
   配色はアプリ本体の kotami テーマに合わせている
   ========================================================== */

:root {
  --color: #212529;
  --color-muted: rgba(0, 0, 0, .6);
  --color-kotami: #007bc7;
  --color-kotami-hover: #5fafe4;
  --color-kotami-dark: #0069a1;
  --color-anchor: #0069a1;
  --bg: #f4f8fb;
  --bg-card: #fff;
  --bg-soft: rgba(0, 123, 199, .08);
  --bg-soft-hover: rgba(0, 123, 199, .16);
  --bg-active: rgba(0, 123, 199, .16);
  --mark: #4f8f0f;
  --bg-note: #fff8e6;
  --bg-warn: #fdecec;
  --border: rgba(0, 0, 0, .125);
  --border-th: #dee2e6;
  --header-bg: linear-gradient(90deg, rgba(88,203,232,1) 0%, rgba(52,129,188,1) 53%, rgba(17,57,145,1) 100%);
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --header-h: 56px;
  --sidebar-w: 272px;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--color);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--color-anchor); }
a:hover { color: var(--color-kotami-hover); }
img { max-width: 100%; height: auto; }
code, kbd {
  font-family: Consolas, "Courier New", monospace;
  font-size: .9em;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: .05em .35em;
}

.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 40px; height: 40px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--header-bg);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: #fff; }
/* ロゴは青・緑なので、青いヘッダー上で埋もれないよう白いプレートに載せる */
.brand { align-items: center; }
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
}
.brand-logo { display: block; height: 100%; width: auto; }
.brand-name { display: none; font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.brand.no-logo .brand-logo-wrap { display: none; }
.brand.no-logo .brand-name { display: inline; }
.brand-sub {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, .6);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .15); }

/* ヘッダーの検索欄（右端） */
.header-search {
  display: flex;
  align-items: center;
  flex: none;
  height: 36px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.header-search:focus-within { border-color: #fff; background: rgba(255, 255, 255, .28); }
.header-search-input {
  width: 220px;
  height: 100%;
  padding: 0 4px 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.header-search-input::placeholder { color: rgba(255, 255, 255, .85); }
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.header-search-btn:hover { background: rgba(255, 255, 255, .15); }
body.is-search .header-search { display: none; }

/* ---------- レイアウト ---------- */
.layout {
  display: flex;
  align-items: flex-start;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ---------- サイドバー ---------- */
.sidebar {
  position: sticky;
  top: var(--header-h);
  flex: none;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 16px 12px 32px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  font-size: 14px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar ul ul { margin: 2px 0 6px; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--color);
  text-decoration: none;
  line-height: 1.5;
}
.sidebar a:hover { background: var(--bg-soft); color: var(--color); }
.sidebar .depth-0 > a { font-weight: 600; }
.sidebar .depth-0 > a .icon { color: var(--color-kotami); }
.sidebar .depth-1 > a { padding-left: 24px; }
.sidebar .depth-2 > a { padding-left: 44px; font-size: 13px; }
.sidebar .bullet {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-kotami-hover);
}
.sidebar .open > a { color: var(--color-kotami-dark); }
.sidebar .active > a { background: var(--bg-active); color: var(--color-kotami-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--color-kotami); }
.sidebar .active > a .bullet { background: var(--color-kotami); }
.sidebar a { -webkit-tap-highlight-color: rgba(0, 123, 199, .2); }

/* ---------- メイン ---------- */
.main {
  flex: 1;
  min-width: 0;
  max-width: 1040px;
  padding: 16px 32px 48px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-kotami); text-decoration: underline; }

.doc {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 40px 40px;
  margin: 16px 0;
}

.page-heading { margin-bottom: 24px; }
.page-group { margin: 0; font-size: 13px; color: var(--color-muted); }
.page-heading h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
}
.page-no { color: var(--color-kotami); }

.doc h2 {
  margin: 40px 0 12px;
  padding: 4px 0 4px 12px;
  border-left: 4px solid var(--color-kotami);
  font-size: 20px;
  line-height: 1.5;
}
.doc h3 {
  margin: 28px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.doc h4 { margin: 20px 0 6px; font-size: 15px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.6em; }
.doc li + li { margin-top: 2px; }
.lead { font-size: 16px; }

/* ---------- 前後ナビ ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pager-link, .pager-spacer { flex: 0 1 300px; min-width: 0; }
.pager-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--color-kotami-dark);
  text-decoration: none;
  line-height: 1.4;
}
.pager-link:hover { background: var(--bg-soft-hover); color: var(--color-kotami-dark); }
.pager-arrow { grid-row: 1 / 3; font-size: 20px; }
.pager-group { font-size: 12px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager-title { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pager-next { text-align: right; grid-template-columns: 1fr auto; }
.pager-next .pager-arrow { grid-column: 2; grid-row: 1 / 3; }
.pager-next .pager-group, .pager-next .pager-title { grid-column: 1; }

/* ---------- 章ページのリンクカード ---------- */
.child-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.child-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--color);
  text-decoration: none;
  line-height: 1.5;
}
.child-card::before { content: "›"; color: var(--color-kotami); font-weight: 700; }
.child-card:hover { border-color: var(--color-kotami); background: var(--bg-soft); color: var(--color); }
.child-no { flex: none; min-width: 2.6em; font-size: 12px; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.child-body { display: flex; flex-direction: column; min-width: 0; }
.child-title { font-weight: 600; }
.child-desc { font-size: 12.5px; color: var(--color-muted); line-height: 1.5; margin-top: 2px; }

/* ---------- 目次 ---------- */
.toc ul { list-style: none; padding-left: 0; margin: 0; }
.toc > ul > li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.toc > ul > li > a { font-weight: 700; font-size: 16px; }
.toc ul ul { padding-left: 1.8em; margin-top: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-no {
  display: inline-block;
  min-width: 3.6em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.doc th, .doc td {
  padding: 8px 12px;
  border: 1px solid var(--border-th);
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
.doc td.no, .doc th.no { width: 3em; text-align: center; white-space: nowrap; }
.doc td.name { white-space: nowrap; font-weight: 600; }

/* 画面項目の番号（画面イメージ内の番号と対応させる） */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 画面イメージ ---------- */
figure.screen {
  margin: 12px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
figure.screen img { display: block; width: 100%; }

/* 画像の上の番号マーク（表の .num と同じ色・形。位置は manual.js が % で指定） */
.screen-frame { position: relative; }
.screen-frame .mark {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--mark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  pointer-events: none;
}
@media (max-width: 560px) {
  .screen-frame .mark { min-width: 18px; height: 18px; font-size: 10px; border-width: 1.5px; padding: 0 3px; }
}
figure.screen figcaption {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--color-muted);
}
.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 24px;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, transparent 10px, transparent 20px);
  color: var(--color-muted);
  text-align: center;
}
.screen-placeholder code { background: var(--bg-card); overflow-wrap: anywhere; }

/* ---------- 注記 ---------- */
.note, .warn, .point {
  margin: 12px 0 16px;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid;
}
.note { background: var(--bg-note); border-color: #e0a800; }
.warn { background: var(--bg-warn); border-color: #d9534f; }
.point { background: var(--bg-soft); border-color: var(--color-kotami); }
.note > :last-child, .warn > :last-child, .point > :last-child { margin-bottom: 0; }
.note-title { display: block; font-weight: 700; margin-bottom: 2px; }

/* 利用条件のバッジ */
.badge {
  display: inline-block;
  padding: 0 8px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  border: 1px solid var(--color-kotami);
  color: var(--color-kotami-dark);
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
}
.badge.admin { border-color: #c77700; color: #a86400; }

/* 画面上のボタン名などの表記 */
.ui {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-size: .92em;
  line-height: 1.6;
  white-space: nowrap;
}

/* 操作手順 */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
  counter-increment: step;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft-hover);
  color: var(--color-kotami-dark);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 26px;
}

/* 業務フロー図 */
.flow-diagram { margin: 16px 0 24px; overflow-x: auto; }
.flow-diagram svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }

.broken-link { color: #d9534f; text-decoration: line-through; }

/* 検索ページ（search.html） */
.search-form { display: flex; gap: 8px; margin: 0 0 20px; }
.search-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-th);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--color);
  font: inherit;
}
.search-input:focus { outline: 2px solid var(--color-kotami); outline-offset: -1px; }
.search-btn {
  flex: none;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-kotami);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search-btn:hover { background: var(--color-kotami-dark); }
.search-msg { color: var(--color-muted); }
.search-count { margin: 0 0 8px; font-weight: 600; }
.doc .search-list { margin: 0; padding: 0; list-style: none; }
.doc .search-list li { margin: 0; border-top: 1px solid var(--border); }
.search-hit { display: block; padding: 12px 6px; color: var(--color); text-decoration: none; }
.search-hit:hover { background: var(--bg-soft); color: var(--color); }
.search-hit-title { display: block; color: var(--color-anchor); font-size: 16px; font-weight: 700; }
.search-hit-no { margin-right: .4em; color: var(--color-muted); font-weight: 600; }
.search-hit-group { display: block; color: var(--color-muted); font-size: 12px; }
.search-hit-text { display: block; margin-top: 2px; font-size: 14px; }
.search mark { padding: 0 1px; border-radius: 2px; background: #fff1a8; color: inherit; }

/* ユーザーサイト用の表示（?site=user）：管理者サイト向けの記述を隠す。data-site="user" はユーザーサイト用の表示だけに出す */
body.site-user [data-site="admin"] { display: none !important; }
body:not(.site-user) [data-site="user"] { display: none !important; }
/* ユーザーサイト用の表示で除外したページへのリンク（文字だけ残す） */
a.unlinked { color: inherit; text-decoration: none; cursor: text; }

/* 小さく見せたい画面イメージ（モーダル等）: <figure class="screen half"> */
figure.screen.half { max-width: 50%; }
@media (max-width: 560px) { figure.screen.half { max-width: none; } }

/* 小さい画面イメージ（ダイアログ等）を横に並べる: <div class="screen-row"><figure class="screen">…</div> */
.screen-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
  margin: 12px 0 20px;
}
.screen-row figure.screen { margin: 0; }

/* ---------- ページトップボタン（下にスクロールすると右下に表示） ---------- */
.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-kotami);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s;
}
.page-top.show { opacity: 1; visibility: visible; transform: none; }
.page-top:hover { background: var(--color-kotami-dark); }
.page-top:focus-visible { outline: 3px solid var(--color-kotami-hover); outline-offset: 2px; }
.page-top svg { width: 22px; height: 22px; margin-bottom: 1px; }
@media (max-width: 560px) {
  .page-top { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-top { transition: none; }
}

/* ---------- スマホ ---------- */
.backdrop { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    z-index: 25;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 20;
    background: rgba(0, 0, 0, .35);
  }
  .header-search-input { width: 150px; }
  .main { padding: 12px 16px 32px; }
  .doc { padding: 20px 16px 24px; }
  .page-heading h1 { font-size: 22px; }
  .doc h2 { font-size: 18px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 18px; }
  .brand-logo-wrap { height: 32px; padding: 5px 9px; }
  .brand-sub { height: 30px; padding-left: 10px; font-size: 16px; letter-spacing: .06em; min-width: 0; overflow: hidden; }
  /* 狭い画面では検索欄を虫眼鏡ボタンだけにする（押すと検索ページが開く） */
  .header-search { border-color: transparent; background: transparent; }
  .header-search-input { display: none; }
  .pager { gap: 8px; }
  .pager-link { padding: 8px 10px; column-gap: 8px; }
  .pager-title { font-size: 14px; }
  .child-cards { grid-template-columns: 1fr; }
  /* 表：項目名やボタン名が長いと説明列が細くなるので折り返しを許可 */
  .doc td.name, .doc td .ui { white-space: normal; }
  .doc th, .doc td { padding: 6px 8px; }
  .screen-frame .mark { min-width: 16px; height: 16px; font-size: 9px; }
}

/* 表紙：サイドバーとメニューボタンを出さず、本文を中央に置く */
body.is-cover .sidebar, body.is-cover .nav-toggle { display: none !important; }
body.is-cover .main { margin: 0 auto; }

/* サイドバーを開いている間は後ろの本文をスクロールさせない */
body.nav-open { overflow: hidden; }
@media (min-width: 901px) { body.nav-open { overflow: auto; } }

@media print {
  @page { margin: 15mm; }
  .site-header, .sidebar, .pager, .breadcrumb, .backdrop, .page-top { display: none !important; }
  .layout { padding-top: 0; }
  .main { max-width: none; padding: 0; }
  .doc { box-shadow: none; padding: 0; }
  /* 番号マーク・注記・表見出しの背景色を印刷でも残す */
  .num, .screen-frame .mark, ol.steps > li::before, .note, .warn, .point, .doc th, .badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* 画像・注記・表の行をページの途中で分割しない */
  figure.screen, .screen-row, .note, .warn, .point, tr, .flow-diagram { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .table-wrap { overflow: visible; }
}

/* ---------- 画面切り替えのアニメーション ----------
   ヘッダーとサイドバーはJSで組み立てるため、読み込み直後から同じ位置に下地を描いておき、
   切り替えの瞬間に画面が真っ白にならないようにする。本文だけを静かにフェードインさせる。 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--header-bg);
  z-index: 29;
}
@media (min-width: 901px) {
  body:not([data-page="cover"]) {
    background: linear-gradient(to right, var(--bg-card) var(--sidebar-w), var(--border) var(--sidebar-w), var(--border) calc(var(--sidebar-w) + 1px), var(--bg) calc(var(--sidebar-w) + 1px));
  }
}
/* JSでの組み立てが終わるまで本文を隠す（組み立て前の崩れた表示を見せない） */
body:not(.js-ready) main { opacity: 0; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.main { animation: page-in .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .main { animation: none; } }
@media print {
  body::before { display: none; }
  .main { animation: none; }
}

/* ---------- 表紙（index.html） ---------- */
/* 表紙専用のスタイル（白背景のシンプルな表紙） */
.cover {
  position: relative;
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 56px;
  overflow: hidden;
}
.cover::before {
  /* 上端にヘッダーと同じ青のグラデーションの細い帯 */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--header-bg);
}
.cover-logo { width: min(360px, 80%); height: auto; }
.doc.cover .cover-title {
  margin: 28px 0 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  color: var(--color);
}
.doc.cover .cover-sub {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--color-muted);
  letter-spacing: .04em;
}
.cover-line {
  width: 64px;
  height: 3px;
  margin: 28px auto 0;
  border-radius: 2px;
  background: var(--color-kotami);
}
.doc.cover .cover-version {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--color);
  letter-spacing: .06em;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--color-kotami);
  border-radius: 8px;
  background: #fff;
  color: var(--color-kotami-dark);
  font-weight: 700;
  text-decoration: none;
}
.cover-btn:hover { background: var(--bg-soft); color: var(--color-kotami-dark); }
.cover-btn.primary { background: var(--color-kotami); border-color: var(--color-kotami); color: #fff; }
.cover-btn.primary:hover { background: var(--color-kotami-dark); color: #fff; }
.doc.cover .cover-publisher {
  margin: 56px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}
@media (max-width: 560px) {
  .cover { padding: 48px 8px 40px; min-height: auto; }
  .doc.cover .cover-title { font-size: 28px; letter-spacing: .08em; }
  .cover-btn { width: 100%; }
}

/* ---------- 機能一覧（features.html） ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--color);
  text-decoration: none;
  line-height: 1.6;
}
.feature-card:hover {
  border-color: var(--color-kotami);
  background: var(--bg-soft);
  color: var(--color);
}
.feature-card .fc-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  color: var(--color-kotami);
}
.feature-card .fc-title::after {
  content: "›";
  margin-left: auto;
  font-weight: 700;
}
.feature-card .fc-desc {
  font-size: 13px;
  color: var(--color-muted);
}
.fc-tag {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--color-muted);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-muted);
}
.start-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.start-cards .feature-card { background: var(--bg-soft); border-color: transparent; }
.start-cards .feature-card:hover { border-color: var(--color-kotami); }

/* ---------- 業務フロー図（SVG）の配色 ----------
   ページ内に style 属性を書かず、ここでまとめて指定する（CSP で style 属性を禁止しても表示が崩れないように） */
.flow-diagram .fl-1 { fill:var(--color-kotami); }
.flow-diagram .fl-2 { fill:var(--color-muted); }
.flow-diagram .fl-3 { fill:var(--bg-soft); stroke:var(--border); }
.flow-diagram .fl-4 { fill:var(--color); }
.flow-diagram .fl-5 { fill:var(--bg-card); stroke:var(--color-kotami); }
.flow-diagram .fl-6 { fill:var(--bg-card); stroke:var(--color-kotami); stroke-dasharray:5 3; }
.flow-diagram .fl-7 { fill:var(--bg-card); stroke:var(--color-kotami); stroke-width:2; }
.flow-diagram .fl-8 { fill:var(--color-kotami); stroke:var(--color-kotami); }
.flow-diagram .fl-9 { fill:var(--bg-card); }
.flow-diagram .fl-10 { stroke:var(--color-kotami); stroke-width:1.5; }
.flow-diagram .fl-11 { fill:none; stroke:var(--color-muted); stroke-width:1.5; stroke-dasharray:5 3; }
.flow-diagram .fl-12 { fill:none; stroke:var(--color-kotami); stroke-width:1.5; }
