/* ===========================================
   Swiper core (required for carousel to work)
   =========================================== */
.swiper {
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  transition-property: transform;
  transition-timing-function: var(
    --swiper-wrapper-transition-timing-function,
    initial
  );
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  height: auto;
  transition-property: transform;
}

/* ===========================================
   Pagination
   =========================================== */
.section-swiper .scube-typeA-pagenation,
.section-swiper .scube-typeB-pagenation,
.section-swiper .scube-typeC-pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  min-height: 10px;
}

.section-swiper .scube-typeA-pagenation .swiper-pagination-bullet,
.section-swiper .scube-typeB-pagenation .swiper-pagination-bullet,
.section-swiper .scube-typeC-pagenation .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0c0c0;
  opacity: 1;
  display: inline-block;
  cursor: pointer;
}

.section-swiper .scube-typeA-pagenation .swiper-pagination-bullet-active,
.section-swiper .scube-typeB-pagenation .swiper-pagination-bullet-active,
.section-swiper .scube-typeC-pagenation .swiper-pagination-bullet-active {
  background: var(--main-color, #333);
}

@media (min-width: 980px) {
  .section-swiper .scube-typeA-pagenation {
    display: none;
  }
}

@media (min-width: 980px) {
  .section-swiper .scube-typeB-pagenation {
    display: none;
  }
}

@media (min-width: 768px) {
  .section-swiper .scube-typeC-pagenation {
    display: none;
  }
}

/* ===========================================
   Common styles
   =========================================== */
@keyframes skeltonLoading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

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

.price-rimawari {
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-rimawari .rimawari-label {
  display: flex;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #f7d019;
  color: #1e293b;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0.48px;
}

@media (max-width: 1024px) {
  .price-rimawari .rimawari-label {
    padding: 2px;
    gap: 5px;
  }
}

.price-rimawari .rimawari-value {
  color: #1e293b;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 120%;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================================
   scube-typeA
   =========================================== */
@media (min-width: 980px) {
  .cube-typeA .scube-context {
    padding-inline: 40px;
  }
}

.scube-typeA {
  display: grid;
  width: 100%;
}

@media (min-width: 980px) {
  .scube-typeA {
    transform: none;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
  }
}

.scube-typeA .item {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  height: auto;
  width: 100%;
}

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

.scube-typeA .item:hover .pic {
  opacity: 0.7;
}

.scube-typeA .pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.scube-typeA .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.scube-typeA .pic.new-property::before {
  content: 'NEW';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 27px;
  background: var(--main-color);
  color: var(--text-color);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

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

.scube-typeA .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--contents-bg-color);
  flex-grow: 1;
  padding: 10px 15px;
}

@media (min-width: 980px) {
  .scube-typeA .info {
    width: 100%;
    min-height: 211px;
  }
}

.scube-typeA .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.scube-typeA .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--sub-color);
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 25.6px;
  color: var(--sub-color);
  white-space: nowrap;
}

.scube-typeA .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20.8px;
  font-weight: 700;
  color: #b20007;
  line-height: 25.6px;
  text-align: center;
}

.scube-typeA .price .unit {
  font-size: 16px;
  font-weight: 700;
}

.scube-typeA .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  font-size: 15px;
  line-height: 1.5;
  flex: 0 0 auto;
}

.scube-typeA .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 22.5px;
  background: #e8e8e8;
  font-weight: 700;
  padding: 0 3px;
  font-size: 15px;
  text-align: center;
  line-height: 22.5px;
}

.scube-typeA .spec .rimawari .red {
  color: #b20007;
}

.scube-typeA .spec .address {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--sato-text);
  line-height: 22.5px;
  margin-bottom: 0;
}

.scube-typeA .spec .address.ellipsis {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  box-sizing: border-box;
}

.scube-typeA .spec .detail,
.scube-typeA .spec .structure {
  display: none;
}

