/* ===== 物件情報ページ ===== */

/* ---- rem の基準値（style.css と同値。style.css 未読込でも崩れないための保険） ---- */
html {
  font-size: 62.5%;
}

/* ---- Page Title (トレーニングセンターと同スタイル) ---- */
.property-main-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 24px 16px 0;
  margin: 0;
  color: #333;
}

/* ---- Hero Photo ---- */
.property-exterior-photo {
  background-color: #fff;
  line-height: 0;
}

.property-exterior-photo img {
  display: block;
  width: 100%;
  height: clamp(24rem, 34vw, 46rem);
  object-fit: cover;
}

/* ---- Main Container ---- */
.property-container {
  background-color: #EDEDED;
  min-height: calc(100vh - 200px);
  padding: 5rem 0 8rem;
}

.property-inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ---- Tabs ---- */
.property-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 4rem;
  border-radius: 1.2rem 1.2rem 0 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.property-tab-btn {
  flex: 1;
  padding: 1.8rem 0;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: #fff;
  color: #707070;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.property-tab-btn .tab-icon {
  font-size: 2rem;
}

.property-tab-btn.active {
  background: #A5387F;
  color: #fff;
  border-bottom-color: #7a1f5c;
}

.property-tab-btn:not(.active):hover {
  background: #f5e8f1;
  color: #A5387F;
}

/* ---- Tab Panels ---- */
.property-tab-panel {
  display: none;
}

.property-tab-panel.active {
  display: block;
}

/* ---- Section Lead Text ---- */
.property-lead {
  background: #fff;
  border-radius: 1.2rem;
  padding: 3rem 4rem;
  margin-bottom: 3.5rem;
  font-size: 1.6rem;
  color: #312F2E;
  font-family: "Noto Sans JP", Inter_Regular, sans-serif;
  line-height: 2;
  border-left: 5px solid #A5387F;
}

/* ---- Property Grid ---- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
}

/* ---- Property Card ---- */
.property-card {
  background: #fff;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(165,56,127,0.15);
}

.property-card-img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}

.property-card-body {
  padding: 2rem 2.4rem 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.property-card-badge {
  display: inline-block;
  font-size: 1.2rem;
  font-family: Inter_Regular, sans-serif;
  padding: 0.3rem 1rem;
  border-radius: 10rem;
  background: #f3dded;
  color: #A5387F;
  font-weight: bold;
  align-self: flex-start;
}

.property-card-badge.minpaku {
  background: #ddeef3;
  color: #1a7a9a;
}

.property-card-name {
  font-size: 1.8rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #312F2E;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.property-card-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #707070;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  line-height: 1.5;
  margin: 0;
}

.property-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}

.property-spec-tag {
  font-size: 1.25rem;
  font-family: Inter_Regular, sans-serif;
  padding: 0.4rem 1rem;
  background: #f5f5f5;
  border-radius: 0.6rem;
  color: #555;
}

.property-card-price {
  font-size: 2rem;
  font-family: Inter_Regular, sans-serif;
  color: #A5387F;
  font-weight: bold;
  margin-top: 0.4rem;
}

.property-card-price span {
  font-size: 1.3rem;
  color: #707070;
  font-weight: normal;
}

