#services {
  padding-block-start: clamp(78px, 8vw, 118px);
  background: #f5f6f6;
}

#services > .side-label > b,
#services .section-head .kicker {
  color: #087279;
}

#services .section-intro {
  align-self: center;
}

.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(40px, 5.5vw, 78px);
}

.services-card-grid .service-card {
  --card-inset: clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 0 0 var(--card-inset);
  background: #fff;
}

.services-card-grid .service-card > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #edf1f2;
}

.services-card-grid .hoverner-card > img {
  object-position: center top;
  background: linear-gradient(90deg, #0a1f1a, #0b221c 25%, #09201a 50%, #071b12 75%, #04110a);
}

.services-card-grid .service-card > :not(img) {
  margin-inline: var(--card-inset);
}

.services-card-grid .service-card > .bonusport-media {
  /* Leave out the white footer and its antialiased boundary in the 900px capture. */
  --capture-blank: 14%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-inline: 0;
  overflow: hidden;
  box-shadow: inset 0 -1px #dedbd2;
  background:
    linear-gradient(90deg, #062c23, #083329 50%, #0b3b2f) top / 100% 50% no-repeat,
    linear-gradient(90deg, #0f4636, #07382b 50%, #0a4434) bottom / 100% 50% no-repeat;
}

.bonusport-media img {
  position: absolute;
  top: calc(var(--capture-blank) / 2);
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  clip-path: inset(0 0 var(--capture-blank) 0);
}

.services-card-grid .service-kind {
  margin-top: 20px;
  margin-bottom: 9px;
}

.services-card-grid .service-card h3 {
  margin-block: 13px 9px;
  font: 500 clamp(22px, 2.15vw, 32px)/1.35 "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-wrap: balance;
}

.services-card-grid .service-card p {
  margin-block: 0 19px;
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}

.services-card-grid .service-card > b {
  position: static;
  margin-top: auto;
}

.services-card-grid .service-card:focus-visible {
  outline: 2px solid #087279;
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  .services-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #services {
    padding-block-start: clamp(54px, 8vw, 72px);
  }

  #services .section-intro {
    margin-top: 29px;
  }
}

@media (max-width: 600px) {
  .services-card-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
}
