.header {
  position: relative;
  inset: auto;
}


.home-hero {
  position: relative;
  height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0 1.25rem 1.25rem;
  @media (min-width: 768px) {
    padding-inline: 2.5rem;
  }
  @media (min-width: 1024px) {
    height: 37.5rem;
  }
  
  & .home-hero__slider {
    position: absolute;
    inset: 0;
    & .swiper-slide {
      &::after {
        pointer-events: none;
        content: "";
        position: absolute;
        inset: 0;
        background-color: hsl(0deg 0% 0% / 0.2);
      }
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
    & .swiper-pagination {
      display: flex;
      justify-content: end;
      gap: 1.25rem;
      inset: auto 2.5rem 2.5rem auto;
      --swiper-pagination-color: var(--snow);
      --swiper-pagination-bullet-inactive-color: var(--snow);
    }
    & .swiper-pagination-bullet {
      width: 4.375rem;
      height: 0.625rem;
      border-radius: 9999px;
      margin: 0;
    }
  }
  
  & .home-hero__news {
    position: relative;
    z-index: 1;
    border-radius: 1rem;
    padding: 1.75rem 1rem 1rem;
    background-color: var(--snow);
    box-shadow: var(--elevation-1);
    max-width: 25rem;
    &::before {
      content: "What’s new";
      line-height: 1.25;
      --tracking: 0.04em;
      font-weight: 700;
      color: var(--snow);
      background-color: var(--ink);
      border-radius: 9999px;
      padding: 0.25rem 1rem;
      position: absolute;
      top: -1rem;
      left: 0.625rem;
    }
    & a {
      padding-bottom: 0;
      border-bottom: none;
    }
  }
}

.ticker-container {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.ticker-group img {
  aspect-ratio: 3 /2;
  width: 10rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .ticker-group img {
    width: 20rem;
  }
}

/* 1024px未満（横流れ）のアニメーション設定 */
.ticker-container--1 .ticker-track {
  animation: ticker-horizontal 24s linear infinite;
}

.ticker-container--2 .ticker-track {
  animation: ticker-horizontal-reverse 24s linear infinite;
}

/* ----------------------------------
   1024px以上（左右配置 & 縦流れ切り替え）
---------------------------------- */
@media (min-width: 1024px) {
  .ticker-container {
    flex: 1 1 0%;
    max-width: 15rem;
    height: 100%;
  }

  .ticker-track {
    flex-direction: column;
    width: 100%;
    height: max-content;
  }

  .ticker-group {
    flex-direction: column;
    gap: 2.5rem;
    padding-right: 0;
    padding-bottom: 2.5rem;
  }

  .ticker-group img {
    width: 100%;
  }

  /* 縦流れのアニメーションに上書き */
  .ticker-container--1 .ticker-track {
    animation: ticker-vertical 30s linear infinite;
  }

  .ticker-container--2 .ticker-track {
    animation: ticker-vertical-reverse 30s linear infinite;
  }
}

@media (min-width: 1200px) {
  .ticker-container {
    max-width: 25rem;
  }
}

.home-intro-container {
  @media (min-width: 1024px) {
    height: 60rem;
  }
  @media (min-width: 1200px) {
    height: 75rem;
  }
}

.wave {
  @media (min-width: 1024px) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}

.home-lineup-slider {
  width: 100%;
  height: 30rem;
  box-shadow: var(--elevation-1);
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  @media (min-width: 1024px) {
    height: stretch;
  }
}

.home-business-card {
  position: relative;
  box-shadow: var(--elevation-1);
  border-radius: 1.5rem;
  background-color: var(--snow);
  padding: 1.75rem 1.25rem;
  & > img {
    position: absolute;
    top: -2.5rem;
    right: -0.5rem;
  }
  @media (min-width: 768px) {
    padding-inline: 3rem;
    & > img {
      right: 1rem;
    }
  }
  @media (min-width: 1024px) {
    padding-left: 3.75rem;
    & > img {
      right: -1.5rem;
    }
    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }
    &::before {
      aspect-ratio: 1 / 1;
      width: 0.5rem;
      border-radius: 9999px;
      background-color: var(--ink);
      left: -5rem;
    }
    &::after {
      width: 6rem;
      border: 2px dashed var(--ink);
      left: -4.75rem;
    }
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    & > img {
      right: -0.5rem;
    }
    &::after {
      width: 7.5rem;
    }
  }
}

.home-blog-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
    @media (min-width: 1024px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      & .webgene-no-items {
        grid-column: span 3 / span 3;
      }
    }
  }
}

.insta-list {
  width: 100%;
  overflow: visible;
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-slide {
    transform: rotate(3deg);
  }
}
























