
/* 画面全体：背景画像（幅は画面サイズ、全面表示） */
html, body {
  height: 100%;
}
body {
  margin: 0;
  background-image: url("../img/bg.png");
  background-repeat: repeat;
  background-position: center center;
  background-size: cover; /* 画面サイズにフィット */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
  color: #111;
}

/* タイトル背景 */
.header {
  position: relative;
}

.title {
  position: relative;
  height: 220px;
  background: url("../img/no_top.png") left/ cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}


/* 右寄せ画像 */
.image1 {
  position: absolute;
  right: 24px;
  top: 20px;

  width: 200px;
  height: 200px;

  object-fit: contain;   /* ★ 全体を収める */
  object-position: center;

  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.site-title {
  position: relative;
  z-index: 1;
  padding: 0 0 6vw 200px;
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* メインエリア */
.main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 16px;
}

/* テーブルAとBを横並び */
.tab_pr,
.tables {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap; /* 狭い画面では折り返し */
}

.tab-block_pr,
.table-block {
  background: transparent;   /* 背景を透明に */
  color: #F2D5BB;            /* 文字色を指定 */
  border: none;              /* ボーダーなし */
  padding: 0px 16px;
  width: clamp(280px, 40vw, 520px);
}

/* 5行x3列のグリッドテーブル */
.grid-pr,
.grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.grid-pr tr ,
.grid-table tr {
  height: 48px;
  font-size: 22px;
     /*- border-bottom: 1px solid #F2D5BB; /* 行間の罫線 */
}
.grid-table td {
  text-align: center;
  font-weight: 600;
  color: #F2D5BB;            /* 文字色を指定 */ 
    
   
}

/* 列幅指定 */
.grid-pr td:nth-child(1),
.grid-table td:nth-child(1) {
  width: 30%;
    font-family:Tahoma, Geneva, "sans-serif";
    font-weight: 600;
    font-size: 22px
}
.grid-pr td:nth-child(2),
.grid-table td:nth-child(2) {
  width: 10%;
}
.grid-pr td:nth-child(3),
.grid-table td:nth-child(3) {
  width: 60%;
  text-align: left;          /* 左寄せ */
  padding-left: 15px;        /* 左パディング */
}

/* 右ブロック中身 */
.table-block #result {
  position: relative; /* 擬似要素用 */
  background: #ffffff;
  color: #111;
  padding: 20px;
  border-radius: 10px;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* 背景画像（薄く表示） */
.table-block #result::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* 画面に合わせる */
  opacity: 0.08;            /* ★ 薄さ調整 */
  pointer-events: none;
  z-index: 0;
}

/* 中身は手前に */
.table-block #result > * {
  position: relative;
  z-index: 1;
}


/* 検索キーを目立たせる */
.result-key {
  display: inline-block;
  background: #D00003;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* 結果カード */
.result-item {
  padding: 12px 0;
  border-bottom: 1px solid #D00003;
}
.result-item:last-child {
  border-bottom: none;
}

.result-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.result-line {
  font-size: 15px;
}

.result-title-link {
  color: inherit;          /* タイトルと同色 */
  text-decoration: underline;
  font-weight: 700;
}

.result-title-link:hover {
  opacity: 0.75;
}
/* ===== バッジをボタン風に ===== */

.result-title .badge-link {
  display: inline-block;
  margin-left: 8px;
  text-decoration: none;
}

.result-title .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;              /* タップしやすさ */
  padding: 4px 14px;

  font-size: 0.75em;
  font-weight: 700;

  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e6ecf3);
  color: #333;

  border: 1px solid #cfd8e3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);

  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

/* PC hover */
@media (hover: hover) {
  .result-title .badge-link:hover .badge {
    background: linear-gradient(180deg, #f7faff, #dde6f1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transform: translateY(-1px);
  }
}

/* 押した感 */
.result-title .badge-link:active .badge {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.nav-row {
  background-color: #183542;
  max-width: 960px; 
  display: flex;
  justify-content: space-between;
  margin: 20px auto; 
}

.nav-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef2f7;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}

.nav-btn:hover {
  background: #dde4ee;
}

.nav-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}



/* フェードイン用 */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* 初期状態（PC想定） */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}
.sp-only-br {
  display: none;
}

/* 全体 */
.number-nav {
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  align-items: center;
}

/* 番号ブロック */
.number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

/* 番号リンク */
.number-list a {
  display: inline-block;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.number-list a:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* 現在の番号（JSで付与） */
.number-list a.active {
  background:#D00003;
  color: #fff;
}

/* 前後ボタン調整 */
.nav-btn {
  white-space: nowrap;
}

.number-group {
  width: 80%;
  margin: 0px auto; 
}

.group-header {
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 700;
  background: #000;
  border-radius: 10px;
  margin-bottom: 6px;
    color: aliceblue
}

.group-header::after {
  content: "▼";
  float: right;
  font-size: 0.8em;
  transition: transform 0.2s;
}

.number-group.closed .group-header::after {
  transform: rotate(-90deg);
}

.number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.number-group.closed .number-list {
  display: none;
}


/* ===== 検索結果リスト ===== */
.result-list {
  max-height: 100vh;          /* 画面の7割 */
  overflow-y: auto;
  padding-right: 6px;
}

/* スクロールバー（Webkit） */
.result-list::-webkit-scrollbar {
  width: 8px;
}
.result-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* ページャ */
.result-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.result-pager button {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: #eef2f7;
  font-weight: 600;
  cursor: pointer;
}

.result-pager button.active {
  background: #D00003;
  color: #fff;
}

.result-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}
/* スマホ用戻るボタン */
.sp-back-btn {
  display: none;
}

/* 出場試合 注釈 */
.result-note {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: #999;
}


/* スマホ調整 */
@media (max-width: 768px) {
    
 .tables {
    flex-direction: column;
  }

  .table-block {
    width: 100%;
  }
    
    
  .number-nav {
    justify-content: center;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
  }

  .title {
    height: 140px;
  }

  .image1 {
    width: 22vw;
    right: 16px;
  top: 2px;
  }
    
.site-title {
    padding: 0 4vw 5vw 4vw;  /* 下寄せ＋左右vw */
    text-align: center;
 }    
    

  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }
  .sp-only-br {
    display: inline;
  }

  .tables .left-block {
    display: block;
  }

  .tables .right-block {
    display: none !important;
  }

  /* show-result が付いた時だけ右を表示 */
  .tables.show-result .left-block {
    display: none !important;
  }

  .tables.show-result .right-block {
    display: block !important;
  }

  /* 戻るボタン */
  .sp-back-btn {
    display: block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #183542;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
        position: relative;
  z-index: 10;

  }
}

