/* 土地物件一覧ページ専用スタイル */

:root {
	--re-primary: #299151;
	--re-primary-dark: #1d664c;
	--re-primary-light: #e8f5e9;
	--re-text: #2c2c2c;
	--re-text-muted: #666;
	--re-bg: #f8f9fa;
	--re-card: #ffffff;
	--re-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	--re-radius: 16px;
	--re-radius-sm: 10px;
}

/* ヒーロー */
.property-hero {
	padding: 100px 0 2.5rem;
	background: linear-gradient(to right, #f8f9fa 0%, #eef1f5 100%);
	position: relative;
	overflow: hidden;
}

.property-hero::before {
	display: none;
}

.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--re-text-muted);
	margin-bottom: 2rem;
}

.breadcrumb a {
	color: var(--re-primary);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
	opacity: 0.7;
}

.breadcrumb-separator {
	color: #ccc;
}

.property-header {
	text-align: center;
	margin-bottom: 0;
}

.property-number {
	display: inline-block;
	color: var(--re-primary);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
	padding: 0.35rem 1rem;
	background: rgba(41, 145, 81, 0.1);
	border-radius: 4px;
}

.property-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 600;
	color: var(--re-text);
	margin-bottom: 0.75rem;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.property-lead {
	font-size: 1rem;
	color: var(--re-text-muted);
	line-height: 1.8;
	max-width: 640px;
	margin: 0 auto;
}

/* 一覧セクション */
.land-list-section {
	padding: 0 0 4rem;
	background: var(--re-bg);
}

.land-list-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.land-list-count {
	font-size: 1rem;
	color: var(--re-text-muted);
}

.land-list-count strong {
	color: var(--re-primary);
	font-size: 1.2rem;
	margin: 0 0.2rem;
}

.land-toolbar-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.land-filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.land-filter-btn {
	padding: 0.55rem 1.3rem;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--re-text-muted);
	background: var(--re-card);
	border: 1px solid #dde5df;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.land-filter-btn:hover {
	border-color: var(--re-primary);
	color: var(--re-primary);
}

.land-filter-btn.active {
	background: var(--re-primary);
	border-color: var(--re-primary);
	color: white;
}

.land-filter-btn--residential:hover {
	border-color: var(--re-primary);
	color: var(--re-primary);
}

.land-filter-btn--residential.active {
	background: var(--re-primary);
	border-color: var(--re-primary);
	color: white;
}

.land-filter-btn--office:hover {
	border-color: #c0392b;
	color: #c0392b;
}

.land-filter-btn--office.active {
	background: #c0392b;
	border-color: #c0392b;
	color: white;
}

.land-sort {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.land-sort-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--re-text-muted);
	white-space: nowrap;
}

.land-sort-select {
	padding: 0.55rem 2rem 0.55rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--re-text);
	background: var(--re-card);
	border: 1px solid #dde5df;
	border-radius: 50px;
	cursor: pointer;
	transition: border-color 0.25s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	min-width: 180px;
}

.land-sort-select:hover,
.land-sort-select:focus {
	border-color: var(--re-primary);
	outline: none;
}

.land-list {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.land-empty {
	text-align: center;
	padding: 3rem;
	color: var(--re-text-muted);
	background: var(--re-card);
	border-radius: var(--re-radius);
}

/* 土地物件カード */
.land-item {
	background: var(--re-card);
	border-radius: var(--re-radius);
	box-shadow: var(--re-shadow);
	border: 1px solid rgba(41, 145, 81, 0.06);
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.land-item:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.land-item-overview {
	display: grid;
	grid-template-columns: minmax(0, 38%) 1fr;
	align-items: start;
	gap: 0;
}

.land-item-gallery {
	display: flex;
	flex-direction: column;
	height: auto;
}

.land-item-image {
	position: relative;
	flex: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e8ebe9;
	overflow: hidden;
}

.land-item-image.is-empty::after {
	content: '画像準備中';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--re-text-muted);
	letter-spacing: 0.1em;
}

.land-gallery-main {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	position: relative;
}

.land-gallery-main img:not(.is-no-image) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease, transform 0.5s ease;
}

