/* ========================
   COMMON PARTS
========================== */
/* ======== Header ======== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
	background: transparent;
	border-bottom: 1px solid rgba(var(--white-rgb), .2);
	transition: background .3s ease;
	z-index: 1000;
}
.header.scrolled {
	background: var(--white);
	border-bottom: 1px solid rgba(var(--dark-rgb), .1);
	box-shadow: 0 2px 10px rgba(var(--black-rgb), .05);
}

/* Agentec Logo */
.logo a {
	position: relative;
	display: block;
}
.logo img {
	height: 36px;
	transition: opacity .3s ease;
}
.logo img:first-child {
	opacity: 1;
}
.logo:not(.mobile-logo) img:last-child {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}
.header.scrolled .logo img {
	height: 32px;
}
.header.scrolled .logo img:first-child {
	opacity: 0;
}
.header.scrolled .logo img:last-child {
	opacity: 1;
}

.header-logo {
	display: block;
}
.mobile-logo {
	display: none;
}

/* Navigation For Desktop */
.navigation {
	display: flex;
	align-items: center;
}
.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}
.nav-links li {
	display: inline-block;
	position: relative;
}
.nav-links a {
	text-decoration: none;
	color: var(--white);
	font-size: 1.6rem;
	transition: all .3s ease-in-out;
	position: relative;
}
.nav-links a:hover {
	font-weight: 700;
}
.header.scrolled .nav-links a {
	color: var(--dark);
}

/* Header For Mobiles */
.mobile-header {
	display: none;
	position: relative;
	width: 100%;
	padding: 2rem;
	justify-content: space-between;
	align-items: center;
}

/* Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 3rem;
	height: 2rem;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}
.menu-toggle span {
	display: block;
	width: 100%;
	height: 0.1rem;
	background: var(--white);
	transition: transform .3s ease;
}
.header.scrolled .menu-toggle span {
	background: var(--dark);
}

/* Close Button */
.close-menu {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: transparent;
	border: 1px solid rgba(var(--white-rgb), .2);
	cursor: pointer;
}
.close-menu span {
	position: absolute;
	width: 2rem;
	height: 0.1rem;
	background: var(--white);
	transition: transform .75s ease;
}
.close-menu span:first-child {
	transform: rotate(-45deg);
}
.close-menu span:last-child {
	transform: rotate(45deg);
}
.navigation.open .close-menu span:first-child {
	transform: rotate(45deg);
}
.navigation.open .close-menu span:last-child {
	transform: rotate(-45deg);
}

/* Social Media Links (Mobile Only) */
.social-media {
	display: none;
	width: 100%;
	margin: 2rem 0;
	text-align: center;
	color: var(--white);
}
.social-media-title {
	display: block;
	width: 100%;
	text-align: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(var(--white-rgb), .1);
}
.social-media-icons {
	display: flex;
	justify-content: center;
	gap: 1.6rem;
	width: 100%;
	margin-top: 2rem;
}
.social-media-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border: none;
	background: var(--white);
	border-radius: 50%;
	text-decoration: none;
}
.social-media-icons a img {
	width: 1.4rem;
	height: 1.4rem;
}

/* Mega Menu and Dropdowns */
.has-children {
	position: relative;
}
.dropdown-toggle {
	position: absolute;
	top: .5rem;
	right: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 2;
}
.dropdown-toggle span {
	position: absolute;
	background-color: var(--white);
	transition: all .3s ease;
}
.dropdown-toggle span:first-child {
	width: 1.8rem;
	height: .1rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform .3s ease, opacity .3s ease;
}
.dropdown-toggle span:last-child {
	width: .1rem;
	height: 1.8rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform .3s ease, opacity .3s ease;
}
.dropdown-toggle.active span:first-child {
	transform: translate(-50%, -50%) rotate(180deg);
	opacity: 0;
}
.dropdown-toggle.active span:last-child {
	transform: translate(-50%, -50%) rotate(270deg);
}
.header.scrolled .dropdown-toggle span {
	background-color: var(--white);
}

