/* =============================================================
 * pages/house.css
 * 物件詳細ページ (シェアハウス詳細)
 * ============================================================= */

.house-detail {
  --house-side-w: 320px;
  color: var(--sc-text);
}

/* ───── 物件詳細 Hero
   - 物件詳細トップ / 下層ページで共通利用する淡いシアン帯
   - アイブロウにページ種別 + エリア / 最寄り駅 / 部屋数を整理
   ─────────────────────────────────────────── */
.house-hero {
  --hero-brand: #00afd5;
  --hero-brand-rgb: 0, 175, 213;
  --hero-accent: #58a9cd;
  position: relative;
  background:
    linear-gradient(135deg, rgba(var(--hero-brand-rgb), .12) 0%, rgba(255, 255, 255, .94) 44%, rgba(251, 242, 76, .08) 100%),
    #fbfeff;
  border-top: 1px solid rgba(var(--hero-brand-rgb), .12);
  border-bottom: 1px solid rgba(var(--hero-brand-rgb), .24);
  box-shadow: 0 18px 32px -30px rgba(15, 86, 110, .38);
  padding: var(--sp-6) 0 var(--sp-5);
  margin: 0 0 var(--sp-4);
  overflow: hidden;
}
.breadcrumb + .house-hero { margin-top: 0; }
.house-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hero-brand) 0%, var(--hero-brand) 68%, var(--hero-accent) 100%);
  pointer-events: none;
}
.house-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}
/* アクセント色は空室ステータス / ページ種別に合わせる */
.house-hero--vacancy-vacant { --hero-accent: #58a9cd; }
.house-hero--vacancy-soon   { --hero-accent: #f08c2a; }
.house-hero--vacancy-full   { --hero-accent: #999; }

/* アイブロウ (kicker + 区切り付メタ) */
.house-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sc-text-2);
  text-transform: uppercase;
}
.house-hero__kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px 8px;
  background: rgba(255, 255, 255, .82);
  color: #0788a6;
  border: 1px solid rgba(var(--hero-brand-rgb), .22);
  border-radius: var(--r-full);
  box-shadow: 0 6px 16px -14px rgba(0, 95, 120, .45);
  letter-spacing: 0;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  overflow: hidden;
}
.house-hero__kicker::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--hero-brand) 0%, var(--hero-accent) 100%);
}
.house-hero__kicker-meta {
  position: relative;
  padding-left: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--sc-text-2);
}
.house-hero__kicker-meta::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(23, 55, 72, .34);
}

/* 問い合わせ済バッジ (kicker 行の末尾に並ぶ。一覧 .bld-card__flag--inquired と同色) */
.house-hero__inquired-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5cb878 0%, #44a162 100%);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 1px 3px rgba(68,161,98,.4);
  /* meta の "・" ドットや先頭余白を打ち消す */
  text-transform: none;
}
.house-hero__inquired-badge > i { font-size: 12px; }

/* メインタイトル */
.house-hero__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0;
  color: #173748;
}
@media (min-width: 768px) {
  .house-hero__title { font-size: 2.35rem; }
}
.house-hero__catch {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--sc-text-2);
  line-height: 1.6;
  max-width: 60ch;
}

