@charset 'utf-8';

/*--------------------------------------------------------
faq
--------------------------------------------------------*/
.faq_block:nth-of-type(n + 2) {
  margin-top: 5rem;
}

.block_ttl {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color1);
}

.block_ttl h2 {
  margin-left: 1rem;
  color: var(--color1);
  font-size: 1.75rem;
  font-weight: 800;
}

.qa_list {
  margin-top: 2.5rem;
}

.qa_list_box {
  width: 90%;
  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-size: 1.25rem;
  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: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.faq_block:first-of-type 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;
}

@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) {
  .block_ttl h2 {
    font-size: min(6cqw, 1.75rem);
  }

  .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;
  }
}