/*
 * Footer Menu Custom Styles
 * カスタムフッターメニューのスタイル
 */

/* ============================================
   Footer Menu Layout - Flex配置
   ============================================ */
.footerMenu__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 80px;
}

@media (max-width: 767px) {
	.footerMenu__wrapper {
		flex-direction: column;
		margin-bottom: 0;
	}
}

.footerMenu__main,
.footerMenu__policies {
	flex: 0 0 auto;
}

@media (max-width: 767px) {

	.footerMenu__main,
	.footerMenu__policies {
		width: 100%;
		margin-bottom: 15px;
	}
}

/* ============================================
   Policies Menu - Basic Styles
   ============================================ */
.footerMenu__policies nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footerMenu__policies .menu-item {
	position: relative;
	margin-bottom: 0;
}

.footerMenu__policies nav>ul>.menu-item {
	display: inline-block;
}

@media (max-width: 767px) {
	.footerMenu__policies nav>ul>.menu-item {
		display: block;
	}
}

/* Parent menu item (Policies label & links) */
.footerMenu__policies .menu-item>a,
.footerMenu__policies .menu-item>.policies-label {
	display: block;
	padding: 10px 15px;
	text-decoration: none;
	color: inherit;
}

@media (max-width: 767px) {

	.footerMenu__policies .menu-item>a,
	.footerMenu__policies .menu-item>.policies-label {
		padding: 0;
	}

	.footerMenu__policies .menu-item>.policies-label {
		margin-bottom: 6px;
	}
}

/* ============================================
   Sub-menu (Dropdown)
   ============================================ */
.footerMenu__policies .menu-item-has-children>.sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.footerMenu__policies .menu-item-has-children>.sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: none;
		padding: 0;
	}
}

/* Show sub-menu on hover */
.footerMenu__policies .menu-item-has-children:hover>.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Sub-menu items */
.footerMenu__policies .sub-menu .menu-item {
	display: block;
	float: none;
	width: 100%;
	font-size: 12px;
}

.footerMenu__policies .sub-menu .menu-item>a {
	display: block;
	width: 100%;
	padding: 8px 12px;
	white-space: nowrap;
	border: none;
}

@media (max-width: 767px) {
	.footerMenu__policies .sub-menu .menu-item>a {
		padding: 0;
	}
}

.footerMenu__policies .sub-menu .menu-item>a:hover {
	background-color: #f5f5f5;
}