.accordion-faq {
  max-width: 800px;
  margin: 0 auto 15px;
}

/* summary部分（質問行） */
.accordion-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1em 2em 1em 70px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  list-style: none;
  background-color: transparent;
  margin-bottom: 30px;
}

/* デフォルトマーカー非表示 */
.accordion-faq summary::-webkit-details-marker {
  display: none;
}

/* Qマーク */
.accordion-faq .q-mark {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #173469cc;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: xx-large;
}

/* 右側の矢印 */
.accordion-faq summary::after {
  content: '';
  width: 13px;
  height: 13px;
  border-right: 3px solid #173469cc;
  border-bottom: 3px solid #173469cc;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* 開いたときの矢印 */
.accordion-faq[open] summary::after {
  transform: rotate(225deg);
}

/* 回答部分 */
.accordion-faq .answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.8em 2em 1.5em 4px;
  color: #333;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.4s, opacity 0.4s;
  background-color: #fff;

}

/* 開いたときに表示 */
.accordion-faq[open] .answer {
  opacity: 1;
  transform: none;
  border-radius:15px;
}

/* Aマーク */
.accordion-faq .a-mark {
  background-color: #fbed21;
  color: #173469cc;
  width: 50px;
  height: 50px;
  left: 3px;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: xx-large;
}
