/* ===== PAGE HERO 追加要素（修理ページ固有） ===== */
/* 白枠の右側に配置するキーワード装飾 */
.page-hero__keywords {
  position: absolute;
  left: min(calc(max(24px, (100vw - 1144px) / 2) + 965px), calc(100vw - 80px));
  top: calc(140px + env(safe-area-inset-top) + 56px + 30px);
  z-index: 1;
  opacity: 0;
  transition: opacity .6s ease .8s;
}
.page-hero.is-loaded .page-hero__keywords {
  opacity: 1;
}
.page-hero__keywords a {
  text-decoration: none;
  display: block;
}
.page-hero__keywords p,
.page-hero__keywords a {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .1em;
  color: var(--orange);
  line-height: 1.7;
  text-align: center;
  white-space: nowrap;
}

/* 白枠内見出し */
.page-hero__intro .page-hero__intro-heading {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.6;
  color: #000;
  margin-bottom: 24px;
}

/* セクションタイトルの線幅をコンテンツ幅に合わせる */
.rep-content__inner .section-title {
  width: 100%;
}
.rep-content__inner .section-title__line {
  width: 100%;
}

/* ===== REPAIR CONTENT ===== */
.rep-content {
  background: var(--bg);
  padding: 80px 0 100px;
}
.rep-content__inner {
  padding: 0 max(40px, calc((100% - 1300px) / 2));
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* セクションラッパー（幅90%） */
.rep-section {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* コンテンツアイテム（写真＋テキスト） */
.rep-item--reverse {
  flex-direction: row-reverse;
}
.rep-item__deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(calc(-50% + 80px));
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.rep-item--reverse .rep-item__deco {
  right: auto;
  left: 0;
}
.rep-item__deco img {
  width: 378px;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(83%) sepia(15%) saturate(210%) hue-rotate(340deg);
}
.rep-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease .1s, transform .65s ease .1s;
}
.rep-item.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.rep-item__photo {
  flex-shrink: 0;
  width: 470px;
  height: 351px;
  overflow: hidden;
}
.rep-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rep-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.rep-item__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  color: #000;
  margin-top: 10px;
}
.rep-item__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 31px;
  color: #000;
}

/* ===== 価格一覧（services パターン流用） ===== */
.price-section {
  position: relative;
  padding-top: 58px;
}

/* service-box の price 専用上書き */
.price-service-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 60px 0;
  min-height: unset;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

/* 白カード */
.price-card {
  width: calc(100% - max(120px, calc((100% - 1300px) / 2 + 120px)) * 2);
  max-width: 1100px;
  background: var(--white);
  border-radius: 30px;
  padding: 48px 48px 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .2s, transform .6s ease .2s;
}
.price-section.is-inview .price-card {
  opacity: 1;
  transform: translateY(0);
}

/* テーブル */
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table thead tr {
  background: var(--orange);
}
.price-table thead th {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  padding: 16px 24px;
  text-align: center;
}
.price-table thead th:first-child {
  text-align: center;
  width: 50%;
}
.price-table tbody tr {
  border-bottom: 1px solid var(--orange);
}
.price-table tbody tr:nth-child(odd) {
  background: #fff8f4;
}
.price-table tbody tr:nth-child(even) {
  background: #ffede1;
}
.price-table tbody td {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #000;
  padding: 18px 24px;
  text-align: left;
}
.price-table tbody td:first-child {
  border-right: 1px solid var(--orange);
}
.price-table tbody td:nth-child(2) {
  border-right: 1px solid var(--orange);
}

/* 備考テキスト */
.price-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #888;
  margin-top: 10px;
  padding: 0 10px 10px;
  line-height: 1.5;
  text-align: right;
}

