.photoParallaxBox {
  /*background-color: #333;*/
  background-color: #fff;
  position: relative;
  z-index: 99;
  margin: 0 auto;
}

.photoParallaxOverlay {
  content: "";
  background-color: #fff;
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  z-index: 100;
}

.photoParallaxInBox {
  width: auto;
  max-width: 100%;
  margin-top: 100px;
  height: calc(100dvh - 100px);  /* この高さが重要 */
  margin: 0 auto;
  position: relative;
  aspect-ratio: 32 / 9;
}

.photoParallax {
  position: relative; /* 親要素として位置を指定 */
  height: 100%;  /* 親の高さに依存 */
}

.parallaxBackground {
  position: sticky;
  top: 250px;
  left: 0;
  width: 100%;
  aspect-ratio: 32 / 9;
  background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 1;
}

.parallaxBackground.inView {
  animation: bgAn 3.5s linear forwards;
}

@keyframes bgAn {
  0% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg1.png");
  }
  5.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg2.png");
  }
  11% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg3.png");
  }
  16.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg4.png");
  }
  22% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg5.png");
  }
  27.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg6.png");
  }
  33% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg7.png");
  }
  38.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg8.png");
  }
  44% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg9.png");
  }
  49.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg10.png");
  }
  55% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg11.png");
  }
  60.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg12.png");
  }
  66% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg13.png");
  }
  71.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg14.png");
  }
  77% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg15.png");
  }
  82.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg16.png");
  }
  88% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg17.png");
  }
  93.5% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg18.png");
  }
  100% {
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg19.png");
  }
}

.photoParallaxTop {
  position: absolute;
  z-index: 10001;
  right: 10px;
  bottom: 10px;
  color: #fff;
  background-color: #9b2222;
  text-align: center;
  font-size: 12px;
  line-height: 1.5em;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.75;
  transition: 0.5s;
}

.photoParallaxTop:hover {
  opacity: 1;
}

.photoLayerBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.photoLayer {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  transition: all 1s ease-out;
  z-index: 1;
  background-image: unset !important;
}

.photoLayer img {
  max-width: 100%;
}

.photo1, .photo2, .photo3, .photo4, .photo5, .photo6, .photo7, .photo8, .photo9, .photo10, .photo11, .photo12, .photo13, .photo14, .photo15, .photo16, .photo17 {
  opacity: 0;
}

.photoFixed {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}

