@charset "UTF-8";
/* CSS Document */


/*-----------
horses
-----------*/


#horses .horse_list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

#horses .horse_list li {
  width: 30%;
  margin:0 5% 24px 0;
}

#horses .horse_list li a {
  display: block;
}

#horses .horse_list li img {
  width: 100%;
}

#horses .horse_list li a p {
  position: relative;
  font-size: 16px;
  color: #000;
  font-weight: bold;
  margin: .3em 0 0 0;
}

#horses .horse_list li a p span {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #a9892f;
  position: relative;
  margin: .3em .4em 0 0;
  vertical-align: top;
}

#horses .horse_list li a p span::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-top: solid 2px;
  border-right: solid 2px;
  border-color: #fff;
  transform: rotate(135deg);
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  margin: auto;
}

#horses .detail {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: #a9892f url("../img/ink_bg.png") no-repeat left top;
  background-size: 48% auto;
  margin: 0 0 60px 0;
  padding: 20px 50px 40px;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
}

#horses .detail h2 {
  font-size: 28px;
  font-weight: bold;
  background: none;
}

#horses .detail p.info {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  padding-bottom: 10px;
}

#horses .detail .cover img {
  border: none;
  vertical-align: bottom;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

#horses .detail p.pedigree {
  font-size: 15px;
  margin: 1em 0 0;
  font-weight: bold;
}

#horses .detail .check {
  margin: 0 0 20px 0;
}

#horses .detail .check h3 {
  width: 87px;
  margin-bottom: 10px;
}

#horses .detail .check h3 img {
  width: 100%;
}

#horses .detail .check p {
  font-size: 15px;
  background: #fff;
  padding: 15px 20px;
  color: #000;
}

#horses .detail .grade {
}

#horses .detail .grade h3 {
  text-align: center;
  font-weight: bold;
  padding-bottom: 0.3em;
  font-size: 20px;
}

#horses .detail .grade ul {
  font-size: 15px;
  padding: 10px;
  color: #000;
  position: relative;
  background: #dbcea8;
}

#horses .detail .grade ul::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  transform: rotate(135deg);
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  margin: auto;
  background: #a9892f;
}

#horses .detail .grade ul li span.no_link {
  color: #000;
  width: 100%;
  border-bottom: 1px solid #fff;  
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 23px 0 0;
  box-sizing: border-box;
}

#horses .detail .grade ul li a {
  color: #000;
  width: 100%;
  border-bottom: 1px solid #fff;  
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: url("../../../common/img/icon_arrow_white_r01.png") no-repeat right 4px center;
  background-size: 12px auto;
  padding: 0 23px 0 0;
  box-sizing: border-box;
}

#horses .detail .grade ul li a[target="_blank"] {
  background: url("../../../common/img/icon_link_blank_white_s.png") no-repeat right center;
  background-size: 18px auto;
}

#horses .detail .grade ul li:last-child a,
#horses .detail .grade ul li:last-child span.no_link{
  border-bottom: none;
}

#horses .detail .grade ul li p.race {
  width: calc(100% - 60px) ;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  padding: 0 10px 0 5px;
  box-sizing: border-box;
  margin: 7px 0;
}

#horses .detail .grade ul li p.race span {
  display: block;
  font-size: 12px;
  font-weight: normal;
}

#horses .detail .grade ul li p.grade_number {
  width: 40px;
  height: 40px;
  margin: 7px 0;
  padding: 0 0 0 15px;
  background: url("../img/horses_grade_bg.png") no-repeat left top;
  background-size: 55px auto;
  font-size: 30px;
  text-align: center;
  line-height: 36px;
  margin-right: 5px;
  font-weight: bold;
}

#horses .detail .grade ul li p.horses_grade_cancel {
  width: 40px;
  height: 40px;
  margin: 7px 0 7px 15px;
  background: #cbcbcb;
}

#horses .detail .grade ul li p.horses_grade_cancel img{
  width: 40px;
  height: 40px;
}

#horses .detail .grade ul li p.grade_number.grade_01 {
  color: #ff0000;
}

#horses .detail .grade ul li p.grade_number.grade_02 {
  color: #0042ea;
}

#horses .detail .grade ul li p.grade_number.grade_03 {
  color: #e3c600;
}

.txt_writer{
  margin: -50px 0 30px;
  text-align: right;
  font-size: 14px;
}

.btns {
  margin: 40px 0 80px;
}


@media screen and (min-width: 767px) {


#horses .horse_list li:nth-child(3n){
  margin:0 0 24px 0;
}

#horses .detail .detail_left {
  width: 45%;
  margin-right: 5%;
}
  
#horses .detail .detail_right {
  width: 50%;
}

}


@media screen and ( max-width:767px) {


#horses .horse_list {
 width: 96%;
 margin: 0 auto 4%;
}

#horses .horse_list li {
  width: 48%;
  margin:0 4% 5% 0;
}

#horses .horse_list li:nth-child(even) {
  margin:0 0 5% 0;
}

#horses .horse_list li a p {
  font-size: 13px;
}

#horses .detail {
  width: 100%;
  background: #a9892f url("../img/ink_bg.png") no-repeat left top;
  background-size: 100% auto;
  margin: 0 0 9% 0;
  padding: 10px 15px 25px;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
}

#horses .detail .cover {
    margin: 0 -15px;
}

#horses .detail .check {
  margin: 20px 0;
}

#horses .detail .grade ul li p.race {
  padding:  0 5px;
}

.txt_writer{
  margin: -9% 0 5%;
  font-size: 13px;
}

.btns {
  margin: 30px 0 60px;
  padding: 0 !important;
}


}

