/* ==========================================================================
   Property(物件情報一覧・種別・詳細)
   ページ送り(.c-pager)は news.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page head(SP〜)
   -------------------------------------------------------------------------- */
.p-property-head {
  position: relative;
  padding: 48px 20px 113px;
  text-align: center;
}

.p-property-head__en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: var(--fw-bold);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-key);
}

.p-property-head__ttl {
  margin-top: 5px;
  font-family: var(--font-ttl);
  font-size: 2.8rem;
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-brown);
}

/* ページ上部の下端を基準に配置 */
.p-property-head__leaf {
  position: absolute;
  top: calc(100% - 63.45px);
  left: 0;
  z-index: 1;
  width: 156px;
  pointer-events: none;
}

/* 種別ページ: タイトルの直後に一覧。SPは葉っぱなし */
.p-property-head--cat {
  padding-bottom: 50px;
}

.p-property-head--cat .p-property-head__leaf {
  display: none;
}

/* --------------------------------------------------------------------------
   種別ラベル(SP〜)
   色は管理画面(物件種別の「ラベルの色」)で指定し、style 属性の --prop-color で受け取る(ラベル・絞り込みボタン共通)。未設定はグレー
   -------------------------------------------------------------------------- */
.c-property-label {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding-inline: 10px;
  font-size: 1.4rem;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background-color: var(--prop-color, var(--color-border));
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   物件の種類で絞り込む(SP〜)
   -------------------------------------------------------------------------- */
.p-property-cat {
  padding: 29px 20px 35px;
  background-color: #e7e4d5;
}

.p-property-cat__ttl {
  font-family: var(--font-ttl);
  font-size: 2rem;
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-brown);
}

.p-property-cat__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin-top: 20px;
}

