header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #eee;
      padding: 10px 20px;
    }

.menu-icon {
      font-size: 40px;
      cursor: pointer;
    }

.title {
      font-weight: bold;
      font-size: 20px;
}

.menu-links {
      display: none;
      flex-direction: column;
      background-color: #fff;
      border: 1px solid #ccc;
      position: absolute;
      top: 50px;
      left: 20px;
      padding: 10px;
      z-index: 100;
}

.menu-links a {
      text-decoration: none;
      color: #333;
      margin: 5px 0;
    }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfaf5;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.main-container {
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eee;
  padding: 10px 20px;
}


.search-bar {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.search-bar input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar button {
  padding: 8px 16px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tournament-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tournament-item {
  display: block;
  width: 80%;
  max-width: 500px;
  margin: 10px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background-color: #fff;
}

.tournament-item:hover {
  background-color: #f0f0f0;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px;
}

.school-name {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
  }

  .menu-links {
    position: static;
    width: 100%;
  }

  .tournament-item {
    font-size: 16px;
    padding: 8px;
  }

  .pagination {
    flex-direction: column;
    gap: 10px;
  }
}
/* 縦一列レイアウト（大会カードを上下に並べる） */
.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 12px;            /* カード間の余白 */
  margin-top: 12px;
  align-items: stretch; /* 子要素を横幅いっぱいに伸ばす */
}

/* カードを横幅いっぱいに広げる */
.tournament-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* カード内の見た目調整（必要に応じて縮める） */
.tournament-item h3 { margin: 0 0 6px 0; font-size: 1rem; }
.tournament-item p { margin: 0; color: #666; font-size: 0.95rem; }

/* ページ幅が狭いときの余白調整 */
@media (max-width: 640px) {
  .tournament-list { gap: 10px; }
  .tournament-item { padding: 10px; border-radius: 6px; }
  .tournament-item h3 { font-size: 0.98rem; }
}
/* CSS */
.menu-links { display: none; }
.menu-links.open { display: flex; }