@charset "UTF-8";
/*------------------------*/

/*フッター*/

/*-----------------------*/
/* ページトップへ戻る */
#page-top-scroll{
	z-index: 9;
	width: 60px;
	height: 100px;

	position: fixed;
	right: 20px;
	bottom: 60px;

	opacity: 0; /* 修正：初期状態を非表示に */
	pointer-events: none; /* 修正：初期状態はクリック不可に */

 	transition: transform .3s var(--easeInOutSine); /* スピード調整はここ */
}
#page-top-scroll > a{
	width: 100%;
	height: 100%;
	background-color: var(--c-main);

	font-size: var(--txt-lg);
	font-family: "Caveat", cursive;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	color: var(--c-white);

	border-radius: 6px;
	padding-right: 0.15em;

	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 1em;

	transition:
	background-color .3s var(--easeInOutSine),
	color .3s var(--easeInOutSine)
	;
	cursor: pointer;

	position: relative;
}
#page-top-scroll > a > .top-letter{
	display: inline-block;
	transform: rotate(-6deg);
}
#page-top-scroll > a > svg{
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);

	height: 12px;
	fill: var(--c-white);

	transition: top .3s var(--easeInOutSine);
}
/* ホバー */
#page-top-scroll > a.link-hover{
	background-color: var(--c-sub);
	color: var(--c-white);
}
#page-top-scroll > a.link-hover > svg{
	top: 6px;
	fill: var(--c-white);
}
/*-----------------------*/
/* is-change設定 */
/*-----------------------*/
	#footer__wrapper.is-change #page-top-scroll{
		position: fixed;
		right: 20px;
		bottom: 60px;

		animation-duration: .6s;
		animation-timing-function: var(--easeOutSine);
		animation-fill-mode: forwards;
		z-index: 9;
	}
	#footer__wrapper.is-change[data-is-change="true"] #page-top-scroll{
		animation-name: scroll-show;
		pointer-events: auto;
	}
	#footer__wrapper.is-change[data-is-change="false"] #page-top-scroll{
		animation-name: scroll-away;
	}
	@keyframes scroll-away{
		from{
			opacity: 1;
		}
		to{
			opacity: 0;
		}
	}
	@keyframes scroll-show{
		from{
			opacity: 0;
		}
		to{
			opacity: 1;
		}
	}



/*-------------------------------*/
/* コンテナ */
/*------------------------------*/
#footer__wrapper{
	width: 100%;
	padding: 0 var(--mp-lr-reg);
	padding-bottom: var(--mp-tb-reg);
	background-color: var(--c-brown-dark);

	position: relative;
}
/*===========================================*/
/* gridインナー */
#footer__inner{
	height: 100%;
	margin: 0 auto;
	padding-top: var(--mp-tb-xl);

    display: grid;
    grid-template-columns: 1fr;
	grid-template-rows: 1fr calc(200rem/16) 1fr;
    place-content: center;
    grid-template-areas:
    "sitemap sitemap sitemap"
	"logo logo logo"
    "copy copy copy"
    ;
}
/* ロゴ */
#footerLogo{
    grid-area: logo;
	place-content: center;
	fill: var(--c-white);
}
/* サイトマップ */
.footer__sitemap-wrapper{
    grid-area: sitemap;
}
/* コピーライト */
#bottom-box{
    grid-area: copy;
}
/*===========================================*/
/*-------------------------------*/
/* footer 上部 */
/*-------------------------------*/
/* サイトマップ */
#footer__sitemap{
	width: 100%;
	
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: min(2vw,calc(24rem/16)) 0;
}
#footer__sitemap li{
	margin: 0 var(--mp-lr-xs);
}
#footer__sitemap li:last-of-type{
	margin-right: 0;
}
#footer__sitemap li > a{
	color: var(--c-white);
	font-size: var(--txt-sm);
}

/*-------------------------------*/
/* footer 真ん中 */
/*-------------------------------*/
/* ロゴ */
#footerLogo{
    width: calc(120rem / 16);
    margin: 0 auto;
}
#footerLogo > a
{
	width: 100%;
	transition: opacity .4s ease-in-out;
}
#footerLogo > a > img{
	width: 100%;
	height: auto;
}
#footerLogo a.link-hover{
	opacity: 0.5;
}
/* 住所 */
.place-address__wrapper{
	margin-top: 1em;
	width: 100%;
}
.place-address__wrapper p{
	font-size: var(--txt-reg);
	color: var(--c-white);
	line-height: 1.3;
}
/* hover */
#footer__inner .contact-square a.link-hover{
	background-color: var(--c-main);
	color: var(--c-white);
}
/* コピーライト */
#bottom-box{
	margin: 0 auto;
	margin-top: var(--mp-tb-xl);
}
#copyright{
	color: var(--c-white);
	font-size: var(--txt-sm);
}
/*-------------------------------*/

/* Tablet 959px */

/*------------------------------*/
@media(max-width: 959px){
	/*===========================================*/
	/* gridインナー */
	#footer__inner{
		padding-top: 0;
		place-content: center;
		grid-template-columns: 1fr;
		grid-template-areas:
		"sitemap"
		"logo"
		"copy"
		;
	}
	/* サイトマップ */
	#footer__sitemap{
		border-top: solid 1px var(--c-white);
		border-bottom: solid 1px var(--c-white);
		padding-top: 1em;
		padding-bottom: 1em;
		margin-top: var(--mp-tb-md);
		justify-content: center;
	}
	/* ロゴ */
	#footerLogo{
		margin-top: var(--mp-tb-xl);
		grid-area: logo;
		place-content: center;
	}
	/* コピーライト */
	#bottom-box{
		grid-area: copy;
	}
	/*===========================================*/
	/*===========================================*/

}/*Tablet END*/
/*-------------------------------*/

/* Smartphone 559px */

/*------------------------------*/
@media(max-width:559px){
	/* ページトップへ戻る */
	#page-top-scroll{
		width: 48px;
		height: 64px;

		bottom: 1em;
	}
	#page-top-scroll > a{
		letter-spacing: 0.05em;
		padding-bottom: 0.4em;
	}
	#page-top-scroll > a > svg{
		height: 12px;
		top: 6px;
	}
	#footer__inner{
		grid-template-rows: 1fr 1fr calc(80rem / 16);
	}
	/* ロゴ */
	#footerLogo{
		width: calc(80rem/16);
	}
	/* サイトマップ */
	.footer__sitemap-wrapper{
		width: 100%;
	}
	#footer__sitemap{
		margin-top: var(--mp-tb-md);
		width: 100%;
		
		flex-direction: column;
		align-items: center;
		gap: 0;
	}
	#footer__sitemap li {
		margin: 0;
		width: 100%;
		height: 50px;
	}
	#footer__sitemap li:first-of-type{
		border-top: solid 1px var(--c-gray-light);
	}
	#footer__sitemap li + li{
		border-top: solid 1px var(--c-gray-light);
	}
	#footer__sitemap li:last-of-type{
		border-bottom: solid 1px var(--c-gray-light);
	}
	#footer__sitemap li > a{
		display: block;
		width: 100%;
		height: 100%;

		display: flex;
		justify-content: center;
		align-items: center;
	}
}