/* 使い方ガイドの共通の見た目（scripts/build-guide.py が作るHTMLが読む）
   決まり：縦1列（中央に寄せた幅640px。パソコン向けのページ body.pc は1040px）・半分の幅で並べる配置は使わない・どのページも同じ作り／文字は3種類だけ（見出し24px・本文19px・注記16px）／上や左だけの色の線は使わない／オレンジはボタンだけ */
:root{--text:#16161a;--muted:#6b6b73;--line:#e3e3df;--soft:#f6f6f3;--ink:#16161a;--accent:#e4690e;--accent2:#f59a4a;--navy:#e9edf5}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font:400 19px/1.75 "Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic Medium","Yu Gothic",YuGothic,Meiryo,"Noto Sans JP",system-ui,sans-serif;overflow-wrap:anywhere}
img{max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3,p,ol,ul{margin:0}
.s{font-size:16px;line-height:1.7}.m{color:var(--muted)}.b{font-weight:800}
.wrap{max-width:640px;margin:0 auto;padding:0 16px 56px}
/* 上の帯・下の帯 */
/* 上の帯（2026-10-15）：アプリの画面と同じ大きさ（高さ56px・ロゴ28px・名前18px・太さ900・ベータ版の札15px・右のボタン15px） */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top .in{max-width:640px;margin:0 auto;padding:0 16px;height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.brand{white-space:nowrap;display:flex;align-items:center;gap:8px;min-height:44px;font-size:18px;font-weight:900;line-height:1.6;text-decoration:none;color:var(--text)}
.brand img{display:block;border-radius:7px}
.beta{display:inline-block;padding:1px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:15px;font-weight:700;line-height:1.6}
.top .btn.sm{font-size:15px;min-height:40px;padding:8px 16px;white-space:nowrap;flex:none}
@media(max-width:430px){.beta{display:none}}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:12px 22px;min-height:48px;font-weight:800;color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--accent2),var(--accent));border:0;cursor:pointer;font-family:inherit;font-size:19px}
.btn.sm{padding:8px 16px;min-height:40px;font-size:16px}
/* 下の帯（2026-10-15）：文字はアプリの小さい文字（15px）。押す所は44px以上 */
.foot{border-top:1px solid var(--line);background:var(--soft)}
.foot .in{max-width:640px;margin:0 auto;padding:12px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:0;font-size:15px;line-height:1.6}
.foot a{font-weight:700;min-height:44px;display:inline-flex;align-items:center}
.foot .s{font-size:15px;padding-top:6px}
/* 頭 */
.back{margin-top:14px}
.hero{display:flex;align-items:center;gap:16px;padding:19px 0 4px}
.hero img{flex:none;height:auto}
.hero h1{font-size:24px;font-weight:800;line-height:1.5}
.hero p{margin-top:4px}
.sec{margin-top:36px}
.sec>h2{font-size:24px;font-weight:800;line-height:1.5}
.lead{margin:2px 0 14px}
/* ①一言＋2人の紹介 */
.hero1{padding:20px 0 4px;text-align:center}
.hero1 h1{font-size:24px;font-weight:800;line-height:1.5}
.hero1 p{margin-top:4px}
.intro{display:grid;grid-template-columns:1fr auto 1fr;gap:4px;align-items:start;margin-top:12px}
.intro .pp{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-width:0}
.intro .pp img{height:140px;width:auto;max-width:100%;object-fit:contain}
.intro .pp .b{margin-top:4px}
.intro .mid{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding-top:36px;color:var(--accent)}
.intro .mid .ar{display:block}
/* あなたの役割はどれ？：店舗の箱・専門業者の箱（ごく薄い背景）。中にスタッフと管理者の2枚 */
.rboxes{display:flex;flex-direction:column;gap:14px}
.rbox{border-radius:22px;padding:12px;display:flex;flex-direction:column;gap:10px}
.rbox.store{background:#fff6ef}
.rbox.vendor{background:var(--navy)}
.rbox .rh{display:flex;align-items:center;gap:10px}
.rbox .rh img{width:auto;flex:none}
.role{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:18px;padding:14px;text-decoration:none;background:#fff;min-height:112px}
@media(hover:hover){.role:hover{background:var(--soft)}}
.role>.b:first-child{font-size:24px;line-height:1.4}
.rbox .rh .b{font-size:24px;line-height:1.4}
.role .go{margin-top:auto;padding-top:6px}
/* 流れ（チャットのような縦の連番）：左＝店舗・右＝専門業者。吹き出しは画面の60%・キャラは72pxで下に名前 */
.flow{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-direction:column;gap:18px}
.flow .row{display:flex;align-items:flex-start;gap:8px}
.flow .row.vendor{justify-content:flex-end}
.flow .who{flex:none;width:72px;display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
.flow .ch{width:auto;height:72px}
.flow .bub{width:60%;min-width:0;border-radius:20px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.flow .store .bub{background:var(--soft);border-top-left-radius:6px}
.flow .vendor .bub{background:var(--navy);border-top-right-radius:6px}
.flow .bt{display:flex;gap:8px;align-items:flex-start}
.flow .n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.flow .bub p{margin:0}
.flow .pic{display:block;width:100%;max-width:220px;aspect-ratio:4/5;object-fit:cover;margin:6px auto 0;border:1px solid #d6d6d1;border-radius:14px;background:#fff}
@media(min-width:600px){.flow .bub{width:56%}}
/* 手順のカード（どのページも同じ作り：番号・見出し・短い説明・写真） */
.steps{display:flex;flex-direction:column;gap:14px}
.step{border:1px solid var(--line);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fff;min-width:0}
.step .hd{display:flex;gap:12px;align-items:center}
.step .n{flex:none;width:36px;height:36px;border-radius:50%;background:var(--ink);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:19px}
.step h3{font-size:24px;font-weight:800;line-height:1.5;min-width:0}
.step p{margin:0;font-size:16px;line-height:1.7}
.step ul,.step ol{padding-left:1.3em;margin:0}
.step li{margin:2px 0}
.step figure{margin:0;display:flex;justify-content:center;min-width:0}
.step figure img{display:block;border:1px solid #d6d6d1;border-radius:19px;background:#fff}
/* 画面の写真：縦長は最大幅260px・押すと大きい写真が開く。横長（パソコンの画面）は、写真そのままの大きさまで */
.step figure.phone img,.step figure.tall img{width:100%;max-width:260px;height:auto}
.step figure.phone a.zl,.step figure.tall a.zl{display:block;width:100%;max-width:260px}
.step figure.wide a.zl{display:block;width:100%;text-align:center}
.step figure.wide a.zl img{margin:0 auto}
.step figure.wide img{width:100%;height:auto;border-radius:14px}
.step.end{background:var(--soft);border-color:transparent}
.step.end figure img{border:0;border-radius:0;background:transparent;width:auto}
/* ？ くわしく */
.qd{background:var(--soft);border-radius:14px;padding:0 14px}
.qd summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;font-size:16px;font-weight:800;color:var(--muted)}
.qd summary::-webkit-details-marker{display:none}
.qd .qm{flex:none;width:24px;height:24px;border-radius:50%;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--text)}
.qd .qb{padding:0 0 12px;display:flex;flex-direction:column;gap:8px}
.qd .qb p{font-size:16px;line-height:1.7}
/* メールの絵 */
.mailwrap{display:flex;justify-content:center;min-width:0;width:100%}
.mail{width:100%;min-width:0;border:1px solid #d6d6d1;border-radius:16px;overflow:hidden;background:#fff;font-size:16px;line-height:1.7}
.mail .mh{background:var(--soft);padding:10px 14px;border-bottom:1px solid var(--line)}
.mail .mh div{display:flex;gap:8px}.mail .mh span:last-child{min-width:0;word-break:break-all}
.mail .mh span:first-child{color:var(--muted);flex:none}
.mail .mb{padding:12px 14px;white-space:pre-wrap;word-break:break-all}
.mail .hl{background:#eee;border-radius:6px;padding:0 4px;font-weight:800}
/* Chatworkの3つの図（縦1列） */
.cwgrid{display:flex;flex-direction:column;gap:12px}
.cwgrid figure.cw{margin:0}
.cwgrid figure.cw img{display:block;width:100%;max-width:340px;height:auto;margin:0 auto}
/* 困った時は */
.help{background:var(--soft);border-radius:22px;padding:19px 16px}
.help .hh{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.help h2{font-size:24px;font-weight:800}
.qa{display:flex;flex-direction:column;gap:10px}
.qa>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px}
.qa .q{font-size:16px;color:var(--muted);font-weight:800}
.qa .a{font-weight:800}
.qa .n{font-size:16px;color:var(--muted)}
.end-cta{margin-top:32px;text-align:center}
/* 見出しの id へ飛んだ時（画面のリンク・2026-10-13）：上の固定の帯に隠れない位置に止め、少しのあいだ色を付けて目立たせる */
h2[id],h3[id]{scroll-margin-top:76px}
.hl-target{animation:hlt 2.6s ease-out;border-radius:8px}
@keyframes hlt{0%,60%{background:#fde6d2;box-shadow:0 0 0 6px #fde6d2}100%{background:transparent;box-shadow:0 0 0 6px transparent}}
@media (prefers-reduced-motion:reduce){.hl-target{animation:none;background:#fde6d2}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* 利用規約のページ・同意の枠（文字は2種類・本文は16px） */
.terms{padding:8px 0 24px}
.terms h1{font-size:24px;font-weight:800;line-height:1.5;margin:12px 0 8px}
.terms h2{font-size:24px;font-weight:800;line-height:1.5;margin:28px 0 8px}
.terms h3{font-size:16px;font-weight:800;line-height:1.7;margin:16px 0 4px}
.terms p,.terms li{font-size:16px;line-height:1.8;margin:0 0 6px}
.terms ul,.terms ol{margin:0 0 8px;padding-left:1.4em}
.terms table{border-collapse:collapse;width:100%;margin:6px 0 10px}
.terms th,.terms td{border:1px solid var(--line);padding:6px 8px;font-size:16px;line-height:1.6;text-align:left;vertical-align:top}
.terms th{background:var(--soft);font-weight:800}
/* 利用規約の目次（章と条へ飛ぶ）・どこからでも目次へ戻る */
html{scroll-padding-top:72px}
.toc{border:1px solid var(--line);border-radius:16px;padding:12px 16px;margin:8px 0 16px;background:#fff}
.toc-h{font-size:16px;font-weight:800;margin-bottom:6px}
.toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.toc li>a{font-size:16px;font-weight:800;color:var(--text);display:inline-flex;align-items:center;min-height:44px}
.toc-a{display:flex;flex-wrap:wrap;gap:0 14px;padding-left:2px}
.toc-a a{font-size:16px;color:var(--text);display:inline-flex;align-items:center;min-height:44px}
.totoc{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:5;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:800;text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.2)}
/* 見出しは言葉の途中で折らない（2026-10-12）：文節の切れ目に <wbr> を入れ（scripts/build-guide.py の phrase）、その間は折らない。収まらない長い言葉だけは折る */
h1,h2,h3{word-break:keep-all;overflow-wrap:anywhere}
/* パソコン向けのページ（2026-10-12 TAMA：運営・依頼者の管理者・専門業者の管理者・専門業者のスタッフ）：本文の幅を広く・画面の写真を大きく。スマホでは今までと同じ1列 */
.pc .wrap,.pc .top .in,.pc .foot .in{max-width:1072px}
.pc .lead,.pc .step>p,.pc .step>ul,.pc .step>ol,.pc .hero p{max-width:46em}
.step figure.pc a.zl{display:block;width:100%}
.step figure.pc img{display:block;width:100%;height:auto;border:1px solid #d6d6d1;border-radius:12px;background:#fff}
/* 狭い画面の写真（まんなかの列だけ）も、文の下に、実際の画面と同じ幅でまんなかに出す（半分の幅で並べる配置は使わない） */
.pc .mail{max-width:640px}
.pc .cwgrid{flex-direction:row;flex-wrap:wrap;justify-content:center}
.pc .cwgrid figure.cw{flex:1 1 280px;max-width:340px}
/* 写真を押した時：ページの上に大きく出す（guide.js）。暗い背景・まんなかに写真・下に説明。×・Esc・背景で閉じる */
a.zl{cursor:zoom-in}
.lb{position:fixed;inset:0;z-index:100;background:rgba(14,14,18,.96);color:#fff;display:flex;flex-direction:column}
.lb[hidden]{display:none}
.lb-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;align-items:safe center;justify-content:center;padding:60px 16px 12px;-webkit-overflow-scrolling:touch}
.lb-stage img{display:block;margin:auto;width:auto;height:auto;max-width:100%;border-radius:10px;background:#fff;touch-action:pinch-zoom pan-y pan-x}
.lb-cap{padding:10px 72px calc(14px + env(safe-area-inset-bottom));font-size:16px;line-height:1.6;text-align:center;color:#f2f2ee}
.lb-n{display:block;font-size:16px;color:#c9c9c4}
.lb button{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font:700 26px/1 system-ui,sans-serif;cursor:pointer}
@media(hover:hover){.lb button:hover{background:rgba(255,255,255,.3)}}
.lb button:focus-visible{outline:3px solid #f59a4a;outline-offset:2px}
.lb-x{top:calc(8px + env(safe-area-inset-top));right:12px}
.lb-prev,.lb-next{bottom:calc(10px + env(safe-area-inset-bottom))}
.lb-prev{left:12px}.lb-next{right:12px}
@media(min-width:900px){.lb-prev,.lb-next{bottom:auto;top:50%;transform:translateY(-50%)}.lb-stage{padding:60px 76px 12px}}
@media(prefers-reduced-motion:no-preference){.lb{animation:lbin .18s ease-out}.lb-stage img{animation:lbimg .2s ease-out}}
@keyframes lbin{from{opacity:0}to{opacity:1}}
@keyframes lbimg{from{transform:scale(.97)}to{transform:none}}
html.lb-open{overflow:hidden}

/* よくある質問（2026-10-15 ガイドの中へ移した）：項目の見出し・押すと開く問い・手数料の一覧（専門業者の管理者のページだけ） */
.faq .fq-h{font-size:19px;font-weight:800;line-height:1.5;margin:24px 0 6px}
.faq .qs{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.faq details.fq{border-bottom:1px solid var(--line)}
.faq details.fq summary{list-style:none;cursor:pointer;min-height:56px;padding:12px 40px 12px 2px;font-weight:700;line-height:1.5;position:relative;display:flex;align-items:center}
.faq details.fq summary::-webkit-details-marker{display:none}
.faq details.fq summary::after{content:"";position:absolute;right:8px;top:50%;width:10px;height:10px;margin-top:-8px;border-right:2.5px solid var(--muted);border-bottom:2.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.faq details.fq[open] summary::after{transform:rotate(-135deg);margin-top:-3px}
.faq details.fq summary:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.faq details.fq p{padding:0 2px 16px;color:#34343a}
.faq .fee-list{display:flex;flex-direction:column;gap:8px}
.faq .fee-list table{border-collapse:collapse;width:100%}
.faq .fee-list th,.faq .fee-list td{border-top:1px solid var(--line);padding:12px 4px;text-align:left;vertical-align:top}
.faq .fee-list tr:last-child th,.faq .fee-list tr:last-child td{border-bottom:1px solid var(--line)}
.faq .fee-list th{width:72px;font-weight:800;white-space:nowrap}
.pc .faq{max-width:46em}
@media(prefers-reduced-motion:reduce){.faq details.fq summary::after{transition:none}}

/* 目次のサイドバー（2026-10-15 TAMA）：部品は LP・コラムと同じ（/app/deck/side.css の #sd-side・#sd-bar・#sd-drawer・.sd-toc）。ここはガイドだけの所
   ・目次は3段（大見出し／小見出し・よくある質問の項目／問い）。▸ で開閉。今いる所はオレンジ、その親はうすい色
   ・言葉で探す欄（.gt-find）。文字はガイドの注記と同じ16px（「目次」の小見出しだけ部品のまま）。動きは src/client/guidetoc.ts */
/* 飛んだ先は見出し側の scroll-margin-top（76px）だけで止める（html の scroll-padding-top と足されて、上に余白が空きすぎないように） */
html.gt{--sdw:300px;scroll-padding-top:0}
details.fq[id]{scroll-margin-top:76px}
.gt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gt-find{display:flex;flex-direction:column;gap:4px}
.gt-in{position:relative;display:flex;align-items:center;color:var(--muted)}
.gt-in svg{position:absolute;left:12px;pointer-events:none}
.gt-in input{width:100%;height:44px;padding:0 12px 0 38px;border:1px solid #d6d6d1;border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:16px;font-weight:500;-webkit-appearance:none;appearance:none}
.gt-in input::placeholder{color:#8a8a92}
.gt-in input:focus-visible{outline:2px solid var(--text);outline-offset:1px}
.gt-count{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}
.gt-count:empty{display:none}
.gt-toc li{position:relative}
.gt-toc li[hidden]{display:none}
.gt-toc .gt-go{font-size:16px;line-height:1.45;align-items:flex-start;padding:8px 10px}
.gt-toc .gt-go .sd-n{width:auto;min-width:18px;font-size:16px;line-height:1.45}
.gt-toc .gt-l1{margin-top:6px}
.gt-toc .gt-l1:first-child{margin-top:0}
.gt-toc .gt-l1>.gt-go{font-weight:900;padding-right:44px}
.gt-toc .gt-l2>.gt-go{padding-left:24px;font-weight:700}
.gt-toc .gt-l2:has(.gt-fold)>.gt-go{padding-right:44px}
.gt-toc .gt-l3>.gt-go{padding-left:40px;font-weight:500;color:#45454d}
.gt-toc li.in>.gt-go{background:#faf6f2;color:var(--text)}
.gt-toc li.cur>.gt-go{background:#e4690e;color:#fff}
.gt-toc li.miss>.gt-go{color:#8a8a92}
.gt-toc .gt-fold{position:absolute;right:2px;top:2px;width:40px;height:36px;min-height:0;padding:0;border:0;border-radius:8px;background:none;color:inherit;display:grid;place-items:center;cursor:pointer}
.gt-toc li.cur>.gt-fold{background:none;color:#fff}
.gt-toc .gt-fold svg{transition:transform .15s}
.gt-toc li.open>.gt-fold svg{transform:rotate(90deg)}
.gt-toc .gt-fold:disabled{opacity:.4;cursor:default}
@media(hover:hover){.gt-toc li:not(.cur)>.gt-fold:hover{background:#f0ebe5}}
/* パソコン：左の欄 */
@media(min-width:1100px){
html.gt #sd-side{gap:10px;padding:18px 14px 16px}
html.gt #sd-toc1{padding-bottom:12px}
}
/* スマホ・タブレット：下の帯（目次＋今いる所／探す）と引き出し */
@media(max-width:1099px){
html.gt #sd-bar{gap:8px;justify-content:stretch}
.gt-now{flex:1 1 auto;min-width:0;justify-content:flex-start}
.gt-now .gt-b{flex:none}
.gt-here{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700;color:var(--muted)}
.gt-here:not(:empty)::before{content:"｜";color:#c9c9c4;margin-right:2px}
.gt-findbtn{flex:none}
html.gt #sd-drawer .sd-box{overflow:hidden;max-height:86dvh}
html.gt #sd-toc2{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:0 6px 8px}
}
@media(prefers-reduced-motion:reduce){.gt-toc .gt-fold svg{transition:none}}
@media print{#sd-side,#sd-bar,#sd-drawer{display:none!important}html.page-side body{padding:0!important}}
/* 使い方の動画（2026-10-23）：章の説明のすぐ後に1本ずつ。一覧のページ douga.html も同じ形 */
.gvid{margin:12px 0 18px;max-width:720px}
.gvid video{display:block;width:100%;aspect-ratio:16/9;border-radius:10px;background:#f3f3f3}
.gvid-t{margin:0 0 6px}
.gvid-all{margin:8px 0 0}
.gvid-i{margin:0 0 28px}
.gvid-i h3{margin:0 0 4px}

/* 使い方の動画の一覧と絞り込み（2026-10-23）。絞り込みのボタンは、選んだ物だけ黒（オレンジはボタンの主役だけ） */
.vf{display:flex;gap:8px;margin:4px 0 16px}
.vf-b{flex:1 1 0;min-width:0;min-height:44px;padding:0 6px;white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.vf-b.on{background:var(--text);border-color:var(--text);color:#fff}
.vg{margin:0 0 8px}
.vg[hidden],.gvid-i[hidden]{display:none}
.vg-h{margin:18px 0 10px;color:var(--muted)}
.vtag{display:inline-block;margin-left:8px;vertical-align:2px;padding:0 10px;border-radius:999px;background:#fff6ef;color:var(--text);border:1px solid var(--accent2);font-size:16px;font-weight:700;line-height:1.6;white-space:nowrap}
.faq-door{margin-top:8px}
#irai .hh,#senmon .hh{display:flex;align-items:center;gap:10px;margin-bottom:4px}
#irai .hh h2,#senmon .hh h2{margin:0}
.kp{word-break:keep-all;overflow-wrap:anywhere}
