.btn-cmn01 {
    width: 260px;
}

/* ============================================
   各サービスのご紹介 (service-links)
   ============================================ */
.service-links {
  padding: 90px 20px;
  background: #f5f5f5;
}

.service-links__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- 見出し ---- */
.service-links__heading {
  text-align: center;
  margin-bottom: 60px;
}

.service-links__label {
  display: block;
  color: #7bb4c9;
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-family: "Lato", sans-serif;
}

.service-links__title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.service-links__triangles {
  display: inline-flex;
  gap: 6px;
}
.service-links__triangles span {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #7bb4c9;
}

/* ---- カードリスト（5枚: 上3 / 下2 中央寄せ）---- */
.service-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service-links__item {
  flex: 0 0 calc((100% - 24px * 2) / 3); /* 3列 */
  max-width: calc((100% - 24px * 2) / 3);
}

/* ---- カード本体 ---- */
.service-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
  display: block;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  transition: background 0.3s ease;
}

.service-card__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  box-sizing: border-box;
}

.service-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 12px 22px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card__btn-arrow {
  font-size: 9px;
  line-height: 1;
}

/* ---- ホバー演出 ---- */
.service-card:hover .service-card__img {
  transform: scale(1.06);
}
.service-card:hover::before {
  background: rgba(0, 0, 0, 0.5);
}
.service-card:hover .service-card__btn {
  background: #fff;
  color: #333;
}

/* ============================================
   タブレット（1024px以下）: 2列
   ============================================ */
@media (max-width: 1024px) {
  .service-links {
    padding: 70px 20px;
  }
  .service-links__list {
    gap: 20px;
  }
  .service-links__item {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
  .service-links__title {
    font-size: 24px;
  }
  .service-card__title {
    font-size: 22px;
  }
}

/* ============================================
   スマートフォン（599px以下）: 1列
   ============================================ */
@media (max-width: 599px) {
  .service-links {
    padding: 50px 16px;
  }
  .service-links__heading {
    margin-bottom: 36px;
  }
  .service-links__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .service-links__label {
    font-size: 12px;
  }
  .service-links__list {
    gap: 16px;
  }
  .service-links__item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .service-card {
    aspect-ratio: 16 / 11;
  }
  .service-card__inner {
    gap: 18px;
  }
  .service-card__title {
    font-size: 20px;
  }
  .service-card__btn {
    min-width: 200px;
    padding: 10px 18px;
    font-size: 12px;
  }
}

.service-card:hover .service-card__title{
  color: #fff;
}
