/* ***************************
共通
*************************** */
/* コーナー枠・タイトル */
.corner_ttl.tournament::after {
  background-position: 0px -200px;
}

/* フローティングバナー */
.fotmenu_tournament_icon {
  background-position: 0px -300px;
}
.current .fotmenu_tournament_icon {
  background-position: -20px -200px;
}

/* 大会切り替えボタン */
.genre_btn_item .genre_btn_link_large {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 32px;
  padding: 0px;
}

@media screen and (min-width: 768px) {
  .genre_btn_item .genre_btn_link_large {
    height: 32px;
  }
  .genre_btn_item .genre_btn_link_large .sp_br {
    display: none;
  }
}

.genre_btn .genre_btn_item.item5 {
  width: calc(100% / 5);
}
.genre_btn .genre_btn_item.disabled .genre_btn_link_large {
  background-color: #e0e0e0;
  color: #999;
  pointer-events: none;
}

@media screen and (max-width: 359px) {
  .genre_btn_txt_narrow {
    -webkit-transform: scaleX(0.92);
    transform: scaleX(0.92);
    margin: 0 -2px;
  }
}

/* フローティングナビ(高校野球用) */
.fotmenu_change_width {
  margin: 3px -5px 0;
}

@media screen and (max-width: 359px) {
  .fotmenu_change_width {
    -webkit-transform: scaleX(0.83);
    transform: scaleX(0.83);
  }
}

/* 大会の最新情報ボタン */
.latest-info__btn {
  display: block;
  margin: 10px 8px;
  padding: 8px 0px;
  background-color: #fff;
  border-radius: 5px;
  border: 3px solid #0d7dd9;
  text-align: center;
}

/* hsbテーブル */
.hsb-table {
  margin-bottom: 15px;
  border: solid 1px #ddd;
}
.hsb-table__head {
  border-right: solid 1px #ddd;
}
.hsb-table__head--school {
  width: 44%;
}
.hsb-table__head--prefecture {
  width: 31%;
}
.hsb-table__head--year {
  width: 15%;
}
.hsb-table__head--tournaments {
  width: 20%;
}
.hsb-table__row:not(:last-child) {
  border-bottom: solid 1px #ddd;
}
.hsb-table__data:not(:last-child) {
  border-right: solid 1px #ddd;
}
.hsb-table__data .link_text {
  display: block;
}

/* メンバーテーブル */
.member-table__header--order,
.member-table__header--position {
  width: 18%;
}
.member-table__header--player {
  width: 64%;
}
.game_member_head {
  height: 38px;
}
.game_member_table table td {
  height: 54px;
}
.game_member_table .game_member_table_area.starting tr th:first-child,
.game_member_table .game_member_table_area.starting tr th:nth-child(2) {
  width: 14%;
}
.game_member_table .game_member_table_area.starting tr th:nth-child(3) {
  width: 18%;
}
.game_member_table .game_member_table_area.starting tr th:last-child {
  width: 54%;
}
.game_member_table .game_member_table_area.starting tr td:nth-child(3) {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
}
.game_member_table .game_member_table_area.reserve th {
  text-align: center;
}
.game_member_table .game_member_table_area.reserve th:first-child {
  width: 25%;
}

/* ***************************
トーナメント
*************************** */
/* トーナメントタブ */
.tournament-list {
  flex-wrap: wrap;
  width: 100%;
  margin: 10px 0;
}
.tournament-list__item {
  display: block;
  width: calc((100% - 12px) / 3);
  border-radius: 5px;
}
.tournament-list__item:nth-child(3n + 2) {
  margin: 0 6px;
}
.tournament-list__item:nth-child(n + 4) {
  margin-top: 6px;
}
.tournament-list__link {
  height: 32px;
  background-color: #ccc;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  color: #404040;
}
.tournament-list__item.selected .tournament-list__link {
  background-color: #ce1836;
  color: #fff;
}
.tournament-list__item.disabled .tournament-list__link {
  background-color: #e0e0e0;
  color: #999;
  pointer-events: none;
}
.tournament_update_time {
  max-width: 396px;
}

