body {
    display: grid;
    /* Override parent home.css which collapses header to 0 — give header its natural height */
    grid-template-rows: max-content 1fr max-content;
}



body.home .header {
  margin-inline: 0;
  border-radius: 0px;
  border-bottom: none;
  /* Normal document flow — header sits above first-view, not overlapping it */
  position: relative;
  width: 100%;
  padding: var(--p-sm) var(--content-spacing);
  background-color: var(--header-color);
  top: 0px;

  @media (min-width: 768px) {
    background-color: var(--header-color);
    padding: var(--p-md) var(--content-spacing);
    width: 100%;
    margin-inline: 0;
    border-radius: 0;
    position: relative;
  }

  .inner .link.logo {
    flex-shrink: 0;
    max-width: 130px;
    width: 130px;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    @media (min-width: 890px) {
      max-width: 178px;
      width: 178px;
      height: 83px;
    }
  }

  .inner .link.logo img {
    width: 130px;
    height: 60px;
    max-width: 130px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    @media (min-width: 890px) {
      width: 178px;
      height: 83px;
      max-width: 178px;
      max-height: 83px;
    }
  }
  .inner .link.logo:hover {
    opacity: 0.7;
    background-color: unset;
  }

  .inner .link {
    color: var(--text-color);
    @media (min-width: 890px) {
      color: var(--text-color);
    }
  }
  .list {
    .link:hover,
    .item.toggle:hover .text {
      color: var(--text-point-color);
    }
    .item .menu {
      border: none;
      box-shadow: none;
    }
    .tag {
      background-color: var(--text-point-color);
    }

    /* Full-width white bar for nav list — break out of header's padding */
    @media (min-width: 890px) {
      background-color: #ffffff;
      margin-inline: calc(-1 * var(--content-spacing));
      padding-inline: var(--content-spacing);

      /* Dropdown menu: re-anchor to original content boundary
         because .list now extends beyond header padding via negative margin */
      .item .menu {
        left: var(--content-spacing);
        right: var(--content-spacing);
        width: auto;
      }
    }
  }
}
@media (min-width: 890px) {
  .home .header {
    background-color: var(--header-color);
  }
   .header .inner {
      background-color: unset;
      border-radius: 0;
      padding-left: 0;
      padding-right: 0;
      padding-bottom: 15px;
      padding-top: 5px;
    }
}
@media (min-width: 890px) {
  .home .header {
    background-color: rgb(from var(--contents-bg-color) r g b / 0.6);
  }
}
.hamburger-menu .item {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: background-color 0.2s ease-in;
}

body.home .hamburger-menu {
  top: 30px;
  right: var(--content-spacing);
  left: unset;
  background-color:var(--header-color);
  color: var(--header-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  @media (max-width: 889px) {
    background-color: #F5E7DA;;
    .item {
      background-color: #692A70;
    }
  }

  @media (min-width: 890px) {
    top: var(--p-md);
    transform: none;
    left: unset;
    right: var(--content-spacing);

    .item {
      background-color: #FFFFFF;
    }
  }

  @media (min-width: 890px) {
    top: 30px;
  }
}


.section-links .link {
  border-radius: 3px;
  border: 2px solid rgba(147, 120, 158, 0.3);
  background-color: rgba(240, 223, 246, 0.3);
  &:hover {
    background-color: rgba(240, 223, 246, 0.6);
    border-color: rgba(147, 120, 158, 0.6);
    .inner .title,
    .inner .sub-title {
      color: #111;
    }
    .inner::after {
      border-color: rgba(147, 120, 158, 0.6);
    }
    .inner .ico-bnr-search path {
      fill: #111;
    }
  }

  @media (min-width: 768px) {
    border: 2px solid rgba(147, 120, 158, 0.3);
  }

  .inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    .title, .sub-title {
      color: #111;
    }
    padding-right: var(--p-xl);
    padding-left: 69.22px; /* 16px (icon left) + 37.22px (icon width) + 16px (gap) */

    @media (min-width: 768px) {
      padding-left: 101.58px; /* 31px (icon left) + 48px (icon width) + 22.58px (gap) */
    }

    @media (min-width: 960px) {
      padding-left: 101.58px;
    }

    /* Hide the parent theme's ::before icon */
    &::before {
      display: none !important;
      content: none !important;
    }

    .ico-bnr-search {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 16px;
      flex-shrink: 0;
    }

    .ico-bnr-search-mobile {
      display: block;
      width: 37.22px;
      height: 38px;

      @media (min-width: 768px) {
        display: none;
      }
    }

    .ico-bnr-search-desktop {
      display: none;
      width: 48px;
      height: 49px;
      left: 31px; /* Match Figma desktop position */

      @media (min-width: 768px) {
        display: block;
      }

      @media (min-width: 960px) {
        left: 31px; /* Keep same position */
      }
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      margin: auto 0;
      transform: rotate(45deg);
      width: 8px;
      height: 8px;
      border-top: 2px solid rgba(147, 120, 158, 0.3);
      border-right: 2px solid rgba(147, 120, 158, 0.3); 
      right: 16px;
      z-index: 2;

      @media (min-width: 768px) {
        right: 22px;
      }

      @media (min-width: 960px) {
        right: 32px;
      }
    }

    .sub-title {
      font-size: var(--text-xs);

      @media (min-width: 768px) {
        font-size: 15px;
      }
    }
  }
}

