﻿/*=================================================
 * CSS for PC
 * ================================================= */

#cast{
	padding-top: 30px;
}

/** search **/

.search{
	width: 1140px;
	font-size: 0;
	line-height: 0;
	background: #222;
	margin: 0 auto 30px auto;
	padding: 20px 0;
	border-radius: 40px;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
.search_in{
	display: inline-flex;
}
.search_in div{
	margin: 0 5px;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
.search_in div:last-of-type{
	border-left: 3px double #666;
	margin-left: 15px;
	padding-left: 20px;
}
.search_in input[type="submit"]{
	display: inline-flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	width: 100px;
	height: 35px;
	font-size: 16px;
	line-height: 20px;
	padding-left: 12px;
	color: #fff;
	background: url(../images/search.png) no-repeat 20px 50%;
	background-size: 17px auto;
	border-radius: 3px;
	border: 2px solid #fff;
	-webkit-transition	: 0.2s ease-in-out;
	-moz-transition	: 0.2s ease-in-out;
	-o-transition	: 0.2s ease-in-out;
	transition		: 0.2s ease-in-out;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
.search_in input[type="submit"]:hover{
	opacity: 0.7;
	filter: alpha(opacity=70);
	filter: invert(100%);
	background-color: #000;
	border: 2px solid #000;
}


/** form item **/

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"]
{
	width: 145px;
	background: #fff;
	padding: 7px;
	font-size		: 16px;
	line-height: 20px;
	font-family: Meiryo,'Hiragino Kaku Gothic ProN','Hiragino Sans',sans-serif;
	border			: 1px solid #ddd;
	border-radius: 3px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
/* Safari */
_::-webkit-full-page-media, _:future, :root input[type="text"]{
	padding-top: 5px;
	padding-bottom: 5px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
	::i-block-chrome, input[type="text"]{
		padding-top: 5px;
		padding-bottom: 5px;
	}
}

input[type="radio"]{
	padding			:0;
	margin			:0;
}

select{
	width: 145px;
	font-size: 16px;
	line-height: 20px;
	padding: 7px 20px 7px 7px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-family: Meiryo,'Hiragino Kaku Gothic ProN','Hiragino Sans',sans-serif;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
.select_bg{
	position: relative;
	display: inline-block;
}
.select_bg:before{
	content: '';
	display: inline-block;
	width: 17px;
	height: 34px;
	background: #999;
	border-radius: 0 2px 2px 0;
	position: absolute;
	top: 1px;
	right: 1px;
	pointer-events: none;
}
.select_bg:after{
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 4px 0 4px;
	border-color: #fff transparent transparent transparent;
	position: absolute;
	top: calc(50% - 4px);
	right: 6px;
	pointer-events: none;
}

.form input::placeholder,
.form textarea::placeholder{	color: #ccc;}
.form input:-ms-input-placeholder,
.form textarea:-ms-input-placeholder{	color: #ccc;}
.form input::-ms-input-placeholder,
.form textarea::-ms-input-placeholder{	color: #ccc;}


/** cast **/

#cast{
	text-align: center;
}

#cast ul{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	font-size: 0;
	line-height: 0;
	text-align: left;
	padding: 0 2.5px;
}

#cast li{
	position: relative;
	width: calc(100% / 5 - 5px);
	margin: 0 2.5px 5px 2.5px;
	background: rgb(21,21,21);
	background: linear-gradient(-15deg, rgba(21,21,21,1) 15%, rgba(43,43,43,1) 25%, rgba(21,21,21,1) 35%);
}

#cast li figure{
	position: relative;
	overflow: hidden;
	width: 100%;
	color: #fff;
	text-align: center;
	margin: 0;
}
#cast li figure *{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all 0.6s ease;
	transition: all 0.6s ease;
}
#cast li figure img{
	opacity: 1;
	width: 100%;
}
#cast li figure:after,
#cast li figure:before{
	background: #000;
	width: 50vw;
	height: 50vw;
	position: absolute;
	content: '';
	opacity: 0.5;
	-webkit-transition: all 0.55s ease-in-out;
	transition: all 0.55s ease-in-out;
	z-index: 1;
}
#cast li figure:after{
	top: 0;
	left: 0;
	-webkit-transform: skew(-45deg) translateX(-150%);
	transform: skew(-45deg) translateX(-150%);
}
#cast li figure:before{
	right: 0;
	bottom: 0;
	-webkit-transform: skew(-45deg) translateX(150%);
	transform: skew(-45deg) translateX(150%);
}
#cast li figure figcaption{
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	z-index: 2;
}
#cast li figure p{
	margin: 0;
	width: 100%;
	opacity: 0;
}
#cast li figure p{
	padding: 0 20px;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 10;
}
#cast li figure a{
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	position: absolute;
	z-index: 2;
}
#cast li figure:hover img{
}
#cast li figure:hover:after{
	-webkit-transform: skew(-45deg) translateX(-50%);
	transform: skew(-45deg) translateX(-50%);
}
#cast li figure:hover:before{
	-webkit-transform: skew(-45deg) translateX(50%);
	transform: skew(-45deg) translateX(50%);
}
#cast li figure:hover figcaption p{
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
}
#cast li figure:hover figcaption p{
	opacity: 1;
}

