/* =========================================
   Import Fonts from Google
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* =========================================
   Footer Base & Structure
   ========================================= */
.custom-footer {
	background-color: #004B93;
	color: #ffffff;
	font-family: "Noto Sans JP", sans-serif;
	line-height: 1.6;
}

.custom-footer a {
	color: #dddddd;
	text-decoration: none;
	transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.custom-footer a:hover,
.custom-footer a:focus {
	color: #ffffff;
}

.custom-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-footer .footer-main-area {
	padding: 70px 0 50px 0;
}

.custom-footer .footer-container,
.custom-footer .bottom-bar-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	box-sizing: border-box;
}

.custom-footer .footer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
}

.custom-footer .footer-column {
	flex: 1 1 240px;
	box-sizing: border-box;
}

.custom-footer .footer-title {
	color: #ffffff;
	font-size: 1.3rem;
	margin-bottom: 25px;
	font-weight: 600;
	position: relative;
	padding-bottom: 12px;
}

.custom-footer .footer-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 50px;
	height: 3px;
	background-color: #ffffff;
	border-radius: 2px;
}

.custom-footer .footer-logo {
	margin-bottom: 20px;
}

.custom-footer .footer-logo img {
	width: 100% !important;
	max-width: 380px !important;
	height: auto !important;
	display: block;
	object-fit: contain;
	transition: max-width 0.3s ease;
}

.custom-footer .company-description {
	color: #e0e0e0;
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 20px;
}

/* =========================================
   COLUMN 1: Brand & Socials
   ========================================= */
.custom-footer .footer-social-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-top: 25px;
}

.custom-footer .social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background-color: transparent;
	color: #ffffff !important;
	cursor: pointer;
	transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.custom-footer .social-icon i {
	font-size: 20px;
	transition: transform 0.35s ease, color 0.35s ease;
}

.custom-footer .social-icon.brand-line i {
	font-size: 24px;
}

.custom-footer .social-icon.brand-facebook i {
	transform: scaleX(0.95);
}

.custom-footer .social-icon.tiktok-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
	transition: transform 0.35s ease, fill 0.35s ease;
}

