/*
 * custom-scube.css — Scube / Swiper styles
 *
 * Sections:
 *   1. Common — section corner, swiper base, shared card patterns
 *   2. scube-typeA — sale grid + typeA/C carousel overrides
 *   3. scube-typeB — rental cards + carousel
 *   4. scube-typeC — investment layout + carousel normalization
 *   5. scube-ranking — rent ranking
 *   6. Shared utilities — scube-list, skeleton, more-btn
 */

/* ===========================================
   Section Corner - Common (all cube types)
   =========================================== */

body.home .section-corner .corner-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--contents-bg-color);
}

body.home .section-corner .corner-wrapper .title {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
  @media (min-width: 768px) {
    font-size: 20px;
    line-height: 40px;
    position: relative;
  }
}

body.home .section-corner .corner-wrapper .title::before {
  display: none;
}

body.home .section-corner .corner-wrapper .title .cornerIcon {
  display: block;
  width: 40x;
  height: 40px;
  flex-shrink: 0;
  fill: var(--main-color);
}

/* 3色コーナーアイコンSVG */
.section-corner .cornerIcon {
  width: 40px;
  height: 40px;
  fill: none;
}

.section-corner .cornerIcon .cornerIcon-path-1 {
  fill: var(--main-color);
}

.section-corner .cornerIcon .cornerIcon-path-2 {
  fill: var(--deco1-color);
}

.section-corner .cornerIcon .cornerIcon-path-3 {
  fill: var(--deco2-color);
}

body.home .section-corner .corner-wrapper .title .description {
  font-size: var(--text-xs);
  line-height: 1.2;
  font-weight: 500;
}

body.home .section-corner .corner-wrapper .title .title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

body.home .section-corner .corner-wrapper .title .Type-Common-Description {
  color: #111;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

body.home
  .section-corner
  .corner-wrapper
  .title
  .Type-Common-Description::before {
  content: '|';
  color: #bbb;
  margin: 0 10px;
  font-weight: 500;
  @media (max-width: 767px) {
    content: none;
  }
}

/* ===========================================
     Section Corner - cube-ranking & section-news
     =========================================== */

body.home .section-corner.cube-ranking .corner-wrapper,
body.home .section-corner.section-news .corner-wrapper {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  background: transparent;
  @media (max-width: 767px) {
    padding: 0 12px;
  }
}

/* Shared title styles for ranking & news */
body.home .section-corner.cube-ranking .corner-wrapper .title,
body.home .section-corner.section-news .corner-wrapper .title {
  background: transparent;
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.2;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  @media (max-width: 767px) {
    gap: 8px;
  }
}

body.home .section-corner.cube-ranking .corner-wrapper .title,
body.home .section-corner.section-news .corner-wrapper .title {
  border-left: 3px solid #111;
  padding: 2px 5px 0 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  @media (max-width: 767px) {
    font-size: 18px;
  }
}

body.home .section-corner.cube-ranking .corner-wrapper .title::before,
body.home .section-corner.section-news .corner-wrapper .title::before {
  display: none;
}

body.home .section-corner.cube-ranking .corner-wrapper .title .cornerIcon,
body.home .section-corner.section-news .corner-wrapper .title .cornerIcon {
  display: block;
  flex-shrink: 0;
  position: static;
}

body.home .section-corner.section-news .corner-wrapper .title .cornerIcon,
body.home .section-corner.cube-ranking .corner-wrapper .title .cornerIcon {
  width: 20px;
  height: 26px;
}

body.home .section-corner.cube-ranking .corner-wrapper .description,
body.home .section-corner.section-news .corner-wrapper .description {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 350;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===========================================
     Swiper - base & pagination
     =========================================== */

.swiper {
  .swiper-wrapper {
    .swiper-slide {
      margin-right: 8px;
      @media (min-width: 320px) {
        margin-right: 10px;
      }
      @media (min-width: 768px) {
        margin-right: 0;
      }
    }
  }
}

.section-swiper .swiper.swiper-initialized .swiper-slide {
  margin-right: 0;
}

.section-swiper .scube-typeA-pagenation,
.section-swiper .scube-typeB-pagenation,
.section-swiper .scube-typeC-pagenation {
  margin-top: 10px;
  text-align: center;
  @media (min-width: 768px) {
    display: none;
  }
}

.section-swiper {
  @media (min-width: 768px) {
    padding-inline: var(--content-spacing);
  }
}

/* ===========================================
     Shared patterns - hover, overlay link,
     tag, red color, comment truncation
     =========================================== */

/* --- Hover: border + image opacity --- */
.scube-typeA .item:hover,
.scube-typeB .item:hover,
.scube-typeC .item:hover,
.scube-ranking .item:hover {
  border-color: var(--main-color);
}

.scube-typeA .item:hover .pic img,
.scube-typeB .item:hover .pic img,
.scube-typeC .item:hover .pic img,
.scube-ranking .item:hover .pic img {
  opacity: 0.7;
}

/* --- Overlay link (covers card for full-click) --- */
.scube-typeA .link,
.scube-typeB .link,
.scube-typeC .link,
.scube-ranking .link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* --- Tag item (shared base — Figma node 6060:2392) --- */
.scube-typeA .tag-item,
.scube-typeB .tag-item,
.scube-typeC .tag-item,
.scube-ranking .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 5px;
  border: 1px solid #1464bd;
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 25.6px;
  color: #1464bd;
  white-space: nowrap;
}

.scube-typeA .tags,
.scube-typeB .tags,
.scube-typeC .tags,
.scube-ranking .tags {
  gap: 7px;
}

/* --- Red accent color inside rimawari --- */
.scube-typeA .spec .rimawari .red,
.scube-typeB .spec .rimawari .red,
.scube-typeC .spec .rimawari .red,
.scube-ranking .spec .rimawari .red,
.rimawari .red {
  color: #900;
}

/* --- Comment block (truncated) --- */
.scube-typeA .item .comment,
.swiper-initialized .scube-typeA .item .comment,
.swiper-initialized .scube-typeC .item .comment {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: var(--text-color);
  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
     =========================================== */

.scube-typeA {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
  width: 160%;
  transform: translateX(calc(calc(100% - 135%) / 2));
  @media (min-width: 768px) {
    width: 100% !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(
      4,
      calc((100% - (var(--gap-md) * 3)) / 4)
    ) !important;
    gap: var(--gap-md) !important;
  }
}

.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 .pic {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 256;
  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: #dfc243;
  color: #fff;
  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: 768px) {
    width: 100%;
    min-height: 211px;
  }
}

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

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

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

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

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

.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;
  @media (min-width: 768px) {
    margin-bottom: 0 !important;
  }
}