.mega-menu {
	position: fixed;
	top: 7rem;
	left: 0;
	width: 100vw;
	background-color: rgba(var(--black-rgb), .9);
	box-shadow: 0 1rem 2rem rgba(var(--black-rgb), .1);
	z-index: 9999;
	border-radius: 0;
	display: none;
	transform-origin: top center;
	transform: scaleY(0);
	transition: transform .3s ease, opacity .3s ease;
}
.mega-menu.show {
	opacity: 1;
	transform: scaleY(1);
}
.mega-menu-inner {
	padding: 5rem 2rem 4rem;
	max-width: 1200px;
	margin: 0 auto;
}
.mega-menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	width: 100%;
}
.mega-menu-item {
	display: flex;
	align-items: flex-start;
	padding: 1.5rem;
	border-radius: 4px;
	transition: background-color .3s ease;
	text-decoration: none;
}
.mega-menu-item:hover {
	background-color: rgba(var(--white-rgb), .1);
}
.header.scrolled .mega-menu-item:hover {
	background-color: rgba(var(--black-rgb), .05);
}
.mega-menu-item-content {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.underline-link {
	position: relative;
	display: inline-block;
	padding-bottom: .4rem;
	overflow: hidden;
}
.underline-link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: .125rem;
	transform: translateX(-101%);
	transition: transform .3s ease;
}
.mega-menu-item:hover .underline-link::after {
	transform: translateX(0);
}

.mega-menu-item-content .underline-link {
	margin-bottom: .6rem;
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 500;
}
.mega-menu-item-content .underline-link::after {
	background-color: var(--white);
}
.header.scrolled .mega-menu-item-content .underline-link {
	color: var(--dark);
}
.header.scrolled .mega-menu-item-content .underline-link::after {
	background-color: var(--dark);
}
.mega-menu-item-desc {
	color: rgba(var(--white-rgb), .7);
	font-size: 1.3rem;
	line-height: 1.4;
}
.header.scrolled .mega-menu-item-desc {
	color: var(--dark);
	font-weight: 400;
}
.mega-menu-item:hover .mega-menu-item-desc,
.mega-menu-item-content:hover .mega-menu-item-desc,
.mega-menu-item-desc:hover {
	font-weight: 400;
}

@media (min-width: 993px) and (max-width: 1239px) {
	.logo img {
		height: 28px;
	}
	.nav-links {
		gap: 1.5rem;
	}
	.nav-links a {
	  font-size: 1.4rem;
	}
}

@media (max-width: 1200px) {
	.mega-menu-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 993px) {
	.nav-links li {
		position: relative;
	}
	.nav-links li::after {
		content: '';
		position: absolute;
		bottom: -0.5rem;
		left: 0;
		width: 0; /* 初期状態では幅0 */
		height: .2rem;
		background-color: var(--white);
		transition: width .3s ease-in-out;
	}
	.nav-links li:hover::after {
		width: 100%;
	}
	.header.scrolled .nav-links li::after {
		 background-color: var(--dark);
	}
	.dropdown-toggle {
		display: none;
	}
	.has-children > a::after {
		content: "\ea4e";
		font-family: 'remixicon';
		display: inline-block;
		margin-left: .5rem;
		font-size: 1.4rem;
		transition: transform .3s ease;
	}
	.has-children {
		display: block;
	}
	.has-children:hover .mega-menu,
	.mega-menu:hover {
		display: block;
	}
	.has-children:hover > a::after {
		transform: rotate(180deg);
	}
	.header.scrolled .mega-menu {
		background-color: rgba(var(--white-rgb), .9);
	}
	.header.scrolled .mega-menu-title {
		color: var(--dark);
		border-bottom: 1px solid rgba(var(--dark-rgb), .25);
	}
	.header.scrolled .mega-menu-list a {
		color: var(--dark) !important;
	}
}

