/* ═══════════════════════════════════════════════════════
   Roopt.jp — property.css  (個別物件ページ)
   ═══════════════════════════════════════════════════════ */

/* ─── パンくずリスト ────────────────────────────────── */
.prop-breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.prop-breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem 2rem;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.prop-breadcrumb-inner a {
  color: var(--green);
  text-decoration: none;
}

.prop-breadcrumb-inner a:hover { text-decoration: underline; }
.prop-breadcrumb-inner .sep    { color: var(--muted); }

/* ─── サブナビ（概要 / アクセス / ハウスルール / 予約者向け） ── */
.prop-subnav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px; /* 概要ページ（prop-sub-headerなし）はここに張り付く */
  z-index: 197;
}

/* 概要ページ（prop-slim-headerがある）はスリムバーの下に張り付く */
.prop-slim-header ~ .prop-subnav {
  top: 130px; /* 72px (header) + 58px (slim bar) */
}

.prop-subnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem 2rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.prop-subnav-link {
  display: inline-block;
  padding: .4rem 1.25rem;
  border-radius: 30px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.prop-subnav-link:hover,
.prop-subnav-link.active {
  background: var(--green);
  color: var(--bg-card);
}

/* ─── サブページ プロパティヘッダー ────────────────── */
/* アクセス・詳細・ハウスルール・メッセージページ用 */
/* sticky バー（初期：サムネイル表示、スクロールで縮小） */
.prop-sub-header {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--text);
  min-height: 160px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 72px;
  z-index: 198;
}

/* サブページ：サブナビはコンパクト時のヘッダー下に sticky */
.prop-sub-header ~ .prop-subnav {
  top: 144px; /* 72px (global header) + ~72px (compact sub-header) */
}

.prop-sub-header-thumb {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.prop-sub-header-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-sub-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  gap: .35rem;
}

.prop-sub-header-area {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.prop-sub-header-name {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--bg-card);
  font-family: var(--font-ja);
  margin: 0;
  line-height: 1.3;
}

/* 店舗名リンク（サブページ → 概要ページ） */
a.prop-sub-header-name {
  text-decoration: none;
  display: block;
}
a.prop-sub-header-name:hover {
  text-decoration: underline;
  opacity: .85;
}

.prop-sub-header-page {
  display: inline-block;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border: 1px solid rgba(255,255,255,.25);
  padding: .2rem .75rem;
  border-radius: 30px;
  align-self: flex-start;
  white-space: nowrap; /* 「体験・オプション」等の長いラベルが折り返さないように */
  overflow: hidden; /* max-height:0 アニメーション時にpadding/borderを正しく潰すため */
}

