/* cache-bust 20260804g-formal-home */
/*
 * file: home-new-cards.css
 *
 * TOP 新着（/test/ かつ ?view=all でないとき #list.tp-home-new__grid）専用。
 * list.js は 1部屋=1カードの .property-card--top 構造。
 *
 * 起点:
 *   body.site-theme-conversion section#list.tp-home-new__grid
 */

/* 新着カードを横に最大5列 */
body.site-theme-conversion section#list.tp-home-new__grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

@media (max-width: 1200px) {
  body.site-theme-conversion section#list.tp-home-new__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.site-theme-conversion section#list.tp-home-new__grid {
    grid-template-columns: 1fr !important;
  }
}

body.site-theme-conversion section#list.tp-home-new__grid > * {
  min-width: 0 !important;
  max-width: none !important;
}

/* --- 1カード: 縦積みコンパクト（外観上・情報・CTA） --- */
body.site-theme-conversion section#list.tp-home-new__grid article.property-card--top {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  margin: 0;
  padding: 6px 6px 8px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 40, 20, 0.1);
  box-shadow: 0 1px 6px rgba(15, 40, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-theme-conversion section#list.tp-home-new__grid article.property-card--top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 40, 20, 0.12);
}

/*
 * TOP新着 外観画像の中央固定（2026-07-18）
 * list-cards.css の slider 用 contain / width:auto を上書きし、
 * 枠・inner・リンク・img 全階層を 4:3 cover + object-position 50% 50% に揃える。
 * 通常時の translate / 左右位置指定は入れない（hover scale のみ維持）。
 */
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 8px;
  background: #eef2ee;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.site-theme-conversion .tp-home-new__grid .property-card--top .card-photo-slider-inner,
body.site-theme-conversion .tp-home-new__grid .property-card--top .tp-home-new__photo-link,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .card-photo-slider-inner,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .tp-home-new__photo-link {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-decoration: none;
  grid-column: auto !important;
  z-index: 1;
}

/* スライダー: inner は既に absolute。矢印は左右 absolute */
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-slider-inner,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-slider-inner {
  z-index: 1;
}

body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav,
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav--prev,
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav--prev,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav--prev,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav--prev {
  left: 6px !important;
  right: auto !important;
}

body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav--next,
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav--next,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .card-photo-nav--next,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider > .list-card-img-nav--next {
  right: 6px !important;
  left: auto !important;
}

body.site-theme-conversion .tp-home-new__grid .property-card--top .card-photo-slider-inner img,
body.site-theme-conversion .tp-home-new__grid .property-card--top .tp-home-new__photo-link img,
body.site-theme-conversion .tp-home-new__grid .property-card--top .thumb-wrap img,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .card-photo-slider-inner img,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .tp-home-new__photo-link img,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap img,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider .card-photo-slider-inner img[data-card-slide-img],
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .thumb-wrap.js-card-slider .card-photo-slider-inner img.list-card-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  transition: transform 0.3s ease;
}

/* NO IMAGE: 切らず中央 contain（会員TOPカード画像は除く） */
body.site-theme-conversion .tp-home-new__grid .property-card--top img.property-no-image-img:not([data-no-image-kind='member-top-card']),
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top img.property-no-image-img:not([data-no-image-kind='member-top-card']) {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #f8fafc;
  transform: none !important;
}

/* 会員物件画像: 枠いっぱい中央（cover） */
body.site-theme-conversion .tp-home-new__grid .property-card--top img.tp-home-new__member-photo,
body.site-theme-conversion .tp-home-new__grid .property-card--top img[data-no-image-kind='member-top-card'],
body.site-theme-conversion .tp-home-new__grid .property-card--top img.property-no-image-img[data-no-image-kind='member-top-card'],
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top img.tp-home-new__member-photo,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top img[data-no-image-kind='member-top-card'],
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top img.property-no-image-img[data-no-image-kind='member-top-card'] {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  background: transparent !important;
  transform: none !important;
}

