/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: #333;
  background: #f0f0f0;
  line-height: 1.5;
}
a { color: #1558d6; text-decoration: none; }
a:hover { text-decoration: underline; color: #0d3d91; }

/*.is-hidden { display: none; }*/

/* ===== CSS VARIABLES ===== */
:root {
  /* ── BLUE THEME (全体を青系に統一) ── */
  --blue-main:   #1a6abf;
  --blue-dark:   #1255a0;
  --blue-light:  #e8f4fd;
  --blue-border: #b8d8f5;
  --blue-text:   #1558d6;

  /* 旧 red 変数 → blue に差し替え */
  --red:       #d94035;
  --red-dark:  #b5302a;
  --red-light: #fdf0ef;
  --border: #ddd;
  --bg-panel: #fff;
  --bg-section-head: #1a6abf;   /* ← 左パネル見出し・サイドバー見出しを青に */
  --text-muted: #777;
  --text-sub: #555;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.10);
  --col-search: 220px;
  --col-sidebar: 240px;
  --breakpoint: 900px;
  --black: #000000;
  --sgray: #888888;
}

/* ===== HEADER ===== */
#site-header {
  background: #fff;
  border-bottom: 3px solid var(--black);
  position: sticky; top: 0; z-index: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
  height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.site-logo {
  font-size: 20px; font-weight: 900; letter-spacing: 2px;
  color: var(--sgray); text-decoration: none; flex-shrink: 0;
}
.header-links {
  display: flex; gap: 14px; align-items: center;
}
.header-links a { font-size: 12px; color: #555; }
.header-links a:hover { color: var(--blue-main); text-decoration: none; }
.hamburger-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: #333; padding: 4px 8px;
  flex-shrink: 0;
}
.header-logo {
  height: 35px; margin-left: 15px; vertical-align: middle;
}

/* ===== DRAWER (SP) ===== */
.drawer-overlay {
  display: none; position: fixed;
  inset: 0; background: rgba(0,0,0,0.45); z-index: 900;
}
.drawer-overlay.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: -290px; width: 290px; height: 100%;
  background: #fff; z-index: 1000;
  transition: right 0.28s ease;
  box-shadow: -3px 0 12px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.drawer.is-open { right: 0; }
.drawer-close-row {
  display: flex; justify-content: flex-end; padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.drawer-close-btn {
  background: none; border: none; font-size: 24px; cursor: pointer; color: #888;
}
.drawer nav ul { list-style: none; }
.drawer nav ul li a {
  display: block; padding: 13px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px; color: #333;
}
/* ドロワーホバー → 水色 */
.drawer nav ul li a:hover { background: var(--blue-light); color: var(--blue-main); text-decoration: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: #fff; border-bottom: 1px solid #e8e8e8;
  padding: 7px 16px; font-size: 11px; color: #999;
}
.breadcrumb-bar .bc-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb-bar a { color: #1558d6; }
.breadcrumb-bar span { margin: 0 3px; }

/* ===== SP ACCORDION SEARCH BAR ===== */
.sp-search-bar {
  display: none;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.sp-search-bar-inner { max-width: 1200px; margin: 0 auto; }
.sp-accordion-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; cursor: pointer;
  background: #f8f8f8; border-bottom: 1px solid #eee;
  user-select: none;
}
.sp-accordion-head .cond-label {
  font-size: 13px; font-weight: bold; color: #444;
  display: flex; align-items: center; gap: 6px;
}
/* アイコン → 青 */
.sp-accordion-head .cond-label .icon { color: var(--blue-main); }
.sp-accordion-head .current-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sp-accordion-toggle-btn {
  font-size: 12px; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  white-space: nowrap; padding: 0 4px;
}
/* アコーディオン下線 → 青 */
.sp-accordion-body {
  display: none; padding: 14px;
  border-bottom: 2px solid var(--blue-main);
}
.sp-accordion-body.is-open { display: block; }

/* ===== MAIN LAYOUT WRAPPER ===== */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 14px 12px; }
.three-col {
  display: grid;
  grid-template-columns: var(--col-search) 1fr var(--col-sidebar);
  grid-template-areas: "search main sidebar";
  gap: 14px;
  align-items: start;
}
.col-search  { grid-area: search; }
.col-main    { grid-area: main; }
.col-sidebar { grid-area: sidebar; }

/* ===== PANEL BASE ===== */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}
/* パネル見出し → 青 */
.panel-head {
  background: var(--blue-main);
  color: #fff; font-size: 12px; font-weight: bold;
  padding: 7px 11px;
  display: flex; align-items: center; gap: 6px;
}
.panel-head .ph-icon { font-size: 14px; }
.panel-body { padding: 10px 11px; }

/* ===== PC LEFT SEARCH PANEL ===== */
.pc-search-panel { position: sticky; top: 56px; }

/* ── 絞り込み条件タグ → 薄い水色背景・水色文字 ── */
.cond-tag-row {
  padding: 8px 10px;
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid #e0ecf8;
}
.cond-tag {
  display: inline-block;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-text);
  border-radius: 3px; padding: 2px 7px; font-size: 11px;
  font-weight: bold;
}

/* ── 検索セクション ── */
.s-section { margin-bottom: 12px; }
.s-section:last-child { margin-bottom: 0; }

/* セクションタイトル左ボーダー → 青 */
.s-title {
  font-size: 11px; font-weight: bold; color: #666;
  border-left: 3px solid var(--blue-main);
  padding: 2px 6px;
  background: #f0f6fd;
  margin-bottom: 6px;
}

/* ── チェック・ラジオラベル ── */
.s-checks { display: flex; flex-wrap: wrap; gap: 3px; }
.s-check-label {
  font-size: 11px; color: #444;
  display: flex; align-items: center; gap: 3px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px; padding: 3px 6px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
/* オンマウス → 水色背景・水色枠・水色文字 */
.s-check-label:hover {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-text);
}
/* チェックマーク・ラジオマーク → 青 */
.s-check-label input { accent-color: var(--blue-main); }

/* ── セレクトボックス ── */
.s-select-row {
  display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
}
.s-select-row select {
  flex: 1; padding: 4px 4px; font-size: 11px;
  border: 1px solid #ccc; border-radius: 3px;
  font-family: inherit; color: #444;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  appearance: auto;
}
/* オンマウス・フォーカス → 水色枠・薄い水色背景 */
.s-select-row select:hover  {
  border-color: var(--blue-main);
  background: var(--blue-light);
  color: var(--blue-text);
  outline: none;
}
.s-select-row select:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 2px rgba(26,106,191,.18);
  outline: none;
}
.s-tilde { color: #aaa; font-size: 13px; }

/* テキスト入力 */
.s-text-input {
  width: 100%; padding: 5px 7px; font-size: 11px;
  border: 1px solid #ccc; border-radius: 3px; font-family: inherit;
}
.s-text-input:focus { border-color: var(--blue-main); outline: none; box-shadow: 0 0 0 2px rgba(26,106,191,.18); }

/* ── 検索ボタン → 青 ── */
.search-submit-btn {
  display: block; width: 100%; padding: 9px;
  background: var(--blue-main);
  color: #fff; border: none;
  border-radius: var(--radius); font-size: 13px; font-weight: bold;
  cursor: pointer; font-family: inherit; margin-top: 10px;
  transition: background 0.2s;
}
.search-submit-btn:hover { background: var(--blue-dark); }

.search-form-inner { /* shared */ }

/* ===== PAGE TITLE ===== */
.page-title-block {
  background: #fff;
  /* 左ボーダー → 青 */
  border-left: 4px solid var(--blue-main);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.page-title-block h1 { font-size: 16px; color: #222; line-height: 1.4; }
.result-info { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
/* 件数強調 → 青 */
.result-info strong { color: var(--blue-main); font-size: 17px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 3px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 28px; padding: 0 7px;
  border: 1px solid #b8d4f0; border-radius: var(--radius);
  font-size: 12px;
  color: var(--blue-text);
  background: #fff;
  transition: background 0.15s;
}
.pagination a:hover {
  background: var(--blue-light);
  border-color: var(--blue-main);
  text-decoration: none;
}
/* 現在ページ → 青 */
.pagination .current {
  background: var(--blue-main);
  color: #fff;
  border-color: var(--blue-main);
  font-weight: bold;
}

/* ===== PROPERTY CARD ===== */
.property-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow 0.2s;
}
.property-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.12); }

.pc-head {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}
.type-badge {
  background: #555; color: #fff;
  font-size: 10px; padding: 2px 7px;
  border-radius: 2px; font-weight: bold; flex-shrink: 0;
}
/* 新着バッジ → 青 */
.new-badge {
  background: var(--blue-main);
  color: #fff;
  font-size: 10px; padding: 2px 6px;
  border-radius: 2px; font-weight: bold; flex-shrink: 0;
}
.prop-name { font-size: 13px; font-weight: bold; color: #1a1a1a; flex: 1; min-width: 0; }

.pc-body { padding: 9px 12px; }

.prop-access {
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 7px; line-height: 1.65;
}
.prop-specs {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--text-sub); margin-bottom: 7px;
}
.spec-item .spec-lbl { color: #aaa; margin-right: 2px; }

/* ── 部屋の特徴タグエリア ── */
.prop-features {
  margin-bottom: 7px;
}
/* ── 特徴タグ行 → 薄い水色背景・水色文字 ── */
.feat-tags-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 8px;
/*  border: 1px solid var(--blue-border);*/
}

.feat-tag {
  font-size: 10px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-text);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: bold;
}
/* 旧 red feat-tag は青に */
.feat-tag.red { border-color: var(--blue-border); color: var(--blue-text); }

