@charset "utf-8";

area {
  outline-style: none;
}

/*その他と主な共通部分は省略*/
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

a.btn-flat {
  overflow: hidden;

  padding: 1.5rem 6rem;

  color: #fff;
  border-radius: 0;
  background: #880000;
}

a.btn-flat span {
  position: relative;
  z-index: 1;
}

a.btn-flat:before {
  position: absolute;
  top: 0;
  left: calc(-150% + 50px);

  width: 150%;
  height: 500%;

  content: "";
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-transform: rotate(45deg) translateX(0) translateY(0);
  transform: rotate(45deg) translateX(0) translateY(0);

  background: #0c0404;
}

a.btn-flat:after {
  position: absolute;
  top: -400%;
  right: calc(-150% + 50px);

  width: 150%;
  height: 500%;

  content: "";
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-transform: rotate(45deg) translateX(0) translateY(0);
  transform: rotate(45deg) translateX(0) translateY(0);

  background: #0c0404;
}

a.btn-flat:hover:before {
  -webkit-transform: rotate(45deg) translateX(0) translateY(-50%);
  transform: rotate(45deg) translateX(0) translateY(-50%);
}

a.btn-flat:hover:after {
  -webkit-transform: rotate(45deg) translateX(0) translateY(50%);
  transform: rotate(45deg) translateX(0) translateY(50%);
}

.center {
  text-align: center !important;
}

.img-box img {
  max-width: 100%;
}

.midashi {
  position: relative;
  padding: 10px;
  color: #fff;
  background: #880000;

  display: inline-block;
  margin-top: 20px;
  font-size: 20px;
}

.w100 {
  max-width: 100%;
}

.margin-t-20 {
  margin-top: 20px;
}

.margin-b-20 {
  margin-bottom: 20px;
}

.sentence {
  border: 2px solid #880000;
  padding: 5px;
  margin-bottom: 10px;
}

/* タブ内の見出し（■一次予選など）のスタイル */
.border {
  display: inline-block;
  background-image: none !important; /* グラデーションを削除 */
  background-color: #8b0000; /* 背景色をグレーに */
  color: #ffd700 !important; /* 文字色 */
  padding: 8px 16px !important;
  margin-bottom: 1rem !important;
  font-weight: 700;
  border-radius: 0.25rem;
}

.floating-banner {
  position: fixed;
  z-index: 99999;
  bottom: 0;
  text-align: center;
  width: 100%;
}
.floating-banner:hover {
  opacity: 0.9;
}

.margin-top40 {
  margin-top: 40px;
}

.tab_container {
  background-color: #ffffff !important; /* 背景を白に */
  border: 1px solid #d1d5db !important; /* トーナメント表に合わせた枠線 */
  border-radius: 0.5rem; /* 角を丸くする */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* 影をつける */
  padding-bottom: 0 !important;
  overflow: hidden;
}
.tab_item {
  width: calc(100% / 3);
  padding: 15px 0;
  border-bottom: 1px solid #d1d5db !important; /* 区切り線をトーナメントの枠線と合わせる */
  background-color: #8b0000 !important;
  text-align: center;
  color: #ffd700 !important;
  display: block;
  float: left;
  font-weight: bold;
  transition: all 0.2s ease;
}
.tab_item:hover {
  opacity: 0.75;
}
input[name="tab_item"] {
  display: none;
}
.tab_content {
  display: none;
  padding: 2rem !important; /* 内側の余白を広くとる */
  clear: both;
  overflow: hidden;
}
#tab1:checked ~ #tab1_content,
#tab2:checked ~ #tab2_content,
#tab3:checked ~ #tab3_content,
#tab4:checked ~ #tab4_content {
  display: block;
}
.tab_container input:checked + .tab_item {
  background-color: #ffffff !important; /* 選択されているタブの背景を白に */
  color: #6a1c23 !important; /* 文字色を濃くして強調 */
  border-bottom-color: #ffffff !important; /* 下の線を消して一体感を出す */
  margin-bottom: -1px; /* コンテンツとタブを繋げる */
  z-index: 10;
}
.Bnr {
  position: relative;
  margin: 0 auto;
  width: 450px;
  display: none;
  font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}

.Bnr .Bnr__img {
  position: fixed;
  bottom: 0;

  z-index: 88;
}

.Bnr__img__inner {
  width: 600px;
  box-sizing: border-box;
  padding: 10px;
}

.Bnr .Bnr__img__inner a {
  display: block;
}

.Bnr .Bnr__img p.close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.Bnr .Bnr__img p.close a {
  display: block;
  width: 20px;
  height: 25px;
  text-align: center;
}

.Bnr .Bnr__img p.close a span {
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.Bnr .Bnr__img p.close a i {
  font-size: 20px;
  z-index: 888;
  color: black;
}

.live_shogi_tbl {
  width: 100%;
  border: 1px solid #d1d5db !important;
  border-collapse: separate !important;
  border-spacing: 0;
  margin-top: 1.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
}

.live_shogi_tbl th.cols {
  background-color: #8b0000 !important;
  color: #ffd700 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #8b0000; /* Add subtle right border */
  padding: 1.25rem !important;
  font-weight: bold;
}

.live_shogi_tbl th.cols:last-child {
  border-right: 0;
}

.live_shogi_tbl td {
  border-left: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  padding: 1.25rem !important;
}

.live_shogi_tbl tr td:first-child,
.live_shogi_tbl tr th:first-child {
  border-left: 0 !important;
}

.margin-top-10 {
  margin-top: 10px;
}

/* 550pxまで適用 */
@media screen and (max-width: 550px) {
  .add {
    width: 100%;
    height: 100%;
  }
  .Bnr__img__inner {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
  }
}

@media screen and (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .add {
    width: 710px;
    height: 100%;
  }
}
