/* 新版トップページと独立ページで共有するフッターです。 */
.bnk-shared-footer-scope,
.bnk-shared-footer-scope :where(a, div, footer, img, li, nav, p, small, span, strong, svg, ul),
.bnk-shared-footer-scope :where(a, div, footer, img, li, nav, p, small, span, strong, svg, ul)::before,
.bnk-shared-footer-scope :where(a, div, footer, img, li, nav, p, small, span, strong, svg, ul)::after {
	all: revert;
	box-sizing: border-box;
}

.bnk-shared-footer-scope {
	--bnk-green: #00a78d;
	--bnk-green-dark: #087b70;
	--bnk-ink: #173c48;
	--bnk-line: #d7e8e4;
	padding: 70px 0 55px;
	background: #0d3f4c;
	color: #d8e5e7;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

.bnk-shared-footer-scope *,
.bnk-shared-footer-scope *::before,
.bnk-shared-footer-scope *::after {
	box-sizing: border-box;
}

.bnk-shared-footer-scope .bnk-shell {
	width: min(1180px, calc(100% - 48px));
	margin-right: auto;
	margin-left: auto;
}

.bnk-shared-footer-scope a,
.bnk-shared-footer-scope a:link,
.bnk-shared-footer-scope a:visited {
	color: inherit;
	text-decoration: none;
}

.bnk-shared-footer-scope a:focus-visible {
	outline: 3px solid rgba(142, 227, 211, .45);
	outline-offset: 3px;
}

.bnk-site-footer__top {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	gap: 70px;
}

.bnk-footer-brand > a {
	display: flex;
	align-items: center;
	gap: 13px;
	color: #fff;
}

.bnk-footer-brand img {
	display: block;
	width: 58px;
	height: 58px;
	max-width: none;
	object-fit: contain;
}

.bnk-footer-brand span {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.bnk-footer-brand small {
	color: #d8e5e7;
	font-size: 12px;
}

.bnk-footer-brand strong {
	color: #fff;
	font-size: 16.64px;
	font-weight: 700;
}

.bnk-footer-brand > div {
	margin-top: 20px;
	color: #abc2c6;
	font-size: 12.8px;
}

.bnk-footer-brand > div p {
	margin: 0;
}

.bnk-footer-brand > p {
	display: flex;
	gap: 12px;
	margin: 18px 0 0;
}

.bnk-footer-brand > p a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.16px;
	font-weight: 750;
}

.bnk-footer-brand > p svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.bnk-footer-nav__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnk-footer-nav__list > li {
	margin: 0;
	padding: 0;
}

.bnk-footer-nav__list > li > a {
	display: block;
	margin-bottom: 13px;
	color: #fff;
	font-size: 13.28px;
	font-weight: 800;
}

.bnk-footer-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnk-footer-nav .sub-menu li {
	margin: 0 0 7px;
	padding: 0;
}

.bnk-footer-nav .sub-menu a {
	display: inline-block;
	color: #a9c1c5;
	font-size: 12px;
	white-space: nowrap;
	transition: color .2s, transform .2s;
}

.bnk-footer-nav .sub-menu a:hover,
.bnk-footer-nav .sub-menu a:focus-visible {
	color: #fff;
	transform: translateX(3px);
}

/* 旧テーマの li:hover 指定を遮断し、リンク単位の操作感へ統一します。 */
.bnk-shared-footer-scope .bnk-footer-nav li,
.bnk-shared-footer-scope .bnk-footer-nav li:hover,
.bnk-shared-footer-scope .bnk-footer-nav li:focus-within {
	background: transparent !important;
	box-shadow: none !important;
}

.bnk-shared-footer-scope .bnk-footer-nav__list > li > a,
.bnk-shared-footer-scope .bnk-footer-nav__list > li:hover > a,
.bnk-shared-footer-scope .bnk-footer-nav__list > li:focus-within > a {
	background: transparent !important;
	color: #fff !important;
}

.bnk-shared-footer-scope .bnk-footer-nav .sub-menu a,
.bnk-shared-footer-scope .bnk-footer-nav .sub-menu li:hover a:not(:hover),
.bnk-shared-footer-scope .bnk-footer-nav .sub-menu li:focus-within a:not(:focus-visible) {
	background: transparent !important;
	color: #a9c1c5 !important;
}

.bnk-shared-footer-scope .bnk-footer-nav .sub-menu a:hover,
.bnk-shared-footer-scope .bnk-footer-nav .sub-menu a:focus-visible {
	background: transparent !important;
	color: #fff !important;
}

.bnk-site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 42px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.bnk-site-footer__bottom small,
.bnk-site-footer__bottom a {
	color: #8fabaf;
	font-size: 12px;
}

.bnk-site-footer__bottom p {
	display: flex;
	gap: 18px;
	margin: 0;
}

.bnk-site-footer__bottom a:hover,
.bnk-site-footer__bottom a:focus-visible {
	color: #fff;
}

.bnk-simulation-shared-layout .bnk-shared-footer-scope {
	margin-top: 56px;
}

/* 旧テーマは処理を残したまま、共有フッター表示中だけ視覚要素を退避します。 */
.bnk-shared-footer-active #footer,
.bnk-shared-footer-active .footer_main,
.bnk-shared-footer-active .copr,
.bnk-shared-footer-active #return_top,
.bnk-shared-footer-active .scrolltotop {
	display: none !important;
}

@media (max-width: 1080px) {
	.bnk-footer-nav__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bnk-shared-footer-scope {
		padding: 60px 0;
	}

	.bnk-home-v2-page .bnk-shared-footer-scope,
	.bnk-shared-contact-active .bnk-shared-footer-scope {
		padding-bottom: 122px;
	}

	.bnk-shared-footer-scope .bnk-shell {
		width: calc(100% - 32px);
	}

	.bnk-site-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.bnk-footer-brand,
	.bnk-footer-brand > a {
		min-width: 0;
	}

	.bnk-footer-nav__list {
		grid-template-columns: 1fr 1fr;
		gap: 26px 18px;
	}

	.bnk-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.bnk-site-footer__bottom p {
		flex-wrap: wrap;
	}
}

@media (max-width: 420px) {
	.bnk-footer-nav__list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bnk-shared-footer-scope *,
	.bnk-shared-footer-scope *::before,
	.bnk-shared-footer-scope *::after {
		transition-duration: .01ms !important;
	}
}
