@charset "UTF-8";
.next-step {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  overflow: hidden;
  margin-block-start: clamp(96px, 13.2vw, 190px);
  padding-block: 62px 57px;
  background-image: var(--g-band-bottom);
}

@keyframes marquee-up-v {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
@keyframes marquee-left-h {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.next-step__wordmark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
}

.next-step__wordmark-track {
  display: flex;
  gap: 1.5em;
  writing-mode: vertical-rl;
  font-family: var(--f-mincho);
  font-size: var(--fs-wordmark-v);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-surface);
  opacity: 0.85;
  margin: 0;
  animation: marquee-up-v 15s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .next-step__wordmark-track {
    animation-play-state: paused;
  }
}
.next-step__inner {
  position: relative;
  z-index: 1;
  width: min(1114px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 493fr) minmax(0, 562fr);
  align-items: center;
  gap: clamp(24px, 4.1vw, 59px);
}

.next-step__figure {
  overflow: hidden;
  aspect-ratio: 493/306;
  border-radius: 8px;
  background-color: var(--c-placeholder);
}

.next-step__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-step__title {
  margin-block-end: 20px;
  font-size: var(--fs-band-title);
  line-height: var(--lh-title);
}

.next-step__note {
  margin-block-end: 10px;
  color: var(--c-muted);
}

.next-step__body {
  margin-block-end: 30px;
  color: var(--c-muted);
}

.next-step__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1024px) {
  .next-step__inner {
    /* タイトルが2行にならないよう、テキストエリア（右）の比率を大きめ（60%）に取り、画像（左）を狭めていく可変式に変更 */
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .next-step {
    padding-block: 44px;
  }
  .next-step__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  /* SP版：写真を下にする */
  .next-step__figure {
    order: 2;
  }
  .next-step__text {
    order: 1;
  }
  /* SP版：流れる文字を水平にし、写真の下部に半分重なるように配置 */
  .next-step__wordmark {
    top: auto;
    bottom: calc(44px - 0.5em); /* 44px(下余白) - 文字の半分の高さ */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2; /* 写真の上に重なるようにする */
  }
  .next-step__wordmark-track {
    writing-mode: horizontal-tb; /* 90度回転（横書きに戻す） */
    animation: marquee-left-h 15s linear infinite;
  }
}

/*# sourceMappingURL=next-step.css.map */