.scube-typeA .item .comment {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: var(--sato-text);
  padding-top: var(--p-md);
  margin-top: 0 !important;
  border-top: 1px solid #e6e6e6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-align: start;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

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

/* typeA - Swiper overrides */
.swiper-initialized .scube-typeA {
  display: flex;
  width: 100%;
}

.swiper-initialized .scube-typeA .item {
  width: 266px;
  min-width: 266px;
}

.swiper-initialized .swiper-wrapper.scube-typeA .swiper-slide {
  width: 266px;
  min-width: 266px;
}

/* typeA - rimawari styles */
.price-rimawari-TypeA {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-bottom: 5px;
  padding-top: 4px;
}

.price-rimawari-TypeA .rimawari-label {
  display: flex;
  padding: 2px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #f7d019;
  color: var(--text-primary, #1e293b);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0.48px;
}

@media (max-width: 767px) {
  .price-rimawari-TypeA .rimawari-label {
    padding: 2px;
    gap: 5px;
  }
}

.price-rimawari-TypeA .rimawari-value {
  color: #1e293b;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 120%;
}

/* ===========================================
   scube-typeB
   =========================================== */
.cube-typeB .scube-context:not(:has(.swiper-initialized)) {
  padding-inline: 10px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cube-typeB .scube-context:not(:has(.swiper-initialized)) .item {
  max-width: 100%;
}

@media (min-width: 768px) and (max-width: 979px) {
  .cube-typeB .scube-context:not(:has(.swiper-initialized)) {
    padding-inline: 40px;
  }
}

@media (min-width: 980px) {
  .cube-typeB .scube-context:not(:has(.swiper-initialized)) {
    padding-inline: 40px;
  }
}

.scube-typeB {
  display: flex;
  width: 100%;
}

@media (min-width: 980px) {
  .scube-typeB {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    transform: none;
  }
}

.scube-typeB .item {
  display: flex;
  flex-direction: row;
  position: relative;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  height: auto;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 980px) {
  .scube-typeB .item {
    max-width: none;
    width: 100%;
  }
}

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

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

.scube-typeB .pic {
  position: relative;
  max-width: 200px;
  min-width: 120px;
  width: 44%;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
}

.scube-typeB .pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.scube-typeB .pic.new-property::before {
  content: 'NEW';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 24px;
  background: var(--main-color);
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

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

.scube-typeB .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--contents-bg-color);
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 15px;
}

@media (min-width: 980px) {
  .scube-typeB .info {
    width: auto;
    min-height: 200px;
  }
}

.scube-typeB .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.scube-typeB .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--sub-color);
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 25.6px;
  color: var(--sub-color);
  white-space: nowrap;
}

.scube-typeB .price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.scube-typeB .price-rimawari-TypeA {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scube-typeB .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20.8px;
  font-weight: 700;
  color: #b20007;
  line-height: 25.6px;
  text-align: center;
}

.scube-typeB .price .unit {
  font-size: 16px;
  font-weight: 700;
}

.scube-typeB .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  font-size: 15px;
  line-height: 1.5;
  flex: 0 0 auto;
}

.scube-typeB .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 22.5px;
  background: #e8e8e8;
  font-weight: 700;
  padding: 0 3px;
  font-size: 15px;
  text-align: center;
  line-height: 22.5px;
}

.scube-typeB .spec .rimawari .red {
  color: #b20007;
}

.scube-typeB .spec .address {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--sato-text);
  line-height: 22.5px;
  margin-bottom: 0;
}

.scube-typeB .spec .address.ellipsis {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  box-sizing: border-box;
}

.scube-typeB .spec .detail,
.scube-typeB .spec .structure {
  display: none;
}

.scube-typeB .item .comment {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: var(--sato-text);
  padding-top: var(--p-md);
  margin-top: 0 !important;
  border-top: 1px solid #e6e6e6;
  overflow: hidden;
  -webkit-box-align: start;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  display: none;
}

@media (min-width: 980px) {
  .scube-typeB .item .comment {
    display: -webkit-box;
  }
}

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

/* typeB - Swiper overrides */
.swiper-initialized .scube-typeB {
  display: flex;
  width: 100%;
}

.swiper-initialized .scube-typeB .item {
  width: 100%;
  max-width: none;
}

