.function {
  position: relative;
  max-width: 790px;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 35px;
  margin-inline: auto;
  padding-top: 0em !important;
}

.function + .main-btn {
  display: table;
  margin: 30px auto 90px;
}

.function-heading {
  position: sticky;
  top: 130px;
  z-index: -2;
  width: max-content;
  margin-inline: auto;
}

.function-icon-wrapper .pin-spacer {
  width: 100% !important;
}

  .function-visuals {
    position: relative;
  }

  .function-icon-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: calc(60vh - 160px);
    box-sizing: border-box;
  }

  /* Later icons should appear above earlier ones */
  .function-icon-wrapper:nth-child(1) {
    z-index: 1;
    padding-bottom: 4em;
  }

  .function-icon-wrapper:nth-child(2) {
    z-index: 2;
  }

  .function-icon-wrapper:nth-child(3) {
    z-index: 3;
  }
  .function-icon-wrapper:last-child {
    min-height: 180vh;
    /* padding-top: calc(50vh - 160px); */
}
  .eyebrow {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
  }
  
  
  .function__text p {
    font-family: Roboto;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 24px;
  }
  
  /* Animated Icons - Shared */

  .function-icon {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .function-icon__base {
    background: #E4F4FF;
    padding: 1em;
    border-radius: 16px;
  }
  .function-icon__base, .function-icon__item img {
    display: block;
    width: 100%;
    height: auto;
  }
  .function-icon__item {
    position: absolute;
  }

  /* TTS */
  .tts-sound-1 {
    width: 2.5%;
    left: 49%;
    top: 43%;
  }
  .tts-sound-2 {
    width: 3.5%;
    left: 52%;
    top: 41%;
  }
  .tts-sound-3 {
    width: 4.5%;
    left: 55%;
    top: 39%;
  }

  /* リダイレクト */
  .redirect-arrow-1 {
    width: 38%;
    left: 47%;
    top: 36%;
  }
  .redirect-arrow-2 {
    width: 30%;
    left: 18%;
    top: 36%;
  }
  .redirect-arrow-3 {
    width: 26%;
    left: 39%;
    top: 13%;
  }

  /* ダッシュボード*/
  .dashboard-map__pin {
    width: 17.5%;
    transform: translate(-50%, -100%);
  }
  .dashboard-map__pin img {
    transform-origin: 50% 100%;
  } 
  .pin-1 {
    left: 33%;
    top: 17%;
  }  
  .pin-2 {
    left: 16%;
    top: 45%;
  }
  .pin-3 {
    left: 86%;
    top: 45%;
  }

  /* text parts */
  .function-text {
    position: sticky;
    top: 55%;
    transform: translateY(-50%);
    align-self: start;
  }
  
  .function__text {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    background: white;
    padding: 30px;
  }
  
  .function__text.is-active {
    display: block;
  }
  
  @media (max-width: 720px) {
    .function {
      grid-template-columns: 100px 1fr;
      gap: 40px;
      padding: 32px 24px;
      text-align: center;
    }
  
    .function__text p {
      margin-inline: auto;
    }
  
    .function-icon {
      max-width: 260px;
    }
  }



  figure.testimonial-card {
    position: relative;
    z-index: 1;
}

figure.testimonial-card:hover {
    z-index: 10;
}