body.home .section-corner {

  .corner-wrapper {
    background: var(--contents-bg-color);

    .title {
      font-size: 20px;
      font-weight: 350;
      line-height: 1.5;
      
      @media (min-width: 768px) {
      font-size: var(--text-xl);
      }
      
    &::before {
      height: 24px;
      background: linear-gradient(to top, var(--main-color) 0 62.5%, var(--text-contrast-color) 62.5% 100%);

      @media (min-width: 768px) {
        height: 40px;
      }
    }
    
  }
}
}

/* cube-ranking & section-news overrides moved to consolidated section below */

.swiper {
  padding-inline: clamp(0.875rem, -6.5357rem + 37.0536vw, 11.25rem) !important;
  @media (min-width: 768px) {
    padding-inline: 0 !important;
  }
  .swiper-wrapper {
    .swiper-slide {
      margin-right: 8px;
      @media (min-width: 320px) {
        margin-right: 10px;
      }
      @media (min-width: 768px) {
        margin-right: 0;
      }
    }
  }
}

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

body.home .section-corner .corner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--contents-bg-color);
  padding: 0 0px;
  @media (max-width: 767px) {
    padding: 0 0px;
  }
}

body.home .section-corner .corner-wrapper .title {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sato-text);
  padding: 0 12px;
  @media (min-width: 768px) {
    font-size: 20px;
    line-height: 40px;
    padding: 5px 0 5px 45px;
    position: relative;
  }
}

body.home .section-corner .corner-wrapper .title .cornerIcon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: var(--sato-primary);
  @media (min-width: 768px) {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 2.5px;
  }
}

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::before {
  display: none;
}

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: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  @media (max-width: 767px) {
    font-size: 16px;
    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-typeA background
   =========================================== */

body.home .section-corner.cube-typeA .corner-wrapper {
  background: var(--sato-bg);
  padding: 0px;
  @media (max-width: 950px) {
    padding: 0 0px;
  }
}

body.home .section-corner.cube-typeA .corner-wrapper .title {
  @media (max-width: 767px) {
    padding-inline: 0;
    padding: 0 12px;
  }
}

/* ===========================================
   Section Corner - cube-typeB background
   =========================================== */

body.home .section-corner.cube-typeB .corner-wrapper {
  background: var(--sato-bg);
  padding: 0x;
  @media (max-width: 950px) {
    padding: 0 0px;
  }
}

body.home .section-corner.cube-typeB .corner-wrapper .title {
  @media (max-width: 767px) {
    padding-inline: 0;
    padding: 0 12px;
  }
}



/* ===========================================
   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 0;
  border: none;
  background: transparent;
  @media (max-width: 767px) {
    padding: 0 12px;
  }
}

body.home .section-corner.cube-ranking .corner-wrapper .title,
body.home .section-corner.section-news .corner-wrapper .title {
  background: transparent;
  color: #111;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  border-left: 3px solid #111;
  padding: 2px 5px 0px 15px;
  gap: 15px;
  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
    padding: 1px 5px 0px 14px;
    font-size: 20px;
    gap: 3px;
  }
}

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: none;
}

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

/* ===========================================
   Section News
   =========================================== */

body.home .section-news .posts {
  border: 1px solid #C0C0C0;
  margin-inline: 0;
  padding-inline: var(--content-spacing);
  background: var(--contents-bg-color);
  @media (max-width: 767px) {
    border-radius: 3px;
  }
  @media (min-width: 768px) {
    padding-inline: 20px;
  }
  .post-news {
    .heading .link:hover {
      color: var(--sato-primary);
    }
    .new::after {
      color: var(--new-color);
      background-color: unset;
      font-size: var(--text-md);
      font-weight: 700;
      padding-inline: 5px;
    }
  }
}

body.home .section-news .more-link {
  display: flex;
  width: 300px;
  padding: 16.5px 1px 16.69px 1px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
  border: 1px solid #111;
}

body.home .section-news .more-link:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

/* ===========================================
   Section Swiper - pagination
   =========================================== */

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

/* ===========================================
   scube-typeA - おすすめ売買物件
   Each class is self-contained with nested
   media queries for all breakpoints.
   =========================================== */

.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%;
  @media (min-width: 768px) {
    width: 100%;
  }
}

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

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

