@keyframes v5-rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}
@keyframes v5-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

/* 入場は、JS が html.js-anim を付けたときだけ隠してから出す */
html.js-anim body.hotto-redesign-v4 .hero-intro{
  animation:v5-rise .7s ease-out both;
}
html.js-anim body.hotto-redesign-v4 .hero-photo{
  animation:v5-rise .8s ease-out .15s both;
}
/* イラスト全体をゆるやかに浮かせる（0% と 100% は v4 と同じ位置） */
html.js-anim body.hotto-redesign-v4 .hero-photo img{
  animation:v5-float 7s ease-in-out 1s infinite;
}

html.js-anim body.hotto-redesign-v4 .js-reveal{
  opacity:0;
  transform:translateY(16px);
}
html.js-anim body.hotto-redesign-v4 .js-reveal.is-in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s ease;
}
html.js-anim body.hotto-redesign-v4 .cat-grid .js-reveal.is-in:nth-child(1){transition-delay:.00s}
html.js-anim body.hotto-redesign-v4 .cat-grid .js-reveal.is-in:nth-child(2){transition-delay:.07s}
html.js-anim body.hotto-redesign-v4 .cat-grid .js-reveal.is-in:nth-child(3){transition-delay:.14s}
html.js-anim body.hotto-redesign-v4 .cat-grid .js-reveal.is-in:nth-child(4){transition-delay:.21s}
html.js-anim body.hotto-redesign-v4 .cat-grid .js-reveal.is-in:nth-child(5){transition-delay:.28s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(1){transition-delay:.00s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(2){transition-delay:.06s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(3){transition-delay:.12s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(4){transition-delay:.00s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(5){transition-delay:.06s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(6){transition-delay:.12s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(7){transition-delay:.00s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(8){transition-delay:.06s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(9){transition-delay:.12s}
html.js-anim body.hotto-redesign-v4 .post-grid .js-reveal.is-in:nth-child(10){transition-delay:.18s}

/* ホバー（transform のみ追加。既存の v2 の影は残る） */
@media (hover:hover) and (pointer:fine){
  html.js-anim body.hotto-redesign-v4 .cat-card{transition:transform .25s ease}
  html.js-anim body.hotto-redesign-v4 .cat-card:hover{transform:translateY(-4px)}
  html.js-anim body.hotto-redesign-v4 .post-card{transition:transform .25s ease}
  html.js-anim body.hotto-redesign-v4 .post-card:hover{transform:translateY(-4px)}
}

@media (prefers-reduced-motion:reduce){
  body.hotto-redesign-v4, body.hotto-redesign-v4 *, body.hotto-redesign-v4 *::before, body.hotto-redesign-v4 *::after{
    animation:none !important;
    transition:none !important;
  }
  html.js-anim body.hotto-redesign-v4 .hero-intro,
  html.js-anim body.hotto-redesign-v4 .hero-photo,
  html.js-anim body.hotto-redesign-v4 .hero-photo img,
  html.js-anim body.hotto-redesign-v4 .js-reveal{
    opacity:1 !important;
    transform:none !important;
  }
}
