/* 株式会社Unity Estate — 物件検索
   トップと同じ：白地に墨色の文字、ロゴのオレンジ、Cinzelの英字、丸いボタン。
   飾りは減らして、検索は横一列・物件は写真＋家賃＋駅だけのカードにする。 */

:root {
  --paper: #ffffff;       /* ページの地 */
  --bg: #f5f2ee;          /* うすい面（入力欄・札など） */
  --surface: #ebe6e0;
  --surface-2: #d9d3cc;
  --line: #ece8e3;        /* 細い線 */
  --ink: #1c1916;
  --muted: #6b645c;
  --accent: #c04619;      /* ボタン */
  --accent-bright: #d9531e; /* ロゴそのままのオレンジ */
  --accent-soft: #fbe9e0;
  --accent-ink: #ffffff;
  --dark: #1c1916;

  --font: "Zen Kaku Gothic New", "Archivo", system-ui, sans-serif;
  --serif: "Cinzel", "Times New Roman", serif;
  --step-small: 0.875rem;
  --step-body: 1rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.5rem + 2vw, 3rem);

  --margin: clamp(16px, 4vw, 64px);
  --bar: 72px;
  --tool: 68px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, fieldset, table { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ボタン ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button:hover { background: var(--ink); }
.button:active { transform: scale(0.97); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; }
.button-small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.button-wide { width: 100%; }
.field { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.8rem; background: var(--bg); color: var(--ink); border: 0; border-radius: 10px; font: inherit; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--step-small); color: var(--muted); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.close-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--bg); color: var(--ink); border: 0; border-radius: 50%; cursor: pointer; transition: background-color 160ms ease; }
.close-btn:hover { background: var(--surface); }

/* ---------- 上のバー（トップと同じ形） ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--margin); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); }
.bar-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 1.0625rem/1 var(--serif); letter-spacing: 0.12em; }
.bar-mark img { width: 38px; transition: transform 600ms var(--ease-out); }
.bar-mark:hover img { transform: rotate(-30deg); }
.bar-right { display: flex; gap: 8px; }
.hd-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 0.875rem/1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.hd-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 300ms var(--ease-out); }
.hd-pill:hover i { transform: scale(1.8); }
.hd-dark { background: var(--ink); color: #fff; }
.hd-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 入口 ---------- */
.hero { background: var(--paper); color: var(--ink); padding: clamp(32px, 5vw, 72px) var(--margin) clamp(28px, 3vw, 40px); }
.hero-inner { max-width: 1320px; margin: 0 auto; }
.label { font-family: var(--serif); font-size: 0.875rem; letter-spacing: 0.18em; color: var(--accent-bright); margin-bottom: 10px; }
.title { font-size: var(--step-head); letter-spacing: 0.04em; line-height: 1.2; }
.sub { margin-top: 10px; color: var(--muted); }

