/* ===========================================
   Site Footer — QuantarisLab
   =========================================== */

:root {
	--footer-main-bg:    #f8f8f8;
	--footer-bottom-bg:  #2c2c2c;
	--footer-text:       #333;
	--footer-text-light: #666;
	--footer-white:      #fff;
	--footer-primary:    #2c5f8a;
	--footer-border:     rgba(0, 0, 0, 0.08);
}

/* -------------------------
   Footer base
   ------------------------- */
.site-footer {
	width: 100%;
}

/* -------------------------
   Upper section (2 columns)
   ------------------------- */
.footer-main {
	background-color: var(--footer-main-bg);
	border-top: 1px solid var(--footer-border);
	padding: 64px 0 48px;
}

.footer-main-inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 64px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

/* ---- Column 1: Brand ---- */
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-brand .custom-logo-link {
	display: inline-block;
}

.footer-brand .custom-logo-link img {
	height: 32px;
	width: auto;
	display: block;
}

.footer-site-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--footer-text);
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-site-name:hover {
	color: var(--footer-primary);
}

/* Company info / address */
.footer-company-info {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-company-name {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--footer-text);
	margin: 0;
}

.footer-company-info p {
	font-size: 0.8rem;
	color: var(--footer-text-light);
	line-height: 1.6;
	margin: 0;
}

.footer-company-info a {
	color: var(--footer-text-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-company-info a:hover {
	color: var(--footer-primary);
}

/* ---- Column 2: Nav area ---- */
.footer-nav-area {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ---- Sitemap grid: TOP | VISION | PROJECT | ABOUT US | CONTACT ---- */
.footer-sitemap {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px;
}

.footer-sitemap-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-sitemap-main {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--footer-text);
	text-decoration: none;
	letter-spacing: 0.05em;
	line-height: 1;
	transition: color 0.2s ease;
}

.footer-sitemap-main:hover {
	color: var(--footer-primary);
}

.footer-sitemap-ja {
	font-size: 0.7rem;
	color: #999;
	letter-spacing: 0.04em;
	line-height: 1;
	margin-bottom: 6px;
}

/* Sub-links (e.g. under PROJECT) */
.footer-sitemap-sub {
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-sitemap-sub a {
	font-size: 0.78rem;
	color: var(--footer-text-light);
	text-decoration: none;
	transition: color 0.2s ease;
	line-height: 1.4;
}

.footer-sitemap-sub a::before {
	content: '– ';
	color: #bbb;
}

.footer-sitemap-sub a:hover {
	color: var(--footer-primary);
}

/* ---- NEWS-related row ---- */
.footer-nav-news {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-top: 8px;
	border-top: 1px solid var(--footer-border);
}

.footer-nav-news a {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--footer-text);
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.2s ease;
}

.footer-nav-news a:hover {
	color: var(--footer-primary);
}

/* ---- Utility row: secondary links + SNS ---- */
.footer-utility {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	border-top: 1px solid var(--footer-border);
}

.footer-utility-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

.footer-utility-links a {
	font-size: 0.78rem;
	color: var(--footer-text-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-utility-links a:hover {
	color: var(--footer-primary);
}

/* SNS icons */
.footer-sns-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sns-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.06);
	color: var(--footer-text);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sns-icon-link:hover {
	color: var(--footer-white);
}

.sns-icon-link--youtube:hover {
	background-color: #ff0000;
}

.sns-icon-link--x:hover {
	background-color: #000;
}

.sns-icon-link svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* -------------------------
   Copyright bar (bottom) — centered, no extra padding
   ------------------------- */
.footer-bottom {
	background-color: var(--footer-bottom-bg);
	padding: 16px 0;
}

.footer-copyright {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.65);
	text-align: center;
	margin: 0;
	padding: 0 40px;
}

/* -------------------------
   Responsive (SP: stack vertically)
   ------------------------- */
@media (max-width: 1023px) {
	.footer-sitemap {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.footer-main {
		padding: 48px 0 40px;
	}

	.footer-main-inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 20px;
	}

	.footer-sitemap {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.footer-nav-news {
		flex-wrap: wrap;
		gap: 16px;
	}

	.footer-utility {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.footer-utility-links {
		flex-wrap: wrap;
		gap: 12px;
	}

	.footer-copyright {
		padding: 0 20px;
	}
}
