@charset "UTF-8";

/* 全体 */
#ai-yosou-content {
  padding: 5px;
}

body {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-content::after {
  clear: both;
  content: "";
  display: block;
}

.with-icon::before {
  margin-right: 1px;
}

/* ヘルプアイコン */
.show-help::before {
  background-size: 23px;
  height: 23px;
  width: 23px;
}

.help-contents {
  background-color: #fff;
  border: 1px solid #707070;
  border-radius: 7px;
  position: fixed;
  visibility: hidden;
}

.help-contents p {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 49px;
  justify-content: center;
  margin: 0;
}

.help-contents hr {
  background-color: #707070;
  margin: 0;
}

.help-contents table {
  align-items: center;
  border: 2px solid #fff;
  font-size: 15px;
  font-weight: bold;
  margin: 20px 22px;
  table-layout: fixed;
  text-align: center;
  width: 309px;
}

.help-contents .confident-star-text {
  font-size: small;
}

.help-contents table thead {
  background-color: #190d01;
  color: #a6a6a6;
  height: 30px;
}

.help-contents table thead th:first-child {
  border-radius: 10px 10px 0 0;
  text-align: center;
}

.help-contents table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.help-contents table tbody tr:last-child td:last-child {
  border-radius: 0 0 10px;
}

.help-contents table tbody {
  border: 2px solid #fff;
  color: #333;
}

.help-contents table tbody td {
  background-color: #a6a6a6;
  border: 2px solid #fff;
  height: 48px;
  padding-left: 10px;
  text-align: left;
}

.help-contents table tbody td:first-child {
  background-color: #666;
}

/* new format (share with PC) */
.help-contents .cluetip-title {
  align-items: center;
  border-bottom: 1px solid #707070;
  color: #333;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 49px;
  justify-content: center;
  margin: 0 0 20px;
}

.help-contents .cluetip-inner {
  color: #a6a6a6;
  font-size: 15px;
  font-weight: bold;
  margin-top: 2px;
}

.help-contents .cluetip-inner-table {
  display: grid;
  grid-gap: 2px;
  grid-template-columns: 1fr 2fr;
  padding: 0 22px 20px;
  width: 300px;
}

.help-contents .cluetip-inner-textonly {
  background-color: #ddd;
  border-radius: 10px;
  color: #333;
  margin: 20px;
  padding: 20px;
  width: 260px;
}

.help-contents .cluetip-inner-title {
  align-items: baseline;
  background-color: #190d01;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  color: #a6a6a6;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  justify-content: center;
  margin: 20px 22px 0;
  padding: 2px;
}

.help-contents .cluetip-extra {
  border-top: 1px solid #707070;
}

.help-contents dt {
  align-items: center;
  background-color: #999;
  color: #fff;
  display: flex;
  justify-content: center;
}

.help-contents dd {
  background-color: #ddd;
  color: #333;
  margin-inline-start: 0;
  padding: 4px 6px;
  text-align: left;
}

.help-contents dt:last-of-type {
  border-bottom-left-radius: 10px;
}

.help-contents dd:last-of-type {
  border-bottom-right-radius: 10px;
}

.show-help-switch {
  display: none;
}

.help-contents .modal-close {
  height: 38px;
  padding-top: 13px;
  text-align: center;
}

.help-contents .modal-close .close {
  align-items: center;
  border: 1px solid #000;
  display: inline-flex;
  height: 15px;
  justify-content: center;
  line-height: 15px;
  margin-right: 5px;
  width: 15px;
}

.show-help-overlay {
  background-color: rgb(0 0 0 / 50%);
  inset: 0;
  position: fixed;
  visibility: hidden;
  z-index: 100;
}

.show-help-switch:checked ~ .show-help-overlay {
  visibility: visible;
}

.show-help-switch:checked ~ .help-contents {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  visibility: visible;
  z-index: 200;
}

/***** 開催場選択 *****
  ul.jo-selector > li > a.jo-link
*/

.jo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 2.5px;
  list-style-type: none;
  margin: 0 auto;
  width: 356px;
}

