/* MATECH Footer — サイト共通フッター */

@font-face {
	font-family: "MTF Baskerville";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
}

/* 旧フッター（Astraの小フッター）を隠す。PHP側で出力自体も止めているので、これは保険。 */
#colophon.site-footer {
	display: none !important;
}

.mtf {
	background: #333;
	color: #999;
	padding: 80px 0 56px;
	/* 本文の細字（Light）だと暗い背景で読みにくいので、フッターは標準の太さにする */
	font-family: "NotoSansJP-Regular", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: 0.02em;
	text-align: left;
	clear: both;
	-webkit-font-smoothing: antialiased;
}

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

.mtf .mtf__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 30px;
}

/* ---- サイトマップ ---- */

.mtf .mtf-sitemap {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 44px;
}

.mtf .mtf-col__title {
	margin: 0 0 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid #666;
	color: #ccc;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.02em;
	text-transform: none;
}

.mtf .mtf-col__list,
.mtf .mtf-legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtf .mtf-col__list li {
	margin: 0;
	padding: 0;
	line-height: 1.7;
}

/* サイト共通のリンク色（Elementorの設定）に負けないよう、ここだけID指定にしている */
#matech-footer a,
#matech-footer a:visited {
	color: #999;
	text-decoration: none;
	transition: color 0.2s ease;
}

#matech-footer a:hover,
#matech-footer a:focus {
	color: #fff;
	text-decoration: none;
}

.mtf a:focus-visible {
	outline: 1px solid #ccc;
	outline-offset: 3px;
}

.mtf .mtf-col__list a {
	display: inline-block;
	padding: 1px 0;
	font-size: 12px;
}

/* ---- SNSアイコン（PCでは右端の列の下側に置く） ---- */

.mtf .mtf-social {
	grid-column: 4;
	align-self: end;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtf .mtf-social li {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.mtf .mtf-social a {
	display: block;
	line-height: 0;
}

.mtf .mtf-social svg {
	display: block;
	width: 28px;
	height: 28px;
}

/* ---- タグライン＋ロゴ ---- */

.mtf .mtf-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-top: 76px;
}

.mtf .mtf-bottom__main {
	min-width: 0;
}

.mtf .mtf-tagline {
	margin: 0 0 34px;
	padding: 0;
	color: #999;
	font-family: "MTF Baskerville", "Libre Baskerville", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
	font-size: clamp(34px, 6.2vw, 64px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-transform: none;
}

.mtf .mtf-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 10px;
	line-height: 1.6;
}

.mtf .mtf-legal li {
	margin: 0;
	padding: 0;
}

.mtf .mtf-legal a {
	font-size: 10px;
}

.mtf .mtf-brand {
	flex: none;
	text-align: right;
}

.mtf .mtf-brand__logo {
	display: block;
	margin: 0 0 0 auto;
}

.mtf .mtf-brand__logo img {
	display: block;
	width: 172px;
	max-width: 100%;
	height: auto;
	margin: 0 0 0 auto;
}

.mtf .mtf-copy {
	margin: 8px 0 0;
	padding: 0;
	color: #999;
	font-size: 9px;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

/* ---- タブレット ---- */

@media (max-width: 921px) {
	.mtf .mtf-sitemap {
		column-gap: 28px;
	}
}

/* ---- スマホ ---- */

@media (max-width: 767px) {
	.mtf {
		padding: 56px 0 40px;
	}

	.mtf .mtf__inner {
		padding: 0 24px;
	}

	.mtf .mtf-sitemap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 36px;
	}

	.mtf .mtf-col__list a {
		padding: 4px 0;
	}

	.mtf .mtf-social {
		grid-column: 1 / -1;
		justify-self: start;
		gap: 28px;
		margin-top: 4px;
	}

	.mtf .mtf-social a {
		padding: 6px;
		margin: -6px;
	}

	.mtf .mtf-bottom {
		display: block;
		margin-top: 56px;
	}

	.mtf .mtf-tagline {
		margin-bottom: 24px;
	}

	.mtf .mtf-legal {
		gap: 8px 16px;
	}

	.mtf .mtf-brand {
		margin-top: 44px;
		text-align: left;
	}

	.mtf .mtf-brand__logo,
	.mtf .mtf-brand__logo img {
		margin-left: 0;
	}

	.mtf .mtf-brand__logo img {
		width: 150px;
	}
}
