@charset "UTF-8";

.faq-section {
  padding: 4rem 0 8rem;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 6rem 0;
  }
}

.faq-section__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .faq-section__tabs {
    justify-content: flex-start;
    flex-direction: row;
    gap: 1.6rem;
  }
}

.faq-section__tabs .tab-button {
  width: 250px;
  height: 100px;
  padding: 1rem 2rem;
  font-size: 2.4rem;
  font-weight: bold;
  color: #333;
  background-color: #eef4f7;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

@media (max-width: 768px) {
  .faq-section__tabs .tab-button {
    flex: 0 0 calc(50% - 0.8rem);
    max-width: calc(50% - 0.8rem);
    font-size: 1.8rem;
    height: auto;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.faq-section__tabs .tab-button.is-active {
  background-color: #d9e6f6;
  color: #015184;
  border: 1px solid #1b79b2;
}

.accordion {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion__title {
  display: flex;
  align-items: center;
  padding: 3rem 1rem 3rem 7rem;
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
  position: relative;
  background-color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.accordion__title:hover {
  background-color: #d9e6f6;
  color: #015184;
}

@media (max-width: 768px) {
  .accordion__title {
    font-size: 1.6rem;
    padding: 2rem 3rem 2rem 4rem;
  }
}

.accordion__title .accordion__q-icon {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .accordion__title .accordion__q-icon {
    left: 0.5rem;
  }
}

.accordion__title .accordion__q-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.accordion__title::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.accordion__title.is-open::after {
  content: "▲";
}

.accordion .accordion__content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  background-color: #fff;
  transition: height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.accordion .accordion__content.is-open {
  opacity: 1;
  padding-bottom: 0;
}

.accordion .accordion__content p {
  padding: 3rem 3rem 3rem 6rem;
  font-size: 1.6rem;
  line-height: 1.7;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .accordion .accordion__content p {
    padding: 3rem 0;
    font-size: 1.4rem;
  }
}

.faq-groups-wrapper {
  position: relative;
  min-height: 1px;
}

.faq-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.faq-group.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}