/* Cubreco 操作マニュアル 共通スタイル（LPのデザインに合わせつつ、読みやすさを最優先） */
:root {
  --amber: #f5a80c;
  --amber-deep: #d97706;
  --amber-text: #b45309;
  --amber-bg: #fef3c7;
  --navy: #232a35;
  --ink: #202124;
  --muted: #5f6368;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #dadce0;
  --red: #e11d48;
  --green: #16a34a; --green-bg: #dcfce7; --green-text: #166534;
  --orange: #ea580c; --orange-bg: #ffedd5; --orange-text: #9a3412;
  --blue: #2563eb;  --blue-bg: #dbeafe;  --blue-text: #1e40af;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Segoe UI', Meiryo, sans-serif;
  --font-latin: 'Lexend', var(--font);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.9; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber-text); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; } /* LP（index.html）と同じ幅 */

/* ヘッダー（LPと共通の見た目） */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.header-logo img { height: 40px; width: auto; }
.header-nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 700; }
.header-nav a { color: var(--muted); text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-block; font-weight: 700; border-radius: 999px; text-align: center; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; border: 2px solid var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { color: var(--navy); background: #f4f5f7; }
.btn-login { padding: 9px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 18px; }

/* パンくず */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 8px; }

/* ページ先頭 */
.hero { padding: 36px 0 40px; background: linear-gradient(160deg, #fffdf3 0%, #fff8e3 55%, #fdefc8 100%); border-bottom: 1px solid var(--border); }
.role-badge { display: inline-block; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 6px 18px; margin-bottom: 14px; }
.role-badge.viewer { background: var(--green-bg); color: var(--green-text); }
.role-badge.leader { background: var(--orange-bg); color: var(--orange-text); }
.role-badge.admin  { background: var(--blue-bg);  color: var(--blue-text); }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.hero .lead { font-size: 17px; color: #454b54; max-width: 720px; }
.hero-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 目次 */
.toc { margin: 40px 0 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.toc h2 { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.toc li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.toc li a:hover { border-color: var(--amber); background: #fffbeb; }
.toc .num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-latin); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* 章 */
.chapter { padding: 56px 0 8px; border-top: 1px solid var(--border); margin-top: 40px; }
.chapter:first-of-type { border-top: 0; margin-top: 0; }
.chapter h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 3.5vw, 30px); font-weight: 900; line-height: 1.4; margin-bottom: 18px; }
.chapter h2 .num { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-latin); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chapter h3 { font-size: 21px; font-weight: 700; margin: 36px 0 12px; padding-left: 14px; border-left: 6px solid var(--amber); line-height: 1.5; }
.chapter p { margin-bottom: 14px; }
.chapter ul, .chapter ol.plain { padding-left: 1.4em; margin-bottom: 14px; }
.chapter li { margin-bottom: 6px; }

/* できること */
.cando { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 18px 24px; margin: 8px 0 24px; }
.cando h4 { font-size: 16px; font-weight: 700; color: var(--amber-text); margin-bottom: 8px; }
.cando ul { list-style: none; padding: 0; margin: 0; }
.cando li { padding-left: 30px; position: relative; margin-bottom: 6px; }
.cando li::before { content: '✓'; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green-text); font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* 手順 */
.steps { list-style: none; counter-reset: st; margin: 16px 0 24px; }
.steps > li { position: relative; padding: 0 0 28px 60px; }
.steps > li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; background: var(--amber); color: #fff; font-family: var(--font-latin); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -4px rgba(217,119,6,.6); }
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: #fde68a; }
.steps .st-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.steps p { font-size: 16.5px; }

/* 画面写真 */
figure.shot { margin: 14px 0 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
figure.shot img { width: 100%; }
figure.shot figcaption { font-size: 15px; color: var(--ink); padding: 12px 16px; border-top: 1px solid var(--border); background: #fafafa; line-height: 1.7; }
figure.shot.narrow { max-width: 560px; }
figure.shot.phone { max-width: 300px; }
.shots-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.shots-row figure.shot { flex: 1 1 280px; margin-top: 14px; }

/* 画像内の番号と対応する赤い丸（文字の中央に揃える） */
.n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-family: Arial, sans-serif; font-weight: 900; font-size: 15px; margin: 0 4px 0 2px; vertical-align: middle; position: relative; top: -2px; line-height: 1; }
figure.shot figcaption { line-height: 2; }

/* 説明欄の番号リスト（1項目1行） */
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legend li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.legend li .n { flex: 0 0 26px; margin: 1px 0 0; top: 0; }
.legend li > span:last-child { flex: 1; }

/* ボタン名・画面名の表記 */
.ui { display: inline-block; font-weight: 700; background: #eef2ff; color: #1e3a8a; border: 1px solid #c7d2fe; border-radius: 6px; padding: 0 8px; font-size: .95em; white-space: nowrap; }
.menu { display: inline-block; font-weight: 700; background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 8px; font-size: .95em; white-space: nowrap; }

/* 補足ボックス */
.callout { border-radius: var(--radius); padding: 16px 20px 16px 56px; margin: 18px 0 22px; position: relative; font-size: 16px; }
.callout::before { position: absolute; left: 18px; top: 14px; font-size: 22px; line-height: 1.4; }
.callout.hint { background: #eff6ff; border: 1px solid #bfdbfe; }
.callout.hint::before { content: '💡'; }
.callout.warn { background: #fff7ed; border: 1px solid #fdba74; }
.callout.warn::before { content: '⚠️'; }
.callout.ok { background: var(--green-bg); border: 1px solid #86efac; }
.callout.ok::before { content: '✅'; }
.callout strong { color: var(--ink); }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15.5px; background: #fff; }
.tbl th, .tbl td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl th { background: var(--bg); font-weight: 700; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl-wrap { overflow-x: auto; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--amber-deep); font-weight: 900; }
.faq details[open] summary::after { content: '－'; }
.faq .answer { padding: 0 22px 18px; font-size: 16px; color: #3c4043; }

/* 困ったとき */
.help { margin: 48px 0 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.help h2 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.help p { font-size: 16px; }

/* 役割選択（入口ページ） */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 12px; }
.role-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.role-card:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--ink); }
.role-card h2 { font-size: 21px; font-weight: 900; margin: 10px 0 8px; line-height: 1.4; }
.role-card p { font-size: 15.5px; color: var(--muted); flex: 1; }
.role-card .go { margin-top: 16px; font-weight: 700; color: var(--amber-text); }
.which { margin-top: 40px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.which h2 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.which ul { padding-left: 1.3em; }

/* ページ末尾ナビ */
.pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 15px; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; box-shadow: var(--shadow); opacity: .9; z-index: 40; }

/* フッター（LPと共通） */
.footer { background: var(--navy); color: #cfd4db; padding: 40px 0 32px; margin-top: 64px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-latin); font-weight: 700; font-size: 20px; color: #fff; }
.footer-note { font-size: 12.5px; line-height: 1.9; }
.footer-links { display: flex; gap: 20px; font-size: 13px; font-weight: 700; }
.footer-links a { color: #cfd4db; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12px; letter-spacing: .06em; color: #9aa1ab; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-nav { display: none; }
  .hero { padding: 26px 0 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .toc ol { grid-template-columns: 1fr; }
  .toc { padding: 18px 18px; }
  .chapter { padding-top: 40px; }
  .chapter h2 { font-size: 23px; }
  .chapter h2 .num { flex-basis: 38px; width: 38px; height: 38px; font-size: 17px; }
  .steps > li { padding-left: 52px; }
  .steps > li::before { width: 38px; height: 38px; font-size: 18px; }
  .steps > li:not(:last-child)::after { left: 18px; }
  .roles { grid-template-columns: 1fr; }
  .callout { padding-left: 50px; }
  .totop { width: 46px; height: 46px; }
}
@media print {
  .header, .totop, .pager, .footer-links, .hero-cta { display: none !important; }
  body { font-size: 13px; }
  figure.shot { break-inside: avoid; box-shadow: none; }
  .chapter { break-before: auto; }
  a { color: inherit; text-decoration: none; }
}
