/* 保有不動産の売却 (src/views/themes/modern/realestate/*, Docs/property-sale-spec.md §3) */
.re-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; color: #fff; background: var(--c-brand); }
.re-badge--negotiating { background: #b7791f; }
.re-badge--sold { background: #6b7280; }

/* 言語切替 */
.re-langs-wrap { margin-top: var(--sp-4); }
.re-langs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.re-langs__item { display: inline-block; padding: 4px 12px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit; background: #fff; }
.re-langs__item:hover { border-color: var(--c-brand); color: var(--c-brand); }
.re-langs__item.is-current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 700; }

/* 一覧 */
.re-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.re-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.re-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.re-card__media { position: relative; aspect-ratio: 3 / 2; background: #eef1ee; }
.re-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-card__media .re-badge { position: absolute; left: var(--sp-3); top: var(--sp-3); }
.re-card__body { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); flex: 1; }
.re-card__title { font-size: 19px; margin: 0; line-height: 1.4; }
.re-card__meta { margin: 0; color: var(--c-text-sub, #555); font-size: 14px; }
.re-card__price { margin: var(--sp-2) 0 0; font-size: 20px; font-weight: 700; color: var(--c-brand-dark, #06631f); }
.re-card__more { margin-top: auto; padding-top: var(--sp-3); font-weight: 700; color: var(--c-brand); display: inline-flex; gap: var(--sp-1); }
.re-empty { padding: var(--sp-7) 0; text-align: center; color: var(--c-text-sub, #555); }

/* 詳細 */
.re-detail__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.re-detail__sub { margin: 0; color: var(--c-text-sub, #555); }
.re-hero { margin: 0 0 var(--sp-5); }
.re-hero img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.re-facts { display: grid; gap: 0; margin: 0 0 var(--sp-6); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
/* 칸 사이 선: 각 칸의 1px 외곽선이 겹친다(빈 칸이 회색으로 남지 않게) */
.re-facts__item { background: #fff; padding: var(--sp-3) var(--sp-4); box-shadow: 0 0 0 .5px var(--c-line); }
.re-facts__item dt { font-size: 13px; color: var(--c-text-sub, #555); margin-bottom: 2px; }
.re-facts__item dd { margin: 0; font-weight: 700; font-size: 17px; }
.re-facts__item dd small { display: block; font-weight: 400; font-size: 13px; color: var(--c-text-sub, #555); }
.re-facts__item--price { grid-column: 1 / -1; background: var(--c-brand-tint, #eaf5ed); }
.re-facts__item--price dd { font-size: 26px; color: var(--c-brand-dark, #06631f); }
.re-article { max-width: none; }
.re-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0; }
.re-links .m-btn { gap: var(--sp-2); }
.re-inquiry { margin: var(--sp-7) 0 var(--sp-5); padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); background: var(--c-brand-tint, #eaf5ed); text-align: center; }
.re-inquiry h2 { margin: 0 0 var(--sp-2); font-size: 22px; }
.re-inquiry p { margin: 0 0 var(--sp-4); }
.re-inquiry__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.re-inquiry__actions .m-btn { gap: var(--sp-2); overflow-wrap: anywhere; }

/* 韓国語・英語の軽いヘッダー・フッター */
.re-intl { background: #fff; }
.re-ihead { border-bottom: 1px solid var(--c-line); background: #fff; }
.re-ihead__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding-block: var(--sp-3); }
.re-ihead__logo img { display: block; height: 32px; width: auto; }
.re-ihead__section { font-weight: 700; text-decoration: none; color: inherit; }
.re-ihead__tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.re-ihead__ja { font-size: 14px; }
.re-ititle { padding-top: var(--sp-6); }
.re-ititle__crumb { margin: 0 0 var(--sp-2); font-size: 14px; }
.re-ititle__h1 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 var(--sp-2); line-height: 1.35; }
.re-ititle__lead { margin: 0; color: var(--c-text-sub, #555); }
.re-ifoot { margin-top: var(--sp-8); padding-block: var(--sp-6); background: #f4f6f4; border-top: 1px solid var(--c-line); font-size: 14px; }
.re-ifoot__inner > p { margin: 0 0 var(--sp-2); }
.re-ifoot__name { font-weight: 700; }
.re-ifoot__copy { color: var(--c-text-sub, #555); }

/* 言語別フォント（簡体字・繁体字・韓国語は端末のフォントを使う。Webフォントは読み込まない） */
.re-intl--zh-cn { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
.re-intl--zh-tw { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif; }
.re-intl--ko { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }
.re-intl--ko, .re-intl--zh-cn, .re-intl--zh-tw { letter-spacing: 0; }
.re-intl--ko { word-break: keep-all; }

/* 外国語のお問い合わせフォーム (46-property-inquiry.js) */
.re-form { max-width: 720px; }
.re-form__about { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline; margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--c-brand-tint, #eaf5ed); }
.re-form__about span { font-size: 13px; color: var(--c-text-sub, #555); }
.re-form__about a { font-weight: 700; }
.re-form__privacy { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--c-text-sub, #555); }
.re-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-5); }
.re-form__actions .m-btn { gap: var(--sp-2); }
.re-form__done { padding: var(--sp-5) 0; }
.re-form .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 広告型の本文（物件ページ）: 見出しと箇条書きを読みやすく */
.re-article h2 { margin-top: var(--sp-7); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--c-brand); }
.re-article h3 { margin-top: var(--sp-5); color: var(--c-brand-dark, #06631f); }
.re-article > p:first-child { font-size: 1.12em; font-weight: 700; line-height: 1.8; }

/* ── 広告型本文の視覚要素（html-body.js VISUAL_LIST_CLASSES）────────────── */
.re-article .re-banner { margin: var(--sp-5) 0; border-radius: var(--radius); overflow: hidden; }
.re-article .re-banner .m-photo__link img { aspect-ratio: auto; height: auto; }
.re-article .m-photos:has(.re-banner) { display: block; }
/* 人物カード3枚（こんな方に）は同じ幅で並べる */
@media (min-width: 768px) { .re-article .m-photos--3:has(.m-photo--card) > .m-photo:first-child { grid-column: auto; } }
.re-article .m-photo--card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.re-article .m-photo--card .m-photo__title { margin: var(--sp-4) var(--sp-4) var(--sp-2); font-size: 17px !important; color: var(--c-brand-dark, #06631f); }
.re-article .m-photo--card .m-photo__cap { margin: 0 var(--sp-4) var(--sp-4); font-size: 14.5px; line-height: 1.75; color: inherit; }
/* カード格子: <ul class="re-cards"><li><strong>見出し</strong>本文</li>… */
.re-article ul.re-cards { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); counter-reset: recard; }
.re-article ul.re-cards > li { position: relative; margin: 0; padding: var(--sp-5) var(--sp-4) var(--sp-4); background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-brand); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.05); line-height: 1.75; counter-increment: recard; }
.re-article ul.re-cards > li::before { content: counter(recard, decimal-leading-zero); display: block; margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-brand); background: none; width: auto; height: auto; position: static; }
.re-article ul.re-cards > li > strong:first-child { display: block; margin: 0 0 var(--sp-2); font-size: 1.12em; line-height: 1.5; color: var(--c-brand-dark, #06631f); }
/* 大きな数字: <ul class="re-stats"><li><strong>69%</strong>2026年11月</li>… */
.re-article ul.re-stats { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.re-article ul.re-stats > li { margin: 0; padding: var(--sp-4) var(--sp-3); text-align: center; background: var(--c-brand-tint, #eaf5ed); border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.re-article ul.re-stats > li::before { content: none; }
.re-article ul.re-stats > li > strong:first-child { display: block; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--c-brand-dark, #06631f); font-variant-numeric: tabular-nums; }
/* 推移（右へ上がっていく）: 最後を強調し、間に矢印 */
.re-article ul.re-stats--trend > li { position: relative; }
.re-article ul.re-stats--trend > li:last-child { background: var(--c-brand); color: #fff; }
.re-article ul.re-stats--trend > li:last-child > strong:first-child { color: #fff; }
.re-article ul.re-stats--trend > li + li::before { content: ""; position: absolute; top: 50%; left: -13px; width: 10px; height: 10px; border-top: 3px solid var(--c-brand); border-right: 3px solid var(--c-brand); transform: translateY(-50%) rotate(45deg); z-index: 1; }
@media (max-width: 560px) { .re-article ul.re-stats--trend { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); } .re-article ul.re-stats--trend > li + li::before { display: none; } }
/* チップ: 予約チャネルなど */
.re-article ul.re-chips { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.re-article ul.re-chips > li { margin: 0; padding: 6px 14px; border: 1px solid var(--c-brand); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--c-brand-dark, #06631f); background: #fff; }
.re-article ul.re-chips > li::before { content: none; }
/* 流れ図: <ol class="re-steps"><li><strong>見出し</strong>本文</li>… */
.re-article ol.re-steps { list-style: none; padding: 0; margin: var(--sp-5) 0; display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: restep; }
.re-article ol.re-steps > li { position: relative; margin: 0; padding: 44px var(--sp-3) var(--sp-4); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 14px; line-height: 1.7; counter-increment: restep; }
.re-article ol.re-steps > li::before { content: counter(restep); position: absolute; top: -18px; left: var(--sp-3); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 4px #fff; }
.re-article ol.re-steps > li::after { content: ""; position: absolute; top: 50%; right: calc(var(--sp-4) * -1 + 3px); width: 10px; height: 10px; border-top: 3px solid var(--c-brand); border-right: 3px solid var(--c-brand); transform: translateY(-50%) rotate(45deg); }
.re-article ol.re-steps > li:last-child::after { content: none; }
.re-article ol.re-steps > li:last-child { border-color: var(--c-brand); background: var(--c-brand-tint, #eaf5ed); }
.re-article ol.re-steps > li > strong:first-child { display: block; margin: 0 0 var(--sp-1, 4px); font-size: 16px; line-height: 1.45; color: var(--c-brand-dark, #06631f); }
@media (max-width: 640px) {
  .re-article ol.re-steps { grid-template-columns: 1fr; }
  .re-article ol.re-steps > li::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
}
/* 本文中のお問い合わせボタン */
.re-article p.text-center { margin: var(--sp-6) 0; }
.re-article p.text-center .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; min-height: 52px; border: 2px solid var(--c-brand); background: var(--c-brand); color: #fff; border-radius: 999px; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(10, 138, 46, .25); }
.re-article p.text-center .btn-primary:hover { background: var(--c-brand-dark, #06631f); border-color: var(--c-brand-dark, #06631f); }

/* 演出イメージ（拡大なし）はズームのカーソル・動きを付けない */
span.m-photo__link { cursor: default; }
span.m-photo__link:hover img { transform: none; }
