/* ===== セクション ===== */
.parallax-section {
  position: relative;
  height: 220vh;
  background: rgba(230, 0, 18, .7);
}

.inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 76rem;
  overflow: hidden;
}

/* ===== テキスト ===== */
.content_1 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  width: min(54vw, 78rem);
  margin: 0 auto;
  padding: clamp(13rem, 16vh, 16rem) 0;
  top: 50%;
  transform: translateY(-50%);
}

.title {
  font-size: clamp(2.2rem, 1.94vw, 3rem);
  font-weight: bold;
  line-height: 1.62;
  letter-spacing: .02em;
  margin-bottom: clamp(2.4rem, 3vh, 3.4rem);
}

.text {
  font-size: 1.6rem;
  line-height: 1.9;
  font-weight: bold;
  letter-spacing: .02em;
}

/* ===== 画像共通 ===== */
.about_img {
  position: absolute;
  display: block;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  will-change: transform;
}

/* 上左 */
.img1 {
  width: clamp(24rem, 21vw, 36rem);
  top: clamp(5rem, 8vh, 8rem);
  left: clamp(2rem, 5vw, 8rem);
}

/* 上右 */
.img2 {
  width: clamp(22rem, 19vw, 33rem);
  top: clamp(6rem, 10vh, 9rem);
  right: clamp(2rem, 6vw, 10rem);
}

/* 下左（少し沈める） */
.img4 {
  width: clamp(23rem, 20vw, 34rem);
  bottom: clamp(5rem, 8vh, 8rem);
  left: clamp(1.6rem, 4vw, 7rem);
}

/* 下右（少し沈める） */
.img3 {
  width: clamp(25rem, 22vw, 38rem);
  right: clamp(1.6rem, 4vw, 7rem);
  bottom: clamp(5rem, 9vh, 9rem);
}

img,
svg {
  display: block;
  width: 100%;
  height: auto;
}

.kamishibai {
  position: relative;
  color: #fff;
}

.kamishibai__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.kamishibai__bg {
  position: absolute;
  inset: 0;
}

.kamishibai__bgItem {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  will-change: transform, opacity;
}

.kamishibai__bgItem.is-active {
  opacity: 1;
}

.kamishibai__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .20) 42%, rgba(0, 0, 0, .56) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .05) 52%);
  z-index: 1;
}

.kamishibai__inner {
  position: relative;
  z-index: 2;
  max-width: 128rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: minmax(32rem, 56rem) 1fr;
  align-items: center;
  gap: 5.6rem;
}

.kamishibai__left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram-stage {
  position: relative;
  width: min(44vw, 58rem);
  aspect-ratio: 629.52 / 392;
  overflow: visible;
}

.diagram {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotate(-18deg) scale(.94);
  transform-origin: 50% 50%;
  overflow: visible;
  will-change: transform, opacity;
}

.diagram.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.diagram--asset svg {
  display: none;
}

.diagram__asset {
  display: block;
}

.diagram svg,
.diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible;
}

.kamishibai__right {
  position: relative;
  min-height: 32rem;
}

.content {
  position: absolute;
  inset: 0;
  max-width: 64rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(2.8rem);
  z-index: 0;
}

.content.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.content__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 .6rem 2rem rgba(0, 0, 0, .28);
}

.content__text {
  margin: 2.4rem 0 0;
  max-width: 54rem;
  font-size: 1.8rem;
  line-height: 2;
  font-weight: 700;
  text-shadow: 0 .3rem 1.2rem rgba(0, 0, 0, .35);
}

.scene-step {
  height: 100vh;
}

.red {
  color: var(--color-primary-dark);
}

.js-split {
  display: inline-block;
  overflow: hidden;
}

.js-split-inner {
  display: inline-block;
  transform: translateY(100%);
}

.js-line {
  display: block;
  overflow: hidden;
}

.js-line-inner {
  display: block;
  transform: translateY(100%);
}

.js-line-gap {
  display: block;
  height: 1.2em;
}

@media (max-width: 1200px) {
  .content_1 {
    width: min(55vw, 68rem);
  }

  .img1 {
    width: clamp(18rem, 18vw, 24rem);
    left: clamp(1.6rem, 4vw, 5rem);
  }

  .img2 {
    width: clamp(17rem, 17vw, 23rem);
    right: clamp(1.6rem, 4vw, 5rem);
  }

  .img4 {
    width: clamp(18rem, 18vw, 24rem);
    left: clamp(1.6rem, 3vw, 4rem);
  }

  .img3 {
    width: clamp(19rem, 19vw, 26rem);
    right: clamp(1.6rem, 3vw, 4rem);
  }
}

@media (max-width: 1024px) {
  .parallax-section {
    height: auto;
  }

  .inner {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: hidden;
    padding: 10rem 4rem 11rem;
  }

  .content_1 {
    width: min(100%, 72rem);
    padding: 6rem 0 7rem;
    text-align: left;
    top: auto;
    transform: none;
  }

  .title {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    line-height: 1.6;
    margin-bottom: 2.8rem;
  }

  .text {
    font-size: 1.6rem;
    line-height: 1.9;
  }

  .about_img {
    opacity: .35;
  }

  .img1 {
    width: min(28vw, 24rem);
    top: 2.4rem;
    left: 2rem;
  }

  .img2 {
    width: min(27vw, 23rem);
    top: 3rem;
    right: 2rem;
  }

  .img4 {
    width: min(28vw, 24rem);
    bottom: 2.4rem;
    left: 2rem;
  }

  .img3 {
    width: min(32vw, 27rem);
    right: 2rem;
    bottom: 2.4rem;
  }

  .kamishibai__inner {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding: 4.8rem 2.4rem;
    align-content: center;
  }

  .kamishibai__left {
    justify-content: flex-start;
  }

  .diagram-stage {
    width: min(78vw, 52rem);
  }

  .kamishibai__right {
    min-height: 26rem;
  }

  .content {
    max-width: 100%;
  }

  .content__title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
}

@media (max-width: 767px) {
  .inner {
    padding: 9.6rem 2rem 15rem;
  }

  .content_1 {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 4.8rem 0 9rem;
  }

  .title {
    font-size: clamp(1.9rem, 5.6vw, 2.4rem);
    line-height: 1.58;
    margin-bottom: 2rem;
  }

  .text {
    font-size: 1.6rem;
    line-height: 1.88;
    letter-spacing: .01em;
  }

  .about_img {
    opacity: .16;
  }

  .img1 {
    width: 30vw;
    top: 2rem;
    left: 1.2rem;
  }

  .img2 {
    width: 32vw;
    top: 2.4rem;
    right: 1.2rem;
  }

  .img4 {
    width: 28vw;
    bottom: 3rem;
    left: 1.2rem;
  }

  .img3 {
    width: 31vw;
    right: 1.2rem;
    bottom: 3rem;
  }

  .kamishibai__sticky {
    height: 100svh;
    min-height: 68rem;
  }

  .kamishibai__inner {
    gap: 2.4rem;
    padding: 8rem 2rem 4rem;
    align-content: center;
  }

  .kamishibai__left {
    justify-content: center;
  }

  .diagram-stage {
    width: min(82vw, 36rem);
  }

  .kamishibai__right {
    min-height: 34rem;
  }

  .content__title {
    font-size: clamp(2.2rem, 7vw, 3rem);
    line-height: 1.35;
  }

  .content__text {
    margin-top: 1.8rem;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .scene-step {
    height: 86svh;
    min-height: 54rem;
  }
}
