/* =====================================================
  CSS Variables / Base
===================================================== */
:root {
  --bg-page: #fff;
  --bg-card: #f5eedc;
  --bg-thumb: #d8d8d8;
  --border-card: #d0c6aa;
  --text-main: #222;
  --text-muted: #555;
  --text-note: #777;
  --badge-bg: #222;
  --badge-text: #fff;

  /* tags */
  --tag-new-bg:#3E3A39;
  --tag-member-bg:#143a63;
  --tag-price-bg:#caa12a;
  --tag-renovation-bg:#6f9e45;
  --tag-exclusive-bg:#3f6fb5;
  --tag-text:#fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
}

/* =====================================================
  Layout
===================================================== */
.listing-wrapper {
  max-width: 1160px;
  margin: 32px auto 64px;
  padding: 0 16px;
}

.property-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-card {
  //background: var(--bg-card);
  padding: 16px 8px 20px;
  list-style: none;
}

.property-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* =====================================================
  Header / Summary
===================================================== */
.property-header {
  display: flex;
  gap: 12px;
}

.property-thumb {
  flex: 0 0 40%;
  aspect-ratio: 4 / 3;
  //background: var(--bg-thumb);
  position: relative;
  overflow: hidden;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  //background-color: #f3f3f3;
  
}

.property-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.property-location {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
}

.property-access {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
}

.property-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.property-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.property-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

/* =====================================================
  Spec
===================================================== */
.property-spec,
.property-spec-alt {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 4px;
  font-size: 11px;
}

.property-spec dt,
.property-spec-alt dt {
  color: var(--text-main);
}

.property-spec dd,
.property-spec-alt dd {
  margin: 0;
}

.property-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

/* =====================================================
  Tags
===================================================== */
.property-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tag-text);
  white-space: nowrap;
}

.property-tag--new { background: var(--tag-new-bg); }
.property-tag--price { background: var(--tag-price-bg); }
.property-tag--renovation { background: var(--tag-renovation-bg); }
.property-tag--exclusive { background: var(--tag-exclusive-bg); }

/* Thumb Tags */
.property-thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.property-thumb-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 37px;
  padding: 6px 6px 12px;
  background: var(--tag-member-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%);
}

/* Tag Lists */
.property-tags,
.property-tags-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* =====================================================
  Responsive
===================================================== */

/* PC */
@media (min-width: 960px) {
  .property-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .property-card { padding: 0; }

  .property-header {
    flex-direction: column;
    gap: 12px;
  }

  .property-thumb {
    flex: none;
    width: 100%;
  }

  .property-summary { gap: 6px; }

  .property-title { font-size: 15px; }

  .property-price-row { margin-top: 10px; }

  .property-price { font-size: 20px; }

  .property-spec,
  .property-spec-alt {
    margin-top: 14px;
    font-size: 12px;
  }

  .property-tag {
    height: 24px;
    padding: 0 8px;
  }

  .property-thumb-badge {
    top: 12px;
    left: 12px;
  }

  .property-thumb-ribbon {
    right: 8px;
    width: 48px;
    padding: 10px 6px 12px;
    font-size: 12px;
  }

  .property-tags { margin-top: 0; }

  /* PCではSP用を非表示 */
  .property-tags-alt,
  .property-spec-alt{
    display: none;
  }
}

/* SP */
@media (max-width: 959px) {
  .property-list { gap: 0; }
  .property-card { padding: 16px 0; }

  /* SPではPC用を非表示 */
  .property-tags,
  .property-location,
  .property-access,
  .property-spec,
  .property-thumb-badge,
  .property-thumb-ribbon,
  .property-member-badge
  {
    display: none;
  }

  .property-summary { gap: 0; }
  .property-title { font-size: 16px; }

  .property-tags-alt { display: flex; }
  .property-spec-alt { display: grid; }
}

/* =========================
   リボン型タグ（新規）
   ========================= */

.ribbon-tag {
  position: relative;
  display: inline-block;
  padding: 4px 16px 4px 12px; /* 右の切り欠き分だけ余白を増やす */
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  background: #333;
  white-space: nowrap;
}

/* 右側だけ・逆向き切り欠き */
.ribbon-tag::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 6px solid var(--bg-page); /* 背景色で切り欠く */
}

/* 種別カラー */
.ribbon-tag--new {
  background: #0b3a6f;
}

.ribbon-tag--member {
  background: #0f4fa8;
}

