/* 利用者マニュアル（/manual）。紹介ページ（promo.css）と同じ色・書体・丸み・ボタンで、読みやすさを優先した作り。README「4-30」 */
:root {
  --bg: #FFF9F2; --bg2: #F6F0FC; --card: #FFFFFF; --ink: #3B2A52; --sub: #6E6280;
  --pri: #7B5EA7; --pri-d: #5E4387; --pri-l: #E9DFF7; --pink: #E0588F; --pink-d: #B93E6F; --pink-l: #FDE6EF;
  --sun: #FFD66B; --mint: #4FB3A2; --mint-l: #DDF3EF; --line: #E6DCF2; --r: 22px;
  --shadow: 0 10px 30px rgba(94, 67, 135, .12);
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; line-height: 1.9; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pri-d); }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 900; letter-spacing: .02em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pink); color: #fff; text-decoration: none; font-weight: 900; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 26px; font-family: inherit; font-size: 1rem; box-shadow: 0 5px 0 var(--pink-d); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--pink-d); }
.btn-sm { padding: 8px 16px; font-size: .88rem; box-shadow: 0 4px 0 var(--pink-d); white-space: nowrap; }
.btn-ghost { background: #fff; color: var(--pri-d); border: 2px solid var(--pri-l); box-shadow: 0 5px 0 var(--pri-l); }
.btn-ghost:hover { box-shadow: 0 3px 0 var(--pri-l); }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 242, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.hd.is-scrolled { box-shadow: 0 4px 18px rgba(94, 67, 135, .1); }
.hd-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hd-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.hd-nav a:not(.btn):hover { color: var(--pink); }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 2px solid var(--pri-l); border-radius: 12px; padding: 8px 14px; font: inherit; font-weight: 900; color: var(--pri-d); cursor: pointer; }

