/* Fukuyama Motomachi Estate - front-end overrides */

html, body {
	overflow-x: hidden;
	max-width: 100%;
}

/* Disable WordPress core's default 645px "readable content" cap on PC.
   Below this breakpoint the narrower measure is kept for mobile readability. */
@media (min-width: 783px) {
	:root {
		--wp--style--global--content-size: var(--wp--style--global--wide-size, 1340px);
	}
}

/* Header */
.site-header {
	position: relative;
	z-index: 20;
}

.header-phone a {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.site-header .wp-block-group.alignwide {
		flex-wrap: nowrap;
	}

	.site-header .wp-block-group.alignwide > .wp-block-group:last-child {
		flex-wrap: nowrap;
		justify-content: flex-end;
		width: auto;
	}

	.site-header .header-phone {
		display: none;
	}

	.site-header .wp-block-navigation {
		flex-wrap: nowrap;
		justify-content: flex-end;
	}
}

/* Hero / first view */
.hero-fv {
	min-height: 760px;
	overflow: hidden;
}

.hero-fv > .wp-block-cover__background {
	z-index: 0;
}

.hero-fv__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 1;
}

.hero-fv__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero-fv__photo-fade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(233, 241, 245, 0.85) 0%, rgba(233, 241, 245, 0.55) 25%, rgba(233, 241, 245, 0.15) 50%, rgba(233, 241, 245, 0) 70%);
	z-index: 1;
}

.hero-fv > .wp-block-cover__inner-container {
	z-index: 2;
}

.hero-fv__scrim {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0.55) 100%);
	max-width: 620px;
	position: relative;
}

.hero-fv__scrim h1 {
	font-size: clamp(1.75rem, 4vw, 2.6rem);
}

@media (max-width: 782px) {
	.hero-fv {
		min-height: 460px;
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
		padding-bottom: var(--wp--preset--spacing--30) !important;
	}

	.hero-fv__scrim {
		padding: var(--wp--preset--spacing--30) !important;
	}

	.hero-fv__scrim h1 {
		font-size: 1.6rem;
		line-height: 1.4;
	}

	.hero-fv__scrim p {
		font-size: 0.85rem;
		line-height: 1.7;
		margin-top: 10px !important;
		margin-bottom: 16px !important;
	}

	.wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons .wp-block-button__link {
		display: block;
		text-align: center;
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
	}
}

@media (max-width: 400px) {
	.hero-fv {
		min-height: 420px;
	}
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 1px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 8%, transparent);
}

/* Feature cards (選ばれる理由) */
.feature-card {
	box-shadow: 0 1px 3px rgba(15, 42, 68, 0.08);
	height: 100%;
}

/* Staff (スタッフ紹介) */
.staff-feature {
	display: flex;
	align-items: stretch;
	min-height: 340px;
}

.staff-feature__media {
	flex: 0 0 34%;
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--accent-5);
}

.staff-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.staff-feature__badge {
	flex: 0 0 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent-2);
}

.staff-feature__badge span {
	writing-mode: vertical-rl;
	color: var(--wp--preset--color--base);
	font-family: 'YuMincho', 'Yu Mincho', 'Hiragino Mincho ProN', '游明朝体', serif;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.4em;
}

.staff-feature__content {
	flex: 1;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	padding: 36px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.staff-feature__name.wp-block-heading {
	color: var(--wp--preset--color--base);
	font-size: 1.5rem;
	letter-spacing: 0.05em;
	margin: 0;
}

.staff-feature__role {
	color: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	margin: 8px 0 0;
}

.staff-feature__role::after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin-top: 16px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
}

.staff-feature__message {
	color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	font-size: 0.9rem;
	line-height: 1.9;
	max-width: 420px;
	margin: 16px 0 0;
}

@media (max-width: 782px) {
	.staff-feature {
		flex-direction: column;
		min-height: 0;
	}

	.staff-feature__media {
		flex: none;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.staff-feature__badge {
		flex: none;
		width: 100%;
		height: 48px;
	}

	.staff-feature__badge span {
		writing-mode: horizontal-tb;
	}

	.staff-feature__content {
		padding: 40px 28px;
	}

	.staff-feature__message {
		max-width: none;
	}
}

/* Properties grid (取扱い物件) */
.properties-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 28px;
}

.properties-grid__item {
	margin: 0;
	text-align: center;
}

.properties-grid__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--accent-5);
}

.properties-grid__photo figure {
	margin: 0;
	height: 100%;
}

.properties-grid__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(15%);
	transition: transform 0.6s ease, filter 0.6s ease;
}

.properties-grid__item:hover .properties-grid__photo img {
	transform: scale(1.06);
	filter: grayscale(0%);
}

.properties-grid__index {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-family: 'YuMincho', 'Yu Mincho', 'Hiragino Mincho ProN', '游明朝体', serif;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.properties-grid__label {
	margin: 0;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	border-top: 3px solid var(--wp--preset--color--accent-2);
	padding: 16px 12px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.05em;
}

@media (max-width: 600px) {
	.properties-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 14px;
	}
}

/* Company table (会社概要) */
.company-table__row {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 16px 0;
}

.company-table__label {
	width: 180px;
	flex-shrink: 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--accent-3);
	margin: 0;
}

.company-table__value {
	flex: 1;
	min-width: 240px;
	font-size: 0.95rem;
	margin: 0;
}

@media (max-width: 600px) {
	.company-table__row {
		flex-direction: column;
	}

	.company-table__label {
		margin-bottom: 4px;
	}
}

/* Footer / CTA */
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
	margin: 0;
}

@media (max-width: 600px) {
	.footer-bottom {
		flex-direction: column;
		gap: 8px;
	}
}