/* ==========================================================
   空室待ちアラート
   高級賃貸を扱うため、アイボリー × 深い紺 × シャンパンゴールドで落ち着いた印象にする
   ========================================================== */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --ink: #1c2230;
  --muted: #6c6f76;
  --line: #e3ddd1;
  --line-strong: #cfc6b5;
  --navy: #14213d;
  --navy-2: #1e3157;
  --on-navy: #f4f1ea;
  --gold: #a8854f;          /* 罫線・アクセント */
  --gold-ink: #8a6a37;      /* 明るい背景の上の文字 */
  --gold-soft: #f1e9da;
  --open: #2d6a4f;
  --open-bg: #e3efe7;
  --full: #6c6f76;
  --full-bg: #ece9e2;
  --danger: #a33a2c;
  --chart-bar: #2d6a4f;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 8px 24px rgba(20, 33, 61, .06);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218;
    --surface: #151b24;
    --surface-2: #1a212c;
    --ink: #e9e6df;
    --muted: #9ea3ab;
    --line: #29313e;
    --line-strong: #3a4455;
    --navy: #0a1120;
    --navy-2: #13213b;
    --on-navy: #ece8df;
    --gold: #c9a66b;
    --gold-ink: #d6b67f;
    --gold-soft: #2a2417;
    --open: #8fd0ad;
    --open-bg: #16301f;
    --full: #aab0b8;
    --full-bg: #232a35;
    --danger: #f08a7a;
    --chart-bar: #5fb68b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  }
}

/* ==========================================================
   基本
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; line-height: 1.5; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.note { font-size: .82rem; color: var(--muted); }
.empty { color: var(--muted); }
.error { color: var(--danger); font-size: .85rem; margin: 4px 0; }
.hp { position: absolute; left: -9999px; }
.pc { display: inline; }
@media (max-width: 700px) { .pc { display: none; } }

.eyebrow {
  display: block; margin: 0 0 4px;
  font-family: var(--latin); font-size: .95rem; font-weight: 600; font-style: italic;
  letter-spacing: .12em; color: var(--gold-ink);
}
.eyebrow-light { color: var(--gold); }

/* ボタン */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; font-size: .92rem; letter-spacing: .08em;
  padding: 12px 26px; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button-primary { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.button-primary:hover { background: var(--navy-2); color: var(--on-navy); }
.button-gold { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.button-gold:hover { background: #b8955d; color: #1a1408; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover { border-color: var(--ink); color: var(--ink); }
.button-line { background: #06c755; color: #fff; }  /* LINE のブランドカラー */
.button-line:hover { background: #05b34c; color: #fff; }
.text-link { font-size: .88rem; color: var(--gold-ink); text-decoration: none; letter-spacing: .06em; }
.text-link:hover { text-decoration: underline; }

.badge {
  display: inline-block; font-size: .76rem; font-weight: 500; letter-spacing: .08em;
  padding: 2px 10px; border-radius: 2px; background: var(--full-bg); color: var(--full);
}
.badge-open { background: var(--open-bg); color: var(--open); }
.price { font-family: var(--serif); font-weight: 600; color: var(--ink); }

/* ==========================================================
   ヘッダー・フッター
   ========================================================== */
.site-header { background: var(--navy); color: var(--on-navy); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.logo:hover { color: var(--on-navy); }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--latin); font-size: 1.2rem; font-weight: 600;
}
.logo-text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.02rem; letter-spacing: .12em; line-height: 1.3; margin: 0; }
.logo-text small { font-family: var(--latin); font-style: italic; font-size: .72rem; letter-spacing: .14em; color: var(--gold); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--on-navy); text-decoration: none; font-size: .86rem; letter-spacing: .1em; opacity: .85; }
.header-nav a:hover { opacity: 1; color: var(--on-navy); }
.header-nav .header-line { opacity: 1; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); }
@media (max-width: 860px) {
  .header-nav a:not(:first-child) { display: none; }
}

.site-footer { margin-top: 96px; background: var(--navy); color: var(--on-navy); padding: 56px 0 140px; font-size: .84rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; }
.footer-brand p:last-child { opacity: .75; max-width: 34em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--on-navy); opacity: .8; text-decoration: none; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-note { grid-column: 1 / -1; opacity: .6; font-size: .78rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin: 0; }
.footer-copy { grid-column: 1 / -1; opacity: .6; font-size: .78rem; margin: 0; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================
   トップ
   ========================================================== */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 17, 32, .92) 0%, rgba(10, 17, 32, .75) 45%, rgba(10, 17, 32, .35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin: 8px 0 18px; letter-spacing: .1em; line-height: 1.45; }
.hero-lead { margin: 0 0 40px; max-width: 36em; opacity: .9; }
.hero-search {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1px;
  max-width: 860px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px);
}
.hero-search label { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; background: rgba(10, 17, 32, .55); }
.hero-search span { font-size: .72rem; letter-spacing: .12em; color: var(--gold); }
.hero-search select { font: inherit; color: #fff; background: transparent; border: 0; padding: 2px 0; cursor: pointer; }
.hero-search select option { color: #1c2230; }
.hero-search .button { border-radius: 0; padding: 0 30px; }
@media (max-width: 760px) {
  .hero-inner { padding-top: 64px; padding-bottom: 48px; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .button { padding: 14px; }
}
.hero-credit { position: absolute; right: 12px; bottom: 6px; z-index: 1; margin: 0; font-size: .68rem; opacity: .6; }

.stats-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-inner div { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.stats-inner div:last-child { border-right: 0; }
.stats-inner strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; }
.stats-inner span { font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner div:nth-child(2) { border-right: 0; }
  .stats-inner div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 24px; margin-bottom: 32px; }
.section-head .eyebrow { width: 100%; }
.section-head h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.section-head h2 small { font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: 12px; letter-spacing: .06em; }
.section-head .text-link { margin-left: auto; }

.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.area-grid a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s;
}
.area-grid a:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--ink); }
.area-grid span { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; }
.area-grid small { font-size: .78rem; color: var(--muted); }