.p-property-cat__btn {
  display: flex;
  align-items: center;
  height: 44px;
  padding-inline: 18px;
  font-family: var(--font-ttl);
  font-size: 1.5rem;
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background-color: var(--prop-color, var(--color-border));
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   一覧(SP〜)
   -------------------------------------------------------------------------- */
.p-property-list {
  max-width: calc(var(--inner-width) + var(--inner-padding) * 2);
  margin-inline: auto;
  padding: 40px var(--inner-padding) 60px;
}

.c-property-list {
  display: grid;
  gap: 30px;
}

.c-property-item {
  display: block;
}

.c-property-item__thum {
  display: block;
  aspect-ratio: 316 / 231;
  overflow: hidden;
  background-color: var(--color-border);
  border-radius: var(--radius-15);
}

.c-property-item__thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-property-item__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.c-property-item .c-property-label {
  margin-top: 15px;
}

.c-property-item__title {
  display: block;
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.c-property-empty {
  text-align: center;
}

/* --------------------------------------------------------------------------
   種別ページ(SP〜)
   タイトルの直後に一覧、絞り込みは貸駐車場の下
   -------------------------------------------------------------------------- */
/* 葉っぱより物件を前面に */
.p-property-list--cat {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   貸駐車場のご案内(SP〜)
   -------------------------------------------------------------------------- */
.c-property-parking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  padding: 20px 15px;
  background-color: var(--color-key-pale);
  border-radius: var(--radius-10);
}

.c-property-parking__ico {
  flex-shrink: 0;
  width: 50px;
  height: auto;
}

.c-property-parking__txt {
  font-family: var(--font-ttl);
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.c-property-parking__ttl {
  display: block;
  font-size: 1.8rem;
}

.c-property-parking__sub {
  display: block;
  margin-top: 2px;
  font-size: 1.3rem;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   詳細ページ上部: 写真スライダー・物件概要(SP〜)
   -------------------------------------------------------------------------- */
.p-property-summary {
  max-width: calc(var(--inner-width) + var(--inner-padding) * 2);
  margin-inline: auto;
  padding: 40px var(--inner-padding) 0;
}

.p-property-slider {
  aspect-ratio: 490 / 358;
  background-color: var(--color-border);
}

.p-property-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-property-slider .swiper-slide {
  aspect-ratio: 490 / 358;
}

/* サムネイル: 5列(6枚以上は2段目へ) */
.p-property-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 5px;
}

.p-property-thumbs__btn {
  display: block;
  width: 100%;
  aspect-ratio: 94 / 68;
  padding: 0;
  cursor: pointer;
  background-color: var(--color-border);
  border: none;
  opacity: 0.5;
  transition: opacity var(--duration);
}

.p-property-thumbs__btn.is-active {
  opacity: 1;
}

.p-property-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-property-summary__body {
  margin-top: 25px;
}

.p-property-summary__ttl {
  margin-top: 15px;
  font-family: var(--font-ttl);
  font-size: 2.2rem;
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.p-property-summary__price {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 54px;
  margin-top: 20px;
  padding: 8px 20px;
  font-family: var(--font-ttl);
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-10);
}

.p-property-summary__price-label {
  flex-shrink: 0;
  font-size: 1.6rem;
}

.p-property-summary__price-value {
  font-size: 2.4rem;
}

.p-property-summary__info {
  margin-top: 25px;
  padding-inline: 10px;
}

.p-property-summary__info-item + .p-property-summary__info-item {
  margin-top: 11px;
}

.p-property-summary__info-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ttl);
  font-size: 1.6rem;
  font-weight: var(--fw-ttl);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.p-property-summary__info-label::before {
  flex-shrink: 0;
  content: "";
  background: no-repeat center / contain;
}

.p-property-summary__info-label--address::before {
  width: 15px;
  height: 15px;
  background-image: url("../img/property/ico_address.svg");
}

.p-property-summary__info-label--access::before {
  width: 15px;
  height: 20px;
  background-image: url("../img/property/ico_access.svg");
}

.p-property-summary__info-text {
  margin-top: 5px;
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   詳細ページ: 物件概要の表(SP〜)
   -------------------------------------------------------------------------- */
.p-property-spec {
  max-width: calc(780px + var(--inner-padding) * 2);
  margin-inline: auto;
  padding: 50px var(--inner-padding) 90px;
}

.p-property-spec__table {
  width: 100%;
  border-collapse: collapse;
}

.p-property-spec__table th,
.p-property-spec__table td {
  padding: 10px 12px;
  font-size: 1.4rem;
  font-weight: var(--fw-medium);
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: left;
  vertical-align: top;
  border-block: 1px solid #b6b6b6;
}

.p-property-spec__table th {
  width: 120px;
  background-color: var(--color-beige);
}

.p-property-spec__no {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: right;
}

.p-property-spec__back {
  width: 240px;
  height: 50px;
  margin: 50px auto 0;
}

/* --------------------------------------------------------------------------
   PC(768px〜)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .p-property-head {
    padding: 113px 20px 95px;
  }

  .p-property-head__en {
    font-size: 2.5rem;
  }

  .p-property-head__ttl {
    margin-top: 0.5px;
    font-size: 4.8rem;
  }

  .p-property-head__leaf {
    top: calc(100% - 35.7px);
    width: 291px;
  }

  .p-property-head--cat .p-property-head__leaf {
    display: block;
  }

  .p-property-cat {
    padding: 25px 20px 33px;
  }

  .p-property-cat__ttl {
    font-size: 2.4rem;
  }

  .p-property-cat__list {
    gap: 10px;
    margin-top: 22px;
  }

  .p-property-cat__btn {
    height: 51px;
    padding-inline: 25px;
    font-size: 1.8rem;
  }

  .p-property-list {
    padding-bottom: 91px;
  }

  .c-property-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 16px;
    align-items: start;
  }

  .c-property-item__title {
    margin-top: 15px;
    font-size: 1.8rem;
  }

  .p-property-list--cat {
    margin-top: -5px;
    padding-bottom: 60px;
  }

  .c-property-parking {
    gap: 25px;
    min-height: 145px;
    margin-top: 100px;
    padding: 25px;
  }

  .c-property-parking__ico {
    width: 95px;
  }

  .c-property-parking__ttl {
    font-size: 3rem;
  }

  .c-property-parking__sub {
    margin-top: 1.5px;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  .p-property-spec {
    padding: 90px var(--inner-padding) 115px;
  }

  .p-property-spec__table th,
  .p-property-spec__table td {
    padding: 11.5px 25px;
    font-size: 1.6rem;
  }

  .p-property-spec__table th {
    width: 226px;
    padding-left: 20px;
  }

  .p-property-spec__back {
    margin-top: 70px;
  }

  .p-property-summary {
    display: flex;
    gap: 30px;
    padding-top: 113px;
  }

  .p-property-summary__photo {
    flex-shrink: 0;
    width: 490px;
  }

  .p-property-summary__body {
    flex: 1;
    margin-top: 0;
  }

  .p-property-summary__ttl {
    margin-top: 20px;
    font-size: 3rem;
  }

  .p-property-summary__price {
    gap: 20px;
    min-height: 64px;
    margin-top: 30px;
    padding: 0 25px;
  }

  .p-property-summary__price-label {
    font-size: 2.2rem;
  }

  .p-property-summary__price-value {
    font-size: 3rem;
  }

  .p-property-summary__info {
    margin-top: 35px;
    padding-inline: 15px;
  }

  .p-property-summary__info-label {
    font-size: 1.8rem;
  }

  .p-property-summary__info-text {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------------------------------
   PC(1280px〜): ヘッダーが重なるため、Figmaの位置(上から183px)に合わせる
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .p-property-head {
    padding-top: 183px;
  }

  .p-property-summary {
    padding-top: 183px;
  }
}
