/* Muse 伴走スキル 取扱説明書 — 決定の束（4ページ共通）
   色相は2つまで：藍（Muse の青に寄せた案内の色）＋だいだい（写真の「押す所」の丸だけ）。地と墨は藍へ少し寄せた無彩色。 */
:root {
  --bg: #f6f6f3;
  --paper: #ffffff;
  --ink: #1f2430;
  --muted: #5b6272;
  --line: #dcdcd6;
  --accent: #2856c8;
  --accent-soft: #e9eefb;
  --mark: #d9541f;
  --note-bg: #fbf3e8;
  --ok-bg: #edf5ee;
  --radius: 14px;
  --f: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #15181f; --paper: #1d212a; --ink: #e7e9ee; --muted: #a2a9b7; --line: #2e3440;
  --accent: #8fb0f2; --accent-soft: #232c40; --mark: #f08a5d; --note-bg: #2a241c; --ok-bg: #1d2a22; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #15181f; --paper: #1d212a; --ink: #e7e9ee; --muted: #a2a9b7; --line: #2e3440;
  --accent: #8fb0f2; --accent-soft: #232c40; --mark: #f08a5d; --note-bg: #2a241c; --ok-bg: #1d2a22; color-scheme: dark }

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f);
  font-size: 16px; line-height: 1.8; letter-spacing: .02em;
  padding: 0 max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left));
}
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 0 56px; }
a { color: var(--accent); }

/* 上の帯：どのページからも戻れる */
.top { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 4px 0 16px; }
.top a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

h1 { font-size: 26px; line-height: 1.4; margin: 4px 0 8px; letter-spacing: .03em; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.5; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }

/* トップの3枚 */
.cards { display: grid; gap: 14px; margin: 24px 0; }
.card {
  display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-decoration: none; color: var(--ink); min-height: 88px;
}
.card .no { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.card b { display: block; font-size: 17px; line-height: 1.4; }
.card span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.card i { font-style: normal; color: var(--muted); font-size: 20px; }

/* 手順 */
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0 0 28px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-top: 1px; }
.step .body > :last-child { margin-bottom: 0; }
.shot { margin: 10px 0 4px; }
.shot img { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 30, 50, .08); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.maru { color: var(--mark); font-weight: 700; }

/* 枠：注意（理由つき）・できた・故障ではありません */
.box { border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.box > b { display: block; margin-bottom: 4px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.note { background: var(--note-bg); }
.ok { background: var(--ok-bg); }
.box ul { margin: 0; padding-left: 1.2em; }

/* 困ったとき */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; float: right; color: var(--muted); }
details[open] summary::after { content: "－"; }
details > div { padding: 0 16px 14px; font-size: 15px; }

/* 大きなボタン（ドライブへ） */
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; margin: 18px 0; padding: 0 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #10141c; } }

.files { list-style: none; padding: 0; margin: 0 0 16px; }
.files li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.files b { display: block; font-size: 15px; word-break: break-all; }
.files span { font-size: 14px; color: var(--muted); }

.next { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.next a { min-height: 44px; display: inline-flex; align-items: center; }

footer { margin-top: 40px; font-size: 12px; color: var(--muted); }

/* 印刷（PDF）：写真や手順の途中で頁を切らない・ボタンは住所を見せる */
@media print {
  body { background: #fff; padding: 0; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .step, .box, figure, details, .card { break-inside: avoid; }
  h2 { break-after: avoid; }
  .shot img { max-width: 200px; box-shadow: none; }
  .top, .next { display: none; }
  .btn { background: none; color: var(--ink); border: 1px solid var(--line); justify-content: flex-start; }
  .btn::after { content: "（" attr(href) "）"; font-weight: 400; font-size: 9pt; margin-left: 4px; word-break: break-all; }
  summary::after { content: ""; }
}
