@media screen and (min-width: 1025px) {
  #baseball #header-wrapper-sp {
    display: none;
  }
}
@media screen and (max-width: 1024px) {
  body {
    min-width: 100dvw !important;
  }
  #header-wrapper {
    display: none;
  }
  #header-wrapper-sp {
    display: block;
    width: 100%;
    background-color: var(--primary-color) !important;
  }
  #scoreDiv {
    display: none;
  }
  .dark #header-wrapper-sp {
    background-color: #22481f !important;
  }
  .theme .theme-style {
    background-color: #205c04 !important;
  }
  .dark #header-wrapper-sp .theme-style:before {
    left: 50%;
    background-image: url(../../images/dark.png);
    background-repeat: no-repeat;
    background-color: #fff;
  }
  .swiperMenu-baseball .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .swiperMenu-baseball .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  #header-wrapper-sp .topBar-sp {
    height: 24px;
    padding: 12px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool {
    margin-left: 8px;
    height: 20px;
    margin-top: 2px;
  }

  #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool img {
    margin-left: 0px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp .Choose-tool {
    margin-right: 8px;
    height: 20px;
  }

  body #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool .img-tool {
    border-radius: 0 !important;
  }

  #header-wrapper-sp .topBar-sp .size-20 {
    height: 20px;
    width: 20px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  #header-wrapper-sp .topBar-middle-sp a img {
    height: 24px;
  }

  #header-wrapper-sp .topBar-middle-sp a {
    display: inline-block;
  }

  #header-wrapper-sp .mainBar-sp {
    padding: 0 8px;
  }

  #header-wrapper-sp .mainBar-sp .authBox {
    display: flex;
    justify-content: space-between;
  }

  #header-wrapper-sp .mainBar-sp .authBox > div {
    width: calc(100%);
    height: 36px;
    padding: 8px 24px;
    border: none;
  }

  #header-wrapper-sp .menu-icon {
    display: flex;
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
  }

  .dark #menuSp {
    background-color: #030405;
  }

  .bottomBar-sp {
    padding: 11px 8px 11px 8px;
    background-color: #e5e5e5;
    transform: translateY(1px);
  }

  .dark .bottomBar-sp {
    background-color: #030405;
  }

  .bottomBar-sp #menuSp .sp-item-menu {
    /*display: inline-block;*/
    padding: 6px;
    border-radius: 4px;
    background-color: #f2f2f2;
  }

  .swiperMenu {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  .bottomBar-sp #menuSp .sp-item-menu a {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 44px;
  }

  .swiper-slide a {
    text-decoration: none !important;
  }
  #menuSp .swiperMenu .swiper-wrapper {
    display: grid;
    scroll-snap-type: x proximity;
    grid-template-columns: repeat(6, minmax(63px, 1fr));
    gap: 4px;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #menuSp .swiperMenu .swiper-wrapper::-webkit-scrollbar {
    display: none;
  }

  #menuSp .swiperMenu .swiper-slide {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .menuMainSp .swiperMainMenu .swiper-slide {
    width: 76px;
    margin-right: 4px;
  }
  #menuSp .swiperMatchList .swiper-slide {
    width: 192px;
  }

  .bottomBar-sp #menuSp .swiper-box-icon {
    width: 100%;
    padding-bottom: 2px;
    height: 22px;
    margin-right: 0;
    text-align: center;
  }

  .bottomBar-sp #menuSp .swiper-box-icon img {
    width: 20px;
  }

  .bottomBar-sp #menuSp .sp-item-menu span {
    font-size: 10px;
    height: 100%;
    line-height: 1.1;
    flex-shrink: 1;
    flex-grow: 1;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu {
    background-color: #eff9ea;
  }

  .dark .bottomBar-sp #menuSp .sp-item-menu {
    background-color: #1a1a1a;
  }

  .dark .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu {
    background-color: #374033;
    justify-content: center;
  }

  .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu span {
    color: #005030;
    font-weight: 600;
  }
  .dark
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    span {
    color: #10e18d;
  }

  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide
    .sp-item-menu
    .swiper-menu-icon.icon-dark,
  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active),
  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide:not(.swiper-slide-active)
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active) {
    display: none;
  }

  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide
    .sp-item-menu
    .swiper-menu-icon:not(.icon-dark),
  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active),
  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide:not(.swiper-slide-active)
    .sp-item-menu
    .swiper-menu-icon.icon-active {
    display: none;
  }

  /* .bottomBar-sp #menuSp .swiper-slide */

  #topAdDiv {
    display: none;
  }

  .bottomBar-sp
    #menuSp
    .swiperMenu
    .swiper-slide
    .sp-item-menu.active-menu
    .swiper-menu-icon {
    display: none;
  }

  .bottomBar-sp
    #menuSp
    .swiperMenu
    .swiper-slide
    .sp-item-menu.active-menu
    .swiper-menu-icon.icon-active {
    display: inline;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp .theme-div {
    margin: 0;
  }

  #menuMainSw {
    margin-bottom: 9px;
  }

  #menuMainSw .swiper-box {
    flex-direction: column;
    height: 44px;
    padding: 7px 6px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .menuMainSp {
    width: 100%;
    overflow: hidden;
  }

  #menuMainSw .swiper-box-icon {
    width: 28px;
    height: 28px;
    margin-right: 0;
    margin-bottom: 4px;
  }
  #menuMainSw .swiper-wrapper {
    gap: 4px;
  }
  #menuMainSw .swiper-slide {
    width: auto;
    flex: 1;
    margin-right: 0 !important;
  }

  #menuMainSw .swiper-box {
    display: flex;
    flex-direction: column;
    height: 44px;
    padding: 7px 6px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    animation: 0.5s;
    background-color: #205c04;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .dark #menuMainSw .swiper-box {
    background-color: #1c1e1b;
  }

  #menuMainSw .swiper-box.active {
    background-color: #ffffff;
  }

  #menuMainSw .swiper-box.active span {
    color: #005030;
    font-weight: 700;
  }

  .dark #menuMainSw .swiper-box:not(.active) span {
    color: #bbbbbb;
  }

  #menuMainSw .swiper-box:not(.active) .swiper-menu-icon.icon-active {
    display: none;
  }

  #menuMainSw .swiper-box.active .swiper-menu-icon:not(.icon-active) {
    display: none;
  }

  #menuMainSw .swiper-box span {
    font-size: 10px;
    text-align: center;
    letter-spacing: 0.3px;
    color: #99b9ac;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #baseball #tools {
    display: none;
  }

  #baseball #left,
  #baseball #right {
    display: none;
  }
  .mcontent {
    width: 100%;
    max-width: 100%;
  }
  .crumbs {
    display: none !important;
    width: 100% !important;
  }
  #main {
    width: 100%;
  }
  #main #min {
    width: 100%;
    max-width: 100%;
    float: none;
    box-sizing: border-box;
  }

  #main #min #Layer1 {
    display: none;
  }
  .footer .bottom {
    box-sizing: border-box;
    flex-direction: column;
    padding: 20px 8px;
    width: 100%;
  }

  #baseball #info {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  #baseball #info .divList {
    margin: 0;
    width: auto;
    float: none;
  }
  #baseball .div_inner_bottom_span_ul {
    z-index: 50;
    top: calc(100% + 10px);
    width: 267px;
    height: auto;
    overflow-y: auto;
    left: 0;
  }

  #baseball #teammain {
    width: 100dvw !important;
    box-sizing: border-box;
  }
  #baseball #div_ad_float,
  #baseball #searchWin {
    display: none;
  }
  #baseball #Layer1 #showoptional2,
  #baseball #Layer1 #showCountry {
    width: calc(100dvw - 20px);
    left: 0;
  }
  #showoptional2 li label,
  #countryListDiv li label,
  #showoptional li label,
  #showCompany li label {
    width: 88%;
  }

  #baseball .rbl {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #baseball .rbl::-webkit-scrollbar {
    scrollbar-width: none;
  }

  #baseball .rbl span.el-radio-style {
    white-space: nowrap;
  }
}

@media screen and (max-width: 460px) {

  #showoptional2 ul {
    display: flex;
    flex-direction: column;
  }
   #showoptional2 ul li {
    width: 100%;
   }
}


