:root {
  --color-bike: #e30011;
  --color-car: #1976d1;
}

.body-type-ranking__grid {
  display: grid;
  padding-bottom: 20px;
  padding-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .body-type-ranking__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.body-type-ranking__card {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #eee;
  border-collapse: collapse;
  border-radius: 4px;
}

.body-type-ranking__title {
  margin-bottom: 5px;
}

.body-type-ranking__title a {
  font-size: 16px;
  font-weight: 700;
  padding: 2px;
  transition: all 0.1s linear;
}

@media (max-width: 640px) {
  .body-type-ranking__title a {
    font-size: 14px;
    font-weight: 600;
  }
}

.body-type-ranking__title a.bike {
  color: var(--color-bike);

  &:hover {
    border-bottom: 1.5px solid var(--color-bike);
  }
}

.body-type-ranking__title a.car {
  color: var(--color-car);

  &:hover {
    border-bottom: 1.5px solid var(--color-car);
  }
}

.body-type-ranking__list {
  margin: 0;
  list-style-type: none;
  padding-left: 5px;

}

.body-type-ranking__item {
  font-size: 14px;
  line-height: 2;  
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .body-type-ranking__item {
    font-size: 12px;
    line-height: 1.5;
  }
}

.body-type-ranking__item a {
  color: black;
  text-decoration: none;
  padding: 2px;
  transition: all 0.1s linear;

  &:hover {
    color: black;
  }
}

.body-type-ranking__item a.bike:hover {
  color: var(--color-bike);
  border-bottom: 1.5px solid var(--color-bike);
}

.body-type-ranking__item a.car:hover {
  color: var(--color-car);
  border-bottom: 1.5px solid var(--color-car);
}
