/*
----------------------------------------

footer

----------------------------------------
*/

.wp-block-template-part:has( > .footer ) {
	margin-block-start: 0;
}

.footer {
	background-color: var(--wp--preset--color--ivory);
	letter-spacing: .04em;
	position: relative;
}

.footer .logo {
	margin-top: 5px !important;
}

.footer .address {
	margin: 1.4em 0 2.2em;
	line-height: 1.75;
}

.footer a {
	color: var(--wp--preset--color--contrast);
}

.footer .footer-cont {
	padding-top: 77px;
	gap: 70px;
}

.footer .footer-cont > .wp-block-column {
	flex: 1 !important;
}

.footer .nav-menu {
	font-size: var(--wp--preset--font-size--15);
	gap: 1.55em;
	margin: 0;
}

.footer .nav-menu > p,
.footer .nav-menu .cont-group > p {
	font-weight: bold;
}

.footer .nav-menu .cont-group {
	width: 100%;
}

.footer .nav-menu .sub-menu {
	margin-top: 5px;
}

.footer .nav-menu .post-link-list {
	list-style: none;
	padding-left: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 1.5em;
	margin-top: 2px;
}

.footer .nav-menu .post-link-list,
.footer .nav-menu .post-link-list a,
.footer .menu-list,
.footer .menu-list a {
	color: var(--wp--preset--color--dark-gray);
}

.footer .menu-list,
.footer .menu-list .children {
	width: 100%;
	list-style: none;
	padding: 0;
	margin-top: 6px;
}

.footer .menu-list + .menu-list,
.footer .menu-list > .cat-item + .cat-item {
	margin-top: 14px;
}

.footer .menu-list .term-title,
.menu-list > .cat-item > a {
	display: flex;
	align-items: center;
	gap: .75em;
	cursor: pointer;
}

.footer .menu-list .term-title::after,
.menu-list > .cat-item > a::after {
	content: "";
	height: 1px;
	background-color: var(--wp--preset--color--gray);
	flex: 1;
}

.footer .menu-list .children {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 0 1.5em;
	margin-top: 2px;
}

.copyright {
	background-color: var(--wp--preset--color--base);
	padding: .75em;
}

.footer .sp-logo {
	display: none;
}

.footer .custom-logo-link {
	border: none !important;
}

.footer .custom-logo-link img {
	transition: all .4s;
}

.wp-block-template-part:has( > .btn-wrap #page-top ) {
	margin: 0 !important;
}

body:has( .efo-form ) .btn-wrap:has( > #page-top ) {
	display: none;
}

.btn-wrap:has( > #page-top ) {
	position: absolute;
	top: 0;
	right: 20px;
	color: var( --wp--preset--color--contrast);
	font-weight: 600;
	line-height: 1.5;
	opacity: 0;
	visibility: hidden;
	z-index: -1;
	transition: all .2s;
}

.btn-wrap:has( > #page-top ).active {
	opacity: 1;
	visibility: visible;
	z-index: 99;
}

.btn-wrap:has( > #page-top ).fixed {
	position: fixed;
	top: auto;
	bottom: 0;
}

#page-top {
	width: 60px;
	height: 60px;
	position: relative;
	top: -30px;
	cursor: pointer;
}

#page-top::before {
	content: "";
	display: inline-block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-image:
		url(../img/page/2x/page-top.png),
		url(../img/page/2x/bg-circle.png);
	background-position: center center;
	background-size:
		13px,
		contain;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: calc( 50% - 30px );
	transition: all .2s;
}

#page-top p {
	display: none;
}

#sp-fix {
	display: none;
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	z-index: -99;
	transform: translateY( 100% );
	transition: all .2s;
}

#sp-fix .is-style-mail-btn .wp-element-button,
#sp-fix .is-style-tel-btn .wp-element-button {
	display: block;
	width: 100%;
	padding-right: 0;
	padding-left: 0;
}

#sp-fix .wp-block-buttons>.wp-block-button {
	width: calc( ( 100% - var(--wp--preset--spacing--10) ) / 2 );
}

#sp-fix .is-style-mail-btn .wp-element-button::before,
#sp-fix .is-style-tel-btn .wp-element-button::before {
	transform: translateY( 4px );
}

#sp-fix .is-style-tel-btn .wp-element-button {
	background: var( --wp--preset--color--base );
	color: var( --wp--preset--color--primary );
}

#sp-fix .is-style-tel-btn .wp-element-button::before {
	color: var( --wp--preset--color--primary );
}


@media screen and ( max-width: 1000px ) {

	footer .has-global-padding > .alignfull {
		gap: 1em;
	}

}