.custom-footer .social-icon:hover {
	background-color: #ffffff;
	transform: translateY(-4px) scale(1.08);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.custom-footer .social-icon.brand-facebook:hover { color: #1877F2 !important; }
.custom-footer .social-icon.brand-tiktok:hover   { color: #000000 !important; }
.custom-footer .social-icon.brand-line:hover     { color: #06C755 !important; }

/* =========================================
   COLUMN 2: Quick Links
   ========================================= */
.custom-footer .footer-links {
	display: flex;
	justify-content: center;
}

.custom-footer .footer-links-inner {
	text-align: left;
}

.custom-footer .footer-menu li {
	margin-bottom: 12px;
}

.custom-footer .footer-menu a {
	display: inline-block;
	font-size: 1rem;
	position: relative;
	padding-left: 0;
}

.custom-footer .footer-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background-color: #ffffff;
	transition: width 0.3s ease-in-out;
}

.custom-footer .footer-menu a:hover::after,
.custom-footer .footer-menu a:focus::after {
	width: 100%;
}

/* Hide duplicate Polylang menu item injected into Quick Links */
.custom-footer .footer-links .pll-parent-menu-item {
	display: none !important;
}

/* =========================================
   COLUMN 3: Languages
   ========================================= */
.custom-footer .footer-languages {
	display: flex;
	justify-content: center;
}

.custom-footer .footer-languages-inner {
	text-align: left;
}

.custom-footer .footer-lang-list li {
	margin-bottom: 12px;
}

.custom-footer .footer-lang-item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	position: relative;
}

.custom-footer .footer-lang-item a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background-color: #ffffff;
	transition: width 0.3s ease-in-out;
}

.custom-footer .footer-lang-item a:hover::after,
.custom-footer .footer-lang-item a:focus::after {
	width: 100%;
}

.custom-footer .footer-lang-item.current-lang a {
	color: #ffffff;
	font-weight: 700;
}

.custom-footer .footer-lang-item .lang-flag img {
	width: 18px;
	height: auto;
	display: block;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* =========================================
   COLUMN 4: Contact & Connect
   ========================================= */
.custom-footer .footer-contact-social {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.custom-footer .footer-contact-social .footer-title::after {
	left: auto;
	right: 0;
}

.custom-footer .contact-list {
	width: 100%;
	margin-bottom: 25px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.custom-footer .contact-list li {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	margin-bottom: 18px;
	font-size: 1rem;
	color: #e0e0e0;
	text-align: right;
}

.custom-footer .contact-phone {
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.custom-footer .contact-phone .phone-link {
	font-size: 18px;
	font-weight: 900;
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.8);
	text-underline-offset: 4px;
	transition: text-decoration-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;
	display: inline-block;
}

.custom-footer .contact-phone .phone-link:hover,
.custom-footer .contact-phone .phone-link:focus {
	text-decoration-color: #ffffff;
	opacity: 1;
	color: #E6E6E6;
}

.custom-footer .contact-website a {
	font-size: 18px;
	font-weight: 900;
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.8);
	text-underline-offset: 4px;
	transition: text-decoration-color 0.3s ease, opacity 0.3s ease;
}

.custom-footer .contact-website a:hover {
	text-decoration-color: #ffffff;
	opacity: 1;
}

/* =========================================
   Footer Bottom Bar
   ========================================= */
.custom-footer .footer-bottom-bar {
	background-color: #00366b;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .bottom-bar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.custom-footer .footer-copyright p,
.custom-footer .footer-creator p {
	margin: 0;
	font-size: 0.95rem;
	color: #cccccc;
}

.custom-footer .creator-wrap {
	position: relative;
	display: inline-block;
	cursor: pointer;
	margin-left: 5px;
	text-decoration: none;
	color: inherit;
}

.custom-footer .creator-name {
	color: #ffffff;
	font-weight: 700;
	transition: opacity 0.3s ease;
}

.custom-footer .creator-role {
	position: absolute;
	left: 0;
	top: 0;
	color: #ffffff;
	font-weight: 700;
	opacity: 0;
	white-space: nowrap;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.custom-footer .creator-wrap:hover .creator-name {
	opacity: 0;
}

.custom-footer .creator-wrap:hover .creator-role {
	opacity: 1;
}

/* =========================================
   Responsive Styles
   ========================================= */

/* Tablet (Max-width 1024px): 2-column grid layout */
@media (max-width: 1024px) {
	.custom-footer .footer-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	/* Row 1: Brand Logo & Socials */
	.custom-footer .footer-brand {
		grid-column: 1 / -1;
	}

	/* Row 2: Quick Links (Left) and Languages (Right) side-by-side */
	.custom-footer .footer-links {
		grid-column: 1 / 2;
		justify-content: flex-start;
	}

	.custom-footer .footer-links-inner {
		text-align: left;
	}

	.custom-footer .footer-languages {
		grid-column: 2 / 3;
		justify-content: flex-start;
	}

	.custom-footer .footer-languages-inner {
		text-align: left;
	}

	/* Row 3: Contact & Connect */
	.custom-footer .footer-contact-social {
		grid-column: 1 / -1;
		align-items: flex-start;
		text-align: left;
	}

	.custom-footer .footer-contact-social .footer-title::after {
		left: 0;
		right: auto;
	}

	.custom-footer .footer-social-icons {
		justify-content: flex-start;
	}

	.custom-footer .contact-list {
		align-items: flex-start;
	}

	.custom-footer .contact-list li {
		justify-content: flex-start;
		align-items: flex-start;
		text-align: left;
	}

	.custom-footer .contact-phone {
		align-items: flex-start;
	}
}

/* Mobile (Max-width 600px): 2 Columns for Links & Languages */
@media (max-width: 600px) {
	.custom-footer .footer-main-area {
		padding: 50px 0 30px 0;
	}

	.custom-footer .footer-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px 20px;
	}

	/* Row 1: Brand Logo & Socials */
	.custom-footer .footer-brand {
		grid-column: 1 / -1;
	}

	.custom-footer .footer-logo img {
		max-width: 220px !important;
		margin: 0;
	}

	.custom-footer .company-description {
		text-align: left;
	}

	.custom-footer .footer-social-icons {
		justify-content: flex-start;
	}

	/* Row 2: Quick Links (Col 1) & Languages (Col 2) side-by-side */
	.custom-footer .footer-links {
		grid-column: 1 / 2;
		justify-content: flex-start;
	}

	.custom-footer .footer-links-inner {
		text-align: left;
		width: 100%;
	}

	.custom-footer .footer-languages {
		grid-column: 2 / 3;
		justify-content: flex-start;
	}

	.custom-footer .footer-languages-inner {
		text-align: left;
		width: 100%;
	}

	/* Row 3: Contact & Connect */
	.custom-footer .footer-contact-social {
		grid-column: 1 / -1;
		align-items: flex-start;
		text-align: left;
		width: 100%;
	}

	.custom-footer .footer-contact-social .footer-title::after {
		left: 0;
		right: auto;
	}

	.custom-footer .contact-list {
		align-items: flex-start;
		width: 100%;
	}

	.custom-footer .contact-list li {
		justify-content: flex-start;
		align-items: flex-start;
		text-align: left;
		width: 100%;
	}

	.custom-footer .contact-phone {
		align-items: flex-start;
	}

	.custom-footer .contact-website,
	.custom-footer .contact-email,
	.custom-footer .contact-location {
		justify-content: flex-start;
		text-align: left;
	}

	.custom-footer .bottom-bar-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		text-align: left;
	}

	.custom-footer .footer-copyright,
	.custom-footer .footer-creator {
		text-align: left;
		width: 100%;
	}
}