/* メタチップ列 */
.house-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: var(--sp-3);
}
.house-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sc-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
}
.house-hero__chip > i { font-size: 11px; }
.house-hero__chip--vacancy {
  border: 0;
  color: #fff;
  padding: 5px 11px;
}
/* 一覧 .bld-card__vacancy と同じ色: 空室あり=水色 / 空室予定=橙 / 満室=灰 */
.house-hero__chip--vacancy.is-vacant { background: #58a9cd; }
.house-hero__chip--vacancy.is-soon   { background: #f08c2a; }
.house-hero__chip--vacancy.is-full   { background: #999; }
.house-hero__chip-dot { font-size: 7px !important; opacity: .9; }
.house-hero__chip--price {
  background: var(--sc-bg-alt);
  border-color: transparent;
  color: var(--sc-text);
}
.house-hero__chip--price > i { color: #c0950b; }
.house-hero__chip--rank { color: #fff; border: 0; padding: 5px 11px; }
.house-hero__chip--rank > i { color: inherit; opacity: .95; }
.house-hero__chip--rank-medal {
  background: linear-gradient(135deg, #f5c542 0%, #d4a017 50%, #8a6100 100%);
  color: #3a2700;
}
.house-hero__chip--rank-aqua {
  background: linear-gradient(135deg, #5abed6 0%, #2196c2 60%, #144b6d 100%);
}
.house-hero__chip--rank-black {
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
  border: 1px solid rgba(255, 212, 81, .4);
}
.house-hero__chip--rank-black { color: #ffd451; }

/* アクション (PC は右寄せ風、SP は横一列) */
.house-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: var(--sp-3);
}
.house-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.house-hero__btn:active { transform: translateY(1px); }
.house-hero__btn--clip {
  background: #fff;
  border-color: var(--sc-border);
  color: #1c8fbf;
}
.house-hero__btn--clip:hover {
  background: #f6fbfd; border-color: #58a9cd;
  box-shadow: 0 2px 6px rgba(28, 143, 191, .15);
}
.house-hero__btn--clip > .house-hero__btn-label--on { display: none; }
.house-hero__btn--clip.is-clipped {
  background: #ffd451;
  color: #5a3d00;
  border-color: #f0c878;
  box-shadow: 0 2px 6px rgba(245, 197, 66, .45);
}
.house-hero__btn--clip.is-clipped > .house-hero__btn-label--off { display: none; }
.house-hero__btn--clip.is-clipped > .house-hero__btn-label--on  { display: inline; }
.house-hero__btn--inquiry {
  flex: 1 1 220px;
  background: #44a162;
  color: #fff;
  box-shadow: 0 4px 12px rgba(68, 161, 98, .35);
}
.house-hero__btn--inquiry:hover {
  background: #389056; color: #fff;
  box-shadow: 0 6px 16px rgba(68, 161, 98, .45);
}

/* SP 調整: kicker のサイズ & 余白を詰める */
@media (max-width: 767px) {
  .house-hero { padding: var(--sp-5) 0 var(--sp-4); }
  .house-hero__inner { gap: var(--sp-1); }
  .house-hero__eyebrow { font-size: 10px; gap: 5px 9px; }
  .house-hero__kicker {
    min-height: 28px;
    font-size: 9px;
    padding: 5px 11px 7px;
  }
  .house-hero__kicker::before {
    left: 10px;
    right: 10px;
    bottom: 5px;
  }
  .house-hero__btn--inquiry { flex: 1 1 100%; }
}

.house-detail__body { padding-bottom: var(--sp-10); }

/* ───── アクセスランキング キラキラバナー (物件詳細トップ専用) ─────
   1〜3 = 金/銀/銅メダル / 4〜10 = 水色 / 11〜15 = 黒
   メダルグラデ + 反射 shine + pop 登場アニメで「ランキング入り」を派手に訴求。
   下層 (問い合わせ等) のミニマル kicker Hero では使わない。 */
.house-rank-banner {
  --rb-fg: #fff;
  --rb-bg: #333;
  --rb-edge: #000;
  --rb-shine: rgba(255, 255, 255, .35);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 8px 18px 8px 14px;
  background: linear-gradient(135deg, var(--rb-bg), var(--rb-edge));
  color: var(--rb-fg);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, .35),
    inset 0 -3px 6px rgba(0, 0, 0, .25),
    inset 0 3px 6px var(--rb-shine);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  overflow: hidden;
  isolation: isolate;
  animation: house-rank-pop .55s cubic-bezier(.2, .8, .25, 1.1) both;
}
.house-rank-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: house-rank-shine 4.5s ease-in-out 1s infinite;
  pointer-events: none;
}
.house-rank-banner__label {
  font-size: var(--fs-xs);
  opacity: .92;
  font-weight: 700;
}
.house-rank-banner__num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.house-rank-banner__num-prefix,
.house-rank-banner__num-suffix {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.house-rank-banner__num-value {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0;
  font-feature-settings: "tnum";
}
.house-rank-banner__icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
/* 1〜3 位: 金 / 銀 / 銅メダル */
.house-rank-banner--medal { padding: 10px 22px 10px 18px; }
.house-rank-banner--medal .house-rank-banner__num-value { font-size: 2rem; }
.house-rank-banner--rank-1 {
  --rb-bg: #fff3a6; --rb-edge: #8a6100; --rb-fg: #5a3d00;
  --rb-shine: rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, #fff3a6 0%, #f5c542 38%, #d4a017 65%, #8a6100 100%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .35);
}
.house-rank-banner--rank-2 {
  --rb-bg: #f7f7f7; --rb-edge: #6b6b6b; --rb-fg: #3a3a3a;
  --rb-shine: rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, #f7f7f7 0%, #d0d0d0 38%, #a0a0a0 65%, #6b6b6b 100%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .35);
}
.house-rank-banner--rank-3 {
  --rb-bg: #ffd6aa; --rb-edge: #7a3a17; --rb-fg: #3d1e08;
  --rb-shine: rgba(255, 255, 255, .5);
  background: linear-gradient(135deg, #ffd6aa 0%, #e8905c 38%, #c97a3f 65%, #7a3a17 100%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .3);
}
/* 4〜10 位: 水色グラデ */
.house-rank-banner--aqua {
  --rb-fg: #fff;
  --rb-shine: rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, #7fdbff 0%, #5abed6 35%, #2196c2 70%, #144b6d 100%);
}
/* 11〜15 位: 黒/ガンメタル */
.house-rank-banner--black {
  --rb-fg: #fff;
  --rb-shine: rgba(255, 255, 255, .3);
  background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #0d0d0d 100%);
  border: 1px solid #ffd45166;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, .45),
    inset 0 -3px 6px rgba(0, 0, 0, .35),
    inset 0 1px 2px rgba(255, 255, 255, .2),
    0 0 0 2px rgba(255, 212, 81, .25);
}
.house-rank-banner--black .house-rank-banner__num-value { color: #ffd451; }

@keyframes house-rank-pop {
  from { transform: translateY(8px) scale(.94); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.03); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes house-rank-shine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .house-rank-banner,
  .house-rank-banner::before { animation: none; }
}

/* ───── Hero 特筆事項バッジ列 (ランクバナー + 現場発信中バッジを横並び) ───── */
.house-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: var(--sp-3);
}
.house-hero__badges > .house-rank-banner { margin-top: 0; }

/* ───── 現場発信中バッジ (一覧 .bld-card__flag--active と同色)
   Hero 用にサイズを少し大きく、件数メタも併記して説得力を上げる ───── */
.house-active-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 60%, #c93d3d 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  box-shadow:
    0 6px 14px rgba(201, 61, 61, .35),
    inset 0 -2px 4px rgba(0, 0, 0, .18),
    inset 0 2px 4px rgba(255, 255, 255, .25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  overflow: hidden;
  isolation: isolate;
  animation: house-active-pop .55s cubic-bezier(.2, .8, .25, 1.1) both;
}
.house-active-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: house-active-shine 4.5s ease-in-out 1.4s infinite;
  pointer-events: none;
}
.house-active-badge__icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}
.house-active-badge__label {
  font-size: var(--fs-sm);
  font-weight: 800;
}
.house-active-badge__meta {
  font-size: var(--fs-xs);
  opacity: .92;
  font-weight: 700;
  letter-spacing: .02em;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .35);
}
@keyframes house-active-pop {
  from { transform: translateY(8px) scale(.94); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.03); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes house-active-shine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .house-active-badge,
  .house-active-badge::before { animation: none; }
}

/* タイムラインヘッダ: Hero のバッジを裏付ける件数メタ
   親 .house-block__title が flex-wrap になったので margin-left は不要 (gap で吸収)。 */
.house-block__active-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(238, 90, 82, .35);
}
.house-block__active-meta > i { font-size: 11px; }

/* ───── キャッチ + クリップ ───── */
.house-catch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--sc-bg-alt);
  border-radius: var(--r-md);
}
.house-catch__text {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--sc-accent-d);
  flex: 1;
  min-width: 0;
}
/* キャッチ右のクリップボタン: 一覧 .bld-card__clip と同じ 52px 角丸ピル */
.house-catch__clip {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  border: 0;
  cursor: pointer;
  color: #1c8fbf;
  line-height: 1;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.house-catch__clip > i { font-size: 20px; }
.house-catch__clip-label { font-size: 10px; margin-top: 2px; font-weight: 700; }
.house-catch__clip:hover { transform: translateY(-1px); background: #fff; }
.house-catch__clip.is-clipped {
  background: #ffd451;
  color: #5a3d00;
  box-shadow: 0 2px 6px rgba(245, 197, 66, .5);
}

/* ───── 空室 + 賃料 ───── */
.house-room-summary {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-3);
}
.house-vacancy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}
.house-vacancy--vacant { background: var(--sc-vacant); }
.house-vacancy--soon   { background: var(--sc-soon); }
.house-vacancy--full   { background: var(--sc-full); }
.house-prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: baseline;
  font-size: var(--fs-sm);
}
.house-prices__row { display: inline-flex; align-items: center; gap: 4px; }
/* 室種ピル: 一覧カード (.bld-card__price-tag) と同じ配色 (個室=黄 / ドミ=水色) */
.house-prices__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}
.house-prices__tag--private { background: #ffd451; color: #5a3d00; }
.house-prices__tag--dorm    { background: #9bd1e3; color: #0e4a5e; }
.house-prices__amount { font-weight: 700; font-size: var(--fs-md); }
.house-prices__rooms  { color: var(--sc-text-2); }

.house-vacancy-remarks {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: #fffbe5;
  color: var(--sc-text);
  font-size: var(--fs-sm);
  border-left: 4px solid var(--sc-primary-d);
}
.house-vacancy-remarks--full { border-left-color: var(--sc-full); }

/* ───── 入居条件 ───── */
.house-conditions { margin-bottom: var(--sp-4); }
.house-conditions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.house-conditions__list li {
  text-align: center;
  padding: 8px 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  background: #fff;
}
.house-conditions__list .is-ok-man     { color: var(--sc-text);       border-color: #58a9cd; }
.house-conditions__list .is-ok-woman   { color: var(--sc-text);       border-color: #e85d75; }
.house-conditions__list .is-ok-foreign { color: var(--sc-text);       border-color: #f5c542; }
.house-conditions__list .is-ng         { color: var(--sc-text-3);     border-color: var(--sc-border); text-decoration: line-through; }
.house-conditions__note {
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
}

/* ───── 特徴タグチップ ───── */
.house-tags { margin-bottom: var(--sp-4); }
.house-tags__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.house-tags__chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--sc-accent-d);
  background: var(--sc-accent-l);
  border: 1px solid var(--sc-accent);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.house-tags__chip:hover {
  background: var(--sc-accent);
  color: #fff;
  text-decoration: none;
}
.house-tags__more-item[hidden] { display: none; }
.house-tags__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 4px 12px;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sc-accent-d);
  background: #fff;
  border: 1px solid var(--sc-accent);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.house-tags__more:hover {
  background: var(--sc-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 175, 213, .18);
}

@media (max-width: 767px) {
  .house-tags { margin-bottom: var(--sp-3); }
  .house-tags__list {
    gap: 7px 6px;
    align-items: flex-start;
  }
  .house-tags__item.is-mobile-hidden { display: none; }
  .house-tags__hash { display: none; }
  .house-tags__chip,
  .house-tags__more {
    min-height: 29px;
    padding: 5px 12px;
    line-height: 1.3;
  }
}

/* ───── アクセステーブル ───── */
.house-info-table {
  width: 100%;
  margin: 0 0 var(--sp-5);
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.house-info-table th,
.house-info-table td {
  padding: 8px 12px;
  border: 1px solid var(--sc-border);
  text-align: left;
  vertical-align: top;
}
.house-info-table th {
  background: var(--sc-bg-alt);
  width: 6em;
  font-weight: 600;
  color: var(--sc-text-2);
  white-space: nowrap;
}

/* ───── ギャラリー (大画像 + サムネ列、スワイプ/ドラッグ対応) ───── */
.house-gallery { margin-bottom: var(--sp-5); }

/* ステージ: 1.2 枚表示 (メイン1枚 + 右に次画像の頭がチラ見え)。
   内部の track を translateX で左右にずらす */
.house-gallery {
  --gal-slide-width: 84%;   /* 1.2 枚見せ: 残り 16% で次画像の頭を見せる */
  --gal-slide-gap:   6px;
}
@media (min-width: 768px) {
  .house-gallery { --gal-slide-width: 80%; }
}
.house-gallery__stage {
  position: relative;
  width: 100%;
  /* 高さ控えめ + 横長寄り (建物外観や横長カットも自然に映る比率) */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sc-bg-alt);
}
.house-gallery--room .house-gallery__stage { aspect-ratio: 16 / 9; }
.house-gallery__track {
  display: flex;
  gap: var(--gal-slide-gap);
  width: 100%;
  height: 100%;
  transition: none;
  will-change: transform;
  /* ドラッグでスワイプする時にブラウザのテキスト/画像選択モードに入らないよう抑止
     - user-select: none でテキスト選択不可
     - cursor: grab で操作可能であることを明示 (アクティブドラッグ中は is-grabbing で grabbing) */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-y;        /* 縦スクロールは許可、横はカスタムスワイプ JS が処理 */
}
.house-gallery__track.is-grabbing { cursor: grabbing; }
.house-gallery__track.is-animating {
  transition: transform .25s ease;
}
.house-gallery__slide {
  flex: 0 0 var(--gal-slide-width);
  height: 100%;
  margin: 0;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sc-bg-alt);
  user-select: none;
  -webkit-user-select: none;
}
.house-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  /* 画像のドラッグ&ドロップ (画像選択 / 別タブで開く) を抑止 */
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
/* キャプション: 大画像の左上に重ねる */
.house-gallery__caption {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  max-width: calc(100% - var(--sp-4));
  padding: 4px 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-sm);
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

/* カウンタ (右下) */
.house-gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
}

/* サムネ列: 横スクロール (ドラッグ/スワイプ対応)、選択中は外枠ハイライト */
.house-gallery__thumbs {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 4px 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  cursor: grab;
  user-select: none;
}
.house-gallery__thumbs.is-grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}
.house-gallery__thumbs.is-dragging button { pointer-events: none; }
.house-gallery__thumb {
  flex: 0 0 96px;
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--sc-bg-alt);
  transition: border-color .15s ease, transform .15s ease;
}
.house-gallery__thumb button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.house-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.house-gallery__thumb.is-active {
  border-color: var(--sc-accent);
  transform: translateY(-1px);
}
.house-gallery__thumb:hover { border-color: var(--sc-accent-d); }

