/* 動きカタログの共通の土台。部品のCSSより先に読み込む。 */

/* 縦に長くする区画は JS が動くときだけ長くする（JSが無ければ普通の高さ） */
[data-motion-tall]{position:relative}

/* OSの「視差効果を減らす」。ただし 14 動きとめるボタンで「動かす」を選んだ人（data-motion=on）は動かす */
@media (prefers-reduced-motion: reduce){
  html:not([data-motion=on]){scroll-behavior:auto}
  html.js:not([data-motion=on]) [data-motion-tall]{height:auto!important;min-height:100svh}
  html:not([data-motion=on]) *,html:not([data-motion=on]) *::before,html:not([data-motion=on]) *::after{animation:none!important;transition:none!important}
}

/* 14 動きとめるボタンで止めたとき（OSの設定と同じ扱い） */
html[data-motion=off]{scroll-behavior:auto}
html.js[data-motion=off] [data-motion-tall]{height:auto!important;min-height:100svh}
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{animation:none!important;transition:none!important}
