/*QandAのUI*/

body {
  font-family: "fot-tsukuardgothic-std", sans-serif;
}

.container-faq {
  position: relative;
  padding-top: 180px;
  height: auto;
  width: 100%;
}

@media (max-width: 991.98px) {
  .container-faq {
    position: relative;
    padding: 120px 0 40px 0;
    height: auto;
    width: 90%;
  }
}

.container-faq .img-title {
  display: block;
  margin: auto;
  width: 10%;
  min-width: 100px;
}

@media (min-width: 991.98px) {
  .subtitle {
    margin-top: 25px;
    width: 100%;
    color: #333333;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 20px);
    letter-spacing: 3px;
    text-align: center;
    margin-top: 5vw;
    margin-bottom: 5vw;
  }

  .qa-container {
    width: 60%;
    margin: 0 auto;
  }

  .section-title {
    color: #336876;
    font-weight: 400;
    font-size: 1.8vw;
    letter-spacing: 3px;
    text-align: center;
    margin-top: 5vw;
    margin-bottom: 5vw;
  }

  .qa-title {
    margin-top: 25px;
    color: #2b2e2f;
    font-weight: 400;
    font-size: 1.8vw;
    letter-spacing: 3px;
    text-align: center;
    font-family: "fot-tsukuardgothic-std", sans-serif;
    margin-bottom: 5vw;
  }
}

@media (max-width: 991.98px) {
  .subtitle {
    margin-top: 25px;
    width: 100%;
    color: #333333;
    font-weight: 400;
    font-size: clamp(16px, 4vw, 18px);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8vw;
  }

  .section-title {
    color: #336876;
    font-weight: 400;
    font-size: clamp(20px, 4vw, 30px);
    letter-spacing: 3px;
    text-align: center;
    margin-top: 8vw;
    margin-bottom: 8vw;
  }

  .qa-title {
    margin-top: 25px;
    color: #2b2e2f;
    font-weight: 400;
    font-size: 3vw;
    letter-spacing: 3px;
    text-align: center;
    font-family: "fot-tsukuardgothic-std", sans-serif;
    margin-bottom: 5vw;
  }
}

.qa-title::before {
  display: block;
  font-weight: 700;
  font-size: 35px;
  line-height: 1.5;
  letter-spacing: 20px;
  content: attr(data-label);
}

.qa {
  max-width: 90%;
  margin-bottom: 5px;
  border-bottom: 1px solid #2b2e2f36;
  margin: 0 auto;
  color: #2b2e2f;
  font-family: "fot-tsukuardgothic-std", sans-serif;
}

.qa summary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding: 1em 1em 1em 1em;
  color: #424242;
  font-size: 1.4vw;
  font-weight: 400;
  font-family: "fot-tsukuardgothic-std", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa summary:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.qa summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-bottom: 3px solid #424242b3;
  border-right: 3px solid #424242b3;
  content: "";
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa[open] summary::after {
  transform: rotate(225deg);
}

.qa p {
  position: relative;
  margin: 0;
  padding: 0.1em 1em 1.5em;
  color: #333;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .qa summary {
    font-size: 3.5vw;
  }

  .qa p {
    font-size: 3vw;
  }
}

@media (min-width: 991.98px) {
  .block-contact {
    width: 50vw;
    margin: 0 auto;
  }

  .btn-contacts {
    position: relative;
    margin: 8vw auto;
    width: 50vw;
    height: 80px;
    border: 1px solid #336876;
    background-color: #ffffff1e;
    border-radius: 50px;
  }

  .btn-contacts .text {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 1.8vw;
    color: #336876;
    text-align: center;
  }
}

@media (max-width: 991.98px) {
  .block-contact {
    width: 80vw;
    margin: 0 auto;
  }

  .btn-contacts {
    position: relative;
    margin: 8vw auto;
    width: 80vw;
    height: 15vw;
    border: 1px solid #336876;
    background-color: #ffffff1e;
    border-radius: 50px;
  }

  .btn-contacts .text {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 4vw;
    color: #336876;
    text-align: center;
  }
}

/* アニメーション用のスタイル */
.animate-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* フェードインのみのアニメーション用スタイル */
.animate-fade {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.animate-fade.animate-in {
  opacity: 1;
}