#cast li .photo{
	position: relative;
}
#cast li .i_new{
	display: inline-block;
	vertical-align: top;
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
}
#cast li .i_new img{
	width: 70px;
	height: auto;
}
#cast li .x_bt{
	display: inline-flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 50%;
	position: absolute;
	z-index: 2;
	bottom: 5px;
	right: 5px;
}
#cast li .x_bt img{
	width: 40px;
	height: auto;
}
#cast li .course{
}
#cast li .course img{
	width: 100%;
	height: auto;
}
#cast .txt{
	position: relative;
	width: 100%;
	text-align: center;
	padding: 10px 0 48px 0;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
#cast .txt .name{
	font-size:min(4vw, 24px);
	font-weight: bold;
	line-height: 1.2;
}
#cast .txt .name a{	color: currentColor;}
#cast .txt .size{
	font-size:min(2.5vw, 16px);
	line-height: 1.5;
	margin: 0 0 5px 0;
}
#cast .txt .size span{	color: #ffa400;}
#cast .txt .type_box{
	font-size: 0;
	line-height: 0;
}
#cast .txt .type_box span{
	display: inline-block;
	vertical-align: top;
	font-size: 10px;
	line-height: 16px;
	border-radius: 8px;
	margin: 0 1px 2px 1px;
	padding: 0 10px;
	color: #000;
	background: #ffa400;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
#cast .marquee{
	width: 100%;
	padding: 0 5px;
	background: rgb(227,208,153);
	background: linear-gradient(90deg, rgba(227,208,153,1) 0%, rgba(242,227,182,1) 50%, rgba(227,208,153,1) 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
#cast .marquee .box{
	position: relative;
	overflow: hidden;
}
#cast .marquee .box:before,
#cast .marquee .box:after{
	content: "";
	width: 7px;
	height: 30px;
	position: absolute;
	top: 5px;
	border-top: 1px solid #b69c51;
	border-bottom: 1px solid #b69c51;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
#cast .marquee .box:before{
	left: 0;
	border-left: 1px solid #b69c51;
}
#cast .marquee .box:after{
	right: 0;
	border-right: 1px solid #b69c51;
}
#cast .marquee .box p{
	font-size: 16px;
	line-height: 20px;
	color: #000;
	margin: 0 5px;
	padding: 10px 0 10px 100%;
	display: inline-block;
	white-space: nowrap;
	animation-name: marquee;
	animation-timing-function: linear;
	animation-duration: 15s;
	animation-iteration-count: infinite;
}
#cast .marquee .box p::after{
	content: "";
	padding-right: 50px;
	white-space: nowrap;
}

.next{
	font-size: 0;
	line-height: 0;
	text-align: center;
}
.next a,
.next span{
	display: inline-flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	font-size: 16px;
	line-height: 1;
	margin: 0 5px;
}
.next a{
	color: #fff;
	background: #151515;
	border: 1px solid #333;
}
.next a:hover{
	text-decoration: none;
	border: 1px solid #fff;
}
.next span{
	color: #000;
	background: #ffa400;
	border: 1px solid #ffa400;
}

@keyframes marquee {
	from {
		transform: translate(0%);
	}

	99%,
	to {
		transform: translate(-100%);
	}
}

/*=================================================
 * CSS for SP
 * ================================================= */

@media screen and (max-width: 650px){
	#cast{
		padding-top: 15px;
	}

	/** search **/
	.search{
		width: auto;
		margin: 0 15px 15px 15px;
		padding: 15px 12.5px;
		border-radius: 3px;
	}
	.search_in{
		display: flex;
		flex-wrap: wrap;
	}
	.search_in div{
		width: calc(50% - 5px);
		margin: 0 2.5px 5px 2.5px;
	}
	.search_in div:last-of-type{
		width: 100%;
		border: none;
		margin: 0;
		padding: 5px 0 0 0;
	}
	input[type="text"],
	input[type="url"],
	input[type="email"],
	input[type="tel"],
	input[type="password"],
	input[type="number"]
	{
		width: 100%;
	}
	select{
		width: 100%;
	}
	.select_bg{	display: block;}

	/** cast **/
	#cast{
		text-align: center;
	}
	#cast ul{	padding: 0 2.5px;}
	#cast li{
		width: calc(100% / 2 - 5px);
		height: auto;
		margin: 0 2.5px 5px 2.5px;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
		        box-sizing: border-box;
	}
	#cast li figure:after,
	#cast li figure:before,
	#cast li figure figcaption{	display: none;}

	#cast li .i_new img{
		width: 50px;
		height: auto;
	}
	#cast li .x_bt{
		width: 40px;
		height: 40px;
	}
	#cast li .x_bt img{
		width: 30px;
		height: auto;
	}
	#cast .txt{
		padding: 10px 0 33px 0;
	}
	#cast .txt .name{
		font-size:min(2.8vw, 13px);
		line-height: 1.2;
	}
	#cast .txt .name a{
		font-size:min(4vw, 24px);
	}
	#cast .txt .size{
		font-size:min(2.5vw, 14px);
		line-height: 1.2;
		margin: 0 0 5px 0;
	}
	#cast .marquee{
		padding: 0 2px;
	}
	#cast .marquee .box:before,
	#cast .marquee .box:after{
		content: "";
		width: 7px;
		height: 24px;
		position: absolute;
		top: 3px;
	}
	#cast .marquee .box p{
		font-size: 13px;
		line-height: 20px;
		padding: 5px 0 5px 100%;
	}
	
	.next a,
	.next span{
		width: 40px;
		height: 40px;
		font-size: 14px;
		line-height: 1;
		margin: 0 5px;
	}
}