.land-item-image:has(img.is-no-image)::after {
	content: '画像準備中';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--re-text-muted);
	letter-spacing: 0.1em;
	z-index: 1;
}

.land-gallery-zoom {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 2;
}

.land-item-image:hover .land-gallery-zoom {
	opacity: 1;
}

.land-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: var(--re-text);
	font-size: 1.4rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease, transform 0.2s ease;
}

.land-gallery-nav:hover {
	background: white;
	transform: translateY(-50%) scale(1.08);
}

.land-gallery-prev {
	left: 0.6rem;
}

.land-gallery-next {
	right: 0.6rem;
}

.land-gallery-dots {
	position: absolute;
	bottom: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.45rem;
	z-index: 4;
	padding: 0.35rem 0.6rem;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 50px;
	backdrop-filter: blur(4px);
}

.land-gallery-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.land-gallery-dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.land-gallery-dot.active {
	background: white;
	transform: scale(1.2);
}

.land-item:hover .land-gallery-main img:not(.is-no-image) {
	transform: scale(1.04);
}

.land-item-status {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 700;
	color: white;
	z-index: 3;
}

.land-item-status.residential {
	background: var(--re-primary);
	box-shadow: 0 4px 12px rgba(41, 145, 81, 0.35);
}

.land-item-status.office {
	background: #c0392b;
	box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
}

.land-item-body {
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.land-item-title {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--re-text);
	margin-bottom: 1rem;
	line-height: 1.45;
}

.land-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
	margin-bottom: 1.15rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: var(--re-radius-sm);
	border: 1px solid #eee;
}

.land-summary-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--re-primary);
	letter-spacing: 0.03em;
}

.land-summary-value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--re-text);
	line-height: 1.4;
}

.land-item-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0;
	border-bottom: none;
}

.land-price-value {
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--re-primary);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
}

.land-price-main {
	display: inline-flex;
	align-items: baseline;
	gap: 0.05em;
}

.land-price-tsubo {
	font-size: 0.62em;
	font-weight: 500;
	color: var(--re-text-muted);
	display: inline-flex;
	align-items: baseline;
	gap: 0.05em;
}

.land-price-unit {
	font-size: 0.55em;
}

.land-price-note {
	font-size: 0.82rem;
	color: var(--re-text-muted);
}

.land-item-id {
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--re-primary);
}

.land-item-type {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--re-text-muted);
	padding: 0.25rem 0.7rem;
	background: #f0f2f1;
	border-radius: 4px;
}

.land-item-remarks {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--re-text-muted);
	margin: 0;
}

.land-specs-details {
	border-top: 1px solid #eee;
}

.land-specs-summary {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.6rem;
	padding: 1rem 1.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--re-primary);
	cursor: pointer;
	list-style: none;
	background: #fafbfa;
	transition: background 0.2s ease;
	user-select: none;
}

.land-specs-summary::-webkit-details-marker {
	display: none;
}

.land-specs-summary:hover {
	background: #f0f4f1;
}

.land-specs-summary-icon {
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--re-primary);
	border-bottom: 2px solid var(--re-primary);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.land-specs-details[open] .land-specs-summary {
	border-bottom: 1px solid #eee;
}

.land-specs-details[open] .land-specs-summary-icon {
	transform: rotate(-135deg);
}

.land-item-specs-section {
	padding: 1.25rem 1.75rem 1.5rem;
	background: #fafbfa;
}

.land-specs--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 1.5rem;
	border-top: none;
}

.land-spec-row {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 0.5rem 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid #eceeec;
	align-items: start;
}

.land-spec-row dt {
	font-size: 1rem;
	font-weight: 600;
	color: var(--re-primary);
	line-height: 1.5;
}

.land-spec-row dd {
	font-size: 1.1rem;
	color: var(--re-text);
	line-height: 1.55;
	margin: 0;
}

.land-item-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.land-summary-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

/* チェックリスト（real-estateと共通デザイン） */
.points-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: linear-gradient(180deg, #f8f9fa 0%, var(--re-card) 100%);
}

