@charset "UTF-8";
/* CSS Document */


/*-----------
race list
-----------*/

#racelist {
  width: 1000px;
  margin: 0 auto;
}

.btns {
  margin-top: 80px;
}

.btns li {
  width: 408px;
  margin: 0 auto 18px;
}

.btns li img {
  width: 100%;
}



/* ---- race list ---- */

#racelist .title {
  margin: 20px 0;
  text-align: center;
}

#racelist .title img {
  padding-left: 10px;
}

#racelist .page_title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

#racelist .nav_year {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 5px 0 35px;
}

#racelist .nav_year li {
  padding: 0 6px;
}

/* dropdown */
#racelist .racelist_dd{
  position: relative;
  width: 180px;
  margin: 0 0 20px auto;
}

#racelist .dd{
  display: block;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  padding: 12px 10px 14px 20px;
  box-sizing: border-box;
  line-height: 20px;
  position: relative;
  background: #000;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

#racelist .dd:hover{
  background: #a9892f;
}

#racelist .dd::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 35%;
  transition: all 0.3s ease-in-out;
  display: block;
  width: 8px;
  height: 8px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

#racelist .dd.open {
  background: #000;
}

#racelist .dd.open:hover{
  background: #a9892f;
}

#racelist .dd.open:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 43%;
}

#racelist .dd_menu{
  width: 100%;
  padding: 0 10px;
  position: absolute;
  top: 46px;
  background: #595757;
  z-index: 100;
  box-sizing: border-box;
}

#racelist .dd_menu li{
  height: 50px;
  border-bottom: 1px solid #acabab;
}

#racelist .dd_menu li a{
  display: block;
  height: 50px;
  width: 100%;
  line-height: 50px;
  color: #fff;
  font-weight: bold;
  background: url("../../../common/img/icon_arrow_white_r01.png") no-repeat right 4px center;
  background-size: 12px auto;
  padding: 0 30px 0 10px;
  box-sizing: border-box;
}

#racelist .dd_menu li a[target="_blank"],
#racelist .dd_menu li span.blank{
  background: url("../../../common/img/icon_link_blank_white_s.png") no-repeat right 2px center;
  background-size: 18px auto;
}

#racelist .dd_menu li span{
  opacity: 0.3;
}

#racelist .dd_menu li:last-child{
  border-bottom: none;
}

#racelist .dd_menu.dd_menu_01{
  right: 108px;
}

#racelist .dd_menu.dd_menu_02{
  right: 0;
}

/* tab */
#racelist .tab_maincate {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 2px solid #a9892f;
}

#racelist .tab_maincate li {
  width: 19.2%;
}

#racelist .tab_maincate a {
  display: table;
  width: 100%;
  height: 50px;
  background-color: #e6e6e6;
  text-align: center;
  color: #000;
  line-height: 1.3;
  box-sizing: border-box;
}

#racelist .tab_maincate a span {
  display: table-cell;
  vertical-align: middle;
}

#racelist .tab_maincate a.active {
  background-color: #a9892f;
  color: #fff;
}

#racelist .tab_subcate {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  background-color: #e6e6e6;
  border-radius: 5px;
}

#racelist .tab_subcate li {
  position: relative;
  padding: 8px 32px 8px 0;
}

#racelist .tab_subcate li a {
  display: inline-block;
  padding: 5px 10px 5px 23px ;
  color: #000;
}

#racelist .tab_subcate li:last-child {
  padding-right: 0;
}

#racelist .tab_subcate li:last-child a {
  padding-right: 0;
}

#racelist .tab_subcate li a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-radius: 50px;
  background-color: #fff;
  border: 3px solid #fff;
}

#racelist .tab_subcate li a.active::after {
  background-color: #a9892f;
}

#racelist .txt_supplement {
  margin: -20px 0 25px;
  text-align: center;
  color: #666;
  font-size: 14px;
}


#racelist #list {
  margin: 40px 0 0;
  border-top: 2px solid #a9892f;
}

#racelist #list .month {
  display: flex;
  border-bottom: 2px solid #a9892f;
  min-height: 108px;
}

#racelist #list .month .h {
  width: 100px;
  padding-top: 12px;
  font-size: 26px;
  font-weight: 500;
  text-align: center;
}

#racelist #list .month .h span {
  font-size: 36px;
}

#racelist #list .month .h .year {
  display: none;
  font-size: 16px;
}

/* トップページでの年表示 */
#wrapper.top #racelist #list .month .h .year {
  display: block;
}

#racelist #list .month ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#racelist #list .month ul::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 1px;
  height: 85px;
  background-color: #a9892f;
}

#racelist #list .month ul::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

#racelist #list .month ul li {
  position: relative;
  width: 50%;
  padding: 10px 0;
  border-bottom: 1px solid #a9892f;
  box-sizing: border-box;
}

#racelist #list .month ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  margin-top: 10px;
  height: calc(100% - 20px);
  background-color: #a9892f;
}

#racelist #list .month ul li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  margin-top: 10px;
  height: calc(100% - 20px);
  background-color: #a9892f;
}

#racelist #list .month ul li:nth-child(even)::before {
  display: none;
}

#racelist #list .month ul a {
  display: block;
  min-height: 85px;
  padding: 0 60px 2px 0;
  color: #000;
  box-sizing: border-box;
  background: url(../../../common/img/icon_arrow_gold_r01.png) right 25px center no-repeat;
  background-size: 14px;
}