@media (width < 366px) {
  .jo-selector {
    width: 268px;
  }
}

.container-jo-selector {
  margin-bottom: 16px;
  margin-top: 16px;
}

.jo-link {
  border: 1px solid #999;
  border-radius: 12px;
  color: #666;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  line-height: 23px;
  min-width: 85px;
  text-align: center;
  text-decoration: none;
}

.jo-link.low-priority {
  background-color: #a6a6a6;
  border: 1px solid #a6a6a6;
  color: #fff;
}

.jo-link.selected {
  background-color: var(--kyougi-thema-color);
  border: 1px solid var(--kyougi-thema-color);
  color: #fff;
}

.jo-link:active {
  background-color: var(--kyougi-thema-color);
  border: 1px solid var(--kyougi-thema-color);
  color: #fff;
}

/***** 日付選択バー *****
  div.day-bar > a.day-bar-link > object > a.day-bar-paging
*/
.day-bar {
  border-bottom: 1px solid #eee;
  display: flex;
  height: 44px;
  position: relative;
}

.day-bar-link,
.day-bar-link:visited {
  align-items: center;
  color: #666;
  display: flex;
  flex: 1;
  font-size: 14px;
  font-weight: bold;
  place-content: center center;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.day-bar-link.selected {
  border-bottom: 2px solid var(--kyougi-thema-color);
}

.day-bar-link:active {
  border-bottom: 2px solid var(--kyougi-thema-color);
}

.day-bar-paging {
  font-size: 0;
  height: 100%;
  position: absolute;
  width: 20px;
}

.day-bar-paging.left {
  left: 2px;
}

.day-bar-paging.right {
  right: 2px;
}

.day-bar-paging::before {
  content: var(--icon-sp);
  display: inline-block;
  height: 25px;
  position: absolute;
  top: 15px;
  width: 25px;
}

/***** AI選択タブ *****
  ul.ai-selector > li > a.ai-link
*/
.ai-selector {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}

.ai-selector > li {
  flex: 1;
}

.ai-link .with-icon::before {
  content: none;
}

.ai-link,
.ai-link:visited {
  align-items: center;
  background-color: #eee;
  border-radius: 7px;
  color: #666;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 50px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.ai-link.selected {
  background-color: var(--kyougi-thema-color);
  color: #fff;
}

.ai-link:active {
  background-color: var(--kyougi-thema-color);
  color: #fff;
}

.ai-selector-selected {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 21px;
  height: 65px;
  justify-content: center;
}

.ai-selector-selected .with-icon::before {
  background-size: 32px;
  height: 32px;
  width: 32px;
}

/* オートレース天候用領域確保のため縮小 */
.autorace .ai-selector-selected .with-icon::before {
  background-size: 24px;
  height: 24px;
  vertical-align: middle;
  width: 24px;
}

.autorace .ai-selector-selected {
  font-size: min(18px, 5vw);
}

.autorace .ai-selector-selected .with-icon {
  line-height: 36px;
  margin: 0;
}

/*****

 */
.confidence-label {
  align-items: center;
  background-color: #333;
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  width: 77px;
}

.confidence-label-text {
  margin-right: 2px;
}

/***** レース予想・出走表タブ切替 *****
div.rac-yoso-selector > ul > li > a
 */
.race-yoso-selector {
  margin-bottom: 15px;
  margin-top: 13px;
}

.race-yoso-selector ul {
  display: flex;
  font-size: min(16px, 5.5vw);
  font-weight: bold;
  height: 38px;
  justify-content: stretch;
  list-style-type: none;
}

.race-yoso-selector li {
  display: flex;
  flex: 1;
}

.race-yoso-selector li a:visited,
.race-yoso-selector li a {
  align-items: center;
  border-bottom: 2px solid var(--kyougi-thema-color);
  border-top: 2px solid var(--kyougi-thema-color);
  color: var(--kyougi-thema-color);
  display: flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.keiba .race-yoso-selector li {
  font-size: 16px;
  font-weight: 600;
}

.race-yoso-selector li:first-child a {
  border: 2px solid var(--kyougi-thema-color);
  border-radius: 7px 0 0 7px;
}

.race-yoso-selector li:last-child a {
  border: 2px solid var(--kyougi-thema-color);
  border-radius: 0 7px 7px 0;
}

.race-yoso-selector li a.selected {
  background-color: var(--kyougi-thema-color);
  color: #fff;
}

.race-yoso-selector li a:active {
  background-color: var(--kyougi-thema-color);
  color: #fff;
}

.jump-ai-top {
  margin: 18px 0;
}

.jump-ai-top a {
  align-items: center;
  border: 1px solid #666;
  border-radius: 7px;
  color: #666;
  display: flex;
  font-size: 13px;
  height: 41px;
  justify-content: center;
  margin: auto;
  text-decoration: none;
  width: min(330px, 90vw);
}

.jump-ai-top a:visited {
  color: #666;
  text-decoration: none;
}

.jump-ai-top span::before {
  height: 16px;
  margin-right: 10px;
  vertical-align: sub;
  width: 16px;
}

#bcrumb {
  background-color: #666;
  box-sizing: border-box;
  clear: both;
  color: #333;
  display: block;
  float: left;
  font-family: Arial, "ＭＳ Ｐゴシック", "ヒラギノ角ゴ Pro W3", Verdana,
    Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  height: auto;
  letter-spacing: 0.03em;
  line-height: 1.4;
  list-style: none;
  margin: 0 0 -4px;
  overflow-wrap: break-word;
  padding: 8px 1% 3px;
  position: relative;
  text-align: left;
  width: 100%;
}

#bcrumb li {
  float: left;
}

