/* Origami の追加モーション。全て html.mo の時だけ有効。 */
html.mo .flow .fno.mp-number-ready,
html.mo .bp-no.mp-number-ready{overflow:hidden;vertical-align:baseline}
html.mo .mp-digit{display:inline-block;transform:translateY(110%);opacity:0;transition:transform .8s cubic-bezier(.2,.7,.1,1),opacity .65s ease}
html.mo .mp-number-on .mp-digit{transform:translateY(0);opacity:1}

html.mo .mp-progress{position:fixed;z-index:9998;top:0;left:0;width:100%;height:2px;background:#0DA6E0;transform:scaleX(0);transform-origin:left center;pointer-events:none;will-change:transform}

html.mo .plate{overflow:hidden}
html.mo .plate img{will-change:transform}

html.mo .btn.mp-arrow-link .mp-arrow{display:inline-block;transition:transform .28s cubic-bezier(.2,.7,.1,1)}
@media (hover:hover) and (pointer:fine){
  html.mo .btn.mp-arrow-link:hover .mp-arrow{transform:translateX(4px)}
}

@media (max-width:767px){
  html.mo .btn.mp-arrow-link .mp-arrow{transition:none}
}

/* 締めの大きな言葉の1行ずつ（11/26） */
html.mo .mp-lines .mp-line{display:block;overflow:hidden;padding:.08em 0 .14em;margin:-.08em 0 -.14em}
html.mo .mp-lines .mp-line>span{display:block;transform:translateY(105%);transition:transform 1.1s cubic-bezier(.2,.7,.1,1)}
html.mo .mp-lines.mp-lines-on .mp-line>span{transform:none}

/* O の輪（11/26 レインボー → 11/27 ページごとの色・ぐるぐる・0.5 秒長く・メリハリ）
   色は motion_plus.js が --o-grad --o-c1 --o-c2 に入れる */
html.mo .hero.has-mpo{overflow:hidden}
html.mo .hero.has-mpo>.wrap{position:relative;z-index:1}
html.mo .o-hero.has-mpo::before{display:none}
/* 見出しの段が無いページ（お礼のページ）＝data-mpo の段に同じ O（11/28） */
html.mo [data-mpo].has-mpo{position:relative;overflow:hidden}
html.mo [data-mpo].has-mpo>.wrap{position:relative;z-index:1}
/* 太い O：回りながら大きくなって入り、そのあと速くなったりゆっくりになったりしながら回り続ける */
html.mo .mp-o{position:absolute;pointer-events:none;z-index:0;right:-20vw;top:50%;width:min(64vw,900px);aspect-ratio:1;height:auto;margin-top:calc(min(64vw,900px) / -2);
  border-radius:50%;background:var(--o-grad);--o-w:min(11.5vw,162px);
  -webkit-mask:radial-gradient(closest-side,transparent calc(100% - var(--o-w)),#000 calc(100% - var(--o-w) + 1px));
  mask:radial-gradient(closest-side,transparent calc(100% - var(--o-w)),#000 calc(100% - var(--o-w) + 1px));
  opacity:0;scale:.3;rotate:-200deg;will-change:transform}
html.mo .mp-o.on{opacity:.24;scale:1;rotate:0deg;
  animation:mpOin 2.9s cubic-bezier(.2,1.28,.32,1) both,mpOturn 16s cubic-bezier(.7,0,.3,1) 2.9s infinite}
@keyframes mpOin{0%{opacity:0;scale:.3;rotate:-200deg}45%{opacity:.36}100%{opacity:.24;scale:1;rotate:0deg}}
@keyframes mpOturn{0%{rotate:0deg}100%{rotate:360deg}}
/* 輪と重なる青い文字を読みやすく（11/27 ボス「青文字と重なると読みにくい」）：紙の色のふちどり */
html.mo .hero.has-mpo .hero-jp .ac{text-shadow:0.050em 0.000em 0 rgba(244,242,236,.2),0.046em 0.019em 0 rgba(244,242,236,.2),0.035em 0.035em 0 rgba(244,242,236,.2),0.019em 0.046em 0 rgba(244,242,236,.2),0.000em 0.050em 0 rgba(244,242,236,.2),-0.019em 0.046em 0 rgba(244,242,236,.2),-0.035em 0.035em 0 rgba(244,242,236,.2),-0.046em 0.019em 0 rgba(244,242,236,.2),-0.050em 0.000em 0 rgba(244,242,236,.2),-0.046em -0.019em 0 rgba(244,242,236,.2),-0.035em -0.035em 0 rgba(244,242,236,.2),-0.019em -0.046em 0 rgba(244,242,236,.2),-0.000em -0.050em 0 rgba(244,242,236,.2),0.019em -0.046em 0 rgba(244,242,236,.2),0.035em -0.035em 0 rgba(244,242,236,.2),0.046em -0.019em 0 rgba(244,242,236,.2)}  /* 11/27 ボス「白の枠 ほわっとせず パキッと」→「白の透過度合いを入れて少しだけ自然に」（1本 .2 を重ねて縁の外ほど薄く）＝ぼかさない縁どり 16 方向 */
html.mo .hero.has-mpo .hero-lead,html.mo .hero.has-mpo .hero-en{text-shadow:0 0 .5em var(--paper,#F4F2EC),0 0 .2em var(--paper,#F4F2EC)}
/* ページの色を背景にうすく */
html.mo .mp-glow{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:0;transition:opacity 2.9s ease;
  background:radial-gradient(ellipse 60% 70% at 88% 50%,color-mix(in srgb,var(--o-c1) 16%,transparent),transparent 70%),
             radial-gradient(ellipse 40% 50% at 70% 90%,color-mix(in srgb,var(--o-c2) 10%,transparent),transparent 70%)}
html.mo .mp-glow.on{opacity:1}

/* 細い輪5本：線が描かれてから、太い O と逆向きに回る */
html.mo .mp-orbit{position:absolute;pointer-events:none;z-index:0}
html.mo .mp-orbit svg{display:block;width:100%;height:100%;overflow:visible;animation:mpSpin 38s linear infinite reverse}
html.mo .mp-orbit ellipse{fill:none;stroke-width:1.1;stroke-linecap:round;stroke-dasharray:620;stroke-dashoffset:620;opacity:.85}
html.mo .mp-orbit.on ellipse{animation:mpDraw 3.3s cubic-bezier(.65,0,.2,1) forwards}
html.mo .mp-orbit.on ellipse:nth-child(2){animation-delay:.22s}
html.mo .mp-orbit.on ellipse:nth-child(3){animation-delay:.44s}
html.mo .mp-orbit.on ellipse:nth-child(4){animation-delay:.66s}
html.mo .mp-orbit.on ellipse:nth-child(5){animation-delay:.88s}
@keyframes mpDraw{to{stroke-dashoffset:0}}
@keyframes mpSpin{to{transform:rotate(360deg)}}
/* 開いた画面：太い O と同じ中心で、少し外側 */
html.mo .mp-orbit-hero{right:calc(-20vw - min(4vw,56px));top:50%;width:calc(min(64vw,900px) + min(8vw,112px));aspect-ratio:1;height:auto;transform:translateY(-50%)}
/* 締めの段：言葉のうしろに */
html.mo .wrap.cta{position:relative;overflow:hidden}
html.mo .wrap.cta>*{position:relative;z-index:1}
html.mo .wrap.cta>.mp-orbit-cta{position:absolute;z-index:0;left:50%;top:50%;width:min(620px,86vw);aspect-ratio:1;height:auto;transform:translate(-50%,-50%);opacity:.7}
html.mo .mp-orbit-cta svg{animation-duration:60s;animation-direction:normal}
@media (max-width:760px){
  html.mo .mp-o{right:-40vw;width:110vw;margin-top:-55vw;--o-w:20vw}
  html.mo .mp-o.on{opacity:.22;animation-name:mpOinSp,mpOturn}
  @keyframes mpOinSp{0%{opacity:0;scale:.3;rotate:-200deg}45%{opacity:.32}100%{opacity:.22;scale:1;rotate:0deg}}
  html.mo .mp-orbit-hero{right:calc(-40vw - 5vw);width:120vw;opacity:.4}
  html.mo .wrap.cta>.mp-orbit-cta{width:92vw;opacity:.5}
}

@media (prefers-reduced-motion:reduce){
  html.mo .mp-orbit svg,html.mo .mp-orbit ellipse{animation:none!important;stroke-dashoffset:0!important}
  html.mo .mp-o{animation:none!important;opacity:.24!important;scale:1!important;rotate:0deg!important}
  html.mo .mp-glow{opacity:1!important;transition:none!important}
  html.mo .mp-lines .mp-line>span{transform:none!important;transition:none!important}
  html.mo .mp-digit{transform:none!important;opacity:1!important;transition:none!important}
  html.mo .mp-progress{transform:none!important;display:none}
  html.mo .plate img{transform:none!important}
  html.mo .btn.mp-arrow-link .mp-arrow{transform:none!important;transition:none!important}
}

@media print{
  html.mo .mp-orbit,html.mo .mp-o,html.mo .mp-glow{display:none!important}
  html.mo .mp-lines .mp-line>span{transform:none!important}
  html.mo .mp-progress{display:none!important}
  html.mo .mp-digit{transform:none!important;opacity:1!important}
  html.mo .plate img{transform:none!important}
}
