:root {
	--page-max: 1100px;
	--overlay-offset: 12px;
}
html {
	font-size: clamp(10.5px, calc(100vw / 67), 13.5px);
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
.site-frame {
	width: 100%;
	max-width: var(--page-max);
	margin-inline: auto;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
main [id] {
	scroll-margin-top: calc(var(--masthead-h) + 12px) !important;
}
.site-frame > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-left: 2.5%;
	padding-right: 2.5%;
	box-sizing: border-box;
	background: #fff;
}
.site-frame > header h1 {
	flex-shrink: 0;
	margin: 0;
}
.site-frame > header h1 img {
	display: block;
	height: 80px;
	width: auto;
	max-width: 100%;
}
.header-buttons {
	display: flex;
	align-items: stretch;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.header-buttons > li {
	display: flex;
	margin: 0 !important;
}
.header-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 10px 16px !important;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: #fff;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
	justify-content: center;
	box-sizing: border-box; 
}
.header-buttons.pc .header-btn {
	width: 200px;
	height: 68px;
}
.header-btn:hover {
	opacity: 0.8;
}
.header-btn i {
	font-size: 2.8rem;
	line-height: 1;
}
.header-btn span {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}
.tel-btn {
	background-color: #a91b50 !important;
}
.contact-btn {
	background-color: #54b661 !important;
}
.tel-btn span span:first-child {
	font-size: 1.6rem;
	font-weight: 700;
}
.tel-btn span span:last-child {
	color: #f69f00;
	font-size: 1.4rem;
	font-weight: 900;
	letter-spacing: 0.05em;
}
.contact-btn span span:first-child {
	font-size: 1.5rem;
}
.contact-btn span span:last-child {
	font-size: 1.6rem;
	font-weight: 700;
}
.header-buttons.pc {
	display: none;
}
.header-buttons-sp,
.footer-buttons {
	display: none;
}
#floating-buttons {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	transform: translateY(100%);
	z-index: 999;
	display: flex;
	gap: 4px;
	width: 100%;
	max-width: var(--page-max);
	padding: 5px 16px calc(8px + env(safe-area-inset-bottom, 0px)) 16px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.2s ease;
	backdrop-filter: saturate(150%) blur(6px);
	-webkit-backdrop-filter: saturate(150%) blur(6px);
	box-sizing: border-box;
}
#floating-buttons.is-visible {
	transform: translateY(0); 
}
#floating-buttons .header-btn {
	flex: 1;
	justify-content: center !important;
	text-align: center !important;
}
.footer-cta {
	display: none; 
	width: min(1100px, 95%);
	margin: 26px auto 10px;
	padding: clamp(14px, 2.2vw, 18px) clamp(14px, 2.2vw, 18px) 16px;
	border: 2px solid #6f6a73;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}
.footer-cta__title {
	margin: 0 0 0.5em;
	color: #3a3550;
	font-weight: 800;
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	line-height: 1.5;
	letter-spacing: 0.01em;
}
.footer-cta__desc {
	margin: 0 0 12px;
	color: #6f6a73;
	line-height: 1.9;
	font-weight: 600;
}
.footer-cta__buttons {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(12px, 5vw, 50px);
	width: clamp(520px, 68%, 780px);
	margin: 8px auto 0;
}
.footer-cta .header-btn {
	flex: 1 1 0;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	padding: 10px 16px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.footer-cta__mailbtn i.fa-envelope {
	font-size: 2.4rem;
}
.gnav.pc .gnav-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 16px 0; 
}
.gnav.pc .gnav-menu li + li::before {
	content: "|";
	margin: 0 1.8em;
	color: #ccc;
}
.gnav.pc .gnav-menu a {
	position: relative;
	text-decoration: none;
	color: #3a3550;
	font-size: 1.6rem;
	padding-bottom: 6px;
	transition: color 0.2s ease;
}
.gnav.pc .gnav-menu a:hover {
	color: #a91b50;
}
.gnav.pc .gnav-menu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 1px;
	background: #a91b50;
	transform: translateX(-50%);
	transition: width 0.3s ease-in-out;
}
.gnav.pc .gnav-menu a:hover::after {
	width: 100%;
}
@media (min-width: 641px) {
	.site-frame > footer {
		background-color: #6d558d; 
		padding: 30px 2.5% 24px;
		box-sizing: border-box;
	}
	.site-frame > footer nav ul {
		display: flex;
		justify-content: center;
		align-items: center;
		list-style: none;
		margin: 0 0 24px 0;
		padding: 0;
	}
	.site-frame > footer nav ul li + li::before {
		content: "|";
		margin: 0 1.8em;
		color: rgba(255, 255, 255, 0.4);
	}
	.site-frame > footer nav ul a {
		position: relative;
		text-decoration: none;
		color: #fff;
		font-size: 1.6rem;
		padding-bottom: 6px;
		transition: opacity 0.2s ease;
	}
	.site-frame > footer nav ul a:hover {
		opacity: 0.8;
	}
	.site-frame > footer nav ul a::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 50%;
		width: 0;
		height: 1px;
		background: #fff;
		transform: translateX(-50%);
		transition: width 0.3s ease-in-out;
	}
	.site-frame > footer nav ul a:hover::after {
		width: 100%;
	}
	.site-frame > footer small {
		display: block;
		text-align: center;
		color: #fff;
		font-size: 1.2rem;
	}
}
#page-top a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background-color: #6d558d; 
	border-radius: 50%; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}
