@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
.repair-detail__title {
  border-bottom: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 6px,
      transparent 6px,
      transparent 12px
    )
    100% 1;
  padding-bottom: 0.6rem;
}
.repair-detail__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin: 1.6rem 0 1rem;
  color: #b32223;
  letter-spacing: 2.5px;
}

.repair-detail {
  /* max-width: 1024px;
  margin: 0 auto; */
  margin-left: 13%;
  margin-right: 13%;
}
.repair-cat-tag {
  display: inline-block;
  padding: 4px 16px;
  margin: 0 4px 4px 0;
  border: 1px solid #b32223;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  background-color: #f5f5f5;
  text-decoration: none !important; /* 下線を消す */
}

/* ====== Before / After 画像 ====== */
.repair-images {
  display: flex;
  margin: 60px 0;
  width: 100%;
  gap: 10px;
}
.before,
.after {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.repair-images .before,
.repair-images .after {
  width: 50%;
  position: relative;
  padding: 10px;
}

.before-label,
.after-label {
  display: block;
  position: relative !important;
  top: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  padding: 0;
  color: #fff;
  max-width: 100% !important;
  width: auto !important;
  height: 56px !important;
}

.before-label {
  background-color: #f0c52e; /* 黄色 */
  color: #5c1816 !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  font-family: "Zen Old Mincho", serif;
  line-height: 55px !important;
}

.after-label {
  background-color: #b32223; /* 赤 */
  color: #fff;
  font-size: 32px !important;
  font-weight: 700 !important;
  font-family: "Zen Old Mincho", serif;
  line-height: 55px !important;
}

.repair-images img {
  width: 100%;
  height: auto;
}

/* ====== 料金 ====== */
.repair-detail__price {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.price-value {
  color: #b32223;
  font-weight: bold;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 1px;
  font-family: "Lato", sans-serif;
}

.price-note {
  font-size: 20px;
  color: #b32223;
  margin: 0;
  line-height: 1.6;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

/* ====== 戻るボタン ====== */
.repair-detail__buttons {
  text-align: center;
  margin-top: 30px;
}

.repair-detail__buttons .btn {
  display: inline-block;
  background-color: #b32223;
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.repair-detail__buttons .btn:hover {
  background-color: #8e1b1b;
}

/* ====== 修理メタ情報 (カテゴリー＋料金) ====== */
.repair-meta {
  display: flex; /* 横並び */
  justify-content: space-between; /* 左右配置 */
  align-items: center; /* 垂直中央揃え */
  margin-bottom: 20px;
  flex-wrap: wrap; /* スマホ時折り返し */
  gap: 10px 20px; /* 折り返し時の間隔 */
}

.repair-category-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repair-cat-tag {
  display: inline-block;
  border-radius: 20px;
  margin-top: 6px;
}

/* ====== 料金 ====== */
.repair-detail__price {
  text-align: right;
}

.price-label {
  display: block;
}

.more-repair-button {
  margin-top: 40px;
  margin-bottom: 120px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(to right, #b32223, #e06364);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  padding: 6px;
}

.repair-detail__content {
  margin-bottom: 60px;
}

.repair-detail__content p {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #1a1a1a;
  line-height: 48px;
}

.more-repair-button {
  gap: 0;
}

.related-services {
  /* margin: 0 auto 60px;
  max-width: 1024px; */
  text-decoration: none;
  height: auto;
  overflow: visible;
}

.related-service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 40px; /* アイテム間スペース */
  padding: 0;
  /* margin: 0 auto 60px;
  max-width: 1024px; */
  text-decoration: none;
  height: auto;
  overflow: hidden; /* 親に高さ伝える */
}

.shop-search-box {
  margin-bottom: 130px;
}

.related-service-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #b32223, #e06364);
  background-size: cover;
  background-position: center;
  list-style: none;
  width: 100%;
  height: 240px;
}

.related-service-item a {
  text-decoration: none; /* 🔥 アンダーライン消す */
}

.left-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: #b32223;
  z-index: 1;
}

.related-service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
  padding-top: 10px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(
    to right,
    rgba(179, 34, 35, 0.5),
    /* #b32223 の 50%透明 */ rgba(224, 99, 100, 0.3) /* #e06364 の 30%透明 */
  ); /* 薄い赤系オーバーレイ */
}

.related-service-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: #ffffff;
  letter-spacing: 10px;
}

.related-service-subtitle {
  font-size: 56px !important;
  font-weight: 700 !important;
  margin: 0 0 30px;
  color: #ffffff;
  letter-spacing: 10px !important;
  font-family: "Zen Old Mincho", serif;
}
.related-service-item a {
  display: flex; /* Flexboxに変更 */
  justify-content: space-between;
  align-items: center;
  padding: 0;
  color: #fff;
  text-decoration: none;
}
.related-service-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .related-services {
    margin-top: 20px;
  }
  .repair-detail {
    margin: 0;
    padding: 0 20px;
  }

  .related-service-list {
    display: flex;
    flex-direction: column; /* 縦積み */
    gap: 24px;
    margin-bottom: 20px;
  }

  .related-service-item {
    width: 100%;
    height: auto;
    min-height: 160px;
    padding-left: 10px;
  }

  .related-service-overlay {
    position: relative; /* absolute → relative */
    height: 150px;
    padding: 10px;
  }

  .related-service-title {
    font-size: 16px;
    letter-spacing: 0;
    margin: 20px 0 0;
  }

  .related-service-subtitle {
    font-size: 32px !important;
  }
  .repair-detail__title {
    font-size: 20px;
    margin-top: 0;
    line-height: 32px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .repair-images {
    display: block;
    margin-top: 0;
    margin-bottom: 15px;
  }
  .repair-images .before,
  .repair-images .after {
    width: auto;
    margin-bottom: 15px;
  }
  .before {
    margin-bottom: 10px;
  }
  .repair-detail__content p {
    font-size: 16px;
    line-height: 32px;
    margin-top: 0;
  }
  .repair-detail__content {
    margin-bottom: 24px;
  }
  .related-services {
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
  }
  .related-service-list {
    margin-bottom: 0;
  }
  .banner-button-wrap,
  .more-repair-button {
    margin: 9px auto 40px;
    width: 300px;
    gap: 34px;
  }
  .shop-search-box {
    margin: 0 0 60px;
  }
  .price-value {
    font-size: 20px;
  }
  .repair-meta {
    display: block;
    margin-bottom: 24px;
  }
  .repair-detail__price {
    text-align: left;
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .price-note {
    font-size: 16px;
  }
  .repair-cat-tag {
    margin-top: 0;
  }
  .repair-images .label {
    height: 36px !important;
    font-size: 20px !important;
    line-height: normal !important;
  }
  .left-color {
    width: 127px;
  }
  .store-search-button {
    width: 280px;
    height: 50px;
  }
  .store-search-button {
    gap: 20px;
    margin: 0 auto;
  }
  .search-icon-background {
    height: 40px;
    width: 40px;
  }
  .prefecture-select,
  .keyword-input {
    padding: 12px 5px;
  }
  .related-service-arrow img {
    width: 40px; /* 矢印画像のサイズ調整 */
    height: auto;
  }
}
