/*
 * ASTRA 物件（vega）表示スタイル。
 *
 * ■ 一覧について
 * 一覧の骨格（2 カラム・カード・タブ・ページネーション）は、タツミハウジングの既存
 * column_s.css（works 一覧）にそのまま乗せている。よってここで書くのは「差分」だけ:
 *   - 商談状況バッジ（.cat span の既定色を上書き）
 *   - 価格・所在地行（works に無い要素なので order を与える）
 * テーマ側に column_s.css 相当が無い環境でも最低限読めるよう、素朴なフォールバックだけ添える。
 *
 * ■ 詳細について
 * 既存テーマに対応する CSS が無いため、ここで一式定義する。「よくある不動産サイト」の詳細を、
 * タツミの実配色・実寸法に合わせて組む。値はすべてテーマの実ファイルから取った:
 *
 *   #413632  … カテゴリバッジ地／罫線（column_s.css .cat span, border-bottom: 2px solid）
 *   #4b403c  … 見出しの茶（column_s.css .heading h2 / column_s_workssingle.css h3）
 *   #372d28  … 濃茶（style2.css footer / reset.css .btn_link a）
 *   #736964  … 茶グレー（column_s.css ページネーション地）
 *   #a39b96  … パンくずのリンク色（style2.css .breadlist li a）
 *   #e9e4df  … 罫線（.breadlist border-top / .ownerprofile border）
 *   #f0ebe6  … パネル地（land.css .entryform）
 *   #faf6f0  … セクション地（column_s_workssingle.css .ownervoice）
 *   #E2003C  … CTA 赤（land.css a.btn）
 *   角丸なし・hover は opacity .7（テーマ共通の流儀）
 *   ブレークポイントは 768px / 480px
 *
 * ■ 名前空間
 * 詳細は .astra-prop-detail 配下でのみ効くよう限定する（既存テーマの CSS を壊さない）。
 */

/* ===== 一覧: 既存 works 一覧への差分 ===== */

/* 価格（.name）は works の「施工場所」位置。金額として目立たせる。 */
.archive_works .works_list li div:first-child .name {
  font-size: 18px;
  font-weight: 600;
  color: #413632;
}

/* 所有地・面積の補助行。works の .text（order:4・非表示）と同じスロットに置く。 */
.archive_works .works_list li div:first-child .astra-props__meta {
  order: 4;
  font-size: 13px;
  line-height: 1.6;
  color: #6b615c;
  margin-bottom: 15px;
}

/* 商談状況バッジ。.cat span の既定（濃茶）を色だけ上書きする。 */
.astra-props__badge {
  margin-left: 8px;
}
.archive_works .works_list li div:first-child .cat span.astra-props__badge--reserved {
  background-color: #d2761b;
  color: #fff;
}
.archive_works .works_list li div:first-child .cat span.astra-props__badge--contracted {
  background-color: #8b8b8b;
  color: #fff;
}

/* link_image を渡さなかった場合の「VIEW MORE」テキスト版。 */
.astra-props__more {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #413632;
  border-bottom: 1px solid #413632;
  padding-bottom: 2px;
}

/* 0 件時。flex の子になるので幅いっぱいに広げる。 */
.astra-props__empty {
  flex: 0 0 100% !important;
  margin-left: 0 !important;
  padding: 40px 0;
  text-align: center;
  color: #6b615c;
}

/* エラー表示（設定漏れ・API 不達など）。 */
.astra-props__notice {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0.9em 1.1em;
  background: #fdecea;
  border: 1px solid #e08379;
  color: #a02c20;
  font-size: 0.95em;
}

/* ===== 詳細 ===== */

/* パンくず。テーマの .breadlist と同値（テーマ CSS が無くても同じ見た目になるよう再掲）。 */
.astra-prop__crumbs {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding-top: 10px;
  border-top: 1px solid #e9e4df;
  list-style-type: none;
  text-align: right;
  font-size: 13px;
}
.astra-prop__crumbs li {
  display: inline;
  border-right: 1px solid #e9e4df;
  color: #4b403c;
  padding: 0 1em;
}
.astra-prop__crumbs li:last-child {
  border-right: none;
  padding-right: 0;
}
.astra-prop__crumbs li a {
  color: #a39b96;
  text-decoration: none;
}
.astra-prop__crumbs li a:hover {
  opacity: 0.7;
}

