@charset "UTF-8";

.faq-section {
  padding: 1rem 1rem 5rem; /* 上の余白を詰めました */
  background-color: #f7fcfe;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category-title {
  font-size: 1.5rem;
  color: #333;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #78BBE6;
  display: flex;
  align-items: center;
}

.faq-category-title:first-child {
  margin-top: 1rem; /* 最初の見出しの上を詰めました */
}

.faq-category-title::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: #78BBE6;
  border-radius: 50%;
  margin-right: 12px;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e0eef0;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(120, 187, 230, 0.1);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  text-align: left;
  background: #fff;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  display: block;
  position: relative;
}

.faq-question::before {
  content: "Q";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #78BBE6;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  margin-right: 12px;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 1.8rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #78BBE6;
  border-right: 3px solid #78BBE6;
  transform: translateY(-70%) rotate(135deg);
  transition: transform 0.3s;
}

.faq-item.is-active .faq-question::after {
  transform: translateY(-30%) rotate(-45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #fcfcfc;
  transition: max-height 0.4s ease-out;
}

.faq-item.is-active .faq-answer {
  max-height: 1000px;
}

.faq-answer-inner {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
}

.faq-answer-inner::before {
  content: "A";
  font-weight: 900;
  color: #EF009C;
  font-size: 1.4rem;
  margin-right: 1.2rem;
  line-height: 1.2;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

@media (min-width: 768px) {
  .faq-question { font-size: 1.2rem; padding: 1.8rem 2rem; }
}