@media (max-width: 992px) {
	body.menu-open {
		overflow: hidden;
	}
	.menu-toggle {
		display: flex;
	}
	.header.menu-active .menu-toggle {
		visibility: hidden;
	}
	.navigation {
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: 100%;
		height: 100vh;
		padding-top: 0;
		background: var(--dark);
		transform: translateX(-100%);
		transition: transform .3s ease;
		z-index: 1002;
		overflow: hidden;
	}

	.navigation.open {
		transform: translateX(0);
	}
	.mobile-header {
		position: sticky;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin-bottom: 2rem;
		padding: 2rem;
		background: var(--dark); 
		border-bottom: 1px solid rgba(var(--white-rgb), .1); 
		z-index: 10;
	}
	.mobile-logo {
		display: block;
	}
	.close-menu {
		display: flex;
	}
	.nav-content-wrapper {
		width: 100%;
		flex: 1;
		/* padding-bottom: 50px; */
		overflow-y: auto;
	}
	.nav-links {
		flex-direction: column;
		gap: 0;
		width: 100%;
		align-items: flex-start;
	}
	.nav-links li {
		width: 100%;
		border-bottom: 1px solid rgba(var(--white-rgb), .2);
	}
	.nav-links li:last-child {
		border-bottom: none;
	}
	.nav-links a {
		display: block;
		padding: 2rem;
		color: var(--white)!important;
		font-size: 1.6rem;
	}
	.mega-menu-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.nav-links .has-children > a {
		display: inline-block;
		width: calc(100% - 50px);
	}

	.mega-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		background-color: transparent;
		border-top: none;
		border-radius: 0;
	}
	.mega-menu-inner {
		padding: 1rem 0;
	}
	.social-media {
		display: block;
	}
	.navigation {
		max-height: 100vh;
		overflow-y: auto !important;
	}
	.nav-links .has-children > a {
		display: inline-block;
		width: calc(100% - 50px);
		
	}
	.mega-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		background-color: transparent;
		border-top: none;
		border-radius: 0;
		display: none !important;
		max-height: none !important;
		overflow: visible !important;
		transform-origin: top center;
		opacity: 0;
		transform: scaleY(0);
		transition: transform .3s ease, opacity .3s ease;
	}
	.mega-menu.show {
		opacity: 1;
		transform: scaleY(1);
	}
	.has-children.active .mega-menu {
		display: block!important;
	}
	.mega-menu-inner {
		flex-direction: column;
		padding: 1rem 0;
	}
	.mega-menu-column {
		padding: 0;
		margin-bottom: 2rem;
	}
	.mega-menu-title {
		padding-left: 2rem;
		color: var(--white);
		border-bottom-color: rgba(var(--white-rgb), .1);
	}
	.mega-menu-list a {
		padding: 1rem 2rem 1rem 4rem;
		color: var(--white) !important;
	}
	.mega-menu-list a:hover {
		color: var(--white) !important;
		background-color: rgba(var(--white-rgb), .5);
	}
	.navigation.open {
		height: 100vh !important;
		max-height: 100vh !important;
		/* padding-bottom: 10rem !important; */
		overflow-y: auto !important;
	}
	.has-children.active .mega-menu {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}
	.header.scrolled .mega-menu-item-content .underline-link {
		color: var(--white);
	}
	.header.scrolled .mega-menu-item-content .underline-link::after {
		background-color: var(--white);
	}
}
@media (max-width: 768px) {
	.mega-menu-grid {
		grid-template-columns: 1fr;
	}
	.mega-menu-item {
		padding: 0 2rem!important;
	}
	.mega-menu-item-content .underline-link {
		padding: 0 1rem!important;
		font-size: 1.6rem;
	}
	.mega-menu-item-desc {
		 display: none;
	}
}
/* ======== Footer ======== */
.footer {
	position: relative;
	padding: 6rem 2rem 2rem;
	color: var(--dark);
	background-color: var(--white);
	overflow: hidden;
	/* border-top: 1px solid rgba(var(--dark-rgb), .2); */
	box-shadow: 0 -2px 10px rgba(var(--black-rgb), .05);
}

