@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

body {
  overflow-x: hidden;
}
/* ====== Heroセクション ====== */
.page-hero {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__title {
  font-size: 2.5rem;
  color: #b32223; /* 赤色 */
  text-align: center;
  font-weight: bold;
}

/* ====== サービスコンテンツ全体 ====== */

.service-detail__title,
.service-content,
.service-subtitle,
.service-pricing,
.repair-steps,
.service-pricing,
.banner-button-wrap,
.riat-breadcrumb,
.footer-text,
.repair-steps {
  /* max-width: 1024px;
  margin: 0 auto !important; */
  margin-left: 13%;
  margin-right: 13%;
}

.riat-breadcrumb {
  padding-bottom: 70px;
}

.service-subtitle {
  font-size: 64px;
  color: #b32223;
  font-weight: normal;
  letter-spacing: 12px;
  margin-top: 0;
  margin-bottom: 40px;
  font-family: "Zen Old Mincho", serif;
}

.service-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.service-category,
.store-category {
  font-size: 0.95rem;
  color: #555;
}

.service-category span,
.store-category span {
  display: inline-block;
  background: #f9f3f3;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 5px;
}

/* ====== 料金表 ====== */
.service-pricing {
  margin-bottom: 60px;
}

.section-title {
  font-size: 1.6rem;
  color: #ffffff;
  padding-left: 10px;
  padding-top: 5px;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  height: 51px;
  background: linear-gradient(90deg, #b32223 0%, #e06364 100%);
  font-family: "Zen Kaku Gothic New";
}

.price-sections {
  display: flex;
  gap: 30px; /* セクション間のスペース */
  margin-bottom: 40px;
}

.price-section {
  flex: 1;
  border-radius: 8px;
}

.price-image {
  flex: 0 0 150px;
  text-align: center;
}

.price-image img {
  width: 100%;
  margin-bottom: 10px;
}

.price-details {
  text-align: center;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px dashed #b32223;
}

.service-item {
  font-size: 1.1rem;
  font-weight: bold;
}

.service-price {
  font-size: 1rem;
}

/* ====== こだわりポイント ====== */
.service-point {
  background: #fdf4f4;
  border-left: 5px solid #b32223;
  padding: 20px;
  margin-bottom: 60px;
}

.point-content {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

/* ====== 修理の流れ ====== */
.repair-steps {
  margin-bottom: 60px;
}

.repair-step {
  border-top: 1px solid #eee;
  padding: 15px 0;
}

.step-title {
  font-size: 1.2rem;
  color: #b32223;
  font-weight: bold;
  margin-bottom: 10px;
}

.step-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.service-detail__title {
  color: #b32223;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 6px;
  font-family: "Zen Old Mincho", serif;
}

.service-contents p {
  font-size: 20px;
  font-weight: 500;
  line-height: 50px;
  letter-spacing: 2px;
  margin-top: 10px;
  line-height: 48px;
}
.service-contents h2:not(.service-subtitle) {
  font-size: 32px;
  font-weight: 500;
  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: 20px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.service-content-wrap {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
  /* max-width: 1024px;
  margin: auto; */
  overflow: hidden;
  margin-left: 13%;
  min-height: 380px;
}

.section-title {
  max-width: none;
}

.service-text {
  flex: 1;
}

.service-thumbnail {
  position: relative; /* 子のabsolute位置指定の基準 */
  width: 50%;
}

.service-thumbnail img {
  top: 0;
  left: 0;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  width: 100%;
}

.price-gender {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 50px;
  border: 1px solid #b32223;
  border-radius: 30px;
  color: #b32223;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  background-color: #fff;
}
.service-item,
.service-price {
  margin: 0;
}
.more-repair-button {
  margin-bottom: 50px;
  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;
  padding-right: 15px;
}

.repair-steps {
  margin-top: 50px;
}

.repair-step-card {
  display: flex;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  overflow: hidden;
  padding: 15px 10px;
}

.repair-step-image {
  width: 30%;
}

.repair-step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.repair-step-content {
  flex: 1;
  padding: 0 15px;
}

.step-label {
  display: inline-block;
  background-color: #b32223;
  color: #fff;
  padding: 4px 32px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.step-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.step-description p {
  margin-top: 0;
  width: 80%;
}
.related-service-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 10;
}
.repair-section {
  background-color: #f5f5f5;
}
.service-repair-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.service-repair-section .repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.service-repair-section .repair-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-repair-section .repair-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-repair-section .repair-images {
  display: flex;
}

.service-repair-section .repair-images .before,
.service-repair-section .repair-images .after {
  width: 50%;
  position: relative;
}

.service-repair-section .repair-images img {
  width: 100%;
  height: auto;
  display: block;
}

.repair-before .before-label,
.repair-after .after-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  height: 36px;
  line-height: 36px;
  letter-spacing: 1px;
}

.service-repair-section .before-label {
  background: #ffd700; /* 黄色 */
  color: #5c1816; /* 濃い茶 */
}

.service-repair-section .after-label {
  background: #b32223; /* 赤 */
}

.service-repair-section .repair-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-bottom: 2px dashed #b32223;
}

.service-repair-section .repair-category-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.service-repair-section .repair-cat-tag {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid #b32223;
  border-radius: 999px;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #b32223;
  text-decoration: none;
}

.service-repair-section .repair-title {
  font-size: 18px;
  font-weight: 700;
  color: #b32223;
  text-align: center;
  margin: 10px 0;
}

.repair-section {
  margin: 60px 0 0;
}

.repair-slide-card {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.repair-slide-images {
  display: flex;
  position: relative;
  height: 280px;
}

.repair-before,
.repair-after {
  width: 50%;
  position: relative;
}

.repair-before img,
.repair-after img {
  width: 100%;
  height: 90%;
  display: block;
  margin-top: 36px;
  object-fit: cover;
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  line-height: 24px;
}

.before-label {
  background: #ffd700; /* 黄色 */
  color: #5c1816;
}

.after-label {
  background: #b32223; /* 赤 */
}

.clip-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: url("/images/icons/clip.png") no-repeat center;
  background-size: contain;
}

.repair-slide-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  gap: 5px;
}

.repair-slide-meta .badge {
  display: inline-block;
  padding: 4px 16px;
  background: #f5f5f5;
  border: 1px solid #b32223;
  border-radius: 999px;
  color: #b32223;
  font-size: 14px;
  margin: 2px 0;
}

.repair-slide-meta .desc {
  display: inline-block;
  padding: 4px 16px;
  color: #b32223;
  font-size: 14px;
  margin: 2px 0;
}

.swiper-wrapper {
  height: auto !important;
}

.swiper-slide {
  padding: 8px;
  background-color: #ffffff;
  margin: 0 !important;
}

.related-services {
  /* margin: 0 auto 60px;
  max-width: 1024px; */
  margin-left: 13%;
  margin-right: 13%;
  text-decoration: none;
  height: auto;
  overflow: visible;
  margin-bottom: 100px;
}

.related-services.no-related {
  margin-bottom: 0;
}

.related-service-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  font-family: "Zen Old Mincho", serif;
  height: 200px;
  text-decoration: none;
}