/* ホバー拡大（通常時の translate / 左右オフセットは付けない） */
@media (hover: hover) and (pointer: fine) {
  body.site-theme-conversion section#list.tp-home-new__grid article.property-card--top:hover .thumb-wrap img:not(.is-floorplan):not(.property-no-image-img) {
    transform: scale(1.04);
  }
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-info {
  display: flex;
  flex-direction: column;
  flex: 1; /* 下方向に伸ばす */
  min-width: 0;
  padding: 6px 2px 0;
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  height: 2.8em; /* 2行分の高さを固定 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-pricebar {
  margin-bottom: 8px;
}

/* TOP 件数: 1行・数字強調（list.js setHomeTopPublishedCount） */
body.site-theme-conversion .tp-home-new .tp-home-property-count,
body.site-theme-conversion .tp-home-property-count.status-box {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4em;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

body.site-theme-conversion .tp-home-new .tp-home-property-count__label,
body.site-theme-conversion .tp-home-property-count__label {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.site-theme-conversion .tp-home-new .tp-home-property-count__num,
body.site-theme-conversion .tp-home-property-count__num {
  flex: 0 0 auto;
  font-size: 1.2em;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/*
 * TOP新着家賃赤色 — styles.css / list-cards.css の
 * .property-grid:not(.property-grid--station) ... .list-rent { color:#1f2937 !important }
 * より詳細度を高くし !important で勝つ。
 */
body.site-theme-conversion .tp-home-new section#list.property-grid.tp-home-new__grid > .property-card.property-card--top > .list-card-info > .list-card-body > .list-card-pricebar .list-rent,
body.site-theme-conversion .tp-home-new .tp-home-new__grid .property-card--top .list-rent,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-rent {
  color: #dc2626 !important;
  font-weight: 900 !important;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  line-height: 1.08 !important;
}

body.site-theme-conversion .tp-home-new section#list.property-grid.tp-home-new__grid > .property-card.property-card--top > .list-card-info > .list-card-body > .list-card-pricebar .list-rent__num,
body.site-theme-conversion .tp-home-new .tp-home-new__grid .property-card--top .list-rent__num,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-rent__num {
  color: #dc2626 !important;
  font-weight: 900 !important;
  font-size: 1em !important;
}

body.site-theme-conversion .tp-home-new section#list.property-grid.tp-home-new__grid > .property-card.property-card--top > .list-card-info > .list-card-body > .list-card-pricebar .list-rent__unit,
body.site-theme-conversion .tp-home-new .tp-home-new__grid .property-card--top .list-rent__unit,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-rent__unit {
  color: #dc2626 !important;
  font-size: 0.62em !important;
  font-weight: 700 !important;
  margin-left: 1px;
}

body.site-theme-conversion .tp-home-new section#list.property-grid.tp-home-new__grid > .property-card.property-card--top > .list-card-info > .list-card-body > .list-card-pricebar .list-rent-suffix,
body.site-theme-conversion .tp-home-new .tp-home-new__grid .property-card--top .list-rent-suffix,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-rent-suffix {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

body.site-theme-conversion .tp-home-new section#list.property-grid.tp-home-new__grid > .property-card.property-card--top > .list-card-info > .list-card-body > .list-card-pricebar .list-mgmt,
body.site-theme-conversion .tp-home-new .tp-home-new__grid .property-card--top .list-mgmt,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-mgmt {
  color: #6b7280 !important;
  font-size: 0.68rem;
  margin-left: 4px;
  font-weight: 600;
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-meta-hero,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-address,
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-access {
  margin: 0 0 2px;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-meta-lbl {
  font-size: 0.65rem;
  color: #64748b;
  margin-right: 2px;
}

/* CTA: 下端に揃える */
body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-card-cta {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin-top: auto !important; /* これで下端に揃う */
  padding-top: 10px;
  gap: 6px !important;
}

body.site-theme-conversion section#list.tp-home-new__grid .property-card--top .list-cta {
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 8px;
  text-align: center;
}

/* PC: 4:3 は aspect-ratio に任せる（min-height で縦横比を崩さない） */


/* cache-bump 2026-08-04 formal-home-route */

