@charset "utf-8";

/*----------------------------------------------------------------------> ▼ .smart_menu <--*/

.wrap_smart_menu {
	display: none;
	position: fixed;
	top: 0;
	width: 100%;
	height: 100vh;
	background: rgba(255, 255, 255, 0.9);
	z-index: 5000;

	-ms-overflow-style: none;
	scrollbar-width: none;
}

.wrap_smart_menu::-webkit-scrollbar {
	display: none;
}

.smart_menu {
	width: 400px;
	display: flex;
	flex-wrap: wrap;
	height: fit-content;
	border-top: 1px solid #f0f0f0;
	opacity: 0.7;
}

.smart_menu_category {
	display: none;
	width: 100%;
	text-align: center;
}

.smart_menu a {
	position: relative;
	width: 100%;
	border-bottom: 1px solid #f0f0f0;
	background-repeat: no-repeat;
	background-size: auto 50%;
	font-family: Notosans-M;
}

.smart_menu a::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

@media (501px <= width) {
	.smart_menu a {
		line-height: 80px;
		padding-left: 180px;
		background-position: 100px 25px;
		font-size: 19px;
	}
}

@media (width <= 500px) {
	.smart_menu a {
		line-height: 60px;
		padding-left: 150px;
		background-position: 90px 15px;
		font-size: 18px;
	}
}

@media (width <= 400px) {
	.smart_menu {
		width: 100%;
	}
	
	.smart_menu a {
		line-height: 60px;
		padding-left: 80px;
		background-position: 30px 15px;
		font-size: 18px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.smart_menu a,
	.smart_menu a::before {
		transition: var(--transition);
	}

	.smart_menu a:hover {
		color: var(--theme);
	}
	
	.smart_menu a:hover::before {
		background: #f0f0f0;
	}
}

/*----------> ▼ smart_menu_button <--*/

.smart_menu_button {
	position: absolute;
	top: 10px;
	right: 0;
	width: 60px;
	height: 60px;
	cursor: pointer;
	z-index: 10000;
}

.smart_menu_button div {
	position: absolute;
	width: 30px;
	height: 3px;
	left: 15px;
	border-radius: 50px;
	background: #aaa;
}

.smart_menu_button div:nth-child(1) {
	top: 18px;
}

.smart_menu_button div:nth-child(2) {
	top: 28px;
}

.smart_menu_button div:nth-child(3) {
	top: 38px;
}

.smart_menu_button_active div:nth-child(1) {
	top: 30px;
	transform: rotate(45deg);
}

.smart_menu_button_active div:nth-child(2) {
	display: none;
}

.smart_menu_button_active div:nth-child(3) {
	top: 30px;
	transform: rotate(-45deg);
}

.smart_menu_button, .smart_menu_button:hover div {
	transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
	.smart_menu_button:hover div {
		background: var(--theme);
	}
}

/*----------------------------------------------------------------------> ▼ .side_menu <--*/

.side_menu {
	width: 250px;
	border-right: var(--border);
}

#open_side_menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 15px;
	height: 100vh;
	background: url(/asset/image/icon/open_right_2.png?m=20000101) no-repeat center / contain;
	cursor: pointer;
	/*z-index: 1;*/
}

body.close_side_menu .side_menu {
	width: 15px;
	padding: 0 0px;
}

body.close_side_menu #open_side_menu {
	display: block;
}

body.close_side_menu #open_side_menu~* {
	display: none;
	opacity: 0;
}

.side_menu_body {
	display: none;
}

.side_menu .open + .side_menu_body {
	display: block;
}

.side_menu_title,
.side_menu a {
	padding-left: 55px;
	border-bottom: 1px solid #f0f0f0;
	font-family: NotoSans-M;
}

.side_menu a {
	display: block;
	font-size: 15px;
	line-height: 30px;
	color: #777;
}

.side_menu a.disabled div {
	color: #ccc !important;
}

.side_menu_title {
	position: relative;
	line-height: 55px !important;
	cursor: pointer;

	font-size: 15px;
	color: #666 !important;
}

body.dark .icon_drop_down::after {
	content: "▼";
	position: absolute;
	top: -1px;
	right: 20px;
	font-size: 12px;
}

.side_menu .active {
	color: var(--theme) !important;
}

.side_menu_title {
	background-repeat: no-repeat;
	background-position: 19px 18px;
	background-size: 20px;
}

@media (1280px <= width) {
	.side_menu {
		
	}
}

@media (width <= 1366px) {
	.side_menu {
		width: 210px;
	}
}

@media (width <= 1249px) {
	.side_menu {
		display: none;
	}
}

@media (height <= 768px) {
	.side_menu a {
		line-height: 26px;
	}
	
	.side_menu_title {
		line-height: 42px !important;
		background-position: 19px 10px;
	}	
}

@media (hover: hover) and (pointer: fine) {
	.side_menu,
	.side_menu a,
	.side_menu_title {
		transition: var(--transition);
	}
	
	body.close_side_menu .side_menu:hover {
		background: #ddd;
	}

	.side_menu a:hover, .side_menu_title:hover {
		background-color: var(--theme_hover_light);
	}
}

