/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f3f4f6;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 10px;
}

/* タイトルエリアスタイル */
#title {
  text-align: center;
  margin-bottom: 20px;
}

#title h1 {
  font-size: 2.5rem;
  color: #007bff;
  font-weight: bold;
}

#title h2 {
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

#title a {
  color: #007bff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

#title a:hover {
  color: #0056b3;
}

/* ナビゲーションスタイル */
nav {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 20px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a,
nav ul li {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

nav ul li a:hover {
  color: #007bff;
}

nav ul input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 10px;
  width: 100%;
  max-width: 200px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

nav ul li button {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 8px 15px;
  transition: background-color 0.3s ease;
}

nav ul li button:hover {
  background-color: #e1e1e1;
}

/* ゲーム説明エリアスタイル */
.gamerule {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-bottom: 30px;
}

.gamerule h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

.gamerule h2 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 10px;
}

.gamerule p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* モード説明エリアスタイル */
.moderule {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin-bottom: 30px;
  margin-top: 30px;
}

.moderule h2 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 15px;
}

.moderule p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
  #title h1 {
    font-size: 2rem;
  }

  .gamerule h1 {
    font-size: 1.5rem;
  }

  .gamerule p {
    font-size: 0.9rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  nav ul input {
    font-size: 0.9rem;
    width: 100%;
  }

  #title a {
    font-size: 0.9rem;
  }
}
/* CSS */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333; /* フッターの背景色 */
  color: #fff; /* テキストの色 */
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer a {
  color: #0d6efd; /* リンク色 */
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}
