.service-detail,
.riat-breadcrumb,
.header-section {
  /* max-width: 1024px;
  margin: 0 auto; */
  margin-left: 13%;
  margin-right: 13%;
}

.header-section {
  margin-bottom: 25px;
}

.header-text {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 48px;
  margin-bottom: 0;
}

.footer-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 4px;
  margin: 50px 0 90px;
  line-height: 32px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding: 0;
}

.service-card {
  border: 1px solid #e06364;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.service-card-image {
  width: 100%;
  height: 200px; /* 高さ固定 */
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をクロップして縦横比維持 */
  display: block;
}

.service-card-title {
  font-size: 28px;
  color: #b32223;
  font-weight: bold;
  margin: 5px 15px 15px;
  text-align: center;
  border-bottom: 1px dashed #5c1816;
  border-image: repeating-linear-gradient(
      to right,
      #5c1816 0,
      #5c1816 6px,
      transparent 6px,
      transparent 12px
    )
    100% 1;
  padding: 10px 0;
}

.service-card-links {
  list-style: none;
  padding: 0 15px 15px;
  margin: 0;
}

.service-card-links li {
  padding-left: 10%;
}

.service-card-links li a {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  align-items: center;
  text-decoration: none;
  color: #5c1816;
  font-weight: 400;
  font-size: 16px;
}

.service-card-links li a::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url(../images/icons/arrow.png) no-repeat center center;
  background-size: contain;
  margin-right: 10%;
}

.service-card-links li a:hover {
  color: #e06364;
  text-decoration: underline;
}

.service-cards.full-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-cards.partial-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card img {
  object-fit: cover;
  width: 100%;
  height: 200px; /* 高さ固定 */
}

.full-support-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 18px;
  background-color: #b32223;
  color: #fff;
  font-size: 16px;
  border-radius: 50px;
  vertical-align: middle;
  margin-bottom: 6px;
}
/* PC版表示 / SP非表示 */
.pc-view {
  display: block;
}
.sp-view {
  display: none;
}
@media screen and (max-width: 768px) {
  .pc-view {
    display: none;
  }
  .sp-view {
    display: block;
  }
  .header-section,
  .riat-breadcrumb,
  .service-detail {
    padding-left: 24px;
    padding-right: 24px;
    margin: 0;
  }
  .section-subtitle {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 0;
  }
  .section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  .header-text {
    font-size: 16px;
    line-height: 32px;
  }

  .service-item-title {
    display: flex; /* テキストと画像を横並び */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 縦中央揃え */
    gap: 4px; /* テキストと矢印の間隔 */
    font-size: 14px;
    font-weight: 400;
    color: #5c1816;
    padding: 0 6px;
    margin: 0;
    min-height: 40px;
  }

  .service-item-title::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url(../images/icons/arrow.png) no-repeat center center;
    background-size: contain;
    margin-left: 6px;
  }

  .service-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  .service-item-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
  }
  .service-cards.full-support {
    display: block;
    margin-top: 20px;
  }
  /* カテゴリー見出し */
  .service-category-title {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #b32223;
    border-bottom: 1px dashed #b32223;
    border-image: repeating-linear-gradient(
        to right,
        #b32223 0,
        #b32223 6px,
        transparent 6px,
        transparent 12px
      )
      100% 1;
    padding-bottom: 5px;
    display: flex; /* 横並び */
    align-items: center;
    margin-bottom: 20px;
  }
  .full-support-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 6px;
    background-color: #b32223;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 1px;
    width: 80px;
    height: 14px;
    text-align: center;
  }

  .service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2列グリッド */
    gap: 17px 10px;
  }
  .service-cards.partial-support {
    margin: 0;
  }

  .service-item {
    background: #fff;
    border: 1px solid #b32223;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: block; /* flex → block に戻す */
  }

  .service-item-thumbnail {
    width: 100%;
    object-fit: cover;
    display: block;
    height: auto;
    aspect-ratio: 1/1;
  }
  .footer-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .service-items.partial-support {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #b32223;
    border-image: repeating-linear-gradient(
        to right,
        #b32223 0,
        #b32223 6px,
        transparent 6px,
        transparent 12px
      )
      100% 1;
  }

  .service-items .service-item {
    text-decoration: none; /* アンダーライン削除 */
    margin-bottom: 0;
  }

  .service-items .service-item p {
    text-decoration: none; /* 念のためタイトル内も */
  }
  .partial-support .service-item {
    text-decoration: none !important; /* アンダーライン完全削除 */
    color: inherit !important; /* 親の色に */
  }

  .partial-support .service-item * {
    text-decoration: none !important; /* 子要素も完全に消す */
  }
}