.related-service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列にする */
  gap: 40px 40px; /* アイテム間のスペース */
  padding: 0;
  /* margin: 0 auto 60px;
  max-width: 1024px; */
  text-decoration: none;
  height: auto;
  overflow: hidden; /* 親に高さを伝える */
  display: grid; /* gridで高さ計算させる */
  margin: 0;
}
.related-service-item {
  background-color: #b32223;
  width: 50%;
  list-style: none;
  width: 100%;
  height: 240px; /* 高さ自動に */
  min-height: 200px; /* 必要なら最小高さ指定 */
}

.related-service-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 20px;
  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;
}
.related-service-item a {
  text-decoration: none; /* 🔥 アンダーラインを消す */
}

.left-color {
  height: 100%;
  width: 35%;
  background-color: #b32223;
}

.related-service-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.left-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  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;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(
    to right,
    rgba(179, 34, 35, 0.5),
    rgba(224, 99, 100, 0.3)
  ); /* オーバーレイが薄く赤系で全体にかかる */
}
.footer-text {
  font-size: 16px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 32px !important;
}

.clip {
  position: absolute;
  top: -45px;
  right: 10px;
  width: 40px;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.more-label {
  padding-right: 20px;
}

.sp-view {
  display: none;
}

.price-sections.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 2rem;
}