.searchbar { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch; background: var(--paper); color: var(--ink); border: 1px solid var(--surface-2); border-radius: 999px; padding: 6px; gap: 0; }
.sb-item { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 6px 24px; border-radius: 999px; cursor: pointer; transition: background-color 160ms ease; }
.sb-item + .sb-item::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--surface-2); }
.sb-item:hover, .sb-item:focus-within { background: var(--bg); }
.sb-item:hover::before, .sb-item:focus-within::before, .sb-item:hover + .sb-item::before, .sb-item:focus-within + .sb-item::before { opacity: 0; }
.sb-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.sb-field { appearance: none; width: 100%; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 1rem; color: var(--ink); outline: none; cursor: pointer; }
.sb-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; min-height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); white-space: nowrap; }
.sb-go:hover { background: var(--ink); color: #fff; }
.sb-go:active { transform: scale(0.97); }
.sb-go b { font-size: 1.125rem; margin-right: 2px; }
.sample-note { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- 操作バー ---------- */
.toolbar { position: sticky; top: var(--bar); z-index: 40; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: var(--bar); }
.toolbar-inner { max-width: 1320px; margin: 0 auto; min-height: var(--tool); display: flex; align-items: center; gap: 16px; padding: 10px var(--margin); }
.mode-map .toolbar-inner { max-width: none; }
.count { display: flex; align-items: baseline; gap: 4px; flex: none; }
.count b { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; display: inline-block; }
.count b.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-6px); color: var(--accent); } }
.count span { font-size: var(--step-small); }
.active { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.active::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 0.875rem; cursor: pointer; animation: pop-in 260ms var(--ease-out); }
.pill .ico { width: 14px; height: 14px; }
.pill:hover { background: var(--accent); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85); } }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--surface-2); font: inherit; font-size: var(--step-small); cursor: pointer; transition: background-color 160ms ease; }
.tool:hover { background: var(--bg); }
.tool[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.tool[aria-pressed="true"] .ico { fill: currentColor; }
.tool select { appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0 2px; }
.badge[hidden] { display: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; }
.switch { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 999px; }
.switch button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: var(--step-small); cursor: pointer; color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- 結果 ---------- */
.results { position: relative; z-index: 0; isolation: isolate; max-width: 1320px; margin: 0 auto; padding: 28px var(--margin) 56px; }
.map-wrap { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; }
.card { cursor: pointer; position: relative; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); animation: card-in 520ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 50ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.card:hover .slides-track img { transform: scale(1.03); }
.slides-track img { transition: transform 600ms var(--ease-out); }
.card.is-hot { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.slides { position: relative; aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.slides-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.s-nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity 200ms ease, transform 160ms var(--ease-out); }
.s-prev { left: 10px; } .s-next { right: 10px; }
.card:hover .s-nav, .s-nav:focus-visible { opacity: 1; }
.s-nav:active { transform: scale(0.9); }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: background-color 200ms ease, transform 200ms ease; }
.dots i.on { background: #fff; transform: scale(1.3); }
.c-fav { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--accent); cursor: pointer; transition: transform 160ms var(--ease-out); }
.c-fav:active { transform: scale(0.85); }
.c-fav[aria-pressed="true"] { background: var(--accent); color: #fff; }
.c-fav[aria-pressed="true"] .ico { fill: currentColor; }
.c-fav.burst { animation: burst 420ms var(--ease-out); }
@keyframes burst { 40% { transform: scale(1.3); } }
.c-flag { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.c-flag span { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.c-flag .new { background: var(--accent); color: #fff; }
.c-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.c-rent { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-rent b { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; color: var(--accent); }
.c-rent b small { font-size: 0.875rem; margin-left: 2px; }
.c-rent > small { font-size: 0.8125rem; color: var(--muted); }
.c-spec { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-weight: 500; }
.c-spec span + span::before { content: "・"; color: var(--muted); font-weight: 400; margin-right: 6px; }
.c-access { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { padding: 2px 10px; background: var(--bg); border-radius: 999px; font-size: 0.8125rem; }
.c-fav, .s-nav { z-index: 2; }

.empty[hidden] { display: none !important; }   /* 地図表示のスマホ用の display 指定より優先して隠す */
.empty { padding: 56px 24px; background: var(--bg); border-radius: var(--radius); text-align: center; }
.empty h3 { font-size: var(--step-lead); }
.empty p { margin: 10px auto 22px; max-width: 30em; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.legal { max-width: 1320px; margin: 0 auto 56px; padding: 0 var(--margin); font-size: 0.8125rem; color: var(--muted); }

/* ---------- 地図のとき ---------- */
.mode-map .results { max-width: none; padding: 0; display: grid; grid-template-columns: minmax(380px, 440px) 1fr; height: calc(100vh - var(--bar) - var(--tool)); }
.mode-map .list-wrap { overflow-y: auto; padding: 8px 16px 24px var(--margin); }
.mode-map .cards { grid-template-columns: 1fr; gap: 14px; }
.mode-map .card { flex-direction: row; gap: 14px; min-height: 120px; padding: 10px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); animation: none; }
.mode-map .slides { aspect-ratio: auto; width: 38%; flex: none; border-radius: 10px; }
.mode-map .c-spec { flex-wrap: wrap; gap: 0 6px; margin-top: 2px; font-size: 0.9375rem; white-space: nowrap; }
.mode-map .c-spec span + span::before { margin-right: 6px; }
.mode-map .c-flag span { font-size: 0.75rem; padding: 2px 8px; }
.mode-map .c-flag span:not(.new) { display: none; }
.mode-map .c-fav { width: 34px; height: 34px; top: 8px; right: 8px; }
.mode-map .c-body { padding: 2px 0; justify-content: center; }
.mode-map .c-rent b { font-size: 1.25rem; }
.mode-map .c-town { display: none; }
.mode-map .c-access { font-size: 0.8125rem; }
.mode-map .dots, .mode-map .s-nav { display: none; }
.mode-map .map-wrap { display: block; position: relative; }
.mode-map .legal, .mode-map .hero { display: none; }
.map { position: absolute; inset: 0; background: #e9e6e0; }
.map-top { position: absolute; z-index: 5; top: 12px; left: 12px; right: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-follow { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper); font-size: 0.875rem; box-shadow: 0 6px 20px rgba(13, 11, 10, 0.18); cursor: pointer; white-space: nowrap; }
.map-follow input { width: 18px; height: 18px; accent-color: var(--accent); }
.poi-bar { display: flex; flex-wrap: wrap; gap: 6px; max-width: 640px; }
.poi-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.8125rem; box-shadow: 0 3px 10px rgba(13, 11, 10, 0.14); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.poi-btn i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 0.6875rem; font-weight: 700; }
.poi-btn:hover { transform: translateY(-1px); }
.poi-btn[aria-pressed="true"] { background: var(--c); color: #fff; }
.poi-btn.is-loading i { animation: poi-wait 0.9s linear infinite; }   /* 読み込み中は印がくるくる回る */
@keyframes poi-wait { to { transform: rotate(360deg); } }
.poi-btn[aria-pressed="true"] i { background: #fff; color: var(--c); }
.poi-pop { display: flex; flex-direction: column; gap: 2px; font-family: var(--font); font-size: 0.875rem; }
.poi-pop p { margin: 4px 0 0; color: var(--muted); font-size: 0.8125rem; }
.map-note { position: absolute; z-index: 5; left: 12px; bottom: 28px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-size: 0.8125rem; color: var(--muted); }

/* 地図の家マーク（屋根つきの家の形に家賃を入れる） */
.price-pin { background: none; border: 0; padding: 0 0 4px; cursor: pointer; }
.house { position: relative; display: inline-block; transform-origin: 50% 100%; transition: transform 220ms var(--ease-out); filter: drop-shadow(0 2px 4px rgba(13, 11, 10, 0.3)); }
.house b { display: block; width: 20px; height: 18px; background: var(--ink);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); border-radius: 0 0 4px 4px; transition: background-color 160ms ease, color 160ms ease; }
.house b::before { content: ""; position: absolute; left: 50%; top: 11px; width: 5px; height: 7px; margin-left: -2.5px; border-radius: 1px 1px 0 0; background: rgba(255, 255, 255, 0.55); }  /* 小さなドア */
.house::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--ink); transition: border-color 160ms ease; }
.price-pin:hover .house { transform: translateY(-3px); }
.price-pin.is-hot .house { transform: scale(1.4); }
.price-pin.is-hot .house b { background: var(--accent); }
.price-pin.is-hot .house::after { border-top-color: var(--accent); }
.price-pin.is-fav .house b { background: var(--accent-bright); color: var(--dark); }
.price-pin.is-fav .house b::before { background: rgba(13, 11, 10, 0.35); }
.price-pin.is-fav .house::after { border-top-color: var(--accent-bright); }
.maplibregl-popup-content { border-radius: 14px; padding: 10px 12px; font-family: var(--font); box-shadow: 0 8px 24px rgba(13, 11, 10, 0.2); }
.pop-wrap .maplibregl-popup-content { padding: 6px; border-radius: 12px; }
.pop { display: flex; align-items: center; gap: 10px; }
.pop img { width: 52px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; }
.pop div { display: flex; flex-direction: column; min-width: 0; padding-right: 6px; }
.pop b { font-size: 0.9375rem; line-height: 1.3; }
.pop p { margin: 0; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.pop-open { align-self: flex-start; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- くわしい条件（右から出る） ---------- */
.filters { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--paper); transform: translateX(105%); transition: transform 380ms var(--ease-out); visibility: hidden; }
.filters.is-open { transform: none; visibility: visible; }
.filters-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 10px; }
.filters-title { font-size: var(--step-lead); margin-right: auto; }
.filters-body { flex: 1; overflow-y: auto; padding: 0 22px; }
fieldset { border: 0; padding: 14px 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--step-small); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 13px; background: var(--bg); border-radius: 999px; font-size: var(--step-small); transition: background-color 160ms ease, color 160ms ease; }
.chip:hover span { background: var(--surface); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 2.25rem; font-size: var(--step-small); cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.filters-foot { padding: 14px 22px 20px; background: var(--paper); }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(13, 11, 10, 0.5); animation: fade 260ms ease; }
@keyframes fade { from { opacity: 0; } }

/* ---------- くわしい画面 ---------- */
.detail { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); overflow: auto; }
.detail::backdrop { background: rgba(13, 11, 10, 0.62); }
.detail[open] { animation: rise 360ms var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(0.98); } }
.detail-close { position: absolute; top: 14px; right: 14px; z-index: 600; background: rgba(255, 255, 255, 0.94); }
.detail-inner { display: grid; grid-template-columns: 1.15fr 1fr; }
.gallery { background: var(--bg); padding-bottom: 14px; }
.gallery-main { position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); cursor: pointer; transition: transform 160ms var(--ease-out); }
.g-nav:active { transform: scale(0.9); }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; padding: 2px 10px; border-radius: 999px; background: rgba(13, 11, 10, 0.75); color: #fff; font-size: 0.8125rem; }
.thumbs { display: flex; gap: 8px; padding: 10px 14px; }
.thumbs button { width: 76px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.5; transition: opacity 160ms ease; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-map { height: 200px; margin: 4px 14px 0; border-radius: 12px; overflow: hidden; }
.d-area { width: 64px; height: 64px; border-radius: 50%; background: rgba(240, 122, 69, 0.3); border: 2px solid var(--accent); }
.near { margin-top: 4px; }
.gakku-list { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9375rem; max-width: none; }
.gakku-list span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--bg); border-radius: 999px; }
.gakku-list i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 0.75rem; font-weight: 700; }
.gakku-btn i { background: transparent; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.gakku-btn[aria-pressed="true"] i { background: #fff; color: var(--c); box-shadow: none; }
.near-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.near-title span { font-weight: 400; font-size: 0.8125rem; color: var(--muted); margin-left: 4px; }
.near-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.near-list li { display: grid; grid-template-columns: 24px auto 1fr; align-items: center; column-gap: 8px; row-gap: 0; padding: 8px 10px; background: var(--bg); border-radius: 12px; font-size: 0.875rem; }
.near-list i { grid-row: span 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 0.75rem; font-weight: 700; }
.near-n { justify-self: end; font-weight: 700; }
.near-n.none { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.near-1 { grid-column: 2 / -1; font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-wait { grid-column: 1 / -1; color: var(--muted); }
.detail-body { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.d-where { color: var(--muted); font-size: var(--step-small); }
.d-title { font-size: var(--step-lead); padding-right: 40px; }
.d-rent b { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.d-rent span { margin-left: 10px; color: var(--muted); font-size: var(--step-small); }
.d-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.d-facts div { padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.d-facts dt { font-size: 0.8125rem; color: var(--muted); }
.d-facts dd { font-weight: 700; }
.spec { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--surface); vertical-align: top; }
.spec th { width: 7.5em; color: var(--muted); font-weight: 400; }
.d-actions { display: grid; gap: 8px; margin-top: 6px; }
.compose-note { min-height: 1.4em; font-size: var(--step-small); color: var(--muted); }

/* ---------- 下 ---------- */
.foot { padding: 40px var(--margin); background: #ffffff; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step-small); }
.foot-info { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; font-style: normal; line-height: 1.7; }
.foot-info a { color: inherit; }
.foot-copy { max-width: 1320px; margin: 18px auto 0; }
.foot-credit { max-width: 1320px; margin: 6px auto 0; font-size: 0.8125rem; }
.addr { white-space: nowrap; font-size: min(var(--step-small), 3.1vw); }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1080px) {
  .searchbar { grid-template-columns: 1fr 1fr 1fr; border-radius: 24px; gap: 4px; }
  .sb-item { border-radius: 16px; padding: 8px 18px; }
  .sb-go { grid-column: 1 / -1; min-height: 52px; }
  .tool-text { display: none; }
}
@media (max-width: 860px) {
  :root { --tool: 112px; }
  .toolbar-inner { flex-wrap: wrap; row-gap: 8px; }
  .toolbar-inner { min-height: 0; }
  .active { order: 3; flex-basis: 100%; }
  .active:empty { display: none; }
  .tools { margin-left: auto; }
  .tool-sort { display: none; }
  .mode-map .results { display: block; position: relative; height: calc(100vh - var(--bar) - var(--tool)); }
  .mode-map .map-wrap { position: absolute; inset: 0; }
  /* 地図のときは、カードを下に横並びで流す */
  .mode-map .list-wrap { position: absolute; z-index: 600; left: 0; right: 0; bottom: 14px; padding: 0; overflow: visible; }
  .mode-map .cards { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
  .mode-map .cards::-webkit-scrollbar { display: none; }
  .mode-map .card { flex: 0 0 86%; scroll-snap-align: center; height: 128px; min-height: 0; animation: none; box-shadow: 0 8px 24px rgba(13, 11, 10, 0.2); }
  .mode-map .c-body { padding: 10px 12px; gap: 2px; min-width: 0; }
  .mode-map .card { padding: 8px; background: var(--paper); }
  .mode-map .c-rent > small { display: none; }
  .mode-map .c-spec { flex-wrap: nowrap; font-size: 0.875rem; }
  .mode-map .c-access { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mode-map .c-access br { display: none; }
  .mode-map .empty { margin: 0 16px; padding: 14px 16px; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .mode-map .empty h3 { font-size: 0.9375rem; flex: 1; }
  .mode-map .empty p { display: none; }
  .mode-map .empty-actions { gap: 6px; }
  .mode-map .empty .button { min-height: 2.25rem; padding: 0 0.9rem; font-size: 0.8125rem; }
  .map-top { left: 10px; right: 48px; top: 10px; }
  .map-follow { font-size: 0.8125rem; padding: 7px 12px; }
  .poi-bar { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 4px; }
  .poi-btn { flex: none; }
  .map-note { display: none; }
  .near-list { grid-template-columns: 1fr; }
  .detail-inner { grid-template-columns: 1fr; }
  .detail { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .d-facts { grid-template-columns: repeat(2, 1fr); }
  .d-map { height: 140px; }
  .filters { top: auto; left: 0; width: 100vw; height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(105%); }
}
@media (max-width: 560px) {
  .hd-top { display: none; }
  .bar-mark { font-size: 0.9375rem; }
  .searchbar { grid-template-columns: 1fr; }
  .sb-item + .sb-item::before { left: 18px; right: 18px; top: 0; bottom: auto; width: auto; height: 1px; }
  .cards { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .count b { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .pill, .count b.bump, .detail[open], .scrim { animation: none; }
  .filters, .card, .slides-track { transition: none; scroll-behavior: auto; }
}
