/* Top page effects: elements fade in as they come into view, gentle hover lifts.
   Uses the individual `translate` / `scale` properties so existing `transform` hovers keep working.
   Nothing is hidden unless effects.js has run (html.fx-ready), and nothing moves with reduced motion. */
html.fx-ready [data-fx]{opacity:0;transition:opacity .9s ease,translate .9s cubic-bezier(.2,.7,.2,1),scale .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--fx-delay,0s)}
html.fx-ready [data-fx="up"]{translate:0 30px}
html.fx-ready [data-fx="up-small"]{translate:0 16px}
html.fx-ready [data-fx="scale"]{scale:.88}
html.fx-ready [data-fx="left"]{translate:-26px 0}
html.fx-ready [data-fx].is-in{opacity:1;translate:none;scale:none}

/* Section heading: the gold bar grows when the heading appears */
html.fx-ready .section-heading[data-fx] h2:before{width:0;transition:width .8s cubic-bezier(.2,.7,.2,1) .25s}
html.fx-ready .section-heading[data-fx].is-in h2:before{width:38px}

/* Hero highlight under 安心のサポート draws in from the left */
html.fx-ready .hero h1[data-fx] .underline:after{transform-origin:left center;transform:scaleX(0);transition:transform 1s cubic-bezier(.2,.7,.2,1) calc(var(--fx-delay,0s) + .45s)}
html.fx-ready .hero h1[data-fx].is-in .underline:after{transform:scaleX(1)}

/* Hover lifts */
.plan-card{transition:transform .25s ease,box-shadow .25s ease}
.plan-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #b9a77a33}
.ts-footer-benefits .benefit{transition:transform .3s ease,box-shadow .3s ease}
.ts-footer-benefits .benefit:hover{transform:translateY(-5px);box-shadow:0 10px 22px #b9a77a2e}
.ts-footer-benefits .benefit>.icon{transition:transform .4s ease}
.ts-footer-benefits .benefit:hover>.icon{transform:scale(1.12)}

@media (prefers-reduced-motion: reduce){
  html.fx-ready [data-fx]{opacity:1!important;translate:none!important;scale:none!important;transition:none!important}
  html.fx-ready .section-heading[data-fx] h2:before{width:38px!important;transition:none!important}
  html.fx-ready .hero h1[data-fx] .underline:after{transform:none!important;transition:none!important}
  .plan-card,.ts-footer-benefits .benefit,.ts-footer-benefits .benefit>.icon{transition:none}
  .plan-card:hover,.ts-footer-benefits .benefit:hover,.ts-footer-benefits .benefit:hover>.icon{transform:none}
}
