/* 物件管理プラグイン - front */
:root {
	--bsm-accent: #1f6feb;
	--bsm-text: #222;
	--bsm-muted: #667085;
	--bsm-border: #e4e7ec;
	--bsm-bg: #f7f8fa;
	--bsm-price: #d92d20;
}
.bsm-wrap,
.bsm-main > .bsm-wrap {
	--bsm-accent: #1f6feb;
	--bsm-text: #222;
	--bsm-muted: #667085;
	--bsm-border: #e4e7ec;
	--bsm-bg: #f7f8fa;
	--bsm-price: #d92d20;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--bsm-text);
	line-height: 1.7;
	box-sizing: border-box;
}
.bsm-wrap *,
.bsm-grid * { box-sizing: border-box; }

/* breadcrumb */
.bsm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--bsm-muted); }
.bsm-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #aaa; }
.bsm-breadcrumb a { color: var(--bsm-muted); text-decoration: none; }
.bsm-breadcrumb a:hover { text-decoration: underline; }

/* headings */
.bsm-archive-title,
.bsm-single-title { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.4; margin: 0 0 8px; }
.bsm-archive-desc { color: var(--bsm-muted); margin-bottom: 16px; }
.bsm-section { margin-top: 40px; }
.bsm-section > h2 { font-size: 20px; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--bsm-accent); line-height: 1.4; }

/* badges / tags */
.bsm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bsm-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; background: #555; }
.bsm-badge-negotiating { background: #f79009; }
.bsm-badge-sold { background: #667085; }
.bsm-badge-ended { background: #98a2b3; }
.bsm-tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--bsm-border); border-radius: 999px; font-size: 12px; color: var(--bsm-muted); text-decoration: none; }
.bsm-tag:hover { border-color: var(--bsm-accent); color: var(--bsm-accent); }

/* single */
.bsm-single-price { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--bsm-price); margin: 0 0 4px; }
.bsm-single-loc { color: var(--bsm-muted); margin: 0 0 20px; }
.bsm-gallery-main { position: relative; margin: 0; background: var(--bsm-bg); border-radius: 8px; overflow: hidden; }
.bsm-gallery-open { display: block; cursor: zoom-in; }
.bsm-gallery-main img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; }
.bsm-gallery-caption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; border-radius: 999px; }
.bsm-gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; border-radius: 999px; }
.bsm-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.bsm-gallery-nav:hover,
.bsm-gallery-nav:focus-visible { background: rgba(0, 0, 0, .75); }
.bsm-gallery-prev { left: 10px; }
.bsm-gallery-next { right: 10px; }
.bsm-gallery-thumbs { display: flex; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0 0 6px; overflow-x: auto; scroll-snap-type: x proximity; }
.bsm-gallery-thumbs li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.bsm-gallery-thumbs a { position: relative; display: block; width: 112px; border-radius: 4px; outline-offset: 2px; opacity: .7; }
.bsm-gallery-thumbs a:hover,
.bsm-gallery-thumbs a:focus-visible,
.bsm-gallery-thumbs a.is-current { opacity: 1; }
.bsm-gallery-thumbs a.is-current { outline: 2px solid var(--bsm-accent); }
.bsm-gallery-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.bsm-thumb-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; text-align: center; border-radius: 0 0 4px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* amenities */
.bsm-amenity-title { margin: 18px 0 6px; font-size: 15px; color: var(--bsm-muted); }
.bsm-amenity-list { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.bsm-amenity-list li { margin: 0; padding: 4px 12px 4px 8px; border: 1px solid var(--bsm-border); border-radius: 999px; font-size: 14px; background: #fff; }
.bsm-amenity-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--bsm-accent); }
.bsm-check { display: inline-block; margin-right: 4px; color: var(--bsm-accent); font-weight: 700; }
.bsm-f-setsubi { width: 100%; margin: 8px 0; border: 1px solid var(--bsm-border); border-radius: 6px; padding: 8px 12px; }
.bsm-f-setsubi summary { cursor: pointer; font-weight: 600; }
.bsm-f-group { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; align-items: center; }
.bsm-f-group label { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }

/* lightbox */
html.bsm-lb-open { overflow: hidden; }
.bsm-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.bsm-lb-fig { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.bsm-lb-fig img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.bsm-lb-fig figcaption { margin-top: 10px; color: #fff; font-size: 14px; }
.bsm-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; border-radius: 50%; }
.bsm-lb button:hover,
.bsm-lb button:focus-visible { background: rgba(255, 255, 255, .35); }
.bsm-lb-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 28px; line-height: 44px; padding: 0; }
.bsm-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 52px; padding: 0; }
.bsm-lb-prev { left: 14px; }
.bsm-lb-next { right: 14px; }
.bsm-lb.is-single .bsm-lb-nav { display: none; }

/* map */
.bsm-map-wrap { margin: 0; }
.bsm-leaflet { height: 400px; border-radius: 8px; overflow: hidden; background: var(--bsm-bg); z-index: 0; }
.bsm-map-note { margin: 6px 0 0; font-size: 13px; color: var(--bsm-muted); }
.bsm-pop { min-width: 160px; }
.bsm-pop img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.bsm-pop-title { display: block; font-weight: 700; }
.bsm-pop-price { color: var(--bsm-price); font-weight: 700; }
.bsm-pop-loc { color: var(--bsm-muted); font-size: 12px; }