@media (min-width: 768px) {
  .house-gallery__thumb { flex: 0 0 120px; }
}

/* ───── 二段組レイアウト ───── */
.house-two-col { display: block; }
/* grid item のデフォルト `min-width:auto` だと、内部の overflow:auto コンテンツ
   (gallery のサムネ列など) に押し広げられてカラム幅が崩れる。
   両カラムに min-width:0 を効かせて grid track 幅を厳守させる。 */
.house-two-col__main { min-width: 0; }
.house-two-col__side { min-width: 0; }
@media (min-width: 992px) {
  .house-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--house-side-w);
    gap: var(--sp-6);
    align-items: start;
  }
  .house-two-col__side { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
}

/* 共通 block */
.house-block {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
}
.house-block__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--sc-primary);
  /* 物件名 + 現場発信中バッジが横幅を超えた場合に折り返せるよう flex 化。
     iPhone 13 mini など狭幅で「現場発信中・直近30日 N件」が右端で見切れる事象の対策。 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
/* タイトル本文 (物件名 + のスナップタイムライン) のラッパ。
   flex-shrink でバッジが収まるよう詰められる。長い物件名は内部で折り返す。 */
.house-block__title-text {
  flex: 1 1 auto;
  min-width: 0;
}
/* SP: バッジは確実に次の行に落とす (flex-basis 100% で row を強制改行)。
   inner は inline-flex のままなので pill 形状は維持される。 */
