.detail-body {
  padding-top: 100px;
}

.detail-body .page-content {
  max-width: 960px;
  background: #fff;
}

.detail-body .procedure {
  padding: 60px 40px 45px;
  background: #fff;
}

.detail-card__inner {
  position: relative;
  padding: 72px 26px 30px;
  border: 10px solid #3b67b2;
  border-radius: 16px;
  text-align: center;
}

.detail-title {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 30px;
  background: #fff;
  color: #3b67b2;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 2;
}

.detail-title::before,
.detail-title::after {
  content: "";
  position: absolute;
  top: 48%;
  width: 74px;
  height: 4px;
  transform: translateY(-50%);
}

.detail-title::before {
  right: 100%;
}

.detail-title::after {
  left: 100%;
}

.detail-car-img {
  width: 80%;
  margin: 30px auto 18px;
}

.detail-car-name {
  margin: 0 0 14px;
  color: #211815;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.3;
}

.detail-table {
  width: 100%;
  margin: 0 auto 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #211815;
  border-radius: 5px;
  color: #211815;
  font-size: 24px;
  font-weight: 900;
}

.detail-table th,
.detail-table td {
  width: 50%;
  padding: 8px 10px;
  border-bottom: 1px solid #211815;
}

.detail-table th {
  background: #eee;
  border-right: 1px solid #211815;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
  border-bottom: 0;
}

.detail-price {
  width: 100%;
  min-height: 116px;
  margin: 0 auto;
  padding: 14px 10px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  background: #f7e3e0;
  color: #d71920;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.detail-price span {
  padding-bottom: 12px;
  font-size: 28px;
  line-height: 1;
}

.detail-price strong {
  position: static;
  font-size: 85px;
  line-height: 1.05;
}

.detail-price em {
  padding-bottom: 12px;
  font-size: 36px;
  font-style: normal;
  line-height: 1;
}

.detail-back-img {
  display: block;
  width: 350px;
  text-decoration: none;
  margin: 40px auto 0;
}

.detail-back-img img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-body .footer {
  max-width: 960px;
}

.detail-body .copyright {
  font-size: 15px;
}

.footer {
  width: 100%;
  max-width: 960px;
  margin: 40px auto;
  min-height: 0;
  height: auto;
  background: transparent;
}

@media (max-width: 767px) {
  .detail-body {
    padding-top: 50px;
  }

  .detail-body .page-content {
    max-width: 100%;
  }

  .detail-body .procedure {
    padding: 36px 18px 30px;
  }

  .detail-card__inner {
    padding: 28px 26px 30px;
    border-width: 5px;
    border-radius: 7px;
  }

  .detail-title {
    margin-top: 4px;
    margin-bottom: 22px;
    padding: 0 16px;
    font-size: 26px;
  }

  .detail-title::before,
  .detail-title::after {
    width: 74px;
    height: 4px;
  }

  .detail-car-img {
    width: 90%;
    margin-bottom: 18px;
  }

  .detail-car-name {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .detail-table {
    width: 100%;
    margin-bottom: 16px;
    font-size: 17px;
  }

  .detail-price {
    min-height: 72px;
    padding: 10px 8px 12px;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    line-height: 1;
  }

  .detail-price span {
    padding-bottom: 6px;
    font-size: 16px;
  }

  .detail-price strong {
    position: static;
    font-size: 54px;
    line-height: 1;
  }

  .detail-price em {
    padding-bottom: 6px;
    font-size: 24px;
  }

  .detail-back-img {
    width: 240px;
    margin-top: 28px;
  }

  .detail-body .copyright {
    font-size: 12px;
  }

  .detail-body .footer {
    margin: 18px auto 30px;
  }
}

.detail-body .purchase-results {
  width: 100%;
  padding: 26px 40px 45px;
  background: #fff;
}

.detail-body .purchase-results__inner {
  overflow: hidden;
  width: 100%;
  max-width: 870px;
  margin: 0 auto;
  border: 10px solid #1674ad;
  border-radius: 8px 8px 0 0;
  background: #1674ad;
}

.detail-body .purchase-results__title {
  margin: 0;
  padding: 22px 20px 24px;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.detail-body .purchase-results__title span {
  color: #fff22d;
}

.detail-body .purchase-results__body {
  padding: 32px 28px 45px;
  background: #fff;
}

.detail-body .purchase-results__lead {
  margin: 0 0 34px;
  color: #211815;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.detail-body .purchase-results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 18px;
}

.detail-body .car-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 15px;
  color: #000;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.detail-body .car-card__image {
  height: auto;
  margin-top:10px;
  margin-bottom: 12px;
}

.detail-body .car-card__image img {
  width: 100%;
  height:auto;
  object-fit: cover;
}

.detail-body .car-card__price {
  margin-bottom: 10px;
  padding: 8px 10px;
  font-size: 22px;
}

.detail-body .car-card__price span {
  font-size: 50px;
}

.detail-body .car-card p {
  gap: 10px;
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.detail-body .car-card p b {
  padding: 5px 12px 6px;
  font-size: 16px;
}

.detail-body .car-card__button {
  margin-top:15px;
  padding: 12px 12px 13px;
  background: #1674ad;
  font-size: 20px;
}

@media (max-width: 767px) {
  .detail-body .purchase-results {
    padding: 0 3.2vw 7vw;
  }

  .detail-body .purchase-results__inner {
    max-width: none;
    border-width: 8px;
    border-radius: 12px;
  }

  .detail-body .purchase-results__title {
    padding: 24px 14px 26px;
    font-size: 28px;
    line-height: 1.35;
  }

  .detail-body .purchase-results__body {
    padding: 28px 18px 36px;
  }

  .detail-body .purchase-results__lead {
    margin-bottom: 5vw;
    font-size: 4.6vw;
    line-height: 1.75;
  }

  .detail-body .purchase-results__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .detail-body .car-card__price {
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 20px;
  }

  .detail-body .car-card__price span {
    font-size: 48px;
  }
}