/* 建物カード */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  padding: 2px 10px; border-radius: 2px; background: rgba(20, 33, 61, .78); color: #fff;
}
.card-badge.is-open { background: var(--open); color: #fff; }
.card-body { display: flex; flex-direction: column; padding: 16px 18px 20px; }
.card-body .eyebrow { font-size: .82rem; margin-bottom: 2px; }
.building-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.55; letter-spacing: .05em; }
.building-meta { font-size: .8rem; color: var(--muted); }
.card-rent { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 600; }

.new-rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.new-rooms a {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.new-rooms a:hover { background: var(--surface); color: var(--ink); }
.new-rooms-name { font-family: var(--serif); font-weight: 600; letter-spacing: .05em; }
.new-rooms-name small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: 10px; }
.new-rooms-spec { font-size: .86rem; color: var(--muted); }
.new-rooms .price { font-size: 1.1rem; }
@media (max-width: 700px) { .new-rooms a { grid-template-columns: 1fr auto; } .new-rooms-spec { grid-column: 1; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.steps li { padding: 32px 28px; background: var(--navy); }
.step-no { font-family: var(--latin); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.steps h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.steps p { margin: 0; opacity: .78; font-size: .9rem; }
.how-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.how-guides { margin: 24px 0 0; font-size: .9rem; opacity: .85; }
.how-guides a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-grid h3 { font-size: 1rem; margin: 0 0 10px; padding-top: 18px; border-top: 1px solid var(--gold); }
.about-grid p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================
   物件検索
   ========================================================== */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
.page-head h1 { margin: 0; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.page-head-meta { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.page-head-meta strong { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); margin: 18px 0 16px; letter-spacing: .06em; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.search-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; gap: 16px; } }
.search-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 900px) { .search-side { position: static; max-height: none; } }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-panel summary { padding: 14px 18px; font-family: var(--serif); font-weight: 600; letter-spacing: .08em; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.search-panel summary::-webkit-details-marker { display: none; }
.search-panel summary::after { content: "＋"; float: right; color: var(--gold-ink); }
.search-panel[open] summary::after { content: "－"; }
@media (min-width: 901px) { .search-panel summary { pointer-events: none; } .search-panel summary::after { display: none; } }
.search-form { padding: 4px 18px 18px; }
.search-form fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; display: grid; gap: 8px; }
.search-form legend { float: left; width: 100%; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.search-form input[type=search], .search-form input[type=text], .search-form select {
  width: 100%; font: inherit; font-size: .9rem; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.check-list { display: grid; gap: 4px; }
.check-grid label, .check-list label, .search-form .inline { display: flex; align-items: center; gap: 6px; font-size: .86rem; cursor: pointer; }
.check-grid small, .check-list small { margin-left: auto; color: var(--muted); font-size: .74rem; }
.search-form input[type=checkbox] { accent-color: var(--navy); width: 15px; height: 15px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.search-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 16px; }
.search-actions .button { width: 100%; }

.result-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.view-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.view-switch button { font: inherit; font-size: .84rem; letter-spacing: .1em; padding: 7px 18px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.view-switch button.is-active { background: var(--navy); color: var(--on-navy); }
.sort-form label { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.sort-form select { font: inherit; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.buildings[hidden], .map-wrap[hidden] { display: none; }
.result article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .25s; }
.result article:hover { box-shadow: var(--shadow); }
.result:has(.toggle-add input:checked) article { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.result-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
@media (max-width: 600px) { .result-head { grid-template-columns: 1fr; } }
.result-photo { display: block; border-radius: var(--radius); overflow: hidden; }
.result-info h2 { font-size: 1.2rem; margin: 0 0 4px; }
.result-info h2 a { color: var(--ink); text-decoration: none; }
.result-info h2 a:hover { text-decoration: underline; }
.result-address { margin: 0; font-size: .86rem; color: var(--muted); }
.result-stations { list-style: none; margin: 8px 0 0; padding: 0; font-size: .86rem; }
.result-stations li::before { content: "―"; color: var(--gold); margin-right: 6px; }
.result-spec { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }

.result-rooms { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .88rem; }
.result-rooms th { font-weight: 400; font-size: .74rem; letter-spacing: .1em; color: var(--muted); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-strong); }
.result-rooms td { padding: 10px; border-bottom: 1px solid var(--line); }
.result-rooms .price { font-size: 1.05rem; margin-right: 8px; }
.result-rooms small { color: var(--muted); font-size: .76rem; }
@media (max-width: 600px) { .result-rooms th:nth-child(4), .result-rooms td:nth-child(4) { display: none; } }
.more { margin: 10px 0 0; font-size: .86rem; }
.result-full { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); font-size: .86rem; color: var(--muted); }
.result-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 600px) { .result-actions { flex-direction: column; } }

/* 「空室待ちに追加」の切り替えボタン（中身はチェックボックス） */
.toggle-add { cursor: pointer; }
.toggle-add input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-add span {
  display: inline-flex; justify-content: center; width: 100%; font-size: .92rem; font-weight: 500; letter-spacing: .08em;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid var(--gold); color: var(--gold-ink);
}
.toggle-add span::before { content: "＋"; margin-right: 6px; }
.toggle-add .toggle-on { display: none; }
.toggle-add input:checked ~ .toggle-off { display: none; }
.toggle-add input:checked ~ .toggle-on { display: inline-flex; background: var(--gold); color: #1a1408; }
.toggle-add input:checked ~ .toggle-on::before { content: "✓"; }
.toggle-add input:focus-visible ~ span { outline: 2px solid var(--navy); outline-offset: 2px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; }
.pagination a, .pagination span {
  min-width: 40px; padding: 8px 12px; text-align: center; font-size: .88rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none;
}
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.pagination .dots { border: 0; background: none; }

.empty-state { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* 画面下に固定する登録バー */
.selection-bar {
  position: sticky; bottom: 0; z-index: 10; margin-top: 32px;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 24px rgba(20, 33, 61, .08);
}
.selection-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 18px; }
.selection-count { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
.selection-bar.has-selection .selection-count { color: var(--gold-ink); }
.selection-inner .signup-row { flex: 1 1 380px; }
.selection-note { width: 100%; margin: 0; font-size: .74rem; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-row input {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}

/* 地図 */
.map { height: min(70vh, 600px); border: 1px solid var(--line); border-radius: var(--radius); z-index: 0; }
.map-small { height: 320px; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .84rem; margin: 10px 0 16px; }
.map-pin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--full); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.map-pin.is-open { background: var(--open); }
.map-legend .map-pin { width: 14px; height: 14px; border-width: 2px; vertical-align: middle; }
.map-popup { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-family: var(--sans); }
.map-popup-name { font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--ink); }
.map-popup-add { font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: var(--radius); border: 1px solid var(--gold); color: var(--gold-ink); background: transparent; cursor: pointer; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); border-radius: var(--radius); }

/* ==========================================================
   建物の詳細
   ========================================================== */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .detail-hero { grid-template-columns: 1fr; gap: 24px; } }
.detail-summary h1 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.detail-address { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.detail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }
.detail-rent { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.photo-attribution { margin: 8px 0 0; font-size: .72rem; }

.spec { width: 100%; border-collapse: collapse; font-size: .88rem; border-top: 1px solid var(--ink); }
.spec th, .spec td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 36%; font-weight: 400; color: var(--muted); background: var(--surface-2); letter-spacing: .06em; }
.spec td { background: var(--surface); }

.detail-section { margin-top: 72px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }

.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rooms { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.rooms th, .rooms td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.rooms thead th { font-weight: 400; font-size: .76rem; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); }
.rooms tbody tr:last-child td { border-bottom: 0; }
.rooms tbody tr:hover { background: var(--surface-2); }
.rooms .num { text-align: right; font-variant-numeric: tabular-nums; }
.rooms .price { font-size: 1.02rem; }

.trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 16px 0; background: var(--line); border: 1px solid var(--line); }
.trend div { background: var(--surface); padding: 18px 20px; }
.trend dt { font-size: .76rem; letter-spacing: .1em; color: var(--muted); }
.trend dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.trend small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 400; color: var(--muted); }
.trend-h { font-size: .95rem; margin: 28px 0 12px; }
.layout-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 600px; }
.layout-bars li { display: grid; grid-template-columns: 6.5em 1fr 3.5em; gap: 12px; align-items: center; font-size: .88rem; }
.layout-bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.layout-bar span { display: block; height: 100%; background: var(--chart-bar); border-radius: 0 4px 4px 0; }
.layout-count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.chart { margin: 12px 0 0; }
.chart svg { display: block; width: 100%; height: 142px; overflow: visible; }
.chart-bar { fill: var(--chart-bar); }
.chart-zero { fill: var(--line-strong); }
.chart-hit:hover .chart-bar { opacity: .75; }
.chart-grid { stroke: var(--line); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.chart-axis { stroke: var(--muted); vector-effect: non-scaling-stroke; }
.chart-max, .chart-dates { font-size: .74rem; color: var(--muted); }
.chart-dates { display: flex; justify-content: space-between; margin-top: 4px; }
.chart figcaption { margin: 10px 0 0; }
.chart-table { margin-top: 10px; font-size: .85rem; }
.chart-table table { border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { padding: 3px 20px 3px 0; text-align: left; border-bottom: 1px solid var(--line); }

.subscribe-panel { background: var(--navy); color: var(--on-navy); padding: 44px clamp(20px, 5vw, 56px); border-radius: var(--radius); }
.subscribe-panel h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.subscribe-panel > p { opacity: .85; }
.subscribe-panel .signup-row { max-width: 620px; margin-top: 20px; }
.subscribe-panel .signup-row input { background: rgba(255, 255, 255, .95); color: #1c2230; border-color: transparent; }
.subscribe-panel .note { color: var(--on-navy); opacity: .7; }
.subscribe-panel .note a { color: var(--gold); }

.related-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* 写真枠（写真がなければブランド色の代替画像） */
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.card:hover .photo img { transform: scale(1.03); }
.photo-large { border-radius: var(--radius); }
.photo-credit { position: absolute; right: 6px; bottom: 4px; font-size: .62rem; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .8); }
.photo-skyline { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255, 255, 255, .16); }
.photo-windows { fill: rgba(255, 255, 255, .24); }
.photo-brand { position: absolute; right: 12px; bottom: 10px; font-family: var(--latin); font-style: italic; font-size: .85rem; letter-spacing: .1em; color: rgba(255, 255, 255, .85); }
.tone-0 { background: linear-gradient(165deg, #4d5566, #262c38); }
.tone-1 { background: linear-gradient(165deg, #33496b, #16233a); }
.tone-2 { background: linear-gradient(165deg, #7a6446, #3a2d1d); }
.tone-3 { background: linear-gradient(165deg, #3d5f5c, #1c302e); }
.tone-4 { background: linear-gradient(165deg, #5f4b5c, #2d2230); }
.tone-5 { background: linear-gradient(165deg, #4a5270, #222739); }

/* ==========================================================
   メッセージ・文書・LINE の建物選択
   ========================================================== */
.message, .doc { max-width: 760px; padding: 56px 0; }
.message h1, .doc h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 16px; }
.doc h2 { font-size: 1.05rem; margin-top: 36px; padding-left: 12px; border-left: 2px solid var(--gold); }
.doc .spec th { width: 45%; }
.plain { padding-left: 1.2em; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-q { flex: 1 1 260px; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.filter-count { width: 100%; margin: 0; font-size: .82rem; color: var(--muted); }
.check-buildings { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.check-buildings .building { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.check-buildings .building:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.check-buildings .building[hidden] { display: none; }
.building-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.building-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); flex-shrink: 0; }
.building-main { display: flex; flex-direction: column; }

/* ダークモードでは紺のボタンが背景に溶けるので、主要ボタンをゴールドにする */
@media (prefers-color-scheme: dark) {
  .button-primary { background: var(--gold); border-color: var(--gold); color: #1a1408; }
  .button-primary:hover { background: #d8b67c; color: #1a1408; }
  .view-switch button.is-active, .pagination [aria-current] { background: var(--gold); border-color: var(--gold); color: #1a1408; }
}

/* 広告（A8.net）の枠。控えめに、PR と分かるように */
.pr-box { margin: 2.5rem 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; }
.pr-head { margin: 0 0 .6rem; font-weight: 500; }
.pr-badge { display: inline-block; margin-right: .5rem; padding: 0 .4rem; border: 1px solid var(--muted); border-radius: 3px; font-size: .7rem; line-height: 1.5; color: var(--muted); letter-spacing: .08em; vertical-align: .1em; }
.pr-list { margin: 0 0 .5rem; padding: 0; list-style: none; }
.pr-list li { margin: 0 0 .7rem; }
.pr-text { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .2rem; }
.pr-list img { max-width: 100%; height: auto; vertical-align: middle; }
.pr-list img.pr-px { width: 1px; height: 1px; }
.pr-box .note { margin: 0; }

/* ==========================================================
   満室が続く建物・要点・募集履歴（2026-10-29）
   ========================================================== */
.badge-demand { margin-left: 6px; background: var(--gold-soft); color: var(--gold-ink); }
.badge-demand.is-full { background: var(--navy); color: var(--on-navy); }
.detail-key { margin-top: 40px; }
.detail-key h2 { font-size: 1.05rem; margin: 0 0 12px; }
.key-facts { margin: 0; border: 1px solid var(--line); background: var(--surface); }
.key-facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.key-facts div:first-child { border-top: 0; }
.key-facts dt { font-size: .8rem; color: var(--muted); letter-spacing: .06em; padding-top: 2px; }
.key-facts dd { margin: 0; }
@media (max-width: 560px) { .key-facts div { grid-template-columns: 1fr; gap: 2px; } }
.subscribe-top { margin-top: 32px; }
.subscribe-compact { padding: 28px clamp(20px, 4vw, 40px); }
.subscribe-compact h2 { font-size: 1.15rem; }
.card-badge.is-full { background: var(--navy); color: var(--on-navy); }
.lead-note { font-size: .9rem; color: var(--muted); margin-top: -4px; }
