/* ===== スマホの修理 詳細ページ ===== */

.repair-intro-section {
  padding-top: 20px;
}

.repair-intro-section .services-main .service-card.is-main:last-child {
  grid-column: auto;
}

.rp-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title figure"
    "desc desc"
    "note note"
    "ctas ctas";
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  text-align: left;
}

.rp-hero-title {
  grid-area: title;
  text-align: left;
}

.rp-hero-figure {
  grid-area: figure;
  align-self: center;
  width: 64px;
  margin: 0;
}

.rp-hero-figure img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(226, 52, 43, 0.18));
}

.rp-hero-inner .repair-intro-desc {
  grid-area: desc;
  text-align: left;
}

.rp-hero-inner .rp-price-note {
  grid-area: note;
}

.rp-hero-inner .repair-cta-top {
  grid-area: ctas;
  margin: 0;
}

.repair-intro-desc {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--navy-soft);
}

.rp-price-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--cream-deep);
  border-radius: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.repair-cta-top {
  margin: 0 0 24px;
}

/* ---------- こんなお悩みありませんか ---------- */
.repair-worries-section {
  padding: 8px 0 20px;
}

.worry-check-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.worry-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: 0 6px 14px rgba(27, 42, 74, 0.06);
}

.worry-check-item .check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.worry-check-item span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

/* ---------- 実際の修理事例 ---------- */
.rp-gallery-section {
  padding: 0 0 24px;
}

.rp-gallery-set {
  margin: 0 0 22px;
}

.rp-gallery-set-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--red-dark);
}

.rp-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.rp-gallery-item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.rp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-gallery-item.is-before img {
  object-position: top;
}

.rp-gallery-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(27, 42, 74, 0.75);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
}

.rp-gallery-tag.is-after {
  background: var(--red);
}

.rp-gallery-caption {
  margin: 0 0 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}

.rp-gallery-note {
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy-soft);
  opacity: 0.85;
}

/* ---------- バッテリー膨張の注意喚起 ---------- */
.rp-warning-section {
  padding: 0 0 28px;
}

.rp-warning-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid rgba(226, 52, 43, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.rp-warning-photo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 14px;
  display: block;
}

.rp-warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 900;
  color: var(--red-dark);
}

.rp-warning-title svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--red);
}

.rp-warning-text p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--navy);
}

.rp-warning-text p:last-child {
  margin-bottom: 0;
}

/* ---------- 作業環境 ---------- */
.rp-workshop-section {
  padding: 0 0 28px;
}

.rp-workshop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.rp-workshop-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.rp-workshop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-workshop-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  text-align: center;
}

.rp-workshop-body h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
}

.rp-workshop-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--navy-soft);
}

/* ---------- ご相談から修理完了までの流れ ---------- */
.rp-flow-section {
  padding: 0 0 28px;
}

.step-list {
  position: relative;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--red-light);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(226, 52, 43, 0.25);
}

.step-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.rp-flow-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--navy-soft);
  opacity: 0.85;
}

/* ---------- 安心ポイント + CTA ---------- */
.repair-trust-section {
  padding: 0 0 40px;
}

.repair-trust-section .trust-list {
  margin: 0 0 20px;
}

.repair-cta {
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .repair-intro-section .services-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-hero-title {
    font-size: 25px;
  }

  .rp-hero-figure {
    width: 96px;
  }

  .repair-intro-desc {
    font-size: 15px;
  }

  .worry-check-grid {
    gap: 10px;
  }

  .worry-check-item span {
    font-size: 13.5px;
  }

  .repair-cta {
    flex-direction: row;
    max-width: 640px;
  }

  .rp-gallery-grid {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .rp-warning-card {
    flex-direction: row;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
  }

  .rp-warning-photo {
    max-width: 180px;
    flex-shrink: 0;
  }

  .rp-workshop-card {
    flex-direction: row;
    align-items: stretch;
  }

  .rp-workshop-photo {
    width: 280px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .rp-workshop-body {
    align-items: flex-start;
    text-align: left;
    padding: 24px 28px;
    justify-content: center;
  }

  .step-list {
    flex-direction: row;
  }

  .step-item {
    flex: 1 1 0;
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .step-text h3 {
    font-size: 15.5px;
  }
}

@media (min-width: 960px) {
  .repair-intro-section {
    padding-top: 32px;
  }

  .repair-intro-section .services-main {
    grid-template-columns: repeat(4, 1fr);
  }

  .repair-intro-desc {
    font-size: 16px;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
  }

  .rp-price-note {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13.5px;
  }

  .rp-hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
      "title figure"
      "desc figure"
      "note figure"
      "ctas figure";
    column-gap: 48px;
    row-gap: 10px;
  }

  .rp-hero-title {
    font-size: 34px;
  }

  .rp-hero-figure {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .rp-hero-inner .repair-intro-desc,
  .rp-hero-inner .rp-price-note {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .rp-hero-inner .repair-cta-top {
    max-width: 480px;
  }

  .repair-worries-section {
    padding: 12px 0 32px;
  }

  .worry-check-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .worry-check-item {
    padding: 16px 14px;
  }

  .worry-check-item span {
    font-size: 14.5px;
  }

  .rp-gallery-section {
    padding: 0 0 40px;
  }

  .rp-warning-section {
    padding: 0 0 40px;
  }

  .rp-workshop-section {
    padding: 0 0 40px;
  }

  .rp-workshop-body h2 {
    font-size: 19px;
  }

  .rp-workshop-body p {
    font-size: 13.5px;
  }

  .repair-trust-section {
    padding: 0 0 56px;
  }

  .repair-trust-section .trust-list {
    max-width: 720px;
    margin: 0 auto 24px;
  }

  .repair-cta {
    max-width: 640px;
    margin: 0 auto;
  }

  .rp-flow-section {
    padding: 0 0 40px;
  }

  .step-list {
    max-width: 900px;
    margin: 0 auto 16px;
    gap: 16px;
  }

  .step-item {
    padding: 26px 18px;
  }

  .step-number {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .step-text h3 {
    font-size: 16px;
  }

  .rp-flow-note {
    font-size: 12px;
  }
}