.property-card-btn {
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  padding: 1rem 0;
  border-radius: 0.8rem;
  background: linear-gradient(0deg, #980264 0%, #C15E9E 100%);
  color: #fff;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.property-card-btn:hover {
  opacity: 0.85;
}

/* ---- CTA ---- */
.property-cta {
  background: linear-gradient(135deg, #980264 0%, #C15E9E 100%);
  border-radius: 1.6rem;
  padding: 4rem 5rem;
  text-align: center;
  margin-top: 5rem;
}

.property-cta p {
  font-family: "Noto Sans JP", Inter_Regular, sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 2.4rem;
  line-height: 1.8;
}

.property-cta-btn {
  display: inline-block;
  background: #fff;
  color: #A5387F;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 1.4rem 5rem;
  border-radius: 10rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-cta-btn:hover {
  background: #f5e8f1;
}

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

@media screen and (max-width: 1080px) {
  .property-inner {
    padding: 0 2.5rem;
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .property-container {
    padding: 3rem 0 6rem;
  }

  .property-inner {
    padding: 0 1.6rem;
  }

  .property-tabs {
    border-radius: 0.8rem 0.8rem 0 0;
  }

  .property-tab-btn {
    font-size: 1.5rem;
    padding: 1.4rem 0;
  }

  .property-lead {
    padding: 2rem 2rem;
    font-size: 1.4rem;
  }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .property-card-img {
    height: 20rem;
  }

  .property-card-body {
    padding: 1.6rem 1.8rem 2rem;
  }

  .property-cta {
    padding: 3rem 2rem;
  }

  .property-cta p {
    font-size: 1.5rem;
  }

  .property-cta-btn {
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
  }
}


/* =========================================================
   写真ギャラリー / カード追加パーツ
   ========================================================= */

/* ---- カバー写真（クリックで拡大） ---- */
.property-card-imgwrap {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #ededed;
  cursor: zoom-in;
  line-height: 0;
  overflow: hidden;
}

.property-card-imgwrap:focus-visible {
  outline: 3px solid #A5387F;
  outline-offset: -3px;
}

.property-card-imgwrap .property-card-img {
  transition: transform 0.4s ease;
}

.property-card-imgwrap:hover .property-card-img {
  transform: scale(1.04);
}

.property-card-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.2rem;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  line-height: 1.6;
  pointer-events: none;
}

/* ---- 説明文 ---- */
.property-card-note {
  font-size: 1.3rem;
  line-height: 1.9;
  color: #555;
  font-family: "Noto Sans JP", Inter_Regular, sans-serif;
  margin: 0;
}

/* ---- サムネイル一覧 ---- */
/* サムネイルは常に5枚1行。列数を変えると最後の1枚が折り返して崩れる。 */
.property-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.property-thumb {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ededed;
  cursor: zoom-in;
  line-height: 0;
}

/* アスペクト比は img 側で指定する。
   button の子要素に height:100% を指定すると高さが解決されず表示されない。 */
.property-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.2s;
}

.property-thumb:hover img {
  opacity: 0.72;
}

.property-thumb:focus-visible {
  outline: 2px solid #A5387F;
  outline-offset: 1px;
}

/* ---- 未確定情報の表示 ---- */
.property-card-price--ask {
  font-size: 1.4rem;
  font-weight: normal;
  color: #707070;
}

.property-card-address--ask {
  color: #999;
}

/* =========================================================
   ライトボックス
   ========================================================= */
.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 6rem 7rem;
}

.property-lightbox[hidden] {
  display: none;
}

.plb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.4rem;
}

.plb-close,
.plb-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s;
}

.plb-close:hover,
.plb-nav:hover {
  background: rgba(255, 255, 255, 0.32);
}

.plb-close:focus-visible,
.plb-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.plb-close {
  top: 1.6rem;
  right: 1.6rem;
  width: 4.4rem;
  height: 4.4rem;
  font-size: 3rem;
}

.plb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  font-size: 3.4rem;
}

.plb-prev { left: 1.4rem; }
.plb-next { right: 1.4rem; }

.plb-counter {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.4rem;
  font-family: Inter_Regular, "Noto Sans JP", sans-serif;
  text-align: center;
  padding: 0 2rem;
}

@media screen and (max-width: 768px) {
  .property-lightbox {
    padding: 5rem 1rem;
  }

  .plb-nav {
    width: 4rem;
    height: 4rem;
    font-size: 2.6rem;
  }

  .plb-prev { left: 0.4rem; }
  .plb-next { right: 0.4rem; }
}

/* ---- 動きを減らす設定への配慮 ---- */
@media (prefers-reduced-motion: reduce) {
  .property-card,
  .property-card-img,
  .property-thumb img {
    transition: none;
  }

  .property-card:hover {
    transform: none;
  }

  .property-card-imgwrap:hover .property-card-img {
    transform: none;
  }
}

/* ---- サムネイルの「+N」オーバーレイ ---- */
.property-thumb--more {
  position: relative;
}

.property-thumb--more img {
  filter: brightness(0.55);
}

.property-thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-family: Inter_Regular, sans-serif;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
}


/* =========================================================
   アイコン（インラインSVG）
   絵文字を使わずSVGで描画する。stroke: currentColor により
   親要素の文字色をそのまま継承する（配色の指定漏れを防ぐ）。
   ========================================================= */
.property-icon {
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* 1行目の文字の中心に光学的に合わせる */
  margin-top: -0.15em;
}

/* カバー写真の枚数バッジ内では、テキストと同じ行に収める */
.property-card-count .property-icon {
  width: 1.3em;
  height: 1.3em;
  margin-top: 0;
}
