/**
 * 共通フッター用 CSS
 *
 * 各 footer*.php から読み込む。フッターの見た目を変えるときはこのファイルだけを編集する。
 * セレクタは footer 配下にスコープしているので、style.css を読まない LP でも干渉しない。
 */

/* footer.php 直前の hr（LP は style.css の hr リセットを持たない） */
hr:has(+ footer) {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
	margin: 0;
	clear: both;
	color: #E2E2E2;
	border: 0;
	border-top: 1px solid #E2E2E2;
	z-index: 1;
	position: relative;
}

footer {
	background-color: #fff;
	color: #2C241A;
	font-family: "lato", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 2em;
	font-feature-settings: "palt";
}

@media screen and (max-width: 960px) {
	footer {
		padding-bottom: 66px;
	}
}

footer a {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
}

/* style.css リセットより：* は ::before/::after に効かないため footer 内で明示 */
footer::before,
footer::after,
footer *::before,
footer *::after {
	box-sizing: border-box;
	border-style: solid;
	border-width: 0;
}

footer p {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.7;
}

@media screen and (min-width: 961px) {
	footer p {
		font-size: 18px;
		line-height: 1.8;
	}
}

footer .footer {
	max-width: 1136px;
	padding: 80px 16px 24px;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
}

@media screen and (max-width: 960px) {
	footer .footer {
		display: block;
	}
}

footer .property {
	width: 31%;
}

@media screen and (max-width: 960px) {
	footer .property {
		width: 100%;
	}
}

footer .property img {
	width: 263px;
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
	border: 0;
}

@media screen and (max-width: 960px) {
	footer .property img {
		width: 200px;
	}
}

footer .property p {
	margin-top: 24px;
}

footer .contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 28px;
	padding-top: 20px;
}

@media screen and (max-width: 960px) {
	footer .contact {
		display: block;
	}
}

footer .contact .tel {
	font-size: 24px;
	font-weight: bold;
	margin-right: 8px;
	position: relative;
	transition: all ease .3s;
}

footer .contact .tel:after {
	content: '';
	background: var(--footer-phone-icon, url("img/phone.svg"));
	position: absolute;
	width: 20px;
	height: 20px;
	left: -28px;
	top: 4px;
	transition: all ease .3s;
}

footer .contact .time {
	font-size: 13px;
	margin-right: 0;
	font-weight: bold;
	text-align: center;
}

@media screen and (max-width: 960px) {
	footer .contact .time {
		text-align: left;
		margin-top: -5px;
	}
}

footer .footer-nav {
	width: 66%;
}

@media screen and (max-width: 960px) {
	footer .footer-nav {
		display: block;
		width: 100%;
	}
}

footer .footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media screen and (max-width: 960px) {
	footer .footer-nav ul {
		display: block;
		margin-top: 24px;
	}
}

footer .footer-nav ul li {
	width: 32%;
	margin-bottom: 8px;
}

@media screen and (max-width: 960px) {
	footer .footer-nav ul li {
		width: 100%;
		margin-bottom: 0;
	}
}

footer .footer-nav ul li a {
	font-weight: bold;
	font-size: 14px;
	line-height: 1.7;
	position: relative;
	transition: all ease .3s;
}

@media screen and (max-width: 960px) {
	footer .footer-nav ul li a {
		display: block;
		line-height: 3em;
		position: relative;
		border-bottom: 1px solid #E2E2E2;
	}
}

footer .footer-nav ul li a:hover {
	color: #D87B20;
}

footer .footer-nav ul li a:before {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	content: '';
	left: -16px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #D87B20;
	border-right: 2px solid #D87B20;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

@media screen and (max-width: 960px) {
	footer .footer-nav ul li a:before {
		right: 0;
		left: inherit;
	}
}

footer p.copyright {
	font-size: 12px;
	max-width: 1136px;
	padding: 24px 16px;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
}

/**
 * 共通フッター（rakuda-top-agent-more-demo.html 準拠）
 * footer.php の #footer 専用。上の旧セレクタは LP / 売却LP 用に残す。
 */

#footer {
	--body: "Zen Kaku Gothic New", sans-serif;
	--num: "Outfit", sans-serif;
	background: #17181d;
	color: #9aa0ac;
	padding: 44px 0 110px;
	font-size: 13.5px;
	line-height: 2;
	letter-spacing: normal;
	font-feature-settings: normal;
	font-family: var(--body);
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {
	#footer {
		padding-bottom: 130px;
	}
}

#footer *,
#footer *::before,
#footer *::after {
	letter-spacing: normal;
	font-feature-settings: normal;
	box-sizing: border-box;
}

#footer a {
	color: inherit;
	text-decoration: none;
	background-color: transparent;
}