/**/
.feat-tag-open {
  display: inline-block;
  font-size: 10px;
  background: var(--red-light);
  border: 1px solid var(--red-light);
  color: var(--red-dark);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: bold;
}
.feat-tag-open:hover { background: var(--red-dark);color: var(--red-light);}
.feat-tag-open.is-hidden    { display: none; }      

.feat-tag-close {
  display: none;
  font-size: 10px;
  background: var(--red-light);
  border: 1px solid var(--red-light);
  color: var(--red-dark);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: bold;
}
.feat-tag-close:hover { background: var(--red-dark);color: var(--red-light);}
.feat-tag-close.is-hidden   { display: inline-block; }

/* 旧 red feat-tag は青に */
.feat-tag-close.red { border-color: var(--red-light); color: var(--red-light); }

/* Other rooms toggle */
.other-rooms-btn {
  display: inline-block; font-size: 11px;
  color: #b00;
  border: 1px solid red; border-radius: 3px;
  padding: 2px 7px; cursor: pointer; user-select: none;
}

.other-rooms-btn:hover { background: #dce8ff; }
.other-rooms-wrap { display: none; margin-top: 7px; }
.other-rooms-wrap.is-open { display: block; }

/* Property table */
.prop-table-wrap { width: 100%; overflow-x: auto; }
.prop-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; margin-bottom: 0;
  border: 1px solid #e0e0e0;
}
.prop-table th {
  background: #f5f5f5; padding: 5px 8px;
  text-align: center; border: 1px solid #e0e0e0;
  font-weight: normal; color: #888; font-size: 11px;
}
.prop-table td {
  padding: 6px 8px; text-align: center;
  border: 1px solid #e0e0e0;
}
.prop-table .price { color: #d94035; font-weight: bold; font-size: 14px; }
.prop-table tr.sub-info td { background: #fafafa; font-size: 11px; color: #777; }

.pc-foot {
  padding: 8px 12px; border-top: 1px solid #eee;
  background: #f5f9ff; text-align: right;
}
/* 詳細を見るボタン → 青 */
.detail-link {
  display: inline-block; padding: 5px 16px;
  background: var(--blue-main);
  color: #fff; border-radius: var(--radius);
  font-size: 12px; font-weight: bold; text-decoration: none;
  transition: background 0.2s;
}
.detail-link:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

/* ===== SIDEBAR ===== */
.sb-panel { position: sticky; top: 56px; }
.sb-section { margin-bottom: 10px; }
/* サイドバー見出し → 青 */
.sb-head {
  background: var(--blue-main);
  color: #fff;
  font-size: 11px; font-weight: bold;
  padding: 6px 10px;
}
.sb-body {
  padding: 9px 10px; background: #fff;
  border: 1px solid #ddd; border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* keyword links */
.kw-links { display: flex; flex-wrap: wrap; gap: 4px; }
.kw-links a {
  font-size: 11px; background: #f5f5f5;
  border: 1px solid #ddd; border-radius: 3px;
  padding: 3px 7px; color: #444;
}
.kw-links a:hover { background: var(--blue-light); border-color: var(--blue-border); color: var(--blue-text); text-decoration: none; }

/* area links */
.area-links { display: flex; flex-wrap: wrap; gap: 2px; }
.area-links a { font-size: 11px; color: #1558d6; padding: 1px 3px; }
.area-links a:hover { text-decoration: underline; }

/* history */
.history-list { list-style: none; }
.history-list li { border-bottom: 1px solid #f0f0f0; }
.history-list li:last-child { border-bottom: none; }
.history-list a { display: block; padding: 6px 0; font-size: 12px; color: #1558d6; }

/* Rating */
.rating-big { text-align: center; font-size: 22px; color: #f39c12; padding: 6px 0 2px; }
.rating-label-big { text-align: center; font-size: 11px; color: #999; margin-bottom: 8px; }
.rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; }
.rating-row .rl { flex: 1; color: #555; }
.rating-row .stars { color: #f39c12; font-size: 13px; white-space: nowrap; }
.area-desc { font-size: 11px; color: #888; line-height: 1.6; margin-top: 8px; }

/* Rent table */
.rent-wrap { overflow-x: auto; margin-top: 6px; }
.rent-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.rent-table th, .rent-table td {
  border: 1px solid #e0e0e0; padding: 3px 4px;
  text-align: center; white-space: nowrap;
}
.rent-table th { background: #f5f5f5; color: #888; }
.rent-table a { font-size: 10px; color: #1558d6; }
.rent-avg { font-size: 12px; color: #555; margin-bottom: 4px; }
.rent-avg strong { color: var(--blue-main); font-size: 17px; }

/* Ad area */
.ad-placeholder {
  background: #f9f9f9; border: 1px dashed #ccc;
  color: #bbb; font-size: 11px; text-align: center;
  padding: 24px 0; border-radius: var(--radius);
}

/* ===== FULL-WIDTH AREA INFO SECTION ===== */
.area-info-wrap {
  max-width: 1200px; margin: 0 auto 20px;
  padding: 0 12px;
}
.area-info-block {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
/* エリア情報見出し → 青 */
.area-info-head {
  background: var(--blue-main);
  color: #fff;
  font-size: 13px; font-weight: bold;
  padding: 9px 16px;
  display: flex; align-items: center; gap: 8px;
}
.area-info-body { padding: 20px 24px; }

/* ratings grid */
.area-ratings-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px 28px;
  margin-bottom: 24px;
  align-items: start;
}
.area-overall {
  text-align: center;
  background: #fafafa; border: 1px solid #eee;
  border-radius: var(--radius); padding: 16px 12px;
}
.area-overall-stars { font-size: 30px; color: #f39c12; line-height: 1; margin-bottom: 6px; }
.area-overall-label { font-size: 11px; color: #999; margin-bottom: 4px; }
.area-overall-name { font-size: 13px; color: #444; font-weight: bold; }

.area-rating-items { display: flex; flex-direction: column; gap: 14px; }
.area-rating-item {}
.ari-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ari-name { font-size: 13px; font-weight: bold; color: #333; }
.ari-stars { font-size: 18px; color: #f39c12; }
.ari-desc { font-size: 11px; color: #999; line-height: 1.6; }

/* town pride */
.area-pride {
  border-top: 1px solid #eee; padding-top: 16px; margin-bottom: 24px;
}
/* エリア pride タイトル → 青ボーダー */
.area-pride-title {
  font-size: 12px; font-weight: bold; color: #555;
  margin-bottom: 6px;
  border-left: 3px solid var(--blue-main);
  padding-left: 7px;
}
.area-pride-text { font-size: 13px; color: #555; line-height: 1.8; }
.area-note { font-size: 11px; color: #bbb; margin-top: 8px; }

/* rent full table */
.area-rent-section { border-top: 1px solid #eee; padding-top: 20px; }
.area-rent-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.area-rent-title { font-size: 14px; font-weight: bold; color: #333; }
.area-rent-avg-val { font-size: 22px; font-weight: bold; color: var(--blue-main); }
.area-rent-avg-label { font-size: 12px; color: #888; }
.area-rent-date { font-size: 11px; color: #bbb; margin-bottom: 12px; }
.area-rent-table-wrap { overflow-x: auto; }
.area-rent-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
  min-width: 600px;
}
.area-rent-table th {
  background: #f5f5f5; color: #777;
  border: 1px solid #e0e0e0; padding: 6px 8px;
  text-align: center; font-weight: normal; white-space: nowrap;
}
.area-rent-table th.row-head { background: #eee; color: #555; font-weight: bold; min-width: 72px; }
.area-rent-table td {
  border: 1px solid #e0e0e0; padding: 5px 8px;
  text-align: center; white-space: nowrap;
}
.area-rent-table td a { font-size: 12px; color: #1558d6; }
.area-rent-table td a:hover { text-decoration: underline; }
.area-rent-table td.dash { color: #ccc; }
.area-rent-note { font-size: 11px; color: #bbb; margin-top: 8px; }

@media (max-width: 640px) {
  .area-ratings-grid { grid-template-columns: 1fr; }
  .area-info-body { padding: 14px; }
}

/* ===== FOOTER ===== */
#site-footer {
  background: #2d2d2d; color: #aaa;
  text-align: center; padding: 20px 16px 24px;
  font-size: 11px; margin-top: 20px;
}
.footer-logo { font-size: 18px; font-weight: 900; letter-spacing: 3px; color: #888; display: block; margin-bottom: 12px; }
#site-footer a { color: #888; margin: 0 7px; }
#site-footer a:hover { color: #ccc; text-decoration: none; }
.footer-copy { margin-top: 12px; color: #666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .col-search { display: none; }
  .three-col {
    grid-template-columns: 1fr var(--col-sidebar);
    grid-template-areas: "main sidebar";
  }
  .sp-search-bar { display: block; }
  .header-links { display: none; }
  .hamburger-btn { display: flex; }
}

@media (max-width: 640px) {
  .three-col {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "sidebar";
  }
  .col-sidebar { width: 100%; }
  .page-title-block h1 { font-size: 14px; }
}

.headerImg {
  height: 35px; vertical-align: middle;
}

/*
   インライン詳細展開パネル ? 追加スタイル
   既存 n-s-updated.css に追記する想定

/* ─── 詳細を開く／閉じるボタン ─── */
.detail-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--blue-main, #1a6abf);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  user-select: none;
}
.detail-toggle-btn:hover { background: var(--blue-dark, #1255a0); }
.detail-toggle-btn.is-open {
  background: #fff;
  color: var(--blue-main, #1a6abf);
  border: 1px solid var(--blue-main, #1a6abf);
}
.detail-toggle-btn.is-open:hover { background: #e8f4fd; }
.detail-toggle-btn .btn-arrow { font-size: 10px; transition: transform 0.2s; }
.detail-toggle-btn.is-open .btn-arrow { transform: rotate(180deg); }

/* ─── 詳細展開エリア ─── */
.detail-panel {
  display: none;
  border-top: 2px solid var(--blue-main, #1a6abf);
  background: #f4f9ff;
  animation: slideDown 0.22s ease;
}
.detail-panel.is-open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── ローディング表示 ─── */
.detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  font-size: 12px;
  color: #aaa;
}
.loading-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-main, #1a6abf);
  animation: blink 1.2s infinite both;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.15; transform: scale(.8); }
  40%           { opacity: 1;    transform: scale(1); }
}

/* ─── 詳細パネル 内部レイアウト ─── */
.dp-inner { padding: 16px 14px 14px; }

/* タブナビ（概要・設備・地図・お問い合わせ） */
.dp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--blue-main, #1a6abf);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dp-tab {
  padding: 7px 16px;
  font-size: 12px; font-weight: bold;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-bottom: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dp-tab.active {
  background: var(--blue-main, #1a6abf);
  color: #fff;
  border-color: var(--blue-main, #1a6abf);
}
.dp-tab:hover:not(.active) { background: #e8f4fd; color: var(--blue-main, #1a6abf); }
.dp-tab-body { display: none; }
.dp-tab-body.active { display: block; }

/* 詳細グリッド */
.dp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 540px) { .dp-grid { grid-template-columns: 1fr; } }

.dp-info-block {
  background: #fff;
  border: 1px solid #d0e4f5;
  border-radius: 6px;
  padding: 10px 12px;
}
.dp-info-block .dp-block-title {
  font-size: 10px; font-weight: bold; color: #888;
  margin-bottom: 6px;
  border-left: 3px solid var(--blue-main, #1a6abf);
  padding-left: 6px;
}
.dp-info-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dp-info-table th {
  background: #eef5fc;
  color: #555;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #d4e8f8;
  font-weight: normal;
  font-size: 11px;
  white-space: nowrap;
  width: 90px;
}
.dp-info-table td {
  padding: 5px 8px;
  border: 1px solid #e4eef8;
  color: #333;
}

/* 設備タグ */
.dp-facility-list {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.dp-facility-tag {
  font-size: 11px;
  background: #e8f4fd;
  border: 1px solid #b8d8f5;
  color: #1558d6;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
}

/* 全部屋テーブル */
.dp-all-rooms {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.dp-all-rooms th {
  background: #eef5fc;
  color: #666;
  padding: 6px 10px;
  border: 1px solid #d4e8f8;
  text-align: center;
  font-weight: bold;
  font-size: 11px;
}
.dp-all-rooms td {
  padding: 7px 10px;
  border: 1px solid #e4eef8;
  text-align: center;
}
.dp-all-rooms tr:hover td { background: #f0f7ff; }
.dp-all-rooms .dp-price {
  color: #d94035;
  font-weight: bold;
  font-size: 14px;
}
.dp-all-rooms .dp-detail-btn {
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue-main, #1a6abf);
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.dp-all-rooms .dp-detail-btn:hover {
  background: var(--blue-dark, #1255a0);
  text-decoration: none;
}

/* マップエリア */
.dp-map-wrap {
  border-radius: 6px;
  overflow: hidden;
  height: 220px;
  border: 1px solid #d0e4f5;
  background: #e8f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  flex-direction: column;
  gap: 8px;
}
.dp-map-wrap .map-icon { font-size: 32px; }

/* お問い合わせエリア */
.dp-contact-wrap {
  background: #fff;
  border: 1px solid #d0e4f5;
  border-radius: 6px;
  padding: 16px 14px;
  text-align: center;
}
.dp-contact-wrap .dp-c-title {
  font-size: 13px; font-weight: bold; color: #222;
  margin-bottom: 8px;
}
.dp-contact-wrap .dp-tel {
  font-size: 22px; font-weight: bold;
  color: var(--blue-main, #1a6abf);
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}
.dp-contact-wrap .dp-tel:hover { text-decoration: underline; }
.dp-contact-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dp-c-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.dp-c-btn.mail { background: var(--blue-main, #1a6abf); color: #fff; }
.dp-c-btn.mail:hover { background: var(--blue-dark, #1255a0); text-decoration: none; }
.dp-c-btn.line { background: #00b900; color: #fff; }
.dp-c-btn.line:hover { opacity: .85; text-decoration: none; }

/* 詳細ページリンク（重要：内部リンク維持） */
.dp-detail-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #b8d8f5;
  border-radius: 6px;
  font-size: 12px;
  color: #444;
}
.dp-detail-page-link a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue-main, #1a6abf);
  font-weight: bold;
  font-size: 13px;
}
.dp-detail-page-link a:hover { text-decoration: underline; }
.dp-detail-page-link .dp-link-note {
  font-size: 10px; color: #aaa;
}

/* pc-foot の更新 */
.pc-foot-new {
  padding: 8px 12px;
  border-top: 1px solid #e8f0fa;
  background: #f5f9ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-foot-new .foot-left { font-size: 11px; color: #aaa; }

/* ─── 仕様説明バナー ─── */
.spec-banner {
  background: linear-gradient(135deg, #1a3a6b, #1a6abf);
  color: #fff;
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.spec-banner strong { font-size: 15px; display: block; margin-bottom: 5px; }
.spec-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #78350f;
  margin-bottom: 16px;
}

/* ============================================
   カラーパレット（パステル青・グレー基調）
   ============================================ */
:root {
  /* ── アクセント（淡い青） ── */
  --ac:        #6891c4;   /* メインアクセント パステルスチールブルー */
  --ac-dark:   #4a6ea0;   /* ホバー時 */
  --ac-pale:   #eaf1f9;   /* 背景・ハイライト */
  --ac-mid:    #c2d6ee;   /* ボーダー */
  --ac-light:  #f0f6fc;   /* 超淡い背景 */

  /* ── リンク ── */
  --lk:        #5b87c5;
  --lk-hover:  #3a6aa5;

  /* ── テキスト ── */
  --tx:        #3a4556;   /* 本文 */
  --tx-mid:    #5f6f82;   /* サブテキスト */
  --tx-light:  #8c9ab0;   /* 薄テキスト */

  /* ── グレー ── */
  --g50:       #f7f9fc;   /* ページ背景 */
  --g100:      #f0f3f7;   /* カードヘッダー背景 */
  --g200:      #e4e9f0;   /* ボーダー */
  --g300:      #c8d1dd;   /* 強めボーダー */
  --g700:      #6b7a8d;   /* フッター背景 */
  --g800:      #4a5568;   /* フッターより濃い */

  /* ── ポータルボタン（淡い識別色） ── */
  --suumo:     #6aaa87;   /* パステルセージグリーン */
  --homes:     #6a93c4;   /* パステルブルー */
  --athome:    #8b7ec4;   /* パステルラベンダー */
  --leopalace: #ADD8E6;   /* パステルイエロー */
  --yahoo:     #8b7ec4;   /* */
  --tryell:    #ee7800;   /* */
  --zigexn:    #8b7ec4;   /* */
  --pitat:     #B7A8CC;   /* ラベンダー */
  --village:   #8b7ec4;   /* */


  /* ── 状態 ── */
  --warn-bg:   #fdf5ee;
  --warn-bd:   #e8c99a;
  --warn-tx:   #8b6240;
  --new-bg:    #e8f4ee;   /* 新着バッジ */
  --new-bd:    #a8d4bc;
  --new-tx:    #4a8465;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  color: var(--tx);
  background: var(--g50);
}

a { color: var(--lk); text-decoration: none; }
a:hover { color: var(--lk-hover); text-decoration: underline; }

/* ── ヘッダー ── */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--ac-mid);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-header .logo img { height: 36px; }
.site-header nav { display: flex; gap: 16px; font-size: 13px; }
.site-header nav a { color: var(--tx-mid); font-weight: bold; }
.site-header nav a.active { color: var(--ac); border-bottom: 2px solid var(--ac); }
.hamburger { font-size: 20px; cursor: pointer; color: var(--tx-mid); }

/* ── スライドメニュー ── */
.slide-menu {
  display: none;
  background: var(--g100);
  border-bottom: 1px solid var(--g200);
  padding: 8px 12px;
}
.slide-menu ul { list-style: none; }
.slide-menu ul li { border-bottom: 1px solid var(--g200); }
.slide-menu ul li a { display: block; padding: 10px 4px; color: var(--tx-mid); font-size: 13px; }

/* ── パンくず ── */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--g200);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--tx-light);
}
.breadcrumb a { color: var(--lk); }
.breadcrumb span { margin: 0 4px; color: var(--g300); }

/* ── メインコンテンツ ── */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
}

/* ── h1 ── */
.page-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--tx);
  margin: 12px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ac-mid);
}
.page-title .count {
  font-size: 14px;
  color: var(--ac);
  font-weight: normal;
  margin-left: 8px;
}

/* ── エリア情報ブロック ── */
.area-info-block {
  background: var(--ac-light);
  border: 1px solid var(--ac-mid);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 12px 0;
}
.area-info-block .area-lead {
  font-size: 13px;
  line-height: 1.75;
  color: var(--tx-mid);
  margin-bottom: 14px;
}
.area-info-block .area-lead strong { color: var(--ac-dark); }

/* ── 家賃相場テーブル ── */
.rent-table-wrap { margin-top: 10px; }
.rent-table-wrap h3 {
  font-size: 13px;
  font-weight: bold;
  color: var(--tx);
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--ac);
}
.rent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.rent-table th {
  background: var(--ac);
  color: #fff;
  padding: 6px 8px;
  text-align: center;
  font-weight: bold;
}
.rent-table td {
  border: 1px solid var(--g200);
  padding: 6px 8px;
  text-align: center;
  color: var(--tx);
}
.rent-table tr:nth-child(even) td { background: var(--g50); }
.rent-table tr.highlight td {
  background: var(--ac-pale);
  font-weight: bold;
  color: var(--ac-dark);
}
.rent-table td a { color: var(--lk); }
.rent-note {
  font-size: 11px;
  color: var(--tx-light);
  margin-top: 4px;
  text-align: right;
}

/* ── 件数・ページネーション ── */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.result-count { font-size: 13px; color: var(--tx-mid); }
.result-count strong { color: var(--ac); font-size: 16px; }

.pagination { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--g200);
  border-radius: 3px;
  font-size: 13px;
  color: var(--tx-mid);
  background: #fff;
}
.pagination a:hover { background: var(--ac-light); text-decoration: none; border-color: var(--ac-mid); }
.pagination .current {
  background: var(--ac);
  color: #fff;
  border-color: var(--ac);
}

/* ── 物件カード ── */
.property-list { margin: 8px 0; }

.property-card {
  border: 1px solid var(--g200);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.property-card:hover { box-shadow: 0 2px 10px rgba(104,145,196,0.15); }

.property-card-header {
  background: var(--g100);
  border-bottom: 1px solid var(--g200);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-type-badge {
  background: var(--ac);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: bold;
}
.new-badge {
  background: var(--new-bg);
  color: var(--new-tx);
  border: 1px solid var(--new-bd);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: bold;
}
.property-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--lk);
}

.property-card-body { padding: 10px; }

.station-list {
  font-size: 12px;
  color: var(--tx-mid);
  margin-bottom: 8px;
  line-height: 1.8;
}

.property-specs {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--tx-light);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.property-specs span { display: flex; align-items: center; gap: 4px; }

.property-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tag {
  background: var(--ac-pale);
  color: var(--ac-dark);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--ac-mid);
}
.tag.warning {
  background: var(--warn-bg);
  color: var(--warn-tx);
  border-color: var(--warn-bd);
}

.rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 8px;
}
.rooms-table th {
  background: var(--g700);
  color: #fff;
  padding: 4px 6px;
  text-align: center;
  font-weight: normal;
}
.rooms-table td {
  border: 1px solid var(--g200);
  padding: 5px 6px;
  text-align: center;
  color: var(--tx);
}
.rooms-table .price {
  color: var(--ac-dark);
  font-weight: bold;
  font-size: 14px;
}

/* ── 関連キーワード内部リンク ── */
.related-links-section { margin: 20px 0 12px; }
.related-links-section .section-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--tx);
  padding: 8px 12px;
  background: var(--g100);
  border-left: 4px solid var(--ac);
  border-bottom: 1px solid var(--g200);
  margin-bottom: 12px;
}
.related-link-group { margin-bottom: 16px; }
.related-link-group h3 {
  font-size: 13px;
  font-weight: bold;
  color: var(--tx-mid);
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--g300);
}
.related-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.related-link-list li a {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 20px;
  font-size: 12px;
  color: var(--lk);
  transition: all 0.15s;
}
.related-link-list li a:hover {
  background: var(--ac-pale);
  border-color: var(--ac-mid);
  text-decoration: none;
}
.related-link-list li a .cnt { color: var(--tx-light); font-size: 11px; }

/* ── FAQセクション ── */
.faq-section {
  margin: 20px 0;
  border: 1px solid var(--g200);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.faq-section .section-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  padding: 10px 16px;
  background: var(--g700);
  margin: 0;
}
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: bold;
  color: var(--tx);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--g50);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--ac-light); }
.faq-question .q-mark {
  background: var(--ac);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-answer {
  padding: 0 16px 0 48px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--tx-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 200px;
  padding: 10px 16px 14px 48px;
}
.faq-answer a { color: var(--lk); }

/* ── フッター ── */
.site-footer {
  background: var(--g800);
  color: #c8d1dd;
  padding: 20px 12px;
  margin-top: 24px;
  font-size: 12px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.site-footer nav a { color: #b8c8d8; }
.site-footer nav a:hover { color: #e0eaf5; text-decoration: none; }
.site-footer .copyright { color: var(--tx-light); }

/* ── AdSense枠（サンプル用プレースホルダー） ── */
.new-block-label {
  display: inline-block;
  background: var(--ac-pale);
  color: var(--ac-dark);
  border: 1px solid var(--ac-mid);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* ============================================
   施策1: 外部リンクボタン
   ============================================ */
.detail-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.ext-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}
.ext-link-btn:hover { opacity: 0.88; box-shadow: 0 2px 8px rgba(0,0,0,0.12); text-decoration: none; }
.ext-link-btn .btn-site { font-size: 11px; font-weight: normal; opacity: 0.85; }
/* ポータル別識別色（パステル） */
.btn-suumo  { background: var(--suumo);  color: #fff; }
.btn-homes  { background: var(--homes);  color: #fff; }
.btn-athome { background: var(--athome); color: #fff; }
.btn-leopalace { background: var(--leopalace); color: #fff; }
.btn-misawa { background: var(--misawa); color: #fff; }
.btn-yahoo { background: var(--yahoo); color: #fff; }
.btn-tryell { background: var(--tryell); color: #fff; }
.btn-adpark { background: var(--adpark); color: #fff; }
.btn-zigexn { background: var(--zigexn); color: #fff; }
.btn-pitat { background: var(--pitat); color: #fff; }
.btn-village { background: var(--village); color: #fff; }

.ext-link-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--tx-light);
  margin-top: 2px;
}
.ext-icon { font-size: 11px; }

/* ============================================
   施策3: 外部遷移モーダル
   ============================================ */
.exit-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58,69,86,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.exit-modal-overlay.show { display: flex; }
.exit-modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 400px;
  width: 92%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(58,69,86,0.18);
}
.exit-modal-ad {
  background: var(--g100);
  border-bottom: 1px solid var(--g200);
  padding: 10px 12px;
  text-align: center;
  min-height: 90px;
}
.exit-modal-ad .ad-label {
  font-size: 10px;
  color: var(--tx-light);
  display: block;
  margin-bottom: 4px;
  text-align: left;
}
.exit-modal-body { padding: 18px 20px 16px; }
.exit-modal-lead { font-size: 12px; color: var(--tx-light); margin-bottom: 4px; }
.exit-modal-prop {
  font-size: 14px;
  font-weight: bold;
  color: var(--tx);
  margin-bottom: 12px;
  line-height: 1.5;
}
.exit-modal-site { font-size: 13px; color: var(--tx-mid); margin-bottom: 14px; }
.exit-modal-site span { font-weight: bold; color: var(--tx); }
.exit-modal-go {
  display: block;
  padding: 11px 14px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}
.exit-modal-go:hover { opacity: 0.88; text-decoration: none; }
.exit-modal-close {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--tx-light);
  font-size: 12px;
  cursor: pointer;
  padding: 6px;
  text-align: center;
}
.exit-modal-close:hover { color: var(--tx-mid); }

/* ============================================
   施策4: AdSense枠プレースホルダー
   ============================================ */
.ad-infeed {
  margin: 4px 0 12px;
  background: var(--g50);
  border: 1px dashed var(--g300);
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
  min-height: 100px;
}
.ad-infeed .ad-label {
  font-size: 10px;
  color: var(--tx-light);
  display: block;
  margin-bottom: 4px;
  text-align: left;
}
.ad-header-banner {
  background: var(--g50);
  border-bottom: 1px solid var(--g200);
  padding: 6px 12px;
  text-align: center;
  min-height: 70px;
}
.ad-header-banner .ad-label {
  font-size: 10px;
  color: var(--tx-light);
  display: block;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 2px;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .site-header nav { display: none; }
  .rent-table { font-size: 11px; }
  .rent-table th, .rent-table td { padding: 4px 4px; }
  .property-specs { gap: 8px; }
}

/* ============================================
   主情報 / 補足情報 ヒエラルキーUI
   ============================================ */

/* ─ 主情報（検索条件に該当する部屋）─ */
.room-main-section {
  background: var(--ac-pale);
  border: 1px solid var(--ac-mid);
  border-left: 4px solid var(--ac);
  border-radius: 5px;
  padding: 10px 12px 12px;
  margin-bottom: 8px;
}
.room-main-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ac);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.room-floor-label {
  font-size: 11px;
  color: var(--tx-mid);
  background: #fff;
  border: 1px solid var(--ac-mid);
  border-radius: 3px;
  padding: 1px 7px;
}

/* 主情報テーブル（通常より少し強調） */
.main-room-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.main-room-table th {
  background: var(--ac);
  color: #fff;
  padding: 5px 7px;
  text-align: center;
  font-weight: bold;
}
.main-room-table td {
  border: 1px solid var(--ac-mid);
  padding: 6px 7px;
  text-align: center;
  color: var(--tx);
}
.main-room-table .price {
  color: var(--ac-dark);
  font-weight: bold;
  font-size: 14px;
}

/* ─ 別部屋トグルボタン ─ */
.other-rooms-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.other-rooms-panel.open { max-height: 1200px; }

.other-rooms-inner {
  background: var(--g100);
  border: 1px solid var(--ac-mid);
  border-top: none;
  border-radius: 0 0 5px 5px;
  padding: 10px 12px 12px;
}
.other-rooms-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--tx-light);
  background: #fff;
  border: 1px solid var(--g200);
  border-left: 3px solid var(--g300);
  border-radius: 0 4px 4px 0;
  padding: 7px 10px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.other-rooms-note-icon { font-size: 13px; flex-shrink: 0; }

/* ─ 個別の別部屋カード ─ */
.other-room-item {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 4px;
  padding: 8px 10px 10px;
  margin-bottom: 7px;
  opacity: 0.9;
}
.other-room-item:last-child { margin-bottom: 0; }
.other-room-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.sub-room-badge {
  font-size: 10px;
  color: var(--tx-light);
  background: var(--g100);
  border: 1px solid var(--g200);
  border-radius: 3px;
  padding: 1px 6px;
}
.sub-room-floor {
  font-size: 11px;
  color: var(--tx-mid);
}

/* 別部屋テーブル（やや控えめ） */
.sub-room-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 7px;
}
.sub-room-table th {
  background: var(--g200);
  color: var(--tx-mid);
  padding: 4px 6px;
  text-align: center;
  font-weight: normal;
  font-size: 11px;
}
.sub-room-table td {
  border: 1px solid var(--g200);
  padding: 4px 6px;
  text-align: center;
  color: var(--tx-mid);
}
.sub-room-table .sub-price {
  color: var(--tx-mid);
  font-weight: bold;
  font-size: 12px;
}

/* 別部屋用外部リンク（アウトライン・小さめ） */
.sub-link-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.sub-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid;
  transition: opacity 0.15s, background 0.15s;
  cursor: pointer;
  background: #fff;
}
.sub-ext-link:hover { opacity: 0.8; text-decoration: none; }
.sub-suumo  { color: var(--suumo);  border-color: var(--suumo);  }
.sub-homes  { color: var(--homes);  border-color: var(--homes);  }
.sub-athome { color: var(--athome); border-color: var(--athome); }
.sub-leopalace { color: var(--leopalace); border-color: var(--leopalace); }
.sub-yahoo { color: var(--yahoo); border-color: var(--yahoo); }
.sub-tryell { color: var(--tryell); border-color: var(--tryell); }
.sub-zigexn { color: var(--zigexn); border-color: var(--zigexn); }
.sub-zigexn { color: var(--pitat); border-color: var(--pitat); }
.sub-zigexn { color: var(--village); border-color: var(--village); }

/* ─ 別部屋トグルボタン ─ */
.other-rooms-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--tx-mid);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 0;
}
.other-rooms-toggle:hover {
  background: var(--ac-light);
  border-color: var(--ac-mid);
  color: var(--ac-dark);
}
.other-rooms-toggle.open {
  background: var(--ac-light);
  border-color: var(--ac-mid);
  border-radius: 4px 4px 0 0;
  border-bottom-color: transparent;
  color: var(--ac-dark);
}
.toggle-bldg-icon { font-size: 13px; }
.toggle-text { flex: 1; }
.toggle-count {
  font-weight: bold;
  color: var(--ac);
}
.toggle-arrow {
  font-size: 9px;
  color: var(--tx-light);
  transition: transform 0.25s;
  margin-left: 4px;
}
.other-rooms-toggle.open .toggle-arrow { transform: rotate(180deg); }