#bcrumb li a,
#bcrumb li a:visited {
  color: #fff;
  text-decoration: none;
}

#bcrumb li:not(:last-child)::after {
  color: #fff;
  content: ">";
  margin: 0 2px;
}

#bcrumb li:last-child {
  color: #fff;
  font-weight: bold;
}

/* オートレース固有 晴雨ボタン */

.selector {
  background-color: #fff;
  position: absolute;
  visibility: hidden;
}

.selector-display:hover ~ .selector,
.selector:hover {
  animation: fadeIn 0.5s forwards;
  visibility: visible;
}

.weather-selector__select-list {
  border-radius: 6px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
  left: 70px;
  line-height: 2;
  padding: 6px 0;
  top: 100%;
  transform: translate(-50%, 0%);
  width: 152px;
  z-index: 100;
}

.weather-selector__select-list a {
  color: #666;
  display: block;
  font-size: 13px;
  padding-left: 18px;
  text-decoration: none;
  transition: color 0.3s;
  width: calc(100% - 18px);
}

.weather-selector {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 13px;
  font-weight: 400;
  justify-content: left;
  margin-right: 0.8em;
  padding-left: 22px;
  text-align: center;
}

.weather-selector::after {
  height: 10px;
  margin-left: 4px;
  margin-top: 4px;
  opacity: 0.5;
  width: 10px;
}

.autorace .ai-selector-selected .show-help.with-icon::before {
  background-size: 16px;
  height: 16px;
  width: 16px;
}

.cluetip {
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
  z-index: 2;
}

.show-selector:checked ~ .selector,
.show-selector:checked ~ .selector-overlay,
.show-cluetip:checked ~ .cluetip,
.show-cluetip:checked ~ .cluetip-overlay {
  visibility: visible;
}

.container-weather-selector {
  display: flex;
  line-height: 24px;
  margin-top: 4px;
  position: relative;
}
