@charset "utf-8";

/* --- コンテンツ全体のコンテナ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- アコーディオンのスタイル --- */
.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  background-color: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  padding: 20px 0;
  text-align: left;
  width: 100%;
  position: relative;
  padding-right: 30px;
  /* アイコン用のスペース */
}

.faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: var(--color-main);
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease-in-out;
}

.faq-question.active::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 15px;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 20px;
}


/* --- リンクのスタイル --- */
a {
  color: var(--color-sub3);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- スマートフォン向けの調整 (レスポンシブ対応) --- */
@media (max-width: 768px) {
  .faq-container {
    padding: 20px;
  }

  .faq-question {
    font-size: 1em;
  }
}