/* =========================
Top points
========================= */
.top-points {
  width: 1160px;
  margin: 50px auto 55px;
  box-sizing: border-box;
  clear: both;
}

.top-points__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: stretch;
}

.point-card {
  position: relative;
  box-sizing: border-box;
  min-height: 146px;
  padding: 52px 16px 14px;
  border: 1.5px solid #1d95d4;
  background: #fff;
  overflow: visible;
}

.point-card__label {
  position: absolute;
  top: 10px;
  left: -13px;
  z-index: 3;
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 8px 18px 7px;
  background: #1d95d4;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 0;
  transform: rotate(-13deg);
  transform-origin: left center;
}

.point-card__label-group {
  position: absolute;
  top: 0;
  left: -18px;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}

.point-card__label--sm,
.point-card__label--lg {
  position: absolute;
  margin: 0;
}

.point-card__label--sm {
  top: 0;
  left: 0;
  padding: 8px 16px 7px;
}

.point-card__label--lg {
  top: 28px;
  left: 32px;
  padding: 8px 18px 7px;
}

.point-card__icon {
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
}

.point-card__icon img {
  display: block;
}

.point-card__caption {
  margin: 0;
  color: #444;
  text-align: center;
}

.point-card--equipment .point-card__caption {
  font-size: 12.3px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.point-card--facility .point-card__caption {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.point-card__caption--concept {
  padding-top: 36px;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

/* =========================
Top services
========================= */
.top-services {
  float: left;
  width: 900px;
  margin: 0 0 55px 20px;
  box-sizing: border-box;
}

.top-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 22px;
  align-items: start;
}

.service-card {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  border: 1.5px solid #1d95d4;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease-in-out;
}

.service-card:hover,
.service-card:focus-visible {
  opacity: 0.5;
  outline: none;
}

/* 背景タイプ */
.service-card--photo {
  background: #000;
  height: 120px;
}

.service-card--blue {
  background: #1d95d4;
}

.service-card--white {
  background: #fff;
}

/* 写真カードだけ画像を敷く */
.service-card__image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* 共通本文 */
.service-card__body {
  box-sizing: border-box;
  padding: 14px 68px 14px 20px;
}

/* 写真カードだけ absolute */
.service-card--photo .service-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 青・白カードは普通レイアウト */
.service-card--blue .service-card__body,
.service-card--white .service-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

/* 見出し */
.service-card__title {
  width: auto;
  height: auto;
  margin: 0 0 10px 0;
  padding: 0 0 10px 0;
  border: 0;
  border-bottom: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: left;
}

.service-card__title--dark {
  border-bottom-color: #1d95d4;
  color: #1d95d4;
}

/* 本文 */
.service-card__caption {
  width: auto;
  height: auto;
  margin: 0;
  color: #fff;
  font-size: 13.8px;
  line-height: 1.55;
  text-align: left;
}

.service-card__caption--dark {
  color: #666;
}

/* アイコン */
.service-card__icon {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 52px;
  height: 52px;
}

.service-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
Responsive
========================= */
@media screen and (max-width: 666px) {
  .top-points {
    width: 100%;
    margin: 45px auto 45px;
    padding: 0 10px;
  }

  .top-points__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .point-card {
    width: 95%;
    min-height: auto;
    margin: 0 auto;
    padding: 58px 12px 16px;
  }

  .point-card__label {
    top: 7px;
    left: -12px;
    font-size: 15px;
    padding: 9px 17px 8px;
  }

  .point-card__label-group {
    top: 2px;
    left: -12px;
  }

  .point-card__label--sm {
    left: 0;
    font-size: 14px;
    padding: 9px 15px 8px;
  }

  .point-card__label--lg {
    top: 32px;
    left: 36px;
    font-size: 14px;
    padding: 9px 17px 8px;
  }

  .point-card--equipment .point-card__caption {
    font-size: 12.3px;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  .point-card--facility .point-card__caption,
  .point-card__caption--concept {
    font-size: 13.5px;
    line-height: 1.7;
    letter-spacing: 0.04em;
  }

  .top-services {
    float: none;
    width: 100%;
    margin: 0 0 30px;
    padding: 0 10px;
  }

  .top-services__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    border-width: 1px;
  }

  .service-card:last-child {
    margin-bottom: 35px;
  }

  .service-card--photo {
    height: auto;
    aspect-ratio: 430 / 120;
  }

  .service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-card__body {
    padding: 18px 55px 18px 12px;
  }

  .service-card--photo .service-card__body {
    position: absolute;
    inset: 0;
  }

  .service-card--blue .service-card__body,
  .service-card--white .service-card__body {
    position: relative;
    min-height: 120px;
  }

  .service-card__title {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 15.8px;
    letter-spacing: 0.06em;
  }

  .service-card__caption {
    font-size: 13px;
    line-height: 1.55;
  }

  .service-card__icon {
    top: 8px;
    right: 10px;
    width: 46px;
    height: 46px;
  }
}