/* motions */


/**************************************************************
* GLOBAL
**************************************************************/

/* Fadein blocks */
.plan-item,
.program-item,
.faq-item {
  opacity: 0;
}

/* js-transient-obi（画像）*/
.js-transient-obi:not(.wp-theme-headline) {
  position: relative;
  overflow: hidden;
}

.js-transient-obi:not(.wp-theme-headline)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  background: var(--wp--preset--color--foreground);
}

.js-transient-obi:not(.wp-theme-headline) > img {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.js-transient-obi:not(.wp-theme-headline).is-animated::before {
  animation: transient-bg-cover-fx 1.5s ease-in-out forwards;
}

.js-transient-obi:not(.wp-theme-headline).is-animated > img {
  opacity: 1;
  transition-delay: 0.75s;
}

/* js-transient-obi（見出し）*/
.js-transient-obi[class*="wp-theme-headline"] {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__alphabetic,
.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__kana {
  position: relative;
  overflow: hidden;
}

.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__alphabetic > strong,
.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__kana > strong {
  opacity: 0;
}

.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__alphabetic::before,
.js-transient-obi[class*="wp-theme-headline"] .wp-theme-headline__kana::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  background: var(--wp--preset--color--foreground);
}

.js-transient-obi[class*="wp-theme-headline"].is-animated .wp-theme-headline__alphabetic > strong,
.js-transient-obi[class*="wp-theme-headline"].is-animated .wp-theme-headline__kana > strong {
  opacity: 1;
  transition-delay: 0.75s;
}

.js-transient-obi[class*="wp-theme-headline"].is-animated .wp-theme-headline__alphabetic::before,
.js-transient-obi[class*="wp-theme-headline"].is-animated .wp-theme-headline__kana::before {
  animation: transient-bg-cover-fx 1.5s ease-in-out forwards;
}



/**************************************************************
* HERO
**************************************************************/

/* states */
#js-hero-heading-fx .hero-heading__line1,
#js-hero-heading-fx .hero-heading__line2,
#js-hero-heading-fx .hero-heading__handwritten-catch {
  opacity: 0;
}


/* animation */
.hero-copy {
  opacity: 0;
  visibility: hidden;
}

.hero-copy > strong {
  display: inline-block;
  transform-origin: 0 50%;
}
.hero-copy > strong:not(:last-child) {
  margin-bottom: 0.5rem;
}

.hero-copy__span {
  display: inline-block;
  opacity: 0;
}

.hero-lead {
  opacity: 0;
}

.hero-slide img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-slide.is-shown img {
  opacity: 1;
}

.hero-slide img {
  transform: scale(1.3);
  transform-origin: center;
  animation: silde-zoomed-fx 20s linear alternate infinite;
}

@keyframes silde-zoomed-fx {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* hero rail-horizontal-txt */
.rail-horizontal-txt {
  --rail-speed: 80s;
}

.rail-horizontal-txt__body > p {
  animation: rail-loop-slide var(--rail-speed, 80s) infinite linear both;
  will-change: transform;
}



/**************************************************************
* CONCEPT
**************************************************************/

/* concept-item */
.concept-item__body {
  opacity: 0;
}

.concept-item__body .wp-block-group {
  opacity: 0;
}

/* concept-fig-cubes */
.concept-fig-cubes {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  width: 100%;
  height: 100%;
}
.concept-fig-cubes > span {
  display: block;
  background: var(--wp--preset--color--background);
}

/* states */
#js-concept-reveal-fx :is(h2, h3, h4, h5, h6),
#js-concept-reveal-fx :is(p, li, dt, dd) {
  will-change: filter, transform, opacity;
}
#js-concept-reveal-fx :is(p.reveal-fx-ended) > mark::after {
  transform: scaleX(1);
}




/**************************************************************
* KEYFRAMES DEFINITIONS
**************************************************************/
@keyframes rail-loop-slide {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-101%);
  }
}

@keyframes transient-bg-cover-fx {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 1;
    transform: translateX(102%);
  }
}