.footer .container {
	margin: 0 auto;
	padding: 0 2rem;
}
.footer-logo {
	margin-bottom: 0;
}
.footer-logo img {
	height: 3.2rem;
}

.animated-line {
	position: relative;
	width: 100%;
	height: .1rem;
	margin: 2rem 0 3rem;
	background-color: var(--light-gray);
	overflow: hidden;
}
.animated-line::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: rgba(var(--dark-rgb), .5);
	animation: lineSweep 20s ease-in-out infinite;
}
@keyframes lineSweep {
	0% {
		left: -100%;
	}
	50% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}
.footer-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 0;
}
.footer-company {
	width: 40%;
	margin-bottom: 2rem;
}
.footer-links-wrapper {
	width: 60%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.footer-column {
	width: 30%;
	margin-bottom: 2rem;
}

.footer-company {
	position: relative;
}
.company-info {
	display: block;
	margin-bottom: 1rem;
}
.company-name {
	margin-bottom: 2rem;
	color: var(--dark);
	font-size: 1.6rem;
	font-weight: 600;
}
.company-description {
	max-width: 90%;
	margin-bottom: 2rem;
	font-size: 1.5rem;
	line-height: 1.6;
	color: var(--gray);
}

.info-item {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}
.info-item:last-child {
	margin-bottom: 0;
}
.contact-icon {
	flex-shrink: 0;
	margin-right: 1.5rem;
	color: var(--gray);
	font-size: 2rem;
}
.contact-text {
	font-size: 1.5rem;
	line-height: 1.6;
	color: var(--gray);
}
.contact-text p {
	margin: 0;
	font-size: 1.4rem;
}
.contact-text a {
	color: var(--gray);
	text-decoration: none;
	transition: color .3s ease;
}
.contact-text a:hover {
	color: var(--dark);
}

.certification-logos {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
}
.cert-logo img {
	width: auto;
	height: 4.8rem;
	transition: opacity .3s ease;
}
.cert-logo:hover img {
	opacity: 0.8;
}

/* Footer Columns */
.footer-column-title {
	position: relative;
	display: block;
	margin-bottom: 2.5rem;
	padding-left: 2rem;
	color: var(--dark);
	font-size: 1.8rem;
	font-weight: 600;
	letter-spacing: .1rem;
	text-transform: uppercase;
}
.footer-column-title::before {
	content: "–";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--gray);
	font-weight: 600;
}
.footer-links {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-links li {
	margin-left: 1.2rem;
	margin-bottom: .5rem;
}
.footer-links li .link-base {
	font-weight: 400;
}

/* Social Media Links */
.footer-social-wrapper {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	margin-bottom: 2rem;
}
.footer-social-wrapper .footer-social-media-title {
	display: inline-block;
	text-align: left;
	margin-right: 2rem;
}
.footer-social {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 0;
	padding: 0;
}
.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background-color: var(--light-gray);
	transition: all .3s ease;
}
.social-icon:hover {
	background-color: var(--dark);
	transform: translateY(-0.5rem);
}
.social-icon:hover img {
	filter: brightness(0) invert(1);
}
.social-icon img {
	width: 1.5rem;
	height: 1.5rem;
	transition: filter .3s ease;
}