#racelist #list .month ul a[target="_blank"] {
  background: url(../../../common/img/icon_link_blank.png) right 21px center no-repeat;
  background-size: 22px;
}

#racelist #list .month ul p {
  padding-left: 23px;
  font-size: 14px;
}

#racelist #list .month ul p:first-child {
  padding-top: 4px;
}

#racelist #list .month ul h4 {
  padding: 2px 0 2px 23px;
  font-size: 20px;
  font-weight: 700;
}

#racelist #list .month ul h4::after {
  content: "";
  display: inline-block;
  height: 21px;
  margin-left: 8px;
  margin-bottom: 4px;
  vertical-align: middle;
}

#racelist #list .month ul h4.jpn1::after {
  width: 50px;
  background: url(../img/race_class_jpn1.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.jpn2::after {
  width: 56px;
  background: url(../img/race_class_jpn2.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.jpn3::after {
  width: 62px;
  background: url(../img/race_class_jpn3.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.g1::after {
  width: 31px;
  background: url(../img/race_class_g1.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.g2::after {
  width: 37px;
  background: url(../img/race_class_g2.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.g3::after {
  width: 43px;
  background: url(../img/race_class_g3.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul h4.j_n_kouryu::after {
  width: 135px;
  background: url(../img/race_class_j_n_kouryu.png) 0 0 no-repeat;
  background-size: 100%;
}

#racelist #list .month ul .special_yellow {
  background-color: #f4f4cd;
}

#racelist #list .month ul .special_yellow .notes {
  padding-left: 1.3em;
  font-size: 13px;
}


@media screen and ( max-width:767px) {

  #racelist {
    width: 92%;
    margin: 0 auto;
  }

  .btns {
    margin: 50px 0 0;
    padding: 0 4%;
  }

  .btns li {
    width: 100%;
    margin: 0 auto 10px;
  }

  #racelist .title {
    margin: 3% -4% 3% -2%;
  }

  #racelist .title img {
    width: 100%;
    padding-left: 0;
  }

  #racelist .page_title {
    margin-bottom: 7%;
    font-size: 20px;
  }

  #racelist .nav_year {
    padding: 5px 0 35px;
  }

  #racelist .nav_year li {
    width: 40%;
    padding: 0 1%;
  }

  #racelist .nav_year li img {
    width: 100%;
  }

  /* dropdown */
  #racelist .rating_dd.prerating_dd{
    margin: 0 0 20px;
  }

  #racelist .dd:hover,
  #racelist .dd.open:hover{
    background: #000;
  }

  /* tab */
  #racelist .tab_maincate li {
    width: 19.4%;
  }

  #racelist .tab_maincate a {
    height: 48px;
    font-size: calc(100vw / ( 375 / 12 ));
    font-feature-settings: "palt";
  }

  #racelist .tab_subcate {
    margin-top: 8px;
  }

  #racelist .tab_subcate li {
    position: relative;
    padding: 4px 5px 4px 0;
  }

  #racelist .tab_subcate li a {
    padding: 5px 10px 5px 26px ;
    font-size: calc(100vw / ( 375 / 14 ));
  }

  #racelist .tab_subcate li a::after {
    width: 14px;
    height: 14px;
    margin-top: -10px;
  }

  #racelist .txt_supplement {
    margin: 0px 0 15px;
    font-size: 13px;
  }


  #racelist #list {
    margin: 15px 0 0;
  }

  #racelist #list .month {
    min-height: 97px;
  }

  #racelist #list .month .h {
    width: 19.8%;
    padding: 8px 3px 0;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
  }

  #racelist #list .month .h span {
    font-size: 26px;
  }

  #racelist #list .month .h .year {
    font-size: 13px;
  }

  #racelist #list .month ul {
    width: 100%;
  }

  #racelist #list .month ul::before {
    display: none;
  }

  #racelist #list .month ul::after {
    display: none;
  }

  #racelist #list .month ul li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #a9892f;
    box-sizing: border-box;
  }

  #racelist #list .month ul li::before {
    display: none;
  }

  #racelist #list .month ul li::after {
    display: none;
  }

  #racelist #list .month ul li:last-child {
    border-bottom: none;
  }

  #racelist #list .month ul a {
    padding: 0 25px 0 0;
    background-position: right 3px center;
    background-size: 10px;
  }

  #racelist #list .month ul a[target="_blank"] {
    background-position: right 1px center;
    background-size: 17px;
  }

  #racelist #list .month ul p {
    padding-left: 0;
    font-size: 14px;
  }

  #racelist #list .month ul p:first-child {
    padding-top: 12px;
  }
  #racelist #list .month ul p:last-child {
    padding-bottom: 12px;
  }

  #racelist #list .month ul h4 {
    padding: 0;
    font-size: 19px;
    line-height: 1.4;
  }

  #racelist #list .month ul h4::after {
    height: 18px;
    margin-bottom: 4px;
  }

  #racelist #list .month ul h4.jpn1::after {
    width: 43px;
  }

  #racelist #list .month ul h4.jpn2::after {
    width: 47px;
  }

  #racelist #list .month ul h4.jpn3::after {
    width: 52px;
  }

  #racelist #list .month ul h4.g1::after {
    width: 27px;
  }

  #racelist #list .month ul h4.g2::after {
    width: 31px;
  }

  #racelist #list .month ul h4.g3::after {
    width: 37px;
  }

  #racelist #list .month ul .special_yellow .notes {
    padding-left: 1em;
    font-size: 12px;
  }


}