.swiper-initialized .scube-typeB .item .info {
  padding: 8px;
}

.swiper-initialized .swiper-wrapper.scube-typeB .swiper-slide {
  width: calc(100% - 20px);
  max-width: 400px;
  box-sizing: border-box;
}

/* ===========================================
   scube-typeC
   =========================================== */
.cube-typeC .scube-context:not(:has(.swiper-initialized)) {
  padding-inline: 10px;
}

.cube-typeC .scube-context:not(:has(.swiper-initialized)) .scube-typeC {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cube-typeC .scube-context:not(:has(.swiper-initialized)) .item {
  max-width: 100%;
}

@media (min-width: 768px) {
  .cube-typeC .scube-context:not(:has(.swiper-initialized)) {
    padding-inline: 40px;
  }
}

.scube-typeC {
  display: flex;
  width: 100%;
}

@media (min-width: 768px) {
  .scube-typeC {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    transform: none;
  }
}

.scube-typeC .item {
  display: flex;
  flex-direction: row;
  position: relative;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  height: auto;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 768px) {
  .scube-typeC .item {
    max-width: none;
    width: 100%;
  }
}

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

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

.scube-typeC .pics {
  display: contents;
}

.scube-typeC .pic {
  position: relative;
  max-width: 200px;
  min-width: 120px;
  width: 44%;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
}

.scube-typeC .pic-sub {
  display: none;
}

@media (min-width: 768px) {
  .scube-typeC .pics {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    width: auto;
    max-width: 400px;
  }

  .scube-typeC .pic {
    width: 200px;
    max-width: 200px;
    min-width: 0;
  }

  .scube-typeC .pic-sub {
    display: block;
  }
}

.scube-typeC .pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.scube-typeC .pic.new-property::before {
  content: 'NEW';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 27px;
  background: var(--main-color);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

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

.scube-typeC .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--contents-bg-color);
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 15px;
}

@media (min-width: 768px) {
  .scube-typeC .info {
    width: auto;
    min-height: 200px;
  }
}

.scube-typeC .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.scube-typeC .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--sub-color);
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 25.6px;
  color: var(--sub-color);
  white-space: nowrap;
}

.scube-typeC .price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.scube-typeC .price-rimawari-TypeA {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scube-typeC .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20.8px;
  font-weight: 700;
  color: #b20007;
  line-height: 25.6px;
  text-align: center;
}

.scube-typeC .price .unit {
  font-size: 16px;
  font-weight: 700;
}

.scube-typeC .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  font-size: 15px;
  line-height: 1.5;
  flex: 0 0 auto;
}

.scube-typeC .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 22.5px;
  background: #e8e8e8;
  font-weight: 700;
  padding: 0 3px;
  font-size: 15px;
  text-align: center;
  line-height: 22.5px;
}

.scube-typeC .spec .rimawari .red {
  color: #b20007;
}

.scube-typeC .spec .address {
  font-size: 15px;
  font-weight: 400;
  color: var(--sato-text);
  line-height: 22.5px;
  margin-bottom: 0;
}

.scube-typeC .spec .address.ellipsis {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  box-sizing: border-box;
}

.scube-typeC .spec .detail,
.scube-typeC .spec .structure {
  display: none;
}

.scube-typeC .item .comment {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: var(--sato-text);
  padding-top: var(--p-md);
  margin-top: 0 !important;
  border-top: 1px solid #e6e6e6;
  overflow: hidden;
  -webkit-box-align: start;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  display: none;
}

