html {
  font-size: 100%;
}

body {
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ヘッダーのスタイリング */
#header {
  background-color: #4caf50; /* 背景色を設定 */
  color: white; /* テキストを白く */
  text-align: center; /* テキストを中央揃え */
  padding: 20px 0; /* 上下の余白を設定 */
  font-size: 2rem; /* 大きなフォントサイズ */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影をつける */
}

#header h1 {
  border-bottom: solid 3px skyblue ;
}

/* テーブルの基本デザイン */
table {
  width: 80%; /* テーブル幅 */
  margin: 20px auto; /* 中央揃え */
  border-collapse: collapse; /* 枠線の重複をなくす */
  font-size: 1rem; /* フォントサイズ */
  text-align: left; /* テキストは左揃え */
  background: #f9f9f9; /* 背景色 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* テーブル全体に影を付ける */
}

/* セルのスタイリング */
table th, table td {
  padding: 15px; /* セル内の余白 */
  border: 1px solid #ddd; /* 枠線を設定 */
}

table th {
  background-color: #4caf50; /* ヘッダーの背景色 */
  color: white; /* ヘッダーのテキスト色 */
}

table tr:nth-child(even) {
  background-color: #f2f2f2; /* 偶数行に背景色を付ける */
}

/* 回答セルの強調 */
table td.color {
  color: #4caf50; /* 回答を目立たせる色 */
  font-weight: bold; /* 強調 */
}

footer {
  text-align: center; /* 中央揃え */
  margin-top: 40px; /* 上部に余白を追加 */
  padding: 10px 0; /* 上下の余白を設定 */
  background-color: #4caf50; /* 背景色 */
  color: white; /* テキスト色 */
}

/* ボタンのスタイリング */
footer .button {
  display: inline-block;
  padding: 10px 20px; /* ボタンの内側余白 */
  background-color: #ffffff; /* 背景色を白に */
  color: #4caf50; /* テキスト色を統一 */
  border: 2px solid #4caf50; /* ボーダーを追加 */
  border-radius: 5px; /* 角丸ボタン */
  text-decoration: none; /* 下線を消す */
  font-weight: bold;
  transition: all 0.3s ease; /* ホバー時のアニメーション */
}

footer .button:hover {
  background-color: #4caf50; /* ホバーで色を反転 */
  color: #ffffff; /* テキストを白く */
}

@media (max-width: 768px) {
  /* ヘッダー */
  #header {
    font-size: 1.2rem;
  }

  /* テーブル */
  table {
    width: 100%;
  }

  table th, table td {
    padding: 10px;
  }

  footer .button {
    padding: 6px 12px;
  }
}