/* AGAMAY 共通の動き（2026-11-15）。/assets/motion.js と組で使う。<html class="motion"> のときだけ効く（動きを減らす設定では付かない）。 */
.motion .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.16,.84,.24,1), clip-path 1.2s cubic-bezier(.7,0,.15,1); will-change: opacity, transform; }
.motion .rv.rv-none { opacity: 1; transform: none; }
.motion .rv.rv-left { transform: translate3d(-36px, 0, 0); }
.motion .rv.rv-right { transform: translate3d(36px, 0, 0); }
.motion .rv.rv-scale { transform: scale(.94); }
.motion .rv.rv-clip { opacity: 1; transform: translate3d(0, 18px, 0); clip-path: inset(100% 0 0 0); }
.motion .rv.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); will-change: auto; }
/* 出終わったあとは、その要素自身のホバーなどの動きに戻す */
.motion .rv.rv-done { transition: none; clip-path: none; }
.motion .rv.rv-done.tilt, .motion .rv.rv-done.magnetic { transition: transform .4s cubic-bezier(.2,.7,.2,1); }

/* 見出しを1文字ずつ持ち上げる */
.sp .sp-o { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.sp .sp-i { display: inline-block; }
.sp .sp-w { display: inline-block; white-space: nowrap; }
.motion .sp .sp-i { transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: left bottom; transition: transform 1s cubic-bezier(.16,.84,.24,1); transition-delay: calc(var(--rv-delay, 0ms) + var(--i) * 34ms); }
.motion .sp.in .sp-i { transform: none; }

/* マウスに合わせる */
.tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 55%); }
.tilt:hover::after { opacity: 1; }
.magnetic { transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* 読み進みの線 */
[data-progress] { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 2px; background: var(--progress, #b08d57); transform: scaleX(0); transform-origin: left; pointer-events: none; }
html:not(.motion) [data-progress] { display: none; }

/* 横に流す */
.mq { display: flex; overflow: hidden; white-space: nowrap; }
.mq .mq-track { display: flex; flex: none; align-items: center; min-width: 100%; animation: mq var(--mq, 40s) linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translate3d(-100%, 0, 0); } }

/* 写真のルーペ */
.loupe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loupe-on > img[data-loupe] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { .rv, .sp .sp-i, .tilt, .magnetic { transition: none !important; transform: none !important; } .mq .mq-track { animation: none; } }

/* 動きを使わないとき（動きを減らす設定）は、流す帯を折り返して並べる */
html:not(.motion) [data-marquee] { display: flex; flex-wrap: wrap; gap: .4em 1.6em; }
/* 印刷では必ず全部見せる */
@media print { .rv, .sp .sp-i { opacity: 1 !important; transform: none !important; clip-path: none !important; } [data-progress], .loupe-canvas { display: none !important; } .loupe-on > img[data-loupe] { visibility: visible !important; } }
