/* ========================================
   e-room 公開側スタイル v3.0
   デザイン: モダンミニマル
   アクセント: --accent #d4572a（洗練オレンジ）
   テキスト: インクブラック系、ブラウン廃止
   ======================================== */
/* Google Fonts は header.php の <link> タグで読み込み（@import は廃止）*/

/* スキップナビゲーション（フォーカス時のみ表示） */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  background: var(--ink, #111);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  font-size: .875rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent:      #d4572a;
  --accent-dark: #b33f1a;
  --accent-lt:   #fdf1ed;
  --ink:         #111111;
  --text:        #333333;
  --text-light:  #666666;
  --text-muted:  #6e6e6e;  /* WCAG AA準拠: コントラスト比 4.89:1（白背景）*/
  --border:      #e5e5e5;
  --border-dark: #d0d0d0;
  --bg:          #f5f5f5;
  --card:        #ffffff;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,.1);
  --shadow-hover:0 8px 28px rgba(0,0,0,.13);

  /* 後方互換（--orange/--brown 参照箇所のフォールバック） */
  --orange:      #d4572a;
  --orange-dark: #b33f1a;
  --brown:       #222222;
  --brown-dark:  #111111;
  --card-bg:     #ffffff;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ====== HEADER ====== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,.06);
}
.header-top { padding: 0 16px; }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.site-logo a:hover { opacity: .82; text-decoration: none; }
.site-logo img { height: 38px; width: auto; display: block; }
.logo-icon { color: var(--accent); font-size: 1.1rem; margin-right: 2px; }
.logo-text {
  font-family: 'Inter', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
}
.logo-catch { display: none; }

.header-contact { text-align: right; line-height: 1.4; }
.header-tel { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tel-label {
  font-size: .68rem;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .04em;
}
.tel-num { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.tel-num:hover { color: var(--accent); text-decoration: none; }
.header-info { font-size: .7rem; color: var(--text-muted); }
.header-info a { color: var(--text-muted); }
.header-info a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 768px) { .header-contact { display: none; } }

/* ===== サイトナビ（> で直接子のみ対象、ドロップダウンに波及しない） ===== */
.site-nav > ul { display: flex; gap: 0; list-style: none; }

/* トップレベルリンクのみ */
.site-nav > ul > li > a {
  display: block;
  padding: 7px 13px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
@media (hover: hover) {
  .site-nav > ul > li > a:hover { background: var(--accent); color: #fff; text-decoration: none; }
}
.site-nav > ul > li.active > a {
  background: var(--accent); color: #fff; text-decoration: none;
}

/* ドロップダウン親 */
.site-nav > ul > li.has-dropdown { position: relative; }
.dd-arrow {
  display: inline-block;
  font-size: 1em; margin-left: 4px;
  vertical-align: middle; line-height: 1;
  transition: transform .2s;
}
.site-nav > ul > li.has-dropdown:hover .dd-arrow,
.site-nav > ul > li.has-dropdown.open  .dd-arrow { transform: rotate(180deg); }

/* ドロップダウンパネル */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px); left: 0;
  min-width: 164px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 5px 0;
  z-index: 300;
  list-style: none;
}
.site-nav > ul > li.has-dropdown:hover .nav-dropdown,
.site-nav > ul > li.has-dropdown.open  .nav-dropdown { display: block; }

.nav-dropdown > li > a {
  display: block;
  padding: 9px 16px;
  color: var(--text);
  font-size: .84rem; font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown > li > a:hover { background: var(--accent-lt); color: var(--accent); }
/* ドロップダウンの見出し（リンクではない） */
.nav-dropdown > li.nav-dd-head {
  padding: 8px 16px 3px;
  font-size: .72rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  white-space: nowrap;
}
.nav-dropdown > li.nav-dd-head:not(:first-child) { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 9px; }

.header-accent-bar { height: 3px; background: linear-gradient(90deg, var(--accent) 0%, #e8854a 100%); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== SP（768px以下） ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
    padding: 8px 0;
    z-index: 200;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }

  /* SP トップレベルリンク */
  .site-nav > ul > li > a {
    padding: 13px 20px; border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  /* SP ドロップダウン：PCホバーを無効化、openクラスのみで制御 */
  .site-nav > ul > li.has-dropdown { position: static; }
  .site-nav > ul > li.has-dropdown:hover .nav-dropdown { display: none; }
  .site-nav > ul > li.has-dropdown.open  .nav-dropdown { display: block; }
  .nav-dropdown {
    position: static;
    min-width: unset; width: 100%;
    border: none; border-radius: 0;
    box-shadow: none;
    background: #f5f3f0;
    padding: 0;
  }
  .nav-dropdown > li > a {
    padding: 11px 32px;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .nav-dropdown > li > a:hover { background: #ece8e2; color: var(--accent); }
  .nav-dropdown > li.nav-dd-head,
  .nav-dropdown > li.nav-dd-head:not(:first-child) { padding: 12px 20px 4px; border-top: none; border-bottom: 1px solid var(--border); margin-top: 0; }
}

/* ====== パンくず ====== */
.breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
}
.bc-inner { max-width: 1280px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.breadcrumb li + li::before { content: '›'; margin: 0 6px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* ====== コンテナ ====== */
.container { max-width: 1280px; margin: 0 auto; padding: 32px 16px 72px; }

/* ====== セクション見出し ====== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 18px;
}

/* ── お知らせ ── */
.section-title--sm { font-size: .95rem; margin-bottom: 10px; }
.news-section { padding-top: 0; }
.news-section .top-section-inner { padding-top: 16px; padding-bottom: 8px; }
.news-list {
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; overflow: hidden;
}
.news-item {
  display: flex; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid #f0ece8; font-size: .85rem;
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex-shrink: 0; color: var(--text-muted); font-size: .78rem;
  min-width: 70px; padding-top: 1px;
}
.news-content { flex: 1; min-width: 0; }
.news-title { font-weight: 600; color: var(--ink); }
.news-body {
  margin: 4px 0 0; font-size: .8rem; color: var(--text-light);
  line-height: 1.6;
}

/* ====== ヒーロー ====== */
.hero {
  background: var(--hero-pc, url('../img/hero-bg.webp')) center/cover no-repeat;
  background-color: #1a1a1a;
  color: #fff;
  padding: 52px 16px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.1) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  letter-spacing: .02em;
}
.hero p {
  font-size: .95rem;
  margin-bottom: 24px;
  opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
/* タブ文字: デフォルトはPC版表示・スマホ版非表示 */
.loc-tab-sp { display: none; }

@media (max-width: 600px) {
  /* ヒーロー: スマホ向け縮小 + モバイル専用軽量画像 */
  .hero { padding: 32px 12px 28px; background-image: var(--hero-sp, url('../img/hero-bg-mobile.webp')); }
  .hero h1 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 6px; }
  .hero p { font-size: .78rem; margin-bottom: 14px; }

  /* タブ文字: PC版を隠してスマホ版を表示 */
  .loc-tab-full { display: none; }
  .loc-tab-sp { display: inline; }

  /* フィルターバー: タブを縦積み or 折り返し対応 */
  .loc-tab-group {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }
  .loc-tab {
    padding: 6px 10px 7px;
    font-size: .72rem;
    gap: 3px;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .filter-summary-bar {
    flex-direction: column;
    gap: 6px;
  }
  /* スマホではタブ横の検索ボタンを非表示（パネル内ボタンで代替） */
  .filter-summary-bar > .filter-bar-btns { display: none; }

  /* 区ボタン: スマホで小さめ */
  .sb-ward-btn {
    padding: 3px 8px;
    font-size: .7rem;
  }

  /* 沿線セレクト: はみ出し防止 */
  .hero-layout-sel, .line-sel-full {
    font-size: .76rem;
    padding: 6px 8px;
    max-width: 100%;
  }
  select#sb-line, select#sb-area-min, select#sb-area-max {
    max-width: 100% !important;
    width: 100% !important;
    font-size: .76rem;
  }

  /* ヒーロー下段: 折り返し */
  .hero-bottom-row { gap: 4px; }
  .hero-check-row label { font-size: .72rem; }

  /* 検索ボタン */
  .search-submit-btn { font-size: .8rem; padding: 8px 16px; }
}

/* ヒーロー フィルターバー外枠 */
.hero-filter-outer {
  max-width: 860px;
  margin: 8px auto 0;
  padding-bottom: 0;
}
.hero .filter-bar {
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.18);
}
.hero .filter-summary-bar {
  padding-bottom: 0;
  margin-bottom: 0;
}
/* ヒーロー内テキスト・メモリ → 白字黒影 */
.hero .filter-bar,
.hero .filter-bar label,
.hero .filter-bar .fp-section-title,
.hero .filter-bar .loc-panel-title,
.hero .filter-bar .rent-rd-val,
.hero .filter-bar .rent-rd-sep,
.hero .filter-bar .rent-tick-lbl,
.hero .filter-bar .kd-cat-name,
.hero .filter-bar .kd-checks label {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
}
.hero .filter-bar .rent-tick-line { background: rgba(255,255,255,.7); }
.hero .filter-bar .rent-tick-line.t-major { background: #fff; }
.hero .filter-bar .rent-ruler-display {
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.25);
}
.hero .filter-bar .rent-thumb-max { border-top-color: #fff !important; }
.hero .filter-bar .rent-thumb-min { border-bottom-color: rgba(255,255,255,.85) !important; }
.hero .filter-bar .loc-tab {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.2);
}
.hero .filter-bar .loc-tab:hover { background: rgba(0,0,0,.38); }
.hero .filter-bar .loc-tab-open {
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.8) !important;
}
/* ヒーロー内 展開パネル（エリア・沿線・キーワード・詳細条件） */
.hero .filter-bar .loc-tab-panels {
  background: rgba(0,0,0,.52) !important;
  border-color: rgba(255,255,255,.15) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}
.hero .filter-bar .filter-panel {
  border-top-color: rgba(255,255,255,.15) !important;
}
.hero .filter-bar .fp-section-title {
  border-bottom-color: rgba(255,255,255,.3) !important;
}

/* ヒーロー内 間取りチェック → モバイル専用スタイルは mobile.css に記述 */

/* ── ヒーロー内 沿線セレクト ── */
.hero .filter-bar #sb-line {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 340px;
  background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 11px 38px 11px 14px;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
  backdrop-filter: blur(4px);
}
.hero .filter-bar #sb-line:focus {
  outline: none;
  border-color: rgba(255,255,255,.7);
  background-color: rgba(0,0,0,.5);
}
.hero .filter-bar #sb-line option {
  background: #2a2a2a;
  color: #fff;
}

/* ── ヒーロー内 キーワード検索ボタン（コンパクト） ── */
.hero .filter-bar #loc-panel-kw .btn-search-sm {
  flex-shrink: 0;
  padding: 11px 12px;   /* 左右を最小限に */
  font-size: .82rem;
  white-space: nowrap;
}

/* ── ヒーロー内 キーワード入力窓 ── */
.hero .filter-bar #loc-panel-kw input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  font-size: .9rem;
  outline: none;
  backdrop-filter: blur(4px);
  transition: border-color .15s, background-color .15s;
}
.hero .filter-bar #loc-panel-kw input[type="text"]::placeholder {
  color: rgba(255,255,255,.5);
}
.hero .filter-bar #loc-panel-kw input[type="text"]:focus {
  border-color: rgba(255,255,255,.7);
  background-color: rgba(0,0,0,.5);
}

/* ── ヒーロー内 区ボタン ── */
.hero .filter-bar .sb-ward-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  backdrop-filter: blur(4px);
}
.hero .filter-bar .sb-ward-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.hero .filter-bar .sb-ward-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── ヒーロー内 駅ピル ── */
.hero .filter-bar .sb-station-pill,
.hero .filter-bar .sb-town-pill {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .78rem;
  backdrop-filter: blur(4px);
}
.hero .filter-bar .sb-station-pill:hover,
.hero .filter-bar .sb-town-pill:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.hero .filter-bar .sb-station-pill.active,
.hero .filter-bar .sb-town-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── hide-sp / show-sp ヘルパー ── */
.hide-sp { display: inline; }
.show-sp { display: none; }