@media (max-width: 767.98px) {
  .house-block__title { gap: 4px 0; }
  .house-block__title-text { flex-basis: 100%; }
  .house-block__active-meta {
    flex-basis: auto;
    align-self: flex-start;
  }
}
.house-block__more {
  text-align: right;
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
}
.house-block__more a { color: var(--sc-accent-d); font-weight: 600; }

/* キャンペーン: 外側のカード枠は使わず、見出し帯 + タブナビ + 既存カード本体で構成する。 */
.house-block--campaign {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: var(--sp-6) 0;
}
.house-campaign-heading {
  margin: 0 0 var(--sp-3);
  padding: 14px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 213, .9) 0%, rgba(255, 255, 255, .96) 100%);
  border-top: 6px solid var(--sc-primary);
  border-bottom: 4px solid #e0457b;
}
.house-campaign-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 3px 12px;
  border: 1px solid var(--sc-primary-d);
  border-radius: 999px;
  background: #fff;
  color: #9a8700;
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1;
}
.house-block--campaign .house-block__title {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border-bottom: 0;
  color: #d93d73;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.3;
}
.house-campaign-heading__lead {
  margin: 0;
  color: var(--sc-text);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.house-campaign-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.house-campaign {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
}

/* ===== 複数キャンペーン時のスライダー =====
   .house-campaign-list (= ビューポート: overflow hidden で動く部分をマスク)
     └ .house-campaign-track  (= 横並びのトラック: translateX で動く)
         └ .house-campaign × N  (= 各スライド。100% 幅) */
.house-campaign-list[data-house-campaign-tabs] {
  overflow: hidden;
  position: relative;
}
.house-campaign-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  transform: translateX(0%);
  transition: transform .4s cubic-bezier(.2, .8, .25, 1);
  will-change: transform;
}
.house-campaign-list[data-house-campaign-tabs] .house-campaign {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
/* prefers-reduced-motion: アニメーションを無効化 (JS 側で auto 切替も止めている) */
@media (prefers-reduced-motion: reduce) {
  .house-campaign-track { transition: none; }
}
/* キャンペーン画像 (16:9) */
.house-campaign__photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sc-bg-alt);
}
.house-campaign__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ヘッダ (ピンク→オレンジのグラデ) */
.house-campaign__head {
  background: linear-gradient(135deg, #e0457b 0%, #f07030 100%);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
}
.house-campaign__title {
  margin: 0 0 4px;
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.house-campaign__title i { font-size: .9em; opacity: .92; }
.house-campaign__period {
  margin: 0;
  font-size: var(--fs-xs);
  opacity: .92;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 本文 */
.house-campaign__body {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
/* 詳細行 (チェックアイコン付き) */
.house-campaign__detail-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.house-campaign__detail-line {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--sc-text);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.house-campaign__detail-line i {
  color: #e0457b;
  font-size: .9em;
  flex-shrink: 0;
}
/* 適用条件ブロック */
.house-campaign__cond-block {
  background: var(--sc-bg-alt);
  border: 1px solid var(--sc-border);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.house-campaign__cond-label {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sc-text-2);
  letter-spacing: .02em;
}
.house-campaign__cond-text {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--sc-text);
  line-height: 1.5;
}
.house-campaign__cond-other {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
  line-height: 1.5;
}
/* フッター (期間再掲 + 告知) */
.house-campaign__footer {
  margin-top: auto;
  border-top: 1px solid var(--sc-border);
  padding-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.house-campaign__footer-period {
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.house-campaign__footer-note {
  font-size: var(--fs-xs);
  color: #e0457b;
  font-weight: 600;
}

/* キャンペーンタブ (複数キャンペーン時のみ表示)。
   セクション見出しの直下にタブ一覧 → パネル (article.house-campaign) を切替表示。
   タブには cp_title を表示し、JS が 3 秒ごとに切替 (hover/focus 一時停止)。 */
.house-campaign-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 var(--sp-3);
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-bottom: 2px solid var(--sc-primary);
}
.house-campaign-tablist::-webkit-scrollbar {
  display: none;
}
.house-campaign-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  color: var(--sc-text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.house-campaign-tab > i { color: #d93d73; flex-shrink: 0; }
.house-campaign-tab__label {
  /* タイトルが長い場合は 1 行省略 (PC は最大 220px、SP は短め) */
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.house-campaign-tab:hover {
  color: #d93d73;
  background: rgba(216, 61, 115, .06);
  border-color: rgba(216, 61, 115, .25);
}
.house-campaign-tab:focus-visible {
  outline: 2px solid #d93d73;
  outline-offset: 2px;
}
.house-campaign-tab.is-active {
  color: #d93d73;
  border-color: rgba(216, 61, 115, .35);
  background: #fff6fa;
  box-shadow: inset 0 -3px 0 #d93d73;
}
/* SP では縦並び・各タブ 100% 幅 (折り返してチップが分断するより読みやすい)。
   アクティブインジケータも縦並びに合わせて左ボーダーに切り替える */
@media (max-width: 767px) {
  .house-block--campaign {
    margin: var(--sp-5) 0;
  }
  .house-campaign-heading {
    margin-inline: calc(var(--sp-4) * -1);
    padding: 12px var(--sp-4) 14px;
  }
  .house-block--campaign .house-block__title {
    font-size: 1.35rem;
  }
  .house-campaign-tablist {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    overflow: visible;
    border-top: 1px solid rgba(216, 61, 115, .12);
    border-bottom: 0;
  }
  .house-campaign-tab {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(216, 61, 115, .15);
    border-left: 3px solid transparent;
    font-size: var(--fs-sm);
    justify-content: flex-start;
    text-align: left;
  }
  .house-campaign-tab.is-active {
    border-bottom-color: rgba(216, 61, 115, .15);
    border-left-color: #d93d73;
    background: linear-gradient(90deg, rgba(216, 61, 115, .08) 0%, rgba(216, 61, 115, 0) 100%);
    box-shadow: none;
  }
  .house-campaign-tab__label {
    max-width: none;
    flex: 1 1 auto;
  }
}

/* PC かつ画像ありの場合のみ: ヘッダ全幅 + 画像左・本文右の 2 カラムレイアウト
   画像なし / SP はデフォルト (縦積み) のまま */
@media (min-width: 768px) {
  .house-campaign:has(.house-campaign__photo) {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    grid-template-areas:
      "head  head"
      "photo body";
  }
  .house-campaign:has(.house-campaign__photo) .house-campaign__head  { grid-area: head; }
  .house-campaign:has(.house-campaign__photo) .house-campaign__photo {
    grid-area: photo;
    aspect-ratio: auto;
    height: 100%;
  }
  .house-campaign:has(.house-campaign__photo) .house-campaign__body  { grid-area: body; }
}

/* ───── タイムライン (X 風) ───── */
.house-block--timeline { padding-top: var(--sp-3); }
/* タイムラインは枠固定の縦スクロール領域。SP は 60vh、PC は 640px を上限とする。
   オーバースクロール伝播を抑え、ページ自体のスクロールと干渉しないようにする */
.house-timeline {
  list-style: none;
  margin: 0;
  padding: 0 var(--sp-2) 0 0;
  max-height: min(640px, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
/* SP: タイムラインの縦スクロール領域の上限を viewport 中央くらいに留めて、
   下に「次セクション (入居者データ等) がちょっと覗く」状態を作る。
   60vh は SP では画面いっぱいに見えてしまい "永久に続くタイムライン" 感が出るため、
   約 50vh + アバター・余白で実効 ~50vh に抑える。 */
@media (max-width: 767px) {
  .house-timeline { max-height: 50vh; }
}
/* スクロール枠と分かるよう、上下にフェードのヒント */
.house-block--timeline {
  position: relative;
}
.house-block--timeline::before,
.house-block--timeline::after {
  content: '';
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  height: 16px;
  pointer-events: none;
  z-index: 1;
}
.house-block--timeline::before {
  top: calc(var(--sp-4) + 36px); /* タイトルの直下から */
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0));
}
.house-block--timeline::after {
  bottom: var(--sp-5);
  background: linear-gradient(to top, #fff, rgba(255,255,255,0));
}
.house-timeline__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--sc-border);
}
.house-timeline__item:first-child { padding-top: 0; }
.house-timeline__item:last-child { border-bottom: none; padding-bottom: 0; }
.house-timeline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sc-primary);
  color: var(--sc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.house-timeline__content { min-width: 0; }
.house-timeline__head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: var(--fs-sm);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.house-timeline__author { font-weight: 700; color: var(--sc-text); }
.house-timeline__sep    { color: var(--sc-text-3); }
.house-timeline__time   { color: var(--sc-text-3); font-size: var(--fs-xs); }
.house-timeline__time-link { color: inherit; text-decoration: none; }
.house-timeline__time-link:hover { color: var(--sc-accent-d); text-decoration: underline; }
.house-timeline__body {
  margin: 0;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--sc-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.house-timeline__body + .house-timeline__media { margin-top: var(--sp-2); }
.house-ogp + .house-timeline__media { margin-top: var(--sp-3); }
.house-timeline__media {
  position: relative;
  display: grid;
  gap: 2px;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 520px;
}
.house-timeline__media--1 { grid-template-columns: 1fr; }
.house-timeline__media--2 { grid-template-columns: 1fr 1fr; }
.house-timeline__media--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.house-timeline__media--3 .house-timeline__media-cell:first-child { grid-row: span 2; }
.house-timeline__media--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.house-timeline__media-cell {
  position: relative;
  display: block;
  background: var(--sc-bg-alt);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.house-timeline__media--1 .house-timeline__media-cell { aspect-ratio: 16 / 9; }
.house-timeline__media-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.house-timeline__media-cell:hover img { transform: scale(1.03); }
.house-timeline__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 2rem;
  pointer-events: none;
}
.house-timeline__media-more {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  pointer-events: none;
}
button.house-timeline__media-cell {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.house-timeline__body a {
  color: var(--sc-accent-d);
  text-decoration: underline;
  word-break: break-all;
}
.house-timeline__body a:hover { color: var(--sc-accent); }

/* ───── OGP リンクカード ───── */
.house-ogp {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  max-width: 520px;
  transition: background .15s ease, border-color .15s ease;
}
.house-ogp:hover {
  background: var(--sc-bg-alt);
  border-color: var(--sc-accent);
  text-decoration: none;
}
.house-ogp__thumb {
  flex: 0 0 120px;
  background: var(--sc-bg-alt);
  display: block;
}
.house-ogp__thumb img {
  width: 120px;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  display: block;
}
.house-ogp__body {
  flex: 1;
  min-width: 0;
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.house-ogp__host {
  font-size: var(--fs-xs);
  color: var(--sc-text-3);
  text-transform: lowercase;
}
.house-ogp__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sc-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.house-ogp__desc {
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 480px) {
  .house-ogp__thumb { flex: 0 0 90px; }
  .house-ogp__thumb img { width: 90px; }
}

/* ───── ライトボックス モーダル ───── */
/* バックドロップは ::before に分離し、stage は常に opacity:1 のまま zoom させる
   (コンテナ側で opacity を 0→1 にフェードすると stage の FLIP が暗闇に隠れて
    "にゅっと拡大" の印象が弱まるため、stage は最初から完全に見える状態にする) */
.house-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .3s;
}
.house-lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.house-lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.house-lightbox.is-open::before { opacity: 1; }
/* `hidden` 属性は表示後 JS で外して transition を効かせる。
   未対応 (JS無効) フォールバックとしては隠しておく */
.house-lightbox[hidden] { display: none; }
.house-lightbox__stage {
  margin: 0;
  position: relative;
  z-index: 1;             /* ::before の背景より上に */
  width: min(100vw, 1200px);
  max-width: 100%;
  height: 86vh;
  overflow: hidden;
  /* FLIP ズーム: JS が transform を直接設定 / 解除する。
     transform-origin は左上に固定し、translate + scale で
     クリックされたサムネ位置 → ステージ位置へのアニメを実現する。
     transition は JS 側で動的に有効/無効を切り替え (完了後にリセット)。 */
  transform-origin: 0 0;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .house-lightbox__stage { transition: none !important; }
}
.house-lightbox__track {
  display: flex;
  height: 100%;
  width: 100%;
  /* JS で translateX を更新。is-animating の時だけアニメ */
  transition: none;
}
.house-lightbox__track.is-animating {
  transition: transform .3s ease;
}
.house-lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.house-lightbox__media {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  background: #000;
  border-radius: var(--r-sm);
}
.house-lightbox__close,
.house-lightbox__nav {
  position: absolute;
  z-index: 2;             /* ::before / stage より上 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .15s ease;
}
.house-lightbox__close:hover,
.house-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.house-lightbox__close { top: 16px; right: 16px; }
/* 前/次ボタンの位置:
   ─ 横:  ボタン同士の間隔を「最大 900px 程度」に絞り、メディアに近い位置へ寄せる。
          stage の最大幅 (1200px) より狭い "操作ゾーン" を別に持たせるイメージ。
          viewport が 900px 未満では max() の 16px が採用されほぼ画面端。
   ─ 縦:  stage は高さ 86vh で中央配置 → 下端は 7vh。
          そこから 16px 上 = bottom: calc(7vh + 16px)。
          縦長 SP 端末 (PC ブラウザの SP モード等) でも media に近い位置にとどまる。 */
.house-lightbox__nav--prev {
  left:   max(16px, calc((100vw - 900px) / 2 + 16px));
  bottom: calc(7vh + 16px);
}
.house-lightbox__nav--next {
  right:  max(16px, calc((100vw - 900px) / 2 + 16px));
  bottom: calc(7vh + 16px);
}
.house-lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--fs-xs);
  background: rgba(255,255,255,.12);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
@media (max-width: 480px) {
  .house-lightbox__close,
  .house-lightbox__nav { width: 38px; height: 38px; font-size: 1.1rem; }
  .house-lightbox__close { top: 8px; right: 8px; }
  /* SP は viewport 幅 < 900px なので max() の 8px 側が採用される (= ほぼ画面端 8px) */
  .house-lightbox__nav--prev { left:  max(8px, calc((100vw - 900px) / 2 + 8px)); }
  .house-lightbox__nav--next { right: max(8px, calc((100vw - 900px) / 2 + 8px)); }
}

/* ───── 入居者データ: ドーナツチャート ───── */
.house-tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.house-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-3);
  background: var(--sc-bg-alt);
  border-radius: var(--r-md);
}
.house-donut__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sc-text-2);
  margin: 0 0 var(--sp-2);
}
.house-donut__chart {
  width: 140px; height: 140px;
  margin: 0 auto;
}
.house-donut__svg { width: 100%; height: 100%; display: block; }
.house-donut__ring {
  stroke: rgba(0,0,0,.06);
  stroke-width: 6;
}
.house-donut__center {
  font-size: 6px;
  font-weight: 700;
  fill: var(--sc-text);
}
.house-donut__legend {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
}
.house-donut__legend li { display: inline-flex; align-items: center; gap: 4px; }
.house-donut__legend strong { color: var(--sc-text); font-weight: 700; margin-left: 2px; }
.house-donut__sw {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--sc-text-3);   /* フォールバック (JS off 時) */
}

/* ───── 入居者データ: 段階バッジ (パーティ・距離感) ───── */
.house-tenant-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .house-tenant-pills { grid-template-columns: 1fr 1fr; }
}
.house-pill {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.house-pill__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sc-text-2);
}
.house-pill__label .bi { color: var(--sc-accent-d); }
.house-pill__scale {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}
.house-pill__scale li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  background: var(--sc-bg-alt);
  color: var(--sc-text-3);
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.house-pill__scale li.is-active {
  background: var(--sc-primary);
  color: var(--sc-text);
  border-color: var(--sc-primary-d);
  box-shadow: 0 2px 6px rgba(228, 214, 42, .35);
}
.house-pill__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-text-2);
}
.house-pill__scale li.is-active .house-pill__step {
  background: var(--sc-text);
  color: var(--sc-primary);
}
.house-pill__step-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.house-pill__value {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  background: var(--sc-accent-l);
  color: var(--sc-accent-d);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* 部屋情報 */
.house-room { display: flex; flex-direction: column; gap: var(--sp-3); }
.house-room__noimage {
  flex: 1;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--sc-bg-alt);
  font-size: 3rem; color: var(--sc-text-3);
  border-radius: var(--r-md);
}
.house-room__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.house-room__table th, .house-room__table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--sc-border);
  text-align: left;
}
.house-room__table th { width: 7em; color: var(--sc-text-2); background: var(--sc-bg-alt); font-weight: 600; }
.house-room__explain h3 {
  font-size: var(--fs-sm);
  margin: 0 0 6px;
  color: var(--sc-accent-d);
}
.house-room__explain p { margin: 0; font-size: var(--fs-sm); }