#footer a:hover {
	color: #fff;
}

#footer a:focus-visible {
	outline: 3px solid #f3a246;
	outline-offset: 3px;
	border-radius: 6px;
}

#footer .wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

#footer p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

#footer .fcols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 30px;
}

@media (max-width: 860px) {
	#footer .fcols {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	#footer .fcols {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

#footer .fh {
	font-size: 13px;
	font-weight: 900;
	color: #c8cde4;
	letter-spacing: 0.08em;
	margin: 0 0 12px;
	border-bottom: 1px solid #33374f;
	padding-bottom: 8px;
}

#footer .fcol nav {
	display: grid;
	gap: 9px;
	background: transparent;
	position: static;
	z-index: auto;
}

@media (max-width: 560px) {
	#footer .fcol nav {
		display: flex;
		flex-wrap: wrap;
		gap: 10px 20px;
	}
}

#footer .fcol nav a {
	font-size: 13.5px;
	color: #b9bedd;
}

@media (max-width: 560px) {
	#footer .fcol nav a {
		font-size: 13px;
	}
}

#footer .fcompany {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 2;
}

@media (max-width: 560px) {
	#footer .fcompany {
		line-height: 1.8;
	}
}

#footer .fcompany b {
	color: #e8e6f0;
	font-size: 15px;
	font-weight: 700;
}

#footer .flicense {
	font-size: 12.5px;
	color: #8a90a5;
}

#footer .fconsult {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
}

#footer .ftel {
	font-family: var(--num);
	font-weight: 700;
	font-size: 21px;
	color: #fff;
}

#footer a.ftel:hover {
	color: #fff;
}

#footer .flink {
	color: #ffb45c;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#footer a.flink:hover {
	color: #ffd08a;
}

#footer .fcopy {
	margin: 30px 0 0;
	padding-top: 18px;
	border-top: 1px solid #33374f;
	font-size: 12.5px;
	color: #8a90a5;
}

/* スマホ固定バー（旧 .bSpNav の置き換え）。#footer の外だが footer.php 専用 */
.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.97);
	border-top: 1px solid #ece8e1;
	box-shadow: 0 -8px 24px rgba(23, 24, 29, 0.1);
	letter-spacing: normal;
	font-feature-settings: normal;
	font-family: "Zen Kaku Gothic New", sans-serif;
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {
	.sticky-cta {
		display: flex;
	}
}

.sticky-cta .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 8px;
	border-radius: 13px;
	cursor: pointer;
	border: none;
	text-decoration: none;
	white-space: normal;
	box-sizing: border-box;
}

.sticky-cta .s3 {
	padding: 9px 4px;
	font-size: 12.5px;
	font-weight: 900;
	line-height: 1.5;
	text-align: center;
}

.sticky-cta .btn-main {
	background: #e8770f;
	color: #fff;
	box-shadow: 0 5px 14px rgba(232, 119, 15, 0.2);
}

.sticky-cta .line-o {
	color: #0e7a3c;
	border: 1.5px solid #3fb56b;
	background: #eefbf3;
}

.sticky-cta .tel-o2 {
	color: #17181d;
	border: 1.5px solid #c9c4ba;
	background: #faf8f4;
}

/* PC右下固定CTA。ファーストビューでは出さず、430px超で .show */
.float-consult {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 70;
	width: 310px;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(9px);
	border: 1px solid #e8e2d9;
	border-radius: 17px;
	padding: 12px;
	box-shadow: 0 16px 38px rgba(23, 24, 29, 0.16);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: 0.2s ease;
	letter-spacing: normal;
	font-feature-settings: normal;
	font-family: "Zen Kaku Gothic New", sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

@media (max-width: 760px) {
	.float-consult {
		display: none;
	}
}

.float-consult.show {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.float-consult small {
	display: block;
	text-align: center;
	font-size: 10.5px;
	color: #777b88;
	font-weight: 700;
	margin-bottom: 7px;
}

.float-consult a {
	text-decoration: none;
	box-sizing: border-box;
}

.float-consult a:focus-visible {
	outline: 3px solid #f3a246;
	outline-offset: 3px;
	border-radius: 8px;
}

.float-consult .float-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: #e8770f;
	color: #fff;
	border-radius: 11px;
	padding: 12px 10px;
	font-size: 14px;
	font-weight: 900;
	text-align: center;
}

.float-consult .float-subrow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 7px;
}

.float-consult .float-subrow a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 9px;
	padding: 8px 7px;
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
}

.float-consult .float-line {
	background: #eefbf3;
	border: 1px solid #74ca94;
	color: #107a3c;
}

.float-consult .float-tel {
	background: #faf8f4;
	border: 1px solid #d8d2c8;
	color: #333;
}
