/* ==================== detail.css ==================== */

.Factory.detail {
	align-self: center;
	display: flex;
	flex-direction: column;
}

.Factory.detail section {
	align-self: center;
	display: flex;
	flex-direction: column;
}

.Factory.detail .base {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 1.5em auto;
	padding: 0 1.5em 1.5em;
}

.Factory.detail h2 {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-40%);
	text-align: center;
}

.Factory.detail .body {
	display: flex;
	flex-direction: column;
	margin-top: 2em;
}

.Factory.detail video {
	width: 100%;
	border-radius: 0.25em;
}

.Factory.detail .text {
	margin-top: 1em;
}
.Factory.detail .text p {
	margin: 0;
	text-align: justify;
}


@media (max-width: 567px) {

	.Factory.detail .text {
		display: flex;
		flex-direction: column;
	}
	.Factory.detail .text img {
		align-self: flex-end;
	}

}


@media (min-width: 568px) {

	.Factory.detail .base {
		width: 32em;
	}
	.Factory.detail .movie {
		padding-right: 8em;
	}
	
	/* for IE11 */
	.Factory.detail .movie video {
		width: 24em;
		height: 13.505275498242em;
	}

	.Factory.detail .movie {
		background: url(../images/factory/detail_ojisan_kerota.png) no-repeat right bottom;
		background-size: 7em auto;
	}

	.Factory.detail .body .text p {
		padding-right: 1.5em;
		font-size: 75%;
	}

	.Factory.detail .body .text img {
		align-self: flex-end;
	}

}


/* ==================== index.css ==================== */

.Factory .indexMenu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.Factory .indexMenu img[src*="thum"] {
	position: relative;
}

.Factory.detail .indexMenu li {
	opacity: 0.6;
	transform: scale(0.95);
	transition: all 250ms;
}

.Factory.detail .indexMenu li:hover,
.Factory.detail.process1 .indexMenu li:nth-of-type(1),
.Factory.detail.process2 .indexMenu li:nth-of-type(2),
.Factory.detail.process3 .indexMenu li:nth-of-type(3) {
	opacity: 1;
	transform: scale(1);
}


@media (max-width: 567px) {

	.Factory.top .indexMenu ul {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 1.5em;
	}

	.Factory.top .indexMenu li:nth-of-type(n+2) {
		margin-top: 1em;
	}

	.Factory.top .indexMenu li a {
		display: flex;
		align-items: center;
	}

	.Factory.top .indexMenu li:nth-of-type(even) a {
		direction: rtl;
	}

	.Factory.top .indexMenu img {
		margin: 0 -0.5em;
		font-size: 90%;
	}

	.Factory.detail .indexMenu ul {
		display: flex;
	}
	.Factory.detail .indexMenu li a {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0 0.25em;
	}
	.Factory.detail .indexMenu img[src*="title"] {
		margin-top: -0.5em;
	}

}



@media (min-width: 568px) {
	.Factory.top {
		margin: 1.5em auto;
	}

	.Factory .indexMenu ul {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.Factory .indexMenu li {
		margin: 0 0.5em;
	}

	.Factory.top .indexMenu li:nth-of-type(odd) {
		margin-top: 2em;
	}

	.Factory .indexMenu li a {
		display: flex;
		flex-direction: column;
		align-items: center;
	}


	.Factory .indexMenu img[src*="title"] {
		margin-top: -0.75em;
	}

	.Factory.detail .indexMenu img {
		font-size: 75%;
	}
}