/* 詳細情報 */
.house-sub + .house-sub { margin-top: var(--sp-4); }
.house-sub h3 {
  font-size: var(--fs-sm);
  margin: 0 0 6px;
  padding: 4px 10px;
  background: var(--sc-bg-alt);
  border-left: 4px solid var(--sc-accent);
  font-weight: 700;
}
.house-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.house-detail-table th, .house-detail-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--sc-border);
  text-align: left;
  vertical-align: top;
}
.house-detail-table th {
  width: 7em;
  color: var(--sc-text-2);
  font-weight: 600;
  white-space: nowrap;
}

/* ───── 右サイドバー ───── */
.house-contact-box {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.house-contact-box__title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-base);
  font-weight: 700;
}
.house-contact-box .btn { margin-bottom: var(--sp-2); }

/* PC サイドバー専用クリップボタン (SP は bottombar に同等のため非表示)
   - 通常: 白背景 + paperclip 水色 + 細枠
   - クリップ済 (.is-clipped): 黄色塗りつぶし + ラベル切替 */
.house-contact-clip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: var(--sp-2);
  padding: 10px 14px;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  background: #fff;
  color: #1c8fbf;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}
.house-contact-clip > i { font-size: 18px; line-height: 1; }
.house-contact-clip:hover {
  transform: translateY(-1px);
  background: #f6fbfd;
  border-color: #58a9cd;
  box-shadow: 0 2px 6px rgba(28, 143, 191, .18);
}
.house-contact-clip:active { transform: translateY(0); }
.house-contact-clip__label--on { display: none; }
.house-contact-clip.is-clipped {
  background: #ffd451;
  color: #5a3d00;
  border-color: #f0c878;
  box-shadow: 0 2px 6px rgba(245, 197, 66, .5);
}
.house-contact-clip.is-clipped .house-contact-clip__label--off { display: none; }
.house-contact-clip.is-clipped .house-contact-clip__label--on  { display: inline; }
/* SP は bottombar 中央寄りクリップボタンと重複するので非表示 */
@media (max-width: 767px) {
  .house-contact-clip { display: none; }
}
.house-contact-tel {
  display: block;
  text-align: center;
  margin-bottom: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid var(--sc-border);
  border-radius: var(--r-md);
  background: var(--sc-bg-alt);
  color: var(--sc-text);
}
.house-contact-tel:hover { text-decoration: none; background: #fff; border-color: var(--sc-primary); }
.house-contact-tel__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--sc-text-2);
}
.house-contact-tel__num {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: .04em;
}
.house-contact-tel small { display: block; color: var(--sc-text-3); font-size: var(--fs-xs); }

