:root {
  --green: #06c755;
  --green-dark: #04a144;
  --green-pale: #e9f9ef;
  --ink: #1f2a24;
  --sub: #5b6660;
  --line: #dfe5e1;
  --bg: #f6f8f7;
  --card: #fff;
  --warn: #fff7e0;
  --warn-line: #f0d48a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.75;
}
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 760px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand small { display: block; font-weight: 400; color: var(--sub); font-size: 12px; line-height: 1.2; }
.brand span { line-height: 1.2; }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.crumb { font-size: 14px; color: var(--sub); margin: 0 0 12px; }
.crumb a { color: var(--sub); }

h1 { font-size: 26px; line-height: 1.4; margin: 6px 0 10px; }
h2 { font-size: 21px; line-height: 1.45; margin: 0 0 6px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.lead { color: var(--sub); margin: 0 0 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 0 0 18px;
}

/* マニュアル一覧 */
.group-title { font-size: 15px; color: var(--sub); font-weight: 700; margin: 26px 0 10px; letter-spacing: .04em; }
.manual-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.manual-item a {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.manual-item a:hover, .manual-item a:focus-visible { border-color: var(--green); }
.manual-item .ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--green-pale);
  color: var(--green-dark); display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.manual-item .t { font-weight: 700; display: block; line-height: 1.5; }
.manual-item .d { font-size: 14px; color: var(--sub); display: block; line-height: 1.6; margin-top: 2px; }
.manual-item .arrow { margin-left: auto; color: var(--sub); font-size: 22px; }

/* マニュアル本文 */
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.chip b { color: var(--green-dark); margin-right: 4px; }

.quick {
  background: var(--green-pale); border: 2px solid var(--green); border-radius: var(--radius);
  padding: 18px; margin: 0 0 18px;
}
.quick h2 { font-size: 18px; }
.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 18px;
  background: var(--green); color: #fff; border-radius: 999px; padding: 14px 18px; margin: 12px 0 6px;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: var(--card); color: var(--green-dark); border: 2px solid var(--green); font-size: 16px; padding: 10px 16px; }
.note { font-size: 14px; color: var(--sub); }

.flow { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: s; }
.flow li { padding: 8px 0 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: baseline; }
.flow li:last-child { border-bottom: none; }
.flow a { color: var(--ink); text-decoration: none; }
.step-tag {
  flex: none; background: var(--green); color: #fff; font-size: 12px; font-weight: 800;
  border-radius: 6px; padding: 1px 8px; letter-spacing: .05em;
}

.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box img { width: 150px; border: 1px solid var(--line); border-radius: 10px; }
.qr-box p { flex: 1 1 240px; margin: 0; }

.callout { background: var(--warn); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; font-size: 15px; }
.callout b { display: block; }

.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.step-head .step-tag { font-size: 14px; padding: 3px 10px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.shot figure { margin: 0; }
.shot .cap { font-size: 12px; color: var(--sub); margin: 0 0 4px; }
.shot .frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  max-width: 260px; background: #111;
}
.shot .frame img { width: 100%; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #ff3b30; color: #fff;
  font-weight: 800; font-size: 17px; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, .35);
}
.shot ol, .shot .desc { margin: 10px 0 0; }
.num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #ff3b30; color: #fff; font-size: 13px; font-weight: 800; margin-right: 6px; vertical-align: 2px;
}
.small { font-size: 14px; color: var(--sub); }

