/* ==========================================================
   会員登録フォーム／お気に入りボタン／最近見た物件
   ========================================================== */

/* ---- 必須：赤文字で小さく ---- */
.req.dh-req, .mmb-form .req.dh-req {
  display: inline-block;
  margin-left: .6em;
  font-size: 1.1rem !important;
  font-weight: 700;
  line-height: 1;
  color: #e2353e !important;
  vertical-align: middle;
  letter-spacing: .05em;
}
.mmb-form .req.dh-req::before,
.mmb-form .req.dh-req::after { content: none !important; }

/* ---- 希望エリア ---- */
.mmb-form .dh-area { font-size: 1.5rem; font-weight: 400; }
.dh-area__current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dh-area__current[hidden], .dh-area__steps[hidden] { display: none; }
.dh-area__current-txt { font-weight: 700; font-size: 1.6rem; }
.dh-area__change, .dh-area__clear, .dh-area__back, .dh-area__add {
  padding: 4px 12px; border: 1px solid #c2bbb4; border-radius: 999px; background: #fff;
  font-size: 1.3rem; color: #4d3939; cursor: pointer;
}
.dh-area__clear { border-color: transparent; background: none; text-decoration: underline; padding: 4px 4px; }
.dh-area__back { margin-bottom: 10px; border: 0; background: none; padding: 0; text-decoration: underline; }
.dh-area__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-area__pill {
  min-width: 88px; padding: 8px 14px; border: 1px solid #c2bbb4; border-radius: 6px; background: #fff;
  font-size: 1.4rem; color: #4d3939; cursor: pointer; transition: background .2s, border-color .2s;
}
.dh-area__pill:hover { border-color: #4d3939; background: #f7f3ef; }
.dh-area__pill.has-more::after { content: "›"; margin-left: 6px; font-weight: 700; }
.dh-area__addrow { display: block; padding: 12px 0; border-bottom: solid 1px #c2bbb4; }
.dh-area__addrow[hidden], .mmb-form .row[hidden] { display: none !important; }
.dh-area__add { padding: 8px 18px; font-weight: 700; }
.dh-area__err { display: none; margin-top: 8px; font-size: 1.3rem; color: #e2353e; font-weight: 700; }
.row.is-error .dh-area__err { display: block; }

/* きっかけ（プルダウン） */
.mmb-form select[name="user_chance"] { width: 100%; max-width: 480px; border: 1px solid #c2bbb4; }
.mmb-form .div_select { position: relative; }

/* ---- お気に入りボタン（物件詳細） ---- */
.dh-fav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin: -10px 0 24px; }
.dh-fav__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 2px solid #de6a6f; border-radius: 999px; background: #fff; color: #de6a6f;
  font-size: 1.5rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.dh-fav__icon { font-size: 1.8rem; line-height: 1; }
.dh-fav__on { display: none; }
.dh-fav__btn.is-active { background: #de6a6f; color: #fff; }
.dh-fav__btn.is-active .dh-fav__icon::before { content: "♥"; }
.dh-fav__btn.is-active .dh-fav__icon { font-size: 0; }
.dh-fav__btn.is-active .dh-fav__icon::before { font-size: 1.8rem; }
.dh-fav__btn.is-active .dh-fav__off { display: none; }
.dh-fav__btn.is-active .dh-fav__on { display: inline; }
.dh-fav__link { font-size: 1.3rem; text-decoration: underline; color: #4d3939; }

/* ---- 最近見た物件（会員ページ） ---- */
.dh-recent { margin: 60px 0 50px; }
.dh-recent__ttl { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 2.2rem; font-weight: 700; }
.dh-recent__empty { font-size: 1.5rem; }
.dh-recent__empty a { text-decoration: underline; }
.dh-recent__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dh-recent__item a { display: block; height: 100%; background: #fff; border-radius: 6px; overflow: hidden; color: #4d3939; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: transform .2s; }
.dh-recent__item a:hover { transform: translateY(-2px); opacity: 1; }
.dh-recent__img { aspect-ratio: 4 / 3; background: #eee; margin: 0; }
.dh-recent__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-recent__body { padding: 10px 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dh-recent__body .dh-type-label { font-size: 1.1rem; padding: 2px 8px; }
.dh-recent__name { font-size: 1.4rem; font-weight: 700; line-height: 1.5; }
.dh-recent__price { font-size: 1.6rem; font-weight: 700; color: #e2353e; }
.dh-recent__addr { font-size: 1.2rem; color: #7a6a6a; }

@media screen and (max-width: 767px) {
  .dh-fav { justify-content: flex-start; margin: 0 0 20px; }
  .dh-fav__btn { width: 100%; justify-content: center; }
  .dh-recent__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dh-recent__ttl { font-size: 1.8rem; }
  .dh-area__pill { min-width: 0; flex: 1 1 calc(50% - 8px); }
}
