/* =========================================
   sectional-ranking.css
   節間成績ランキング
========================================= */

/* -----------------------------
   タイトル帯
----------------------------- */
.raceinfo {
  display: flex;
  background: #dfdfdf;
  margin: 10px 0;
  padding: 2px 4px;
}

.raceinfo .icon {
  width: 35px;
  height: auto;
  padding: 3px;
}

.raceinfo .text {
  font-size: 18px;
  line-height: 1;
  position: relative;
  padding: 5px 5px 5px 17px;
  white-space: normal;
  word-break: break-word;
}

.raceinfo .text::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 90%;
  background: #4c4c4c;
}

@media (max-width: 768px) {
  .raceinfo .text {
    font-size: 14px;
    padding: 3px 3px 3px 12px;
  }

  .raceinfo .text::before {
    width: 8px;
  }
}

/* -----------------------------
   節間成績テーブル
----------------------------- */
.sectional-ranking {
  width: 100%;
  overflow-x: auto;
}

.sectional-ranking__table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
}

.sectional-ranking__cell {
  border: 1px solid #ccc;
  padding: 4px;
  font-weight: 700;
  vertical-align: middle;
}

.sectional-ranking th.sectional-ranking__cell {
  background: #e2fdf4 !important;
  color: #000 !important;
  text-align: center;
}

.sectional-ranking__cell--rank,
.sectional-ranking__cell--entno {
  text-align: center;
  white-space: nowrap;
}

.sectional-ranking__cell--rate,
.sectional-ranking__cell--score,
.sectional-ranking__cell--penalty {
  text-align: right;
  white-space: nowrap;
}

.sectional-ranking__cell--name {
  white-space: nowrap;
}

.sectional-ranking__cell--fixplcs {
  white-space: nowrap;
}

.sectional-ranking__cell--hayami {
  white-space: nowrap;
}

.sectional-ranking__cell--entno {
  width: 70px;
}

/* 登番列はPCのみ表示 */
@media (max-width: 768px) {
  .sr-entno-col {
    display: none;
  }
}

/* -----------------------------
   ドリーム着順
----------------------------- */
.dream {
  color: red;
  font-weight: bold;
}

/* -----------------------------
   早見リンク / 枠番色
----------------------------- */
.teiban {
  display: inline-block;
  min-width: 2.4em;
  padding: 0 4px;
  margin: 0 1px;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
  border-radius: 0;
  text-decoration: none;
}

.teiban1 {
  background: #fff;
  color: #000;
  border: 1px solid #333;
}

.teiban2 {
  background: #000;
  color: #fff;
}

.teiban3 {
  background: #c00;
  color: #fff;
}

.teiban4 {
  background: #06c;
  color: #fff;
}

.teiban5 {
  background: #ff0;
  color: #000;
  border: 1px solid #333;
}

.teiban6 {
  background: #090;
  color: #fff;
}


/* 順位 */
.sectional-ranking th:nth-child(1),
.sectional-ranking td:nth-child(1){
    text-align:center;
}

/* 得点率 */
.sectional-ranking th:nth-child(4),
.sectional-ranking td:nth-child(4){
    text-align:center !important;
}

/* 得点 */
.sectional-ranking th:nth-child(5),
.sectional-ranking td:nth-child(5){
    text-align:center !important;
}

/* 減点 */
.sectional-ranking th:nth-child(6),
.sectional-ranking td:nth-child(6){
    text-align:center !important;
}