/* ヒーロー検索ボックス（旧） */
.search-tabs-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
}
.stab-nav { display: flex; gap: 6px; margin-bottom: 14px; justify-content: center; }
.stab-btn {
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.stab-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.stab-btn.active { background: #fff; color: var(--accent); border-color: #fff; font-weight: 700; }

.ward-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.ward-btn {
  padding: 5px 14px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ward-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.ward-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.town-pills, .station-pills {
  display: flex; flex-wrap: wrap; gap: 5px;
  justify-content: center; margin-bottom: 10px;
}
.town-pill, .station-pill {
  padding: 3px 12px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
}
.town-pill:hover, .station-pill:hover { background: rgba(255,255,255,.2); color: #fff; }
.town-pill.active, .station-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ヒーロー ルーラー */
.hero-ruler { margin: 8px 0; }
.rent-ruler-outer { padding: 4px 0 0; }
.rent-ruler-track-wrap {
  position: relative;
  height: 44px;
  margin: 0 12px;
  touch-action: none;
  user-select: none;
}
.rent-ruler-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  transform: translateY(-50%);
  cursor: pointer;
}
.rent-ruler-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: 2px;
}
.rent-thumb {
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 2;
  transition: filter .1s;
}
.rent-thumb-max {
  margin-top: -24px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid rgba(255,255,255,.85);
}
.rent-thumb-max:hover,
.rent-thumb-max.drag-on { border-top-color: #fff; transform: translateX(-50%) scale(1.15); }
.rent-thumb-min {
  margin-top: 8px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid var(--accent);
}
.rent-thumb-min:hover,
.rent-thumb-min.drag-on { border-bottom-color: var(--accent-dark); transform: translateX(-50%) scale(1.15); }

.rent-ruler-ticks {
  position: relative;
  height: 20px;
  margin: 2px 12px 0;
  pointer-events: none;
}
.rent-tick {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.rent-tick-line { width: 1px; }
.rent-tick-line.t-major { height: 5px; background: rgba(255,255,255,.35); }
.rent-tick-line.t-minor { height: 3px; background: rgba(255,255,255,.2); }
.rent-tick-lbl { font-size: .58rem; color: rgba(255,255,255,.55); white-space: nowrap; }

.rent-ruler-display, .hero-rent-display {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 6px 10px;
}
.rent-rd-val {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  min-width: 56px;
  text-align: center;
  color: #fff;
}
.rent-rd-sep { color: rgba(255,255,255,.4); font-size: .75rem; }

/* サイドバー内のルーラー（白背景用） */
.search-sidebar .rent-ruler-track { background: var(--border); }
.search-sidebar .rent-ruler-fill { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.search-sidebar .rent-thumb-max { border-top-color: var(--ink); }
.search-sidebar .rent-thumb-max:hover { border-top-color: #000; }
.search-sidebar .rent-thumb-min { border-bottom-color: var(--accent); }
.search-sidebar .rent-thumb-min:hover { border-bottom-color: var(--accent-dark); }
.search-sidebar .rent-tick-line.t-major { background: var(--border-dark); }
.search-sidebar .rent-tick-line.t-minor { background: var(--border); }
.search-sidebar .rent-tick-lbl { color: var(--text-muted); }
.search-sidebar .rent-ruler-display {
  background: #f9f9f9;
  border-color: var(--border);
}
.search-sidebar .rent-rd-val { color: var(--text); }
.search-sidebar .rent-rd-sep { color: var(--border-dark); }
.rent-ruler-checks { display: flex; flex-direction: row; gap: 14px; margin-top: 8px; }
.area-rd-min { color: #2e7d52; }
.area-rd-max { color: var(--ink); }

/* 面積ルーラーのサムは緑系（家賃は--accentと区別） */
.area-thumb-max { border-top-color: #3a8a5e !important; }
.area-thumb-min { border-bottom-color: #6bc89a !important; }

/* ヒーロー 下段コントロール */
.hero-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
}
.hero-layout-sel, .line-sel-full {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .84rem;
  backdrop-filter: blur(4px);
  outline: none;
}
.hero-layout-sel option, .line-sel-full option, .line-sel-full optgroup { color: var(--ink); background: #fff; }
.line-sel-full { width: 100%; margin-bottom: 8px; }
.search-submit-btn {
  padding: 8px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.search-submit-btn:hover { background: var(--accent-dark); }

.hero-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.hero-check-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  cursor: pointer;
}
.hero-check-row input[type=checkbox] { accent-color: var(--accent); }

/* ヒーロー キーワード入力 */
.hero-keyword {
  width: 100%; padding: 9px 13px; margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
  font-size: .92rem; background: rgba(255,255,255,.12);
  color: #fff; outline: none; display: block;
  backdrop-filter: blur(4px);
}
.hero-keyword::placeholder { color: rgba(255,255,255,.55); }
.hero-keyword:focus { border-color: rgba(255,255,255,.6); }

/* 沿線行 */
.line-row { margin-bottom: 10px; }

/* ====== TOPページ セクション ====== */
.top-section { padding: 44px 16px; }
.top-section.alt { background: #fff; }
.top-section-inner { max-width: 1280px; margin: 0 auto; }
.top-section-inner > h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.top-section-inner > p { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }

/* ── エリア件数カード ── */
.area-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.area-stat-grid--5col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
  .area-stat-grid--5col {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .area-stat-grid--5col {
    grid-template-columns: repeat(2, 1fr);
  }
}
.area-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.area-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.asc-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  line-height: 1;
}
.asc-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.asc-count span { font-size: .8rem; font-weight: 600; margin-left: 2px; }
.asc-count small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.asc-name  { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.asc-desc  { font-size: .72rem; color: var(--text-muted); text-align: center; }
/* ── TOPページ: 選ばれる理由 ── */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.reason-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.reason-icon { font-size: 2rem; margin-bottom: 10px; }
.reason-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.reason-card p  { font-size: .85rem; color: var(--text-light); line-height: 1.7; }

/* ── TOPページ: ブランドで探す ── */
.series-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 900px) { .series-brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .series-brand-grid { grid-template-columns: 1fr; } }

.sbrand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sbrand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sbrand-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0ece8;
  overflow: hidden;
}
.sbrand-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .3s;
}
.sbrand-card:hover .sbrand-img-wrap img { transform: scale(1.04); }
.sbrand-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #ccc;
}
.sbrand-tier {
  position: absolute; top: 10px; left: 10px;
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  letter-spacing: .03em;
}
.sbrand-tier--premium  { background: #b8922a; color: #fff; }
.sbrand-tier--standard { background: #2a6db8; color: #fff; }
.sbrand-tier--value    { background: #2a9b5c; color: #fff; }

.sbrand-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.sbrand-name {
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.sbrand-catch {
  font-size: .78rem; color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sbrand-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: .74rem; color: #888;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.sbrand-meta span { white-space: nowrap; }

/* ── TOPページ: エリアガイド ── */
.area-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.area-guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.area-guide-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.area-guide-card h3 a { color: var(--accent); text-decoration: none; }
.area-guide-card h3 a:hover { text-decoration: underline; }
.area-guide-card p  { font-size: .83rem; color: var(--text-light); line-height: 1.75; }

/* ====== 物件カード ====== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.property-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .property-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .property-grid--4col { grid-template-columns: 1fr; }
}
.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.property-card a { text-decoration: none; }
.property-card a:hover { text-decoration: none; }

.card-thumb-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; background: #f0f0f0; overflow: hidden; }
.card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .25s; }
.property-card:hover .card-thumb { transform: scale(1.04); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 2.8rem;
}
.card-tag-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: .04em;
}

.card-body { padding: 16px 16px 10px; flex: 1; }
.card-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
/* ── 物件カード バッジ（手数料無料・礼金なし・ペット可）── */
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.cb {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: .65rem; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 3px;
  white-space: nowrap;
}
.cb small { font-weight: 500; opacity: .85; font-size: .6rem; }
.cb-free { background: #ffebee; color: #c62828; }
.cb-rei  { background: #fff3e0; color: #e65100; }
.cb-pet  { background: #e3f2fd; color: #1565c0; }

.card-address { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.card-transit {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-transit::before { content: '🚉'; font-size: .8rem; }

/* 物件カード内 部屋ミニリスト */
.card-rooms { border-top: 1px solid #f0ebe4; padding: 0 10px 8px; }
.card-rooms-hd {
  display: grid;
  grid-template-columns: 2.2fr 2fr 2.6fr 2.8fr 1fr;
  gap: 0 4px;
  padding: 5px 6px 4px;
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  border-bottom: 1px solid #ede8e1;
}
.room-row {
  display: grid;
  grid-template-columns: 2.2fr 2fr 2.6fr 2.8fr 1fr;
  align-items: center;
  gap: 0 4px;
  padding: 6px 6px;
  font-size: .76rem;
  border-bottom: 1px dashed #f3ede6;
  text-decoration: none !important;
  color: var(--text) !important;
  border-radius: 4px;
  transition: background .12s;
  cursor: pointer;
}
.room-row:last-of-type { border-bottom: none; }
.room-row:hover { background: #fff8f4; }
.rr-no     { font-weight: 700; font-size: .82rem; color: var(--ink); white-space: nowrap; text-align: left; }
.rr-type-cnt { font-weight: 500; font-size: .68rem; color: var(--text-muted); margin-left: 3px; }
.rr-layout { font-weight: 700; }
.rr-area   { color: var(--text-muted); font-size: .73rem; }
.rr-rent   { font-weight: 700; color: var(--accent); }
.rr-mgmt   { font-weight: 400; font-size: .72rem; color: var(--text-muted); }
.rr-arr    { color: var(--text-muted); font-size: .8rem; text-align: right; }
.badge-applied { display: inline-block; padding: 1px 6px; border-radius: 3px; background: #fef3e0; color: #e67e22; font-size: .72rem; font-weight: 600; }
.rr-more {
  display: block; text-align: center;
  font-size: .72rem; color: var(--accent);
  padding: 5px 0 2px; text-decoration: none;
  transition: opacity .12s;
}
.rr-more:hover { opacity: .75; }

/* カードメタ（空室数＋賃料帯） */
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 5px; font-size: .78rem;
}
.card-vacancy    { color: var(--text-muted); }
.card-applied    { color: #e67e22; font-weight: 600; }
.card-rent-range { font-weight: 700; color: var(--accent); }
.card-mgmt-note  { font-weight: 400; font-size: .72rem; color: var(--text-muted); }

/* カードフッター内の賃料表示 */
.room-rent { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--accent); font-size: .95rem; }

/* 一覧へのリンクラップ */
.view-all-wrap { text-align: center; margin-top: 28px; }

/* ===== 仲介手数料バナー ===== */
/* outer: 背景色を全幅に広げる */
.brokerage-banner-outer {
  width: 100%;
  margin-top: 16px;
}
/* inner: コンテンツを1280px内に収める */
.brokerage-banner {
  display: flex; align-items: center; gap: 8px;
  max-width: 1280px; margin: 0 auto;
  padding: 12px 20px;
  font-size: .88rem; font-weight: 600;
  overflow: hidden; min-width: 0;
}
.brokerage-banner .bb-text {
  min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* 無料：鮮やかな赤＋白抜き文字でインパクト重視 */
.brokerage-banner-outer.brokerage-banner--free {
  background: linear-gradient(90deg, #e8001a 0%, #ff4d63 50%, #e8001a 100%);
  background-size: 200% 100%;
  color: #fff;
  animation: bb-slide 3s ease-in-out infinite;
}
/* background-position アニメーションでシャイン効果（DOM汚染なし） */
@keyframes bb-slide {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 半額：オレンジ系（控えめ） */
.brokerage-banner-outer.brokerage-banner--half {
  background: linear-gradient(90deg, #fff8e8, #fffdf4);
  border-bottom: 2px solid #e67e22;
  color: #b5611a;
}

.brokerage-banner .bb-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.brokerage-banner-outer.brokerage-banner--free .bb-text strong {
  font-size: 1.25em; letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.brokerage-banner-outer.brokerage-banner--half .bb-text strong { font-size: 1.05em; }
.bb-detail {
  max-width: 860px; margin: 0 auto; padding: 0 20px 14px;
  font-size: .84rem; color: rgba(255,255,255,.9); line-height: 1.7;
}
.bb-detail strong { color: #fff; }

/* room.php 間取り説明セクション */
.layout-guide-section {
  padding: 28px 0 8px;
  border-top: 1px solid #eee;
}
.layout-guide-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #222;
}
.layout-guide-catch {
  font-size: .875rem;
  color: #555;
  font-style: italic;
  margin: 0 0 12px;
}
.layout-guide-body-p {
  font-size: .875rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 .6em;
}
.layout-guide-body p {
  font-size: .875rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 1em;
}
.layout-guide-body p:last-child { margin-bottom: 0; }

/* property.php / room.php 自動生成テキスト */
.prop-intro-text,
.room-intro-text {
  font-size: .875rem;
  line-height: 1.8;
  color: #444;
  margin: 12px 0 16px;
}
.prop-intro-text p,
.room-intro-text p { margin: 0 0 .5em; }
.prop-intro-text p:last-child,
.room-intro-text p:last-child { margin-bottom: 0; }
.prop-nearby-text { color: #555; }

/* スタッフコメント */
.staff-comment-section { margin: 16px 0 20px; }
.staff-comment-text {
  font-size: .875rem; line-height: 1.85; color: #444;
  background: #fdf8f0; border-left: 4px solid var(--accent);
  padding: 14px 16px; border-radius: 6px; margin: 8px 0 0;
}

/* property.php 仲介手数料補足ボックス */
.brk-info-box {
  border-radius: 10px; padding: 14px 18px; margin: 20px 0;
  font-size: .875rem; line-height: 1.75;
}
.brk-info-box p { margin: 0; }
.brk-info-box--free {
  background: #fff8f0; border: 1.5px solid #f5c87a; color: #6b4200;
}
.brk-info-box--free strong { color: #c67300; }
.brk-info-box--half {
  background: var(--accent-lt); border: 1.5px solid #f0c8b0; color: #6b3a1a;
}
.brk-info-box--half strong { color: var(--accent-dark); }

/* property.php サマリーバー内インライン表示（outerなし・直接色指定） */
.brokerage-banner--inline {
  margin-top: 10px; padding: 10px 16px;
  border-radius: 8px; font-size: .88rem;
  max-width: none; /* インラインはmax-width不要 */
}
.brokerage-banner--inline.brokerage-banner--free {
  background: linear-gradient(90deg, #e8001a 0%, #ff4d63 50%, #e8001a 100%);
  background-size: 200% 100%; color: #fff;
  animation: bb-slide 3s ease-in-out infinite;
  padding: 10px 16px;
}
.brokerage-banner--inline.brokerage-banner--half {
  background: linear-gradient(90deg, #fff8e8, #fffdf4);
  border: 2px solid #e67e22; color: #b5611a;
}
.brokerage-banner--inline.brokerage-banner--norei {
  background: linear-gradient(90deg, #eef6ee, #f4faf4);
  border: 2px solid #27ae60; color: #1e7e46;
}
.brokerage-banner--inline.brokerage-banner--pet {
  background: linear-gradient(90deg, #fef5e7, #fffcf5);
  border: 2px solid #e67e22; color: #b5611a;
}

/* 閲覧履歴マウント */
#view-history-mount:not(:empty) {
  padding-top: 0 !important;
  padding-bottom: 32px !important;
  margin-top: 0 !important;
}
/* 修正20-b (2026-04-10): 閲覧履歴内 h2 の上マージンを強制ゼロ化 */
#view-history-mount .history-block,
#view-history-mount .history-block:first-child { margin-top: 0 !important; }
#view-history-mount h2.section-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* properties.php 関連する探し方セクション */
.related-search {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--accent-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.related-search .section-title { margin-bottom: 16px; }
.related-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.related-search-card {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  transition: all .15s;
}
.related-search-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.related-search-card--accent {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.related-search-card--accent:hover {
  background: var(--accent);
  color: #fff;
}

/* property.php バッジ横並び（画像幅の3等分） */
.prop-badge-row {
  display: flex; gap: 8px;
  width: 100%;
  margin: 0;
}
/* property.php: ギャラリー直下のバッジは上を詰めて下を空ける */
.detail-main > .prop-badge-row { margin: -12px 0 28px; }
.prop-badge {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border-radius: 8px;
  font-size: .88rem; font-weight: 700; text-align: center;
  white-space: nowrap;
}
.prop-badge-icon { font-size: 1.05rem; flex-shrink: 0; }
.prop-badge--free {
  background: linear-gradient(135deg, #e8001a, #ff4444);
  color: #fff;
}
.prop-badge--norei {
  background: linear-gradient(90deg, #eef6ee, #f4faf4);
  border: 2px solid #27ae60; color: #1e7e46;
}
.prop-badge--pet {
  background: linear-gradient(90deg, #fef5e7, #fffcf5);
  border: 2px solid #e67e22; color: #b5611a;
}
@media (min-width: 481px) and (max-width: 600px) {
  .prop-badge-row { flex-wrap: nowrap; gap: 4px; }
  .prop-badge {
    padding: 6px 4px; font-size: .74rem; gap: 4px;
  }
  .prop-badge-icon { font-size: .9rem; }
}
@media (max-width: 480px) {
  .prop-badge-row { flex-wrap: nowrap; }
  .prop-badge { flex: 1 1 0; white-space: nowrap; }
}

/* 部屋詳細バッジバー（room.php） */
.room-badge-bar { background: #fff; border-bottom: 1px solid var(--border); }
.room-badge-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 16px;
}

/* 部屋カード内バッジ */
.prc-brokerage-badge {
  display: inline-block; margin-top: 6px;
  padding: 3px 10px; border-radius: 3px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
}
.prc-brokerage-badge--free {
  background: #e8001a; color: #fff;
  box-shadow: 0 1px 4px rgba(232,0,26,.35);
}
.prc-brokerage-badge--half { background: #fff3e0; color: #b5611a; }

/* CTA セクション */
.section-cta { text-align: center; padding: 20px 0; }
.section-cta-title {
  display: inline-block; font-size: 1.4rem; font-weight: 700; color: var(--ink);
  border-bottom: 3px solid var(--accent); padding: 0 0 6px;
  margin-bottom: 16px;
}
.section-cta p { color: var(--text-light); margin-bottom: 24px; }
.cta-btn-row {
  display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.btn-cta-wide {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; padding: 14px 36px;
}

.card-footer {
  padding: 10px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.btn-detail {
  display: inline-block;
  padding: 7px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  transition: background .15s;
}
.btn-detail:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ====== ページネーション ====== */
.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  background: #fff;
  font-size: .88rem;
  min-width: 38px;
  text-align: center;
  transition: all .15s;
}
.pagination a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}
.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

/* ====== エリア説明文ブロック（properties.php・アコーディオン版） ====== */
.area-content-section {
  margin-top: 32px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* 閲覧履歴セクションへの距離を最小化（h2 までの間隔） */
#view-history-mount { padding-top: 0 !important; padding-bottom: 24px !important; }
#view-history-mount .history-block { margin-top: 0; }
#view-history-mount .history-block:first-child { margin-top: 0 !important; }
#view-history-mount .history-block .section-title.mt-24 {
  margin-top: 16px !important;
  padding-top: 0;
}
/* 外側コンテナが area-content-section で終わる場合、下padding を圧縮 */
.container:has(> .area-content-section:last-child) { padding-bottom: 22px !important; }
.area-content-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 2px 0;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  letter-spacing: .02em;
}
.area-content-section-lead {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 4px 0;
  line-height: 1.7;
}
.area-content-accordion {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(20,30,50,.04), 0 4px 14px rgba(20,30,50,.04);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.area-content-accordion:hover {
  box-shadow: 0 2px 6px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.07);
  transform: translateY(-1px);
}
.area-content-accordion[open] {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(20,30,50,.06), 0 12px 30px rgba(20,30,50,.08);
}
.area-content-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: background .2s;
  position: relative;
}
.area-content-summary::-webkit-details-marker { display: none; }
.area-content-summary::after {
  content: '＋';
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  border: 1.5px solid var(--accent-lt);
  transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.area-content-accordion[open] .area-content-summary::after {
  content: '−';
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.area-content-summary:hover { background: linear-gradient(180deg, #fafcff 0%, #eff5fc 100%); }
.area-content-icon {
  font-size: 1.3rem;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt);
  border-radius: 10px;
  flex-shrink: 0;
}
.area-content-summary-title {
  font-size: 1rem;
  letter-spacing: .01em;
}
.area-content-summary-catch {
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--accent-lt);
  line-height: 1.5;
}
.area-content-body {
  padding: 28px 28px 30px;
  font-size: .9rem;
  line-height: 2;
  color: var(--ink);
  border-top: 1px solid var(--border);
  background: #fcfdfe;
  position: relative;
}
.area-content-body::before {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .35;
}
@media (max-width: 768px) {
  .area-content-section { margin-top: 24px; margin-bottom: 0; padding-bottom: 0; gap: 12px; }
  .area-content-summary { padding: 14px 16px; gap: 10px; }
  .area-content-summary::after { width: 24px; height: 24px; font-size: .85rem; }
  .area-content-body { padding: 22px 18px 24px; font-size: .87rem; line-height: 1.9; }
  .area-content-body::before { left: 18px; right: 18px; }
  .area-content-icon { font-size: 1.15rem; width: 32px; height: 32px; border-radius: 8px; }
  .area-content-summary-title { font-size: .94rem; }
  .area-content-summary-catch { font-size: .72rem; padding: 3px 10px; }
}

/* ====== 検索＋一覧レイアウト ====== */

/* ===== 検索条件サマリーバー（折りたたみ後表示） ===== */
.search-summary-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 10px 16px; margin-bottom: 12px;
}
.ssb-chips {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.ssb-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f0f4ff; color: #2a4d9b;
  border: 1px solid #c5d3f5; border-radius: 20px;
  padding: 3px 10px; font-size: .78rem; font-weight: 600;
  white-space: nowrap;
}
.ssb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ssb-edit-btn {
  padding: 6px 14px; border: 1.5px solid var(--accent);
  border-radius: 20px; background: #fff; color: var(--accent);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ssb-edit-btn:hover { background: var(--accent); color: #fff; }

/* ====== フィルターバー（上部展開式） ====== */
.filter-bar {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.filter-summary-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 16px 0; flex-wrap: wrap;  /* bottom:0 でタブをパネルに密着 */
}

/* ── 場所タブ（フォルダタブ） ── */
.loc-tab-group {
  display: flex; gap: 2px; flex-shrink: 0;
  align-items: flex-end;
}
.loc-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px 10px;
  border-radius: 10px 10px 0 0;    /* フォルダ耳の丸み */
  border: 2px solid var(--border);
  border-bottom: none;
  background: #f0ebe4;             /* 非アクティブ：少し暗め */
  font-size: .84rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  position: relative; bottom: -2px; /* パネル上枠に2px重ねて密着 */
  z-index: 0;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.loc-tab:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  z-index: 2;
}
/* 検索条件が入っているタブ */
.loc-tab-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}
/* 開いているタブ（パネルと一体化） */
.loc-tab-open {
  background: #fff !important;
  border-color: var(--border) !important;
  border-bottom-color: #fff !important;  /* パネルと繋がって見せる */
  color: var(--ink) !important;
  z-index: 3;
  box-shadow: -2px -3px 6px rgba(0,0,0,.06); /* タブが浮いて見える影 */
}
.loc-tab-open.loc-tab-active {
  border-color: var(--accent) !important;
  border-bottom-color: #fff !important;
  color: var(--accent) !important;
  background: var(--accent-lt) !important;
}

/* タブパネル（フォルダ本体） */
.loc-tab-panels {
  border: 2px solid var(--border);
  border-radius: 0 8px 8px 8px;
  background: #fff;
  position: relative; z-index: 1;
}
.loc-tab-panel { padding: 16px 18px; }
.loc-panel-title {
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  border-radius: 9px; font-size: .68rem; font-weight: 700;
}
.filter-bar-btns { display: flex; gap: 6px; flex-shrink: 0; padding-bottom: 2px; }
.btn-search-sm {
  padding: 6px 16px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700; cursor: pointer;
}
.btn-search-sm:hover { background: var(--accent-dark); }
.btn-reset-sm {
  padding: 6px 12px; background: #fff; color: var(--text-light);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .82rem; text-decoration: none;
}
.btn-reset-sm:hover { border-color: var(--ink); color: var(--ink); }

/* 展開パネル */
.filter-panel {
  border-top: 1px solid var(--border);
  padding: 20px 20px 16px;
}
.fp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1.6fr 1.2fr;
  gap: 20px 24px;
  margin-bottom: 20px;
}
.fp-section-title {
  font-size: .74rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px; padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
}
/* アクション行 */
.fp-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.fp-actions-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fp-actions .btn-search { width: auto; padding: 9px 28px; margin-top: 0; }

/* こだわり展開トグルボタン */
/* ── クイックフィルターボタン ───────────────────────────── */
.quick-feat-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 4px;
}
.qf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 22px; cursor: pointer;
  font-size: .84rem; font-weight: 600;
  border: 2px solid #ddd; background: #f8f8f8; color: #888;
  user-select: none; transition: all .15s;
  white-space: nowrap;
}
.qf-btn input[type=checkbox] { display: none; }
.qf-btn:hover { border-color: #bbb; color: #555; background: #f0f0f0; }
/* ON状態 */
.qf-btn.qf-on.qf-free { background: #fff4e6; border-color: #e8930a; color: #b86c00; }
.qf-btn.qf-on.qf-key  { background: #f0faf0; border-color: #27ae60; color: #1a7a44; }
.qf-btn.qf-on.qf-pet  { background: #f0f0ff; border-color: #6c5ce7; color: #4a3bcc; }

/* ヒーロー内クイックフィルター: 半透明ダーク */
.hero .filter-bar .quick-feat-row { padding: 6px 0 2px; }
.hero .filter-bar .qf-btn {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.85); backdrop-filter: blur(4px);
}
.hero .filter-bar .qf-btn:hover {
  background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #fff;
}
.hero .filter-bar .qf-btn.qf-on.qf-free { background: rgba(232,147,10,.35); border-color: #e8930a; color: #ffe0a0; }
.hero .filter-bar .qf-btn.qf-on.qf-key  { background: rgba(39,174,96,.3);   border-color: #27ae60; color: #a0f0c0; }
.hero .filter-bar .qf-btn.qf-on.qf-pet  { background: rgba(108,92,231,.3);  border-color: #6c5ce7; color: #c8c0ff; }
/* ───────────────────────────────────────────────────── */

.btn-kd-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px 8px 14px;
  border-radius: 22px;
  border: 2px solid var(--accent);
  background: var(--accent-lt);
  font-size: .86rem; font-weight: 700; color: var(--accent);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-kd-toggle:hover { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.13); }
.btn-kd-toggle:hover .kd-toggle-icon { background: #fff; color: var(--accent); }
.kd-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .82rem; font-weight: 700; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.kd-toggle-label { letter-spacing: .02em; }

/* こだわり条件パネル */
.fp-kodawari { border-top: 1px solid var(--border); padding: 16px 0 4px; }
.fp-kd-grid { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.fp-kd-grid .kd-cat { min-width: 160px; flex: 1; }
.kd-search-row { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.kd-search-row .btn-search { width: auto; padding: 9px 28px; margin-top: 0; }

/* 物件一覧（フル幅） */
.search-results { margin-top: 4px; }

/* レスポンシブ */
@media (max-width: 900px) {
  .fp-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fp-kd-grid .kd-checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .fp-grid { grid-template-columns: 1fr; }
  .filter-summary-bar { gap: 8px; }
  .filter-active-tags { display: none; }
}

/* 旧サイドバー用ルーラー上書き（フィルターバー内） */
.filter-bar .rent-ruler-track { background: var(--border); }
.filter-bar .rent-ruler-fill { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.filter-bar .rent-thumb-max { border-top-color: var(--ink); }
.filter-bar .rent-thumb-min { border-bottom-color: var(--accent); }
.filter-bar .rent-tick-line.t-major { background: var(--border-dark); }
.filter-bar .rent-tick-line.t-minor { background: var(--border); }
.filter-bar .rent-tick-lbl { color: var(--text-muted); }
.filter-bar .rent-ruler-display { background: #f9f9f9; border-color: var(--border); }
.filter-bar .rent-rd-val { color: var(--text); }
.filter-bar .rent-rd-sep { color: var(--border-dark); }

.search-field { margin-bottom: 10px; }
.search-field label { display: block; font-size: .76rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.search-field { margin-bottom: 10px; }
.search-field label { display: block; font-size: .76rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.search-field .rent-ruler-checks label { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-light); font-weight: normal; margin-bottom: 0; cursor: pointer; white-space: nowrap; }
.search-field .rent-ruler-checks input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; }
.layout-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; }
.layout-checks label { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text); font-weight: normal; margin-bottom: 0; cursor: pointer; white-space: nowrap; }
.layout-checks input[type="checkbox"] { accent-color: var(--accent); width: 13px; height: 13px; flex-shrink: 0; }
.search-field input,
.search-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search-field input:focus,
.search-field select:focus { border-color: var(--accent); }
.search-field-row { display: flex; gap: 6px; }
.search-field-row .search-field { flex: 1; }

.btn-search {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s;
}
.btn-search:hover { background: var(--accent-dark); }
.btn-reset {
  padding: 9px 20px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-reset:hover { border-color: var(--ink); }

/* サイドバー 区ボタン・ピル */
.sb-ward-row { display: flex; flex-wrap: wrap; gap: 4px; }
.sb-ward-btn {
  padding: 4px 10px;
  background: #f5f5f5;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: .76rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sb-ward-btn:hover { background: #eee; }
.sb-ward-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 8区アイコン地図（includes/ward_map.php）— マウス・タップ用の補助。操作の正は区ボタン・区カード */
.wm { margin: 0 auto 12px; max-width: 440px; }
.wm--link { margin: 8px auto 4px; }
.wm-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.wm-r, .wm-r:hover { cursor: pointer; outline: none; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wm-p { fill: #fbe6dd; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transition: fill .15s; }
.wm-r:hover .wm-p { fill: #f8d6c9; }
.wm-t, .wm-c { pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fbe6dd; stroke-width: 3px; stroke-linejoin: round; }
.wm-t { font-size: 15px; font-weight: 700; fill: var(--ink); }
.wm-c { font-size: 14px; font-weight: 600; fill: var(--accent-dark); } /* 「◯室」（2026-11-23） */
.wm-l.is-hover .wm-t, .wm-l.is-hover .wm-c { stroke: #f8d6c9; }
.wm-labels { pointer-events: none; }
.wm-r.is-on .wm-p { fill: var(--accent-dark); stroke-width: 3; }
.wm-l.is-on .wm-t, .wm-l.is-on .wm-c { fill: #fff; stroke: var(--accent-dark); }
.wm-src { margin: 2px auto 0; max-width: 440px; font-size: 11px; line-height: 1.4; color: var(--text-muted); }
/* エリアから探す: PC は地図（左）とカード（右）を横並び。スマホ・タブレットは従来どおり縦積み */
@media (min-width: 1000px) {
  .area-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; margin-top: 20px; }
  .area-split .wm--link { margin: 0; max-width: none; }
  .area-split .area-stat-grid--5col { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 0; }
  .area-split .area-stat-card { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "icon name count" "icon desc count"; align-items: center; column-gap: 10px; padding: 12px 14px; text-align: left; }
  .area-split .area-stat-card:hover { transform: translateY(-2px); }
  .area-split .asc-icon { grid-area: icon; margin: 0; font-size: 1.5rem; text-align: center; }
  .area-split .asc-name { grid-area: name; margin: 0; }
  .area-split .asc-desc { grid-area: desc; text-align: left; }
  .area-split .asc-count { grid-area: count; margin: 0; font-size: 1.3rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .wm-p { transition: none; } }

.sb-town-pills,
.sb-station-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  padding: 2px 0;
}
.sb-town-pill, .sb-station-pill {
  padding: 3px 9px;
  background: #f5f5f5;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: .73rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sb-town-pill:hover, .sb-station-pill:hover { background: #e8e8e8; }
.sb-town-pill.active, .sb-station-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* サイドバー タブ */
.sb-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 10px;
}
.sb-tab-btn {
  flex: 1;
  padding: 7px 4px;
  background: none;
  color: var(--text-muted);
  border: none;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.sb-tab-btn:hover { color: var(--ink); }
.sb-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* 費用条件チェックボックス */
.sb-checks { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.sb-checks label { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text); cursor: pointer; }
.sb-checks input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; }

/* こだわり条件アコーディオン */
.kodawari-field { padding: 0 !important; border: none !important; position: relative; }
.kodawari-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #f5f2ee; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: .85rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.kodawari-toggle:hover { background: #ece7df; border-color: #c8b89a; }
.kodawari-toggle[aria-expanded="true"] { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.kd-right { display: flex; align-items: center; gap: 5px; }
.kd-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-size: .68rem; font-weight: 700; line-height: 1;
}
.kd-arrow { font-size: .65rem; color: inherit; }
.kodawari-panel {
  position: absolute; left: calc(100% + 8px); top: 0; z-index: 300;
  width: 520px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px; background: #fffcf9;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 80vh; overflow-y: auto; scrollbar-width: thin;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.kd-cat-name {
  font-size: .7rem; font-weight: 700; color: var(--text-light);
  margin-bottom: 5px; padding-bottom: 3px;
  border-bottom: 1px solid #ede8e1; letter-spacing: .03em;
}
/* 修正(2026-04-17): タップ性向上 — 行間+文字+チェック拡大 */
.kd-checks {
  display: flex; flex-direction: column; gap: 6px;
}
.kd-checks label {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--text); cursor: pointer; line-height: 1.4;
  min-height: 28px; padding: 2px 0;
}
.kd-checks input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }

/* ── 代替候補セクション（0〜3件時） ── */
.alt-props-section {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--accent-lt);
}
.alt-props-header {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.alt-props-label {
  font-size: .82rem; color: var(--text-muted);
}
.alt-props-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
}
.alt-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.alt-prop-card {
  text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .18s;
}
.alt-prop-card:hover { box-shadow: var(--shadow); }
.alt-card-body { padding: 8px 10px 10px; }
.alt-card-body .card-name { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt-card-body .card-station { font-size: .72rem; color: var(--text-muted); margin-bottom: 3px; }
.alt-card-body .card-rent { font-size: .84rem; font-weight: 700; color: var(--accent); }
.alt-props-more { margin-top: 16px; text-align: right; }
.alt-more-btn {
  display: inline-block; padding: 8px 20px;
  border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: var(--radius-sm); font-size: .84rem; font-weight: 600;
  text-decoration: none; transition: background .15s, color .15s;
}
.alt-more-btn:hover { background: var(--accent); color: #fff; }

/* ── ガイド型サジェスト ── */
.guide-suggest {
  margin: 32px 0 0; padding: 24px 20px;
  background: #f8f6f3; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.guide-msg { font-size: .9rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.guide-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }
.guide-card-grid { display: block; }
.guide-cat-section { margin-bottom: 4px; }
.guide-cat-title {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  margin: 20px 0 12px; padding-left: 4px;
}
.guide-cat-section:first-child .guide-cat-title { margin-top: 8px; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  min-height: 64px;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.guide-card-label {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  line-height: 1.4; word-break: break-word;
}
.guide-card-meta { display: flex; align-items: center; gap: 8px; }
.guide-card-count {
  font-size: .92rem; font-weight: 700; color: var(--accent);
}
.guide-card-diff {
  font-size: .72rem; font-weight: 600; color: #2a9d60;
  background: #e8f5ee; border-radius: 10px; padding: 2px 8px;
}
.guide-fallback { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); text-align: center; }
.guide-fallback-link { font-size: .88rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.guide-fallback-link:hover { text-decoration: underline; }

.result-meta { font-size: .86rem; color: var(--text-light); margin-bottom: 16px; }
.result-meta strong { font-family: 'Inter', sans-serif; color: var(--accent); font-size: 1.1rem; }

/* ソートバー */
.sort-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; margin-bottom: 14px; padding: 8px 12px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow);
  font-size: .82rem;
}
.sort-bar-sp { display: none; }
.sort-label { color: var(--text-light); font-size: .78rem; white-space: nowrap; }
.sort-btn {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border);
  color: var(--text-light); text-decoration: none !important;
  font-size: .8rem; white-space: nowrap; transition: all .15s;
  background: #fafaf8;
}
.sort-btn:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.sort-btn.active { background: var(--accent); color: #fff !important; border-color: var(--accent); font-weight: bold; }

/* ====== 地図 ====== */
.map-wrap { margin-bottom: 24px; overflow: hidden; border-radius: var(--radius); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-address { font-size: .8rem; color: var(--text-muted); margin-top: 7px; }

/* Leafletポップ地図 */
.map-wrap-leaflet { overflow: visible; }
#company-map { width: 100%; height: 340px; border-radius: var(--radius); border: 2px solid var(--border); }

/* カスタムピン */
.map-pin-pop {
  width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.map-pin-pop::before {
  content: '';
  width: 40px; height: 40px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(212,87,42,.45);
  display: block;
  margin-bottom: 2px;
}
.map-pin-pop span {
  font-size: .58rem; font-weight: 800; color: var(--accent);
  background: #fff; padding: 1px 5px; border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); white-space: nowrap;
  margin-top: -2px;
}

/* ポップアップ */
.map-popup { line-height: 1.6; font-size: .82rem; }
.map-popup strong { color: var(--accent); }
.map-caption { margin-top: 6px; font-size: .78rem; text-align: right; }
.map-caption a { color: var(--text-muted); }
.map-caption a:hover { color: var(--accent); }

/* 汎用スペーシング */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }

/* 汎用テキスト */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); font-weight: 700; }
.text-muted   { color: var(--text-muted); }
.text-hint    { color: #aaa; font-size: .9rem; padding: 20px 0; }
.body-text    { font-size: .92rem; line-height: 2.0; color: var(--text-light); }
.link-accent  { font-size: .84rem; color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }
.link-back-note { margin-top: 10px; text-align: right; font-size: .85rem; }

/* 地図ラッパー（OSM/Leaflet用） */
.map-wrap-plain { overflow: visible !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
#osm-map {
  width: 100%; border-radius: 8px;
  background: #e8e0d8;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  /* Leaflet が高さを制御するため height は PHP 側の style 属性で指定 */
}

/* 汎用カード（白背景シャドウ） */
.content-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 28px;
  margin-bottom: 20px; border: 1px solid var(--border);
}
.content-card h2 {
  margin: 0 0 16px;
  font-size: 1rem; font-weight: 700; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 10px;
}

/* スタンドアロン サイドバーカード */
.sidebar-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  border: 1px solid var(--border);
}
.sidebar-card h3 {
  font-size: .92rem; color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 7px; margin: 0 0 14px;
  font-weight: 700;
}

/* 電話リンク（本文中） */
.tel-link { font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.tel-link:hover { color: var(--accent-dark); text-decoration: none; }

/* 狭いコンテナ（フォームページなど） */
.narrow-container { max-width: 720px; margin: 0 auto; }

/* ====== 建物詳細ページ ====== */
.property-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .property-detail-wrap { grid-template-columns: 1fr; } }
.detail-main { min-width: 0; }

/* 画像ギャラリー */
.gallery-wrap {
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  height: 440px;
}
.gallery-main {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  width: 52px; height: 52px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; padding: 0;
  transition: background .15s, border-color .15s, transform .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  opacity: .85;
}
.gallery-arrow:hover {
  background: rgba(0,0,0,.8);
  border-color: rgba(255,255,255,.85);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-count {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: .72rem; padding: 2px 9px; border-radius: 10px;
  pointer-events: none;
}
.gallery-thumbs {
  display: flex; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.gallery-thumb {
  flex-shrink: 0;
  width: 86px; max-width: 86px; height: 62px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: opacity .15s, border-color .15s;
}
.gallery-thumb:hover { opacity: .88; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

/* property.php ギャラリー（detail-main 内に配置） */
.prop-hero-gallery {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
/* ギャラリー タイプ切替タブ */
.gallery-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  background: #faf8f5; padding: 0 8px;
}
.gallery-tab {
  padding: 8px 16px; border: none; background: none;
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; position: relative; transition: color .15s;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.gallery-tab:hover { color: var(--ink); }
.gallery-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.gallery-wrap.prop-gallery-main-wrap {
  border-radius: 0; overflow: hidden;
  margin: 0 !important;
  height: 380px; background: #eee;
}
.prop-gallery-main {
  max-height: 100%; max-width: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0 !important; display: block;
}
.prop-gallery-thumbs {
  background: var(--bg); padding: 8px 10px;
  display: flex; gap: 6px; overflow-x: auto;
}
.prop-gallery-thumbs .gallery-thumb {
  width: 72px; height: 72px; max-width: 72px;
  object-fit: contain; object-position: center;
  border-radius: 4px; background: #f0f0f0;
  cursor: pointer; opacity: .5; flex-shrink: 0;
  border: 2px solid transparent; transition: opacity .2s;
}
.prop-gallery-thumbs .gallery-thumb.active,
.prop-gallery-thumbs .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.prop-gallery-noimg {
  height: 300px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #ddd;
}

/* room.php ヒーローギャラリー */
.room-hero-gallery { background: #181818; }
.gallery-wrap.gallery-hero {
  border-radius: 0; overflow: hidden; background: #181818;
  padding: 0; height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-hero .gallery-main {
  max-height: 100%; max-width: 100%;
  width: auto !important; height: auto;
  object-fit: contain;
  border-radius: 0 !important; background: none; display: block;
}
.gallery-thumbs-hero {
  background: #111; padding: 8px 12px;
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-thumbs-hero::-webkit-scrollbar { display: none; }
.gallery-thumbs-hero .gallery-thumb {
  width: 76px; max-width: 76px; height: 54px;
  object-fit: cover; border-radius: 4px;
  cursor: pointer; opacity: .5; flex-shrink: 0;
  border: 2px solid transparent; transition: opacity .2s;
}
.gallery-thumbs-hero .gallery-thumb.active,
.gallery-thumbs-hero .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.gallery-noimg-hero {
  height: 320px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #ddd;
}

/* ====== 建物詳細 property.php ====== */

/* 空室リスト（3列グリッド） */
.prop-room-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.prop-room-card {
  background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none !important;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
  border: 1px solid transparent;
}
.prop-room-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  transform: translateY(-2px);
  border-color: var(--accent);
}
/* 図面画像（上部・4:3） */
.prc-madori { width: 100%; aspect-ratio: 1/1; background: #f0f1f3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prc-madori--none { opacity: 0; pointer-events: none; }
.prc-madori img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
/* カード情報エリア */
.prc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prc-roomno-top { font-size: 1rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 簡易テーブル */
.prc-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.prc-table th { color: var(--text-light); font-weight: 500; white-space: nowrap; padding: 3px 6px 3px 0; width: 28%; }
.prc-table td { color: var(--text); padding: 3px 4px; }
.prc-table tr + tr th, .prc-table tr + tr td { border-top: 1px solid var(--border); }
.prc-rent-cell { font-size: .95rem; font-weight: 700; color: var(--accent); }
.prc-rent-cell small { font-size: .68rem; font-weight: normal; color: var(--text-light); }
.prc-mgmt-inline { font-size: .75rem; font-weight: normal; color: var(--text-light); }
.prc-brk-inline { font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: 8px; }
.prc-brk-inline--free { background: #e8001a; color: #fff; }
.prc-brk-inline--half { background: #fff3e0; color: #b5611a; }
.prc-btn {
  display: inline-block; padding: 8px 18px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: bold;
  white-space: nowrap; text-decoration: none !important;
}
.prc-btn:hover { background: var(--accent-dark); color: #fff; }

/* 空室なし */
.prop-no-vacancy { background: #fff; border-radius: 10px; padding: 40px 20px; text-align: center; box-shadow: var(--shadow); color: var(--text-light); }
.prop-no-vacancy-icon { font-size: 3rem; margin-bottom: 12px; }

/* 部屋一覧ソートバー */
.prc-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.prc-header .section-title { margin-top: 0 !important; flex-shrink: 0; }
.prc-sort-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.prc-sort-label { font-size: .76rem; color: var(--text-light); white-space: nowrap; }
.prc-sort-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 11px;
  font-size: .76rem; color: var(--text-light); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.prc-sort-btn:hover  { border-color: var(--accent); color: var(--accent); }
.prc-sort-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: bold; }

/* スティッキーサイドバー (property.php) */
.prop-sidebar-sticky { position: sticky; top: 88px; align-self: flex-start; }
.sb-rent-range   { font-size: 1.1rem; color: var(--accent); }
.sb-vacancy-count{ margin-top: 4px; }
.sb-spec-list {
  display: grid; grid-template-columns: auto 1fr;
  gap: 5px 14px; font-size: .84rem; margin: 0;
}
.sb-spec-list dt { color: var(--text-light); }
.sb-spec-list dd { font-weight: bold; color: var(--text); margin: 0; }

/* property.php レスポンシブ */
@media (max-width: 640px) {
  .gallery-wrap.prop-gallery-main-wrap { height: auto; aspect-ratio: 1 / 1; width: 100%; }
  .prop-summary-inner { padding: 12px 14px; flex-direction: column; align-items: flex-start; }
  .psb-right { text-align: left; }
  .prop-room-list { grid-template-columns: repeat(2, 1fr); }
  .prc-madori { aspect-ratio: 1/1; }
  .prc-action { width: 100%; }
  .prc-btn { display: block; text-align: center; }
  .prop-sidebar-sticky { position: static; }
}

/* サマリーバー（property.php） */
.prop-summary-bar { background: #fff; border-bottom: 1px solid var(--border); }
.prop-summary-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 16px;
}
.psb-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.psb-address { font-size: .82rem; color: var(--text-muted); }
.psb-rent {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.psb-rent-range { font-size: 1rem; color: var(--text-light); }
.psb-rent small { font-size: .75rem; color: var(--text-muted); font-weight: 400; margin-left: 3px; }
.vacancy-badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; margin-top: 4px;
}
.vacancy-open { background: #e8f5ee; color: #1e7a45; }
.vacancy-none { background: #f5f5f5; color: var(--text-muted); }

.detail-title { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 16px 0 4px; }
.detail-address { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }

/* スペックテーブル */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th {
  background: #f7f7f7;
  color: var(--text);
  width: 120px;
  padding: 9px 12px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.spec-table td { padding: 9px 12px; border: 1px solid var(--border); font-size: .9rem; }
.spec-table tr:hover td { background: var(--accent-lt); }

/* 部屋一覧テーブル */
.room-table-wrap { overflow-x: auto; }
.room-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 560px;
}
.room-table th {
  background: var(--ink);
  color: #fff;
  padding: 9px 10px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid #333;
  white-space: nowrap;
}
.room-table td {
  padding: 10px;
  border: 1px solid var(--border);
  text-align: center;
  background: #fff;
}
.room-table tbody tr:nth-child(even) td { background: #fafafa; }
.room-table tbody tr:hover td { background: var(--accent-lt); }
.room-rent-cell { font-family: 'Inter', sans-serif; color: var(--accent); font-weight: 700; font-size: .98rem; }
.btn-room {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  transition: background .15s;
}
.btn-room:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* 詳細サイドバー */
.detail-sidebar .sidebar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.detail-sidebar .sidebar-card h3 {
  font-size: .92rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 7px;
  margin-bottom: 14px;
  font-weight: 700;
}
.sidebar-rent { font-family: 'Inter', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.sidebar-rent small { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.sidebar-fees { font-size: .84rem; color: var(--text-light); margin-top: 10px; line-height: 2; }
.sidebar-fees dt { display: inline; font-weight: 600; color: var(--text); }
.sidebar-fees dd { display: inline; margin-left: 6px; margin-right: 16px; }

.btn-contact {
  display: block;
  text-align: center;
  padding: 15px 13px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(212,87,42,.40);
  transition: background .18s, transform .18s, box-shadow .18s;
  animation: btn-pulse 2.8s ease-in-out infinite;
}
.btn-contact:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(212,87,42,.50);
  animation: none;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(212,87,42,.40); }
  50%       { box-shadow: 0 4px 22px rgba(212,87,42,.65); }
}
.btn-contact-sub {
  display: block;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  margin-top: 8px;
  transition: background .15s, color .15s;
}
.btn-contact-sub:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-contact-inline { display: inline-block; }

/* 入居条件バッジ */
.cond-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cond-badge { font-size: .76rem; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.cond-ok  { background: #e6f5ee; color: #1a7040; }
.cond-ng  { background: #fdeaea; color: #932020; }
.cond-any { background: #f0f0f0; color: #777; }

/* 設備タグ（旧・互換用） */
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.feature-tag {
  background: #f5f5f5;
  color: var(--text);
  font-size: .76rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── 設備アイコングリッド ── */
.feat-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.feat-cat-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.feat-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.feat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  background: var(--bg-sub, #f7f8fa);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: background .15s, box-shadow .15s;
}
.feat-icon-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.feat-icon-item iconify-icon,
.feat-icon-item .feat-svg {
  color: var(--accent);
  flex-shrink: 0;
}
.feat-svg svg {
  width: 100%;
  height: 100%;
}
.feat-icon-item span {
  font-size: .68rem;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
}

/* ====== お問い合わせ ====== */

/* 2カラムレイアウト：フォーム左・会社情報右 */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 0 40px;
}
.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

/* フォーム本体 */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.cf-row { display: flex; flex-direction: column; gap: 0; }
.cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-group { display: flex; flex-direction: column; gap: 4px; }
.cf-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.cf-group label .required { color: #d32f2f; font-size: .72rem; margin-left: 3px; }
.cf-group input[type=text],
.cf-group input[type=email],
.cf-group input[type=tel],
.cf-group select,
.cf-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,87,42,.12); }
.cf-group textarea { min-height: 100px; resize: vertical; }

/* お問い合わせ種別 チェックボックス */
.cf-inquiry-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.cf-inquiry-fieldset legend {
  font-size: .82rem; font-weight: 700;
  color: var(--ink); padding: 0 4px;
}
.cf-inquiry-fieldset legend .required { color: #d32f2f; font-size: .72rem; margin-left: 3px; }
.cf-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; cursor: pointer;
  font-weight: normal; color: var(--ink);
}
.cf-check-label input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.cf-inquiry-other-wrap { margin-top: 6px; }
.cf-inquiry-other-wrap textarea {
  width: 100%; min-height: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem; font-family: inherit;
  background: #fff; box-sizing: border-box;
  outline: none; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.cf-inquiry-other-wrap textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,87,42,.12);
}

/* 旧form-card互換（残存ページ用） */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group label .required { color: #d32f2f; font-size: .73rem; margin-left: 4px; }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .94rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,87,42,.12); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: 10px; line-height: 1.7; }

/* 右サイドバー：会社情報 */
.cs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.cs-logo {
  margin-bottom: 10px;
  line-height: 1;
}
.cs-logo img { display: block; max-width: 140px; height: auto; }
.cs-company {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 8px;
}
.cs-address {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.cs-tel {
  margin-bottom: 14px;
}
.cs-tel a {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .02em;
}
.cs-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: .78rem;
  margin: 0;
}
.cs-info dt { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.cs-info dd { margin: 0; color: var(--ink); }
.cs-info a  { color: var(--accent); }
.cs-privacy {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
}

/* レスポンシブ：スマホは1カラム */
@media (max-width: 680px) {
  .contact-layout { grid-template-columns: 1fr; gap: 20px; padding: 16px 0 32px; }
  .cf-row-2 { grid-template-columns: 1fr; }
}
/* 送信ボタン専用アクセント（コントラスト比 4.6:1 確保） */
:root { --accent-cta: #c04420; }

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: 8px;
  letter-spacing: .03em;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:active { transform: scale(.98); background: #9e3412; }
.btn-submit:focus-visible {
  outline: 2px solid #c04420;
  box-shadow: 0 0 0 3px rgba(192,68,32,.30);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

/* フォームフォーカスリング強化 */
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
  border-color: #c04420;
  box-shadow: 0 0 0 3px rgba(192,68,32,.30);
  outline: 2px solid #c04420;
}

/* リード文 */
.contact-lead {
  background: #fff8f5;
  border-left: 3px solid var(--accent-cta);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.8;
}
.contact-lead p { margin: 0; }

/* 電話CTA ボタン（2026-04-17 改装: 4専門家協議で B案薄塗り採用）
   - 背景 #fff3ee + 文字 #c04420 = WCAG AA合格 (4.5:1+)
   - 送信ボタン(濃オレンジ塗り)とのヒエラルキー: 電話=セカンダリ・薄塗り
   - ホバー時に塗り反転でフィードバック
   - iOS Safari の tel リンク自動青化を !important で上書き */
.contact-tel-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff3ee;
  color: #c04420 !important;
  border: 1px solid #c04420;
  border-radius: 10px;
  padding: 14px 20px;
  text-decoration: none !important;
  margin-bottom: 20px;
  transition: background .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: rgba(192, 68, 32, 0.15);
}
.contact-tel-cta:hover {
  background: #c04420;
  color: #fff !important;
  text-decoration: none !important;
}
.contact-tel-cta:active { transform: scale(.98); }
.contact-tel-cta__icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-tel-cta__body { display: flex; flex-direction: column; gap: 2px; }
.contact-tel-cta__action { font-size: .82rem; font-weight: 700; }
.contact-tel-cta__num { font-size: 1.5rem; font-weight: 900; letter-spacing: .04em; font-family: 'Inter','Noto Sans JP',sans-serif; }
.contact-tel-cta__hours { font-size: .74rem; opacity: .85; }

/* 送信ボタン直下の注記 */
.cf-submit-note {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}

/* エラーリスト（PHP出力 + JS インライン共通） */
.cf-error-list {
  background: #fdeaea; color: #932020;
  border: 1px solid #f5b4b4;
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 20px; font-size: .94rem;
}
.cf-error-list ul { margin: 0; padding-left: 20px; }

/* チェックボックス カード型（デスクトップ） */
.cf-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; cursor: pointer;
  font-weight: normal; color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .12s, background .12s;
}
.cf-check-label:has(input:checked) {
  border-color: var(--accent-cta);
  background: #fff5f0;
}
.cf-check-label input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--accent-cta); cursor: pointer;
}

.msg-success {
  background: #e6f5ee; color: #1a7040;
  border: 1px solid #a8dfc0;
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 20px; font-size: .94rem;
}
.msg-error {
  background: #fdeaea; color: #932020;
  border: 1px solid #f5b4b4;
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 20px; font-size: .94rem;
}
.msg-error ul { margin: 0; padding-left: 20px; }

/* ====== 会社案内 ====== */
.company-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .company-layout { grid-template-columns: 1fr; } }
.company-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.company-table th {
  background: #f7f7f7;
  color: var(--text);
  width: 140px;
  padding: 11px 14px;
  font-size: .86rem;
  font-weight: 600;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.company-table td { padding: 11px 14px; border: 1px solid var(--border); font-size: .92rem; line-height: 1.8; }

.license-box {
  background: var(--accent-lt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: .9rem;
  line-height: 1.9;
}

/* ====== 部屋詳細 room.php ====== */

/* room-hero は2列グリッドとして上書き（style.css の .room-hero 基本定義を拡張） */
.room-hero {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;     /* 間取り[左] | 写真[右] 同幅 */
  grid-template-rows: 420px;          /* 正方形に近い高さ */
  gap: 10px;
  align-items: stretch;
}
/* 写真カラム（右）：flex で縦伸長 */
.hero-photos {
  position: relative; min-width: 0;
  display: flex; flex-direction: column;
}
.hero-photos-full { grid-column: 1 / -1; }
.hero-main-wrap {
  position: relative; overflow: hidden;
  border-radius: 10px; background: #f0ece8;
  flex: 1;
}
.hero-main-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  display: block; border-radius: 10px;
}
.hero-thumbs {
  display: flex; gap: 6px; margin-top: 8px;
  overflow-x: auto; scrollbar-width: thin;
  padding-bottom: 4px;
}
.hero-thumbs .gallery-thumb {
  width: 60px; height: 60px; object-fit: contain; object-position: center;
  border-radius: 5px; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent; opacity: .7;
  background: #f0ece8;
  transition: opacity .15s, border-color .15s;
}
.hero-thumbs .gallery-thumb.active,
.hero-thumbs .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.hero-noimg {
  aspect-ratio: 4/3; background: #f0ece8; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.photo-disclaimer {
  font-size: 0.7rem; color: #999; text-align: center;
  margin: 6px 0 0; line-height: 1.4;
}

/* 間取りパネル（左・主役） */
.hero-plan {
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  border: 2px solid var(--accent);        /* 主役強調ボーダー */
}
/* ラベル：物件名・号室・間取り・面積を横並び表示 */
.hero-plan-label {
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
  padding: 7px 10px; font-size: .78rem; font-weight: 600;
  line-height: 1.4;
}
.hero-plan-label-name {
  font-weight: 700; font-size: .84rem;
  color: #fff; text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.5);
  transition: border-color .15s;
}
.hero-plan-label-name:hover { border-bottom-color: #fff; }
.hero-plan-bld-cta {
  margin-left: 8px; padding: 4px 10px;
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.45); border-radius: 14px;
  font-size: .72rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: background .15s, border-color .15s;
  min-height: 24px; display: inline-flex; align-items: center;
}
.hero-plan-bld-cta:hover { background: rgba(255,255,255,.32); border-color: #fff; }
/* spec-table 内部のエリア・路線・駅・住所リンク */
.link-area {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: border-bottom-style .15s, color .15s;
}
.link-area:hover { border-bottom-style: solid; }
.hero-plan-label-no {
  font-weight: 800; font-size: .88rem;
}
.hero-plan-label-type {
  font-weight: 800; font-size: .96rem; letter-spacing: .04em;
}
.hero-plan-label-area { font-size: .8rem; }
.hero-plan-label-sep  { opacity: .6; font-size: .7rem; }
/* 旧クラス（後方互換）*/
.hero-plan-label-sub  { font-size: .72rem; font-weight: 500; opacity: .85; }
/* 画像ラッパー：余白・クリックヒント */
.hero-plan-imgwrap {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  background: #faf8f5; overflow: hidden;
}
.hero-plan-img {
  max-width: 100%; max-height: 100%; display: block; cursor: zoom-in;
  object-fit: contain; object-position: center; padding: 10px;
}
.hero-plan-zoom-hint {
  position: absolute; bottom: 8px; right: 10px;
  font-size: .65rem; color: #bbb; pointer-events: none;
}
/* --- 画像フォールバック表示（間取り/外観なし時の仮表示） --- */
.hero-plan-fallback { position: relative; }
.hero-plan-fallback-label {
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center; font-size: .7rem; color: #fff;
  background: rgba(0,0,0,.55); padding: 4px 8px;
  pointer-events: none;
}
.hero-photo-fallback { position: relative; }
.hero-plan-thumbs {
  display: flex; gap: 5px; padding: 6px 8px;
  overflow-x: auto; scrollbar-width: thin;
  border-top: 1px solid var(--border);
}
.plan-thumb {
  width: 54px; height: 54px; object-fit: contain; object-position: center;
  border-radius: 4px; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent; opacity: .65;
  background: #faf8f5;
  transition: opacity .15s, border-color .15s;
}
.plan-thumb.active, .plan-thumb:hover { opacity: 1; border-color: var(--accent); }
.hero-plan-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #faf8f5; min-height: 180px;
  padding: 24px 16px;
}
.hero-plan-ph-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; opacity: .45; }
.hero-plan-ph-text { font-size: .88rem; font-weight: 700; color: #bbb; text-align: center; margin: 0 0 6px; line-height: 1.5; }
.hero-plan-ph-sub  { font-size: .72rem; color: #ccc; margin: 0; }

/* 間取りライトボックス */
.plan-lightbox {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85); z-index: 9999;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.plan-lightbox.open { display: flex; }
.plan-lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 6px; }
.plan-lb-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* スティッキーバー */
.room-sticky-bar {
  position: fixed; top: 72px; left: 0; right: 0;
  z-index: 500; background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transform: translateY(-130%); transition: transform .28s ease;
}
.room-sticky-bar.visible { transform: translateY(0); }
.room-sticky-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.sticky-name {
  font-weight: bold; font-size: .9rem; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sticky-room-no { color: var(--text-light); font-weight: normal; margin-left: 4px; }
.sticky-meta    { font-size: .8rem; color: var(--text-light); white-space: nowrap; }
.sticky-rent    { font-size: 1.1rem; font-weight: bold; color: var(--accent); white-space: nowrap; }
.sticky-rent small { font-size: .7rem; font-weight: normal; color: var(--text-light); }
.sticky-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sticky-tel-btn, .sticky-mail-btn {
  padding: 7px 18px; border-radius: 20px;
  font-size: .82rem; font-weight: bold;
  text-decoration: none !important; white-space: nowrap;
  transition: opacity .2s;
}
.sticky-tel-btn  { background: var(--accent); color: #fff !important; }
.sticky-mail-btn { background: #f0ece8; color: var(--text) !important; }
.sticky-tel-btn:hover, .sticky-mail-btn:hover { opacity: .82; }

/* 建物詳細ページ モバイル用スティッキー CTA（PC はサイドバーで代替） */
.prop-sticky-bar {
  display: none; /* PC では非表示 */
  position: fixed; bottom: 56px; left: 0; right: 0; /* sp-fixed-bar(56px)の上 */
  z-index: 490; background: #fff;
  box-shadow: 0 -3px 12px rgba(0,0,0,.12);
  transform: translateY(100%); transition: transform .28s ease;
}
.prop-sticky-bar.visible { transform: translateY(0); }
.prop-sticky-inner {
  padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
}
.prop-sticky-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.prop-sticky-name {
  font-size: .82rem; font-weight: bold;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prop-sticky-rent { font-size: .78rem; color: var(--accent); font-weight: bold; }
.prop-sticky-actions { display: flex; gap: 6px; flex-shrink: 0; }
.prop-sticky-tel, .prop-sticky-mail {
  padding: 7px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: bold;
  text-decoration: none !important; white-space: nowrap;
  transition: opacity .2s;
}
.prop-sticky-tel  { background: var(--accent); color: #fff !important; }
.prop-sticky-mail { background: #f0ece8; color: var(--text) !important; }
.prop-sticky-tel:hover, .prop-sticky-mail:hover { opacity: .82; }
@media (max-width: 768px) {
  .prop-sticky-bar { display: block; }
}

/* 建物名バー */
.room-title-bar { background: #fff; border-bottom: 1px solid #ede8e2; }
.room-title-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.rtb-name   { font-size: 1.2rem; font-weight: bold; margin: 0 0 4px; line-height: 1.4; }
.rtb-room-no{ font-size: 1rem; color: var(--text-light); margin-left: 6px; }
.rtb-address{ font-size: .82rem; color: var(--text-light); margin: 0; }
.rtb-right  { text-align: right; flex-shrink: 0; }
.rtb-rent   { font-size: 1.6rem; font-weight: bold; color: var(--accent); line-height: 1.2; }
.rtb-rent small { font-size: .72rem; font-weight: normal; color: var(--text-light); }
.rtb-mgmt   { font-size: .8rem; color: var(--text-light); margin-top: 2px; }
.status-applying { background: #e67e22; color: #fff; }
.status-closed   { background: #95a5a6; color: #fff; }

/* 詳細タブ（フォルダー型） */
.detail-tabs {
  display: flex; align-items: flex-end;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  gap: 3px;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 24px 9px;
  background: #f0ece7;
  border: 2px solid #d6cec5; border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer; font-size: .88rem; font-weight: bold;
  color: var(--text-light); white-space: nowrap;
  transition: background .15s, color .15s;
  position: relative; top: 2px;
}
.tab-btn.active {
  background: #fff;
  border-color: var(--accent); border-bottom-color: #fff;
  color: var(--accent);
  z-index: 1;
}
.tab-btn:not(.active):hover { background: #e8e2db; color: var(--text); }
.tab-pane        { display: none; padding-top: 20px; }
.tab-pane.active { display: block; }

/* 賃料グリッド */
.info-cost-grid {
  display: flex; flex-wrap: wrap; gap: 0;
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.icg-item {
  flex: 1; min-width: 80px;
  padding: 12px 14px; text-align: center;
  border-right: 1px solid #f0ece8;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.icg-item:last-child { border-right: none; }
.icg-label   { font-size: .72rem; color: var(--text-light); font-weight: 500; white-space: nowrap; }
.icg-val     { font-size: .95rem; font-weight: bold; color: var(--text); }
.icg-unit    { font-size: .7rem; color: var(--text-light); }
.icg-rent-val{ font-size: 1.25rem; color: var(--accent); }

/* 物件概要グリッド */
.info-spec-grid {
  display: flex; flex-wrap: wrap; gap: 0;
  background: #f8f5f2; border-radius: 10px;
  overflow: hidden; margin-bottom: 14px;
  border: 1px solid #ede8e2;
}
.isg-item {
  flex: 1; min-width: 90px;
  padding: 10px 14px; text-align: center;
  border-right: 1px solid #ede8e2;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.isg-item:last-child { border-right: none; }
.isg-label { font-size: .7rem; color: var(--text-light); white-space: nowrap; }
.isg-val   { font-size: .9rem; font-weight: bold; color: var(--text); }

/* 入居可能日 */
.info-available {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: var(--accent-lt); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 9px 14px; margin-bottom: 14px; font-size: .88rem;
}
.ia-label  { font-size: .72rem; color: var(--text-light); flex-shrink: 0; }
.ia-val    { font-weight: bold; color: var(--text); }
.ia-teiki  { display: inline-block; background: #e67e22; color: #fff; font-size: .7rem; font-weight: bold; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; margin-left: 8px; }
.ia-teiki-period { font-size: .82rem; color: var(--text-light); }

/* 物件概要テーブル拡張 */
.spec-room-grid th { width: auto; white-space: nowrap; }
.srg-rent { color: var(--accent); font-weight: bold; font-size: 1.05rem; }
.srg-rent small { font-size: .72rem; font-weight: normal; color: var(--text-light); }
.spec-sep  { color: var(--text-light); margin: 0 3px; font-weight: normal; }
.spec-sub  { color: var(--text); font-weight: normal; font-size: .9rem; }
.spec-mgmt { font-size: .78rem; font-weight: normal; color: var(--text-light); margin-left: 6px; }
.spec-table-sub { margin-bottom: 6px; }

/* サブセクションタイトル */
.sub-section-title {
  font-size: .95rem; font-weight: bold;
  margin: 20px 0 10px;
  padding-left: 10px; border-left: 3px solid var(--accent);
}
.detail-text-box {
  background: #fff; border-radius: 8px;
  padding: 14px 16px; font-size: .9rem;
  line-height: 1.9; box-shadow: var(--shadow);
}
/* スタッフコメント */
.staff-comment-box {
  position: relative;
  background: #fef9f6; border: 1px solid #f0ddd4;
  border-radius: 10px; padding: 16px 18px 16px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.staff-comment-text {
  font-size: .9rem; line-height: 1.9; color: var(--ink);
  margin: 0; padding-right: 65px;
}
.staff-comment-chara {
  position: absolute; right: 10px; bottom: 8px;
  width: 60px; height: auto; opacity: .45;
  pointer-events: none;
}
@media (max-width: 600px) {
  .staff-comment-chara { width: 38px; right: 6px; bottom: 4px; opacity: .35; }
  .staff-comment-text { padding-right: 42px; }
}

/* 入居条件グリッド */
.cond-grid-large {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 8px;
}
.cond-item-large {
  background: #fff; border-radius: 8px;
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow);
}
.cond-label-lg { display: block; font-size: .78rem; color: var(--text-light); margin-bottom: 6px; }

/* 他の空室 */
.other-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.other-room-card {
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow);
  text-decoration: none !important; display: flex;
  flex-direction: column; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.other-room-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); transform: translateY(-2px); }
.orc-img {
  width: 100%; aspect-ratio: 1/1;
  background: #f5f1ec; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.orc-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.orc-img-placeholder { font-size: .72rem; color: #bbb; text-align: center; line-height: 1.6; }
.orc-body { padding: 7px 10px 9px; }
.orc-head {
  display: flex; align-items: baseline; gap: 5px;
  margin-bottom: 5px;
}
.orc-room-no { font-weight: 700; font-size: .95rem; color: var(--text); white-space: nowrap; }
.orc-layout  { font-weight: 700; font-size: .95rem; color: var(--text); }
.orc-foot {
  display: flex; align-items: baseline; gap: 6px;
}
.orc-rent     { font-size: .9rem; font-weight: 700; color: var(--accent); }
.orc-sub      { font-size: .74rem; color: var(--text-light); }
.orc-bld-name { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-rooms-sub, .series-layout-sub { font-size: .82rem; color: var(--text-muted); margin: 4px 0 12px; }

/* 周辺施設 */
.nf-loading { color: var(--text-muted); font-size: .82rem; padding: 8px 0; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.nf-cat { background: #faf9f7; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.nf-cat-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.nf-icon  { font-size: 1rem; }
.nf-label { font-size: .85rem; font-weight: 700; color: var(--text); }
.nf-unit  { font-size: .72rem; color: var(--text-muted); margin-left: auto; }
.nf-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.nf-item  { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .82rem; }
.nf-name  { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nf-dist  { color: var(--accent); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* スティッキーサイドバー */
.room-sidebar-sticky { position: sticky; top: 76px; align-self: flex-start; }

/* サイドバー空室リスト */
.sb-vacancy-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle;
}
.sb-room-list { list-style: none; margin-top: 8px; }
.sb-room-item + .sb-room-item { border-top: 1px solid var(--border); }
.sb-room-link {
  display: block; padding: 10px 4px;
  text-decoration: none; color: inherit;
  transition: background .15s;
  border-radius: var(--radius-sm);
}
.sb-room-link:hover { background: var(--accent-lt); text-decoration: none; color: inherit; }
/* 1行目: 号室・間取り・面積 */
.sb-room-row1 { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.sb-room-row1 strong { font-size: .95rem; color: var(--ink); white-space: nowrap; }
.sb-room-layout { font-size: .82rem; color: var(--text); }
.sb-room-area   { font-size: .78rem; color: var(--text-light); margin-left: auto; white-space: nowrap; }
/* 2行目: 賃料・管理費・敷礼 */
.sb-room-row2 { display: flex; align-items: baseline; gap: 8px; }
.sb-room-rent  { font-weight: 700; color: var(--accent); font-size: .92rem; white-space: nowrap; }
.sb-room-rent small { font-size: .68rem; font-weight: 400; color: var(--text-light); }
.sb-room-sub2  { font-size: .73rem; color: var(--text-light); white-space: nowrap; }
.sb-no-vacancy { font-size: .85rem; color: var(--text-muted); padding: 8px 0; }

/* ===== お気に入り ===== */
.fav-btn-card { padding: 12px 20px !important; }
.btn-fav {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  border: 2px solid var(--border-dark); background: #fff;
  color: var(--text); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-fav:hover   { border-color: #e74c6f; color: #e74c6f; }
.btn-fav.is-fav  { background: #fff0f3; border-color: #e74c6f; color: #e74c6f; }
.fav-icon { font-size: 1.1rem; line-height: 1; }
.fav-counter { font-size: .72rem; color: var(--text-muted); font-weight: 400; margin-left: 4px; }

.fav-list { list-style: none; margin: 8px 0 12px; }
.fav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .82rem;
}
.fav-name { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-name:hover { color: var(--accent); }
.fav-remove {
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; padding: 0 0 0 8px; line-height: 1;
  flex-shrink: 0;
}
.fav-remove:hover { color: #e74c6f; }
.fav-inquiry-btn { display: block; text-align: center; margin-top: 4px; }

/* お問い合わせページのお気に入りサマリー */
.fav-inquiry-summary {
  background: #fff0f3; border: 1px solid #f5c2cc;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px;
}
.fav-inquiry-label { font-size: .85rem; font-weight: 700; color: #c0365a; margin-bottom: 8px; }
.fav-inquiry-list  { list-style: none; }
.fav-inquiry-list li { font-size: .85rem; padding: 2px 0; }
.fav-inquiry-list li::before { content: '🏠 '; }
.fav-inquiry-list a { color: var(--accent); }

/* （旧）サイドバー賃料カード */
.sb-rent-main {
  font-size: 1.9rem; font-weight: bold;
  color: var(--accent); line-height: 1.2; margin-bottom: 12px;
}
.sb-rent-main small { font-size: .72rem; font-weight: normal; color: var(--text-light); }
.sb-fee-list {
  display: grid; grid-template-columns: auto 1fr;
  gap: 5px 14px; font-size: .84rem;
  border-top: 1px solid #f0ece8; padding-top: 10px; margin: 0;
}
.sb-fee-list dt { color: var(--text-light); }
.sb-fee-list dd { font-weight: bold; color: var(--text); margin: 0; }

/* サイドバー条件リスト */
.sb-cond-list { display: flex; flex-direction: column; }
.sb-cond-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f5f0eb; font-size: .83rem;
}
.sb-cond-row:last-child { border-bottom: none; }
.sb-cond-row > span:first-child { color: var(--text-light); }

/* 管理者パネル */
.admin-panel {
  margin-top: 24px; background: #fff8e1;
  border: 2px dashed #e0a030; border-radius: 10px; padding: 16px 18px;
}
.admin-panel-title {
  font-size: .88rem; color: #b07020; margin-bottom: 10px;
  border-left: 4px solid #e0a030; padding-left: 8px;
}
.admin-panel-btn {
  display: inline-block; padding: 7px 16px;
  background: var(--accent); color: #fff !important;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: bold;
  text-decoration: none !important;
}
.admin-panel-btn:hover { background: var(--accent-dark); }
.admin-panel-btn-sub { background: #888; }
.admin-panel-btn-sub:hover { background: #666; }
.admin-panel-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

/* room.php レスポンシブ */
@media (max-width: 860px) {
  /* タブレット: 2列維持、高さを縮小して横並びを保つ */
  .room-hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding: 0 10px; gap: 8px; }
  .hero-main-wrap { height: auto; aspect-ratio: 1 / 1; width: 100%; }
  .hero-plan-imgwrap { min-height: auto; aspect-ratio: 1 / 1; width: 100%; }
}
@media (max-width: 480px) {
  /* スマホ: 1列に切り替え */
  .room-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .room-hero { padding: 0 10px; }
  .room-sticky-inner { padding: 8px 14px; gap: 8px; }
  .sticky-meta { display: none; }
  .sticky-rent { font-size: 1rem; }
  .sticky-tel-btn, .sticky-mail-btn { padding: 6px 12px; font-size: .78rem; }
  .room-title-bar-inner { padding: 12px 14px; flex-direction: column; align-items: flex-start; }
  .rtb-right { text-align: left; }
  .rtb-rent { font-size: 1.4rem; }
  .tab-btn { padding: 10px 14px; font-size: .82rem; }
  .cond-grid-large { grid-template-columns: repeat(2, 1fr); }
  .room-sidebar-sticky { position: static; }
  .info-cost-grid { flex-wrap: wrap; }
  .icg-item { min-width: calc(50% - 1px); border-bottom: 1px solid #f0ece8; }
  .info-spec-grid { flex-wrap: wrap; }
  .isg-item { min-width: calc(50% - 1px); border-bottom: 1px solid #ede8e2; }
}

/* ====== フッター ====== */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 16px 28px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.footer-logo .logo-icon { color: var(--accent); font-size: 1.2rem; }
.footer-logo .logo-text { color: #fff; font-size: 1.2rem; font-weight: 700; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h3 {
  font-size: .82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col p { font-size: .8rem; line-height: 2; margin-bottom: 8px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-col ul li a { display: block; padding: 3px 0; font-size: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  margin-top: 28px;
  text-align: center;
  font-size: .74rem;
  color: #666;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   エリア情報ブロック (property.php)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.area-info-section {
  margin-top: 32px;
  border-top: 2px solid var(--border);
  padding-top: 24px;
}
.area-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 16px;
  margin-top: 0;
}
.area-info-accordion { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.area-info-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; cursor: pointer;
  background: #faf7f3;
  font-size: .97rem; font-weight: 700; color: #1a1a1a; letter-spacing: .01em;
  user-select: none;
  list-style: none;
}
.area-info-head::-webkit-details-marker { display: none; }
.area-info-head .aia-icon { font-size: 1rem; }
.area-info-head > span:not(.aia-icon):not(.aia-catch):not(.aia-arrow) {
  flex-shrink: 0; /* タイトルを圧縮させない */
}
.area-info-head .aia-catch {
  flex: 1; min-width: 0; font-size: .75rem; font-weight: 400;
  color: #aaa; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: right;
}
.area-info-head .aia-arrow {
  margin-left: auto; font-size: 1rem; color: #c8a06a; flex-shrink: 0;
  display: inline-block;
  transition: transform .3s ease;
  animation: aia-bounce 2s ease-in-out infinite;
}
details[open] .area-info-head .aia-arrow {
  transform: rotate(180deg);
  animation: none; /* 開いたらバウンス停止 */
}
@keyframes aia-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(4px); }
}
.area-info-body {
  padding: 16px 18px 18px;
  font-size: .84rem; line-height: 1.9; color: #555;
  border-top: 1px solid var(--border);
}
.area-info-body p + p { margin-top: 1em; }
.area-ext-link {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.area-ext-link a {
  font-size: .82rem;
  color: var(--accent);
  text-decoration: none;
}
.area-ext-link a:hover { text-decoration: underline; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   エリア分析（レーダーチャート）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.analysis-section {
  padding: 20px 0;
}
.analysis-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.analysis-subtitle {
  font-size: .8rem;
  color: #888;
  margin-bottom: 20px;
}
.analysis-chart-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.radar-chart {
  width: 340px;
  height: 340px;
  overflow: visible;
}
.radar-grid {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: .5;
}
.radar-median {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: .5;
}
.radar-axis {
  stroke: #d0d0d0;
  stroke-width: .5;
}
.radar-data {
  fill: rgba(212, 87, 42, .18);
  stroke: var(--accent);
  stroke-width: 2;
}
.radar-dot {
  fill: var(--accent);
}
.radar-label {
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
}
.radar-score {
  font-size: 14px;
  fill: var(--accent);
  font-weight: 700;
}

/* 評価テーブル */
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin-bottom: 12px;
}
.analysis-table th {
  background: var(--accent-lt);
  color: var(--ink);
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  font-size: .78rem;
  white-space: nowrap;
}
.analysis-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.at-label { font-weight: 600; white-space: nowrap; }
.at-val, .at-median { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.at-score {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.score-bar {
  display: inline-block;
  width: 60px;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
}
.score-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.sf-high { background: var(--accent); }
.sf-mid  { background: #e8a84c; }
.sf-low  { background: #bbb; }
.score-num {
  font-weight: 700;
  font-size: .85rem;
  min-width: 14px;
  text-align: right;
}
.score-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 1.5;
}
.at-eval {
  font-size: .78rem;
  color: #666;
}
.analysis-note {
  font-size: .72rem;
  color: #999;
  margin-top: 8px;
}
.analysis-narrative {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--accent-lt);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  line-height: 1.9;
  color: var(--ink);
}
.analysis-narrative strong {
  color: var(--accent-dark);
}
.analysis-narrative em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.analysis-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   関連物件セクション (property.php)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.related-section {
  background: #faf7f3;
  padding: 36px 0 40px;
  margin-top: 40px;
  border-top: 2px solid var(--border);
}
.related-section .rs-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
}
.related-section .rs-heading {
  font-size: 1rem; font-weight: 700; color: #333;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.related-section .rs-heading::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
/* グリッドレイアウト（other-rooms-grid 準拠） */
.related-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
/* 関連物件カード */
.rel-card {
  background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.rel-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateY(-2px); }
.rel-card-img {
  display: block; width: 100%; aspect-ratio: 1/1;
  object-fit: contain; object-position: center;
  background: #ece8e2; overflow: hidden;
  flex-shrink: 0; /* flex column内で潰れない */
}
/* room.php アーカイブ — divラッパー */
.rel-card-thumb {
  width: 100%; aspect-ratio: 1/1;
  background: #ece8e2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rel-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.rel-card-img-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: #ece8e2; display: flex;
  align-items: center; justify-content: center;
  font-size: 2rem; color: #ccc;
}
.rel-card-body { padding: 7px 10px 9px; flex: 1; }
.rel-card-name {
  font-size: .78rem; font-weight: 700; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.rel-card-transit {
  font-size: .72rem; color: #888; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rel-card-rent {
  font-size: .88rem; font-weight: 700; color: var(--accent);
}
.rel-card-rent small { font-size: .7rem; font-weight: 400; color: #aaa; }
.rel-card-rooms { font-size: .72rem; color: #aaa; margin-top: 2px; }
.related-group { margin-bottom: 28px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   スマホ固定バー（全ページ共通）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sp-fixed-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #d4572a 0%, #e8763c 100%);
  border-top: none;
  box-shadow: 0 -4px 20px rgba(212,87,42,.3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sp-fixed-bar .sp-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 8px;
  text-decoration: none;
  color: rgba(255,255,255,.8);
  font-size: .68rem;
  transition: color .15s, transform .15s;
  position: relative;
}
.sp-fixed-bar .sp-bar-btn::after {
  content: '';
  position: absolute;
  right: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: rgba(255,255,255,.2);
}
.sp-fixed-bar .sp-bar-btn:last-child::after { display: none; }
.sp-fixed-bar .sp-bar-btn:active {
  color: #fff;
  transform: scale(.92);
}
.sp-fixed-bar .sp-bar-icon {
  font-size: 1.3rem;
  line-height: 1;
  filter: brightness(1.1);
}
.sp-fixed-bar .sp-bar-label {
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}
@media (max-width: 768px) {
  .sp-fixed-bar { display: flex; }
  .site-footer { padding-bottom: 70px; }
}

/* ── サイドバー エリアリンク ── */
.sb-area-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--accent-lt);
  border: 1px solid #f0d0c0;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.sb-area-link:hover { background: #fce4d8; border-color: var(--accent); text-decoration: none; }

/* ── サイドバー シリーズ特集グリッド ── */
.sb-series-card { padding: 12px; }
.sb-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0;
}
.sb-series-thumb {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.sb-series-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity .15s;
}
.sb-series-thumb:hover img { opacity: .8; }
.sb-series-more {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.sb-series-more:hover { text-decoration: underline; }

/* ── サイドバー バナーリンク（シリーズ・家賃相場・賃貸ガイド）── */
.sb-banner-link {
  display: block;
  position: relative;
  height: 76px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  text-decoration: none;
  transition: filter .2s, transform .2s;
}
.sb-banner-link:last-child { margin-bottom: 0; }
.sb-banner-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 100%);
}
.sb-banner-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  letter-spacing: .04em;
}
.sb-banner-link:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   エリア内 物件検索リンク（property.php）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.area-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.area-search-link-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent-lt);
  border: 1px solid rgba(212,87,42,.25);
  border-radius: 20px;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.area-search-link-btn:hover {
  background: #fce0d4;
  border-color: var(--accent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   インラインリンク（area_content 本文中の自動リンク・P1）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.area-inline-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212,87,42,.55);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s, background .15s;
}
.area-inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(212,87,42,.06);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Contextual Footer（記事末尾の関連リンク集）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contextual-footer {
  margin: 40px 0 24px;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, #fff 0%, #fbf6f2 100%);
  border: 1px solid #ecdfd4;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(212,87,42,.05);
}
.contextual-footer-heading {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .02em;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(212,87,42,.25);
}
.contextual-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contextual-footer .cf-block {
  min-width: 0;
}
.contextual-footer .cf-title {
  margin: 0 0 10px;
  font-size: .88rem;
  font-weight: 700;
  color: #3a2a20;
  line-height: 1.4;
}
.contextual-footer .cf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contextual-footer .cf-list li {
  margin: 0;
}
.contextual-footer .cf-list a {
  display: block;
  padding: 8px 12px 8px 26px;
  position: relative;
  font-size: .82rem;
  color: #5a3a2a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #f0e3d8;
  border-radius: 8px;
  line-height: 1.45;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.contextual-footer .cf-list a::before {
  content: '›';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
}
.contextual-footer .cf-list a:hover {
  background: var(--accent-lt);
  border-color: rgba(212,87,42,.35);
  color: var(--accent-dark);
}
/* 建物情報テーブル 駅→相場LPリンク */
.link-station-lp {
  display: inline-block;
  font-size: .72rem;
  color: #fff;
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 10px;
  text-decoration: none;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.6;
  transition: background .15s;
}
.link-station-lp:hover {
  background: var(--accent-dark);
}
.link-station-lp .lp-short { display: none; }
.link-station-lp .lp-full  { display: inline; }
.transit-line { overflow: hidden; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ページヒーロー 共通（series / market / guide / school）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    162deg,
    rgba(8,8,18,.18) 0%,
    rgba(8,8,18,.62) 100%
  );
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 40px 58px;
  width: 100%;
}
.page-hero-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  border: 1.5px solid rgba(255,255,255,.42);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.page-hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .03em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow:
    0 2px 28px rgba(0,0,0,.55),
    0 1px 6px  rgba(0,0,0,.35);
}
.page-hero-sub {
  font-size: .96rem;
  color: rgba(255,255,255,.88);
  margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  max-width: 560px;
  line-height: 1.75;
}
.page-hero-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.68);
  margin-top: 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
@media (max-width: 640px) {
  .page-hero { min-height: 220px; }
  .page-hero-inner { padding: 40px 20px 36px; }
  .page-hero-title { font-size: 1.55rem; }
  .page-hero-sub { font-size: .87rem; }
}

/* スマホ折りたたみ: PC/タブレットではボタン非表示・パネル常時表示 */
.sp-filter-toggle { display: none; }
.sp-filter-collapsible { display: block !important; }

/* SP専用改行: PCでは非表示、スマホで改行 */
.sp-only { display: none; }
@media (max-width: 600px) { .sp-only { display: inline; } }