.scube-typeA .pic {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 256;
  overflow: hidden;
  @media (min-width: 768px) {
    width: 100%;
    aspect-ratio: 256 / 256;
  }
}

.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(--sato-new);
  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;
  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(--main-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(--main-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;
  @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;
  width: 100%;
  min-height: 22.5px;
  background: #E8E8E8;
  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 0 3px;
  }
}

.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;
  @media (min-width: 768px) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

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

.scube-typeA .item .comment {
  display: block;
  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;
  @media (min-width: 768px) {
    padding-top: var(--p-md);
    margin-top: 0 !important;
    border-top: 1px solid #E6E6E6;
  }
}

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

/* scube-typeA - Swiper overrides (mobile < 768px) */
.swiper-initialized .scube-typeA {
  display: flex;
  width: 100%;
  transform: none;
  gap: initial;
  @media (min-width: 768px) {
    display: grid !important;
    flex-direction: unset !important;
  }
}

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

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

.swiper-initialized .swiper-wrapper.scube-typeA .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 {
  @media (min-width: 768px) {
    padding-top: var(--p-md);
    margin-top: 0 !important;
    border-top: 1px solid #E6E6E6;
  }
}

/* ===========================================
   scube-typeB - おすすめ賃貸物件
   Each class is self-contained with nested
   media queries for all breakpoints.
   =========================================== */

.scube-typeB {
  display: flex;
}

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

.typeB-item:hover {
  border-color: var(--main-color, var(--sato-primary));
}

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

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

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

.typeB-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;
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1px;
    flex: 1 0 0;
    align-self: stretch;
  }
  @media (min-width: 951px) {
    width: calc(100% - 195px);
    min-height: 195px;
    padding: 15px 20px;
  }
}

.typeB-tags-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  @media (min-width: 768px) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
  }
}

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

.typeB-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  padding: 1px 5px;
  border: 1px solid var(--main-color, var(--sato-primary));
  border-radius: 1.4px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 17.97px;
  color: var(--main-color, var(--sato-primary));
  white-space: nowrap;
  @media (min-width: 768px) {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    padding: 0 5px;
    border: 1px solid var(--main-color, var(--sato-primary));
    border-radius: 2px;
    background: #FFF;
    color: var(--main-color, var(--sato-primary));
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 25.6px;
  }
  @media (min-width: 951px) {
    font-size: 12px;
  }
}

.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-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #B20007;
    text-align: center;
  }
  @media (min-width: 951px) {
    font-size: 22px;
  }
}

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

.typeB-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 2px;
  border: none;
  border-bottom: none;
  @media (min-width: 768px) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2px;
  }
}

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

.typeB-rimawari .red {
  color: #B20007;
}

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

.typeB-comment-wrapper {
  display: none;
  @media (min-width: 850px) {
    display: flex !important;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    align-self: stretch;
    gap: 8px;
    width: 100%;
    border-top: 1px solid #E6E6E6;
    padding-top: 5px;
  }
}

.typeB-comment {
  @media (min-width: 850px) {
    flex: 1;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -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;
  }
}

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

/* ===========================================
   scube-typeC - Figma Design
   Each class is self-contained with nested
   media queries for all breakpoints.
   =========================================== */

.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 var(--border-color);
  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: 200px 1fr;
    width: 100% !important;
    min-width: unset !important;
  }
}

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

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

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

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

.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;
  gap: 5px;
  margin-bottom: 5px;
}

.scube-typeC .tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--main-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(--main-color);
  white-space: nowrap;
  @media (min-width: 768px) {
    font-size: 12px;
    height: 24px;
    padding: 0 5px;
    line-height: 25.6px;
  }
}

.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 {
  justify-content: center;
  align-items: center !important;
  flex-wrap: wrap;
  width: 100%;
  @media (min-width: 768px) {
    justify-content: flex-start;
    align-items: center !important;
    flex-wrap: nowrap;
    width: auto;
  }
}

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

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

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

.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);
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
}

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

/* scube-typeC - Swiper overrides (mobile < 768px) */
.swiper-initialized .scube-typeC {
  display: flex;
  width: 100%;
  transform: none;
  gap: initial;
  padding-inline: 0;
  @media (min-width: 768px) {
    display: flex !important;
    flex-direction: column !important;
  }
}

.swiper-initialized .scube-typeC .item {
  width: 256px;
  min-width: 256px;
  display: flex;
  flex-direction: column;
}

.swiper-initialized .scube-typeC .item .pic {
  width: 256px;
  height: 256px;
  aspect-ratio: 1 / 1;
  order: 1;
}