.price-header {
  text-align: center;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.price-header img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.price-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 8px,
      transparent 8px,
      transparent 16px
    )
    100% 1;
  padding: 25px 0;
  font-size: 20px;
}

.item-price {
  font-family: "Lato", sans-serif;
}

.price-section.last-odd {
  grid-column: span 2; /* 2列分 */
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 2rem;
}

.price-section.last-odd .price-header,
.price-section.last-odd .price-list-wrap {
  flex: 1; /* 画像とリスト同じ幅 */
  max-width: 50%; /* 上の2カラムと同じ */
}

.price-section .price-list-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央寄せ */
}

.price-section .price-gender {
  display: block;
  text-align: center;
}

.related-service-list:empty,
.related-services:empty {
  margin: 0 !important;
  padding: 0 !important;
}
.repair-swiper .swiper-wrapper {
  gap: 10px;
}

.banner-button-wrap {
  margin-top: 50px;
}

.service-swiper .swiper-wrapper {
  gap: 10px;
}
.service-swiper .swiper-slide {
  background-color: #ffffff;
}
.clip {
  width: 39px !important;
  height: 57px !important;
}

.pc-view {
  display: block !important;
}
.sp-view {
  display: none !important;
}

.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

.repair-section {
  padding-bottom: 50px;
}

