/* =========================================================
   Property Single（Cocoon子テーマ用）
   ベースカラー: #beaf87（ナチュラル・やわらかトーン）
========================================================= */

:root{
  --accent: #beaf87;      /* メインカラー */
  --accent-ink: #5c523c;  /* 読みやすい濃い文字色 */
  --soft: #f7f5ef;        /* ナチュラル背景 */
}

/* ---------------------------------------------------------
   見出し・タイプピルなど
--------------------------------------------------------- */
#property .pill.type{
  background: color-mix(in srgb, var(--accent) 24%, white);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, white);
  font-weight: 700;
}

#property .notes-box{
  border-color: color-mix(in srgb, var(--accent) 35%, #ddd);
  background: var(--soft);
}

#property .media-thumbs .thumb{
  border-color: color-mix(in srgb, var(--accent) 25%, #eee);
}

#property .related-card:hover{
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 25%, rgba(0,0,0,.06));
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   レイアウト全体
--------------------------------------------------------- */
.property-wrap { max-width: 1080px; margin: 0 auto; padding: 1.25rem; }
.property-header { margin-bottom: .5rem; }
.property-title { font-size: clamp(1.25rem, 2.8vw, 1.8rem); margin: 0 0 .25rem; line-height: 1.35; }
.property-metaTop { display:flex; flex-wrap: wrap; gap:.5rem 1rem; color:#555; }

.pill {
  display:inline-block;
  padding:.3rem .6rem;
  border-radius: 999px;
  background:#f1f5f9;
  color:#334155;
  font-size:.85rem;
}

.property-grid { display:grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: .75rem; }
@media(min-width: 900px){
  .property-grid { grid-template-columns: 1.25fr .9fr; align-items: start; }
}

/* ---------------------------------------------------------
   メディア（画像エリア）
--------------------------------------------------------- */
.property-media .media-main img,
.property-media .media-floor img {
  width:100%; height:auto; border-radius: .75rem;
}
.media-placeholder {
  background: repeating-linear-gradient(45deg,#f4f4f4,#f4f4f4 10px,#efefef 10px,#efefef 20px);
  height: 320px; border-radius:.75rem; display:grid; place-items:center; color:#888;
}
.media-floor { margin-top:.75rem; }
.media-thumbs { margin-top:.5rem; display:flex; gap:.5rem; flex-wrap:wrap; }
.media-thumbs .thumb { width:84px; height:64px; object-fit:cover; border-radius:.5rem; border:1px solid #eee; }

/* ---------------------------------------------------------
   物件サマリー（右カラム）
--------------------------------------------------------- */
.property-summary {
  background:#fff;
  border-radius: .9rem;
}
.property-summary .price-box{
  background: #fffdf8;
  border: 1px solid #e3d9b7;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 5px rgba(190,175,135,0.08);
}

/* 2カラム表（家賃・間取りなど） */
.summary-dl { margin: 0; }
.summary-dl .row{
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px dashed #e6dcc1;
}
.summary-dl .row:last-child{ border-bottom: none; }

.summary-dl dt{ color:#6a5f3f; font-weight:700; white-space:nowrap; }
.summary-dl dd{ margin:0; color:#2a2a2a; }

/* 家賃／価格 */
.summary-dl .price-row .price-main{
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.1;
  color: var(--accent-ink);
}

/* ---------------------------------------------------------
   設備・特記事項
--------------------------------------------------------- */
.features { margin-top:.9rem; }
.sec-ttl { font-weight:700; margin:.25rem 0 .5rem; }
.pill-list { display:flex; gap:.4rem; flex-wrap:wrap; }

/* 特記事項 */
.notes { margin-top:.9rem; }
.notes-box {
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:.6rem;
  padding:.75rem;
  line-height:1.8;
}

/* ---------------------------------------------------------
   本文・地図
--------------------------------------------------------- */
.property-content { margin-top:1.5rem; }
.property-map { margin-top:1.5rem; }
.property-map .map-embed iframe { border-radius:.75rem; width:100%; }

/* ---------------------------------------------------------
   関連物件
--------------------------------------------------------- */
.property-related { margin-top:2rem; }
.related-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.75rem;
}
@media(min-width: 720px){
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}
.related-card {
  display:block;
  background:#fff;
  border:1px solid #f1f1f1;
  border-radius:.75rem;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition: transform .08s ease, box-shadow .08s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.related-card .thumb img,
.related-card .thumb .ph {
  width:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
  background:#f5f5f5;
}
.related-card .meta { padding:.6rem .7rem; }
.related-card .ttl { font-size:.95rem; line-height:1.4; margin-bottom:.2rem; }
.related-card .price { font-weight:700; font-size:.95rem; color: var(--accent-ink); }

/* ---------------------------------------------------------
   Cocoon構造の1カラム化
--------------------------------------------------------- */
body.single-property #sidebar,
body.single-property .sidebar,
body.single-property #navi,
body.single-property .widget-area { display:none !important; }

body.single-property #main,
body.single-property .main,
body.single-property #content,
body.single-property .content {
  width:100% !important;
  max-width:100% !important;
  float:none !important;
}

body.single-property #container,
body.single-property .container { display:block !important; }

body.single-property .main .article,
body.single-property #main .article { margin-right:0 !important; }

/* ---------------------------------------------------------
   設備ピル（統一カラー #beaf87 + 白文字 / 通常フォント）
--------------------------------------------------------- */
#property .pill-list .pill {
  background-color: #beaf87;  /* メインカラー */
  color: #fff;                /* 白文字 */
  border: none;
  font-weight: 400;           /* ← 太字をやめて通常に */
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .85rem;
  letter-spacing: .03em;
  line-height: 1.4;
  transition: background-color .2s ease, transform .1s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

#property .pill-list .pill:hover {
  background-color: #a4946b;  /* 少し濃いホバー色 */
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/* ====== 物件メイン画像の高さ調整 ====== */
.property-media .media-main {
  text-align: center;
}

.property-media .media-main img {
  width: 100%;
  max-height: 450px;   /* 💻 PCの高さ上限 */
  height: auto;
  object-fit: contain; /* 画像全体を収める */
  border-radius: .75rem;
  background: #fafafa;
  transition: opacity .25s ease;
}

/* 📱 スマホ時は少し低めに */
@media (max-width: 600px) {
  .property-media .media-main img {
    max-height: 300px;
  }
}


/* サムネのアクティブ状態とホバー */
.media-thumbs .thumb {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: .5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s ease, transform .1s ease;
}
.media-thumbs .thumb:hover { transform: scale(1.03); }
.media-thumbs .thumb.active { border-color: #beaf87; }

/* メイン画像のフェード（JSとセット） */
.property-media .media-main img {
  transition: opacity .25s ease;
}



/* =========================================================
   CF7（Contact Form 7） — 物件ページ専用まとめ
   対象ページのみ効かせるため single-property でスコープ
========================================================= */

/* ラップ（CF7全体の箱） */
body.single-property .cf7-wrap {
  background: #fffdf8;
  border: 1px solid #e3d9b7;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

/* ラベル（設問） */
body.single-property .cf7-wrap .cf7-label {
  display: block;
  font-weight: 700;
  color: #5c523c;
  margin: 0 0 8px !important; /* ラベル直下の距離 */
}
body.single-property .cf7-wrap .cf7-label .req {
  color: #b64a3a;
  font-weight: 700;
  margin-left: .25em;
}

/* テキスト/セレクト/テキストエリア共通 */
body.single-property .cf7-wrap input[type="text"],
body.single-property .cf7-wrap input[type="email"],
body.single-property .cf7-wrap input[type="tel"],
body.single-property .cf7-wrap select,
body.single-property .cf7-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .6rem .7rem;
  border: 1px solid #e0d7bb;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.single-property .cf7-wrap textarea { min-height: 140px; }
body.single-property .cf7-wrap input:focus,
body.single-property .cf7-wrap select:focus,
body.single-property .cf7-wrap textarea:focus {
  border-color: #beaf87;
  box-shadow: 0 0 0 3px rgba(190,175,135,.18);
}

/* ラベル直下の余白を詰め、項目間の余白は行で統一管理 */
body.single-property .cf7-wrap .wpcf7-form-control-wrap {
  display: block;
  margin: 0 !important;
  line-height: 1;
}
body.single-property .cf7-wrap .wpcf7-form p { /* CF7の自動<p>を無効化 */
  margin: 0 !important;
}



/* 各項目のコンテナ（行）— ここで項目間の距離を統一管理 */
body.single-property .cf7-wrap .cf7-row { 
  margin-bottom: 18px;           /* モバイル：少し広め */
}
@media (min-width: 900px) {
  body.single-property .cf7-wrap .cf7-row { margin-bottom: 22px; } /* PCでゆとり */
}



/* ラジオ／チェックをチップ化＋タップしやすく（44px基準） */
body.single-property .wpcf7 form .wpcf7-list-item { 
  display: inline-block; 
  margin: 6px 8px 6px 0;
}
body.single-property .wpcf7 form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #beaf87;
  border-radius: 999px;
  padding: 10px 16px;    /* タップ面積UP */
  min-height: 44px;      /* 指で押しやすい高さ */
  line-height: 1.2;
  cursor: pointer;
  transition: all .2s ease;
  color: #5c523c;
  font-size: 0.95rem;
}
/* :has対応ブラウザでチェック時の見た目をラベル全体に適用 */
body.single-property .wpcf7 form .wpcf7-list-item label:has(input[type="radio"]:checked),
body.single-property .wpcf7 form .wpcf7-list-item label:has(input[type="checkbox"]:checked) {
  background: #beaf87;
  color: #fff;
  border-color: #beaf87;
}
/* フォールバック（:has未対応でも最低限の見た目変化） */
body.single-property .wpcf7 form input[type="radio"]:checked + span,
body.single-property .wpcf7 form input[type="checkbox"]:checked + span {
  background: #beaf87;
  color: #fff;
  border-color: #beaf87;
  border-radius: 999px;
}

/* ラジオ/チェックのグループ上部の余白（ラベルから少し離す） */
body.single-property .cf7-wrap .wpcf7-radio,
body.single-property .cf7-wrap .wpcf7-checkbox {
  margin-top: 6px !important;
}

/* フォーカス可視化（アクセシビリティ） */
body.single-property .wpcf7 form .wpcf7-list-item label:focus-within {
  box-shadow: 0 0 0 3px rgba(190,175,135,.22);
  border-color: #beaf87;
}

/* 送信ボタン */
body.single-property .cf7-btn {
  display: inline-block;
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #beaf87;
  background: #beaf87;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .02s ease;
}
body.single-property .cf7-btn:hover { filter: brightness(.97); }
body.single-property .cf7-btn:active { transform: translateY(1px); }

/* 送信後レスポンス */
body.single-property .cf7-response .wpcf7-response-output {
  margin-top: 12px;
  border-radius: 8px;
  padding: .7rem .9rem;
  border-color: #e3d9b7 !important;
  background: #fff;
  color: #3a3520;
}

/* まれにCF7が差し込む <br> が隙間を作る場合の保険 */
body.single-property .cf7-wrap br { display: none; }

/* スマホ微調整 */
@media (max-width: 640px) {
  body.single-property .cf7-wrap { padding: 12px; }
}

/* ===== ラジオ・チェックマーク自体を大きく ===== */
body.single-property .cf7-wrap input[type="radio"],
body.single-property .cf7-wrap input[type="checkbox"] {
  transform: scale(1.4);          /* ← サイズ倍率（1.2〜1.6くらい好みで調整） */
  accent-color: #beaf87;          /* ← チェック時の色（主要カラーに） */
  margin-right: 6px;              /* テキストとの距離 */
  cursor: pointer;
}

/* iOS Safariなどでズレる場合の補正 */
body.single-property .cf7-wrap input[type="radio"],
body.single-property .cf7-wrap input[type="checkbox"] {
  vertical-align: middle;
}




