/* univ-exam/kyouTe/style.css */

.question-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    padding: 1em;
    margin: 1em 0;
    background-color: #fff;
  }
  
  .question-card hr {
    margin: 1em 0;
    border: none;
    border-top: 1px solid #ccc;
  }
  
  .question-card input[type="button"] {
    background-color: #006699;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5em;
  }
  
  .question-card input[type="button"]:hover {
    background-color: #004466;
  }
  
  #kyoute-container {
    max-width: 900px;
    margin: auto;
  }
  
  #kyoute-container p span {
    font-weight: bold;
  }
  
  #kyoute-container p {
    line-height: 1.6;
  }
  
  /* 共通テスト 正誤問題カード風レイアウト */
  .exam-question {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1em;
    margin: 1.2em 0;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    line-height: 1.6;
  }
  
  /* 質問番号（Q1など）の見た目をやや強調 */
  .exam-question span[style*="color:brown"] {
    font-weight: bold;
    font-size: 1.05em;
    display: inline-block;
    margin-bottom: 0.5em;
  }
  
  /* 表示/非表示切り替えボタン */
  .exam-question input[type="button"] {
    background-color: #006699;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-top: 0.5em;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .exam-question input[type="button"]:hover {
    background-color: #004466;
  }
  
  /* ✅ 分野タブ・単元タブ共通の親 */
  .category-tab {
    margin: 0.8em 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }
  
/* 上段 分野タブの見た目 */
#subject-tabs {
    background-color: #e0e7ff;
    padding: 0.5em;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
}
#subject-tabs button {
    background-color: #eee;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}
#subject-tabs button:hover {
    background-color: #ddd;
}
#subject-tabs button.active {
    background-color: #003366;
    color: white;
}
  
  /* ✅ 下段：単元タブ全体の背景 */
  #unit-tabs {
    background: #f5f5f5;
    padding: 0.6em;
    border-radius: 0 0 12px 12px;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  }
  
  /* ✅ 各タブボタン共通 */
  .category-tab button {
    padding: 8px 16px;
    font-weight: bold;
    background-color: #ddd;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  /* ✅ ホバー時のスタイル */
  .category-tab button:hover {
    background-color: #bbb;
  }
  
  /* ✅ アクティブタブのスタイル */
  .category-tab button.active {
    background-color: #006699;
    color: white;
  }