.house-side-block {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.house-side-block__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sc-primary);
}
.house-side-block__estate { margin: 0 0 4px; font-weight: 700; }
.house-side-block__catch  { margin: 0 0 4px; font-size: var(--fs-xs); color: var(--sc-accent-d); }
.house-side-block__exp    { margin: 0; font-size: var(--fs-xs); color: var(--sc-text-2); line-height: var(--lh-base); }
.house-side-block__more   { text-align: right; margin: var(--sp-2) 0 0; font-size: var(--fs-xs); }

/* 他の物件 */
.house-another-list { list-style: none; margin: 0; padding: 0; }
.house-another-list__item { border-bottom: 1px solid var(--sc-border); }
.house-another-list__item:last-child { border-bottom: none; }
.house-another-list__item a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: var(--sp-2) 0;
  color: var(--sc-text);
}
.house-another-list__item a:hover { text-decoration: none; background: var(--sc-bg-alt); }
.house-another-list__thumb {
  display: block;
  width: 80px; height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--sc-bg-alt);
}
.house-another-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-another-list__thumb .no-image {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--sc-text-3); font-size: 1.6rem;
}
.house-another-list__body strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.house-another-list__catch  { display: block; font-size: var(--fs-xs); color: var(--sc-accent-d); }
.house-another-list__access { display: block; font-size: var(--fs-xs); color: var(--sc-text-2); }