.astra-prop-detail {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: #191919;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* --- 物件ヘッダー --- */

.astra-prop-detail .astra-prop__head {
  margin-bottom: 24px;
}

.astra-prop-detail .astra-prop__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
/* カテゴリ: 既存 .cat span と同じ流儀（濃茶地・白文字・角丸なし）。 */
.astra-prop-detail .astra-prop__cat,
.astra-prop-detail .astra-prop__status {
  display: inline-block;
  background-color: #413632;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  padding: 0.2em 1em;
}
.astra-prop-detail .astra-prop__status {
  margin-left: 8px;
}
.astra-prop-detail .astra-prop__status--reserved {
  background-color: #d2761b;
}
.astra-prop-detail .astra-prop__status--contracted {
  background-color: #8b8b8b;
}

/* 物件名。works 詳細の .title（34px / 768:30 / 480:26）に合わせる。 */
.astra-prop-detail .astra-prop__name {
  color: #191919;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.astra-prop-detail .astra-prop__address {
  color: #736964;
  font-size: 15px;
  line-height: 1.6;
}
.astra-prop-detail .astra-prop__address i {
  color: #413632;
  margin-right: 8px;
}

/* --- メインビジュアル＋サムネイル --- */

.astra-prop-detail .astra-prop__gallery {
  margin-bottom: 40px;
}

/* 16:9 で固定。画像の縦横比がまちまちでもレイアウトが動かない。 */
.astra-prop-detail .astra-prop__main {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background-color: #f0ebe6;
  margin-bottom: 10px;
}
/* contain。物件写真だけでなく区画図・地図・資料スキャンも載るため、
   切り抜かずに全体を見せる（cover だと地図や間取り図が途中で切れる）。 */
.astra-prop-detail .astra-prop__main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
}

/* 画像 0 枚。メイン画像と同じ組み方の箱を置き、レイアウトを崩さない。
   ただし 16:9 のままだと写真の無い物件で巨大な空白になるため、高さは抑える。 */
.astra-prop-detail .astra-prop__noimage {
  position: relative;
  width: 100%;
  padding-bottom: 30%;
  background-color: #f0ebe6;
  border: 1px solid #e9e4df;
}
.astra-prop-detail .astra-prop__noimage i,
.astra-prop-detail .astra-prop__noimage span {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  color: #a39b96;
}
.astra-prop-detail .astra-prop__noimage i {
  top: 50%;
  transform: translateY(-100%);
  font-size: 40px;
}
.astra-prop-detail .astra-prop__noimage span {
  top: 50%;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.astra-prop-detail .astra-prop__thumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
  padding: 0;
}
.astra-prop-detail .astra-prop__thumbs li {
  width: 20%;
  padding: 0 5px;
  margin-top: 10px;
  list-style: none;
}
.astra-prop-detail .astra-prop__thumb {
  display: block;
  position: relative;
  padding-bottom: 66.66%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: 0.3s;
}
.astra-prop-detail .astra-prop__thumb:hover {
  opacity: 0.7;
}
.astra-prop-detail .astra-prop__thumb.is-active {
  border-color: #413632;
}
.astra-prop-detail .astra-prop__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

/* --- 価格ブロック（詳細で一番目立たせる） --- */

.astra-prop-detail .astra-prop__key {
  border: 1px solid #e9e4df;
  background-color: #faf6f0;
  margin-bottom: 20px;
}

.astra-prop-detail .astra-prop__price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 24px 30px;
}

/* 「販売価格」「賃料」。カテゴリバッジと同じ濃茶のタグ。 */
.astra-prop-detail .astra-prop__price-label {
  flex: 0 0 auto;
  background-color: #413632;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  padding: 0.2em 1.2em;
  margin-right: 20px;
  position: relative;
  top: -4px;
}

.astra-prop-detail .astra-prop__price {
  flex: 0 1 auto;
  color: #E2003C;
  font-family: "Poppins", "Yu Gothic", "游ゴシック", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-right: 16px;
}
.astra-prop-detail .astra-prop__price-unit {
  font-size: 18px;
  font-weight: 400;
  margin-left: 4px;
}
/* 価格未設定（お問い合わせください）。赤の大字にすると誤読されるので落ち着かせる。 */
.astra-prop-detail .astra-prop__price--ask {
  color: #413632;
  font-size: 22px;
}

.astra-prop-detail .astra-prop__price-sub {
  flex: 0 0 auto;
  color: #736964;
  font-size: 13px;
  line-height: 1.6;
}

