.g-wrap { max-width:900px; margin:0 auto; padding:24px 16px 64px; }

/* ヒーロー */
.g-hero { margin-bottom:32px; }
.g-hero h1 { font-size:22px; font-weight:800; color:#111827; margin:0 0 6px; }
.g-hero p  { font-size:13px; color:#6b7280; margin:0; }

.g-hero-admin {
  padding:24px; background:linear-gradient(135deg,#1e3a5f,#0f172a);
  border-radius:12px; color:#fff; margin-bottom:32px;
}
.g-hero-admin h1 { color:#fff; }
.g-hero-admin p  { color:#94a3b8; }

.g-hero-badge {
  display:inline-block; background:#ef4444; color:#fff;
  font-size:11px; font-weight:700; border-radius:4px;
  padding:2px 8px; margin-bottom:8px;
}

/* 概要カード */
.overview-card {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  padding:24px; margin-bottom:32px;
}
.overview-card h2 {
  font-size:14px; font-weight:700; color:#374151; margin:0 0 16px;
  padding-bottom:10px; border-bottom:1px solid #f3f4f6;
}
.overview-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px;
}
.overview-item {
  display:flex; gap:12px; align-items:flex-start;
  background:#f9fafb; border-radius:8px; padding:12px;
}
.ov-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.ov-name  { font-size:13px; font-weight:700; color:#111827; margin:0 0 2px; }
.ov-desc  { font-size:11px; color:#6b7280; margin:0; line-height:1.4; }

/* 目次 */
.g-toc { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:32px; }
.g-toc a {
  background:#fff; border:1px solid #e5e7eb; border-radius:20px;
  padding:4px 13px; font-size:12px; font-weight:600; color:#374151;
  text-decoration:none; transition:border-color .15s;
}
.g-toc a:hover { border-color:#6366f1; color:#4f46e5; text-decoration:none; }
.g-toc a.t-gold { background:#fef3c7; border-color:#fcd34d; color:#92400e; }

/* セクション */
.g-section {
  background:#fff; border:1px solid #e5e7eb;
  border-radius:12px; margin-bottom:24px; overflow:hidden;
}
.g-section.s-gold { border-color:#fcd34d; }
.g-section.g-section-ext { border-color:#0ea5e9; }

.g-head {
  display:flex; align-items:center; gap:12px;
  padding:18px 22px; border-bottom:1px solid #f3f4f6;
}
.s-gold .g-head { background:#fffbeb; border-bottom-color:#fef3c7; }
.g-head-ext { background:#f0f9ff; border-bottom-color:#bae6fd; }

.g-icon {
  width:42px; height:42px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}
.g-title { font-size:16px; font-weight:800; color:#111827; margin:0 0 2px; }
.g-title-ext { font-size:18px; font-weight:800; color:#0369a1; margin:0 0 2px; }
.g-sub   { font-size:11px; color:#9ca3af; margin:0; }
.g-body  { padding:18px 22px; }

/* 設定カードグリッド */
.setting-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:10px; margin-bottom:18px;
}
.setting-card {
  background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px;
  padding:14px 10px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor:default;
}
.setting-card .sc-icon { font-size:22px; line-height:1; }
.setting-card .sc-name { font-size:12px; font-weight:700; color:#374151; }
.setting-card .sc-note { font-size:10px; color:#9ca3af; line-height:1.4; }
.setting-card .sc-affects {
  font-size:10px; color:#6366f1; font-weight:600;
  background:#eef2ff; border-radius:4px; padding:2px 6px;
  margin-top:2px; line-height:1.5;
}
.setting-card .sc-affects b { color:#4f46e5; }

/* フロー */
.flow {
  display:flex; align-items:center; flex-wrap:wrap;
  gap:6px; padding:14px 16px; background:#f9fafb;
  border-radius:8px; border:1px solid #e5e7eb; margin-bottom:16px;
}
.flow-label { font-size:11px; color:#9ca3af; margin-right:4px; font-weight:600; }
.fb {
  border-radius:7px; padding:7px 12px; font-size:12px;
  font-weight:600; text-align:center; white-space:nowrap;
}
.fb-user  { background:#e0f2fe; border:1.5px solid #7dd3fc; color:#0369a1; }
.fb-wait  { background:#fef3c7; border:1.5px solid #fcd34d; color:#92400e; }
.fb-done  { background:#dcfce7; border:1.5px solid #86efac; color:#166534; }
.fb-admin { background:#ede9fe; border:1.5px solid #c4b5fd; color:#5b21b6; }
.fb-warn  { background:#fef3c7; border:1.5px solid #fcd34d; color:#92400e; }
.fa { color:#9ca3af; font-size:16px; font-weight:700; }
.fa-me { font-size:10px; font-weight:700; color:#6366f1; margin-top:2px; }

/* アクションリスト */
.action-list { list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:8px; }
.action-list li {
  display:flex; gap:10px; align-items:flex-start;
  font-size:13px; color:#374151; line-height:1.55;
}
.action-list li::before { content:'▸'; color:#6366f1; font-size:11px; margin-top:2px; flex-shrink:0; }
.s-gold .action-list li::before { color:#f59e0b; }
.action-list li strong { color:#111827; }
.action-list li code {
  font-size:11px; background:#f3f4f6; border-radius:4px;
  padding:1px 5px; color:#374151; font-family:monospace;
}

/* ヒント */
.tip {
  background:#f8fafc; border-left:3px solid #6366f1;
  border-radius:0 6px 6px 0; padding:8px 12px; margin-bottom:16px;
  font-size:12px; color:#4b5563; line-height:1.6;
}
.tip p { margin:0; }
.tip p + p { margin-top:4px; }
.s-gold .tip { border-left-color:#f59e0b; }

/* リンクボタン */
.g-links { display:flex; flex-wrap:wrap; gap:8px; }
.g-btn {
  display:inline-flex; align-items:center; gap:5px;
  border-radius:6px; padding:6px 14px;
  font-size:12px; font-weight:600; text-decoration:none; transition:filter .15s;
}
.g-btn:hover { filter:brightness(.92); text-decoration:none; }
.g-btn-primary { background:#6366f1; color:#fff; }
.g-btn-amber   { background:#f59e0b; color:#fff; }
.g-btn-ghost   { background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; }

/* 見出し */
.sub-label {
  font-size:11px; font-weight:700; letter-spacing:.07em;
  color:#9ca3af; text-transform:uppercase; margin:14px 0 8px;
}

/* ─ ガイドタブ ─ */
.g-tab-row {
  display: flex; gap: 0; margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}
.g-tab {
  padding: 7px 20px; font-size: 12px; font-weight: 700;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; color: #9ca3af; margin-bottom: -1px;
  transition: color .15s, border-color .15s; border-radius: 0;
}
.g-tab.active { color: #6366f1; border-bottom-color: #6366f1; }
.g-tab:hover:not(.active) { color: #374151; }

/* ── 機能概要ダイアログ ── */
#guide-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(680px, 95vw);
  max-height: 82vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
#guide-dialog[open] {
  display: flex;
  flex-direction: column;
}
#guide-dialog::backdrop { background: rgba(0,0,0,.45); }
.guide-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #fff;
}
.guide-dialog-title { font-size: 14px; font-weight: 700; color: #111827; }
.guide-dialog-close {
  background: none; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: #6b7280; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #e5e7eb; line-height: 1;
}
.guide-dialog-close:hover { background: #f3f4f6; }
.guide-dialog-body {
  overflow-y: auto; padding: 16px 20px 24px; flex: 1; background: #f9fafb;
}
.guide-dialog-body .g-section { margin-bottom: 0; }
.guide-dialog-loading {
  text-align: center; padding: 48px; color: #9ca3af; font-size: 13px;
}