/* 本文の枠：左に章の目次、右に本文 */
.m-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding: 36px 0 80px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px 12px; }
.toc h2 { font-size: .9rem; color: var(--sub); padding: 0 10px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.toc a:hover { background: var(--bg2); }
.toc a[aria-current="page"] { background: var(--pri-l); color: var(--pri-d); }
.toc .n { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--pri-l); color: var(--pri-d); display: grid; place-items: center; font-size: .78rem; font-weight: 900; }
.toc a[aria-current="page"] .n { background: var(--pri); color: #fff; }
.toc .soon { color: #A89BBB; font-weight: 500; font-size: .92rem; display: flex; gap: 8px; padding: 7px 10px; line-height: 1.5; }
.toc .soon .n { background: var(--bg2); color: #A89BBB; }
.toc .soon small { font-size: .7rem; margin-left: auto; white-space: nowrap; align-self: center; }
.toc-sp { display: none; }

/* 章の見出し */
.m-hero { background: radial-gradient(circle at 90% 10%, var(--pri-l) 0, transparent 50%), radial-gradient(circle at 5% 100%, var(--pink-l) 0, transparent 45%), var(--bg); border-radius: 28px; padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border: 2px solid var(--line); }
.crumb { font-size: .85rem; color: var(--sub); margin-bottom: 8px; }
.crumb a { color: var(--sub); }
.kicker { display: inline-block; background: #fff; border: 2px solid var(--pri-l); color: var(--pri-d); font-weight: 900; font-size: .85rem; border-radius: 999px; padding: 2px 14px; margin-bottom: 10px; }
.m-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.m-hero h1 em { font-style: normal; background: linear-gradient(transparent 66%, var(--sun) 66%, var(--sun) 92%, transparent 92%); }
.m-hero .lead { margin-top: 12px; color: var(--sub); max-width: 38em; }
.m-hero img { width: 150px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.meta li { background: #fff; border-radius: 999px; padding: 3px 14px; font-size: .88rem; font-weight: 700; box-shadow: var(--shadow); }
.meta b { color: var(--pink); }

/* 記事 */
.art { margin-top: 28px; }
.art > section { margin-top: 44px; }
.art h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 3px dotted var(--line); margin-bottom: 18px; }
.art h2 .no { flex: none; background: var(--pink); color: #fff; border-radius: 16px; padding: 2px 14px; font-size: .95rem; box-shadow: 0 3px 0 var(--pink-d); white-space: nowrap; }
.art h2 .time { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--pri-d); background: var(--pri-l); border-radius: 999px; padding: 1px 12px; white-space: nowrap; }
.art h3 { font-size: 1.08rem; margin: 26px 0 8px; color: var(--pri-d); }
.art p + p { margin-top: 12px; }
.art ul, .art ol { padding-left: 1.4em; margin: 12px 0; }
.art li + li { margin-top: 4px; }
.art b { font-weight: 900; }
.art .ui { background: var(--pri-l); color: var(--pri-d); border-radius: 8px; padding: 0 7px; font-weight: 900; font-size: .94em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.art code { background: var(--bg2); border-radius: 6px; padding: 1px 7px; font-size: .92em; word-break: break-all; }

/* 手順（番号つき） */
.steps { list-style: none; padding: 0; margin: 14px 0; counter-reset: s; display: grid; gap: 12px; }
.steps > li { counter-increment: s; position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 56px; }
.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 900; display: grid; place-items: center; }

/* 7つのステップの一覧（章の冒頭） */
.map { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; counter-reset: m; }
.map li { counter-increment: m; display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; line-height: 1.5; }
.map li::before { content: counter(m); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 900; font-size: .85rem; display: grid; place-items: center; }
.map a { font-weight: 700; }
.map small { color: var(--sub); margin-left: auto; white-space: nowrap; }

/* 画面の写真 */
.shot { margin: 18px 0; }
.shot .frame { background: #fff; border: 3px solid #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { text-align: center; font-size: .86rem; color: var(--sub); margin-top: 8px; font-weight: 700; }
.shot.sp-shot .frame { max-width: 300px; margin-inline: auto; border-radius: 26px; }
.shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.shot-row .shot { margin: 8px 0; }

/* ポイント・注意・ヒント */
.note { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; border-radius: 20px; padding: 14px 18px; margin: 18px 0; border: 2px solid; }
.note img { width: 64px; }
.note .t { font-weight: 900; display: block; margin-bottom: 2px; }
.note.point { background: var(--mint-l); border-color: #BFE6DF; }
.note.point .t { color: #2C8676; }
.note.warn { background: var(--pink-l); border-color: #F6C5D8; }
.note.warn .t { color: var(--pink-d); }
.note.tip { background: #FFF6D9; border-color: #F6E3A2; }
.note.tip .t { color: #8A6A00; }
.note.plain { grid-template-columns: 1fr; }

/* 準備するもの・表 */
.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 2em; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 2px var(--line); font-size: .95rem; margin: 14px 0; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg2); width: 11em; font-weight: 900; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* うまくいかないとき */
.trouble { margin-top: 20px; }
.trouble details { background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.trouble summary { cursor: pointer; font-weight: 900; padding: 12px 16px; list-style: none; position: relative; padding-right: 44px; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 3px solid var(--pri); border-bottom: 3px solid var(--pri); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.trouble details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.trouble details > div { padding: 0 16px 14px; color: var(--sub); }

/* 章の最後 */
.done { text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 26px; padding: 26px 20px; margin-top: 48px; box-shadow: var(--shadow); }
.done img { width: 120px; margin: 0 auto 6px; }
.done h2 { border: 0; justify-content: center; margin: 0 0 6px; padding: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pager a { display: block; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 18px; text-decoration: none; color: var(--ink); font-weight: 900; }
.pager a small { display: block; color: var(--sub); font-weight: 700; font-size: .78rem; }
.pager a:hover { border-color: var(--pri); }
.pager .next { text-align: right; grid-column: 2; }

/* 目次ページ */
.idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 28px 0 0; }
.idx li { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 4px 0 var(--line); }
.idx li.ready { border-color: var(--pri-l); }
.idx li.ready:hover { transform: translateY(-3px); transition: transform .2s; }
.idx h2 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.idx .n { flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.idx li:not(.ready) .n { background: var(--pri-l); color: #A89BBB; }
.idx li:not(.ready) { opacity: .7; }
.idx p { color: var(--sub); font-size: .9rem; margin-top: 6px; line-height: 1.7; }
.idx a:not(.btn) { color: inherit; text-decoration: none; }
.idx a.btn { color: #fff; text-decoration: none; }
.idx .badge { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--bg2); color: #8E80A4; border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.idx .big { grid-column: 1 / -1; background: linear-gradient(135deg, var(--pri-l), var(--pink-l)); border: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }

/* フッター */
.ft { background: var(--ink); color: #E8E0F2; padding: 40px 0 44px; }
.ft-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.ft .logo { color: #fff; }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.ft nav a { color: #E8E0F2; text-decoration: none; }
.ft nav a:hover { color: var(--sun); }
.copy { text-align: center; font-size: .8rem; color: #B7A9CC; margin-top: 22px; }

@media (max-width: 900px) {
  .m-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .m-body > * { min-width: 0; }
  .toc { display: none; }
  .toc-sp { display: block; background: #fff; border: 2px solid var(--line); border-radius: 18px; }
  .toc-sp summary { cursor: pointer; font-weight: 900; padding: 12px 16px; }
  .toc-sp ol { list-style: none; margin: 0; padding: 0 8px 10px; }
  .toc-sp a, .toc-sp .soon { display: flex; gap: 8px; padding: 7px 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
  .toc-sp .soon { color: #A89BBB; font-weight: 500; }
  .hd-nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .m-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .m-hero img { width: 100px; margin-left: auto; margin-top: -10px; }
  .art h2 { flex-wrap: wrap; }
  .art h2 .time { margin-left: 0; }
  .shot-row, .idx, .map { grid-template-columns: minmax(0, 1fr); }
  .note { grid-template-columns: 48px 1fr; padding: 12px 14px; }
  .note img { width: 48px; }
  .tbl th, .tbl td { display: block; width: auto; }
  .tbl th { border-bottom: 0; padding-bottom: 2px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .idx .big { grid-template-columns: 1fr; }
  .hd .btn-sm { padding: 7px 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .idx li.ready:hover { transition: none; transform: none; }
}

/* 「＊必須」の印（表の項目名のあとに付ける） */
.rq { color: var(--pink-d); font-weight: 900; font-size: .8em; margin-left: .5em; white-space: nowrap; }
