/* ITADAKI-V 操作マニュアル 共通スタイル（LP と同じ配色。読みやすさを最優先。DADS: Noto Sans JP・本文16px以上・余白8px単位） */
:root {
  --navy: #064583; --navy-deep: #03306a; --navy-bg: #e8f1fe;
  --ink: #1a1a1a; --muted: #666666; --bg: #f2f2f2; --surface: #fff; --border: #cccccc; --line: #e6e6e6;
  --green: #259d63; --green-text: #197a4b; --green-bg: #e6f5ec;
  --yellow: #ffd43d; --yellow-text: #7a5e00; --yellow-bg: #fff6d6;
  --orange: #fb5b01; --orange-text: #b33f00; --orange-bg: #ffe9dc;
  --red: #ec0000; --red-text: #ce0000; --red-bg: #fde7e7;
  --radius: 12px;
  --shadow: 0 2px 8px 1px rgba(0,0,0,.08), 0 1px 5px 0 rgba(0,0,0,.12);
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Segoe UI', Meiryo, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
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(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; background: rgba(3,34,73,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.header-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .06em; color: #fff; text-decoration: none; }
.header-logo img { height: 30px; width: auto; }
.header-nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.header-nav a { color: #c8d4e4; text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--yellow); }
.header .btn-login { background: var(--yellow); color: #1a1a1a; border: 0; border-radius: 4px; }
.header .btn-login:hover { background: #ffdd66; color: #1a1a1a; }
.btn { display: inline-block; font-weight: 700; border-radius: 8px; text-align: center; text-decoration: none; transition: transform .12s ease, background .12s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--navy-bg); color: var(--navy); }
.btn-login { padding: 10px 22px; font-size: 15px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* パンくず・先頭 */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 8px; }
.hero { padding: 0 0 40px; background: #f4f7fb; border-bottom: 4px solid var(--yellow); }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; line-height: 1.4; margin: 10px 0 14px; }
.hero .lead { font-size: 17px; color: #333; max-width: 760px; }
.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); }
.role-badge { display: inline-block; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 6px 18px; margin-top: 20px; }
.role-badge.viewer { background: var(--green-bg); color: var(--green-text); }
.role-badge.scout  { background: var(--yellow-bg); color: var(--yellow-text); }
.role-badge.leader { background: var(--orange-bg); color: var(--orange-text); }
.role-badge.admin  { background: var(--navy-bg); color: var(--navy); }

/* 一覧ページ */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.role-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.role-card:hover { border-color: var(--navy); color: var(--ink); }
.role-card h2 { font-size: 19px; font-weight: 700; margin: 10px 0 8px; }
.role-card p { font-size: 15px; color: var(--muted); }
.role-card .go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.role-card .role-badge { margin-top: 0; }
.which, .help { margin-top: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.which h2, .help h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.which ul { padding-left: 1.4em; }
.which li { margin-bottom: 6px; }

/* 目次 */
.toc { margin: 40px 0 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.toc h2 { font-size: 15px; 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(--navy); background: var(--navy-bg); }
.toc .num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* 章 */
.chapter { padding: 56px 0 8px; border-top: 1px solid var(--line); 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: 700; 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-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(--navy); line-height: 1.5; }
.chapter h4 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.chapter p { margin-bottom: 14px; }
.chapter ul { padding-left: 1.4em; margin-bottom: 14px; }
.chapter li { margin-bottom: 6px; }

/* できること */
.cando { background: var(--navy-bg); border: 1px solid #b9d0f5; border-radius: var(--radius); padding: 18px 24px; margin: 8px 0 24px; }
.cando h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 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: 700; 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(--navy); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: #b9d0f5; }
.steps .st-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.steps p { font-size: 16.5px; margin-bottom: 0; }

/* 画面写真 */
figure.shot { margin: 14px 0 20px; 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(--line); background: #fafafa; line-height: 1.8; }
figure.shot.narrow { max-width: 600px; }
figure.shot.phone { max-width: 320px; }
.n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; margin: 0 4px 0 2px; vertical-align: middle; position: relative; top: -2px; line-height: 1; }

/* ボタン名・画面名の表記 */
.ui { display: inline-block; font-weight: 700; background: var(--navy-bg); color: var(--navy); border: 1px solid #b9d0f5; 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.note { background: var(--bg); border: 1px solid var(--border); }
.callout.note::before { content: 'ℹ️'; }
.callout.warn { background: var(--yellow-bg); border: 1px solid #f3d36b; }
.callout.warn::before { content: '⚠️'; }
.callout.tip { background: var(--navy-bg); border: 1px solid #b9d0f5; }
.callout.tip::before { content: '💡'; }
.callout.ok { background: var(--green-bg); border: 1px solid #a9dcc0; }
.callout.ok::before { content: '✅'; }

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

/* フッター */
.footer { background: var(--navy-deep); color: #d6e0ee; padding: 44px 0 36px; margin-top: 72px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { font-weight: 700; font-size: 20px; color: #fff; }
.footer-note { font-size: 14px; line-height: 1.9; }
.footer-links { display: flex; gap: 20px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.footer-links a { color: #d6e0ee; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: 14px; color: #b7c6da; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .toc ol, .roles { grid-template-columns: 1fr; }
  .chapter { padding-top: 40px; }
  .steps > li { padding-left: 54px; }
  .hero-cta .btn { width: 100%; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
}
