@charset 'utf-8';

.qa__list {
  margin-top: 3rem;
}

.qa__list__box {
  width: 80%;
  margin: 0 auto;
}

.qa__list dl {
  position: relative;
  margin: 30px 0 0;
  cursor: pointer;
  border: 3px solid var(--color1);
  border-radius: 5px;
}

.qa__list dl:first-child {
margin-top: 0;
}

.qa__list dl::after {
  position: absolute;
  top: 22px;
  right: 26px;
  display: block;
  width: 15px;
  height: 15px;
  margin: auto;
  content: '';
  transform: rotate(135deg);
  border-top: 3px solid var(--color1);
  border-right: 3px solid var(--color1);
}

.qa__list .open::after {
  transform: rotate(-45deg);
}

.qa__list dl dt {
  position: relative;
  margin: 0;
  padding: 20px;
  color: var(--color1);
  font-weight: 700;
  background: #f5f5f5;
  border-radius: 4px;
}

.qa__list dl.open dt {
  border-radius: 5px 5px 0 0;
}

.qa__list dl dd {
  display: none;
  position: relative;
  margin: 0;
  padding: 20px;
  background: #fff;
  border-top: 3px solid var(--color1);
  border-radius: 0 0 5px 5px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.qa__list dl:first-of-type dd {
  display: block;
}

.qa__list dl dd p {
  margin: 30px 0 0;
}

.qa__list dl dd p:first-child{
  margin-top: 0;
}

.qa__list dl dd span {
  display: block;
  margin-left: 1rem;
  font-size: 0.8rem;
}

.comment {
  margin-top: 1rem;
}

.page__faq__link {
  margin-top: 5rem;
  text-align: center;
}

@media screen and (max-width: 960px) {
  .qa__list__box {
    width: 90%;
  }

  .qa__list dl::after {
    right: 10px;
  }

  .qa__list dl dt {
    padding: 20px 30px 20px 10px;
  }

  .qa__list dl dd {
    padding: 10px;
  }
}

@media screen and (max-width: 580px) {
  .qa__list {
    margin-top: 1rem;
  }

  .qa__list__box {
    width: 95%;
  }

  .qa__list dl {
    margin: 1rem 0 0;
    border: 2px solid var(--color1);
  }

  .qa__list dl::after {
    width: 12px;
    height: 12px;
  }

  .qa__list dl dt {
    font-weight: 500;
    font-size: 0.8rem;
  }

  .qa__list dl dd {
    padding: 10px;
    border-top: 2px solid var(--color1);
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