/* ===== CTA ===== */
.rep-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 40px max(40px, calc((100% - 1300px) / 2)) 0;
  width: 100%;
}
.rep-cta__text {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  text-align: center;
  letter-spacing: .05em;
}
.rep-cta__btns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.rep-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid var(--orange);
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .25s ease;
  min-width: 0;
  position: relative;
}
.rep-btn:hover { opacity: .8; }
.rep-btn--white {
  background: var(--white);
  color: var(--orange);
}
.rep-btn--light {
  background: var(--orange);
  color: var(--white);
  border-color: var(--white);
}
.rep-btn__arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  position: absolute;
  right: 30px;
  top: 50%;
  margin-top: -6px;
}

/* ===== 501px以上はsp-br非表示 ===== */
@media (min-width: 501px) {
  .sp-br { display: none; }
}

/* ===== 901px以上はボタンmax-width・中央揃え ===== */
@media (min-width: 901px) {
  .rep-btn { max-width: 300px; }
  .rep-cta__btns { justify-content: center; }
}

/* ===== 901px以上 ===== */
@media (min-width: 901px) {
  .rep-item__heading { margin-top: 0; }
}

/* ===== 701〜900px ===== */
@media (min-width: 701px) and (max-width: 900px) {
  .rep-content { padding-bottom: 50px; }
}

/* ===== 1100px以下 ===== */
@media (max-width: 1100px) {
  .rep-content { padding-top: 30px; }
  .page-hero__keywords { display: none; }
  .rep-item__photo { width: 42%; height: auto; aspect-ratio: 4/3; }
  .rep-item__heading { font-size: 26px; }
  .price-card { width: calc(100% - 48px); padding: 36px 36px 20px; }
}

/* ===== 900px以下 ===== */
@media (max-width: 900px) {
  .rep-content { padding: 30px 0 30px; }
  .rep-content__inner { padding: 0 24px; gap: 40px; }
  .price-section { padding-top: 0; }
  .rep-content { padding-bottom: 20px; }
  .price-note { text-align: left; }

  .rep-section { width: 100%; gap: 30px; }

  .rep-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .rep-item__photo { width: 100%; height: 240px; aspect-ratio: unset; }
  .rep-item__heading { font-size: 22px; }
  .rep-item__text { font-size: 15px; line-height: 1.9; }

  .price-service-box { padding: 40px 0 60px; }
  .price-card { width: calc(100% - 32px); padding: 24px 16px 8px; border-radius: 30px; }
  .price-table thead th { font-size: 15px; padding: 12px 16px; }
  .price-table tbody td { font-size: 16px; padding: 14px 16px; }

  .rep-cta { padding: 40px 24px 0; gap: 24px; }
  .rep-cta__text { font-size: 16px; }
  .rep-btn { font-size: 17px; }

  .page-hero__keywords { display: none; }
}

/* ===== 500px以下 ===== */
@media (max-width: 500px) {
  .rep-btn { font-size: 14px; letter-spacing: .05em; width: 100%; flex: none; }
  .rep-cta { padding-top: 20px; padding-left: 20px; padding-right: 20px; }
  .rep-cta__btns { gap: 10px; flex-direction: column; }
  .rep-section { gap: 28px; }
  .rep-content { padding-bottom: 20px; }
  .price-section { padding-top: 20px; }
  .price-note { text-align: left; }

  .price-table,
  .price-table tbody,
  .price-table tbody tr,
  .price-table tbody td { display: block; width: 100%; }

  .price-table thead { display: none; }
  .price-table tbody tr {
    background: none !important;
    border-bottom: none;
    margin-bottom: 12px;
  }
  .price-table tbody td {
    padding: 10px 14px;
    border: 1px solid var(--orange);
    border-top: none;
    font-size: 15px;
    text-align: left;
  }
  .price-table tbody td:first-child {
    background: var(--orange) !important;
    color: var(--white);
    border-color: var(--orange);
    border-top: 1px solid var(--orange);
  }
  .price-table tbody tr:last-child td:last-child { border-bottom: 1px solid var(--orange); }
}
