/* car-souba.jp market page */
.cs-market-page {
  --cs-primary: #0f3a65;
  --cs-accent: #f39800;
  --cs-soft: #f5f8fb;
  --cs-border: #dfe7ef;
  --cs-text: #1d2733;
  color: var(--cs-text);
}

.cs-market-section {
  margin: 0 0 42px;
}

.cs-market-section h2 {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 18px 14px 22px;
  border-left: 6px solid var(--cs-accent);
  background: linear-gradient(90deg, #eef5fb 0%, #fff 100%);
  color: var(--cs-primary);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.cs-market-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
}

.cs-market-supplement {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: #fbfdff;
  font-size: 15px;
  line-height: 1.9;
}

.cs-market-supplement p {
  margin: 0 0 10px;
}

.cs-market-supplement p:last-child {
  margin-bottom: 0;
}

.cs-market-summary-card {
  display: grid;
  grid-template-columns: minmax(260px, 44%) 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 58, 101, 0.08);
}

.cs-market-car-image {
  overflow: hidden;
  min-height: 240px;
  border-radius: 12px;
  background: var(--cs-soft);
}

.cs-market-car-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.cs-market-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: #6f7f8f;
  font-weight: 700;
  background: repeating-linear-gradient(-45deg, #f4f7fa, #f4f7fa 10px, #edf2f6 10px, #edf2f6 20px);
}

.cs-market-price-box {
  display: flex;
  align-items: center;
}

.cs-market-price-box dl {
  width: 100%;
  margin: 0;
}

.cs-market-price-box dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cs-border);
}

.cs-market-price-box dl > div:last-child {
  border-bottom: 0;
}

.cs-market-price-box dt {
  margin: 0;
  color: #435568;
  font-size: 15px;
  font-weight: 700;
}

.cs-market-price-box dd {
  margin: 0;
  color: #d23b2d;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cs-market-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: #fff;
}

.cs-market-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.cs-market-table th,
.cs-market-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--cs-border);
  text-align: left;
  vertical-align: middle;
}

.cs-market-table th {
  background: var(--cs-primary);
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
}

.cs-market-table tbody tr:nth-child(even) td {
  background: #fafcff;
}

.cs-market-table tbody tr:last-child td {
  border-bottom: 0;
}

.cs-market-table td:last-child {
  color: #d23b2d;
  font-weight: 700;
  white-space: nowrap;
}

.cs-market-empty {
  text-align: center !important;
  color: #728092 !important;
  font-weight: 400 !important;
}

.cs-market-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e9;
  color: #604317;
  font-size: 13px;
  line-height: 1.7;
}

.cs-shop-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 58, 101, 0.08);
}

.cs-shop-info dl {
  margin: 0;
}

.cs-shop-info dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--cs-border);
}

.cs-shop-info dl > div:last-child {
  border-bottom: 0;
}

.cs-shop-info dt {
  color: #435568;
  font-weight: 700;
}

.cs-shop-info dd {
  margin: 0;
}

.cs-shop-info a {
  overflow-wrap: anywhere;
}

.cs-line-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #06c755;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.cs-shop-qr img {
  display: block;
  width: 148px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}


.cs-other-shop-list {
  display: grid;
  gap: 14px;
}

.cs-other-shop-card {
  box-shadow: none;
}

.cs-market-free-content {
  margin-top: 44px;
}

@media (max-width: 767px) {
  .cs-market-section h2 {
    font-size: 20px;
    padding: 12px 14px;
  }

  .cs-market-summary-card,
  .cs-shop-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cs-market-price-box dl > div {
    display: block;
    padding: 16px 0;
  }

  .cs-market-price-box dt {
    margin-bottom: 8px;
  }

  .cs-market-price-box dd {
    font-size: 26px;
  }

  .cs-market-supplement {
    padding: 14px;
    font-size: 14px;
  }

  .cs-market-table-wrap {
    overflow: visible;
    border: 0;
  }

  .cs-market-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .cs-market-table thead {
    display: none;
  }

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

  .cs-market-table tr {
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .cs-market-table th,
  .cs-market-table td {
    border-bottom: 1px solid var(--cs-border);
  }

  .cs-market-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 12px;
  }

  .cs-market-table td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    color: #435568;
    font-weight: 700;
  }

  .cs-market-table tbody tr:nth-child(even) td {
    background: #fff;
  }

  .cs-shop-info dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cs-shop-qr {
    text-align: center;
  }

  .cs-shop-qr img {
    margin: 0 auto;
  }
}

.cs-market-grade-name {
  display: block;
  margin-top: 6px;
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.4;
  color: #1a2f45;
}

.cs-shop-card--simple {
  grid-template-columns: 1fr;
}

.cs-market-shop-section--bottom {
  margin-top: 42px;
}
