/* 大分不動産レジデンシャル — 基礎 */

:root {
	--color-ink: #231815;
	--color-ink-soft: #3e3a39;
	--color-cream: #f3eee4;
	--color-paper: #fff;
	--color-mist: #f1f1f1;
	--color-stone: #3e3a39;
	--color-gold: #b08d4f;
	--color-gold-soft: #c9a96a;
	--color-muted: #9fa0a0;
	--color-line: #c9caca;
	--color-white: #fff;
	--font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--font-en: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--font-sans: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--container: 1100px;
	--container-pad: 5vw;
	--section-space: 9.375em;
	--header-height: 5.5em;
	--heading-lv1-size: 1.75em;
	--heading-lv2-size: 1.5625em;
	--heading-lv3-size: 1.25em;
	--heading-en-size: 0.75em;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-hover: cubic-bezier(0.65, 0, 0.076, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	font-size: 16px;
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.85;
	letter-spacing: 0.04em;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--color-gold);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

button {
	font-family: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.08em;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-container {
	width: min(var(--container), calc(100% - var(--container-pad) * 2));
	margin-inline: auto;
}

.u-cover {
	object-fit: cover;
	object-position: var(--object-position, center center);
}

@media (max-width: 768px) {
	.u-cover {
		object-position: var(--object-position-sp, var(--object-position, center center));
	}
}

.u-nowrap {
	white-space: nowrap;
}

.u-pc {
	display: block;
}

.u-sp {
	display: none;
}

.u-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.is-js .js-fade {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.is-js .js-fade.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 1024px) {
	:root {
		--container-pad: 4vw;
		--header-height: 4.75em;
	}
}

@media (max-width: 768px) {
	:root {
		--container-pad: 1.25em;
		--section-space: 4.5em;
		--header-height: 4.25em;
		--heading-lv1-size: 1.375em;
		--heading-lv2-size: 1.375em;
		--heading-lv3-size: 1.125em;
	}

	.u-pc {
		display: none;
	}

	.u-sp {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.is-js .js-fade {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.is-js .js-fade {
		opacity: 1;
		transform: none;
	}
}