/* サブページ専用: 情報エリアをrow化してmax-width内側コンテナで制約 */
.prop-sub-header .prop-sub-header-info {
  flex-direction: row;
  padding: 0;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.prop-sub-header .prop-sub-header-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prop-sub-header .prop-sub-header-text {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* ─── 概要ページ スリムヘッダー（sticky + スクロール縮小） ── */
.prop-slim-header {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 72px;
  z-index: 198;
}

.prop-slim-header .prop-sub-header-info {
  flex: 1;
  background: var(--text);
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}

/* max-width中央揃えの内側コンテナ（スクロールで padding 縮小） */
/* fallback: scroll非対応ブラウザはコンパクト表示 */
.prop-slim-header .prop-sub-header-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: .55rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prop-slim-header .prop-sub-header-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.prop-slim-header .prop-sub-header-area {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
}

.prop-slim-header .prop-sub-header-name {
  font-size: 1.2rem;
}

/* Airbnb予約ボタン（スリムバー右端） */
.prop-sub-header-book {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,.6);
  color: rgba(255,255,255,.9);
  padding: .32rem .75rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.prop-sub-header-book:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ─── 電話ボタン（attakaなど地域FCパートナー対応物件） ── */
.prop-sub-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.prop-sub-header-call {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(76,175,80,.2);
  border: 1.5px solid rgba(76,175,80,.7);
  color: rgba(255,255,255,.95);
  padding: .32rem .75rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.prop-sub-header-call:hover {
  background: rgba(76,175,80,.38);
  border-color: rgba(76,175,80,.9);
}

/* ─── フローティング電話ボタン（スマホのみ表示） ─────── */
.prop-phone-float {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.prop-phone-float-num {
  font-size: .72rem;
  opacity: .82;
  font-weight: 400;
}
@media (max-width: 680px) {
  .prop-phone-float { display: flex; }
}

/* ─── ヒーロー ──────────────────────────────────────── */
.prop-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  max-height: 540px;
  overflow: hidden;
  background: var(--bg);
}

.prop-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 540px;
}

.prop-hero-sub {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 0;
}

.prop-hero-sub-img {
  overflow: hidden;
  min-height: 0;
  position: relative;
}

.prop-hero-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 画像がない場合のフォールバック */
.prop-hero-main img[src=""],
.prop-hero-main img:not([src]),
.prop-hero-sub-img img[src=""],
.prop-hero-sub-img img:not([src]) {
  background: var(--bg);
  min-height: 180px;
}

/* ─── タイトルエリア ────────────────────────────────── */
.prop-title-wrap {
  border-bottom: 1px solid var(--border);
}

.prop-title-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.prop-location {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .35rem;
}

.prop-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.prop-title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ptag {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .01em;
}
.ptag::before {
  content: "# ";
  opacity: .65;
  font-weight: 400;
}

/* ─── 本文コンテンツ ────────────────────────────────── */
.prop-content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* イントロテキスト */
.prop-intro {
  max-width: 760px;
  margin: 0 auto 4rem;
  background: var(--bg-green);
  border-top: 5px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2.5rem 3rem 2.5rem;
  position: relative;
}

.prop-intro::before {
  content: """;
  position: absolute;
  top: -.2rem;
  right: 1.75rem;
  font-size: 6rem;
  color: var(--green);
  opacity: .12;
  font-family: var(--font-ja);
  line-height: 1;
  pointer-events: none;
}

.prop-intro p {
  font-size: 1.08rem;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 1.15rem;
}
.prop-intro p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .prop-intro { padding: 1.75rem 1.5rem; }
  .prop-intro p { font-size: 1rem; }
}

/* フォトセクション（左写真・右テキスト） */
.prop-photo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.prop-photo-section--rl {
  direction: rtl;
}

.prop-photo-section--rl > * {
  direction: ltr;
}

.prop-photo-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.prop-photo-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
}

.prop-photo-text p {
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: .85rem;
}

/* ─── フォトギャラリー ──────────────────────────────── */
.prop-gallery {
  margin-bottom: 5rem;
}

.prop-gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
}

.prop-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.prop-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: opacity .2s;
}

.prop-gallery-grid img:hover { opacity: .88; }

/* ─── 基本情報テーブル ──────────────────────────────── */
.prop-specs {
  margin-bottom: 4rem;
}

.prop-specs h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
}

.prop-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.prop-specs-table th,
.prop-specs-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  text-align: left;
}

.prop-specs-table th {
  width: 9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.prop-specs-table td {
  color: var(--text);
}

/* ─── エリアから探す ────────────────────────────────── */
.area-search-section {
  background: var(--bg);
  padding: 3rem 2rem;
}

.area-search-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.area-search-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.area-pills {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.area-pill {
  display: inline-block;
  background: var(--green);
  color: var(--bg-card);
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background .15s;
}

.area-pill:hover { background: var(--green-dk); }

/* ─── キャッチコピー ────────────────────────────────── */
.prop-catch {
  font-size: 1.15rem;
  font-family: var(--font-ja);
  color: var(--green);
  font-weight: 900;
  margin-bottom: 1.1rem;
  line-height: 1.65;
  letter-spacing: .01em;
}

/* ─── オプション・体験 ──────────────────────────────── */
.prop-options {
  margin-bottom: 4rem;
}

.prop-options h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
}

.prop-options-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.prop-option-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--bg);
}

.prop-option-item h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: .5rem;
}

.prop-option-price {
  font-size: .82rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: .5rem;
}

.prop-option-item p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── 詳細ページ共通（detail/index.html） ───────────── */
.detail-section {
  margin-bottom: 3.5rem;
}
.detail-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-card);
  background: var(--green);
  padding: .45rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-bottom: none;
  display: block;
}
.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.detail-spec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--bg);
}
.detail-spec-card .dsc-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.detail-spec-card .dsc-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.detail-spec-card .dsc-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}
.detail-amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem .75rem;
}
.detail-amenity-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text);
}
.detail-amenity-item .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}
.detail-amenity-item.has .icon { background: var(--green); color: var(--bg-card); }
.detail-amenity-item.has .icon::after { content: "✓"; }
.detail-amenity-item.none { opacity: .4; }
.detail-amenity-item.none .icon { background: var(--border); color: var(--muted); }
.detail-amenity-item.none .icon::after { content: "−"; }
.detail-spots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.detail-spots-table th {
  text-align: left;
  padding: .75rem 1.75rem .75rem 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.detail-spots-table td {
  padding: .95rem 1.75rem .95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.6;
}
.detail-spots-table td:last-child {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.spot-tag {
  display: inline-block;
  font-size: .68rem;
  padding: .15rem .5rem;
  border-radius: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-left: .4rem;
}
.detail-floor-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-floor-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-floor-item:last-child { border-bottom: none; }
.detail-floor-item:nth-child(odd) { background: var(--bg); }
.detail-floor-label {
  flex-shrink: 0;
  width: 2.5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  background: rgba(76,175,80,.08);
  border-radius: 4px;
  padding: .2rem .4rem;
}
.detail-floor-desc {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
}
.detail-floorplan-img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.detail-floorplan-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ─── 間取り写真グリッド ───────────────────────────── */
.detail-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}
.detail-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.detail-photo-cap {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .35rem;
  text-align: center;
}
@media (max-width: 640px) {
  .detail-photo-row { grid-template-columns: repeat(2, 1fr); }
}

/* ─── レスポンシブ ─────────────────────────────────── */
@media (max-width: 900px) {
  .prop-hero { grid-template-columns: 1fr; max-height: none; }
  .prop-hero-sub { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .prop-photo-section { grid-template-columns: 1fr; gap: 2rem; }
  .prop-photo-section--rl { direction: ltr; }
  .prop-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* モバイル：グローバルヘッダーがstatic化するため sticky top を再計算 */
  .prop-slim-header                 { position: sticky; top: 0; }
  .prop-subnav                      { top: 0; }
  .prop-slim-header ~ .prop-subnav  { top: 58px; }
  .prop-sub-header                  { position: sticky; top: 0; }
  .prop-sub-header ~ .prop-subnav   { top: 64px; }

  /* サブナビ：padding・フォントをできるだけ大きく */
  .prop-subnav-inner {
    padding: .6rem .75rem;
    gap: .45rem;
  }
  .prop-subnav-link {
    padding: .45rem .9rem;
    font-size: .88rem;
  }
}

@media (max-width: 600px) {
  /* サブページヘッダー（モバイル）：サムネイル非表示、コンパクト化 */
  .prop-sub-header { min-height: auto; }
  .prop-sub-header-thumb { display: none; }
  .prop-sub-header .prop-sub-header-inner { padding: 1rem 1.25rem; }
  .prop-sub-header-name { font-size: 1.2rem; }
  /* スリムヘッダー（モバイル）：paddingで高さ制御（~62px） */
  .prop-slim-header .prop-sub-header-inner {
    padding: .55rem 1.25rem;
  }
  .prop-slim-header .prop-sub-header-name  { font-size: 1.15rem; line-height: 1.25; }
  .prop-slim-header .prop-sub-header-area  { font-size: .72rem; line-height: 1.2; margin-bottom: 1px; }
  .prop-sub-header-book { font-size: .75rem; padding: .3rem .75rem; }
  .prop-breadcrumb-inner { padding: .6rem 1.25rem; }
  .prop-title-inner { padding: 1.5rem 1.25rem; }
  .prop-title { font-size: 1.4rem; }
  .prop-content-wrap { padding: 2rem 1.25rem; }
  .prop-gallery-grid { grid-template-columns: 1fr; }
  .prop-specs-table th { width: 7rem; }
  .area-search-section { padding: 2.5rem 1.25rem; }
}

/* ─── スクロール連動アニメーション（CSS scroll-driven animation）── */
/* 非対応ブラウザは from 値のまま固定表示 */
@supports (animation-timeline: scroll()) {

  /* 概要ページ slim-header 用 keyframes */
  @keyframes prop-header-shrink {
    from { padding-top: 1.25rem; padding-bottom: 1.25rem; }
    to   { padding-top: .55rem;  padding-bottom: .55rem;  }
  }
  @keyframes prop-name-shrink {
    from { font-size: 1.8rem; }
    to   { font-size: 1.2rem; }
  }
  @keyframes prop-area-shrink {
    from { font-size: .8rem; opacity: .8; }
    to   { font-size: .68rem; opacity: .55; }
  }

  /* 概要ページ slim-header アニメーション */
  .prop-slim-header .prop-sub-header-inner {
    animation: prop-header-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-slim-header .prop-sub-header-name {
    animation: prop-name-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-slim-header .prop-sub-header-area {
    animation: prop-area-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }

  /* サブページ sub-header 用 keyframes */
  @keyframes prop-sub-thumb-hide {
    from { width: 220px; opacity: 1; }
    to   { width: 0;     opacity: 0; }
  }
  @keyframes prop-sub-info-compact {
    from { padding: 2rem 2.5rem; }
    to   { padding: .55rem 2rem; }
  }
  @keyframes prop-sub-name-shrink {
    from { font-size: 2.1rem; }
    to   { font-size: 1.4rem; }
  }
  @keyframes prop-sub-page-fade {
    from { opacity: 1; max-height: 2rem; margin-top: .35rem; padding-top: .2rem; padding-bottom: .2rem; border-top-width: 1px; border-bottom-width: 1px; }
    to   { opacity: 0; max-height: 0;    margin-top: 0;      padding-top: 0;     padding-bottom: 0;     border-top-width: 0;  border-bottom-width: 0; }
  }
  @keyframes prop-sub-header-height {
    from { min-height: 160px; }
    to   { min-height: 0; }
  }

  /* サブページ sub-header アニメーション */
  .prop-sub-header {
    animation: prop-sub-header-height linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-sub-header .prop-sub-header-thumb {
    animation: prop-sub-thumb-hide linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-sub-header .prop-sub-header-inner {
    animation: prop-sub-info-compact linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-sub-header .prop-sub-header-name {
    animation: prop-sub-name-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-sub-header .prop-sub-header-area {
    animation: prop-area-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .prop-sub-header .prop-sub-header-page {
    animation: prop-sub-page-fade linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }

  /* モバイル：スリムヘッダーのスクロールアニメーションを無効化
     （高さが変動するとsubnav の top 計算がズレるため） */
  @media (max-width: 640px) {
    .prop-slim-header .prop-sub-header-inner,
    .prop-slim-header .prop-sub-header-name,
    .prop-slim-header .prop-sub-header-area { animation: none; }
  }
}

/* ─── モバイル：keyframe を上書きして高さを固定値に固める ─── */
/* animation: none で止めようとするより、from/to を同値にするほうが確実 */
@media (max-width: 640px) {
  @keyframes prop-header-shrink {
    from { padding-top: .55rem; padding-bottom: .55rem; }
    to   { padding-top: .55rem; padding-bottom: .55rem; }
  }
  @keyframes prop-name-shrink {
    from { font-size: 1.15rem; }
    to   { font-size: 1.15rem; }
  }
  @keyframes prop-area-shrink {
    from { font-size: .72rem; opacity: .8; }
    to   { font-size: .72rem; opacity: .8; }
  }
}

/* ── 物件ページ共通ボタン ── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-ja);
}
/* style.css の .content a { color: var(--green) } を上書き */
.content .btn-primary,
.cta-block .btn-primary,
.sh-cta-section .btn-primary {
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover { opacity: .88; }

/* ── シェアハウス 入居相談CTAセクション（postprocessorが全ページに注入） ── */
.sh-cta-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-green);
}
.sh-cta-section p {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-ja);
  line-height: 1.7;
}

/* ── 民泊リンクセクション（民泊ページが存在する物件のみ） ── */
.sh-minpaku-link-section {
  text-align: center;
  padding: 1rem 2rem 1.25rem;
  background: var(--bg-card);
  font-size: .85rem;
  font-family: var(--font-ja);
}
.sh-minpaku-link-section p {
  color: var(--muted);
  margin-bottom: .4rem;
}
.sh-minpaku-link-section a {
  color: var(--green);
  text-decoration: none;
}
.sh-minpaku-link-section a:hover { text-decoration: underline; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--green);
  padding: .75rem 2rem;
  border: 2px solid var(--green);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-ja);
  margin-left: 1rem;
}
.btn-secondary:hover { background: var(--bg); }