.scube-typeA .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  width: 100%;
  min-height: 22.5px;
  background: #f2f2f2;
  font-weight: 700;
  padding: 0 26px 0 27px;
  font-size: 15px;
  text-align: center;
  line-height: 22.5px;
  @media (max-width: 1100px) {
    flex-wrap: wrap;
    padding: 0 3px;
  }
}

.scube-typeA .spec .address {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-color);
  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 {
  width: 100%;
  @media (min-width: 768px) {
    padding-top: var(--p-md);
    margin-top: 0 !important;
    border-top: 1px solid #e6e6e6;
  }
}

/* scube-typeA/C - Swiper overrides (mobile < 768px) */
.swiper-initialized .scube-typeA,
.swiper-initialized .scube-typeC {
  display: flex;
  width: 100%;
  transform: none;
  gap: initial;
  padding-inline: 0;
}

.swiper-initialized .scube-typeA .item,
.swiper-initialized .scube-typeC .item,
.swiper-initialized .swiper-wrapper.scube-typeA .swiper-slide,
.swiper-initialized .swiper-wrapper.scube-typeC .swiper-slide {
  width: 256px;
  min-width: 256px;
}

.swiper-initialized .scube-typeC .item {
  display: flex;
  flex-direction: column;
}

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

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

.swiper-initialized .scube-typeC .item .pic {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 256;
  height: auto;
  order: unset;
  overflow: hidden;
}

.swiper-initialized .scube-typeC .item .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-initialized .scube-typeC .item .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 211px;
  height: auto;
  padding: 10px 15px;
  order: unset;
  gap: initial;
  overflow: visible;
}

.swiper-initialized .scube-typeC .item .info .tags {
  justify-content: center;
  align-items: center;
}