.points-list--compact {
	border-radius: var(--re-radius-sm);
	overflow: hidden;
	border: 1px solid #e8ede9;
}

.points-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid #e8ede9;
	transition: background 0.25s ease, padding-left 0.25s ease;
}

.points-item:hover {
	background: rgba(41, 145, 81, 0.04);
	padding-left: 1.4rem;
}

.points-marker {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--re-primary);
	position: relative;
}

.points-marker::after {
	content: '';
	position: absolute;
	top: 45%;
	left: 50%;
	width: 4px;
	height: 8px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: translate(-50%, -60%) rotate(45deg);
}

.points-label {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--re-text);
	line-height: 1.4;
}

.points-item:hover .points-label {
	color: var(--re-primary);
}

/* CTA */
.property-cta {
	background: linear-gradient(145deg, var(--re-primary-dark) 0%, var(--re-primary) 50%, #2da85e 100%);
	color: white;
	padding: 5rem 0;
	text-align: center;
	width: 100%;
	position: relative;
	overflow: hidden;
}

.property-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
	pointer-events: none;
}

.property-cta .container {
	position: relative;
	z-index: 1;
}

.cta-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	margin-bottom: 0.75rem;
	letter-spacing: 0.04em;
}

.cta-subtitle {
	font-size: 1.05rem;
	margin-bottom: 2.5rem;
	opacity: 0.9;
	line-height: 1.7;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	gap: 0.6rem;
	min-width: 260px;
}

.cta-button-primary {
	background: white;
	color: var(--re-primary);
	border: 2px solid white;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-button-primary:hover {
	background: #f8fffa;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
	background: rgba(255, 255, 255, 0.12);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(4px);
}

.cta-button-secondary:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: white;
	transform: translateY(-3px);
}

/* ライトボックス */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.lightbox[hidden] {
	display: none;
}

.lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.lightbox-dialog {
	position: relative;
	width: min(92vw, 1000px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 1;
}

.lightbox-image-wrap {
	width: 100%;
	max-height: calc(90vh - 80px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: 100%;
	max-height: calc(90vh - 80px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
	margin-top: 1rem;
	color: white;
	font-size: 0.9rem;
	text-align: center;
	opacity: 0.9;
}

.lightbox-counter {
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
}

.lightbox-close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: white;
	font-size: 1.6rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 2;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: white;
	font-size: 1.8rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 2;
}

.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
	left: -3.5rem;
}

.lightbox-next {
	right: -3.5rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
	.land-item-overview {
		grid-template-columns: minmax(0, 40%) 1fr;
	}

	.land-specs--grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (max-width: 768px) {
	.property-hero {
		padding: 85px 0 2rem;
	}

	.land-list-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.land-toolbar-actions {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
	}

	.land-sort {
		width: 100%;
	}

	.land-sort-select {
		flex: 1;
		width: 100%;
		min-width: unset;
	}

	.land-item-overview {
		grid-template-columns: 1fr;
	}

	.land-item-gallery {
		height: auto;
	}

	.land-item-image {
		aspect-ratio: 4 / 3;
	}

	.land-item-body,
	.land-item-specs-section {
		padding: 1.25rem;
	}

	.land-specs-summary {
		padding: 1rem 1.25rem;
		font-size: 0.95rem;
	}

	.land-item-body {
		justify-content: flex-start;
	}

	.land-summary {
		grid-template-columns: 1fr;
	}

	.land-spec-row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.points-list {
		grid-template-columns: 1fr;
	}

	.property-cta {
		padding: 3.5rem 0;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.cta-button-primary,
	.cta-button-secondary {
		width: 100%;
		min-width: unset;
	}
}

@media (max-width: 480px) {
	.land-price-value {
		font-size: 1.5rem;
	}

	.lightbox {
		padding: 1rem;
	}

	.lightbox-prev {
		left: 0.5rem;
	}

	.lightbox-next {
		right: 0.5rem;
	}

	.lightbox-close {
		top: 0.5rem;
		right: 0.5rem;
	}

	.lightbox-nav {
		background: rgba(0, 0, 0, 0.5);
	}
}