/* トーナメント画像 */
.tournament-image {
  width: 100%;
  max-width: 396px;
  margin: 0 auto 15px;
}

/* ***************************
既存パーツ 上書き
*************************** */
/* 日程・結果 */
.schedule_result_status + .schedule_note {
  margin-top: 4px;
}

/* KV */
.game_kv {
  background-image: url(/portal/sports/baseball/img/bg_game-kv_jhb.jpg);
}
.game_kv_convention_date {
  padding: 15px 8px 8px;
}
.game_kv_info {
  padding: 0 8px 15px;
}
.game_kv_scoretable {
  table-layout: fixed;
}
.game_kv_scoretable th:first-child {
  width: 12%;
}
.game_kv_scoretable th:not(:first-child) {
  width: 6%;
}
.game_kv_scoretable td:first-child {
  background-color: #3a3a3a;
}
.game_kv_scoretable.third td:first-child,
.game_kv_scoretable.third .off,
.game_kv_scoretable.fourth td:first-child,
.game_kv_scoretable.fourth .off {
  background-color: transparent;
  border-bottom: none;
}

/* コントロールエリア */
.game_batter_prev .game_batter_pagination_link {
  padding-left: 20px;
}
.game_batter_next .game_batter_pagination_link {
  padding-right: 20px;
}

/* 選手情報 */
.game_flash_team_name {
  background-color: #3a3a3a;
}
.game_flash_player_name {
  min-height: 60px;
}
.game_flash_player_name .game_flash_player_text {
  padding: 16px 8px 16px 40px;
}
.game_flash_player_inner.left .game_flash_team p:first-child,
.game_flash_player_inner.right .game_flash_team p:last-child {
  vertical-align: middle;
  white-space: nowrap;
}
.game_flash_player_inner.left .game_flash_team p:last-child,
.game_flash_player_inner.right .game_flash_team p:first-child {
  overflow: hidden;
}
.game_flash_player_inner.left .game_flash_team p:first-child {
  padding-left: 4px;
}
.game_flash_player_inner.right .game_flash_team p:last-child {
  padding-right: 4px;
}
.game_flash_player_inner.left .game_flash_team p:last-child {
  padding: 8px 4px 8px 8px;
}
.game_flash_player_inner.right .game_flash_team p:first-child {
  padding: 8px 8px 8px 4px;
}
.game_flash_player_inner.left .game_flash_team_name:last-child::before {
  border-width: 63px 5px 35px 0;
}
.game_flash_player_inner.right .game_flash_team_name:first-child::after {
  border-width: 63px 0 35px 5px;
}

@media screen and (max-width: 480px) {
  .game_flash_player_name .game_flash_player_text {
    line-height: 1;
  }
}

/* 成績データ */
.game_record_pitcher_table table thead tr th:first-child {
  width: 23%;
}
.game_record_pitcher_table table thead tr th:nth-child(2) {
  width: 13%;
}
.game_record_pitcher_table
  table
  thead
  tr
  th:nth-child(n + 3):nth-child(-n + 4) {
  width: 12%;
}
.game_record_pitcher_table table thead tr th:nth-child(n + 5) {
  width: 8%;
}
.game_record_pitcher_table table tr th:nth-child(2),
.game_record_pitcher_table table tr td:nth-child(2) {
  padding-left: 0;
  text-align: center;
}
.game_record_pitcher_table table thead tr th {
  padding: 8px 0;
}
.game_record_pitcher_table table thead tr th span {
  display: block;
}
.game_record_pitcher_table table tbody tr td {
  padding: 6px 0;
}
.game_record_info table tr:first-child {
  border-top: none;
}

@media screen and (max-width: 375px) {
  .game_record_pitcher_table table thead th:nth-child(n + 3) span {
    display: inline;
    width: auto;
    line-height: 1.3;
    writing-mode: vertical-rl;
  }
}