/* ───── PC コンテンツ末尾の問い合わせブロック (SP は bottom bar が代替するので非表示) ───── */
.house-contact-foot { display: none; }
@media (min-width: 992px) {
  .house-contact-foot {
    display: block;
    margin: var(--sp-8) auto 0;
    padding: var(--sp-6) 0 0;
    border-top: 2px solid var(--sc-primary);
  }
  .house-contact-foot__inner {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6) var(--sp-6);
    box-shadow: var(--sh-2);
  }
  .house-contact-foot__title {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-md);
    font-weight: 700;
    text-align: center;
  }
  .house-contact-foot__cta { margin-bottom: var(--sp-3); }
  .house-contact-foot__tel {
    display: block;
    text-align: center;
    margin-bottom: var(--sp-3);
    padding: var(--sp-3);
    border: 1px solid var(--sc-border);
    border-radius: var(--r-md);
    background: var(--sc-bg-alt);
    color: var(--sc-text);
  }
  .house-contact-foot__tel:hover {
    background: #fff;
    border-color: var(--sc-primary);
    text-decoration: none;
  }
  .house-contact-foot__tel-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--sc-text-2);
  }
  .house-contact-foot__tel-num {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: .04em;
  }
  .house-contact-foot__tel small {
    display: block;
    color: var(--sc-text-3);
    font-size: var(--fs-xs);
  }
  .house-contact-foot__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }
}


/* ===========================================================
   SP 専用: bottom bar (画面下常駐 CTA) + 物件メニュー bottom sheet
   PC では一括で display: none。絶対に PC レイアウトに干渉しない
=========================================================== */
.house-bottombar,
.house-menu-sheet { display: none; }