.swiper-initialized .scube-typeC .item .info .price,
.swiper-initialized .scube-typeC .item .info .price-row {
  text-align: center;
}

.swiper-initialized .scube-typeC .item .info .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 22.5px;
  padding: 0 26px 0 27px;
  font-size: 15px;
  line-height: 22.5px;
  text-align: center;
}

.swiper-initialized .scube-typeC .item .info .spec .address {
  text-align: center;
}

.swiper-initialized .swiper-wrapper.scube-typeA .swiper-slide .item .comment,
.swiper-initialized .swiper-wrapper.scube-typeC .swiper-slide .item .comment {
  padding-top: var(--p-md);
  margin-top: 0 !important;
  border-top: 1px solid #e6e6e6;
}

.scube-typeA .swiper-wrapper .swiper-slide .item .comment,
.scube-typeC .swiper-wrapper .swiper-slide .item .comment {
  @media (min-width: 768px) {
    padding-top: var(--p-md);
    margin-top: 0 !important;
    border-top: 1px solid #e6e6e6;
  }
}

/* Desktop: restore grid/column layout when swiper is destroyed */
@media (min-width: 768px) {
  .swiper-initialized .scube-typeA {
    display: grid !important;
    flex-direction: unset !important;
  }

  .swiper-initialized .scube-typeC {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* scube-typeB - Swiper overrides (mobile < 768px) */
@media (max-width: 767px) {
  .swiper-initialized .scube-typeB {
    display: flex;
    width: 100%;
    transform: none;
    gap: initial;
    padding-inline: 0;
  }

  .swiper-initialized .scube-typeB .item,
  .swiper-initialized .swiper-wrapper.scube-typeB .swiper-slide {
    width: clamp(334px, 70vw, 480px);
    min-width: 334px;
    max-width: 480px;
  }
}

/* Section Cube Type B - background */
body.home .section-corner.cube-typeB .corner-wrapper {
  background: var(--sato-bg);
  padding: 0;

  @media (max-width: 950px) {
    padding: 0;
  }

  .title {
    @media (max-width: 767px) {
      padding-inline: 0;
      padding: 0 12px;
    }
  }
}

/* ===========================================
     scube-typeB - おすすめ賃貸物件
     =========================================== */

.scube-typeB {
  display: flex;
}

.scube-typeB .item {
  display: flex;
  position: relative;
  height: 120px;
  border: 1px solid #c0c0c0;
  background: #fff;
  @media (min-width: 768px) {
    width: calc(50% - var(--gap-md) / 2);
    min-height: 137px;
    justify-content: center;
    align-items: stretch;
    border: 1px solid #c0c0c0;
    overflow: hidden;
  }
  @media (min-width: 850px) {
    min-height: 192px;
  }
}

.scube-typeB .item .pic {
  width: 120px;
  height: 100%;
  flex-shrink: 0;
  @media (min-width: 768px) {
    aspect-ratio: 1;
    height: auto;
  }
  @media (min-width: 850px) {
    width: 195px;
  }
}

.scube-typeB .item .pic img {
  width: 120px;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  @media (min-width: 768px) {
    width: 100%;
    transition: opacity 0.3s ease;
  }
  @media (min-width: 850px) {
    width: 195px;
  }
}

.scube-typeB .item .info {
  width: calc(100% - 120px);
  height: 100%;
  background-color: #fff;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  @media (min-width: 768px) {
    width: auto;
    height: auto;
    padding: 12px;
    gap: 1px;
    flex: 1 0 0;
    align-self: stretch;
  }
  @media (min-width: 951px) {
    width: calc(100% - 195px);
    min-height: 195px;
    padding: 15px 20px;
  }
}

.scube-typeB .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  @media (min-width: 768px) {
    align-self: stretch;
  }
}

.scube-typeB .price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  @media (min-width: 849px) and (max-width: 950px) {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.scube-typeB .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24.708px;
  color: #b20007;
  text-align: center;
  white-space: nowrap;
  @media (min-width: 768px) {
    font-size: 16px;
    line-height: 1.6;
  }
  @media (min-width: 951px) {
    font-size: 22px;
  }
}

.scube-typeB .price .unit {
  font-size: 14px;
  @media (min-width: 768px) {
    font-size: 12px;
  }
}

