ul.reki{display:flex;flex-wrap:wrap;}
ul.reki > li{width:calc(100%/3 - 20px);margin:20px 10px;}
ul.reki ol{list-style-type:none;margin:0px;padding:0px;}


.yoteiba_3 ul li h4,
.yoteiba_k ul li h4,
.yoteiba_2 ul li h4{margin:10px 0 5px;text-align:left;font-size:24px;line-height:1.3em;}
.yoteiba_3 ul li h4 span,
.yoteiba_k ul li h4 span,
.yoteiba_2 ul li h4 span{float:right;color:black;font-size:.8em;}
.yoteiba_3 ul li h4 span:after,
.yoteiba_k ul li h4 span:after,
.yoteiba_2 ul li h4 span:after{content:"pt";font-size:.8em;}
.yoteiba_3 ul li img,
.yoteiba_k ul li img,
.yoteiba_2 ul li img{width:100%;}
.yoteiba_3 ul li ul li:before,
.yoteiba_k ul li ul li:before,
.yoteiba_2 ul li ul li:before{width:55px;color:white;text-align:center;display:inline-block;margin:3px 5px 0px 0px;}
.yoteiba_3 ul li ul li:nth-child(1):before,
.yoteiba_k ul li ul li:nth-child(1):before,
.yoteiba_2 ul li ul li:nth-child(1):before{content:"父";}
.yoteiba_3 ul li ul li:nth-child(2):before,
.yoteiba_k ul li ul li:nth-child(2):before,
.yoteiba_2 ul li ul li:nth-child(2):before{content:"母";}
.yoteiba_3 ul li ul li:nth-child(3):before,
.yoteiba_k ul li ul li:nth-child(3):before,
.yoteiba_2 ul li ul li:nth-child(3):before{content:"母父";}
.yoteiba_3 ul li ol,
.yoteiba_k ul li ol,
.yoteiba_2 ul li ol{margin-top:5px;font-size:90%;}
.yoteiba_3 ul li ol li:before,
.yoteiba_k ul li ol li:before,
.yoteiba_2 ul li ol li:before{width:55px;text-align:center;display:inline-block;e;margin:0 5px 3px 0px;}
.yoteiba_3 ul li ol li:nth-child(1):before,
.yoteiba_k ul li ol li:nth-child(1):before,
.yoteiba_2 ul li ol li:nth-child(1):before{content:"馬主";}
.yoteiba_3 ul li ol li:nth-child(2):before,
.yoteiba_k ul li ol li:nth-child(2):before,
.yoteiba_2 ul li ol li:nth-child(2):before{content:"調教師";}
.yoteiba_3 ul li ol li:nth-child(3):before,
.yoteiba_k ul li ol li:nth-child(3):before,
.yoteiba_2 ul li ol li:nth-child(3):before{content:"生産者";}

.yoteiba_3 ul li h4{border-bottom:2px solid #651d51;color: #651d51;}
.yoteiba_3 ul li ul li{border-bottom:1px solid #651d51;}
.yoteiba_3 ul li ul li:before{background:#651d51;}
.yoteiba_3 ul li ol li:before{color:#651d51;}

.yoteiba_k ul li h4{border-bottom:2px solid #005f98;color: #005f98;}
.yoteiba_k ul li ul li{border-bottom:1px solid #005f98;}
.yoteiba_k ul li ul li:before{background:#005f98;}
.yoteiba_k ul li ol li:before{color:#005f98;}

.yoteiba_2 ul li h4{border-bottom:2px solid #00913a;color: #00913a;}
.yoteiba_2 ul li ul li{border-bottom:1px solid #00913a;}
.yoteiba_2 ul li ul li:before{background:#00913a;}
.yoteiba_2 ul li ol li:before{color:#00913a;}

@media all and (min-width: 0) and (max-width: 767px)  {
ul.reki > li{width:calc(100%/1 - 0px);margin:20px 0px;}
}