:root,[data-theme=light]{--bg: #faf7f2;--surface: #ffffff;--surface2: #f1ebe2;--text: #1f1b16;--muted: #5a5148;--border: #8c7f70;--accent: #8a4b12;--on-accent: #ffffff;--link: #7a3e0b;--warn: #a3261b;--cbg: #f3e3cf;--ctx: #5e3207;--sbg: #dde7ef;--stx: #1e3f5a;--pbg: #e7e0f0;--ptx: #3f2d5c;--nbg: #e8e3dc;--ntx: #4a423a;--adbg: #fff4d6;--adtx: #5a4200;--adbd: #8a6a00;color-scheme:light}[data-theme=dark]{--bg: #0f1115;--surface: #1a1d23;--surface2: #242831;--text: #ece7df;--muted: #b5ac9f;--border: #7a818c;--accent: #d9a441;--on-accent: #1a1206;--link: #e8bc6a;--warn: #ff8a7a;--cbg: #3a2a18;--ctx: #f2d3ac;--sbg: #1c2b38;--stx: #bfd7ea;--pbg: #2b2338;--ptx: #d9ccf0;--nbg: #2a2d33;--ntx: #d6d0c7;--adbg: #2e2610;--adtx: #f5d98a;--adbd: #c9a640;color-scheme:dark}html{font-size:17px}html[data-fontsize=s]{font-size:16px}html[data-fontsize=m]{font-size:17px}html[data-fontsize=l]{font-size:20px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,Yu Gothic UI,Meiryo,sans-serif;line-height:1.6;-webkit-text-size-adjust:100%}button{font:inherit;color:inherit}a{color:var(--link)}img{max-width:100%;height:auto;display:block}h1,h2,h3,h4{line-height:1.35}.screen{height:100vh;height:100dvh;display:flex;flex-direction:column}.top{flex:none;height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 0 16px;border-bottom:1px solid var(--surface2)}.top-title{font-size:1rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-right{display:flex;align-items:center;gap:4px;flex:none}.lang{display:flex;border:1px solid var(--border);border-radius:999px;overflow:hidden}.lang button{min-width:52px;height:40px;border:0;background:transparent;font-size:.8125rem;cursor:pointer;padding:0 10px}.lang button[aria-pressed=true]{background:var(--accent);color:var(--on-accent);font-weight:700}.icon-btn{width:44px;height:44px;border:0;background:transparent;border-radius:12px;cursor:pointer;display:grid;place-items:center;color:var(--text)}.scroll{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}.page{width:100%;max-width:640px;margin:0 auto;padding:16px 16px 24px}.page-wide{max-width:1040px}.page-fill{flex:1;display:flex;flex-direction:column}.page-h{font-size:1.375rem;margin:0 0 4px}.sec-h{font-size:1.125rem;margin:24px 0 8px}.lead{color:var(--muted);font-size:.9375rem;margin:0 0 12px}.small{font-size:.8125rem}.muted{color:var(--muted)}.center{text-align:center}.list{margin:0;padding-left:1.2em}.list li{margin:0 0 6px}.warnbox{margin:0 0 12px;padding:10px 12px;border:1.5px solid var(--warn);border-radius:12px;background:var(--surface);color:var(--text);font-size:.875rem;font-weight:700}.feel-tag{display:inline-block;margin-right:6px;padding:0 6px;border:1px dashed var(--border);border-radius:6px;font-size:.75rem;color:var(--muted);font-weight:700}.box{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:4px 14px 12px;margin:12px 0}.box .sec-h{margin-top:10px}.tabbar{flex:none;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border);background:var(--surface);padding-bottom:env(safe-area-inset-bottom)}.tabbar a{height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:700}.tabbar a[aria-current=page]{color:var(--accent);box-shadow:inset 0 3px 0 var(--accent)}.btn{display:flex;align-items:center;justify-content:center;min-height:56px;border-radius:14px;font-weight:700;text-decoration:none;font-size:.9375rem;text-align:center;padding:6px 10px;cursor:pointer;line-height:1.3}.btn-p{background:var(--accent);color:var(--on-accent);border:0}.btn-s{background:var(--surface);color:var(--text);border:1.5px solid var(--border)}.btn-block{width:100%;font-size:1.0625rem}.ghost{flex:1;min-height:48px;border:1px solid var(--border);border-radius:12px;background:transparent;font-size:.9375rem;cursor:pointer}.ad{margin-top:10px}.ad-label{margin:0 0 4px;font-size:.75rem;font-weight:700;color:var(--adtx)}[data-theme=dark] .ad-label{color:var(--adtx)}.btn-ad{width:100%;background:var(--adbg);color:var(--adtx);border:1.5px dashed var(--adbd)}.ad-imp{position:absolute;width:1px;height:1px}.btn-ad.is-soon{cursor:default;font-weight:700}.ad-note{margin:4px 0 0;font-size:.75rem;color:var(--muted);min-height:3.2em}.ad-offline{margin:0;padding:10px 12px;border-radius:12px;background:var(--surface2);font-size:.8125rem;color:var(--muted)}.ad-wrap{max-width:480px;margin:16px auto 0}.controls{margin-top:auto;padding-top:24px}.controls>.small{margin:10px 0 0}.fold{flex:1 0 100%;display:flex;flex-direction:column;width:100%;max-width:480px;margin:0 auto;padding:16px}.after{width:100%;max-width:480px;margin:0 auto;padding:8px 16px 24px}.linklist{list-style:none;margin:0;padding:0;display:grid;gap:8px}.linklist a{display:flex;align-items:center;min-height:56px;padding:8px 14px;border:1.5px solid var(--border);border-radius:14px;background:var(--surface);font-weight:700;text-decoration:none}.screen>.scroll>.prog,.q,.screen>.scroll>.controls{width:100%;max-width:480px;margin-left:auto;margin-right:auto}.prog{padding:12px 16px 0}.prog-row{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--muted)}.bar{height:8px;background:var(--surface2);border-radius:999px;overflow:hidden;margin-top:4px}.bar>i{display:block;height:100%;background:var(--accent)}.q{padding:24px 16px 0}.q h2{font-size:1.5rem;margin:0 0 8px}.q p{margin:0;color:var(--muted);font-size:.9375rem}.screen>.scroll>.controls{margin-top:auto;padding:24px 16px 0}.choices{display:grid;gap:12px}.choices.c4{grid-template-columns:1fr 1fr}.choices.c3{grid-template-columns:1fr}.choice{min-height:56px;padding:8px 12px;border:1.5px solid var(--border);border-radius:14px;background:var(--surface);font-size:1rem;font-weight:700;text-align:left;cursor:pointer;display:flex;align-items:center;gap:8px;line-height:1.3}.choice small{display:block;font-weight:400;font-size:.75rem;color:var(--muted)}.choices.c3 .choice small{display:inline;margin-left:.6em}.choice[aria-pressed=true]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.choice[aria-pressed=true] small{color:var(--on-accent)}.choice .ck{flex:none;width:1.2em;text-align:center}.hint{margin:10px 0 0;font-size:.8125rem;color:var(--muted);text-align:center}.nav{flex:none;display:flex;gap:12px;padding:12px 16px calc(16px + env(safe-area-inset-bottom));width:100%;max-width:480px;margin:0 auto}.res{width:100%;max-width:480px;margin:0 auto;padding:12px 16px 16px}.res h2{font-size:1.25rem;margin:0}.res .sub{font-size:.8125rem;color:var(--muted);margin:2px 0 8px}.specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;list-style:none}.specs li{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px 10px}.specs b{display:block;font-size:.75rem;color:var(--muted);font-weight:400}.specs span{font-size:.9375rem;font-weight:700;display:block;line-height:1.35}.op{display:block;font-style:normal;font-size:.6875rem;color:var(--muted)}.why{margin:10px 0 0;padding:8px 10px;background:var(--surface2);border-radius:10px;font-size:.875rem}.why b{color:var(--link)}.notes{margin:10px 0 0;padding-left:1.2em;font-size:.8125rem;color:var(--muted)}.notes li{margin-bottom:4px}.dock{flex:none;width:100%;max-width:480px;margin:0 auto;padding:10px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--surface2)}.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.again{width:100%;margin-top:10px;display:block}.srcs{white-space:normal}.srcref{font-size:.75rem;text-decoration:none}.chef{margin-top:10px;padding:8px 10px;border-left:3px solid var(--border);background:var(--surface2);font-size:.8125rem;border-radius:0 8px 8px 0}.feel{border-left-style:dashed}.feel ul{margin:2px 0 0;padding-left:1.1em}.chef b{display:block;font-size:.75rem;color:var(--muted)}.legend{margin:12px 0;padding:12px;background:var(--surface2);border-radius:12px;font-size:.8125rem}.legend p{margin:0 0 6px}.jump{display:flex;flex-wrap:wrap;gap:8px}.jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:999px;text-decoration:none;font-size:.875rem;color:var(--text)}.figs{display:grid;grid-template-columns:1fr;gap:12px}@media(min-width:760px){.figs{grid-template-columns:1fr 1fr}}figure{margin:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:10px;min-width:0}.fig-h{font-weight:700;margin:0 0 6px}.lineage{display:block;width:100%;height:auto;max-width:420px;margin:0 auto}.lineage .n-c rect{fill:var(--cbg);stroke:var(--accent);stroke-width:1.5}.lineage .n-s rect{fill:var(--sbg);stroke:var(--stx);stroke-width:1.5}.lineage .n-p rect{fill:var(--pbg);stroke:var(--ptx);stroke-width:1.5}.lineage .nm{font-size:15px;font-weight:700}.lineage .n-c .nm,.lineage .n-c .sub{fill:var(--ctx)}.lineage .n-s .nm,.lineage .n-s .sub{fill:var(--stx)}.lineage .n-p .nm,.lineage .n-p .sub{fill:var(--ptx)}.lineage .sub{font-size:11.5px}.lineage .edge{stroke:var(--text);stroke-width:1.6;fill:none}.lineage .ah{fill:var(--text)}.lineage .lab{font-size:12px;fill:var(--text)}.lineage .plus{font-size:13px;font-weight:700;fill:var(--text)}.grid{display:grid;grid-template-columns:1fr;gap:12px}@media(min-width:640px){.grid{grid-template-columns:1fr 1fr}}@media(min-width:960px){.grid{grid-template-columns:1fr 1fr 1fr}}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;min-width:0;scroll-margin-top:8px}.card h3{font-size:1.125rem;margin:0}.en{display:block;font-size:.8125rem;color:var(--muted);font-weight:400}.tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.tag{font-size:.75rem;padding:2px 8px;border-radius:999px}.t-c{background:var(--cbg);color:var(--ctx)}.t-s{background:var(--sbg);color:var(--stx)}.t-p{background:var(--pbg);color:var(--ptx)}.t-n{background:var(--nbg);color:var(--ntx)}dl{margin:0;display:grid;grid-template-columns:5.5em 1fr;gap:4px 8px;font-size:.875rem}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.mk{display:inline-block;min-width:1.4em;text-align:center;font-weight:700;color:var(--accent)}.un{color:var(--muted)}.warn{color:var(--warn);font-size:.8125rem;margin:8px 0 0}.src{margin:8px 0 0;font-size:.75rem;color:var(--muted)}.srclist{list-style:none;padding:0;margin:0;font-size:.8125rem;display:grid;gap:6px}.srclist li{overflow-wrap:anywhere;scroll-margin-top:8px}.steps{list-style:none;margin:0;padding:0;display:grid;gap:20px}.step h4{font-size:1.0625rem;margin:0 0 8px}.step img{border-radius:12px;border:1px solid var(--border);margin-bottom:8px;width:100%;max-width:560px}.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.seg button{min-height:56px;border:1.5px solid var(--border);border-radius:12px;background:var(--surface);cursor:pointer;font-weight:700}.seg button[aria-pressed=true]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.pagefoot{margin-top:32px;padding-top:12px;border-top:1px solid var(--surface2);font-size:.75rem;color:var(--muted)}.pagefoot p{margin:0 0 4px}.seo-static{max-width:40rem;margin:0 auto;padding:1.5rem 1rem 3rem}.seo-static nav a{margin-right:1em}.res h2 .grit{font-size:.7em;font-weight:600}