.scube-typeB .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: unset;
  gap: 2px;
  border: none;
  border-bottom: none;
}

.scube-typeB .spec .rimawari {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1px 5px;
  width: 100%;
  padding: 1.81px 0;
  background: #f2f2f2;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 15.794px;
  text-align: center;
  color: var(--text-color);
  @media (min-width: 768px) {
    padding: 4px 0;
    gap: 8px;
    align-self: stretch;
  }
  @media (min-width: 951px) {
    font-size: 15px;
  }
}

.scube-typeB .spec .address {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 15.794px;
  color: var(--text-color);
  @media (min-width: 768px) {
    color: #333;
    font-size: 15px;
    font-style: normal;
    line-height: 22.5px;
  }
}

.scube-typeB .item .comment {
  display: none;
  @media (min-width: 850px) {
    display: -webkit-box;
    align-self: stretch;
    gap: 8px;
    width: 100%;
    border-top: 1px solid #e6e6e6;
    padding-top: 5px;
    margin-top: 0;
    flex: 1;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #333333;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
  }
}

.scube-typeB .price-rimawari {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  @media (max-width: 767px) {
    display: none;
  }
}

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

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

/* scube-typeB - carousel OFF on mobile (stack vertically) */
@media (max-width: 767px) {
  body.home .section-corner.cube-typeB:not(.section-swiper) .corner-wrapper {
    padding: 10px 10px 20px 10px;
  }

  body.home .section-corner.cube-typeB:not(.section-swiper) .scube-typeB {
    flex-direction: column;
    gap: var(--gap-md);
  }

  body.home .section-corner.cube-typeB:not(.section-swiper) .scube-typeB .item {
    width: 100%;
  }
}

/* ===========================================
     scube-typeC - Figma Design
     =========================================== */

.scube-typeC {
  display: flex;
  flex-direction: row;
  gap: var(--gap-md);
  padding-inline: 12px;
  width: 160%;
  transform: translateX(calc(calc(100% - 135%) / 2));
  @media (min-width: 768px) {
    display: flex !important;
    flex-direction: column !important;
    padding-inline-start: 0;
    padding-inline-end: 0;
    width: 100% !important;
    transform: none !important;
  }
}

.scube-typeC .item {
  display: flex;
  position: relative;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  flex-shrink: 0;
  width: calc((100% - var(--gap-md)) / 1.6);
  min-width: 280px;
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 392px 1fr;
    width: 100% !important;
    min-width: unset !important;
  }
}

.scube-typeC .pics {
  display: contents;
  @media (min-width: 768px) {
    display: flex;
    flex-direction: row;
    width: 392px;
    height: 195px;
    flex-shrink: 0;
  }
}

.scube-typeC .pic {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  @media (min-width: 768px) {
    width: 196px;
    height: 196px;
  }
}

.scube-typeC .pic-sub {
  display: none;
  @media (min-width: 768px) {
    display: block;
  }
}

.scube-typeC .pic img {
  width: 130px;
  height: 130px;
  aspect-ratio: 1;
  object-fit: cover;
  @media (min-width: 768px) {
    width: 196px;
    height: 196px;
  }
}

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

.scube-typeC .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: left;
  margin-bottom: 5px;
}

.scube-typeC .price {
  font-size: var(--text-price);
  font-weight: var(--weight-bold);
  color: #b20007;
  text-align: center;
  @media (min-width: 768px) {
    text-align: left;
  }
}

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

.scube-typeC .price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  @media (min-width: 768px) {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
  }
}

.scube-typeC .price-rimawari {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  @media (max-width: 767px) {
    display: none;
  }
}

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

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

.scube-typeC .spec {
  width: 100%;
  padding-bottom: 8px;
  font-size: var(--text-sm);
}

.scube-typeC .spec .rimawari {
  display: flex;
  width: 100%;
  height: 23px;
  padding: 4px 0;
  align-items: center;
  color: var(--text-color);
  gap: 8px;
  background: #f2f2f2;
  font-weight: 700;
  font-size: 13px;
  line-height: 22.5px;
  text-align: center;
  justify-content: center;
  padding-left: 0;
  @media (min-width: 768px) {
    justify-content: flex-start;
    padding-left: 5px;
  }
}

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