@media (max-width: 767px) {

  /* 本体 (画面下端 sticky 風 = position: fixed)。
     ハンドル (擬似要素 ::before) で「操作可能」を示唆 */
  .house-bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--vv-bottom-offset, 0px);
    z-index: 60;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom)) 12px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--sc-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
    /* 登場アニメ: 下から slide-up + 軽い bounce */
    animation: house-bb-rise .45s cubic-bezier(.2, .8, .25, 1.05) both;
  }
  .house-bottombar::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: rgba(0, 0, 0, .22);
    border-radius: 999px;
    pointer-events: none;
  }
  /* スクロール余白を確保しないと最下部のコンテンツが bar に隠れる */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .house-bottombar__btn {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--r-md);
    background: #fff;
    color: var(--sc-text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, color .12s ease;
  }
  .house-bottombar__btn > i { font-size: 22px; line-height: 1; }
  .house-bottombar__btn:active { transform: translateY(1px); }

  /* クリップ (一覧と同じ paperclip / ON 時黄色) */
  .house-bottombar__btn--clip {
    background: var(--sc-bg-alt);
    color: #1c8fbf;
  }
  .house-bottombar__btn--clip.is-clipped {
    background: #ffd451;
    color: #5a3d00;
    box-shadow: 0 2px 6px rgba(245, 197, 66, .5);
  }

  /* 中央 メイン CTA
     一覧の「問い合わせ」ボタンと同じ緑 (#44a162) で塗り、白文字で視認性を上げる。
     視線誘導の工夫:
       a) 上にフロート吹き出し ".house-bottombar__tip" で「ここから問い合わせ」と明示
       b) ボタン外側に拡散リング (.house-bottombar__ring) を継続パルスで発生
       c) ボタン本体も pulse + 軽い shine (左→右に光が流れる) */
  .house-bottombar__btn--primary {
    position: relative;
    flex: 1.5;
    background: #44a162;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow:
      0 6px 16px rgba(68, 161, 98, .45),
      0 2px 6px rgba(0, 0, 0, .15),
      inset 0 1px 0 rgba(255, 255, 255, .25);
    overflow: visible; /* tip / ring を外側に出すため */
    animation: house-cta-pulse 2.2s ease-in-out 1s infinite;
  }
  .house-bottombar__btn--primary > i {
    color: #fff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
  }
  .house-bottombar__btn--primary.is-tapped { animation: none; }
  .house-bottombar__btn--primary.is-tapped .house-bottombar__tip,
  .house-bottombar__btn--primary.is-tapped .house-bottombar__ring { display: none; }
  .house-bottombar__btn--primary:hover {
    background: #389056;
    color: #fff;
    text-decoration: none;
    box-shadow:
      0 8px 20px rgba(68, 161, 98, .55),
      0 3px 8px rgba(0, 0, 0, .18),
      inset 0 1px 0 rgba(255, 255, 255, .3);
  }
  /* キラリ反射 (左→右に流れる) */
  .house-bottombar__btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
    animation: house-cta-shine 3.6s ease-in-out 1.4s infinite;
  }
  /* 上に浮かぶ吹き出し:「ここから問い合わせ」 */
  .house-bottombar__tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 11px;
    background: linear-gradient(135deg, #ff7a3a 0%, #e64a3a 100%);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(230, 74, 58, .45), 0 2px 4px rgba(0,0,0,.12);
    pointer-events: none;
    animation: house-cta-tip-bob 1.4s ease-in-out infinite;
  }
  /* 吹き出しの三角 (下向き) */
  .house-bottombar__tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #e64a3a transparent transparent transparent;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,.12));
  }
  /* ボタンの外周に広がるリング (継続パルス) */
  .house-bottombar__ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(68, 161, 98, .55);
    animation: house-cta-ring 2.2s ease-out 1s infinite;
  }

  /* メニュー (⋯) */
  .house-bottombar__btn--more {
    background: var(--sc-bg-alt);
    color: var(--sc-text-2);
  }

  @keyframes house-bb-rise {
    from { transform: translateY(100%); opacity: 0; }
    60%  { transform: translateY(-4px); }
    100% { transform: translateY(0);    opacity: 1; }
  }
  @keyframes house-cta-pulse {
    0%, 80%, 100% {
      transform: scale(1);
      box-shadow:
        0 6px 16px rgba(68, 161, 98, .45),
        0 2px 6px rgba(0, 0, 0, .15),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    }
    90% {
      transform: scale(1.05);
      box-shadow:
        0 10px 22px rgba(68, 161, 98, .6),
        0 4px 10px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    }
  }
  @keyframes house-cta-tip-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -3px); }
  }
  @keyframes house-cta-ring {
    0%   { box-shadow: 0 0 0 0 rgba(68, 161, 98, .55); }
    70%  { box-shadow: 0 0 0 14px rgba(68, 161, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(68, 161, 98, 0); }
  }
  @keyframes house-cta-shine {
    0%, 100% { transform: translateX(-100%); }
    50%      { transform: translateX(120%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .house-bottombar,
    .house-bottombar__btn--primary,
    .house-bottombar__btn--primary::after,
    .house-bottombar__ring,
    .house-bottombar__tip { animation: none; }
  }

  /* ─── 物件メニュー bottom sheet ─── */
  .house-menu-sheet {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    inset: var(--vv-top, 0px) 0 var(--vv-bottom-offset, 0px) 0;
    z-index: 1000;
  }
  .house-menu-sheet[hidden] { display: none; }
  .house-menu-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .house-menu-sheet.is-open .house-menu-sheet__backdrop { opacity: 1; }
  .house-menu-sheet__panel {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: min(80vh, calc(var(--vv-height, 100vh) - 24px));
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2, .8, .25, 1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  }
  .house-menu-sheet.is-open .house-menu-sheet__panel { transform: translateY(0); }
  .house-menu-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--sc-border);
  }
  .house-menu-sheet__title {
    font-size: var(--fs-sm);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
  }
  /* 下層ページではリンク化 (家アイコン + 物件名) → flex で並べ、テキスト側のみ ellipsis */
  a.house-menu-sheet__title--link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
  }
  a.house-menu-sheet__title--link:hover { text-decoration: underline; }
  a.house-menu-sheet__title--link i { flex: 0 0 auto; font-size: 1rem; }
  a.house-menu-sheet__title--link > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .house-menu-sheet__close {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--sc-text-2);
  }
  .house-menu-sheet__close:hover { background: var(--sc-bg-alt); }
  .house-menu-sheet__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom));
  }
  .house-menu-sheet__group + .house-menu-sheet__group { margin-top: var(--sp-4); }
  .house-menu-sheet__group h3 {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--sc-text-3);
    margin: 0 0 var(--sp-2);
    letter-spacing: .04em;
  }
  .house-menu-sheet__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--sc-border);
    border-radius: var(--r-md);
    overflow: hidden;
  }
  .house-menu-sheet__group li + li { border-top: 1px solid var(--sc-border); }
  .house-menu-sheet__group a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--sp-3);
    color: var(--sc-text);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  .house-menu-sheet__group a:hover { background: var(--sc-bg-alt); text-decoration: none; }
  .house-menu-sheet__group a > i { color: var(--sc-accent-d); font-size: 1.1rem; }

  /* シート展開中はページのスクロールを止める */
  body.is-house-menu-open { overflow: hidden; }
}
