.home-hero {
  padding: 0.625rem;
  height: 40rem;
  @media (min-width: 768px) {
    padding: 1.25rem;
  }
  @media (min-width: 1024px) {
    height: clamp(50rem, 100dvh, 65rem);
  }
  
  & .home-hero__content {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2.5rem 0.675rem;
    border-radius: 1rem;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.5;
      background-color: #000000;
    }
    @media (min-width: 768px) {
      padding-inline: 1.25rem;
    }
    @media (min-width: 1024px) {
      padding-inline: 2.5rem;
    }
  }
  
  & .swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
    & .swiper-slide {
      overflow: hidden;
      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
      }
    }
    .swiper-slide-active img, .swiper-slide-prev img {
      animation: zoomUp 9s linear forwards;
    }
  }
  
  & .home-hero__logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    width: 17.5rem;
    @media (min-width: 768px) {
      width: 22.5rem;
    }
    @media (min-width: 1200px) {
      width: 27.5rem;
    }
  }
}

@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.animated-svg {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

/* 各path要素の初期状態とアニメーション設定 */
.animated-svg path {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 下から立ち上がるキーフレームアニメーション */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-intro-bg-dec {
  &::before {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 62.5%;
    background-color: var(--logo-sky);
    opacity: 0.05;
    clip-path: polygon(33% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

.home-consult-cards {
  display: grid;
  border-top: 1px solid hsl(from var(--ink) h s l / 0.15);
  counter-reset: card-num;
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media (min-width: 1200px) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  & .home-consult-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 2rem 2.5rem;
    counter-increment: card-num;
    line-height: 1.25;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    &::before {
      content: counter(card-num, decimal-leading-zero);
      color: var(--logo-sky);
      line-height: 1;
      --tracking: -0.02em;
      font-family: var(--font-sans);
      font-size: 0.75rem;
    }
    &::after {
      content: "";
      aspect-ratio: 28 / 16;
      width: 1.75rem;
      background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2216%22%20viewBox%3D%220%200%2028%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2227%22%20height%3D%2215%22%20rx%3D%227.5%22%20stroke%3D%22%232175BB%22%2F%3E%0A%3Cpath%20d%3D%22M17.4375%207.53125C17.6964%207.53125%2017.9062%207.74112%2017.9062%208C17.9062%208.25888%2017.6964%208.46875%2017.4375%208.46875H10.0938V7.53125H17.4375Z%22%20fill%3D%22%232175BB%22%2F%3E%0A%3Cpath%20d%3D%22M17.7688%207.66846C17.9519%207.85152%2017.9519%208.14824%2017.7688%208.3313L14.9563%2011.1438L14.2935%2010.481L16.7745%207.99988L14.2935%205.5188L14.9563%204.85596L17.7688%207.66846Z%22%20fill%3D%22%232175BB%22%2F%3E%0A%3C%2Fsvg%3E%0A");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-top: -1rem;
      margin-left: auto;
    }
    &:nth-child(n+2) {
      border-top: 1px solid hsl(from var(--ink) h s l / 0.15);
    }
    @media (min-width: 768px) {      
      &:nth-child(n+2) {
        border-top: none;
      }
      &:nth-child(n+3) {
        border-top: 1px solid hsl(from var(--ink) h s l / 0.15);
      }
      &:nth-child(even) {
        border-left: 1px solid hsl(from var(--ink) h s l / 0.15);
      }
    }
    @media (min-width: 1200px) {
      &:nth-child(n+3) {
        border-top: none;
      }
      &:nth-child(n+2) {
        border-left: 1px solid hsl(from var(--ink) h s l / 0.15);
      }
    }
  }
}