/* ===========================================
     scube-ranking - Rent Ranking
     =========================================== */

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

.scube-ranking .item {
  display: flex;
  position: relative;
  border: 1px solid #c0c0c0;
  background: var(--contents-bg-color);
  @media (min-width: 900px) {
    display: grid;
    grid-template-columns: 120px 1fr;
  }
}

.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(--text-color);
}

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

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

.scube-ranking .item .pic {
  width: 118px;
  flex-shrink: 0;
  @media (min-width: 900px) {
    width: 120px;
  }
}

.scube-ranking .item .pic img {
  width: 118px;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  @media (min-width: 900px) {
    width: 100%;
  }
}

.scube-ranking .info {
  background-color: var(--contents-bg-color);
  flex-grow: 1;
  height: 100%;
  font-size: var(--text-md);
  padding: var(--p-md);
  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;
}

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

.scube-ranking .price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24.708px;
  color: #b20007;
  text-align: center;
  @media (max-width: 1020px) {
    font-size: 14px;
  }
}

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

.scube-ranking .spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-size: var(--text-sm);
  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: #f2f2f2;
  font-weight: 700;
  font-size: 12px;
  line-height: 22.5px;
  text-align: center;
  color: var(--text-color);
}

.scube-ranking .spec .address {
  text-align: center;
  font-size: 13px;
  line-height: 15.794px;
  color: var(--text-color);
}

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

.scube-ranking .price-rimawari {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  @media (max-width: 767px) {
    display: none;
  }
}

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

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

/* ===========================================
     Shared utilities
     =========================================== */

.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%;
}

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

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

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

/* ===========================================
     Skeleton loading
     =========================================== */

@keyframes skeltonLoading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* --- Shared shimmer effect for skeleton blocks --- */
.skelton-typeA-list .item-image::before,
.skelton-typeA-list .item::before,
.skelton-typeB-list .item-image::before,
.skelton-typeB-list .item::before,
.skelton-typeC-list .item-image::before,
.skelton-typeC-list .item::before,
.skelton-ranking-list .item-image::before,
.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;
}

/* --- Shared skeleton block base --- */
.skelton-typeA-list .item-image,
.skelton-typeB-list .item-image,
.skelton-typeC-list .item-image,
.skelton-ranking-list .item-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ddd;
  aspect-ratio: 1;
}

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

/* --- skelton-typeA-list specifics --- */
.skelton-typeA-list {
  display: grid;
  grid-template-areas: 'image' 'info1' 'info2' 'info3';
  grid-template-rows: 178px 25px 25px 68px;
  gap: 8px;
  width: 240px;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  padding: 0;
}

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

@media (min-width: 768px) {
  .skelton-typeA-list {
    width: 240px;
    display: grid;
    grid-template-areas: 'image' 'info1' 'info2' 'info3';
    grid-template-rows: 178px 25px 25px 68px;
    gap: 8px;
  }

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

.skelton-typeA-list .item-image {
  aspect-ratio: 238 / 178;
}

.skelton-typeA-list .item {
  width: 80%;
  margin: 0 auto;
}

/* --- skelton-typeB-list specifics --- */
.skelton-typeB-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gap-md);
  min-width: 272px;
  width: calc((100% - 20px) / 1.2);
  margin: 0 auto;
}

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

@media (min-width: 460px) {
  .skelton-typeB-list {
    width: calc((100% - 20px) / 1.8);
  }
}

@media (min-width: 768px) {
  .skelton-typeB-list {
    grid-template-columns: 140px 1fr;
    width: calc(50% - var(--gap-md) / 2);
    margin: unset;
  }

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

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

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

/* --- skelton-typeC-list specifics --- */
.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-ranking-list specifics --- */
.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;
}

/* ===========================================
     More button (cube sections)
     =========================================== */

.more-btn {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.more-link {
  display: flex;
  width: 300px;
  padding: 16.5px 48px 16.69px 24px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
  border: 1px solid var(--main-color);
  color: var(--text-color);
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 350;
  line-height: 19.2px;
}

.more-link i {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
}

.more-link:hover {
  background: var(--main-color);
  color: var(--text-contrast-color);
}
