/**
 * Full-bleed end footer (outside center canvas).
 * Structure inspired by minna-no-ginko: after 3-col stage, footer spans the full viewport.
 */

.site-end-footer {
	background: #0a0a0a;
	color: #fff;
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
	font-family: Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.site-end-footer a {
	color: inherit;
	text-decoration: none;
}

.site-end-footer__inner {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 56px 0 40px;
}

.site-end-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 36px;
	border-bottom: 1px solid #333;
}

.site-end-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.site-end-footer__mark {
	width: 52px;
	height: 52px;
	background: transparent;
	display: block;
	flex-shrink: 0;
	overflow: hidden;
}

.site-end-footer__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.site-end-footer__brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.site-end-footer__brand-text strong {
	font-size: 18px;
	letter-spacing: -0.06em;
	font-weight: 900;
	line-height: 1.2;
}

.site-end-footer__brand-text small {
	font-size: 11px;
	color: #aaa;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.site-end-footer__products {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 12px;
	justify-content: flex-end;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 560px;
}

.site-end-footer__product {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	padding: 16px 44px 16px 16px;
	color: #111 !important;
	line-height: 1.25;
}

.site-end-footer__product small {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.site-end-footer__product strong {
	display: block;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.3;
}

.site-end-footer__product > span {
	position: absolute;
	right: 14px;
	bottom: 12px;
	font-size: 18px;
	font-weight: 600;
}

.site-end-footer__product--light {
	background: #fff;
	border: 1px solid #fff;
}

.site-end-footer__product--light:hover {
	background: #f3f3f3;
}

.site-end-footer__product--acid {
	background: #eaff00;
	border: 1px solid #eaff00;
}

.site-end-footer__product--acid:hover {
	filter: brightness(0.96);
}

.site-end-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 28px;
	padding: 42px 0 48px;
	border-bottom: 1px solid #333;
}

.site-end-footer__caption {
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.08em;
	color: #888;
}

.site-end-footer__col > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.site-end-footer__col > ul > li > a strong,
.site-end-footer__col > ul > li > strong {
	display: block;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.45;
	margin-bottom: 8px;
}

.site-end-footer__col > ul > li > a:hover strong {
	color: #eaff00;
}

.site-end-footer__col ul ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.site-end-footer__col ul ul a {
	font-size: 12px;
	font-weight: 600;
	color: #cfcfcf;
	line-height: 1.5;
	padding-left: 12px;
	position: relative;
}

.site-end-footer__col ul ul a::before {
	content: "–";
	position: absolute;
	left: 0;
	color: #777;
}

.site-end-footer__col ul ul a:hover {
	color: #fff;
}

.site-end-footer__corp {
	padding: 36px 0 28px;
}

.site-end-footer__corp-brand {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -0.1em;
	margin-bottom: 14px;
}

.site-end-footer__corp-brand span {
	font-size: 12px;
	letter-spacing: 0;
	margin-left: 8px;
	font-weight: 800;
	vertical-align: middle;
}

.site-end-footer__corp p {
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.7;
	color: #bdbdbd;
	font-weight: 500;
	max-width: 36em;
}

.site-end-footer__meta {
	font-size: 10px !important;
	letter-spacing: 0.12em !important;
	color: #888 !important;
	font-weight: 800 !important;
}

.site-end-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
	border-top: 1px solid #2a2a2a;
}

.site-end-footer__bottom small {
	font-size: 11px;
	color: #888;
	font-weight: 600;
}

.site-end-footer a.site-end-footer__top-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #111 !important;
	display: grid;
	place-items: center;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	flex-shrink: 0;
}

.site-end-footer a.site-end-footer__top-btn span {
	color: #111;
	display: block;
	transform: translateY(-1px);
}

.site-end-footer a.site-end-footer__top-btn:hover {
	background: #eaff00;
	color: #111 !important;
}

/* Hide old in-canvas footers / ribbons when wide footer is used */
body.top-center .phone-footer,
body.works-center .inner-footer,
body.top-center .bottom-ribbon,
body.works-center .below-stage {
	display: none !important;
}

@media (max-width: 960px) {
	.site-end-footer__nav {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}
}

@media (max-width: 720px) {
	.site-end-footer__inner {
		width: calc(100% - 40px);
		padding: 44px 0 36px;
	}

	.site-end-footer__top {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}

	.site-end-footer__products {
		max-width: none;
		width: 100%;
	}

	.site-end-footer__nav {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 32px 0 36px;
	}

	.site-end-footer__corp-brand {
		font-size: 24px;
	}
}

/* Sticky rails used a 580px minimum and a 146px offset, so on a
   shorter window the lower cards and the consult button sat below
   the viewport and never scrolled into view. */
.desktop-rail,
.side-rail {
	top: 120px;
	height: auto !important;
	min-height: 0 !important;
	max-height: calc(100vh - 152px) !important;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
.desktop-rail .rail-content {
	margin-top: 24px;
}
/* The rail caption sat on the full column, so it hung past the
   consult button. Keep it inside the same width, with a gap. */
.desktop-rail .rail-small {
	margin: 14px 0 0;
}
.desktop-rail .rail-content .rail-bottom {
	display: block;
	width: 100%;
	margin: 16px 0 0;
}