/* メンバー */
.game_member_head {
  background-color: #3a3a3a;
}

/* 一球速報 */
.game_result_tab.type03 .game_result_tab_btn a br {
  display: none;
}
@media screen and (max-width: 359px) {
  .game_result_tab.type03 .game_result_tab_btn a br {
    display: block;
  }
}

.game_chart_score {
  width: auto;
  margin: 0 auto 1px;
  padding-left: 10px;
}
.game_chart_round {
  font-size: 15px;
  margin-bottom: 2px;
}
.game_chart_board .game_chart_board_item {
  width: calc(100% / 3) !important;
}
.game_chart_board .game_chart_board_item .game_chart_score_item {
  position: relative;
  font-size: 16px;
}
.game_chart_board .game_chart_board_item .game_chart_score_item.top {
  margin-bottom: 1px;
}
.game_chart_board_item .game_chart_score_item.on::after {
  position: absolute;
  content: "";
  top: 0.5px;
  bottom: 0.5px;
  left: -10px;
  width: 4px;
  background-color: #ca0030;
  border-radius: 2px;
}
@media screen and (min-width: 540px) {
  .game_chart_board .game_chart_board_item {
    width: 100% !important;
  }
}

.game_chart_score_item {
  display: table;
  margin: 0 auto;
}
.game_chart_score_team,
.game_chart_score_num {
  display: table-cell;
  vertical-align: middle;
}
.game_chart_score_num {
  width: 22px;
  text-align: right;
}
.game_chart_score_item .game_chart_score_team {
  width: 3.1em;
  padding-right: 3px;
}
.game_chart_base span {
  width: 24px;
  height: 24px;
}
.game_chart_icon_list {
  bottom: 12px;
}

@media screen and (max-width: 359px) {
  .game_chart_board .game_chart_board_item {
    width: 35% !important;
  }
  .game_chart_board .game_chart_board_item:last-child {
    width: 30% !important;
  }
  .game_chart_base span {
    width: 22px;
    height: 22px;
  }
}
@media screen and (min-width: 540px) {
  .game_chart_count table td:not(:first-child)::after {
    width: 13.5px;
    height: 13.5px;
  }
  .game_chart_base span {
    width: 29px;
    height: 29px;
  }
  .game_chart_base .first {
    transform: scaleY(0.7) rotate(45deg) translate(-3px, 0);
  }
  .game_chart_base .second {
    transform: scaleY(0.7) rotate(45deg) translate(3px, 3px);
  }
  .game_chart_base .third {
    transform: scaleY(0.7) rotate(45deg) translate(0, -3px);
  }
  .game_chart_icon_list {
    bottom: 22.5px;
  }
}

/* ***************************
ダークモード
*************************** */
@media (prefers-color-scheme: dark) {
  html.dmenu_sports_app
    .genre_btn
    .genre_btn_item.disabled
    .genre_btn_link_large {
    color: #666 !important;
  }

  html.dmenu_sports_app .latest-info__btn {
    border-color: #7ac8ff !important;
    background-color: #2a2a2a;
  }

  html.dmenu_sports_app .tournament-list__link {
    background-color: #3f3f3f;
    color: #fff;
  }
  html.dmenu_sports_app .game_kv_scoretable tbody tr td.current a:link {
    color: #efe208 !important;
  }
}
/* ***************************
アプリ
*************************** */
/* トップへ戻る */
html.dmenu_sports_app .fot_goTop {
  bottom: 138px !important;
}
/* トップへ戻る（高校野球トップ調整） */
html.dmenu_sports_app .baseball_high-index .fot_goTop {
  bottom: 78px !important;
}

/* オーバーレイ広告 表示位置修正 */
html.dmenu_sports_app .overlay_contents.nav_hight {
  bottom: 60px !important;
}

/* フローティングナビ */
html.dmenu_sports_app .fotmenu {
  display: block;
}

/* ***************************
ユーティリティ
*************************** */
.is_hide {
  display: none !important;
}

.is-show {
  display: block !important;
}
