@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
:root{--ink:#203e3a;--muted:#70817c;--accent:#277b6b;--line:#dce4df;--paper:#fafbf8;--serif:'Hiragino Mincho ProN','Yu Mincho',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px}button,select,input{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:none;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible+.switch,#viewport:focus-visible{outline:3px solid #3c927e;outline-offset:4px}button:hover{filter:brightness(.94)}header{height:100px;max-width:1600px;margin:auto;padding:0 44px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:15px;color:inherit;text-decoration:none}.brand-icon{font-size:38px;font-weight:400;width:52px;height:52px;border:1px solid #c4d4cb;border-radius:50%;display:grid;place-items:center;color:#588575}.eyebrow{font-family:Arial,sans-serif;display:block;font-size:9px;letter-spacing:2.6px;font-weight:600;color:#769087}h1{font-family:var(--serif);font-size:25px;font-weight:600;letter-spacing:.12em;margin:6px 0 0}.header-actions{display:flex;align-items:center;gap:22px}.quiet{color:var(--muted);font-size:12px;min-height:44px}.share{border:1px solid #cbd8d0;border-radius:24px;padding:11px 21px;font-size:12px}.share span{margin-left:20px}main{max-width:1600px;padding:0 28px;display:grid;grid-template-columns:minmax(0,1fr) 324px;gap:28px;margin:0 auto}.stage{position:relative;min-width:0;height:calc(100dvh - 149px);min-height:630px;max-height:1050px;border:1px solid #dbe4de;border-radius:24px;background:radial-gradient(ellipse at 50% 45%,#fff 0%,#f1f4ef 58%,#e5ece6 100%);overflow:hidden}.stage-heading{position:absolute;top:25px;left:28px;z-index:2;display:flex;gap:8px;align-items:center;color:#77877c;font-size:11px;letter-spacing:.06em}.live-dot{width:5px;height:5px;border-radius:50%;background:#4f8f72}#viewport{width:100%;height:100%;touch-action:none;outline:none}#viewport canvas{display:block;width:100%;height:100%}.stage-tools{position:absolute;right:22px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:3px;padding:5px;border:1px solid #dde5df;border-radius:24px;background:#fffffff0;box-shadow:0 5px 20px #28413508}.stage-tools button{width:38px;height:39px;font-family:Arial;font-size:24px}.stage-tools span{height:1px;background:var(--line);margin:2px 7px}.stage-footer{position:absolute;bottom:22px;left:28px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.stage-footer>*{pointer-events:auto}.gesture{font-size:10px;letter-spacing:.03em;color:#79887e;display:flex;align-items:center;gap:8px}.gesture>span{font-size:20px}.gesture i{font-style:normal}.pill{border:1px solid #ccd9d0;background:#fbfdfac9;border-radius:24px;padding:10px 15px;min-height:44px;font-size:11px;white-space:nowrap}.pill span{font-size:20px;vertical-align:middle;margin-right:4px}.pill[aria-pressed=true]{background:var(--ink);color:white}.axis-badge{position:absolute;top:23px;right:25px;font-size:10px;letter-spacing:.15em;padding:7px 12px;background:#fff8;border:1px solid #d9e3db;border-radius:20px}.side-marker{position:absolute;left:25px;top:50%;font-size:20px;color:#94a095;font-family:Georgia}.side-marker span{display:block;font-size:9px;text-align:center;margin-top:5px}.panel{padding:15px 12px 0 0}.panel-intro{margin:0 0 25px}.panel-intro h2{font-family:var(--serif);font-size:23px;font-weight:500;letter-spacing:.04em;margin:12px 0}.panel-intro p{color:var(--muted);line-height:1.85;font-size:12px;margin:0}.control-section{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-title h3{font-size:12px;font-weight:600;margin:0}.section-title>span{font-size:8px;color:#97a69d;letter-spacing:1.5px;font-family:Arial}.view-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.view-grid button{border:1px solid #dce4dd;border-radius:9px;min-height:40px;font-size:11px;background:#fff}.view-grid .active{background:var(--ink);border-color:var(--ink);color:#fff}.toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:39px;cursor:pointer;font-size:11px}.toggle-row>span:first-child{display:flex;align-items:center;gap:8px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#cbb998}.dot.ligament{background:#8cadab}.dot.cartilage{background:#72969f}.toggle-row small{font-size:9px;color:#94a095}.toggle-row input{opacity:0;position:absolute;right:0;width:38px;height:24px}.switch{display:block;width:32px;height:18px;background:#c7d1c9;border-radius:20px;transition:.2s;pointer-events:none}.switch:after{content:'';display:block;width:12px;height:12px;background:white;border-radius:50%;margin:3px;transition:.2s}.toggle-row input:checked+.switch{background:#4c8a73}.toggle-row input:checked+.switch:after{transform:translateX(14px)}.label-toggle{border-top:1px dashed #e1e6df;margin-top:8px;padding-top:8px}select{width:100%;border:1px solid #d6e0d8;border-radius:8px;background:#fff;color:#516a5e;padding:11px 28px 11px 10px;font-size:10px;min-height:44px}.part-card{padding:19px 18px 17px;margin-top:12px;border-radius:14px;background:#eaf0e8;min-height:172px}.part-number{font-size:9px;color:#718875;letter-spacing:1px}.part-card h3{font-family:var(--serif);font-size:18px;font-weight:500;margin:10px 0 5px}.part-card #part-en{font-family:Georgia;font-style:italic;color:#7d9182;font-size:12px}.part-card p{font-size:11px;line-height:1.9;color:#68806f;margin:11px 0 0}.part-card button{font-size:11px;text-decoration:underline;padding:12px 0 0}.panel-note{display:flex;gap:8px;color:#8a9b8c;margin-top:15px;font-size:10px}.panel-note p{margin:0;line-height:1.8}footer{max-width:1600px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:12px 43px;color:#8d9a90;font-size:9px;letter-spacing:.05em}footer button{font-size:9px;min-height:30px}.loading{position:absolute;inset:0;background:#f0f4efed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:5}.loading strong{font-size:15px;font-weight:500}.loading>span:last-child{font-size:11px;color:#839186}.spinner{width:32px;height:32px;border:2px solid #c6d5c9;border-top-color:#518676;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#labels{position:absolute;inset:0;pointer-events:none}.label{position:absolute;font-size:10px;color:#435e51;background:#fffffff0;border:1px solid #d6e1d7;padding:6px 9px;border-radius:5px;white-space:nowrap;transform:translate(-50%,-50%);box-shadow:0 2px 8px #38503708}.label:before{content:'';position:absolute;left:-5px;top:50%;width:5px;height:5px;border-radius:50%;background:#5b907b}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:12px;background:#233d34;color:#fff;font-size:12px;box-shadow:0 8px 30px #1233;z-index:25;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.visible{opacity:1}dialog{border:1px solid #d6e2d7;border-radius:20px;width:540px;max-width:calc(100vw - 30px);padding:36px;color:var(--ink);background:#fafbf8;max-height:85dvh;overflow:auto}dialog::backdrop{background:#183c305c;backdrop-filter:blur(4px)}.close-dialog{position:absolute;right:12px;top:7px;font-size:27px;width:44px;height:44px}dialog h2{font-family:var(--serif);font-size:24px;font-weight:500;margin:0 0 22px}dialog h3{font-size:13px;margin-top:22px}dialog p,dialog li{font-size:12px;line-height:1.9;color:#657b6d}dialog a{color:#377b64}dialog ol{padding-left:20px}.share-url{width:100%;padding:12px;border:1px solid #c5d6c8;border-radius:6px;background:#fff;color:#456451}dialog .dialog-action{background:#315e4d;color:white;padding:12px 20px;border-radius:9px;min-height:44px;margin-top:12px}.stage:fullscreen{height:100dvh;max-height:none;border-radius:0;background:#edf1e9}.stage:fullscreen .stage-footer{bottom:30px}@media(min-width:1500px){main{grid-template-columns:minmax(0,1fr) 355px;gap:42px}.panel{padding-top:30px}.panel-intro{margin-bottom:35px}.control-section{margin-top:26px}.toggle-row{min-height:44px}}@media(max-width:1050px){header{padding:0 26px}main{padding:0 16px;gap:20px;grid-template-columns:minmax(0,1fr) 280px}.panel{padding-right:0}.gesture{font-size:9px;gap:5px}.stage-footer{left:18px;right:15px}.gesture>span{display:none}.stage-tools{right:12px}}@media(max-width:760px){header{height:79px;padding:0 20px}.brand{gap:9px}.brand-icon{width:38px;height:38px;font-size:26px}.eyebrow{font-size:7px;letter-spacing:1.6px}h1{font-size:21px;margin-top:4px}.header-actions{gap:9px}.share{padding:8px 13px;min-height:40px}.share span{margin-left:5px}.quiet{font-size:10px}main{display:flex;flex-direction:column;padding:0 12px;gap:0}.stage{height:57dvh;min-height:390px;max-height:640px;border-radius:20px}.stage-heading{left:18px;top:19px;font-size:9px}.axis-badge{top:15px;right:16px;font-size:9px;padding:6px 10px}.side-marker{left:17px;font-size:17px}.stage-tools{right:10px;padding:3px;gap:1px}.stage-tools button{width:38px;height:44px;font-size:23px}.stage-footer{left:15px;right:12px;bottom:14px}.gesture{font-size:8px;gap:5px}.gesture i{display:none}.pill{font-size:9px;padding:6px 10px;min-height:38px}.pill span{font-size:17px;margin-right:2px}.panel{padding:23px 8px 8px}.panel-intro{display:none}.control-section{margin-top:17px;padding-top:17px}.control-section:first-of-type{margin-top:0}.panel>.control-section:nth-child(2){margin-top:0;border:0;padding-top:0}.section-title{margin-bottom:12px}.section-title h3{font-size:12px}.view-grid{grid-template-columns:repeat(6,1fr);gap:5px}.view-grid button{font-size:10px;min-height:42px;border-radius:8px}.toggle-row{min-height:44px;font-size:12px}.switch{width:36px;height:22px}.switch:after{width:16px;height:16px}.toggle-row input:checked+.switch:after{transform:translateX(14px)}select{font-size:12px}.part-card h3{font-size:19px}.part-card p{font-size:12px}.part-card{min-height:155px}.panel-note{font-size:10px;margin:17px 0 5px}.panel-note br{display:none}footer{padding:6px 20px 20px;font-size:8px}footer>span{display:none}footer button{font-size:10px}.label{font-size:8px;padding:5px 6px}dialog{padding:32px 24px}#toast{font-size:11px;white-space:normal;width:max-content}.desktop{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}

/* ---- 寛骨筋：追加スタイル ---- */
.dot.inner{background:#b4675b}.dot.muscle{background:#a94a40}.dot.fascia{background:#a9c7bd}.dot.bursa{background:#b4addf}.dot.cartilage{background:#8fa6ad}
.toggle-row{min-height:36px}
.toggle-row small{margin-left:2px}
.part-card dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:13px 0 0;padding-top:12px;border-top:1px solid #d6e2d3;font-size:10.5px;line-height:1.65}
.part-card dt{color:#6f8a77;font-weight:600;white-space:nowrap}
.part-card dd{margin:0;color:#4f6a5a}
.source-badge{display:inline-block;margin-top:12px;font-size:9.5px;letter-spacing:.04em;padding:4px 9px;border-radius:20px;border:1px solid #c7d8cb;color:#4e7563;background:#f5f8f3}
.source-badge.schematic{border-color:#d6cbe7;color:#6a5b8a;background:#f6f3fa}
.part-card #clear-selection{display:block}
.label{cursor:default}
.label.schematic{border-style:dashed}
.side-marker.right{left:auto;right:76px}
@media(max-width:760px){.part-card dl{font-size:11.5px}.source-badge{font-size:10.5px}.side-marker.right{right:64px}.toggle-row>span:first-child{flex-wrap:wrap;row-gap:0;padding-right:48px}.toggle-row small{font-size:9.5px}}
@media(max-width:360px){.view-grid{grid-template-columns:repeat(3,1fr)}.header-actions{gap:4px}.quiet{padding:0 4px}}
@media(min-width:761px){.panel{position:sticky;top:12px;align-self:start;max-height:calc(100dvh - 125px);overflow-y:auto;padding-right:10px;scrollbar-width:thin}}
#labels{display:none}
[hidden]{display:none!important}
.panel-note p span{display:block}
.quiet,.share{white-space:nowrap}
@media(max-width:380px){header{padding:0 14px}.brand-icon{width:34px;height:34px;font-size:22px}.eyebrow{font-size:6px;letter-spacing:1.1px;white-space:nowrap}.share{padding:8px 11px}.gesture{display:none}}