@supports (-webkit-touch-callout: none) and (not (translate: none)) {
  /* Safariのみ適用されるCSS */
  .clip {
    top: -325px; /* Safari用に位置調整 */
    right: -440px;
  }
}
_::-webkit-full-page-media,
_:future,
:root .clip {
  top: -325px;
  right: -440px;
}
.scroll-to-top-btn .label {
  text-align: center;
  font-weight: 700 !important;
  font-family: "Zen Kaku Gothic New";
  font-size: 32px !important;
  line-height: 1;
  position: static !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .pc-view {
    display: none !important;
  }
  .sp-view {
    display: inline-block !important;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: flex !important;
  }
  .service-detail__title,
  .service-content,
  .service-subtitle,
  .service-pricing,
  .repair-steps,
  .service-pricing,
  .banner-button-wrap,
  .riat-breadcrumb,
  .footer-text,
  .repair-steps {
    margin: 0;
  }
  .page-hero__title {
    font-size: 24px;
  }
  .service-repair-section .repair-grid {
    grid-template-columns: 1fr;
  }
  .service-repair-section .repair-title {
    font-size: 16px;
  }
  .repair-step-card {
    flex-direction: column;
  }
  .repair-step-image {
    flex: 1;
  }
  .service-content-wrap {
    flex-direction: column;
    min-height: auto;
  }
  .service-thumbnail {
    flex: 1;
  }
  .price-section {
    flex-direction: column;
  }
  .price-image {
    margin-bottom: 15px;
  }
  .service-detail__title,
  .service-subtitle,
  .service-content,
  .service-text,
  .footer-text,
  .price-sections,
  .related-services {
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-detail__title {
    font-size: 24px;
    font-weight: 500;
  }
  .service-subtitle {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 6px;
  }
  .service-content {
    font-size: 16px;
    font-weight: 500;
  }
  .service-heading-1 {
    font-size: 20px !important;
    font-weight: 500 !important;
    padding-bottom: 10px !important;
  }
  .service-contents p {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    margin-top: 0;
    width: auto;
    margin-bottom: 0;
    letter-spacing: 1px;
  }
  .service-thumbnail img {
    display: none;
    height: 100%;
  }
  .section-title {
    font-size: 20px;
    font-weight: 500;
    height: 48px;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex; /* ← 横縦中央配置 */
    justify-content: center; /* 横中央 */
    align-items: center; /* 縦中央 */
    letter-spacing: 2px;
  }
  .price-sections {
    display: block;
  }
  .price-image {
    align-items: center;
    text-align: center;
  }
  .price-gender {
    align-items: center;
    text-align: center;
    margin: 20px 0;
    font-size: 20px;
    padding: 5px 30px 5px;
  }
  .price-section {
    margin: 0 auto 20px;
    align-items: center;
  }
  .more-repair-button {
    margin: 25px auto;
    width: 300px;
    gap: 10px;
  }
  .price-gender.sp-view {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    margin-bottom: 12px;
  }
  .repair-step-card {
    margin: 0 20px 10px;
    display: block;
  }
  .repair-step-image {
    width: 100%;
  }
  .step-label {
    margin: 10px 0;
    text-align: center;
  }
  .repair-step-content:not(.step-description) {
    text-align: center;
    padding: 0;
  }
  .related-service-list {
    display: flex;
    flex-direction: column; /* 縦積み */
    gap: 25px; /* 間隔 */
    margin-left: 0;
    margin-right: 0;
  }

  .related-service-item {
    width: 100%;
    height: 160px; /* 高さを自動 */
    min-height: 150px; /* 必要なら最小高さ */
    padding-left: 10px;
  }
  .related-service-overlay {
    position: relative; /* absolute → relative に変更 */
    padding: 10px;
  }
  .related-services {
    margin: 0 0 60px;
  }
  .related-service-title {
    font-size: 20px;
    letter-spacing: 0;
  }
  .related-service-subtitle {
    font-size: 32px !important;
  }
  .sp-thumbnail {
    width: 100%;
    height: 180px; /* 任意の高さ */
    overflow: hidden; /* はみ出し防止 */
    margin: 25px 0;
  }
  .sp-thumbnail img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: 100%;
  }
  .service-content-wrap {
    margin: 0;
    gap: 0;
  }
  .footer-text {
    font-size: 12px !important;
    line-height: 2 !important;
  }
  .price-sections.grid-2col {
    display: block;
    margin-bottom: 25px;
  }
  .price-item {
    font-size: 16px;
    padding: 10px 0;
  }
  .price-header {
    margin-bottom: 16px;
  }
  .item-name {
    margin-left: 10px;
  }
  .item-price {
    margin-right: 10px;
  }
  .price-section.last-odd .price-header,
  .price-section.last-odd .price-list-wrap {
    flex: auto;
    width: 100%;
    max-width: none;
  }
  .price-section.last-odd {
    gap: 0;
  }
  .banner-button-wrap {
    margin: 5px auto 5px !important;
  }
  .repair-swiper {
    padding-top: 20px !important;
    margin-top: 0;
  }
  .repair-section {
    padding-bottom: 50px;
  }
  .repair-steps .section-title {
    margin-top: 25px;
    margin-bottom: 25px;
    height: auto;
    line-height: 1.4;
    padding: 12px 12px;
  }
  .left-color {
    width: 133px;
  }
  .related-service-subtitle {
    padding-bottom: 20px;
  }
  .swiper-wrapper {
    padding-top: 15px;
  }
  .service-heading-1-content {
    margin-bottom: 25px;
  }
  .service-heading-1 {
    margin-top: 25px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    color: #7c7c7c;
    width: 6px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8); /* #FFFFFF 80% */
    border-radius: 50%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 16px !important;
    color: #7c7c7c !important;
    font-weight: bold;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
  }
  .swiper-navigation-icon {
    width: 11px !important;
    color: #7c7c7c !important;
  }
  _::-webkit-full-page-media,
  _:future,
  :root .clip {
    top: -325px !important;
    right: -300px !important;
  }
  .related-service-arrow img {
    width: 40px; /* 矢印画像のサイズ調整 */
    height: auto;
  }
  .more-label {
    padding: 0 0 0 2%;
  }
  .repair-slide-meta .badge {
    font-size: 16px;
  }
  .repair-slide-meta .desc {
    font-size: 20px;
  }
}