#page-top a:hover {
	opacity: 0.8;
	transform: translateY(-2px);
}
#page-top a i {
	color: #fff;
	font-size: 2.2rem;
	line-height: 1;
}
@media (min-width: 641px) {
	.header-buttons.pc {
		display: flex;
	}
	.footer-cta {
		display: block;
	}
	.site-frame > nav.gnav.pc {
		display: block;
	}
	.site-frame > header {
		padding-top: 18px;
		padding-bottom: 18px;
		position: sticky;
		top: 0;
		z-index: 1100;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
		transition: transform 0.18s ease, box-shadow 0.18s ease,
			padding 0.18s ease;
	}
	.site-frame > nav.gnav.pc {
		position: sticky;
		top: var(--header-h);
		z-index: 1099;
		background: #fff;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		transition: transform 0.18s ease, box-shadow 0.18s ease,
			padding 0.18s ease;
	}
	.tel-btn span span:last-child {
		color: #f69f00;
		font-size: 1.2rem;
		font-weight: 900;
		letter-spacing: 0.05em;
		border-top: solid 0.1rem #fff;
		padding-top: 0.3rem;
		margin-top: 0.3rem;
	}
	.sp {
		display: none !important;
	}
}
@media (max-width: 640px) {
	.pc {
		display: none !important;
	}
	:root {
		--sp-safe-top: env(safe-area-inset-top, 0px);
		--sp-top-gap: clamp(14px, 2.8vh, 26px);
		--sp-extra-gap: 8px;
	}
	.site-frame {
		width: 95%;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	.site-frame > header {
		position: relative;
		flex-direction: column;
		padding: 8px 0 15px;
		margin-bottom: 0 !important;
	}
	.site-frame > header h1 {
		width: 75%;
		max-width: 280px;
		margin: 8px auto 0;
		text-align: center;
	}
	.site-frame > header h1 img {
		width: 100%;
		height: auto;
		max-width: 500px !important;
	}
	#navArea .toggle-btn {
		top: max(10px, var(--sp-safe-top, 0px));
		right: 12px;
	}
	.header-buttons-sp,
	.footer-buttons {
		display: flex;
	}
	.header-buttons-sp {
		justify-content: center;
		gap: 4px;
		width: 100%;
		max-width: 500px;
		margin: 0 auto !important;
		padding: 0 16px;
		box-sizing: border-box;
	}
	.header-buttons-sp .header-btn {
		flex: 1;
		gap: 8px;
	}
	.header-buttons-sp .header-btn i {
		font-size: 2.2rem;
	}
	.header-buttons-sp .tel-btn {
		flex: 0 1 40% !important;
		padding: 8px 10px !important;
		justify-content: center !important;
	}
	.header-buttons-sp .tel-btn span span:first-child {
		font-size: 1.2rem;
	}
	.header-buttons-sp .tel-btn span span:last-child {
		font-size: 1.6rem;
	}
	.header-buttons-sp .contact-btn {
		flex: 0 1 25% !important;
		justify-content: center !important;
	}
	.header-buttons-sp .contact-btn span {
		align-items: center;
	}
	.header-buttons-sp .contact-btn span span:first-child {
		font-size: 1.2rem;
	}
	.header-buttons-sp .contact-btn span span:last-child {
		font-size: 1.3rem;
	}
	.footer-buttons {
		justify-content: center;
		gap: 8px;
		padding: 16px 16px 6px;
		align-items: stretch !important;
	}
	.footer-buttons .header-btn {
		flex: 1;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		height: auto;
	}
	#floating-buttons .header-btn i {
		font-size: 2.2rem;
	}
	#floating-buttons .tel-btn span span:first-child {
		font-size: 1.2rem !important;
	}
	#floating-buttons .tel-btn span span:last-child {
		font-size: 1.6rem !important;
		letter-spacing: 0.03em;
	}
	#floating-buttons .contact-btn span span:first-child {
		font-size: 1.2rem !important;
	}
	#floating-buttons .contact-btn span span:last-child {
		font-size: 1.3rem !important;
	}
}
