/* db-motion: DesignBookmark Motion の「バネの手触り」の型を、今の AI株トレーダー LP に足す(2026-11-18・見える文・色・書体・並びは変えない)。
   型だけ取り、CSS/JS は自作で書いた(出所= DesignBookmark Motion の Magnetic button・Word roll・Parallax ticket・Streaming reply と、Kokonut UI(MIT)の Agent steps の動きの考え方。部品のコードは写していない)。
   .fxl(fx-gate)が無い時(動きを減らす・JS なし)は全部 効かない = 今の本番と同じ。.fxl が途中で外れても .fxl.dbm の規則が全部 外れて元に戻る。 */
.fxl.dbm{--dbsp:cubic-bezier(.34,1.56,.64,1)}
@supports (transition-timing-function:linear(0,1)){
  .fxl.dbm{--dbsp:linear(0,0.159 5.6%,0.465 11.1%,0.752 16.7%,0.95 22.2%,1.052 27.8%,1.083 33.3%,1.074 38.9%,1.049 44.4%,1.024 50%,1.006 55.6%,0.997 61.1%,0.993 66.7%,0.994 72.2%,0.996 77.8%,0.998 83.3%,0.999 88.9%,1 94.4%,1)}
}

/* ===== 1. 磁石のボタン(Magnetic button)= 近づくと吸い寄せられ・押すと沈み・離すと跳ね返る(バネ) ===== */
.fxl.dbm .dbm-mag{translate:var(--dbx,0px) var(--dby,0px)!important;scale:var(--dbs,1);will-change:translate,scale}
.fxl.dbm .dbm-mag.fxl-btn{transition:background .25s,color .25s,border-color .25s,transform .25s}
.fxl.dbm .dbm-mag .ar{display:inline-block;translate:var(--dba,0px) 0}

/* ===== 2. 見出しの出方(Word roll)= 語ごとに下から巻き上がり、バネで着地 ===== */
.fxl.dbm .dbr-a{translate:0 .7em;rotate:3deg;transform-origin:0 100%;clip-path:inset(0 -.1em 100% -.1em)}
.fxl.dbm .dbr-a.dbr-g{translate:0 0;rotate:0deg;clip-path:inset(-.2em -.2em -.3em -.2em);
  transition:translate 1s var(--dbsp),rotate 1s var(--dbsp),clip-path .5s cubic-bezier(.22,1,.36,1);transition-delay:calc(var(--dbi,0)*90ms)}

/* ===== 3. 01 の札(Parallax ticket)= 触れた所へ札の中身が奥行きでずれる(アイコンが一番 動く・字の小さい印 .t は inline なので動かさない=並びを変えない) ===== */
.fxl.dbm .pil>.ic{translate:calc(var(--dbpx,0)*-10px + var(--dbix,0)*-7px) calc(var(--dbpy,0)*-7px + var(--dbiy,0)*-5px)}
.fxl.dbm .pil .big{translate:calc(var(--dbpx,0)*4px + var(--dbix,0)*3px) calc(var(--dbpy,0)*3px + var(--dbiy,0)*2px)}
.fxl.dbm .pil .big~p{translate:calc(var(--dbpx,0)*8px + var(--dbix,0)*5px) calc(var(--dbpy,0)*5px + var(--dbiy,0)*3px)}
.fxl.dbm .dbp-in>.ic{animation:dbPop .9s var(--dbsp) both}
@keyframes dbPop{from{scale:.35;rotate:-28deg}to{scale:1;rotate:0deg}}
/* 触れる端末(hover の無い端末)は、指で触れなくても札の中身がゆっくり漂う */
@property --dbix{syntax:'<number>';inherits:true;initial-value:0}
@property --dbiy{syntax:'<number>';inherits:true;initial-value:0}
@media (hover:none){
  .fxl.dbm .pil.dbp-in{animation:dbDrift 6.5s ease-in-out infinite}
  .fxl.dbm .pil.dbp-in:nth-child(2){animation-delay:-2.2s}
  .fxl.dbm .pil.dbp-in:nth-child(3){animation-delay:-4.4s}
}
@keyframes dbDrift{0%,100%{--dbix:-.8;--dbiy:-.5}25%{--dbix:.8;--dbiy:-.7}50%{--dbix:.9;--dbiy:.6}75%{--dbix:-.7;--dbiy:.7}}

/* ===== 4. 04 の 3 ステップ(Agent steps)= 順に 回る輪 → 済みの印(字は足さない) ===== */
.fxl.dbm .st3 li>.dbs{position:absolute;top:.85rem;right:.85rem;z-index:2;width:24px;height:24px;box-sizing:border-box;border-radius:50%;pointer-events:none;
  border:2px solid rgba(139,104,28,.28);opacity:0;scale:.5;transition:opacity .25s,scale .35s var(--dbsp),background-color .3s,border-color .3s}
.fxl.dbm .st3 li.dbs-run>.dbs{opacity:1;scale:1;border-top-color:var(--brass,#8b681c);animation:dbSpin .72s linear infinite}
.fxl.dbm .st3 li.dbs-ok>.dbs{opacity:1;background:var(--brass,#8b681c);border-color:var(--brass,#8b681c);animation:dbOk .7s var(--dbsp) both}
.fxl.dbm .st3 li.dbs-ok>.dbs::after{content:"";position:absolute;left:7.5px;top:3px;width:5px;height:10px;box-sizing:border-box;border:solid #fff;border-width:0 2px 2px 0;rotate:45deg}
@keyframes dbSpin{to{rotate:360deg}}
@keyframes dbOk{from{scale:.55}to{scale:1}}

/* ===== 5. 05 のよくある質問(Streaming reply)= 開くと「考え中の点」→ 答えが 1 行ずつ流れて出る ===== */
.fxl.dbm .fold details{position:relative}
.fxl.dbm .fold .a.dbq-on{
  -webkit-mask:linear-gradient(#000,#000) 0 0/100% var(--dbT,0px) no-repeat,linear-gradient(90deg,#000 calc(var(--dbf,0%) - 9%),transparent var(--dbf,0%)) 0 var(--dbT,0px)/100% var(--dbh,28px) no-repeat;
  mask:linear-gradient(#000,#000) 0 0/100% var(--dbT,0px) no-repeat,linear-gradient(90deg,#000 calc(var(--dbf,0%) - 9%),transparent var(--dbf,0%)) 0 var(--dbT,0px)/100% var(--dbh,28px) no-repeat}
.fxl.dbm .dbq{position:absolute;z-index:2;display:flex;gap:5px;pointer-events:none}
.fxl.dbm .dbq b{display:block;width:7px;height:7px;border-radius:50%;background:var(--brass,#8b681c);animation:dbDot .9s var(--dbsp) infinite}
.fxl.dbm .dbq b:nth-child(2){animation-delay:.12s}
.fxl.dbm .dbq b:nth-child(3){animation-delay:.24s}
@keyframes dbDot{0%,100%{translate:0 0;opacity:.45}40%{translate:0 -6px;opacity:1}}