@media (min-width: 768px) {
  .scube-typeC .item .comment {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
}

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

/* typeC - Swiper overrides */
.swiper-initialized .scube-typeC {
  display: flex;
  width: 100%;
}

.swiper-initialized .scube-typeC .item {
  width: 100%;
  max-width: none;
}

.swiper-initialized .scube-typeC .pics {
  display: contents;
}

.swiper-initialized .scube-typeC .pic-sub {
  display: none;
}

.swiper-initialized .scube-typeC .item .info {
  padding: 8px;
}

.swiper-initialized .swiper-wrapper.scube-typeC .swiper-slide {
  width: calc(100% - 20px);
  max-width: 400px;
  box-sizing: border-box;
}

/* ===========================================
   scube-ranking
   =========================================== */
.scube-ranking {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-inline: 0;
}

@media (min-width: 900px) {
  .scube-ranking {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }
}

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

@media (min-width: 900px) {
  .scube-ranking .item {
    display: grid;
    grid-template-columns: min-content 1fr;
  }
}

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

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

.scube-ranking .item::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.scube-ranking .item:nth-child(1)::after {
  content: '1';
  background: #f7d019;
  color: var(--sato-text);
}

.scube-ranking .item:nth-child(2)::after {
  content: '2';
  background: #ddd;
  color: var(--sato-text);
}

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

.scube-ranking .item .pic {
  max-width: 180px;
  min-width: 130px;
  width: 45%;
  flex-shrink: 0;
}

.scube-ranking .item .pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

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

.scube-ranking .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.scube-ranking .price-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.scube-ranking .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--sub-color);
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  color: var(--sub-color);
  white-space: nowrap;
}

@media (min-width: 1050px) {
  .scube-ranking .tag-item {
    font-size: 12px;
    height: 24px;
    line-height: 25.6px;
  }
}

.scube-ranking .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24.708px;
  color: #b20007;
  text-align: center;
}

.scube-ranking .price .unit {
  font-size: 16px;
}

@media (min-width: 900px) {
  .scube-ranking .price .unit {
    font-size: 12px;
  }
}

.scube-ranking .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-size: var(--text-md);
  gap: 2px;
}

.scube-ranking .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 1.81px 0;
  background: #e8e8e8;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: var(--sato-text);
}

.scube-ranking .spec .rimawari .red {
  color: #b20007;
}

.scube-ranking .spec .address {
  text-align: center;
  font-size: 16px;
  color: var(--sato-text);
}

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

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

/* ===========================================
   Skeleton loading
   =========================================== */
.skelton-typeA-list {
  display: flex;
  flex-direction: column;
  width: 266px;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  padding: 0;
}

.skelton-typeA-list:not(:nth-child(1)) {
  display: none;
}

@media (min-width: 980px) {
  .skelton-typeA-list {
    width: 100%;
    margin-inline: 0;
  }

  .skelton-typeA-list:not(:nth-child(1)) {
    display: flex;
  }
}

.skelton-typeA-list .item-image {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeA-list .item-image::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-typeA-list .item {
  height: 18px;
  position: relative;
  width: calc(100% - 30px);
  margin: 10px auto 0;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeA-list .item:last-child {
  height: 45px;
  margin-bottom: 15px;
}

.skelton-typeA-list .item::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-typeB-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gap-md);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
}

.skelton-typeB-list:not(:nth-child(1)) {
  display: none;
}

@media (min-width: 980px) {
  .skelton-typeB-list {
    grid-template-columns: 200px 1fr;
    max-width: none;
    margin: unset;
  }

  .skelton-typeB-list:not(:nth-child(1)) {
    display: grid;
  }
}

.skelton-typeB-list .item-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.skelton-typeB-list .item-image {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeB-list .item-image::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-typeB-list .item {
  height: 18px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeB-list .item::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-typeC-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gap-md);
}

@media (min-width: 768px) {
  .skelton-typeC-list {
    grid-template-columns: 140px 1fr;
  }
}

@media (min-width: 900px) {
  .skelton-typeC-list {
    grid-template-columns: 200px 1fr;
  }
}

.skelton-typeC-list .item-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.skelton-typeC-list .item-image {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeC-list .item-image::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-typeC-list .item {
  height: 18px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-typeC-list .item::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-ranking-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gap-md);
}

.skelton-ranking-list .item-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.skelton-ranking-list .item-image {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-ranking-list .item-image::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}

.skelton-ranking-list .item-block {
  height: 18px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
}

.skelton-ranking-list .item-block::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  animation: skeltonLoading 1.2s ease-in-out infinite;
}