.photoFixed img {
  opacity: 0;
  transition: 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 通常のフェードイン */
.photoFixedFadein.inView img {
  opacity: 1;
}

/* 左からのスライド */
.photoFixedLeft img {
  transform: translateX(-10dvw);
}

.photoFixedLeft.inView img {
  opacity: 1;
  transform: translateX(0);
}

/* 右からのスライド */
.photoFixedRight img {
  transform: translateX(10dvw);
}

.photoFixedRight.inView img {
  opacity: 1;
  transform: translateX(0);
}

/* 上からのスライド */
.photoFixedDown img {
  transform: translateY(-10dvw);
}

.photoFixedDown.inView img {
  opacity: 1;
  transform: translateY(0);
}

/* 下からのスライド */
.photoFixedUp img {
  transform: translateY(10dvw);
}

.photoFixedUp.inView img {
  opacity: 1;
  transform: translateY(0);
}

/* 中央から大きく */
.photoFixedBig img {
  transform: scale(0);
}

.photoFixedBig.inView img {
  opacity: 1;
  transform: scale(1);
}

/* 大きいのを縮める */
.photoFixedShrink img {
  transform: scale(10);
  transform-origin: center;
}

.photoFixedShrink.inView img {
  opacity: 1;
  transform: scale(1);
}

.photoF11 {
  transition: 0.75s ease-in-out;
}

.photoF11.inView {
  background-color: rgba(255, 255, 255, 0.9);
}

.photoParallaxLayer {
  display: none;
  position: fixed;
  z-index: 1002;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 0, 0, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25em;
  padding: 3px 5px;
  letter-spacing: -1px;
}

/* debug */
.debugBox {
  position: fixed;
  z-index: 99999;
  left: 0;
  bottom: 0;
  /*color: #333;
  text-shadow: 0 0 1px #fff, 0 0 1px #fff;*/
  color: #fff;
  padding: 5px;
  font-size: 8px;
  line-height: 1.4em;
  opacity: 0.01;
}


@media all and (max-width: 1024px) { /* SP */
  .photoParallaxInBox {
    aspect-ratio: 11 / 24;
  }

  .parallaxBackground {
    position: fixed;
    background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg1_sp.png");
    aspect-ratio: 11 / 24;
    height: 100%;
    width: auto;
    left: 50%;
    transform: translate(-50%, 0);
  }

  @keyframes bgAn {
    0% {
      background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg1_sp.png");
    }
    100% {
      background-image: url("/wp-content/themes/manga-biz2024/images/top/mangaAnimation/bg/bg1_sp.png");
    }
  }

  .photoParallaxTop {
    bottom: 100px;
  }

  .topStrengthsMangaAnimation {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .topStrengthsMangaAnimation .box {
    width: calc(100vw / 7);
    height: calc(100vw / 7);
    background: #fff;
    opacity: 0;
    /*transition: 0.05s ease-out;*/
  }

  .topStrengthsMangaAnimation .box.visible {
    opacity: 1;
  }

  /*.topStrengthsMangaAnimation .box:nth-child(1)  { background-color: rgba(255, 255, 255, 0.01); }
  .topStrengthsMangaAnimation .box:nth-child(2)  { background-color: rgba(255, 255, 255, 0.02); }
  .topStrengthsMangaAnimation .box:nth-child(3)  { background-color: rgba(255, 255, 255, 0.03); }
  .topStrengthsMangaAnimation .box:nth-child(4)  { background-color: rgba(255, 255, 255, 0.04); }
  .topStrengthsMangaAnimation .box:nth-child(5)  { background-color: rgba(255, 255, 255, 0.05); }
  .topStrengthsMangaAnimation .box:nth-child(6)  { background-color: rgba(255, 255, 255, 0.06); }
  .topStrengthsMangaAnimation .box:nth-child(7)  { background-color: rgba(255, 255, 255, 0.07); }
  .topStrengthsMangaAnimation .box:nth-child(8)  { background-color: rgba(255, 255, 255, 0.08); }
  .topStrengthsMangaAnimation .box:nth-child(9)  { background-color: rgba(255, 255, 255, 0.09); }
  .topStrengthsMangaAnimation .box:nth-child(10) { background-color: rgba(255, 255, 255, 0.10); }
  .topStrengthsMangaAnimation .box:nth-child(11) { background-color: rgba(255, 255, 255, 0.11); }
  .topStrengthsMangaAnimation .box:nth-child(12) { background-color: rgba(255, 255, 255, 0.12); }
  .topStrengthsMangaAnimation .box:nth-child(13) { background-color: rgba(255, 255, 255, 0.13); }
  .topStrengthsMangaAnimation .box:nth-child(14) { background-color: rgba(255, 255, 255, 0.14); }
  .topStrengthsMangaAnimation .box:nth-child(15) { background-color: rgba(255, 255, 255, 0.15); }
  .topStrengthsMangaAnimation .box:nth-child(16) { background-color: rgba(255, 255, 255, 0.16); }
  .topStrengthsMangaAnimation .box:nth-child(17) { background-color: rgba(255, 255, 255, 0.17); }
  .topStrengthsMangaAnimation .box:nth-child(18) { background-color: rgba(255, 255, 255, 0.18); }
  .topStrengthsMangaAnimation .box:nth-child(19) { background-color: rgba(255, 255, 255, 0.19); }
  .topStrengthsMangaAnimation .box:nth-child(20) { background-color: rgba(255, 255, 255, 0.20); }
  .topStrengthsMangaAnimation .box:nth-child(21) { background-color: rgba(255, 255, 255, 0.21); }
  .topStrengthsMangaAnimation .box:nth-child(22) { background-color: rgba(255, 255, 255, 0.22); }
  .topStrengthsMangaAnimation .box:nth-child(23) { background-color: rgba(255, 255, 255, 0.23); }
  .topStrengthsMangaAnimation .box:nth-child(24) { background-color: rgba(255, 255, 255, 0.24); }
  .topStrengthsMangaAnimation .box:nth-child(25) { background-color: rgba(255, 255, 255, 0.25); }
  .topStrengthsMangaAnimation .box:nth-child(26) { background-color: rgba(255, 255, 255, 0.26); }
  .topStrengthsMangaAnimation .box:nth-child(27) { background-color: rgba(255, 255, 255, 0.27); }
  .topStrengthsMangaAnimation .box:nth-child(28) { background-color: rgba(255, 255, 255, 0.28); }
  .topStrengthsMangaAnimation .box:nth-child(29) { background-color: rgba(255, 255, 255, 0.29); }
  .topStrengthsMangaAnimation .box:nth-child(30) { background-color: rgba(255, 255, 255, 0.30); }
  .topStrengthsMangaAnimation .box:nth-child(31) { background-color: rgba(255, 255, 255, 0.31); }
  .topStrengthsMangaAnimation .box:nth-child(32) { background-color: rgba(255, 255, 255, 0.32); }
  .topStrengthsMangaAnimation .box:nth-child(33) { background-color: rgba(255, 255, 255, 0.33); }
  .topStrengthsMangaAnimation .box:nth-child(34) { background-color: rgba(255, 255, 255, 0.34); }
  .topStrengthsMangaAnimation .box:nth-child(35) { background-color: rgba(255, 255, 255, 0.35); }
  .topStrengthsMangaAnimation .box:nth-child(36) { background-color: rgba(255, 255, 255, 0.36); }
  .topStrengthsMangaAnimation .box:nth-child(37) { background-color: rgba(255, 255, 255, 0.37); }
  .topStrengthsMangaAnimation .box:nth-child(38) { background-color: rgba(255, 255, 255, 0.38); }
  .topStrengthsMangaAnimation .box:nth-child(39) { background-color: rgba(255, 255, 255, 0.39); }
  .topStrengthsMangaAnimation .box:nth-child(40) { background-color: rgba(255, 255, 255, 0.40); }
  .topStrengthsMangaAnimation .box:nth-child(41) { background-color: rgba(255, 255, 255, 0.41); }
  .topStrengthsMangaAnimation .box:nth-child(42) { background-color: rgba(255, 255, 255, 0.42); }
  .topStrengthsMangaAnimation .box:nth-child(43) { background-color: rgba(255, 255, 255, 0.43); }
  .topStrengthsMangaAnimation .box:nth-child(44) { background-color: rgba(255, 255, 255, 0.44); }
  .topStrengthsMangaAnimation .box:nth-child(45) { background-color: rgba(255, 255, 255, 0.45); }
  .topStrengthsMangaAnimation .box:nth-child(46) { background-color: rgba(255, 255, 255, 0.46); }
  .topStrengthsMangaAnimation .box:nth-child(47) { background-color: rgba(255, 255, 255, 0.47); }
  .topStrengthsMangaAnimation .box:nth-child(48) { background-color: rgba(255, 255, 255, 0.48); }
  .topStrengthsMangaAnimation .box:nth-child(49) { background-color: rgba(255, 255, 255, 0.49); }
  .topStrengthsMangaAnimation .box:nth-child(50) { background-color: rgba(255, 255, 255, 0.50); }
  .topStrengthsMangaAnimation .box:nth-child(51) { background-color: rgba(255, 255, 255, 0.51); }
  .topStrengthsMangaAnimation .box:nth-child(52) { background-color: rgba(255, 255, 255, 0.52); }
  .topStrengthsMangaAnimation .box:nth-child(53) { background-color: rgba(255, 255, 255, 0.53); }
  .topStrengthsMangaAnimation .box:nth-child(54) { background-color: rgba(255, 255, 255, 0.54); }
  .topStrengthsMangaAnimation .box:nth-child(55) { background-color: rgba(255, 255, 255, 0.55); }
  .topStrengthsMangaAnimation .box:nth-child(56) { background-color: rgba(255, 255, 255, 0.56); }
  .topStrengthsMangaAnimation .box:nth-child(57) { background-color: rgba(255, 255, 255, 0.57); }
  .topStrengthsMangaAnimation .box:nth-child(58) { background-color: rgba(255, 255, 255, 0.58); }
  .topStrengthsMangaAnimation .box:nth-child(59) { background-color: rgba(255, 255, 255, 0.59); }
  .topStrengthsMangaAnimation .box:nth-child(60) { background-color: rgba(255, 255, 255, 0.60); }
  .topStrengthsMangaAnimation .box:nth-child(61) { background-color: rgba(255, 255, 255, 0.61); }
  .topStrengthsMangaAnimation .box:nth-child(62) { background-color: rgba(255, 255, 255, 0.62); }
  .topStrengthsMangaAnimation .box:nth-child(63) { background-color: rgba(255, 255, 255, 0.63); }
  .topStrengthsMangaAnimation .box:nth-child(64) { background-color: rgba(255, 255, 255, 0.64); }
  .topStrengthsMangaAnimation .box:nth-child(65) { background-color: rgba(255, 255, 255, 0.65); }
  .topStrengthsMangaAnimation .box:nth-child(66) { background-color: rgba(255, 255, 255, 0.66); }
  .topStrengthsMangaAnimation .box:nth-child(67) { background-color: rgba(255, 255, 255, 0.67); }
  .topStrengthsMangaAnimation .box:nth-child(68) { background-color: rgba(255, 255, 255, 0.68); }
  .topStrengthsMangaAnimation .box:nth-child(69) { background-color: rgba(255, 255, 255, 0.69); }
  .topStrengthsMangaAnimation .box:nth-child(70) { background-color: rgba(255, 255, 255, 0.70); }
  .topStrengthsMangaAnimation .box:nth-child(71) { background-color: rgba(255, 255, 255, 0.71); }
  .topStrengthsMangaAnimation .box:nth-child(72) { background-color: rgba(255, 255, 255, 0.72); }
  .topStrengthsMangaAnimation .box:nth-child(73) { background-color: rgba(255, 255, 255, 0.73); }
  .topStrengthsMangaAnimation .box:nth-child(74) { background-color: rgba(255, 255, 255, 0.74); }
  .topStrengthsMangaAnimation .box:nth-child(75) { background-color: rgba(255, 255, 255, 0.75); }
  .topStrengthsMangaAnimation .box:nth-child(76) { background-color: rgba(255, 255, 255, 0.76); }
  .topStrengthsMangaAnimation .box:nth-child(77) { background-color: rgba(255, 255, 255, 0.77); }
  .topStrengthsMangaAnimation .box:nth-child(78) { background-color: rgba(255, 255, 255, 0.78); }
  .topStrengthsMangaAnimation .box:nth-child(79) { background-color: rgba(255, 255, 255, 0.79); }
  .topStrengthsMangaAnimation .box:nth-child(80) { background-color: rgba(255, 255, 255, 0.80); }
  .topStrengthsMangaAnimation .box:nth-child(81) { background-color: rgba(255, 255, 255, 0.81); }
  .topStrengthsMangaAnimation .box:nth-child(82) { background-color: rgba(255, 255, 255, 0.82); }
  .topStrengthsMangaAnimation .box:nth-child(83) { background-color: rgba(255, 255, 255, 0.83); }
  .topStrengthsMangaAnimation .box:nth-child(84) { background-color: rgba(255, 255, 255, 0.84); }
  .topStrengthsMangaAnimation .box:nth-child(85) { background-color: rgba(255, 255, 255, 0.85); }
  .topStrengthsMangaAnimation .box:nth-child(86) { background-color: rgba(255, 255, 255, 0.86); }
  .topStrengthsMangaAnimation .box:nth-child(87) { background-color: rgba(255, 255, 255, 0.87); }
  .topStrengthsMangaAnimation .box:nth-child(88) { background-color: rgba(255, 255, 255, 0.88); }
  .topStrengthsMangaAnimation .box:nth-child(89) { background-color: rgba(255, 255, 255, 0.89); }
  .topStrengthsMangaAnimation .box:nth-child(90) { background-color: rgba(255, 255, 255, 0.90); }
  .topStrengthsMangaAnimation .box:nth-child(91) { background-color: rgba(255, 255, 255, 0.91); }
  .topStrengthsMangaAnimation .box:nth-child(92) { background-color: rgba(255, 255, 255, 0.92); }
  .topStrengthsMangaAnimation .box:nth-child(93) { background-color: rgba(255, 255, 255, 0.93); }
  .topStrengthsMangaAnimation .box:nth-child(94) { background-color: rgba(255, 255, 255, 0.94); }
  .topStrengthsMangaAnimation .box:nth-child(95) { background-color: rgba(255, 255, 255, 0.95); }
  .topStrengthsMangaAnimation .box:nth-child(96) { background-color: rgba(255, 255, 255, 0.96); }
  .topStrengthsMangaAnimation .box:nth-child(97) { background-color: rgba(255, 255, 255, 0.97); }
  .topStrengthsMangaAnimation .box:nth-child(98) { background-color: rgba(255, 255, 255, 0.98); }
  .topStrengthsMangaAnimation .box:nth-child(99) { background-color: rgba(255, 255, 255, 0.99); }
  .topStrengthsMangaAnimation .box:nth-child(100){ background-color: rgba(255, 255, 255, 1.00); }*/

}