body {
  margin: 0;
  font-family: sans-serif;
  padding-top: 100px;
  /* ヘッダー高さ分 */

}

header {
  position: fixed;
  /* スクロールしても固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #4cafef;
  /* 初期は不透明 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background 0.3s ease;
  /* 背景色をなめらかに変化 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header.scrolled {
  background: rgba(76, 175, 239, 0.8);
  /* 半透明 */
}

.header-left {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  position: absolute;
  top: auto;
  left: 1%;
  width: 60px;
  ;
  padding: 5px;
  top: 10px;
}



#nishikosai {
  /* 中央に配置 */
  font-size: 2.5em;
  font-family: "Zen Antique", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;

  top: -10px;
  text-align: center;
  height: 80px;


}

@media (max-width: 768px) {
  header {
    height: 70px;
    padding: 10px 0;
  }

  .logo {
    top: 0;
  }

  body {
    padding-top: 70px;
  }

}

.maintext {
  font-size: xx-large;
  font-weight: bolder;
  text-align: center;
  margin-top: 20px;
}

#subtext {
  text-align: center;
}



.googlemap {

  right: 3%;
  size: 60%;
  color: white;
}

#footer {
  background-color: rgb(44, 44, 65);
  color: white;
  font-family: HG正楷書体-PRO;
  margin: 0;
}



footer {
  background-color: rgb(44, 44, 65);
  /* 背景を濃紺 */
  color: white;
  /* 文字を白に */
  padding: 20px;
  text-align: center;
  border-top: 2px solid white;
  /* 上の境界線を白 */
  margin: 0;
  /* 余計な隙間をなくす */
}



#botton-sentence {
  bottom: 0.1%;
  text-align: center;
}

.map {
  text-align: center;
  color: white;

}

.link {
  color: white;
  text-align: center;
}

.about-us {
  text-align: center;
}

h2 {
  display: block;
  font-size: 1.5em;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;

}

#contents {
  text-align: center;
}

.index-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* PC: 横12枚 */
  gap: 10px;
  justify-items: center;
}

/* 画像サイズ調整 */
.index-container img {
  width: 100%;
  /* グリッドに合わせて可変 */
  height: auto;
  max-width: 300px;
  /* 最大幅制限 */
}

/* スマホ表示時（幅768px以下） */
@media (max-width: 768px) {
  .index-container {
    grid-template-columns: repeat(5, 1fr);
    /* スマホ: 横枚 */
  }
}

.rule {
  font-family: sans-serif;
}

/* 競技規定 */
.sports-rule {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 25px;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;

}


/* --- 全体枠を中央に --- */
#sports-rules.sr-widget {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  max-width: 800px;
  /* 横幅をそろえる */
  margin: 0 auto 2rem auto;
  /* 中央寄せ＆下に余白 */
  border: 1.5px solid #bbb;
  border-radius: 8px;
  padding: 20px 24px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- 見出し（競技規定タイトル）に合わせた感じ --- */
#sports-rules h2 {
  margin: 8px 0 10px;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 2px solid #000;
  display: inline-block;
  padding-bottom: 2px;
}

/* --- タブ部分をすっきり中央寄せ --- */
#sports-rules .sr-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* --- タブデザイン --- */
#sports-rules .sr-tabs button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid #aaa;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}

#sports-rules .sr-tabs button:hover {
  background: #e9f0ff;
}

#sports-rules .sr-tabs button[aria-selected="true"] {
  background: #1a73e8;
  color: #fff;
  border-color: #1863c6;
}

/* --- コンテンツ部分 --- */
#sports-rules .sr-content {
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

#sports-rules ul {
  margin: 0 0 10px 1.2rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- フッター注記 --- */
#sports-rules .sr-footer {
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 10px;
  text-align: right;
  color: #666;
  font-size: 0.85rem;
}

/* --- スマホ対応 --- */
@media (max-width: 600px) {
  #sports-rules {
    padding: 16px;
  }

  #sports-rules .sr-tabs button {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}


/* 球技大会実施要項スタイル */
.sports-tournament {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  color: #222;
  margin: 40px auto;
  max-width: 900px;
  padding-left: 10px;
  padding-right: 10px;
}

.sports-tournament h1 {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 25px;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
}

.sports-tournament ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}

.sports-tournament table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
}

.sports-tournament th,
.sports-tournament td {
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}

.sports-tournament th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.sports-tournament .note {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 30px;
}

.sports-tournament h3 {
  font-size: 1.2em;
  margin-top: 30px;
  margin-bottom: 10px;
  border-left: 5px solid #444;
  padding-left: 8px;
}

/* 球技大会実施要項 */
.sports-tournament {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  color: #222;
  margin: 40px auto;
  max-width: 1000px;
}

.sports-tournament h1 {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 25px;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
}

.sports-tournament ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}

.sports-tournament table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
}

.sports-tournament th,
.sports-tournament td {
  border: 1px solid #333;
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

.sports-tournament th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.sports-tournament .member-row td {
  background-color: #fafafa;
  font-weight: bold;
}

.sports-tournament .note {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 30px;
}

.sports-tournament h3 {
  font-size: 1.2em;
  margin-top: 30px;
  margin-bottom: 10px;
  border-left: 5px solid #444;
  padding-left: 8px;
}

/* 表やリストのデザイン */
.sports-tournament .role-table,
.sports-tournament .changing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95em;
}

.sports-tournament .role-table th,
.sports-tournament .role-table td,
.sports-tournament .changing-table th,
.sports-tournament .changing-table td {
  border: 1px solid #444;
  padding: 6px;
  text-align: center;
}

.sports-tournament .role-table th,
.sports-tournament .changing-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.sports-tournament ul {
  margin-left: 1.2em;
  list-style-type: "・ ";
}

.sports-tournament ol {
  margin-left: 1.3em;
}

/* スマホ対応
@media (max-width: 768px) {
  .sports-tournament table {
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sports-tournament ul li,
  .sports-tournament ol li {
    margin-bottom: 4px;
  }
} */









/* 追加部分（2ページ目相当） */
.sports-tournament h4 {
  font-size: 1.05em;
  margin-top: 20px;
  margin-bottom: 8px;
  text-decoration: underline;
}

.sports-tournament ul {
  margin-left: 1.5em;
  list-style-type: "・ ";
}

.sports-tournament .score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95em;
}

.sports-tournament .score-table th,
.sports-tournament .score-table td {
  border: 1px solid #333;
  padding: 6px;
  text-align: center;
}

.sports-tournament .score-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}


.table-scroll {
  overflow-x: auto;
  /* 横スクロールを有効化 */
  -webkit-overflow-scrolling: touch;
  /* スマホでスムーズスクロール */
  max-width: 100%;
  /* ページ幅を超えないように */
}

.tournament-table {
  min-width: 800px;
  /* 横幅を広めにしてスクロール発生させる */
  border-collapse: collapse;
}

.tournament-table th,
.tournament-table td {
  border: 1px solid #ccc;
  padding: 8px;
  white-space: nowrap;
  /* 折り返さず横に伸ばす */
}