/* 画面イメージ（CSSで描いた模式図） */
.mock { max-width: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #8ca3c4; font-size: 13px; line-height: 1.5; position: relative; }
.mock .bar { background: #fff; padding: 8px 12px; font-weight: 700; display: flex; justify-content: space-between; }
.mock .body { padding: 14px 12px; min-height: 300px; }
.mock .day { text-align: center; margin: 0 0 10px; }
.mock .day span { background: rgba(0,0,0,.25); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 11px; }
.mock .msg { background: #fff; border-radius: 14px; padding: 8px 10px; max-width: 80%; margin: 6px 0; }
.mock .msg img { width: 130px; border-radius: 8px; }
.mock .sender { font-size: 11px; color: #fff; }
.mock.dark { background: #111; color: #fff; }
.mock.dark .bar { background: #111; color: #fff; }
.mock .center { display: grid; place-items: center; min-height: 300px; text-align: center; }
.mock .dl { position: absolute; bottom: 14px; right: 16px; font-size: 26px; }
.mock .profile { background: #fff; text-align: center; padding: 26px 12px 20px; min-height: 340px; }
.mock .profile img { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 10px; }
.mock .profile .add { display: inline-block; margin-top: 18px; background: var(--green); color: #fff; font-weight: 700; padding: 8px 40px; border-radius: 8px; }

.done { text-align: center; font-weight: 800; color: var(--green-dark); font-size: 19px; margin: 6px 0 18px; }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: none; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--green-dark); font-weight: 800; }
.faq details p { margin: 8px 0 0 22px; }

.toc-top { display: inline-block; font-size: 14px; margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; text-align: center; padding: 18px 16px 30px; }

@media print {
  .site-header { position: static; }
  .btn, .toc-top { display: none; }
  .card, .quick { break-inside: avoid; }
}

/* ---- サイト共通（お知らせ・マニュアル） ---- */
.gnav { margin-left: auto; display: flex; gap: 4px; }
.gnav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.gnav a[aria-current="page"] { background: var(--green-pale); color: var(--green-dark); }
.home-title { font-size: 23px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--green); padding-bottom: 4px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head a { font-size: 14px; text-decoration: none; }
.group-title { font-size: 15px; }
.notice { background: #fff4f2; border: 2px solid #ff8a7a; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 8px; }
.notice h2 { font-size: 16px; color: #c4271a; margin: 0 0 6px; }
.notice .news-list { gap: 0; }
.notice .news-item a { background: transparent; border: none; padding: 6px 0; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-item a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.news-item a:hover, .news-item a:focus-visible { border-color: var(--green); }
.news-item .t { display: block; font-weight: 700; line-height: 1.55; margin-top: 4px; }
.news-item .d { display: block; font-size: 14px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); margin-top: 4px; }
.badge { background: #ff3b30; color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 0 8px; }
.aud { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 0 9px; font-size: 12px; color: var(--sub); }
.upd { font-size: 12px; color: var(--sub); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.type { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 0 8px; color: #fff; }
.type-manual { background: var(--green); }
.type-news { background: #3478f6; }
.date-line { color: var(--sub); font-size: 14px; margin: -4px 0 14px; }
.back { font-size: 14px; margin-top: 12px; }
.site-footer p { margin: 4px 0; }
.gnav a { white-space: nowrap; }
.brand span { white-space: nowrap; }
.news-item.important a { border-color: #ff8a7a; background: #fff8f6; }
@media (max-width: 420px) {
  .site-header .inner { padding: 8px 12px; gap: 6px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .brand small { display: none; }
  .gnav a { font-size: 14px; padding: 6px 8px; }
  h1 { font-size: 23px; }
  .home-title { font-size: 21px; }
}
.login { max-width: 520px; margin: 24px auto 0; }
.login-card h1 { font-size: 21px; }
button.btn { width: 100%; border: none; cursor: pointer; font-family: inherit; }
button.btn.secondary { border: 2px solid var(--green); }
.logout { color: var(--sub); }
[hidden] { display: none !important; }
.join { background: var(--green-pale); border-radius: var(--radius); padding: 16px; margin: 18px 0 0; font-size: 15px; }
.join b { display: block; margin-bottom: 4px; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.member .small { display: block; }
.member-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.member-actions form { margin: 0; }
.member-actions button { font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 6px 16px; cursor: pointer; border: 2px solid transparent; }
.btn-ok { background: var(--green); color: #fff; }
.btn-ng { background: #fff; color: #c4271a; border-color: #ff8a7a !important; }
.btn-sub { background: #fff; color: var(--sub); border-color: var(--line) !important; font-weight: 400 !important; }

/* 役割ごとの章（アプリの使い方） */
.chapter { margin: 34px 0 4px; padding: 10px 14px; background: var(--green); color: #fff; border-radius: var(--radius); font-size: 20px; scroll-margin-top: 12px; }
.chapter-lead { color: var(--sub); margin: 8px 2px 14px; }
.menu-list { list-style: none; margin: 10px 0 0; padding: 0; }
.menu-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: none; }
.menu-list b { display: inline-block; min-width: 5.5em; color: var(--green-dark); margin-right: 6px; }
.card[id] { scroll-margin-top: 12px; }

.err-code{margin:14px 0 0;font-size:12px;color:#8a938d;word-break:break-all}

/* ---- 目次パネル（画面の左から出る。スクリプトなし：#toc を開くと出て、項目を押すと閉じる） ---- */
.toc-open {
  position: fixed; left: 0; bottom: 96px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px 10px 6px; background: var(--green-dark); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; line-height: 1.2;
  border-radius: 0 12px 12px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.toc-open span { font-size: 20px; }
.toc {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(82vw, 320px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); padding: 0 14px 28px; box-shadow: 2px 0 16px rgba(0, 0, 0, .25);
  transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s;
}
.toc:target { transform: none; visibility: visible; }
.toc-back { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); }
.toc:target ~ .toc-back { display: block; }
.toc-head { position: sticky; top: 0; background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 2px solid var(--green); font-size: 18px; }
.toc-head a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.toc-ch { display: block; margin-top: 12px; padding: 10px 12px; background: var(--green-pale); color: var(--green-dark); font-weight: 800; text-decoration: none; border-radius: 10px; }
.toc ol { list-style: none; margin: 4px 0 0; padding: 0 0 0 8px; }
.toc ol a { display: block; padding: 10px 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; border-bottom: 1px dashed var(--line); }
.toc-up { background: none; border: 1px solid var(--line); color: var(--sub); text-align: center; }
@media (prefers-reduced-motion: reduce) { .toc { transition: none; } }
@media print { .toc-open, .toc, .toc-back { display: none; } }