.bsm-spec { width: 100%; border-collapse: collapse; border: 1px solid var(--bsm-border); font-size: 15px; }
.bsm-spec th,
.bsm-spec td { padding: 12px 14px; border-bottom: 1px solid var(--bsm-border); text-align: left; vertical-align: top; }
.bsm-spec th { width: 28%; min-width: 110px; background: var(--bsm-bg); font-weight: 600; }
.bsm-content > *:first-child { margin-top: 0; }
.bsm-map iframe,
.bsm-video iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 8px; }
.bsm-video { position: relative; }

.bsm-cta { background: var(--bsm-bg); border-radius: 8px; padding: 24px; text-align: center; }
.bsm-cta > h2 { border: 0; padding: 0; }
.bsm-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* buttons */
.bsm-btn { display: inline-block; padding: 12px 24px; border: 1px solid var(--bsm-accent); border-radius: 6px; background: #fff; color: var(--bsm-accent); font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1.4; }
.bsm-btn-primary { background: var(--bsm-accent); color: #fff; }
.bsm-btn:hover { opacity: .88; }

/* grid + cards */
.bsm-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsm-cols-1 { grid-template-columns: 1fr; }
.bsm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsm-card { border: 1px solid var(--bsm-border); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.bsm-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.bsm-card-link { display: block; color: inherit; text-decoration: none; }
.bsm-card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bsm-bg); }
.bsm-card-thumb .bsm-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bsm-card-thumb .bsm-badge { position: absolute; top: 8px; left: 8px; }
.bsm-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #aaa; font-size: 13px; letter-spacing: .1em; }
.bsm-card-body { padding: 14px 16px 18px; }
.bsm-card-tags { margin: 0 0 4px; font-size: 12px; color: var(--bsm-muted); }
.bsm-card-title { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.bsm-card-price { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--bsm-price); }
.bsm-card-spec,
.bsm-card-loc,
.bsm-card-st { margin: 0; font-size: 13px; color: var(--bsm-muted); }

/* search form */
.bsm-search { background: var(--bsm-bg); border-radius: 8px; padding: 16px; margin: 0 0 24px; }
.bsm-search-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 12px; }
.bsm-search label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.bsm-search select { min-width: 130px; padding: 8px; font-size: 14px; font-weight: 400; max-width: 100%; }
.bsm-f-sale,
.bsm-f-rent { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.bsm-f-label { font-weight: 600; margin-right: 4px; }
.bsm-search-actions { display: flex; align-items: center; gap: 16px; }
.bsm-reset { font-size: 13px; color: var(--bsm-muted); }
.bsm-count { margin: 0 0 12px; color: var(--bsm-muted); font-size: 14px; }
.bsm-none { padding: 32px 0; text-align: center; color: var(--bsm-muted); }

/* pagination */
.bsm-pagination { margin-top: 32px; text-align: center; }
.bsm-pagination .page-numbers { display: inline-block; min-width: 38px; padding: 8px 12px; margin: 2px; border: 1px solid var(--bsm-border); border-radius: 4px; color: var(--bsm-text); text-decoration: none; }
.bsm-pagination .page-numbers.current { background: var(--bsm-accent); border-color: var(--bsm-accent); color: #fff; }

@media (max-width: 900px) {
	.bsm-grid,
	.bsm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.bsm-grid,
	.bsm-cols-2,
	.bsm-cols-4 { grid-template-columns: 1fr; }
	.bsm-spec th { width: 34%; min-width: 0; }
	.bsm-spec th,
	.bsm-spec td { padding: 10px; font-size: 14px; }
	.bsm-map iframe,
	.bsm-video iframe { height: 260px; }
	.bsm-leaflet { height: 300px; }
	.bsm-gallery-thumbs a { width: 88px; }
	.bsm-gallery-nav { width: 38px; height: 38px; line-height: 38px; font-size: 24px; }
	.bsm-lb-nav { width: 42px; height: 42px; line-height: 42px; font-size: 28px; }
	.bsm-search select { min-width: 0; width: 100%; }
	.bsm-search label { width: 100%; }
}

/* トップ用 [bukken_top] */
.bsm-top { margin: 0 0 32px; }
.bsm-top-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0 0 0; border-bottom: 2px solid var(--bsm-accent); }
.bsm-top-tab { appearance: none; margin: 0; padding: 10px 18px; border: 1px solid var(--bsm-border); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--bsm-bg); color: var(--bsm-text); font-size: 15px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.bsm-top-tab:hover { background: #fff; }
.bsm-top-tab.is-active { background: var(--bsm-accent); border-color: var(--bsm-accent); color: #fff; }
.bsm-top-count { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .12); font-size: 12px; font-weight: 600; }
.bsm-top-tab.is-active .bsm-top-count { background: rgba(255, 255, 255, .25); }
.bsm-top.is-tabs .bsm-top-panel { display: none; }
.bsm-top.is-tabs .bsm-top-panel.is-active { display: block; }
.bsm-top-title { margin: 28px 0 12px; padding: 0 0 8px; border-bottom: 2px solid var(--bsm-accent); font-size: 20px; }
.bsm-top-title small { margin-left: 8px; font-size: 13px; color: var(--bsm-muted); font-weight: 400; }
.bsm-top-more { margin: 18px 0 0; text-align: center; }
.bsm-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bsm-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .bsm-cols-5, .bsm-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bsm-top-tab { padding: 8px 12px; font-size: 14px; } }
@media (max-width: 560px) { .bsm-cols-5, .bsm-cols-6 { grid-template-columns: 1fr; } }