/* 面積・間取りサマリー（不動産サイトの定番）。 */
.astra-prop-detail .astra-prop__specs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  background-color: #fff;
  border-top: 1px solid #e9e4df;
  /* 折り返した時の行罫線（li の border-bottom）と箱の枠が二重線にならないよう 1px 食い込ませる。 */
  margin: 0 0 -1px;
  padding: 0;
}
.astra-prop-detail .astra-prop__specs li {
  flex: 1 1 0;
  min-width: 25%;
  border-right: 1px solid #e9e4df;
  list-style: none;
  text-align: center;
  padding: 18px 12px;
}
.astra-prop-detail .astra-prop__specs li:last-child {
  border-right: none;
}
.astra-prop-detail .astra-prop__spec-icon {
  display: block;
  color: #a39b96;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 8px;
}
.astra-prop-detail .astra-prop__spec-label {
  display: block;
  color: #736964;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 4px;
}
.astra-prop-detail .astra-prop__spec-value {
  display: block;
  color: #413632;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

/* --- セクション見出し（EN + 日本語。テーマの見出しの型に合わせる） --- */

.astra-prop-detail .astra-prop__sec {
  margin-top: 60px;
}
.astra-prop-detail .astra-prop__sec-title {
  color: #4b403c;
  font-family: "Poppins", "Yu Gothic", "游ゴシック", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #413632;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.astra-prop-detail .astra-prop__sec-title span {
  display: inline-block;
  color: #736964;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-left: 1em;
}

/* --- 物件概要テーブル（PC: 2 カラム＝4 列 / SP: 1 カラム） --- */

.astra-prop-detail .astra-prop__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e9e4df;
  border-left: 1px solid #e9e4df;
  font-size: 14px;
}
.astra-prop-detail .astra-prop__table th,
.astra-prop-detail .astra-prop__table td {
  border-right: 1px solid #e9e4df;
  border-bottom: 1px solid #e9e4df;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  padding: 14px 18px;
}
.astra-prop-detail .astra-prop__table th {
  width: 18%;
  background-color: #f0ebe6;
  color: #413632;
  font-weight: 600;
  white-space: nowrap;
}
.astra-prop-detail .astra-prop__table td {
  width: 32%;
  background-color: #fff;
}

/* --- おすすめコメント / アピールポイント --- */

.astra-prop-detail .astra-prop__text {
  font-size: 16px;
  line-height: 2.2;
}
.astra-prop-detail .astra-prop__text p {
  margin-bottom: 1em;
}
.astra-prop-detail .astra-prop__text p:last-child {
  margin-bottom: 0;
}

.astra-prop-detail .astra-prop__appeal {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.astra-prop-detail .astra-prop__appeal li {
  position: relative;
  list-style: none;
  border-bottom: 1px solid #f0ebe6;
  font-size: 16px;
  line-height: 1.8;
  padding: 12px 0 12px 1.6em;
}
.astra-prop-detail .astra-prop__appeal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 8px;
  height: 8px;
  background-color: #413632;
}

/* --- 問い合わせ CTA --- */

.astra-prop-detail .astra-prop__inquiry {
  background-color: #f0ebe6;
  padding: 40px;
}
.astra-prop-detail .astra-prop__inquiry-title {
  border-bottom-color: #413632;
}
.astra-prop-detail .astra-prop__inquiry-ref {
  color: #736964;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.astra-prop-detail .astra-prop__inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  margin: 0 -8px;
  padding: 0;
}
.astra-prop-detail .astra-prop__inquiry-actions li {
  list-style: none;
  padding: 0 8px;
  margin-bottom: 8px;
}

/* 電話。reset.css の a[href*="tel:"]{pointer-events:none;color:#fff} を打ち消す
   （テーマは footer 以外の tel リンクを無効化しているため、ここで明示的に戻す）。 */
.astra-prop-detail a.astra-prop__inquiry-tel[href*="tel:"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 280px;
  height: 100%;
  background-color: #fff;
  border: 2px solid #413632;
  color: #413632;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  padding: 12px 30px;
  transition: 0.3s;
}
.astra-prop-detail a.astra-prop__inquiry-tel[href*="tel:"]:hover {
  opacity: 0.7;
}
.astra-prop-detail .astra-prop__inquiry-tel-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.astra-prop-detail .astra-prop__inquiry-tel-num {
  display: block;
  font-family: "Poppins", "Yu Gothic", "游ゴシック", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.astra-prop-detail .astra-prop__inquiry-tel-num i {
  font-size: 20px;
  margin-right: 10px;
}

/* フォームへのボタン。land.css の a.btn（#E2003C・角丸なし）に合わせる。 */
.astra-prop-detail .astra-prop__inquiry-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 280px;
  height: 100%;
  background-color: #E2003C;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 30px;
  transition: 0.3s;
}
.astra-prop-detail .astra-prop__inquiry-btn:hover {
  opacity: 0.7;
}
.astra-prop-detail .astra-prop__inquiry-btn i {
  font-size: 12px;
  margin-left: 12px;
}

/* --- 一覧へ戻る --- */

.astra-prop-detail .astra-prop__back {
  margin: 60px 0 0;
  text-align: center;
}
.astra-prop-detail .astra-prop__back a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  background-color: #372d28;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.8em 3em;
  transition: 0.3s;
}
.astra-prop-detail .astra-prop__back a:hover {
  opacity: 0.7;
}
.astra-prop-detail .astra-prop__back a i {
  font-size: 12px;
  margin-right: 12px;
}

