/* ------------------------------------------------------------
	3分でわかった気になる名馬 トップ
------------------------------------------------------------ */

#meiba_room { margin-top: 30px; }

#meiba_room .item_flex_list > div{
	margin-bottom: 0;
}
#meiba_room > .header_block { max-width: 940px; margin: 0 auto; }
#meiba_room > .header_block img { vertical-align: top; }

#meiba_room > .header_block > p {
	line-height: 1.8;
	margin-top: 15px;
	font-size: 1.4rem;
}
#meiba_room .sub_header {
	max-width: 940px;
	margin: 0 auto;
}
#meiba_room .horse_list{
	max-width: 940px; margin: 0 auto;
}
#meiba_room .panel.narrow > .content{
	background: #ebebeb;
	border: none;
	padding: 0 15px 15px 15px;
}
#meiba_room .horse_unit {
	width: 100%;
}

/* 最新部分 */


#meiba_room .new .horse_unit {
	position: relative;
	margin-top: 40px;
}
.ribbon-content {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 90px;
	height: 90px;
	overflow: hidden;
	z-index: 2;
	}

.ribbon {
	display: inline-block;
	position: absolute;
	padding: 7px 0;
	left: -22px;
	top: 22px;
	width: 160px;
	text-align: center;
	font-size: 16px;
	line-height: 16px;
	background: linear-gradient(to right, #0052b1 0%,#2178BF 100%);
	color: #fff;
	text-shadow: 0 2px 2px #56a1f3;
	letter-spacing: 0.05em;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ribbon:before, .ribbon:after {
	position: absolute;
	content: "";
	border-top: 4px solid #3672b6;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	bottom: -4px;
}

.ribbon:before {
	left: 14px;
}

.ribbon:after {
	border-top: 5px solid #3672b6;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	right: 18px;
	bottom: -5px;
}


#meiba_room .new .horse_unit > .header .name_line > .cell.title > h3,
#meiba_room .new .horse_unit > .header .name_line > .cell.title > h2 {
	font-weight: bold;
	position: relative;
	font-size: 2.5rem;
	transition: all 0.3s ease-in-out;
}

.no-touch #meiba_room .new .horse_unit > .header > a:hover > .name_line > .cell.title > h3,
.no-touch #meiba_room .new .horse_unit > .header > a:hover > .name_line > .cell.title > h2 {
	color: #f4bf87;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#meiba_room .new .horse_unit.on > .header .name_line > .cell.title > h3,
#meiba_room .new .horse_unit.on > .header .name_line > .cell.title > h2 {
	color: #f4bf87;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#meiba_room .new .horse_unit > .header .name_line > .cell.title > h3 > .cap {
	font-size: 2.5rem;
}

#meiba_room .new .horse_unit > .header > a > .img {
	height: 200px;
}
#meiba_room .horse_unit > .header > a > .img img{
	width: 100%;
}

#meiba_room .horse_list.item_flex_list.col4 > div{
	flex-basis: calc((100% - 45px) / 4);
	max-width: calc((100% - 45px) / 4);
	margin-top: 15px;
}
#meiba_room .horse_list.item_flex_list.col4 > div.empty{
	margin: 0;
}

#meiba_room .horse_unit > .header > a {
	display: block;
	text-decoration: none;
	position: relative;
	color: #fff;
}

#meiba_room .horse_unit > .header .name_line {
	width: 100%;
	display: flex;
	align-items: center;
	background-color: #333;
	color: #fff;
}

#meiba_room .new .horse_unit > .header .name_line > .cell.title {
	padding: 8px;
}

#meiba_room .horse_unit > .header .name_line > .cell.title {
	flex-grow: 1;
	padding: 8px;
}
#meiba_room .new .horse_unit > .header .name_line > .cell.title {
	padding: 8px 16px;
}


/* バックナンバー部分 */

#meiba_room .horse_unit > .header .name_line > .cell.title > h3,
#meiba_room .horse_unit > .header .name_line > .cell.title > h2 {
	font-weight: bold;
	position: relative;
	font-size: 1.7rem;
	transition: all 0.3s ease-in-out;
}

.no-touch #meiba_room .horse_unit > .header > a:hover > .name_line > .cell.title > h3,
.no-touch #meiba_room .horse_unit > .header > a:hover > .name_line > .cell.title > h2 {
	color: #f4bf87;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#meiba_room .horse_unit.on > .header .name_line > .cell.title > h3,
