/* ===============================================
   検索結果カード v3（上書きレイヤー・最小構成）
   対象: include/_building_box.php (.result-box.-layout-v2)
   内容: ①紹介文のクランプ+「続きを読む」
         ②スマホ表示に限り物件写真を横長に（PCは従来のまま）
   注意: assets/scss はビルドが必要なため触らず、この1枚で上書きする
   =============================================== */

/* ---------- ① 紹介文: クランプ+「続きを読む」 ---------- */
.result-box.-layout-v2 .result-desc-detail-text .rc3-comment {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
@media (max-width: 768px) {
  .result-box.-layout-v2 .result-desc-detail-text .rc3-comment {
    -webkit-line-clamp: 3;
  }
}
.result-box.-layout-v2 .result-desc-detail-text.is-open .rc3-comment {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.rc3-more {
  appearance: none;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #1C75EA;
  cursor: pointer;
}
.rc3-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s;
}
.result-desc-detail-text.is-open .rc3-more::after {
  transform: rotate(225deg) translateY(-2px);
}

/* ---------- ② スマホのみ: 写真を横長ワイドに ---------- */
@media (max-width: 768px) {
  .result-box.-layout-v2 .property-image-slide {
    width: 100%;
    justify-self: stretch;
  }
  .result-box.-layout-v2 .property-image-wrapper.-small {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .result-box.-layout-v2 .property-image-wrapper.-small .swiper-slide img {
    max-width: none;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
  }

  /* ビル名がスマホでは大きすぎるため縮小(インラインstyle 22pxを上書き)し、
     物件番号は横並びをやめて2行目に落とす */
  .result-box.-layout-v2 .result-desc-top {
    display: block !important;
    margin-bottom: 8px !important;
  }
  .result-box.-layout-v2 .-result-desc-title {
    font-size: 17px !important;
    line-height: 1.5;
  }
  .result-box.-layout-v2 .result-desc-top .property-info-list {
    margin-top: 6px !important;
  }

  /* 矢印は画像の外(-40px)配置だと全幅化で画面外に見切れるため、
     スマホでは写真の内側にオーバーレイ表示する */
  .result-box.-layout-v2 .property-image-wrapper.-small .swiper-button-prev {
    left: 10px;
  }
  .result-box.-layout-v2 .property-image-wrapper.-small .swiper-button-next {
    right: 10px;
  }
  .result-box.-layout-v2 .property-image-wrapper.-small .swiper-button-prev::before,
  .result-box.-layout-v2 .property-image-wrapper.-small .swiper-button-next::before {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(28, 117, 234, .35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  }
}
