/* ichimonitou.css */

.ichimonitou-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.subject-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.subject-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  flex: 1;
}

.subject-btn:hover {
  background-color: #e2e6ea;
}

.subject-btn.active {
  background-color: #0056b3;
  color: white;
  border-color: #004085;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qa-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.qa-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.qa-question {
  display: flex;
  gap: 12px;
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.qa-number {
  color: #0056b3;
  min-width: 35px;
}

.qa-text {
  line-height: 1.5;
}

.qa-answer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 47px;
  /* Align with text, after Q1. */
}

.btn-show-answer {
  padding: 8px 20px;
  background-color: #e9ecef;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-show-answer:hover {
  background-color: #dde0e3;
  border-color: #adb5bd;
}

.qa-answer {
  margin-top: 5px;
  padding: 10px 15px;
  background-color: #fce4e4;
  border-left: 6px solid #d9534f;
  width: 100%;
  font-weight: bold;
  color: #d9534f;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-in-out;
  font-size: 1.1em;
}

.qa-answer.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .qa-answer-container {
    padding-left: 0;
    margin-top: 10px;
  }
}

.qa-keyword {
  font-weight: normal;
  border-bottom: 1px dashed #ccc;
  transition: font-weight 0.3s, color 0.3s;
}

.qa-keyword.show-bold {
  font-weight: 800;
  color: #d9534f;
  border-bottom: 1px solid #d9534f;
}