.home-market-price-summary {
  margin-top: 38px;
  padding: 30px;
  border: 1px solid #cfd9d4;
  border-radius: 24px;
  background: #eef4f1;
}

.home-market-price-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.home-market-price-summary-head .label {
  margin: 0 0 7px;
  color: #e8792b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.home-market-price-summary-head h2 {
  margin: 0;
  color: #0d1d19;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.home-market-price-summary-head > span,
.home-market-price-summary-note {
  color: #527064;
  font-size: 13px;
  font-weight: 650;
}

.home-market-price-summary-head > span {
  text-align: right;
}

.home-market-price-summary-note {
  margin: 0 0 18px;
  line-height: 1.6;
}

.home-market-price-summary-table-wrap {
  overflow-x: auto;
  border: 1px solid #c6d3cd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 55, 42, .05);
}

.home-market-price-summary-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: #38534a;
  font-size: 14px;
  text-align: center;
}

.home-market-price-summary-table th {
  height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid #a9bfd6;
  color: #17352d;
  font-weight: 800;
  white-space: nowrap;
}

.home-market-price-summary-table td {
  height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid #e4ebe7;
  white-space: nowrap;
}

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

.home-market-price-summary-table tbody tr:hover {
  background: #f8fbf9;
}

.home-market-price-summary-table td:last-child {
  color: #243d35;
  font-size: 16px;
  font-weight: 900;
}

.home-market-price-summary-kind {
  display: inline-flex;
  min-width: 66px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.home-market-price-summary-kind.is-highest {
  background: #fff0ed;
  color: #c6482f;
}

.home-market-price-summary-kind.is-average {
  background: #e8f4ee;
  color: #176646;
}

.home-market-price-summary-kind.is-lowest {
  background: #edf3ff;
  color: #3566ad;
}

.home-market-price-summary-table tr.is-average {
  background: #fbfdfc;
}

.home-market-price-summary-table td[colspan] {
  height: 100px;
  color: #7b8d85;
}

.home-market-ranking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 10px;
}

.home-market-ranking-head h3 {
  margin: 0;
  color: #0d1d19;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.home-market-ranking-head span {
  color: #527064;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.home-market-ranking-number {
  display: inline-flex;
  min-width: 48px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f4ee;
  color: #176646;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.home-market-ranking-card {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #c6d3cd;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 55, 42, .07);
}

.home-market-ranking-card .home-market-price-summary-note {
  margin-bottom: 16px;
}

.home-market-ranking-table-wrap {
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: none;
}

.home-market-ranking-table {
  min-width: 940px;
  table-layout: fixed;
}

.home-market-ranking-table .ranking-col-rank { width: 72px; }
.home-market-ranking-table .ranking-col-time { width: 156px; }
.home-market-ranking-table .ranking-col-market { width: 116px; }
.home-market-ranking-table .ranking-col-corporation { width: 116px; }
.home-market-ranking-table .ranking-col-item { width: 94px; }
.home-market-ranking-table .ranking-col-variety { width: 94px; }
.home-market-ranking-table .ranking-col-unit { width: 86px; }
.home-market-ranking-table .ranking-col-quantity { width: 82px; }
.home-market-ranking-table .ranking-col-price { width: 128px; }

.home-market-ranking-table th,
.home-market-ranking-table td {
  vertical-align: middle;
}

.home-market-ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 0 #a9bfd6;
}

.home-market-ranking-rank-heading,
.home-market-ranking-rank-cell {
  text-align: center;
}

.home-market-ranking-number-heading,
.home-market-ranking-number-cell,
.home-market-ranking-price-heading,
.home-market-ranking-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.home-market-ranking-table td.home-market-ranking-number-cell {
  color: #38534a;
  font-size: 14px;
  font-weight: 750;
}

.home-market-ranking-table td.home-market-ranking-price {
  color: #b64029;
}

.home-market-ranking-price strong {
  display: inline-flex;
  min-width: 92px;
  justify-content: flex-end;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff1ed;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.home-market-ranking-table tbody tr:nth-child(1) .home-market-ranking-number {
  background: #fff0ed;
  color: #c6482f;
}

.home-market-ranking-table tbody tr:nth-child(2) .home-market-ranking-number {
  background: #edf2f4;
  color: #45616a;
}

.home-market-ranking-table tbody tr:nth-child(3) .home-market-ranking-number {
  background: #fff1df;
  color: #a75d20;
}

@media (max-width: 760px) {
  .home-market-price-summary {
    margin-top: 28px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .home-market-price-summary-head {
    display: block;
  }

  .home-market-price-summary-head h2 {
    font-size: 25px;
  }

  .home-market-price-summary-head > span {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .home-market-price-summary-note {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .home-market-price-summary-table {
    font-size: 12px;
  }

  .home-market-price-summary-table th,
  .home-market-price-summary-table td {
    height: 46px;
    padding: 0 10px;
  }

  .home-market-price-summary-table td:last-child {
    font-size: 14px;
  }

  .home-market-ranking-head {
    display: block;
  }

  .home-market-ranking-head span {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .home-market-ranking-card {
    margin-top: 26px;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .home-market-ranking-head h3 {
    font-size: 21px;
  }

  .home-market-ranking-table-wrap {
    max-height: 520px;
    border-radius: 14px;
  }

  .home-market-ranking-table td.home-market-ranking-number-cell {
    font-size: 12px;
  }

  .home-market-ranking-price strong {
    min-width: 82px;
    padding: 5px 8px;
    font-size: 14px;
  }
}