/*----------------------------------------------------------------------> ▼ .category_menu <--*/

.category_menu div:not(.active), .category_menu form:not(.active) {
	display: none;
}

.category_menu div.active, .category_menu form.active {
	display: flex;
	flex-wrap: wrap;
}

.category_menu a {
	position: relative;
	padding: 15px 15px 15px 30px;
	background: #fff;

	line-height: 1em;
	text-align: left;

	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.category_menu a::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 15px;
	width: 5px;
	height: 1em;
	background: var(--theme);
}

/*
.category_menu button {
	margin: 0 15px 15px 0;
}
*/

@media (1601px <= width) {
	.category_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 90px) / 7);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(6n)),
	body.close_side_menu .category_menu a:not(:nth-child(7n)) {
		margin-right: 15px;
	}
}

@media (1367px <= width <= 1600px) {
	.category_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(5n)),
	body.close_side_menu .category_menu a:not(:nth-child(6n)) {
		margin-right: 15px;
	}	
}

@media (1250px <= width <= 1366px) {
	.category_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body.close_side_menu .category_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body:not(.close_side_menu) .category_menu a:not(:nth-child(4n)),
	body.close_side_menu .category_menu a:not(:nth-child(5n)) {
		margin-right: 15px;
	}	
}

@media (1250px <= width) {
	.category_menu a {
		margin-top: 15px;
		border: var(--border);
		border-radius: var(--border_radius);
	}
}

@media (width <= 1249px) {
	.category_menu {
		position: relative;
		margin: 0 -15px;
		background: #fff;
	}

	.category_menu::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 1px;
		background: #ddd;
	}

	.category_menu a {
		border-bottom: 1px solid #ddd;
		z-index: 1;
	}
}

@media (769px <= width <= 1249px) {
	.category_menu a {
		width: calc(100% / 3);
	}

	.category_menu a:not(:nth-child(3n)) {
		border-right: 1px solid #ddd;
	}
}

@media (width <= 768px) {
	.category_menu a {
		width: calc(100% / 2);		
	}

	.category_menu a:nth-child(odd) {
		border-right: 1px solid #ddd;
	}
}

@media (hover: hover) and (pointer: fine) and (1280px <= width) {
	.category_menu a:not(.disabled) {
		transition: var(--transition);
	}

	.category_menu a:not(.disabled):hover {
		border: 1px solid var(--theme);
	}
}

/*----------------------------------------------------------------------> ▼ .flat_menu <--*/

.flat_menu {
	display: flex;
	flex-wrap: wrap;
}

.flat_menu div:not(.active), .flat_menu form:not(.active) {
	display: none;
}

.flat_menu div.active, .flat_menu form.active {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.flat_menu a {
	position: relative;
	padding: 15px 15px 15px 30px;
	border: 1px solid #ddd;
	border-radius: var(--border_radius);
	background: #fff;
	line-height: 1em;
}

.flat_menu a::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 15px;
	width: 5px;
	height: 1em;
	background: var(--theme);
}

.flat_menu a.disabled {
	border: 1px dashed #ddd;
	color: #aaa;
}

.flat_menu a.disabled::before {
	background: #ccc;
}

@media (1024px <= width) {
	.flat_menu a {
		height: 120px;
		margin-top: 15px;			
	}
}

@media (1601px <= width) {
	.flat_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 75px) / 6);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(5n)),
	body.close_side_menu .flat_menu a:not(:nth-child(6n)) {
		margin-right: 15px;
	}
}

@media (1367px <= width <= 1600px) {
	.flat_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 60px) / 5);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(4n)),
	body.close_side_menu .flat_menu a:not(:nth-child(5n)) {
		margin-right: 15px;
	}	
}

@media (1024px <= width <= 1366px) {
	.flat_menu a {
		width: calc((100% - 30px) / 3);
	}
	
	body.close_side_menu .flat_menu a {
		width: calc((100% - 45px) / 4);
	}
	
	body:not(.close_side_menu) .flat_menu a:not(:nth-child(3n)),
	body.close_side_menu .flat_menu a:not(:nth-child(4n)) {
		margin-right: 15px;
	}	
}

@media (width <= 1023px) {
	.flat_menu {
		margin-top: 10px;
	}
	
	.flat_menu a {
		width: 100%;
		margin-top: 5px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.flat_menu a:not(.disabled) {
		transition: var(--transition);
	}

	.flat_menu a:not(.disabled):hover {
		border: 1px solid var(--theme);
	}
}

/*----------------------------------------------------------------------> ▼ .inline_menu <--*/

.inline_menu {
	display: flex;
}

.inline_menu a,
.inline_menu button,
.inline_menu input[type="submit"] {
	min-width: 65px !important;
	width: auto !important;
	line-height: 16.5px;
	padding: 1px 10px 0.5px;
	border: 1px solid #ccc;
	border-radius: var(--border_radius_light);
	background: #fff;
	text-align: center;
	font-size: 12px;
}

.inline_menu button:nth-of-type(n + 2),
.inline_menu input[type="submit"]:nth-of-type(n + 2),
.inline_menu a:nth-of-type(n + 2) {
	margin-left: 5px;
}