#meiba_room .horse_unit.on > .header .name_line > .cell.title > h2 {
	color: #f4bf87;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#meiba_room .horse_unit > .header .name_line > .cell.title > h3 > .cap,
#meiba_room .horse_unit > .header .name_line > .cell.title > h2 > .cap {
	font-family: 'Niconne', cursive;
	font-size: 1.8rem;
	opacity: 0.3;
	display: block;
	line-height: 1;
}

#meiba_room .horse_unit > .header > a > .img {
	background-color: #000;
	position: relative;
	height: 100px;
}
#meiba_room .horse_unit > .header > a > .img img {
	vertical-align: top;
	transition: all 0.3s ease-in-out;
	object-fit: cover;
	height: 100%;
}

.no-touch #meiba_room .horse_unit > .header > a:hover > .img img { opacity: 0.6; }


/* -バナーブロック
---------------------------------------------------------------------- */

#meiba_room > .banner_block {
	background-color: #efefef;
	max-width: 940px;
	margin: 0 auto;
	margin-top: 70px;
}

#meiba_room > .banner_block .banner_list {
	width: 100%;
	padding: 5px;
}

#meiba_room > .banner_block .banner_list:after {
	content: '';
	display: block;
	clear: both;
}

#meiba_room > .banner_block .banner_list > div {
	float: left;
	padding: 5px;
	width: 50%;
}

#meiba_room > .banner_block a {
	display: block;
}

#meiba_room > .banner_block a img {
	vertical-align: top;
	opacity: 1;
	transition: all 0.3s ease-in-out;
}

.no-touch #meiba_room > .banner_block a:hover img {
	opacity: 0.6;
}

/* ------------------------------------------------------------
	959px以下
------------------------------------------------------------ */
@media screen and ( max-width : 959px ) {

	#meiba_room { margin-top: 20px; padding: 0 10px; }
	#meiba_room > .header_block { max-width: 100% }

}

/* ------------------------------------------------------------
	940px以下
------------------------------------------------------------ */
@media screen and ( max-width : 940px ) {

	#meiba_room .horse_list.item_flex_list.col4 > div{
	width: 33%;
    flex-basis: calc((100% - 30px) / 3);
    max-width: calc((100% - 30px) / 3);
	}

}

/* ------------------------------------------------------------
	768px以下
------------------------------------------------------------ */
@media screen and ( max-width : 767px ) {

	#meiba_room > .header_block > p { font-size: 1.3rem; }

	#meiba_room .horse_list.item_flex_list.col4 {
	display: flex;
}
	#meiba_room .horse_list.item_flex_list.col4 > div{
	width: 50%;
    flex-basis: calc((100% - 15px) / 2);
    max-width: calc((100% - 15px) / 2);
	}

}

/* ------------------------------------------------------------
	639px以下
------------------------------------------------------------ */
@media screen and ( max-width : 639px ) {

	#meiba_room .horse_unit > .header .name_line > .cell.title { padding: 6px; }
	#meiba_room .horse_unit > .header .name_line > .cell.title > h3 > .cap { display: none; }
}


/* ------------------------------------------------------------
	479px以下
------------------------------------------------------------ */
@media screen and ( max-width : 479px ) {
#meiba_room .new .horse_unit > .header .name_line > .cell.title > h3{
	font-size: 2rem;
}

#meiba_room .new .horse_unit > .header > a > .img {
	height: 140px;
}
#meiba_room .panel.narrow > .content{
	padding: 0 10px 10px 10px;
}

	#meiba_room .horse_unit > .header .name_line > .cell.title > h3{
	font-size: 1.3rem;
}
	#meiba_room .horse_list.item_flex_list.col4 > div{
	margin-top: 10px;
    flex-basis: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);

	}

	#meiba_room .horse_unit > .header > a > .img {
	height: 70px;
}
	#meiba_room .horse_unit > .header > a > .img img{
	width: 100%;
}

	#meiba_room > .banner_block { margin-top: 50px; }

	#meiba_room > .banner_block .img_flex_list.col2 > div {
    flex-basis: auto;
    max-width: 100%;
}


#meiba_room > .banner_block .banner_list > div {
    float: none;
    width: 100%;
}


}

