/* /style.css（物件一覧のみの最小スタイル） */
:root {
  --gap: 16px;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', Meiryo,
    sans-serif;
  margin: 0;
  color: #111;
  background: #fafafa;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}
.site-header,
.site-footer {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.site-footer {
  border-top: 1px solid #eee;
  border-bottom: none;
  text-align: center;
}

/* 一覧カード */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.property-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.property-card .prop-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.property-card .prop-title a {
  color: #111;
  text-decoration: none;
}
.property-card .prop-title a:hover {
  text-decoration: underline;
}
/* 訪問済みリンクをグレーに */
.property-card .prop-title a:visited {
  color: #888;
}
.property-card .prop-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
  color: #333;
}

.sort-options-wrapper {
  margin: 20px 0;
}

/* モーダル背景 */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 999;
  inset: 0; /* left/top/right/bottom:0 の省略形 */
  width: 100%;
  height: 100svh; /* iOS向けの安定vh。svh/dvh は対応ブラウザで有効 */
  background: rgba(0, 0, 0, 0.6);
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* 非表示 */
.hidden {
  display: none !important;
}

#searchSection {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: #fff;
}

/* style.css に追記（任意：視覚的なスクロールバー幅変動を抑えたい場合） */
body.is-scroll-locked {
  overscroll-behavior: contain;
}

/* モーダル本体 */
.modal-content {
  background: #fff;
  width: min(92vw, 640px);
  max-height: min(90vh, calc(100dvh - 40px)); /* 端末に応じて天井を下げる */
  overflow-y: auto;
  position: relative;
  padding: 20px;
  border-radius: var(--radius, 10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}

/* iPhoneのズーム回避：フォーム要素は最低16px */
.modal-content input,
.modal-content select,
.modal-content button,
.modal-content textarea {
  font-size: 16px; /* これが肝心！ */
  line-height: 1.4;
}

/* もし全体のフォームUIを少し大きくしたい場合 */
.modal-content input,
.modal-content select {
  padding: 8px 12px;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}
.close:hover {
  color: #000;
}
