.home-hero {
  height: clamp(37.5rem, 100dvh, 75rem);
  
  & .hero-title {
    font-size: 1.5rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
  
    @media (min-width: 768px) {
      font-size: 3rem;
      width: auto;
    }
    @media (min-width: 1200px) {
      font-size: 4rem;
    }
  }
  & .home-hero__deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
}
.home-hero-image {
  z-index: 0;
  & img.main {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & img.left, & img.right {
    position: absolute;
    width: 40.875%;
    top: 0;
    bottom: 0;
    height: 100%;
    object-fit: cover;
    mask-size: 100% 100%;
  }
  & img.left {
    left: 0;
    mask-image: url(/system_panel/uploads/images/hero-mask-right.png);
  }
  & img.right {
    right: 0;
    mask-image: url(/system_panel/uploads/images/hero-mask-left.png);
  }
  &::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    background-color: rgba(0 0 0 / 5%);
    pointer-events: none;
    z-index: 1;
  }
}

.story-image-1, .story-image-2 {
  position: relative;
  & img {
    box-shadow: var(--elevation);
  }
}

.story-image-1 {
  & .static {
    width: 65%;
    max-width: 37.5rem;
  }
  & .abs {
    position: absolute;
    top: -3.125rem;
    right: -2.5rem;
    width: 70%;
    max-width: 28.125rem;
    
    @media (min-width: 1024px) {
      right: -8.125rem;
    }
  }
}
.story-image-2 {
  & .static {
    width: 80%;
    max-width: 32.625rem;
    margin-left: auto;
    display: block;
  }
  & .abs {
    position: absolute;
    
    &.abs--1 {
      top: -1rem;
      left: -3.75rem;
      width: 60%;
      max-width: 25rem;
      
      @media (min-width: 1024px) {
        left: -10rem;
      }
      @media (min-width: 1200px) {
        top: -10rem;
      }
    }
    &.abs--2 {
      bottom: -6.75rem;
      right: -5rem;
      width: 66%;
      max-width: 27.5rem;
      
      @media (min-width: 1024px) {
        right: unset;
        left: 3.125rem;
        bottom: -8.75rem;
      }
    }
  }
}


.home-crop {
  position: relative;
  &::before, &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: clamp(20rem, 32.4375%, 35rem);
    border-radius: 9999px;
    background-image: var(--grad-orange);
    filter: blur(25px);
    opacity: 35%;
    position: absolute;
  }
  
  &::before {
    top: 3rem;
    left: -8rem;
  }
  &::after {
    bottom: 1rem;
    right: -9rem;
  }
}


.links-text {
  position: absolute;
  top: 1rem;
  right: -5rem;
}

.insta-list {
  & img {
    aspect-ratio: 1 / 1;
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
}

.flow-text,
.flow-text--reverse {
  overflow: hidden;        /* はみ出しを隠す */
  width: 100%;
  display: flex;
}

/* JSで生成される内側のトラック */
.flow-text__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;      /* 中身の合計幅を保持 */
  flex-shrink: 0;
  will-change: transform;
  animation: flow-text-scroll 20s linear infinite;
}

.flow-text--reverse .flow-text__track {
  animation-name: flow-text-scroll-reverse;
}

/* コピー同士の間隔（お好みで） */
.flow-text__track > p {
  margin: 0;
  padding-right: 0.5em;    /* 単語間スペース。不要なら 0 に */
  white-space: nowrap;
  flex-shrink: 0;
}

/* -50% ずらせば必ず継ぎ目が合う（同じ内容を2セット並べるため） */
@keyframes flow-text-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes flow-text-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* アクセシビリティ：モーション低減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .flow-text__track {
    animation: none;
  }
}