@charset "UTF-8";

/* 差し込みフッターが出たときだけ SWELL 標準フッターを隠す */
body:has(.footer-common-link) .l-footer {
	display: none !important;
}

.l-content {
	margin-bottom: 0 !important;
}

/* ジャンル固定ページへの導線（グロナビと同系色） */
.footer-genre-nav {
	position: relative;
	background: linear-gradient(90deg, #1a8fd4 0%, #0e6eab 55%, #1aa6c9 100%);
	color: #fff;
	text-align: center;
	padding: 18px 16px 16px;
	width: 100%;
	box-sizing: border-box;
}

.footer-genre-nav::before {
	content: "";
	position: absolute;
	top: 0;
	left: calc(-50vw + 50%);
	right: calc(-50vw + 50%);
	bottom: 0;
	background: inherit;
	z-index: -1;
}

.footer-genre-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 4px;
	margin: 0 auto;
	padding: 0;
	max-width: 1200px;
	list-style: none;
}

.footer-genre-nav__item {
	margin: 0;
}

.footer-genre-nav__item:not(:last-child)::after {
	content: "｜";
	color: rgba(255, 255, 255, 0.45);
	margin-left: 10px;
	margin-right: 6px;
	font-size: 11px;
}

.footer-genre-nav__link {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.footer-genre-nav__link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* IID / リセマム共通フッター（英会話と同じ） */
.footer-common-link {
	background-color: #7c6b62;
	text-align: center;
	font-size: 10px;
	padding: 13px 0 0;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.footer-common-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: calc(-50vw + 50%);
	right: calc(-50vw + 50%);
	bottom: 0;
	background-color: #7c6b62;
	z-index: -1;
}

.footer-common-link .inner,
.footer-common-link .common-link-nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.footer-common-link .item,
.footer-common-link .link {
	color: #fff;
}

.footer-common-link .item {
	display: inline-block;
	font-size: 11px;
	padding-bottom: 10px;
}

.footer-common-link .item:after {
	color: #b0a59e;
	content: " ｜ ";
}

.footer-common-link .item--copyright {
	display: block;
	font-size: 11px;
	text-align: center;
	width: 100%;
}

.footer-common-link li.item.item--copyright.item--affiliate {
	padding-bottom: 0;
}

.footer-common-link .item--copyright:after {
	content: none;
}

.footer-explanation-wrapper {
	width: 88%;
	max-width: 780px;
	margin: 10px auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-gap: 10px 50px;
}

.footer-explanation {
	display: flex;
	align-items: center;
	font-size: 11px;
	line-height: 1.6em;
	margin-top: 10px;
	margin-bottom: 10px;
	text-align: left;
	color: #fff;
}

.footer-explanation .footer-explanation-img {
	width: 70px;
	min-width: 70px;
	height: 70px;
	background-color: #fff;
	margin-right: 16px;
	padding: 5px;
}

.footer-explanation .footer-explanation-img img {
	aspect-ratio: 1;
	object-fit: contain;
	max-width: 100%;
	height: initial;
	width: initial;
}

.common-link-nav .common-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.common-link-nav .common-link-list .item {
	margin: 0 6px;
}

@media (max-width: 1376px) {
	.footer-explanation-wrapper {
		grid-template-columns: 1fr;
		width: 92%;
		grid-gap: 8px 24px;
	}

	.footer-genre-nav__item:not(:last-child)::after {
		display: none;
	}

	.footer-genre-nav__list {
		gap: 10px 16px;
	}
}
