@charset "utf-8";

/*----------------------------------------------------------------------> ▼ .control <----------*/

.control {
	display: flex;
	justify-content: center;
}

/*----------------------------------------------------------------------> ▼ .transition <----------*/

button {
	position: relative;
	background: #fff;
}

button:before {
	content: '';
	display: block;
	position: absolute;
	top: calc((100% - 25px) / 2);
	width: 25px;
	height: 25px;
	opacity: 0;
}

.submit,
.back_form {
	width: 300px;
	max-width: calc((100% - 15px) / 2);
	line-height: var(--form_height);	
	border-radius: var(--border_radius);
	font-family: YuGo-B;
	text-align: center;
}

.submit {	
	border: 1px solid var(--blue);
	color: var(--blue);
}

.back_form {
	margin-right: 15px;
	border: 1px solid var(--red);
	color: var(--red);
}

@media (768px <= width) {
	.back_form,
	.submit {
		transition: var(--transition);
	}

}

@media (width <= 767px) {
	.back_form {
		margin-top: ;
	}
}

@media (hover: hover) and (pointer: fine) {	
	button::before,
	.submit,
	.back_form {
		transition: var(--transition);
	}

	.submit:hover,
	.back_form:hover {
		color: #fff;
	}

	.submit:hover {
		padding-right: ;
		background: var(--blue);
	}
	
	.submit::before {
		right: 0;
	}
	
	.submit:hover::before {
		right: 30px;
		background: url(//general.t-mec/asset/image/icon/cursor_right_fff.png) center / cover;
	}
	
	.back_form:hover {
		padding-left: ;
		background: var(--red);
	}

	.back_form::before {
		left: 0;
	}
	
	.back_form:hover::before {
		left: 30px;
		background: url(//general.t-mec/asset/image/icon/cursor_left_fff.png) center / cover;
	}

	button:hover::before {
		opacity: 0;
	}
}

/*----------------------------------------------------------------------> ▼ .error <----------*/

.error {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--red);
	border-radius: var(--border_radius);
	padding: 15px;
}

.error li {
	width: 100%;
	color: var(--red);
}

.error li::before {
	content: '× ';
}

.error a {
	color: var(--red);
}

@media (hover: hover) and (pointer: fine) {
	.error a {
		transition: var(--transition);
	}
	
	.error a:hover {
		border-bottom: 1px solid var(--red);
	}
}
