@charset "UTF-8";

/* =========================================================
   不動産情報ページ専用
   realestate.css

   対象:
   <body class="realestate-page">

   他ページへの影響を防ぐため、
   原則として .realestate-page 配下に限定
========================================================= */


/* =========================================================
   ページ全体
========================================================= */

.realestate-page #contents_cnt {
  background:
    linear-gradient(
      180deg,
      #f8faff 0%,
      #ffffff 70%
    );
}


/* =========================================================
   物件グリッド
========================================================= */

.realestate-page .estate-grid {
  max-width: 960px;

  margin: 0 auto;

  padding: 0 0 30px;
}


/* =========================================================
   物件カード 共通
========================================================= */

.realestate-page .estate-card {
  background: #fff;

  border: 1px solid #e6eaf0;
  border-radius: 12px;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.05);

  overflow: hidden;
}


/* =========================================================
   カード見出し
========================================================= */

.realestate-page .estate-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 10px;

  padding: 16px 18px;

  background: #f8fbff;

  border-bottom: 1px solid #e6eaf0;
}


.realestate-page .estate-title {
  margin: 0;

  color: #333;

  font-size: 1.2rem;
  line-height: 1.5;
}


/* =========================================================
   賃貸バッジ
========================================================= */

.realestate-page .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-width: 48px;

  padding: 4px 10px;

  color: #fff;

  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;

  background: #005bab;

  border-radius: 999px;
}


/* =========================================================
   画像
========================================================= */

.realestate-page .estate-media {
  padding: 16px;
}


.realestate-page .estate-media a {
  display: block;

  text-decoration: none;
}


.realestate-page .estate-media img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0 auto;

  border: 1px solid #e8eef6;
  border-radius: 8px;

  background: #fff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.realestate-page .estate-media a:hover img {
  transform: scale(1.01);

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   カーサ・エスペランサ
========================================================= */

.realestate-page .casa-hero {
  max-width: 840px;

  margin: 0 auto 36px;
}


.realestate-page .casa-hero .estate-media {
  padding: 18px;
}


.realestate-page .casa-hero .estate-media img {
  max-height: 460px;

  object-fit: contain;
}


/* =========================================================
   笠原アパート A / B
========================================================= */

.realestate-page .estate-row {
  display: flex;
  justify-content: center;
  align-items: stretch;

  gap: 40px;

  max-width: 840px;

  margin: 0 auto;
}


.realestate-page .estate-row .estate-card {
  display: flex;
  flex-direction: column;

  width: 400px;

  flex: 0 0 400px;
}


/* =========================================================
   物件本文
========================================================= */

.realestate-page .estate-body {
  flex: 1;

  padding: 0 16px 18px;
}


/* =========================================================
   物件詳細
========================================================= */

.realestate-page .kv {
  display: grid;

  grid-template-columns: 95px 1fr;

  margin: 0;

  border-top: 1px solid #e6eaf0;
}


.realestate-page .kv dt,
.realestate-page .kv dd {
  margin: 0;

  padding: 10px 8px;

  line-height: 1.65;

  border-bottom: 1px solid #e6eaf0;
}


.realestate-page .kv dt {
  color: #444;

  font-size: 0.9rem;
  font-weight: 700;

  background: #f8fafc;
}


.realestate-page .kv dd {
  color: #333;

  font-size: 0.92rem;

  background: #fff;
}


/* =========================================================
   家賃
========================================================= */

.realestate-page .kv .price {
  color: #d35400;

  font-size: 1.15rem;
  font-weight: 700;
}


/* =========================================================
   タブレット
========================================================= */

@media screen and (max-width: 880px) {

  .realestate-page .estate-grid {
    padding-left: 10px;
    padding-right: 10px;
  }


  .realestate-page .estate-row {
    flex-direction: column;

    gap: 30px;
  }


  .realestate-page .estate-row .estate-card {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    flex: none;
  }


  .realestate-page .casa-hero {
    max-width: 560px;
  }

}


/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 600px) {

  .realestate-page .estate-header {
    padding: 14px;
  }


  .realestate-page .estate-title {
    font-size: 1.05rem;
  }


  .realestate-page .estate-media {
    padding: 12px;
  }


  .realestate-page .estate-body {
    padding:
      0 12px 14px;
  }


  .realestate-page .kv {
    grid-template-columns:
      82px 1fr;
  }


  .realestate-page .kv dt,
  .realestate-page .kv dd {
    padding:
      9px 6px;

    font-size: 0.86rem;
  }


  .realestate-page .kv .price {
    font-size: 1.05rem;
  }

}


/* =========================================================
   小さいスマートフォン
========================================================= */

@media screen and (max-width: 420px) {

  .realestate-page .estate-header {
    align-items: flex-start;
  }


  .realestate-page .estate-title {
    flex: 1;

    min-width: 0;
  }


  .realestate-page .kv {
    grid-template-columns:
      1fr;
  }


  .realestate-page .kv dt {
    padding-bottom: 4px;

    color: #005bab;

    background: #f8fafc;

    border-bottom: none;
  }


  .realestate-page .kv dd {
    padding-top: 4px;
  }


}