/* 物件一覧・物件詳細ページ（PHP側で描画するページ）のスタイル
 *
 * Nextのビルド成果物（/_next/static/*.css）はファイル名にハッシュが入り毎回変わるので、
 * PHPから参照できない。ここは独立したCSSとして持ち、色・書体・余白の取り方だけを
 * website/app/globals.css と揃えてある。 */

:root {
  --ink: #17211e;
  --cream: #f3f1eb;
  --lime: #798543;
  --lime-light: #c6d53b;
  --line: rgba(23, 33, 30, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Manrope, "Noto Sans JP", "Noto Serif JP", sans-serif;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.prop-wrap { width: min(1200px, 84vw); margin: auto; }

/* ── ヘッダ ───────────────────────────────── */

.prop-header {
  position: fixed;
  z-index: 5;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 4vw;
  color: #fff;
  background: rgba(9, 13, 12, .60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.prop-brand { display: flex; flex-direction: column; line-height: 1; letter-spacing: .05em; }
.prop-brand .brand-logo { width: 148px; height: auto; }
.prop-brand small { margin-top: 7px; font-size: 8px; letter-spacing: .21em; }

.prop-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; letter-spacing: .08em; }
.prop-nav a { padding: 4px 0; opacity: .9; white-space: nowrap; transition: opacity .25s ease; }
.prop-nav a:hover { opacity: .58; }

.prop-mnav { display: none; }
.prop-mnav-toggle { background: none; border: 0; padding: 6px; cursor: pointer; }
.prop-mnav-toggle i { display: block; width: 24px; height: 1px; background: #fff; margin: 6px; }
.prop-mnav-panel {
  position: absolute;
  right: 5vw; top: 62px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: rgba(23, 33, 30, .95);
  font-size: 15px;
  letter-spacing: .08em;
}
.prop-mnav-panel.is-open { display: flex; }
.prop-mnav-panel a { padding: 8px 0; }

/* ── 見出し帯 ─────────────────────────────── */

.prop-hero { padding: 190px 8vw 120px; color: #fff; background: var(--ink); }
.prop-hero h1 {
  margin: 26px 0 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.48;
  letter-spacing: .08em;
}
.prop-hero-text {
  margin: 25px 0 0;
  color: #d6dbd1;
  font: 17px/2 "Noto Serif JP", serif;
  letter-spacing: .07em;
}
.prop-hero-back {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 34px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-size: 14px; letter-spacing: .1em;
}

.prop-label {
  display: flex; align-items: center; gap: 17px;
  margin: 0;
  color: var(--lime-light);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
}
.prop-label.ink { color: #68772f; }

/* ── 一覧 ─────────────────────────────────── */

.prop-list { padding: 110px 0 40px; }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 25px; }

.prop-card { display: block; }
.prop-card-photo { position: relative; height: 260px; overflow: hidden; background: #31413b; }
.prop-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.prop-card:hover .prop-card-photo img { transform: scale(1.05); }
.prop-card-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0006, transparent 55%); }
.prop-card-photo > span { position: absolute; z-index: 1; left: 18px; bottom: 15px; color: #fff; font-size: 11px; letter-spacing: .18em; }

.prop-badge {
  position: absolute; z-index: 1; right: 14px; top: 14px;
  padding: 6px 12px;
  background: rgba(23, 33, 30, .86);
  color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
}
.prop-badge.ink { position: static; margin-left: 6px; background: var(--ink); }
.prop-card.is-closed .prop-card-photo img { filter: grayscale(.55); }

.prop-card-meta { padding-top: 20px; }
.prop-card-meta small { color: var(--lime); font-size: 11px; letter-spacing: .16em; }
.prop-card-meta h3 {
  margin: 10px 0;
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: 21px; letter-spacing: .06em;
}
.prop-card-meta p { margin: 0; font: 14px/1.9 "Noto Serif JP", serif; letter-spacing: .04em; }
.prop-card-meta em {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px;
  color: var(--lime);
  font-style: normal; font-size: 13px; letter-spacing: .1em;
}
.prop-card-meta i { font-style: normal; font-size: 16px; }

.prop-empty {
  padding: 60px 0 40px;
  font: 17px/2.1 "Noto Serif JP", serif;
  letter-spacing: .05em;
  text-align: center;
}

/* ── 詳細 ─────────────────────────────────── */

.prop-detail { padding-top: 108px; }

.prop-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 34px 0 0;
  font-size: 12px; letter-spacing: .06em;
  color: #55605b;
}
.prop-breadcrumb span { opacity: .5; }
.prop-breadcrumb b { font-weight: 500; color: var(--ink); }
.prop-breadcrumb a:hover { color: var(--lime); }

.prop-detail-head { padding: 46px 0 40px; }
.prop-detail-head h1 {
  margin: 22px 0 0;
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1.5; letter-spacing: .08em;
}
.prop-detail-sub { margin: 20px 0 0; font: 17px/2 "Noto Serif JP", serif; letter-spacing: .05em; }

.prop-gallery { width: min(1200px, 84vw); margin: 0 auto 10px; }
.prop-gallery figure { margin: 0; overflow: hidden; background: #e7e7dd; }
.prop-gallery-main { height: clamp(280px, 42vw, 560px); }
.prop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prop-gallery-rest {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 12px;
}
.prop-gallery-rest figure { height: clamp(110px, 13vw, 180px); }
.prop-gallery-rest img { width: 100%; height: 100%; object-fit: cover; }

/* 左に物件概要、右に問合せ窓口。
   問合せ側はスクロールに追従させ、物件を見ながらいつでも相談へ移れるようにする。
   top の 100px は固定ヘッダ（約80px）＋余白。ヘッダの高さを変えたらここも直す。 */
.prop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: min(6vw, 64px);
  padding: 70px 0 96px;
  align-items: start;
}

.prop-overview-panel { padding: 32px 34px; background: #e4e5dc; }
.prop-overview-title {
  margin: 0 0 20px;
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: 20px; letter-spacing: .08em;
}
.prop-overview { margin: 0; }
.prop-overview > div {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px;
  padding: 16px 0; border-bottom: 1px solid rgba(23, 33, 30, .18);
}
.prop-overview > div:first-of-type { border-top: 1px solid rgba(23, 33, 30, .18); }
.prop-overview dt { color: #5c6640; font-size: 13px; letter-spacing: .1em; line-height: 1.9; }
.prop-overview dd { margin: 0; font: 16px/1.9 "Noto Serif JP", serif; letter-spacing: .04em; }
.prop-overview-empty { margin: 0; font: 15px/2 "Noto Serif JP", serif; letter-spacing: .04em; }

/* ── 問合せ窓口 ───────────────────────────── */

/* 白地だと問合せ導線が沈むので、サイトが物件まわりで使っている暗色（--ink）を敷く。
   左の物件概要（薄緑）と並べたとき、目線が右へ行くようにする。
   ボタンは暗色の上で最も映える #c6d53b（他ページの見出しアクセントと同じ色）。
   濃い文字を載せて 10.2:1 で、白×ライム（4.0:1）より読みやすい。 */
.prop-contact {
  position: sticky; top: 100px;
  padding: 32px 30px 30px;
  background: var(--ink);
  color: #f9f8f3;
}
.prop-contact-closed {
  margin: 0 0 22px; padding: 14px 16px;
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid var(--lime-light);
  font: 14px/1.85 "Noto Serif JP", serif; color: #dfe3da;
}
.prop-contact-lead {
  margin: 0 0 18px;
  color: var(--lime-light);
  font-family: "Noto Serif JP", serif; font-size: 19px; font-weight: 500;
  letter-spacing: .1em;
}
.prop-contact-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 0 24px;
  background: var(--lime-light); color: var(--ink);
  font: 700 18px "Noto Serif JP", serif; letter-spacing: .08em;
  transition: background .3s ease, transform .3s ease;
}
.prop-contact-cta:hover { background: #d5e356; transform: translateY(-2px); }
.prop-contact-cta:focus-visible { outline: 2px solid #f9f8f3; outline-offset: 3px; }
.prop-contact-cta b { font: 400 22px/1 Manrope, sans-serif; }

.prop-contact-tel {
  margin-top: 28px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
}
/* 電話番号を挟む「お電話でのご相談」「平日 9:00 — 18:00」。
   本文と同じ16pxまで上げてある。ここが小さいと番号だけが浮いて、
   いつ掛けてよいのかが伝わらない。 */
.prop-contact-tel small {
  display: block;
  color: #c7cec3; font-size: 16px; line-height: 1.7; letter-spacing: .1em;
}
/* 電話でのご相談を好む方が一定数いるので、番号は控えめにせず大きく出す。
   タップ領域も確保するため min-height を持たせている（文字の高さだけだと44pxに届かない）。 */
.prop-contact-tel a {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; margin: 10px 0 8px;
  font: 500 clamp(30px, 2.3vw, 34px)/1.25 "Noto Serif JP", serif;
  letter-spacing: .02em;
  color: #f9f8f3;
  white-space: nowrap;
}
.prop-contact-tel a:hover { color: var(--lime-light); }
.prop-contact-tel a:focus-visible { outline: 2px solid #f9f8f3; outline-offset: 3px; }

.prop-contact-note {
  margin: 24px 0 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #b9c0b6; font-size: 14px; line-height: 1.9;
}

/* ── ほかの物件 ───────────────────────────── */

.prop-related { padding: 100px 0; background: var(--ink); color: #f9f8f3; }
.prop-related .prop-grid { margin-top: 46px; }
.prop-related .prop-card-meta p { color: #d6dbd1; }
.prop-related .prop-card-meta small,
.prop-related .prop-card-meta em { color: var(--lime-light); }

/* ── 締めのCTA ────────────────────────────── */

.prop-cta { padding: 120px 8vw; text-align: center; }
.prop-cta-label { margin: 0; color: #7f8d15; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.prop-cta h2 {
  margin: 20px 0 37px;
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px); line-height: 1.5; letter-spacing: .08em;
}
.prop-cta-button {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 20px;
  min-width: 240px; padding: 18px 22px 18px 28px;
  background: var(--ink); color: #fff;
  font-size: 14px; letter-spacing: .1em;
  transition: background .3s, transform .3s;
}
.prop-cta-button:hover { background: #657117; transform: translateY(-3px); }
.prop-cta-button span { font-size: 20px; line-height: 12px; }

/* ── フッタ ───────────────────────────────── */

.prop-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px;
  padding: 55px 8vw 25px;
  background: #dfe2d7;
}
.prop-footer .footer-logo { width: 168px; height: auto; }
.prop-footer .footer-brand span { display: block; margin-top: 7px; font-size: 8px; letter-spacing: .18em; }
.prop-footer .footer-info { font: 12px/2 "Noto Serif JP", serif; letter-spacing: .04em; }
.prop-footer .footer-info-cols { display: flex; gap: 56px; margin-top: 10px; }
.prop-footer .footer-info p { margin: 0; }
.prop-footer small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 9px; letter-spacing: .12em;
}

/* ── スマートフォン ───────────────────────── */

@media (max-width: 1000px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }

  /* 横に並べるだけの幅が無くなったら縦積みにする。
     追従も解除する（画面が狭いと追従する箱が視界を占領してしまう） */
  .prop-body { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 76px; }
  .prop-contact { position: static; }
}

@media (max-width: 700px) {
  .prop-header { padding: 18px 6vw; }
  .prop-brand .brand-logo { width: 126px; }
  .prop-nav { display: none; }
  .prop-mnav { display: block; }

  .prop-hero { padding: 140px 8vw 82px; }
  .prop-hero h1 { font-size: 32px; }
  .prop-hero-text { font-size: 15px; }
  .prop-label { font-size: 11px; }

  .prop-list { padding: 70px 0 20px; }
  .prop-grid { grid-template-columns: 1fr; gap: 34px; }
  .prop-card-photo { height: 58vw; }

  .prop-detail { padding-top: 82px; }
  .prop-detail-head { padding: 32px 0 28px; }
  .prop-detail-head h1 { font-size: 30px; }
  .prop-detail-sub { font-size: 15px; }
  .prop-gallery-rest { grid-template-columns: repeat(2, 1fr); }
  .prop-gallery-rest figure { height: 32vw; }
  .prop-overview-panel { padding: 24px 22px; }
  .prop-overview > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .prop-overview dd { font-size: 15px; }
  .prop-contact { padding: 26px 22px 24px; }
  .prop-contact-lead { font-size: 18px; }
  .prop-contact-tel a { font-size: 31px; }

  .prop-related { padding: 72px 0; }
  .prop-cta { padding: 84px 7vw; }
  .prop-cta h2 { font-size: 27px; }

  .prop-footer { grid-template-columns: 1fr; padding: 44px 8vw 22px; gap: 25px; }
  .prop-footer .footer-info-cols { gap: 25px; flex-wrap: wrap; }
}