.swiper-initialized .scube-typeC .item .pic img {
  width: 256px;
  height: 256px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.swiper-initialized .scube-typeC .item .info {
  display: flex;
  width: 238px;
  height: 211px;
  order: 2;
  padding: var(--p-md);
}

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

.swiper-initialized .scube-typeC .item .info .price {
  text-align: center;
  @media (min-width: 768px) {
    text-align: left;
  }
}

.swiper-initialized .scube-typeC .item .info .spec .rimawari {
  justify-content: center;
  text-align: center;
  @media (min-width: 768px) {
    justify-content: flex-start;
  }
}

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

.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(--sato-text);
  padding-top: var(--p-md);
  margin-top: 0 !important;
  border-top: 1px solid #E6E6E6;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

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

/* ===========================================
   scube-ranking - Rent Ranking
   Each class is self-contained with nested
   media queries for all breakpoints.
   =========================================== */

.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;
    margin-inline: 0;
  }
}

.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:hover {
  border-color: var(--main-color, var(--sato-primary));
}

.scube-ranking .item:hover .pic img {
  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 {
  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%;
    height: 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;
  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(--main-color, var(--sato-primary));
  border-radius: 2px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  color: var(--main-color, var(--sato-primary));
  white-space: nowrap;
  @media (min-width: 1050px) {
    font-size: 12px;
    height: 24px;
    padding: 0 5px;
    line-height: 25.6px;
  }
}

.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;
    line-height: 24.708px;
  }
}

.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 0px;
  background: #E8E8E8;
  font-weight: 700;
  font-size: 13px;
  line-height: 15.794px;
  text-align: center;
  color: var(--sato-text);
  @media (min-width: 900px) {
    font-size: 12px;
  }
}

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

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

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

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

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

.scube-list {
  .pic.stage-negotiation {
    position: relative;
    &::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%
    }
  }
}

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

/* ===========================================
   More button - Figma Design
   =========================================== */

.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 #111;
  color: #111;
  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);
  border-color: var(--main-color);
  color: #fff;
}

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

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

.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;
  &:not(:nth-child(1)) {
    display: none;
  }
  @media (min-width: 768px) {
    width: 240px;
    display: grid;
    grid-template-areas: "image" "info1" "info2" "info3";
    grid-template-rows: 178px 25px 25px 68px;
    gap: 8px;
    &:not(:nth-child(1)) {
      display: grid;
    }
  }
  .item-image {
    aspect-ratio: 238 / 178;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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;
    }
  }
  .item {
    height: 18px;
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    background-color: #ddd;
    &::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);
  min-width: 272px;
  width: calc((100% - 20px) / 1.2);
  margin: 0 auto;
  &:not(:nth-child(1)) {
    display: none;
  }
  @media (min-width: 460px) {
    width: calc((100% - 20px) / 1.8);
  }
  @media (min-width: 768px) {
    grid-template-columns: 140px 1fr;
    width: calc(50% - var(--gap-md) / 2);
    margin: unset;
    &:not(:nth-child(1)) {
      display: grid;
    }
  }
  @media (min-width: 900px) {
    grid-template-columns: 200px 1fr;
  }
  .item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  .item-image {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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;
    }
  }
  .item {
    height: 18px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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) {
    grid-template-columns: 140px 1fr;
  }
  @media (min-width: 900px) {
    grid-template-columns: 200px 1fr;
  }
  .item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  .item-image {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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;
    }
  }
  .item {
    height: 18px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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);
  @media (min-width: 768px) {
    grid-template-columns: 120px 1fr;
  }
  @media (min-width: 900px) {
    grid-template-columns: 120px 1fr;
  }
  .item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  .item-image {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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;
    }
  }
  .item-block {
    height: 18px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    &::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;
    }
  }
}


/* ===========================================
   利回り (Rimawari/Yield) styles
   =========================================== */

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

.price-rimawari-TypeA .rimawari-label {
  display: flex;
  padding: 2px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #F7D019;
  @media (max-width: 767px) {
    padding: 2px;
    gap: 5px;
  }
}
.price-rimawari-TypeA .rimawari-label {
  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;
}

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

/*typeB rimawari styles*/
.typeB-price-row {
  @media (min-width: 849px) and (max-width: 950px) {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.typeB-price-rimawari {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  @media (max-width: 767px) {
    display:none;
  }

}
.typeB-price-rimawari .rimawari-label {
  display: flex;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #F7D019;
  @media (max-width: 780px) {
    padding: 2px;
    gap: 5px;
  }
}
.typeB-price-rimawari .rimawari-label {
  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;
}

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



.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;
  @media (max-width: 1024px) {
    padding: 2px;
    gap: 5px;
  }
}
.price-rimawari .rimawari-label {
  color: #1E293B;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0.48px;

}

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

/* ===========================================
   News link
   =========================================== */

    .section-news .posts .post-news .heading {
      cursor: pointer;
    }
    .section-news .posts .post-news .heading:hover {
      color: var(--main-color);
    }