/* ============================================================
   Mio(見本)— motion.css  v3.0(2026-09-30 ショウ)
   動きの層。筆で塗るように現れる / 縦書きの文字が上から降りる / 幕 = 一筆の色。
   ============================================================ */
/* 幕: 紙の上を、その絵の色の一筆が走って、上がる */
.intro{position:fixed; inset:0; z-index:200; background:var(--paper); pointer-events:none}
.intro i{position:absolute; left:-6%; top:46%; width:112%; height:8vh; transform:scaleX(0) skewY(-3deg); transform-origin:left; border-radius:0 40% 40% 0 / 0 50% 50% 0}
html:not(.js) .intro{display:none}
.intro.is-go i{animation:strokeIn .8s var(--e2) both}
.intro.is-go{animation:introUp .7s var(--e2) 1s both}
@keyframes strokeIn{to{transform:scaleX(1) skewY(-3deg)}}
@keyframes introUp{to{transform:translateY(-101%)}}

/* 筆で塗る */
.js .bw .bs{stroke-dasharray:100; stroke-dashoffset:100}
.js .bw.is-in .bs{animation:paint 1.6s cubic-bezier(.5,0,.25,1) both}
@keyframes paint{to{stroke-dashoffset:0}}

/* 縦書きの文字: 上から1文字ずつ */
.js [data-split] .ch{display:inline-block; transform:translateY(-.5em); opacity:0}
.js .is-in > [data-split] .ch,.js [data-split].is-in .ch,.js .sec-t.is-in .ch,.js .hero-tx.is-in .ch{animation:chDown .8s var(--e1) both; animation-delay:calc(var(--i) * 70ms + .25s)}
@keyframes chDown{to{transform:none; opacity:1}}
.js .sec-t .num,.js .sec-t .en{opacity:0; transform:translateY(8px); transition:opacity .6s ease .7s, transform .7s var(--e1) .7s}
.js .sec-t.is-in .num,.js .sec-t.is-in .en{opacity:1; transform:none}
.js .hero-tx .sub{opacity:0; transform:translateY(12px); transition:opacity .7s ease 1.1s, transform .8s var(--e1) 1.1s}
.js .hero-tx.is-in .sub{opacity:1; transform:none}

/* 出てくる物 */
.js .rv{opacity:0; transform:translateY(18px); transition:opacity .8s ease, transform .9s var(--e1)}
.js .rv.is-in{opacity:1; transform:none}
.js .ex-list li.rv:nth-child(2){transition-delay:.1s} .js .ex-list li.rv:nth-child(3){transition-delay:.2s}

/* 署名: 線が引かれる */
.js .ft-sg path{stroke-dasharray:100; stroke-dashoffset:100}
.js .ft-sg.is-in path{animation:sign 2.4s cubic-bezier(.4,0,.3,1) .2s both}
@keyframes sign{to{stroke-dashoffset:0}}

/* 大きく見る: ふわっと寄る */
dialog.lb[open] .lb-st img{animation:lbIn .6s var(--e1)}
@keyframes lbIn{from{transform:scale(.94); opacity:0}to{transform:none; opacity:1}}

/* メニュー: 縦書きの項目が順に降りる */
.js .mn li{transform:translateY(-24px); opacity:0; transition:transform .7s var(--e1), opacity .5s}
.js .mn.is-open li{transform:none; opacity:1}
.js .mn.is-open li:nth-child(1){transition-delay:.25s} .js .mn.is-open li:nth-child(2){transition-delay:.32s} .js .mn.is-open li:nth-child(3){transition-delay:.39s} .js .mn.is-open li:nth-child(4){transition-delay:.46s} .js .mn.is-open li:nth-child(5){transition-delay:.53s}

/* 壁の絵・料金の絵: 大きさが変わる時は CSS の transition(style.css) */

/* 動きを止める時 */
html.nomotion .intro{display:none}
html.nomotion .bw .bs{stroke-dashoffset:0}
html.nomotion [data-split] .ch{transform:none; opacity:1}
html.nomotion .sec-t .num,html.nomotion .sec-t .en,html.nomotion .hero-tx .sub,html.nomotion .rv,html.nomotion .mn li{opacity:1; transform:none}
html.nomotion .ft-sg path{stroke-dashoffset:0}
html.nomotion .wk-col{transform:none!important}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important; transition:none!important}
  .intro{display:none}
  .bw .bs{stroke-dashoffset:0!important}
  [data-split] .ch,.sec-t .num,.sec-t .en,.hero-tx .sub,.rv,.mn li{opacity:1!important; transform:none!important}
  .ft-sg path{stroke-dashoffset:0!important}
  .wk-col{transform:none!important}
}

/* [rw1120] 字間の span(moji_kumi)に頁の「.親 span{…}」が当たって字の一部だけ大きさ・太さが変わるのを防ぐ */
span.mjk,span.mjk-y{font:inherit!important;color:inherit!important;vertical-align:baseline!important}
