/* 静的HTML版 property-detail.html の <style> をそのまま移したもの。直接編集しない（tools/build_page_css.py で作り直す） */
/* ── 物件詳細固有 ── */
.prop-detail-wrap{max-width:var(--max-w);margin:0 auto;padding:3rem 2rem 6rem;display:grid;grid-template-columns:1fr 360px;gap:4rem;align-items:start}

/* 写真ギャラリー */
.gallery-main{aspect-ratio:16/10;overflow:hidden;background:var(--color-light);margin-bottom:6px}
.gallery-main img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.gallery-main:hover img{transform:scale(1.02)}
.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.gallery-thumb{aspect-ratio:4/3;overflow:hidden;cursor:pointer;opacity:.7;transition:opacity .2s}
.gallery-thumb.active,.gallery-thumb:hover{opacity:1}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* 物件タイトルブロック */
.prop-header{margin:2.5rem 0 2rem}
.prop-header-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.9rem}
.prop-header-tag{font-size:.6rem;letter-spacing:.1em;padding:.2rem .65rem;border:1px solid var(--color-border);color:var(--color-muted)}
.prop-header h1{font-family:var(--font-serif);font-weight:300;font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.55;color:var(--color-dark);margin-bottom:.6rem}
.prop-header-location{font-size:.8rem;color:var(--color-muted);letter-spacing:.04em}

/* 物件キャッチ */
.prop-catch{background:var(--color-light);border-left:3px solid var(--color-main);padding:1.6rem 2rem;margin-bottom:2.5rem}
.prop-catch p{font-family:var(--font-serif);font-weight:300;font-size:1.05rem;line-height:1.9;color:var(--color-dark)}

/* 詳細テキスト */
.prop-body{font-size:.88rem;color:#555;line-height:2.1;font-weight:300}
.prop-body p{margin-bottom:1.2rem}
.prop-body h2{font-family:var(--font-serif);font-weight:400;font-size:1.1rem;color:var(--color-dark);margin:2.5rem 0 1rem;padding-bottom:.5rem;border-bottom:1px solid var(--color-border)}

/* 物件データテーブル */
.prop-data-section{margin:2.5rem 0}
.prop-data-section h2{font-family:var(--font-serif);font-weight:400;font-size:1.05rem;color:var(--color-dark);margin-bottom:1.2rem;padding-bottom:.5rem;border-bottom:1px solid var(--color-border)}

/* サイドバー */
.prop-sidebar{position:sticky;top:88px}
.sidebar-card{border:1px solid var(--color-border);background:#fff;padding:2rem}
.sidebar-price{font-family:var(--font-en);font-size:2.2rem;letter-spacing:.02em;color:var(--color-dark);display:block;margin-bottom:.2rem}
.sidebar-price-note{font-size:.7rem;color:var(--color-muted);margin-bottom:1.5rem}
.sidebar-specs{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.8rem;padding-bottom:1.5rem;border-bottom:1px solid var(--color-border)}
.sidebar-spec{display:flex;justify-content:space-between;font-size:.8rem}
.sidebar-spec dt{color:var(--color-muted)}
.sidebar-spec dd{color:var(--color-dark);font-weight:500}
.sidebar-cta-tel{font-family:var(--font-en);font-size:1.5rem;letter-spacing:.03em;color:var(--color-dark);display:block;text-align:center;margin-bottom:.25rem}
.sidebar-cta-hours{font-size:.68rem;color:var(--color-muted);text-align:center;display:block;margin-bottom:1.4rem}
.sidebar-btn{display:block;width:100%;padding:.95rem;background:var(--color-dark);color:#fff;font-size:.78rem;letter-spacing:.12em;text-align:center;border:none;cursor:pointer;font-family:inherit;transition:background .25s;margin-bottom:.6rem}
.sidebar-btn:hover{background:var(--color-main)}
.sidebar-btn-outline{background:transparent;border:1px solid var(--color-border);color:var(--color-dark)}
.sidebar-btn-outline:hover{background:var(--color-dark);color:#fff}
.sidebar-note{font-size:.68rem;color:var(--color-muted);text-align:center;margin-top:.8rem;line-height:1.7}

/* 関連物件 */
.related-section{background:var(--color-light);padding:5rem 2rem}
.related-inner{max-width:var(--max-w);margin:0 auto}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2rem}

@media(max-width:960px){
  .prop-detail-wrap{grid-template-columns:1fr;gap:2rem}
  .prop-sidebar{position:static}
  .related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:580px){
  .gallery-thumbs{grid-template-columns:repeat(4,1fr)}
  .related-grid{grid-template-columns:1fr}
}

/* ── 防災情報フッター（design-v14.cssに委譲）── */
.footer-hazard-col { min-width: 160px; }

/* ── 物件詳細：ハザードマップ確認ボックス ── */
.hazard-check-box {
  margin: 2.5rem 0;
  border: 1.5px solid #e8a090;
  border-radius: 10px;
  overflow: hidden;
}
.hazard-check-inner {
  display: flex;
  flex-direction: row;
  gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  background: #fdf4f2;
  align-items: flex-start;
}
.hazard-check-icon {
  flex-shrink: 0;
  margin-top: .15rem;
  width: 28px;
  height: 28px;
}
.hazard-check-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.hazard-check-body {
  flex: 1;
  min-width: 0;
}
.hazard-check-title {
  font-weight: 600;
  font-size: .95rem;
  color: #b03020;
  margin-bottom: .35rem;
  line-height: 1.5;
}
.hazard-check-sub {
  font-size: .8rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.hazard-check-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.btn-hazard-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #d94030;
  color: #fff !important;
  font-size: .8rem;
  font-weight: 500;
  padding: .6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-hazard-primary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.btn-hazard-primary:hover {
  background: #b53020;
  transform: translateY(-1px);
}
.btn-hazard-sub {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  color: #b03020 !important;
  border: 1.5px solid #e8a090;
  padding: .55rem 1rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-hazard-sub:hover {
  background: #fae8e5;
  border-color: #d94030;
}
@media (max-width: 640px) {
  .hazard-check-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }
  .hazard-check-links {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hazard-primary,
  .btn-hazard-sub {
    justify-content: center;
    text-align: center;
  }
}
