.fl-shell{position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#1e3a5f;font-family:system-ui,-apple-system,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
.fl-shell,.fl-shell *{box-sizing:border-box}
.fl-panel{position:absolute;inset:0;min-height:0;overflow:hidden}
.fl-panel[hidden]{display:none}
.fl-shell .fm-root,.fl-shell .tt-app{height:100%;min-height:0}
.fl-mode-nav{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.fl-mode-arrow svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.fl-mode-arrow:disabled{opacity:.3;cursor:not-allowed;box-shadow:0 2px 7px #0003}
body.admin-bar .fl-shell{height:calc(100vh - 32px);height:calc(100dvh - 32px)}
@media(max-width:782px){body.admin-bar .fl-shell{height:calc(100vh - 46px);height:calc(100dvh - 46px)}}

/* 元の分数モデルボード */
.fm-root{--navy:#1e3a5f;--navy-dark:#0f1e3a;--gold:#d4af37;--gold-light:#f4cf5f;--ink:#263746;--teal:#24aaa5;--teal-light:#5bc7c3;--line:#d8e4ed;--empty:#f8fafc;position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;background:linear-gradient(135deg,#0ea5e9,#6366f1,#8b5cf6);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
    .fm-root,.fm-root *{box-sizing:border-box}
    .fm-root button{font:inherit;touch-action:manipulation}
    .fm-app{height:100%;display:flex;flex-direction:column;overflow:hidden}
    .fm-workspace{flex:1;min-height:0;padding:14px 90px 14px 14px;overflow:hidden}
    .fm-board{width:100%;height:100%;min-height:0;max-width:1600px;margin:0 auto;display:block;overflow:hidden;background:#fff;border-radius:18px;border-top:5px solid var(--teal);box-shadow:0 10px 28px #0004}
    .fm-controls{position:absolute;left:28px;top:28px;z-index:40;padding:0 12px 10px;display:flex;flex-direction:column;align-items:center;background:#fff;border:2px solid #c9d9e5;border-radius:16px;box-shadow:0 8px 24px #0004;user-select:none}
    .fm-drag-handle{width:100%;height:30px;display:flex;align-items:center;justify-content:center;gap:6px;color:#718397;font-size:14px;font-weight:900;cursor:grab;touch-action:none}
    .fm-drag-handle:active{cursor:grabbing}
    .fm-grip{font-size:19px;letter-spacing:-5px;margin-right:5px}
    .fm-fraction-editor{display:grid;grid-template-columns:auto 50px 72px 50px;grid-template-rows:43px 4px 43px;align-items:center;column-gap:7px}
    .fm-editor-label{font-size:20px;font-weight:900;color:var(--navy);text-align:right;padding-right:6px}
    .fm-label-num{grid-column:1;grid-row:1}.fm-label-den{grid-column:1;grid-row:3}
    .fm-minus-num{grid-column:2;grid-row:1}.fm-plus-num{grid-column:4;grid-row:1}.fm-minus-den{grid-column:2;grid-row:3}.fm-plus-den{grid-column:4;grid-row:3}
    .fm-value{display:grid;place-items:center;font-size:38px;font-weight:900;line-height:1;color:var(--ink)}
    .fm-num{grid-column:3;grid-row:1}.fm-den{grid-column:3;grid-row:3}
    .fm-frac-line{grid-column:3;grid-row:2;height:4px;border-radius:4px;background:var(--ink)}
    .fm-step{width:50px;height:44px;border:0;border-radius:13px;display:grid;place-items:center;background:#e8f0f6;color:var(--navy);font-size:29px;font-weight:900;cursor:pointer;box-shadow:0 2px 5px #0002}
    .fm-step.plus{background:var(--gold);color:var(--navy-dark)}
    .fm-step:disabled{opacity:.28;cursor:not-allowed;box-shadow:none}
    .fm-model-stage{width:100%;height:100%;min-height:0;position:relative;display:grid;place-items:center;padding:14px;overflow:hidden}
    .fm-comparison{width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-columns:repeat(var(--items,1),minmax(0,1fr));gap:12px;overflow:hidden}
    .fm-comparison-item{position:relative;min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center;border:3px solid var(--line);border-radius:16px;background:#fbfdff;cursor:pointer;transition:border-color .16s,box-shadow .16s,background .16s}
    .fm-comparison-item.is-selected{border-color:var(--gold);background:#fff;box-shadow:inset 0 0 0 3px #f4cf5f55}
    .fm-comparison-item:focus-visible{outline:4px solid var(--gold-light);outline-offset:-6px}
    .fm-item-fraction{position:absolute;left:12px;top:10px;z-index:3;width:58px;display:grid;grid-template-rows:auto 3px auto;text-align:center;font-size:28px;font-weight:900;line-height:1;color:var(--navy);pointer-events:none}
    .fm-item-fraction-line{height:3px;margin:4px 0;border-radius:4px;background:var(--navy)}
    .fm-item-number{position:absolute;right:12px;top:10px;z-index:3;padding:5px 9px;border-radius:999px;background:#e8f0f6;color:var(--navy);font-size:13px;font-weight:900;pointer-events:none}
    .fm-comparison-item.is-selected .fm-item-number{background:var(--gold);color:var(--navy-dark)}
    .fm-models{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;gap:clamp(12px,2.4vw,34px);overflow:hidden}
    .fm-model{flex:0 0 auto;display:grid;place-items:center;animation:fm-in .25s ease-out}
    .fm-models[data-count="1"] .fm-circle{width:min(64vh,55vw,610px);height:min(64vh,55vw,610px)}
    .fm-models[data-count="2"] .fm-circle{width:min(55vh,40vw,470px);height:min(55vh,40vw,470px)}
    .fm-models[data-count="3"] .fm-circle,.fm-models[data-count="4"] .fm-circle{width:min(43vh,27vw,350px);height:min(43vh,27vw,350px)}
    .fm-circle svg{display:block;width:100%;height:100%;filter:drop-shadow(0 5px 8px #0002)}
    .fm-models[data-count="1"] .fm-beaker{width:min(43vh,34vw,360px);height:min(72vh,58vw,600px)}
    .fm-models[data-count="2"] .fm-beaker{width:min(36vh,27vw,300px);height:min(61vh,46vw,510px)}
    .fm-models[data-count="3"] .fm-beaker,.fm-models[data-count="4"] .fm-beaker{width:min(27vh,19vw,230px);height:min(46vh,34vw,390px)}
    .fm-beaker svg{display:block;width:100%;height:100%;filter:drop-shadow(0 5px 8px #0002)}
    .fm-models.is-tape{flex-direction:column;flex-wrap:nowrap;gap:clamp(8px,1.5vh,16px);padding:2% 3%}
    .fm-tape-row{width:min(96%,1380px);display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:18px}
    .fm-tape-fraction{display:grid;grid-template-rows:auto 4px auto;justify-self:end;width:62px;text-align:center;font-size:34px;font-weight:900;line-height:1}
    .fm-tape-fraction-line{height:4px;border-radius:4px;background:var(--ink);margin:4px 0}
    .fm-tape{width:100%;height:clamp(78px,14vh,130px);display:grid;border:4px solid var(--navy);border-radius:8px;overflow:hidden;background:var(--empty);box-shadow:0 5px 10px #0002}
    .fm-tape-cell{border-right:2px solid #7890a5;background:#fff}
    .fm-tape-cell:last-child{border-right:0}.fm-tape-cell.is-filled{background:var(--teal-light)}
    .fm-tape.no-divisions .fm-tape-cell{border-right-color:transparent}
    .fm-comparison[data-items="2"] .fm-models[data-count="1"] .fm-circle{width:min(56vh,36vw,480px);height:min(56vh,36vw,480px)}
    .fm-comparison[data-items="3"] .fm-models[data-count="1"] .fm-circle{width:min(48vh,25vw,360px);height:min(48vh,25vw,360px)}
    .fm-comparison[data-items="2"] .fm-models[data-count="1"] .fm-beaker{width:min(35vh,24vw,300px);height:min(60vh,42vw,500px)}
    .fm-comparison[data-items="3"] .fm-models[data-count="1"] .fm-beaker{width:min(30vh,18vw,240px);height:min(52vh,31vw,420px)}
    .fm-comparison[data-items="2"] .fm-models[data-count]:not([data-count="1"]) .fm-circle,.fm-comparison[data-items="3"] .fm-models[data-count]:not([data-count="1"]) .fm-circle{width:min(31vh,17vw,250px);height:min(31vh,17vw,250px)}
    .fm-comparison[data-items="2"] .fm-models[data-count]:not([data-count="1"]) .fm-beaker,.fm-comparison[data-items="3"] .fm-models[data-count]:not([data-count="1"]) .fm-beaker{width:min(22vh,13vw,175px);height:min(38vh,23vw,300px)}
    .fm-comparison .fm-models.is-tape{padding:54px 12px 12px}
    .fm-comparison .fm-tape-row{grid-template-columns:58px minmax(0,1fr);gap:8px;width:98%}
    .fm-comparison .fm-tape-fraction{width:46px;font-size:25px}
    .fm-comparison[data-items="2"] .fm-tape,.fm-comparison[data-items="3"] .fm-tape{height:clamp(54px,11vh,96px)}
    .fm-comparison[data-layout="aligned"] .fm-item-fraction{color:var(--item-color)}
    .fm-comparison[data-layout="aligned"] .fm-item-fraction-line{background:var(--item-color)}
    .fm-comparison[data-layout="aligned"] .fm-item-number{border-left:7px solid var(--item-color)}
    .fm-comparison[data-layout="aligned"][data-mode="tape"]{display:flex;flex-direction:column;justify-content:center;gap:0}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-comparison-item{flex:0 0 auto;width:100%;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-item-number{display:none}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-item-fraction{left:10px;top:50%;transform:translateY(-50%)}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-comparison-item.is-selected .fm-item-fraction{padding:5px;border-radius:8px;background:#fff;box-shadow:0 0 0 4px #f4cf5f99}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-models.is-tape{height:auto;padding:0 10px 0 82px;gap:0}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-tape-row{width:100%;grid-template-columns:minmax(0,1fr);gap:0}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-tape-fraction{display:none}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-tape{height:clamp(66px,11vh,100px);border-radius:0;box-shadow:none}
    .fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-comparison-item+.fm-comparison-item .fm-tape{margin-top:-4px}
    .fm-aligned-circle-card{grid-column:1/-1;position:relative;width:100%;height:100%;min-height:0;overflow:hidden}
    .fm-aligned-circle-body{width:100%;height:100%;min-height:0;padding:86px 3% 2%;display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,70px);overflow:hidden}
    .fm-circle-overlay{position:relative;flex:0 1 auto;width:min(66vh,48vw,610px);height:min(66vh,48vw,610px);aspect-ratio:1}
    .fm-circle-overlay .fm-circle{position:absolute;inset:0;width:100%;height:100%}
    .fm-circle-extras{flex:0 1 46%;min-width:0;max-height:100%;display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;gap:clamp(12px,2vw,26px);overflow:hidden}
    .fm-circle-extra{position:relative;flex:0 1 auto;width:min(31vh,20vw,280px);height:min(31vh,20vw,280px);aspect-ratio:1;padding-bottom:32px;color:var(--item-color)}
    .fm-circle-extra .fm-circle{width:100%;height:100%}
    .fm-circle-extra-fraction{position:absolute;left:50%;bottom:0;width:42px;display:grid;grid-template-rows:auto 3px auto;justify-items:center;transform:translateX(-50%);font-size:20px;font-weight:900;line-height:1;color:var(--item-color)}
    .fm-circle-extra-line{width:34px;height:3px;margin:2px 0;border-radius:3px;background:currentColor}
    .fm-controls[hidden],.fm-tool[hidden]{display:none}
    .fm-comparison[data-layout="numberline"]{display:block;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
    .fm-numberline-card{width:100%;height:auto;min-height:100%;padding:6px 24px 4px;overflow:visible}
    .fm-numberline-rows{width:100%;height:auto;min-height:100%;display:grid;grid-template-rows:none;grid-auto-rows:clamp(58px,7.5vh,76px);gap:0}
    .fm-numberline-rows.is-filtered{margin:auto}
    .fm-numberline-row{position:relative;width:100%;min-width:0;min-height:0;padding:0 30px;color:var(--navy)}
    .fm-numberline-track{position:relative;width:100%;height:100%;min-height:48px;display:block}
    .fm-numberline-axis{position:absolute;left:0;right:0;bottom:8px;height:3px;background:var(--navy)}
    .fm-numberline-fill{position:absolute;left:0;bottom:11px;height:clamp(8px,1.3vh,13px);border:2px solid #bd8200;border-bottom:0;background:#f3bd1d;border-radius:3px 3px 0 0;transition:width .18s ease-out}
    .fm-numberline-tick{position:absolute;bottom:0;width:44px;height:100%;padding:0;border:0;transform:translateX(-50%);background:transparent;color:var(--navy);cursor:pointer}
    .fm-numberline-tick::before{content:"";position:absolute;left:50%;bottom:3px;width:2px;height:18px;transform:translateX(-50%);background:var(--navy)}
    .fm-numberline-tick.is-major::before{bottom:0;width:3px;height:25px}
    .fm-numberline-tick.is-target::before{z-index:2;width:4px;background:#ef7b25}
    .fm-numberline-tick.is-target::after{content:"";position:absolute;z-index:3;left:50%;bottom:5px;width:13px;height:13px;border:3px solid #fff;border-radius:50%;transform:translateX(-50%);background:#ef7b25;box-shadow:0 1px 5px #0004}
    .fm-numberline-tick>span{position:absolute;left:50%;bottom:25px;transform:translateX(-50%);white-space:nowrap;background:#fff;padding:1px 3px;border-radius:5px}
    .fm-numberline-tick:hover>span,.fm-numberline-tick:focus-visible>span,.fm-numberline-tick.is-target>span{color:#c75512;font-weight:900;box-shadow:0 0 0 2px #f4cf5f99}
    .fm-numberline-tick:focus-visible{outline:3px solid var(--gold-light);outline-offset:-3px;border-radius:8px}
    .fm-numberline-integer{font-size:19px;font-weight:800;line-height:1}
    .fm-numberline-label-fraction{width:30px;display:grid;grid-template-rows:auto 2px auto;justify-items:center;font-size:15px;font-weight:800;line-height:1}
    .fm-numberline-label-line{width:25px;height:2px;margin:1px 0;border-radius:3px;background:currentColor}
    .fm-combined-beaker-card{grid-column:1/-1;position:relative;width:100%;height:100%;min-height:0;display:grid;place-items:center;overflow:hidden}
    .fm-combined-beaker{width:min(47vh,38vw,410px);height:min(76vh,62vw,650px);margin-top:42px;filter:drop-shadow(0 5px 8px #0002)}
    .fm-combined-labels{position:absolute;left:50%;top:12px;z-index:4;width:min(72%,560px);display:grid;gap:12px;transform:translateX(-50%)}
    .fm-combined-choice{min-width:0;padding:6px 10px;border:3px solid var(--item-color);border-radius:12px;display:grid;grid-template-rows:auto 3px auto;justify-items:center;background:#fff;color:var(--item-color);font-size:24px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 3px 9px #0002}
    .fm-combined-choice[aria-pressed="true"]{box-shadow:0 0 0 4px #f4cf5f99,0 3px 9px #0002}
    .fm-combined-choice-line{width:38px;height:3px;margin:3px 0;border-radius:3px;background:currentColor}
    .fm-toolbar{position:absolute;right:20px;bottom:20px;z-index:30;display:flex;flex-direction:column;align-items:flex-end;gap:11px}
    .fm-tool{position:relative;width:56px;height:56px;border:0;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);box-shadow:0 4px 14px #0005;font-size:18px;font-weight:900;cursor:pointer}
    .fm-tool:disabled{opacity:.35;cursor:not-allowed;box-shadow:0 2px 7px #0003}
    .fm-tool[aria-pressed="true"]{background:var(--gold);color:var(--navy-dark);box-shadow:0 0 0 4px #f4cf5f66,0 4px 14px #0005}
    .fm-tool::after{content:attr(data-tip);position:absolute;right:66px;padding:6px 9px;border-radius:7px;background:var(--navy-dark);color:#fff;font-size:13px;font-weight:800;white-space:nowrap;opacity:0;pointer-events:none;transition:.15s opacity}
    .fm-tool:hover::after,.fm-tool:focus-visible::after{opacity:1}
    .fm-tool-symbol{font-size:25px;line-height:1}
    .fm-menu-wrap{position:relative;width:56px;height:56px;flex:0 0 56px}
    .fm-menu-wrap[hidden],.fm-popout[hidden],.fm-mini-tool[hidden]{display:none}
    .fm-popout{position:absolute;right:68px;top:50%;z-index:4;padding:7px;display:flex;align-items:center;gap:8px;transform:translateY(-50%);border:2px solid #ffffff70;border-radius:999px;background:#0f1e3ae8;box-shadow:0 6px 18px #0005}
    .fm-mini-tool{position:relative;width:46px;height:46px;flex:0 0 46px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);box-shadow:0 2px 7px #0004;font-size:19px;font-weight:900;cursor:pointer;touch-action:manipulation}
    .fm-mini-tool:hover,.fm-mini-tool:focus-visible{outline:4px solid var(--gold-light);outline-offset:1px}
    .fm-mini-tool[aria-pressed="true"]{background:var(--gold);color:var(--navy-dark)}
    .fm-mini-tool:disabled{opacity:.35;cursor:not-allowed}
    .fm-mini-tool::after{content:attr(data-tip);position:absolute;left:50%;bottom:55px;padding:5px 8px;border-radius:6px;transform:translateX(-50%);background:var(--navy-dark);color:#fff;font-size:12px;font-weight:800;white-space:nowrap;opacity:0;pointer-events:none}
    .fm-mini-tool[data-tip]:hover::after,.fm-mini-tool[data-tip]:focus-visible::after{opacity:1}
    .fm-more-symbol{font-size:31px;line-height:.6;transform:translateY(-4px)}
    #fractionCountBtn{font-size:29px;line-height:1}
    #moreToolsBtn[aria-expanded="true"]{background:var(--gold);color:var(--navy-dark)}
    .fm-mode-icon{display:block;width:31px;height:31px}
    .fm-filter-icon{display:block;width:30px;height:30px}
    .fm-mode-letter{font-size:22px;font-weight:900;line-height:1}
    .fm-tool:focus-visible,.fm-step:focus-visible{outline:4px solid var(--gold-light);outline-offset:2px}
    @keyframes fm-in{from{opacity:.3;transform:scale(.96)}to{opacity:1;transform:none}}
    @media(max-width:720px){
      .fm-workspace{padding:8px 70px 8px 8px}.fm-board{border-radius:14px}.fm-controls{left:10px;top:10px;padding:0 8px 7px}.fm-drag-handle{height:26px}.fm-fraction-editor{grid-template-columns:auto 42px 58px 42px;grid-template-rows:38px 3px 38px;column-gap:5px}.fm-editor-label{font-size:15px}.fm-value{font-size:29px}.fm-step{width:38px;height:35px;font-size:23px}.fm-model-stage{padding:7px}.fm-comparison{gap:7px}.fm-comparison-item{border-radius:12px}.fm-item-fraction{left:7px;top:7px;width:42px;font-size:21px}.fm-item-number{right:7px;top:7px;font-size:11px;padding:4px 7px}.fm-models[data-count="1"] .fm-circle{width:min(62vh,68vw,390px);height:min(62vh,68vw,390px)}.fm-models[data-count="2"] .fm-circle{width:min(43vh,38vw,240px);height:min(43vh,38vw,240px)}.fm-models[data-count="3"] .fm-circle,.fm-models[data-count="4"] .fm-circle{width:min(32vh,34vw,190px);height:min(32vh,34vw,190px)}.fm-models[data-count="1"] .fm-beaker{width:min(37vh,43vw,240px);height:min(63vh,73vw,430px)}.fm-models[data-count="2"] .fm-beaker{width:min(29vh,31vw,180px);height:min(50vh,53vw,330px)}.fm-models[data-count="3"] .fm-beaker,.fm-models[data-count="4"] .fm-beaker{width:min(21vh,24vw,135px);height:min(36vh,43vw,240px)}.fm-comparison[data-items="2"] .fm-models[data-count="1"] .fm-circle,.fm-comparison[data-items="3"] .fm-models[data-count="1"] .fm-circle{width:min(42vh,30vw,230px);height:min(42vh,30vw,230px)}.fm-comparison[data-items="2"] .fm-models[data-count="1"] .fm-beaker,.fm-comparison[data-items="3"] .fm-models[data-count="1"] .fm-beaker{width:min(25vh,21vw,150px);height:min(44vh,36vw,270px)}.fm-aligned-circle-body{padding:72px 1% 1%;gap:10px}.fm-circle-overlay{width:min(52vh,54vw,380px);height:min(52vh,54vw,380px)}.fm-circle-extras{flex-basis:42%;gap:7px}.fm-circle-extra{width:min(23vh,20vw,150px);height:min(23vh,20vw,150px);padding-bottom:25px}.fm-circle-extra-fraction{font-size:16px}.fm-numberline-card{padding:3px}.fm-numberline-row{padding:0 18px}.fm-numberline-track{min-height:46px}.fm-numberline-tick{width:30px}.fm-numberline-integer{font-size:14px}.fm-numberline-label-fraction{width:23px;font-size:12px}.fm-numberline-label-line{width:20px}.fm-models.is-tape{padding:1%}.fm-comparison .fm-models.is-tape{padding:45px 6px 6px}.fm-tape-row{width:98%;grid-template-columns:66px minmax(0,1fr);gap:8px}.fm-comparison .fm-tape-row{grid-template-columns:42px minmax(0,1fr);gap:5px}.fm-tape-fraction{width:48px;font-size:25px;grid-template-rows:auto 3px auto}.fm-comparison .fm-tape-fraction{width:36px;font-size:19px}.fm-tape-fraction-line{height:3px;margin:3px 0}.fm-tape{height:clamp(56px,11vh,88px)}.fm-toolbar{right:11px;bottom:11px;gap:8px}.fm-tool{width:50px;height:50px;font-size:16px}.fm-menu-wrap{width:50px;height:50px;flex-basis:50px}.fm-popout{right:59px}.fm-mini-tool{width:42px;height:42px;flex-basis:42px}
    }
    @media(max-width:720px){.fm-combined-beaker{width:min(38vh,42vw,250px);height:min(65vh,72vw,440px);margin-top:34px}.fm-combined-labels{top:7px;width:min(78%,390px);gap:6px}.fm-combined-choice{padding:4px 6px;font-size:19px}.fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-models.is-tape{padding-left:61px}.fm-comparison[data-layout="aligned"][data-mode="tape"] .fm-item-fraction{left:6px}}
    @media(max-height:690px){.fm-controls{top:9px}.fm-fraction-editor{grid-template-rows:37px 3px 37px}.fm-step{height:34px}.fm-value{font-size:28px}.fm-model-stage{padding-top:8px;padding-bottom:8px}.fm-tape{height:clamp(50px,12vh,78px)}}
    body.admin-bar .fm-root{height:calc(100vh - 32px);height:calc(100dvh - 32px)}
    @media(max-width:782px){body.admin-bar .fm-root{height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
    @media(prefers-reduced-motion:reduce){.fm-root *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* 元の通分ツール */
.tt-app {
  --tt-navy: #1e3a5f;
  --tt-navy-dark: #0f1e3a;
  --tt-gold: #d4af37;
  --tt-gold-light: #f4cf5f;
  --tt-text: #26384a;
  --tt-line: #d8e2eb;
  --tt-blue: #2878c8;
  --tt-orange: #ef7d22;
  --tt-green: #2a9d68;
  --tt-danger: #c53e4b;
  --tt-cols: 20; /* 修正: 記録表の列数（通分は×1〜×20） */
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--tt-text);
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body.admin-bar .tt-app {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

.tt-app,
.tt-app * {
  box-sizing: border-box;
}

.tt-app button,
.tt-app input {
  font: inherit;
}

.tt-app button {
  touch-action: manipulation;
}

.tt-app .tt-header {
  height: 66px;
  flex: 0 0 66px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  background: var(--tt-navy);
  color: #fff;
  box-shadow: 0 2px 10px #0003;
  z-index: 20;
}

.tt-app .tt-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.tt-app .tt-icon-btn {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff20;
  color: #fff;
  cursor: pointer;
}

.tt-app .tt-icon-btn svg,
.tt-app .tt-tool svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tt-app .tt-tool.fl-mode-arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tt-app .tt-main {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 14px 88px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: #fff;
}

.tt-app .tt-fraction-grid {
  flex: 1;
  min-height: 300px;
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 14px;
}

.tt-app .tt-fraction-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.tt-app .tt-fraction-card {
  --tt-card-color: var(--tt-blue);
  min-height: 300px;
  border: 1px solid var(--tt-line);
  border-top: 7px solid var(--tt-card-color);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 17px #17324d17;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tt-app .tt-fraction-card:nth-child(2) {
  --tt-card-color: var(--tt-orange);
}

.tt-app .tt-fraction-card:nth-child(3) {
  --tt-card-color: var(--tt-green);
}

.tt-app .tt-fraction-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-equation {
  gap: 6px;
  padding-inline: 5px;
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-fraction {
  min-width: 78px;
  font-size: clamp(34px, 2.8vw, 48px);
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-fraction input,
.tt-app .tt-fraction-grid[data-count="3"] .tt-fraction .tt-num-btn {
  width: 82px;
  height: 60px;
  font-size: clamp(34px, 2.4vw, 42px);
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-bridge {
  width: 74px;
  min-width: 74px;
  grid-template-rows: 52px 38px 52px;
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-factor {
  gap: 2px;
  font-size: 17px;
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-factor .tt-arrow {
  font-size: 24px;
}

.tt-app .tt-fraction-grid[data-count="3"] .tt-equals {
  font-size: 37px;
}

.tt-app .tt-equation {
  width: 100%;
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.tt-app .tt-fraction {
  min-width: 116px;
  display: inline-grid;
  grid-template-rows: auto 6px auto;
  align-items: center;
  justify-items: center;
  color: var(--tt-text);
  font-size: 68px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tt-app .tt-fraction .tt-bar {
  width: 100%;
  height: 6px;
  margin: 10px 0;
  border-radius: 5px;
  background: currentColor;
}

.tt-app .tt-fraction input,
.tt-app .tt-fraction .tt-num-btn {
  width: 122px;
  height: 78px;
  margin: 0;
  padding: 0 5px;
  border: 2px solid #aebfd0;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--tt-text);
  text-align: center;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  appearance: textfield;
}

.tt-app .tt-fraction input::-webkit-inner-spin-button,
.tt-app .tt-fraction input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.tt-app .tt-fraction input:focus,
.tt-app .tt-fraction .tt-num-btn.tt-selected {
  border-color: var(--tt-gold);
  box-shadow: 0 0 0 4px #f4cf5f66;
}

.tt-app .tt-bridge {
  width: 126px;
  min-width: 126px;
  display: grid;
  grid-template-rows: 66px 50px 66px;
  align-items: center;
  justify-items: center;
}

.tt-app .tt-factor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--tt-orange);
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.tt-app .tt-factor .tt-arrow {
  font-size: 40px;
  line-height: 1;
  transform: scaleX(1.18);
  transform-origin: left center;
}

.tt-app .tt-factor.tt-empty {
  visibility: hidden;
}

.tt-app .tt-equals {
  color: #44576a;
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
}

.tt-app .tt-result {
  color: var(--tt-navy);
}

.tt-app .tt-result.tt-pending {
  color: #a7b2bd;
}

.tt-app .tt-record-board {
  flex: 0 0 220px;
  border: 1px solid var(--tt-line);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  background: #f5f7fa;
  box-shadow: 0 4px 14px #17324d13;
}

.tt-app[data-count="3"] .tt-record-board {
  flex-basis: 282px;
}

.tt-app[data-count="3"] .tt-record-row {
  min-height: 94px;
}

.tt-app .tt-record-table {
  min-width: calc(70px + var(--tt-cols) * 40px); /* 修正: なるべく1画面に全部の列を収める */
  height: 100%;
  display: grid;
  grid-template-rows: repeat(var(--tt-count, 2), 1fr);
}

.tt-app .tt-record-row {
  --tt-row-color: var(--tt-blue);
  min-height: 108px;
  display: grid;
  grid-template-columns: 70px repeat(var(--tt-cols), minmax(40px, 1fr)); /* 修正: 列幅を画面に合わせて縮める */
}

.tt-app .tt-record-row:nth-child(2) {
  --tt-row-color: var(--tt-orange);
}

.tt-app .tt-record-row:nth-child(3) {
  --tt-row-color: var(--tt-green);
}

.tt-app .tt-row-label {
  position: sticky;
  left: 0;
  z-index: 5;
  border: 0;
  border-right: 3px solid var(--tt-row-color);
  border-bottom: 1px solid var(--tt-line);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--tt-row-color);
  box-shadow: 4px 0 8px #17324d12;
}

.tt-app .tt-mini-fraction {
  min-width: 34px;
  display: inline-grid;
  grid-template-rows: auto 2px auto;
  color: inherit;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.tt-app .tt-mini-fraction i {
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
}

.tt-app .tt-mini-fraction.tt-denominator-only {
  display: block;
  font-size: 30px;
}

.tt-app .tt-mini-fraction.tt-denominator-only > span:first-child,
.tt-app .tt-mini-fraction.tt-denominator-only > i {
  display: none;
}

.tt-app .tt-record-cell {
  position: relative;
  min-width: 0; /* 修正: 列幅を画面に合わせて縮める */
  container-type: inline-size;
  margin: 0;
  padding: 3px;
  border: 0;
  border-right: 1px solid var(--tt-line);
  border-bottom: 1px solid var(--tt-line);
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--tt-navy);
  cursor: pointer;
}

.tt-app .tt-record-cell:hover {
  background: #eef4f9;
}

.tt-app .tt-record-cell:focus-visible,
.tt-app .tt-icon-btn:focus-visible,
.tt-app .tt-tool:focus-visible {
  z-index: 6;
  outline: 4px solid var(--tt-gold-light);
  outline-offset: -4px;
}

.tt-app .tt-cell-number {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  letter-spacing: -0.03em;
  font-size: 20px;
  font-size: min(25px, 50cqw); /* 修正: セル幅に合わせて文字を縮める */
  font-weight: 900;
}

.tt-app .tt-cell-factor {
  position: absolute;
  top: 3px;
  left: 4px;
  color: var(--tt-row-color);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
}

.tt-app .tt-cell-result {
  min-width: 0;
  display: none;
  grid-template-rows: auto 2px auto;
  color: var(--tt-navy);
  text-align: center;
  font-size: 16px;
  font-size: min(18px, 46cqw); /* 修正: セル幅に合わせて文字を縮める */
  font-weight: 900;
  line-height: 1;
}

.tt-app .tt-cell-result i {
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
}

.tt-app .tt-record-cell.tt-recorded,
.tt-app .tt-record-cell.tt-revealed {
  background: #f9fbfd;
}

.tt-app .tt-record-cell.tt-recorded .tt-cell-number {
  display: none;
}

.tt-app .tt-record-cell.tt-recorded .tt-cell-factor {
  opacity: 1;
}

.tt-app .tt-record-cell.tt-recorded .tt-cell-result {
  display: inline-grid;
}

.yk-app .tt-fraction-card {
  position: relative;
  flex-direction: column;
}

.yk-app .tt-equation {
  padding-bottom: 48px;
}

.yk-app .yk-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--tt-green);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.yk-app .tt-fraction-card.yk-simplest {
  border-color: var(--tt-green);
  border-top-color: var(--tt-card-color);
  box-shadow: 0 5px 17px #17324d17, inset 0 0 0 3px #2a9d6828;
}

.yk-app .tt-record-cell.tt-invalid {
  background: #fff4e8;
  color: #c56718;
}

.yk-app .tt-record-cell.tt-invalid .tt-cell-number {
  display: block;
  font-size: 28px;
}

.tt-app .tt-toolbar {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.tt-app .tt-tool {
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--tt-danger);
  box-shadow: 0 4px 14px #0004;
  cursor: pointer;
}

.tt-app .tt-tool.tt-add {
  color: var(--tt-navy);
  font-size: 31px;
  font-weight: 900;
}

.tt-app .tt-tool:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.tt-app .tt-tool.tt-mode {
  color: var(--tt-navy);
  font-size: 23px;
  font-weight: 900;
}

.tt-app .tt-tool.tt-mode.tt-active {
  background: var(--tt-gold-light);
  color: var(--tt-navy-dark);
  box-shadow: 0 4px 14px #0004, 0 0 0 4px #fff;
}

.tt-app .tt-tool:hover,
.tt-app .tt-icon-btn:hover {
  transform: translateY(-2px);
}

.tt-app .tt-tool:disabled:hover {
  transform: none;
}

.tt-app .tt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .tt-app .tt-equation { gap: 10px; padding-inline: 7px; }
  .tt-app .tt-bridge { width: 92px; min-width: 92px; }
  .tt-app .tt-factor { gap: 2px; font-size: 20px; }
  .tt-app .tt-factor .tt-arrow { font-size: 29px; }
  .tt-app .tt-fraction { min-width: 92px; font-size: 54px; }
  .tt-app .tt-fraction input,
.tt-app .tt-fraction .tt-num-btn { width: 96px; height: 66px; font-size: 48px; }
}

@media (max-width: 820px) {
  .tt-app .tt-main { overflow: auto; }
  .tt-app .tt-fraction-grid,
  .tt-app .tt-fraction-grid[data-count="3"] { flex: none; grid-template-columns: 1fr; }
  .tt-app .tt-fraction-card { min-height: 285px; }
  .tt-app .tt-record-board { flex: 0 0 220px; }
  .tt-app[data-count="3"] .tt-record-board { flex-basis: 288px; }
}

@media (max-width: 782px) {
  body.admin-bar .tt-app {
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 560px) {
  .tt-app .tt-header { height: 58px; flex-basis: 58px; padding: 8px 10px; }
  .tt-app .tt-title { font-size: 16px; }
  .tt-app .tt-icon-btn { width: 38px; height: 38px; }
  .tt-app .tt-main { padding: 10px 70px 12px 10px; gap: 9px; }
  .tt-app .tt-fraction-grid { gap: 9px; }
  .tt-app .tt-fraction-card { min-height: 240px; }
  .tt-app .tt-equation { gap: 5px; padding: 12px 4px; }
  .tt-app .tt-bridge { width: 76px; min-width: 76px; grid-template-rows: 48px 38px 48px; }
  .tt-app .tt-factor { gap: 2px; font-size: 17px; }
  .tt-app .tt-factor .tt-arrow { font-size: 24px; }
  .tt-app .tt-fraction { min-width: 67px; grid-template-rows: auto 4px auto; font-size: 36px; }
  .tt-app .tt-fraction .tt-bar { height: 4px; margin: 6px 0; }
  .tt-app .tt-fraction input,
.tt-app .tt-fraction .tt-num-btn { width: 70px; height: 49px; font-size: 33px; }
  .tt-app .tt-equals { font-size: 32px; }
  .tt-app .tt-record-board { flex-basis: 194px; }
  .tt-app .tt-record-table { min-width: calc(60px + var(--tt-cols) * 40px); } /* 修正: 列幅を画面に合わせる */
  .tt-app .tt-record-row { min-height: 96px; grid-template-columns: 60px repeat(var(--tt-cols), minmax(40px, 1fr)); /* 修正: 列幅を画面に合わせる */ }
  .tt-app .tt-cell-number { font-size: min(22px, 50cqw); }
  .tt-app .tt-tool { width: 50px; height: 50px; }
  .tt-app .tt-toolbar { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-app * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* 統合部分は高さだけを調整し、各アプリ本来のUIを維持する。 */
.fl-shell .fm-root,.fl-shell .tt-app{height:100%!important}
.fl-shell:fullscreen{height:100vh;height:100dvh}
.fl-shell:fullscreen .fm-root,.fl-shell:fullscreen .tt-app{height:100%!important}

/* 統合した分数シーソー */
.fl-shell .fbs-root{position:relative;z-index:auto;inset:auto;width:100%;height:100%;min-height:0}
body.admin-bar .fl-shell .fbs-root{top:auto;height:100%}
.fl-shell:fullscreen .fbs-root{height:100%!important}
.fl-shell .fbs-tray-card.has-large-number .fbs-fraction{width:104px;font-size:clamp(29px,3vw,42px)}

/* そろえるの大きな数を丸めず受け取り、作図できない場合に表示する。 */
.fm-range-message{width:min(560px,88%);margin:auto;padding:28px;display:grid;place-items:center;gap:18px;border:3px dashed #9eb2c2;border-radius:20px;background:#f7fafc;color:var(--navy);text-align:center}
.fm-range-message .fm-circle-extra-fraction{position:static;left:auto;bottom:auto;width:110px;transform:none;font-size:clamp(34px,5vw,58px);color:var(--navy)}
.fm-range-message p{margin:0;color:#607486;font-size:clamp(17px,2vw,24px);font-weight:900}
.fm-range-message.is-compact{width:82%;padding:20px 12px;align-self:center}
.fm-range-message.is-compact .fm-circle-extra-fraction{width:76px;font-size:clamp(27px,3vw,42px)}
.fm-range-message.is-compact p{font-size:clamp(14px,1.5vw,19px)}


/* 修正: 通分ツールの数字ボタン＋フロート入力パネル */
.tt-app .tt-fraction .tt-num-btn {
  display: grid;
  place-items: center;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tt-app .tt-fraction .tt-num-btn:hover { border-color: var(--tt-gold); }
.tt-app .tt-fraction .tt-num-btn:focus-visible { outline: 4px solid var(--tt-gold-light); outline-offset: 2px; }
.tt-app .tt-fraction .tt-num-btn.tt-selected { background: #fffaf0; }


.tt-app .tt-fraction-card { cursor: pointer; }
.tt-app .tt-fraction-card.tt-card-selected { box-shadow: 0 0 0 4px #f4cf5f99, 0 6px 18px #0002; }

/* 修正: 共通フロート入力パネル（分数モデルボードと同じ見た目・操作。約分・通分・比べるで使用） */
.flx-editor {
  --flx-color: #1e3a5f;
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 45;
  box-sizing: border-box;
  padding: 0 12px 10px;
  background: #fff;
  border: 2px solid #c9d9e5;
  border-top: 6px solid var(--flx-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px #0004;
  color: #26384a;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.flx-editor[hidden] { display: none; }
.flx-editor * { box-sizing: border-box; }
.flx-head { display: flex; align-items: center; gap: 6px; }
.flx-handle {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #718397;
  font-size: 15px;
  font-weight: 900;
  cursor: grab;
  touch-action: none;
}
.flx-handle:active { cursor: grabbing; }
.flx-grip { font-size: 19px; letter-spacing: -5px; margin-right: 5px; }
.flx-title { color: var(--flx-color); font-size: 17px; }
.flx-editor .flx-close {
  width: 30px;
  height: 30px;
  margin: 0 -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3f7;
  color: #5b6b7c;
  font-family: inherit; font-size: 22px; font-weight: 900; line-height: 1;
  cursor: pointer;
}
.flx-body {
  display: grid;
  grid-template-columns: auto 50px 72px 50px;
  grid-template-rows: 44px 4px 44px;
  align-items: center;
  column-gap: 7px;
  row-gap: 6px;
}
.flx-label { font-size: 18px; font-weight: 900; color: #1e3a5f; text-align: right; padding-right: 4px; }
.flx-label-num { grid-column: 1; grid-row: 1; }
.flx-num-minus { grid-column: 2; grid-row: 1; }
.flx-num { grid-column: 3; grid-row: 1; }
.flx-num-plus { grid-column: 4; grid-row: 1; }
.flx-line { grid-column: 3; grid-row: 2; height: 4px; border-radius: 4px; background: #26384a; }
.flx-label-den { grid-column: 1; grid-row: 3; }
.flx-den-minus { grid-column: 2; grid-row: 3; }
.flx-den { grid-column: 3; grid-row: 3; }
.flx-den-plus { grid-column: 4; grid-row: 3; }
.flx-value { display: grid; place-items: center; font-size: 38px; font-weight: 900; line-height: 1; color: #26384a; font-variant-numeric: tabular-nums; }
.flx-editor .flx-step {
  width: 50px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e8f0f6;
  color: #1e3a5f;
  font-family: inherit; font-size: 29px; font-weight: 900; line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 5px #0002;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.flx-editor .flx-step.flx-plus { background: #d4af37; color: #0f1e3a; }
.flx-editor .flx-step:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.flx-editor .flx-step:disabled { opacity: .28; cursor: not-allowed; box-shadow: none; }
.flx-editor .flx-step:focus-visible, .flx-editor .flx-close:focus-visible { outline: 4px solid #f4cf5f; outline-offset: 2px; }

@media (max-width: 820px) {
  .flx-editor { padding: 0 8px 8px; }
  .flx-handle { height: 28px; }
  .flx-body { grid-template-columns: auto 42px 58px 42px; grid-template-rows: 38px 3px 38px; column-gap: 5px; }
  .flx-label { font-size: 15px; }
  .flx-value { font-size: 29px; }
  .flx-editor .flx-step { width: 42px; height: 38px; font-size: 23px; }
}

/* 修正: 約分の記録表は÷2〜÷20の19列（空の列が出ないように） */
.yk-app { --tt-cols: 19; }

/* 修正: 記録表が横にはみ出すときの「→」「←」の目印 */
.flx-scroll-hint {
  position: absolute;
  z-index: 35;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: #1e3a5f;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px #0005;
  cursor: pointer;
  opacity: .88;
  animation: flx-hint-nudge 1.6s ease-in-out infinite;
}
.flx-scroll-hint[hidden] { display: none; }
.flx-scroll-hint:hover { opacity: 1; }
.flx-scroll-hint:focus-visible { outline: 4px solid #f4cf5f; outline-offset: 2px; }
.flx-scroll-left { animation-name: flx-hint-nudge-left; }
@keyframes flx-hint-nudge { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-30%, -50%); } }
@keyframes flx-hint-nudge-left { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-70%, -50%); } }
@media (prefers-reduced-motion: reduce) { .flx-scroll-hint { animation: none; } }
.tt-app .flx-scroll-hint { font-size: 28px; font-weight: 900; line-height: 1; } /* 修正: アプリ側のボタン設定より優先して矢印を大きく */
/* 修正: 表すの−＋も他の活動と同じ大きさに（アプリ側のボタン設定より優先） */
.fm-root .fm-step { font-size: 29px; font-weight: 900; line-height: 1; }
@media (max-width: 720px) { .fm-root .fm-step { font-size: 23px; } }
/* 修正: ヘッダーをなくしたので全画面ボタンは右下のボタン列に置く */
.tt-app .tt-tool.tt-fullscreen { color: var(--tt-navy); }
.tt-app .tt-tool.tt-fullscreen svg { width: 28px; height: 28px; fill: currentColor; }
