@charset "UTF-8";

/* 物件詳細：情報提供会社（広告主）・売主（parts/ad-display.php） */
.dh-ad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.dh-ad__box {
  background: #fff;
  border: 1px solid #e3ded8;
  border-radius: 8px;
  padding: 22px 26px;
}

.dh-ad__ttl {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4d3939;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid #1169ab;
}

.dh-ad__row {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed #d8d2cc;
  font-size: 1.3rem;
  line-height: 1.7;
}

.dh-ad__row:last-child {
  border-bottom: none;
}

.dh-ad__th {
  flex: 0 0 5.5em;
  font-weight: bold;
  color: #4d3939;
}

.dh-ad__td {
  flex: 1 1 auto;
  margin: 0;
  color: #4d3939;
}

@media screen and (max-width: 767px) {
  .dh-ad {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .dh-ad__box {
    padding: 16px 16px;
  }

  .dh-ad__row {
    gap: 10px;
    font-size: 1.2rem;
  }

  .dh-ad__th {
    flex-basis: 5em;
  }
}

/* 物件概要：項目名で一番長い「取引条件の有効期限」に合わせて、値の開始位置をそろえる */
.p-property-single__property-info-list .p-property-single__property-info--th {
  min-width: 11em;
}

/* =========================================================
   物件詳細：固定ボタン
   ・共通の固定ボタン（電話・来店予約・LINE・お問い合わせ）は物件詳細では出さない
   ・物件の「見学予約／資料請求」をモダンなデザインに（PC：右／SP：画面下）
========================================================= */
.cta-rail {
  display: none !important;
}

main .p-single-property__fixed-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  right: 0;
  top: 50%;
  translate: 0 -40%;
  z-index: 998;
}

main .p-property-shop__button.--fixed {
  width: auto;
  translate: none;
}

main .p-property-shop__button.--fixed a {
  --btn: #1169ab;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 84px;
  max-width: none;
  height: auto;
  min-height: 92px;
  padding: 12px 4px 11px;
  background: var(--btn);
  border-radius: 14px 0 0 14px;
  box-shadow: -3px 4px 14px rgba(77, 57, 57, 0.18);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: width 0.25s ease-out, filter 0.25s ease-out;
}

main .p-property-shop__button.--fixed a.--green {
  --btn: #89b929;
}

main .p-property-shop__button-img.--fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

main .p-property-shop__button-img.--fixed img {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  filter: brightness(0) invert(1);
}

@media (any-hover: hover) {
  main .p-property-shop__button.--fixed:hover {
    translate: none;
  }

  main .p-property-shop__button.--fixed a:hover {
    width: 92px;
    filter: brightness(1.06);
    opacity: 1;
  }
}

/* タブレット以下：共通の固定ボタンぶんの下余白を戻す */
@media screen and (max-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* SP：画面下にベージュの帯＋2つのボタン */
@media screen and (max-width: 767px) {
  main .p-single-property__fixed-button {
    flex-direction: row;
    gap: 8px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    translate: none;
    width: 100%;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(244, 242, 232, 0.96);
    box-shadow: 0 -2px 14px rgba(77, 57, 57, 0.16);
  }

  main .p-property-shop__button.--fixed {
    flex: 1 1 50%;
  }

  main .p-property-shop__button.--fixed a {
    flex-direction: row;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 999px;
    box-shadow: none;
    font-size: 1.5rem;
  }

  main .p-property-shop__button-img.--fixed {
    width: 28px;
    height: 28px;
  }

  main .p-property-shop__button-img.--fixed img {
    width: 16px;
    height: 16px;
  }

  main .p-property-shop__button.--fixed a:hover {
    width: 100%;
  }

  body {
    padding-bottom: 64px;
  }
}

/* 注意書き（情報提供会社・売主の下） */
.dh-ad__notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.dh-ad__notes li {
  position: relative;
  padding-left: 1.2em;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #6b5a5a;
}

.dh-ad__notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}