/* Copyright */
.footer-bottom {
	position: relative;
	padding-top: 2rem;
	text-align: center;
	border-top: 1px solid rgba(var(--dark-rgb), .1);
}
.copyright p {
	margin-bottom: 0;
	font-size: 1.4rem;
	color: var(--gray);
}
.copyright a {
	color: var(--gray);
	text-decoration: none;
	transition: color .3s ease;
}
.copyright a:hover {
	color: var(--dark);
	text-decoration: underline;
}
@media (max-width: 992px) {
	.footer-grid {
		flex-direction: column;
	}
	.footer-company {
		width: 100%;
		margin-bottom: 3rem;
	}
	.footer-links-wrapper {
		width: 100%;
	}
}
@media (max-width: 768px) {
	.footer {
		padding: 4rem 2rem 2rem;
	}
	.animated-line {
		margin: 2rem 0;
	}
	.footer-links-wrapper {
		flex-direction: column;
	}
	.footer-column {
		position: relative;
		width: 100%;
		margin-bottom: 0;
		border-bottom: 1px solid rgba(var(--dark-rgb), .1);
	}
	.footer-column-title {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 2rem;
		margin-bottom: 0;
		font-size: 1.6rem;
		cursor: pointer;
	}
	.footer-column-title::before {
		top: 2rem;
		left: 2rem;
	}
	.footer-grid {
		margin-bottom: 2rem;
	}
	.company-info {
		padding: 0 2rem;
	}
	.certification-logos {
		display: flex;
		gap: 2rem;
		margin-top: 2rem;
		padding: 0 1.5rem
	}
	.cert-logo img {
		width: auto;
		height: 4rem;
		transition: opacity .3s ease;
	}
  .footer-social {
		justify-content: space-around;
		margin: 0;
		padding: 1rem;
	}
	.footer-social .social-icon {
		width: 4rem;
		height: 4rem;
	}
	.footer-social .social-icon img {
		width: 1.8rem;
		height: 1.8rem;
	}
	.footer-bottom {
		text-align: center;
	}
	.copyright {
		text-align: center;
	}

	/* Mobile Dropdowns */
	.footer .dropdown-toggle {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 5rem;
		height: 5rem;
		background: transparent;
		border: none;
		cursor: pointer;
		z-index: 2;
	}
	.footer .dropdown-toggle span {
		position: absolute;
		background-color: var(--dark);
		transition: all .3s ease;
	}
	.footer .dropdown-toggle span:first-child {
		width: 1.8rem;
		height: .1rem;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.footer .dropdown-toggle span:last-child {
		width: .1rem;
		height: 1.8rem;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.footer .dropdown-toggle.active span:last-child {
		transform: translate(-50%, -50%) rotate(90deg);
	}
	.footer-links {
		display: none;
		padding: 2rem 2rem 2rem 3rem;
	}
	.footer-links li {
		margin-left: 0;
		margin-bottom: 1.5rem;
	}
	.footer-column.active .footer-links {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer {
		padding: 4rem 1rem 2rem;
	}
	.company-name {
		font-size: 1.6rem;
	}
	.footer-social-wrapper {
		flex-direction: column;
	}
	.footer-social-wrapper .footer-social-media-title {
		text-align: center;
	}
	.copyright p {
		font-size: 1.4rem;
	}
}

/* ======== Back to Top Button ======== */
.back-to-top {
	position: fixed;
	right: 3rem;
	bottom: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	background-color: var(--dark);
	color: var(--white);
	border: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(1rem);
	transition: all .3s ease;
	z-index: 99;
	cursor: pointer;
}
.back-to-top i {
	font-size: 2.4rem;
}
.back-to-top:hover {
	background-color: rgba(var(--dark-rgb), 0.8);
}
.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.back-to-top {
		right: 2rem;
		bottom: 2rem;
		width: 4.5rem;
		height: 4.5rem;
	}
	.back-to-top i {
		font-size: 2rem;
	}
}

@media (max-width: 576px) {
	.back-to-top {
		right: 1.5rem;
		bottom: 1.5rem;
		width: 4rem;
		height: 4rem;
	}
}

/* ======== Filter for Every Single Image ======== */
.filtered-image {
	filter: saturate(.85) brightness(.9) contrast(.85);
}