/* ===== 768px 以下 ===== */

@media (max-width: 768px) {
  .astra-prop__crumbs {
    width: 90%;
    margin-bottom: 30px;
    font-size: 12px;
  }
  .astra-prop__crumbs li {
    padding: 0 0.6em;
  }

  .astra-prop-detail {
    width: 90%;
  }

  .astra-prop-detail .astra-prop__name {
    font-size: 30px;
  }
  .astra-prop-detail .astra-prop__address {
    font-size: 14px;
  }

  .astra-prop-detail .astra-prop__thumbs li {
    width: 25%;
  }

  /* 価格は縦積み。数字を折り返さない。 */
  .astra-prop-detail .astra-prop__price-box {
    display: block;
    padding: 20px;
  }
  .astra-prop-detail .astra-prop__price-label {
    display: inline-block;
    margin-right: 0;
    margin-bottom: 10px;
    top: 0;
  }
  .astra-prop-detail .astra-prop__price {
    display: block;
    font-size: 34px;
    margin-right: 0;
    margin-bottom: 4px;
  }
  .astra-prop-detail .astra-prop__specs li {
    flex: 1 1 50%;
    min-width: 50%;
    border-bottom: 1px solid #e9e4df;
    padding: 14px 10px;
  }
  /* 2 列なので、右列の右罫線だけ消す（最終行の下罫線は箱の枠と重なる）。 */
  .astra-prop-detail .astra-prop__specs li:nth-child(2n) {
    border-right: none;
  }

  .astra-prop-detail .astra-prop__sec {
    margin-top: 40px;
  }
  .astra-prop-detail .astra-prop__sec-title {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .astra-prop-detail .astra-prop__sec-title span {
    font-size: 12px;
    margin-left: 0.8em;
  }

  /* 概要テーブルは 1 カラム（項目名｜値の横並びは維持する。縦積みにすると表が異様に長くなる）。
     tr を flex にすると、PC の 4 セル（th/td × 2）が 2 行に折り返って 1 カラムになる。 */
  .astra-prop-detail .astra-prop__table,
  .astra-prop-detail .astra-prop__table tbody {
    display: block;
    width: 100%;
  }
  .astra-prop-detail .astra-prop__table tr {
    display: flex;
    flex-wrap: wrap;
  }
  .astra-prop-detail .astra-prop__table th {
    flex: 0 0 34%;
    width: 34%;
    white-space: normal;
    padding: 10px 14px;
  }
  .astra-prop-detail .astra-prop__table td {
    flex: 1 1 66%;
    width: 66%;
    padding: 10px 14px;
  }

  .astra-prop-detail .astra-prop__text,
  .astra-prop-detail .astra-prop__appeal li {
    font-size: 15px;
  }
  .astra-prop-detail .astra-prop__text {
    line-height: 2;
  }

  .astra-prop-detail .astra-prop__inquiry {
    padding: 25px 20px;
  }
  .astra-prop-detail .astra-prop__inquiry-actions {
    display: block;
    margin: 0;
  }
  .astra-prop-detail .astra-prop__inquiry-actions li {
    padding: 0;
    margin-bottom: 12px;
  }
  .astra-prop-detail a.astra-prop__inquiry-tel[href*="tel:"],
  .astra-prop-detail .astra-prop__inquiry-btn {
    min-width: 0;
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
  }

  .astra-prop-detail .astra-prop__back {
    margin-top: 40px;
  }
  .astra-prop-detail .astra-prop__back a {
    width: 100%;
    padding: 0.8em 1em;
  }
}

/* ===== 480px 以下 ===== */

@media (max-width: 480px) {
  .archive_works .works_list li div:first-child .name {
    font-size: 15px;
  }
  .archive_works .works_list li div:first-child .astra-props__meta {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .astra-props__badge {
    margin-left: 4px;
  }

  .astra-prop-detail .astra-prop__cat,
  .astra-prop-detail .astra-prop__status {
    font-size: 12px;
  }

  /* 見出しの日本語は改行して置く（英字の右に置くと折り返してぶら下がる）。 */
  .astra-prop-detail .astra-prop__sec-title span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  .astra-prop-detail .astra-prop__name {
    font-size: 26px;
  }

  .astra-prop-detail .astra-prop__thumbs li {
    width: 33.3333%;
  }

  .astra-prop-detail .astra-prop__price {
    font-size: 30px;
  }
  .astra-prop-detail .astra-prop__price-unit {
    font-size: 16px;
  }
  .astra-prop-detail .astra-prop__spec-value {
    font-size: 15px;
  }

  .astra-prop-detail .astra-prop__inquiry-tel-num {
    font-size: 26px;
  }
}
