.h3dl-app{color-scheme:light;--ink:#13234d;--gold:#f4ca4d}.h3dl-app, .h3dl-app *{box-sizing:border-box}.h3dl-app,.h3dl-app{margin:0;width:100%;height:100%;overflow:hidden}.h3dl-app button{font:inherit}.h3dl-app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;background:linear-gradient(135deg,#107fce,#405bd8 55%,#7e4fe6)}.h3dl-app .app-header{height:66px;flex:0 0 66px;display:grid;grid-template-columns:max-content minmax(240px,1fr) 200px max-content;align-items:center;gap:14px;padding:8px 18px;background:linear-gradient(90deg,#06183d,#091b48 60%,#111c4e);color:#fff;box-shadow:0 2px 14px #07174155;z-index:10}.h3dl-app .brand{margin:0;font-size:clamp(18px,2vw,27px);font-weight:950;white-space:nowrap}.h3dl-app .header-center{min-width:0;display:flex;align-items:center;justify-content:center}.h3dl-app .tabs{width:200px;height:46px;display:flex;padding:3px;border-radius:17px;background:#ffffff12}.h3dl-app .tab{flex:1;border:0;border-radius:14px;background:transparent;color:#ffffff9c;font-weight:900;font-size:17px;cursor:pointer;position:relative}.h3dl-app .tab[aria-selected=true]{background:#ffffff13;color:#fff}.h3dl-app .tab[aria-selected=true]:after{content:"";position:absolute;left:8%;right:8%;bottom:0;height:4px;border-radius:4px;background:#6ba2ff}.h3dl-app .head-actions{justify-self:end;display:flex;align-items:center;gap:7px}.h3dl-app .icon-button{height:46px;border:1px solid #ffffff1f;border-radius:14px;color:#fff;background:#ffffff10;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.h3dl-app .icon-button.only-icon{width:46px}.h3dl-app .icon-button.data-button{padding:0 13px;font-size:13px;font-weight:900;white-space:nowrap}.h3dl-app .icon-button svg,.h3dl-app .tool svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.h3dl-app .workspace{position:relative;flex:1;min-height:0;margin:12px 20px 18px;border-radius:24px;background:radial-gradient(circle at 50% 38%,#fff 0,#f8fbff 56%,#e5edf6 100%);box-shadow:0 12px 34px #112e8260;overflow:hidden}.h3dl-app .workspace:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px #ffffffcc,inset 0 -26px 70px #2e4a7114;border-radius:inherit;z-index:7}.h3dl-app .hint{position:absolute;z-index:6;left:50%;top:24px;transform:translateX(-50%);margin:0;padding:8px 14px;border-radius:999px;background:#fffaf0ef;color:#586175;font-size:13px;font-weight:850;box-shadow:0 4px 14px #21385b16;pointer-events:none;transition:opacity .25s}.h3dl-app .hint.hide{opacity:0}.h3dl-app #stage{position:absolute;inset:0;width:100%;height:100%;z-index:2;display:block;touch-action:none;cursor:grab}.h3dl-app #stage:active{cursor:grabbing}.h3dl-app .loading{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 18px;border-radius:14px;background:#fffffff2;color:#315baa;font-size:15px;font-weight:900;box-shadow:0 10px 28px #1834532e}.h3dl-app .loading[hidden]{display:none}.h3dl-app .layer-switch{position:absolute;z-index:8;right:27px;bottom:27px;display:flex;flex-direction:column;gap:10px}.h3dl-app .layer-button{width:58px;min-width:58px;height:58px;padding:0;border:0;border-radius:50%;background:#fffffff2;color:#284f91;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 8px 19px #17376036;transition:transform .16s,background .16s,color .16s}.h3dl-app .layer-button:hover{transform:translateY(-2px)}.h3dl-app .layer-button[aria-selected=true]{background:#1e3a5f;color:#fff;box-shadow:0 0 0 4px #d4af37,0 8px 19px #17376036}.h3dl-app .layer-button:focus-visible,.h3dl-app .tab:focus-visible,.h3dl-app .tool:focus-visible,.h3dl-app .next:focus-visible,.h3dl-app .icon-button:focus-visible{outline:4px solid var(--gold);outline-offset:3px}.h3dl-app .focus-back{position:absolute;z-index:6;left:29px;top:84px;height:44px;padding:0 18px;border:0;border-radius:14px;background:#173d91;color:#fff;font-weight:950;box-shadow:0 7px 18px #17376036;cursor:pointer}.h3dl-app .focus-back[hidden]{display:none}.h3dl-app .focus-back:focus-visible{outline:4px solid var(--gold);outline-offset:3px}.h3dl-app .workspace.is-focus .layer-switch{display:none}.h3dl-app .workspace.is-focus .hint{background:#fff4f5;color:#8f2840}.h3dl-app .pulse-toggle{position:absolute;z-index:6;left:29px;top:138px;height:42px;padding:0 17px;border:0;border-radius:14px;background:#fff;color:#a91f3d;font-weight:950;box-shadow:0 7px 18px #1737602b;cursor:pointer}.h3dl-app .pulse-toggle[hidden]{display:none}.h3dl-app .pulse-toggle[aria-pressed=true]{background:#a91f3d;color:#fff}.h3dl-app .pulse-toggle:focus-visible{outline:4px solid var(--gold);outline-offset:3px}.h3dl-app .flow-toggle{position:absolute;z-index:6;left:29px;top:190px;height:42px;padding:0 17px;border:0;border-radius:14px;background:#fff;color:#285fd3;font-weight:950;box-shadow:0 7px 18px #1737602b;cursor:pointer}.h3dl-app .flow-toggle[hidden]{display:none}.h3dl-app .flow-toggle[aria-pressed=true]{background:#285fd3;color:#fff}.h3dl-app .flow-toggle:focus-visible{outline:4px solid var(--gold);outline-offset:3px}.h3dl-app .flow-legend{position:absolute;z-index:6;right:105px;bottom:26px;width:250px;padding:14px 16px;border-radius:17px;background:#fffffff2;box-shadow:0 9px 24px #1737602c}.h3dl-app .flow-legend[hidden]{display:none}.h3dl-app .flow-legend strong{display:block;margin-bottom:8px;font-size:15px}.h3dl-app .flow-route{display:block;margin:5px 0;font-size:13px;font-weight:900}.h3dl-app .flow-route.blue{color:#2468d6}.h3dl-app .flow-route.red{color:#d62643}.h3dl-app .flow-legend small{display:block;margin-top:8px;color:#5d6880;font-size:10px;font-weight:700;line-height:1.45}.h3dl-app .breath-controls{position:absolute;z-index:6;left:29px;top:138px;display:grid;grid-template-columns:repeat(2,94px);gap:8px}.h3dl-app .breath-controls[hidden]{display:none}.h3dl-app .breath-button{height:40px;padding:0 12px;border:0;border-radius:13px;background:#fff;color:#276780;font-weight:950;box-shadow:0 7px 18px #1737602b;cursor:pointer}.h3dl-app .breath-button[aria-pressed=true]{background:#287ca1;color:#fff}.h3dl-app .breath-button:focus-visible{outline:4px solid var(--gold);outline-offset:3px}.h3dl-app .lung-legend{position:absolute;z-index:6;right:105px;bottom:26px;width:245px;padding:14px 16px;border-radius:17px;background:#fffffff2;box-shadow:0 9px 24px #1737602c}.h3dl-app .lung-legend[hidden]{display:none}.h3dl-app .lung-legend strong{display:block;margin-bottom:8px;font-size:15px}.h3dl-app .lung-lobes{display:grid;grid-template-columns:12px 1fr 12px 1fr;align-items:center;gap:7px 6px;color:#4c5872;font-size:12px;font-weight:900}.h3dl-app .lobe-dot{width:11px;height:11px;border-radius:50%;box-shadow:inset 0 0 0 1px #8e425555}.h3dl-app .lung-legend small{display:block;margin-top:10px;color:#39738b;font-size:11px;font-weight:850}.h3dl-app .info-card{position:relative;width:min(100%,650px);min-width:0;min-height:46px;padding:3px 8px 3px 51px;color:#fff}.h3dl-app .info-card.empty{opacity:.86}.h3dl-app .part-orb{position:absolute;left:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff 0 8%,var(--part,#4f7ed9) 26%,color-mix(in srgb,var(--part,#4f7ed9),#173b35 38%) 100%);box-shadow:inset -4px -5px 8px #0a30252b,0 3px 8px #07162b55}.h3dl-app .part-name{margin:0 0 2px;font-size:16px;font-weight:950;line-height:1.2}.h3dl-app .part-desc{margin:0;color:#dce8ff;font-size:12px;font-weight:750;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h3dl-app .empty .part-name{font-size:15px}.h3dl-app .empty .part-desc{font-size:12px;color:#c9d7f2}.h3dl-app .part-callout{position:absolute;z-index:7;max-width:210px;padding:9px 13px;border-radius:12px;background:#132d62f2;color:#fff;font-size:16px;font-weight:950;line-height:1.25;box-shadow:0 8px 24px #071b4050;pointer-events:none;transform:translate(-50%,calc(-100% - 14px));white-space:nowrap}.h3dl-app .part-callout:after{content:"";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);border:8px solid transparent;border-top-color:#132d62f2;border-bottom:0}.h3dl-app .part-callout[hidden]{display:none}.h3dl-app .toolbar{position:absolute;right:101px;bottom:27px;z-index:8;display:flex;flex-direction:column;gap:12px}.h3dl-app .tool-wrap{position:relative}.h3dl-app .tool{width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;color:#2d69db;background:#fffffff2;box-shadow:0 8px 19px #17376036;cursor:pointer;transition:transform .16s,background .16s,color .16s}.h3dl-app .tool:hover{transform:translateY(-2px)}.h3dl-app .tool[aria-pressed=true]{background:#f4cf5f;color:#17345f;box-shadow:0 0 0 4px #f4cf5f55,0 8px 19px #17376036}.h3dl-app .tool.reset{color:#38a35e}.h3dl-app .tool-label{position:absolute;right:70px;top:50%;transform:translateY(-50%) translateX(5px);padding:7px 11px;border-radius:9px;background:#152756;color:#fff;white-space:nowrap;font-size:13px;font-weight:800;opacity:0;pointer-events:none;transition:.15s}.h3dl-app .tool-wrap:hover .tool-label,.h3dl-app .tool:focus-visible+.tool-label{opacity:1;transform:translateY(-50%)}.h3dl-app .quiz-panel{width:min(100%,650px);min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:10px;color:#fff}.h3dl-app .quiz-panel[hidden],.h3dl-app .info-card[hidden]{display:none}.h3dl-app .quiz-title{grid-column:1;margin:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h3dl-app .quiz-message{grid-column:1;height:auto;margin:2px 0 0;font-size:12px;font-weight:900;color:#dce8ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h3dl-app .next{grid-column:2;grid-row:1/3;width:auto;height:36px;margin:0;padding:0 14px;border:0;border-radius:12px;background:#f4cf5f;color:#17345f;font-weight:900;cursor:pointer}.h3dl-app .next[hidden]{display:none}.h3dl-app .credit-line{position:absolute;z-index:6;right:20px;bottom:10px;color:#748099;font-size:9px;font-weight:700;pointer-events:none}.h3dl-app .credit-modal{width:min(560px,calc(100% - 28px));padding:0;border:0;border-radius:22px;box-shadow:0 24px 70px #07183870;color:#1c2c55}.h3dl-app .credit-modal::backdrop{background:#07142d99}.h3dl-app .modal-content{padding:25px}.h3dl-app .modal-content h2{margin:0 0 14px;font-size:24px}.h3dl-app .modal-content p{font-size:14px;line-height:1.7}.h3dl-app .modal-content a{color:#285fd3}.h3dl-app .close-modal{width:100%;height:45px;margin-top:10px;border:0;border-radius:12px;background:#285fd3;color:#fff;font-weight:900;cursor:pointer}@media(max-width:900px){.h3dl-app .app-header{grid-template-columns:max-content minmax(160px,1fr) 160px max-content;gap:8px;padding-inline:10px}.h3dl-app .brand{font-size:17px}.h3dl-app .tabs{width:160px}.h3dl-app .icon-button.data-button span{display:none}.h3dl-app .icon-button.data-button{width:46px;padding:0}.h3dl-app .part-desc{font-size:11px}}@media(max-width:680px){.h3dl-app .app-header{height:58px;flex-basis:58px;grid-template-columns:minmax(0,1fr) 124px max-content;padding:6px 7px;gap:6px}.h3dl-app .brand{display:none}.h3dl-app .tabs{width:124px;height:42px}.h3dl-app .tab{font-size:12px}.h3dl-app .head-actions{gap:4px}.h3dl-app .icon-button{height:40px}.h3dl-app .icon-button.only-icon,.h3dl-app .icon-button.data-button{width:40px}.h3dl-app .workspace{margin:8px 8px 10px;border-radius:17px}.h3dl-app .hint{top:16px;max-width:calc(100% - 150px);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h3dl-app .layer-switch{right:9px;bottom:12px;gap:7px}.h3dl-app .layer-button{width:47px;min-width:47px;height:47px;font-size:11px}.h3dl-app .focus-back{left:14px;top:52px;height:36px;padding:0 13px;font-size:13px}.h3dl-app .pulse-toggle{left:14px;top:96px;height:36px;padding:0 13px;font-size:13px}.h3dl-app .flow-toggle{left:14px;top:140px;height:36px;padding:0 13px;font-size:13px}.h3dl-app .breath-controls{left:14px;top:96px;grid-template-columns:repeat(2,76px);gap:6px}.h3dl-app .breath-button{height:34px;padding:0 8px;font-size:12px}.h3dl-app .workspace.is-focus .hint{top:52px;left:auto;right:12px;transform:none}.h3dl-app .flow-legend,.h3dl-app .lung-legend{right:61px;bottom:116px;width:210px;padding:10px 12px}.h3dl-app .flow-route{font-size:11px}.h3dl-app .lung-lobes{font-size:10px;gap:5px}.h3dl-app .toolbar{right:63px;bottom:12px;gap:8px}.h3dl-app .tool{width:47px;height:47px}.h3dl-app .tool-label{display:none}.h3dl-app .part-callout{max-width:180px;padding:7px 10px;font-size:14px}.h3dl-app .info-card{min-height:40px;padding:2px 3px}.h3dl-app .part-orb,.h3dl-app .part-desc{display:none}.h3dl-app .part-name,.h3dl-app .empty .part-name{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h3dl-app .quiz-title{font-size:12px}.h3dl-app .quiz-message{font-size:10px}.h3dl-app .next{height:32px;padding:0 8px;font-size:11px}.h3dl-app .credit-line{display:none}}@media(max-height:610px){.h3dl-app .workspace{margin-top:7px;margin-bottom:8px}.h3dl-app .hint{display:none}.h3dl-app .layer-switch{gap:6px}.h3dl-app .layer-button,.h3dl-app .tool{width:45px;min-width:45px;height:45px}.h3dl-app .toolbar{gap:7px}}@media(prefers-reduced-motion:reduce){.h3dl-app, .h3dl-app *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
body.admin-bar .h3dl-app{height:calc(100vh - 32px);height:calc(100dvh - 32px)}@media(max-width:782px){body.admin-bar .h3dl-app{height:calc(100vh - 46px);height:calc(100dvh - 46px)}}

/* v1.6.0: 修正: 右下の操作を縦一列に変更（横一列から復帰） */
.h3dl-app .bottom-controls{position:absolute;z-index:8;right:27px;bottom:27px;display:flex;flex-direction:column;align-items:center;gap:12px}
.h3dl-app .bottom-controls .toolbar,.h3dl-app .bottom-controls .layer-switch{position:static;display:flex;flex-direction:column;align-items:center;gap:10px}
.h3dl-app .workspace.is-focus .bottom-controls .layer-switch{display:none}
@media(max-width:680px){.h3dl-app .bottom-controls{right:9px;bottom:12px;gap:7px}.h3dl-app .bottom-controls .toolbar,.h3dl-app .bottom-controls .layer-switch{gap:5px}.h3dl-app .bottom-controls .layer-button,.h3dl-app .bottom-controls .tool{width:39px;min-width:39px;height:39px}.h3dl-app .bottom-controls .layer-button{font-size:10px}}
@media(max-width:390px){.h3dl-app .bottom-controls{right:6px;gap:4px}.h3dl-app .bottom-controls .toolbar,.h3dl-app .bottom-controls .layer-switch{gap:3px}.h3dl-app .bottom-controls .layer-button,.h3dl-app .bottom-controls .tool{width:37px;min-width:37px;height:37px}.h3dl-app .bottom-controls .tool svg{width:21px;height:21px}}
@media(max-height:610px){.h3dl-app .bottom-controls{gap:7px}.h3dl-app .bottom-controls .toolbar,.h3dl-app .bottom-controls .layer-switch{gap:6px}}