@media screen and ( max-width: 750px ) {

	.footer {
		padding-right: var(--wp--preset--spacing--30);
		padding-left: var(--wp--preset--spacing--30);
	}

	.footer .footer-cont {
		padding: 2.5em 0 1.7em;
		flex-direction: column;
		gap: 1.5em;
	}

	.footer .logo {
		margin-top: 0 !important;
		text-align: center;
	}

	.footer .logo .wp-block-site-logo {
		width: 265px;
	}

	.footer .address {
		text-align: center;
	}

	.footer .nav-menu {
		flex-direction: row;
		gap: 1.8em 1em;
	}

	.footer .nav-menu > * {
		width: calc( ( 100% - 1em ) / 2 ) !important;
	}

	.footer .menu-list {
		margin-top: 10px;
	}

	.footer .nav-menu > .sp-wide {
		width: 100% !important;
	}

	.footer .nav-menu .post-link-list {
		gap: 1px 0.6em;
		margin-top: 4px;
	}

	.footer .menu-list .children {
		gap: 2.3px 1em;
	}

	.bottom-head {
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.bottom-head .wp-block-template-part {
		width: 100%;
	}

	footer .wp-block-template-part .btn-set {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 0 var(--wp--preset--spacing--20) !important;
		gap: var(--wp--preset--spacing--20);
	}

	footer .btn-set > div {
		flex: 1;
	}

	footer .btn-set .tel-link {
		padding: var( --wp--preset--spacing--20) var( --wp--preset--spacing--20) var(--wp--preset--spacing--20);
		border: solid 1px var( --wp--preset--color--primary );
		background: var( --wp--preset--color--base );
		position: relative;
		transition: all .2s;
	}

	footer .btn-set .wp-block-button {
		width: 100%;
		height: 100%;
	}

	footer .btn-set .is-style-mail-btn .wp-block-button__link {
		display: flex;
		width: 100%;
		height: 100%;
		justify-content: center;
		align-items: center;
	}

	footer .btn-set .is-style-mail-btn .wp-block-button__link::before {
		transform: translateY( 0 );
	}

	.nav-wrap {
		gap: var(--wp--preset--spacing--20) !important;
	}

	.bottom-nav {
		border-top-color: var( --wp--preset--color--gray ) !important;
	}

	.bottom-nav > .wp-block-group {
		flex-direction: column;
		gap: 0;
		padding: 0 !important;
	}

	.bottom-nav > .wp-block-group > * {
		width: 100%;
		border-bottom: solid 1px var( --wp--preset--color--gray );
	}

	.bottom-nav a {
		display: block;
		width: 100%;
		text-align: center;
		padding: var(--wp--preset--spacing--30) !important;
		background: var( --wp--preset--color--base );
		position: relative;
	}

	.bottom-nav a::after {
		font-family: 'Material Symbols Outlined';
		content: '\e5cc';
		line-height: 20px;
		position: absolute;
		top: calc( 50% - 10px );
		right: 16px;
		color: var( --wp--preset--color--primary );
		transition: all .2s;
	}

	footer .has-global-padding > .alignfull {
		margin: var(--wp--preset--spacing--20) calc(var(--wp--preset--spacing--30) * -1) 0;
	}

	.copyright {
		padding: .7em;
	}

	#sp-fix {
		display: block;
	}

	#sp-fix.active {
		opacity: 1;
		visibility: visible;
		z-index: 99;
		transform: none;
	}

	.btn-wrap:has( > #page-top ) {
		right: 1em;
	}

	#page-top {
		width: 56px;
		height: 56px;
		top: -1.2em;
	}

	#page-top::before {
		width: 56px;
		height: 56px;
		left: 0;
	}

	#page-top p {
		position: absolute;
		left: -9999px;
	}

}


/*
----------------------------------------

footer-02

----------------------------------------
*/

.footer-02 .nav-menu-wrap {
	flex: 1;
}

.footer-02 .group {
	pointer-events: none;
}

.footer-02 .sub-menu {
	list-style: none;
	padding-left: var(--wp--preset--spacing--20);
}

.footer-02 .sub-menu li {
	padding-left: var(--wp--preset--spacing--20);
	position: relative;
}

.footer-02 .sub-menu li::before {
	content: '';
	width: var(--wp--preset--spacing--10);
	height: 2px;
	background: var( --wp--preset--color--primary );
	position: absolute;
	top: 14px;
	left: 0;
}

.footer-02 .sub-menu li + li {
	margin-top: 5px;
}

@media screen and ( max-width: 750px ) {

	.footer-02 .group {
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}

	.footer-02 .group {
		pointer-events: auto;
	}

	.footer-02 .bottom-nav {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.footer-02 .group a {
		background: var( --wp--preset--color--primary );
		color: var( --wp--preset--color--base );
	}

	.footer-02 .group a::after {
		content: '\e145';
		color: var( --wp--preset--color--base );
	}

	.footer-02 .group a.open {
		background: var( --wp--preset--color--contrast) !important;
	}

	.footer-02 .group a.open::after {
		content: '\e15b';
	}

	.footer-02 .nav-menu {
		display: none;
		padding: 0 !important;
		gap: 0 !important;
		font-size: var(--wp--preset--font-size--16) !important;
	}

	.footer-02 .parent {
		border-top: solid 1px var( --wp--preset--color--gray );
		width: 100%;
	}

	.footer-02 .parent a {
		background: var( --wp--preset--color--light-gray );
		text-align: left;
	}

	.footer-02 .sub-menu {
		width: 100%;
		padding-left: 0;
	}

	.footer-02 .sub-menu li {
		border-top: solid 1px var( --wp--preset--color--gray );
		padding-left: 0;
	}

	.footer-02 .sub-menu li::before {
		left: var(--wp--preset--spacing--20);
		top: calc( 50% - 1px );
		z-index: 99;
	}

	.footer-02 .sub-menu li + li {
		margin-top: 0;
	}

	.footer-02 .sub-menu a {
		text-align: left;
		padding-left: var(--wp--preset--spacing--40) !important;
	}

}


/*
----------------------------------------

hover

----------------------------------------
*/

@media screen and ( min-width: 780px ) {

	.footer a:hover {
		color: var(--wp--preset--color--secondary) !important;
	}

	footer .custom-logo-link:hover img {
		transform: scale( 1.05 );
	}

	#page-top:hover::before {
		background-position:
			center top 40%,
			center center;
	}

}
