@charset "utf-8";
/* トップの物件情報ブロック（#home_pr）。
   ヘッダー（帯の色・PROPERTIES の Prata・写真の出現・MORE ボタン）は index.css の
   .top_list / .ca002 / .md_en / .btn001 をそのまま使うので、ここでは何も上書きしない。
   このファイルが持つのは「開いた中身のグリッド」と、下の並び順の固定だけ。 */

/* ── 既存ブロックの左右を明示クラスで固定 ──────────────────────────────
   index.css は .top_list:nth-child(even) で左右を振り分けている。物件情報を先頭に
   差し込むと以降の parity がずれて既存ブロックの左右が全部反転してしまう。かつ物件が
   0件だとブロック自体が消えるので、parity は「物件の有無」で変わってしまう。
   nth-child に頼らず、各 li の tl-left / tl-right で固定する。
   index.css と同じ詳細度で、後から読み込まれるので上書きできる。 */
#top_area #top_nav #top_nav_in .top_list.tl-left { text-align: left; }
#top_area #top_nav #top_nav_in .top_list.tl-right { text-align: right; }

/* ── 開いた中身 ── */
#home_pr .hb_wrap {
  padding: 54px 5% 44px;
  background: #fff;
  text-align: center;
}

/* フィルタタブ */
.hb_tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
}
.hb_tab {
  padding: 9px 26px;
  border: 1px solid #d8cfc0;
  background: #fff;
  color: #7a7266;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hb_tab:hover {
  border-color: #ab7f4e;
  color: #ab7f4e;
}
.hb_tab.is-active {
  background: #163051;
  border-color: #163051;
  color: #ab7f4e;
}

/* グリッド */
.hb_grid {
  list-style: none;
  padding: 0;
  margin: 0 auto 10px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  text-align: left;
  letter-spacing: normal;
}
.hb_card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hb_card_ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
}
.hb_card_ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hb_card a:hover .hb_card_ph img { transform: scale(1.06); }
.hb_noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
}
.hb_deal {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.hb_deal--rent { background: #4a7c9d; }
.hb_deal--sale { background: #ab7f4e; }
.hb_deal--closed { top: auto; bottom: 0; background: #c0392b; }
.hb_card_b { padding: 11px 3px 0; }
.hb_card_price {
  font-family: "Prata", serif;
  color: #ab7f4e;
  font-size: 1.05rem;
  margin: 0 0 5px;
}
.hb_card_title {
  font-size: 0.85rem;
  font-weight: normal;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* JS が表示件数を制御 */
.hb-hide { display: none !important; }
/* JS 無効時のフォールバック: PC 8件 */
#home_pr:not(.hb--js) .hb_grid > .hb_card:nth-child(n + 9) { display: none; }

@media screen and (max-width: 900px) {
  #home_pr .hb_wrap { padding: 40px 4% 32px; }
  .hb_tab { padding: 8px 20px; font-size: 0.82rem; }
  .hb_grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hb_card_price { font-size: 0.98rem; }
  /* JS 無効時のフォールバック: SP 4件 */
  #home_pr:not(.hb--js) .hb_grid > .hb_card:nth-child(n + 5) { display: none; }
}

/* ── ヒーローの CTA ボタン（#main_in、動画の上）──────────────────────
   letter-spacing を明示指定。#main 系は -0.4em の詰めを使う箇所があり、
   継承すると文字が重なるため。 */
#main_in .hero_btns {
  margin: 2.2rem 0 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
#main_in .hero_btn {
  display: inline-block;
  min-width: 172px;    /* fixed px, never %, so a stray mobile-rule match can't blow it up */
  flex: 0 0 auto;      /* don't let the flex row stretch the buttons */
  padding: 16px 36px;
  text-align: center;  /* centre the label inside the min-width box */
  background: #163051;                        /* solid navy — the warm sunset hero washes out a translucent button; a cool solid fill stays readable on any part of the photo */
  border: 1px solid rgba(171, 127, 78, 0.9);  /* brand-gold hairline */
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);  /* lift the buttons off the busy photo */
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
#main_in .hero_btn:hover {
  background: #ab7f4e;      /* fill with the brand gold */
  border-color: #ab7f4e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}
@media screen and (max-width: 768px) {
  #main_in .hero_btns { gap: 12px; }
  #main_in .hero_btn { min-width: 150px; padding: 14px 26px; font-size: 0.9rem; letter-spacing: 0.08em; }
}
