@media (min-width: 768px) {
  .scube-typeA .item {
    width: calc((100% - (var(--gap-md) * 3)) / 4);
  }
}

.scube-typeA .item .comment {
  font-size: var(--text-sm);
  padding-top: var(--p-md);
  margin-top: var(--p-md);
  border-top: 1px solid var(--border-color);
  text-overflow: ellipsis;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.scube-typeB {
  display: flex;
}

.scube-typeB .item {
  border: 1px solid var(--border-color);
  background: var(--contents-bg-color);
  display: flex;
  position: relative;
}

.scube-typeB .item:hover {
  border-color: var(--main-color);
}

.scube-typeB .item:hover .pic img {
  opacity: .7;
}

.scube-typeB .pic {
  flex-shrink: 0;
  width: 120px;
}

.scube-typeB .pic img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 120px;
  height: 120px;
}

.scube-typeB .info {
  background-color: var(--contents-bg-color);
  width: calc(100% - 120px);
  font-size: var(--text-md);
  padding: 0 var(--p-md);
  flex-direction: column;
  justify-content: center;
  display: flex;
  overflow: hidden;
}

@media (min-width: 768px) {
  .scube-typeB .info {
    padding-block: var(--gap-md);
  }
}

.scube-typeB .price {
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  color: var(--price-color);
}

.scube-typeB .price .unit {
  font-size: .7em;
}

.scube-typeB .spec {
  height: calc(var(--line-height-md) * 4em);
  line-height: var(--line-height-md);
  font-size: var(--text-sm);
}

.scube-typeB .spec .rimawari {
  font-weight: var(--weight-bold);
}

.scube-typeB .spec .rimawari .red {
  color: var(--price-color);
}

.scube-typeB .comment {
  display: none;
}

.scube-typeB .link {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (min-width: 768px) {
  .scube-typeB {
    gap: var(--gap-md);
    flex-wrap: wrap;
  }

  .scube-typeB .item {
    width: calc(50% - (var(--gap-md) / 2));
  }

  .scube-typeB .item .comment {
    font-size: var(--text-sm);
    padding-top: var(--p-md);
    margin-top: var(--p-md);
    border-top: 1px solid var(--border-color);
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .scube-typeB .pic {
    width: 140px;
  }

  .scube-typeB .pic img {
    width: 100%;
    height: 100%;
  }

  .scube-typeB .info {
    width: calc(100% - 140px);
  }
}

@media (min-width: 900px) {
  .scube-typeB .item .pic {
    width: 200px;
  }

  .scube-typeB .item .info {
    width: calc(100% - 200px);
  }
}

.scube-typeC {
  gap: var(--gap-md);
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}

@media (min-width: 768px) {
  .scube-typeC {
    padding-left: 0;
    padding-right: 0;
  }
}

.scube-typeC .item {
  border: 1px solid var(--border-color);
  background: var(--contents-bg-color);
  display: flex;
  position: relative;
}

.scube-typeC .item:hover {
  border-color: var(--main-color);
}

.scube-typeC .item:hover .pic img {
  opacity: .7;
}

.scube-typeC .pic {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
}

.scube-typeC .pic img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 130px;
  height: 130px;
}

.scube-typeC .info {
  background-color: var(--contents-bg-color);
  font-size: var(--text-md);
  padding: var(--p-md);
  gap: var(--gap-sm);
  flex-direction: column;
  flex-grow: 1;
  height: 130px;
  display: flex;
  overflow: hidden;
}

.scube-typeC .price {
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  color: var(--price-color);
}

.scube-typeC .price .unit {
  font-size: .7em;
}

.scube-typeC .spec {
  font-size: var(--text-sm);
}

.scube-typeC .spec .rimawari {
  font-weight: var(--weight-bold);
}

.scube-typeC .spec .rimawari .red {
  color: var(--price-color);
}

.scube-typeC .comment {
  display: none;
}

.scube-typeC .link {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (min-width: 768px) {
  .scube-typeC {
    padding-left: 0;
    padding-right: 0;
  }

  .scube-typeC .item {
    grid-template-columns: 200px 1fr;
    display: grid;
  }

  .scube-typeC .item .comment {
    font-size: var(--text-sm);
    padding-top: var(--p-md);
    margin-top: var(--p-md);
    border-top: 1px solid var(--border-color);
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .scube-typeC .pic {
    width: 200px;
    height: 200px;
  }

  .scube-typeC .pic img {
    width: 100%;
    height: 100%;
  }

  .scube-typeC .info {
    height: auto;
  }
}

.scube-ranking {
  gap: var(--gap-md);
  margin-inline: var(--content-spacing);
  flex-direction: column;
  display: flex;
}

.scube-ranking .item {
  border: 1px solid var(--border-color);
  background: var(--contents-bg-color);
  display: flex;
  position: relative;
}

.scube-ranking .item:hover {
  border-color: var(--main-color);
}

.scube-ranking .item:hover .pic img {
  opacity: .7;
}

.scube-ranking .item:after {
  z-index: 1;
  text-align: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.scube-ranking .item:first-child:after {
  content: "1";
  background: #f7d019;
}

.scube-ranking .item:nth-child(2):after {
  content: "2";
  background: #ddd;
}

.scube-ranking .item:nth-child(3):after {
  content: "3";
  color: #fff;
  background: #854f41;
}

.scube-ranking .pic {
  flex-shrink: 0;
  width: 130px;
}

.scube-ranking .pic img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 130px;
  height: 130px;
}

.scube-ranking .info {
  background-color: var(--contents-bg-color);
  font-size: var(--text-md);
  padding: var(--p-md);
  gap: var(--gap-sm);
  flex-direction: column;
  flex-grow: 1;
  height: 130px;
  display: flex;
  overflow: hidden;
}

.scube-ranking .price {
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  color: var(--price-color);
}

.scube-ranking .price .unit {
  font-size: .7em;
}

.scube-ranking .spec {
  font-size: var(--text-sm);
}

.scube-ranking .spec .rimawari {
  font-weight: var(--weight-bold);
}

.scube-ranking .spec .rimawari .red {
  color: var(--price-color);
}

.scube-ranking .comment {
  display: none;
}

.scube-ranking .link {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (min-width: 900px) {
  .scube-ranking {
    gap: var(--gap-md);
    grid-template-columns: repeat(3, 1fr);
    margin-left: 0;
    margin-right: 0;
    display: grid;
    position: relative;
  }

  .scube-ranking .item {
    grid-template-columns: 130px 1fr;
    display: grid;
  }

  .scube-ranking .item .pic {
    width: 130px;
  }

  .scube-ranking .item .pic img {
    width: 100%;
    height: 100%;
  }
}

.scube-list .pic.stage-negotiation {
  position: relative;
}

.scube-list .pic.stage-negotiation:after {
  content: "商談中";
  width: 80px;
  height: 20px;
  color: var(--text-contrast-color);
  font-size: var(--text-sm);
  text-align: center;
  background: #e0af1b;
  border-radius: 8px;
  line-height: 1.3;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.scube-list .price {
  font-size: var(--text-md);
}

@media (min-width: 320px) {
  .scube-list .price {
    font-size: var(--text-price);
  }
}
