/* ==================== cmlist.css ==================== */

.CM .cmList ul {
	display: flex;
	margin: 0 auto;
	padding: 0;
	list-style-type: none;
	align-items: center;
	justify-content: center;
}

.CM .cmList ul img.thum {
	position: relative;
}

.CM .cmList ul a img {
	display: block;
	margin: 0 auto;
}

.cmList:not(.top) li img {
	max-width: 94%;
}

.cmList:not(.top) ul img.name {
	margin-top: -10%;
}

.CM .cmList li {
	opacity: 0.6;
	transform: scale(0.95);
	transition: all 250ms;
}

.CM.top .cmList li,
.CM.history .cmList li,
.CM .cmList li:hover,
.CM.oragaharu1974 .cmList li:nth-of-type(1),
.CM.kozaru1982 .cmList li:nth-of-type(2),
.CM.inosisi1982 .cmList li:nth-of-type(3),
.CM.turigane1986 .cmList li:nth-of-type(4),
.CM.kimodamesi1991 .cmList li:nth-of-type(5) {
	opacity: 1;
	transform: none;
}

.CM.top .cmList li:hover,
.CM.history .cmList li:hover {
	transform: scale(1.05);
}


@media (max-width: 567px) {

	/* top */
	.cmList.top ul {
		flex-direction: column;
	}
	.cmList.top li {
		margin: 0.5em 0;
	}
	.cmList.top ul a {
		flex-direction: row;
	}
	.cmList.top ul a img {
		margin: 0 -0.25em;
	}
	.cmList.top li:nth-of-type(even) a {
		direction: rtl;
	}

	/* detail, history */
	.cmList:not(.top) ul {
		flex-wrap: wrap;
	}
	.cmList:not(.top) li {
		margin: 0.25em 0;
		width: 33.333%;
	}
}


@media (min-width: 568px) {

	.cmList:not(.top) {
		width: 42em;
	}

	/* for IE11 */
	.cmList:not(.top) li {
		width: 20%;
	}

	/* top */
	.cmList.top ul {
		flex-wrap: wrap;
		width: 40em;
	}
	.cmList.top li {
		margin: 0.25em 0.5em;
	}
	.cmList.top ul a img.name {
		margin-top: -1em;
	}

}


/* ==================== common.css ==================== */

.CM,
.CM section {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.CM h2 a img {
	transition: transform 250ms;
}
.CM h2 a:hover img {
	transform: scale(1.05);
}

.CM section:nth-of-type(n+2) {
	margin-top: 1.5em;
}

@media (min-width: 568px) {
	.CM:not(.history) section:nth-of-type(1) h2 {
		margin-top: 0;
	}
}


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

.CM.detail .base {
	display: flex;
	flex-direction: column;
	position: relative;
	margin: 1em auto;
}

.CM.detail .base h3 {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	margin-top: 0;
	transform: translateY(-50%);
	text-align: center;
}

.CM.detail .text h4 {
	margin-bottom: 0.25em;
	color: #cf4606;
	font-size: 110%;
}

.CM.detail .text p {
	margin: 0;
	text-align: justify;
}


@media (max-width: 567px) {
	.CM.detail .base {
		padding: 2em 1.5em 1.5em;
	}
	.CM.detail .base .contents {
		margin-top: 1em;
	}
}


@media (min-width: 568px) {
	.CM.detail .base {
		width: 32em;
		padding: 2em 1.5em 1.5em;
	}

	.CM.detail .movie {
		position: relative;
		padding-right: 8em;
	}
	.CM.detail .movie::after {
		content: '';
		display: block;
		position: absolute;
		right: 0;
		bottom: 0;
		width: 7em;
		height: 100%;
		background: url(../images/cm/boya.png) no-repeat right bottom;
		background-size: contain;
	}

	.CM.detail .text h4 {
		font-size: 80%;
	}

	.CM.detail .text p {
		font-size: 75%;
	}
}


/* ==================== history.css ==================== */

.History {
	position: relative;
	box-sizing: border-box;
	box-shadow: 0.4em 0.4em 0 #83c7e3;
	background: white;
}
.History::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0 0 2em #f7eedc inset;
}

.History > * {
	position: relative;
}

.History h2 {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-50%);
	text-align: center;
}
.History h2 img[src*="headimage"] {
	position: absolute;
	right: 0;
	bottom: 0;
}


.History .body {
	width: 100%;
}


.History .head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f2e3c7;
	margin-top: 1.5em;
	padding: 0.75em;
}

.History .head h3 {
	margin: 0;
	color: #6e4000;
	font-size: 100%;
}

.History .head dl {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 75%;
}
.History .head dt:nth-of-type(n+2) {
	margin-left: 1em;
}
.History .head dd {
	margin: 0 0 0 0.25em;
}

.History .cm {
	padding: 1em 0;
}

.History .cm:not(:last-child) {
	border-bottom: 2px dashed #e0cba3;
}

.History .cm .title h4 {
	display: flex;
	align-items: center;
	margin: 0;
}
.History .cm .title h4 .mon {
	font-size: 80%;
	font-weight: normal;
	width: 2.5em;
	text-align: right;
	margin-right: 1em;
}

.History .cm .pic figure {
	margin: 0;
}


/* for IE11 */
.History .cm dl {
	display: -ms-grid;
	-ms-grid-columns: 2em 7em 2em 4em;
}
.History .cm dt.singer {
	-ms-grid-column: 1;
}
.History .cm dd.singer {
	-ms-grid-column: 2;
}
.History .cm dt.time {
	-ms-grid-column: 3;
}
.History .cm dd.time {
	-ms-grid-column: 4;
}

.History .cm dl {
	display: grid;
	grid-template-columns: 2em 7em 2em 4em;
	align-items: center;
	width: 15em;
	margin: 0;
	line-height: 1.3;
}

.History .cm dd {
	margin: 0;
}
.History .cm dd.singer {
}
.History .cm dd.singer small {
	display: block;
}
.History .cm dt.time {
	grid-column: 3;
}
.History .cm dd.time {
	grid-column: 4;
}


@media (max-width: 567px) {

	.History {
		width: 23em;
		margin-top: 3em;
		padding: 1em;
	}
	
	.History h2 img {
		font-size: 55%;
	}

	.History .list .cm {
		display: flex;
		flex-direction: column;
	}

	.History .list .pic {
		margin-top: 1em;
		align-self: center;
	}
	.History .list .pic:empty {
		display: none;
	}

	.History .list .detail {
		margin-top: 1em;
		align-self: flex-end;
	}
	.History .cm dl {
		font-size: 80%;
	}

}


@media (min-width: 568px) {

	.History {
		margin-top: 1em;
		padding: 2em;
		width: 42em;
	}
	.History h2 img {
		transform: translateX(-0.5em);
	}
	
	.History::after {
		content: '';
		display: block;
		position: absolute;
		right: 1.5em;
		top: -4em;
		width: 7em;
		height: 7em;
		background: url(../images/cm/pongoro_chorohei.png) no-repeat right top;
		background-size: contain;
	}

	.History .list .cm {
		display: flex;
		align-items: center;
	}


	.History .cm .title h4 {
		font-size: 85%;
	}

	.History .list .cm .pic {
		margin-left: auto;
	}
	.History .list .cm .pic img {
		font-size: 90%;
	}

	.History .list .cm .detail {
		margin-left: 1em;
	}
	.History .cm dl {
		font-size: 75%;
	}

}


/* ==================== top.css ==================== */