.container2 {}

.raceinfo {
  background-color: #e3f2fd;
  margin-top: 1px;
  margin-bottom: 1px;
  display: flex;
  color: #000;
}

.icon {
  width: 45px;
  height: auto;
  padding: 5px 5px 5px 5px;
}

.text {
  font-size: 18px !important;
  line-height: 1;
  display: block;
  position: relative;
  padding: 5px 5px 5px 17px;
    font-weight: bold;

}

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

.motorlist {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  text-align: center;
  margin-bottom: 12px;
}

.motorlist2 {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  text-align: center;
}

.motorlist table {
  width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
  table-layout: auto;
}

.motorlist2 table {
  width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
  table-layout: fixed;
}

.mortortitle {
  font-size: 18px;
  font-weight: bold;
  background: #4fa3d9; /* やや濃い水色 */
  text-align: center;
  color: white;
}

/* 各表のth指定：背景 #e2fdf4 / 文字色 黒 */
.motorlist th.motor,
.motorlist2 th.motor {
  background-color: #e2fdf4;
  color: #000;
  text-align: center;
  border: 1px solid #e4e4e4;
  padding: 10px 6px;
  line-height: 1.2;
  height: 28px;
  vertical-align: middle;
}

.motorlist td.motor,
.motorlist2 td.motor {
  text-align: center;
  border: 1px solid #e4e4e4;
  padding: 14px 6px;
  line-height: 1.2;
  height: 28px;
  vertical-align: middle;
}

.a {
  text-decoration: underline;
  color: blue;
}

.motor {
  font-weight: bold;
}

.square {
  width: 10px;
  background-color: #333;
  margin-right: 0;
}

/* グラフ */
.motor-history-chart-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #e4e4e4;
}

.motor-history-chart-box {
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 8px;
  min-height: 330px;
  overflow: visible;
}

.motor-history-chart-title {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: #000;
}


.motor-history-chart-box canvas {
  width: 100% !important;
  height: 330px !important;
}

.motor-history-chart-box.is-empty::after {
  content: "データなし";
  display: block;
  text-align: center;
  color: #777;
  font-size: 13px;
  padding: 70px 0;
}

.motor-history-chart-box.is-empty canvas {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .mortortitle {
    font-size: 16px;
  }

  .motorlist th.motor,
  .motorlist2 th.motor {
    font-size: 14px;
    padding: 10px 4px;
    line-height: 1.2;
    height: 24px;
    text-align: center;
    vertical-align: middle;
  }

  .motorlist td.motor,
  .motorlist2 td.motor {
    font-size: 14px;
    padding: 14px 2px;
    line-height: 1.2;
    height: 24px;
    text-align: center;
    vertical-align: middle;
  }

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

  .text {
    font-size: 14px !important;
    line-height: 1;
    display: block;
    position: relative;
  padding: 5px 0 5px 17px;
  font-weight: bold;
  }

  .motor-history-chart-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .motor-history-chart-box {
    min-height: 340px;
    padding: 10px 4px;
    overflow: visible;
  }

  .motor-history-chart-box canvas {
    height: 330px !important;
  }
}
