html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

.page-faq {
  box-sizing: border-box;
}

.page-faq .faq-content {
  flex-direction: column;
  gap: 40px;
  display: flex;
}

@media (min-width: 768px) {
  .page-faq .faq-content {
    gap: 56px;
  }
}

.page-faq .faq-navigation {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  display: flex;
}

.page-faq .faq-tabs {
  border-bottom: 2px solid var(--main-color);
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  align-items: end;
  gap: 10px;
  width: 100%;
  min-height: 75px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
}

.page-faq .faq-tabs li {
  align-items: flex-end;
  height: 100%;
  display: flex;
}

.page-faq .faq-tabs a {
  color: #333;
  text-align: center;
  border: 2px solid #e2e2e2;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 58px;
  padding: 12px 2px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: flex;
}

.page-faq .faq-tabs a:not(.is-current):hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.page-faq .faq-tabs a.is-current {
  border-color: var(--main-color);
  background: var(--main-color);
  color: #fff;
  height: 73px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: 700;
}

.page-faq .faq-category-links {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
}

@media (min-width: 768px) {
  .page-faq .faq-category-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
  }
}

.page-faq .faq-category-links li {
  display: flex;
}

.page-faq .faq-category-links a {
  box-sizing: border-box;
  color: #333;
  text-align: center;
  background: #fff;
  border: 2px solid #e2e2e2;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 58px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: flex;
}

@media (min-width: 768px) {
  .page-faq .faq-tabs a {
    font-size: 18px;
  }

  .page-faq .faq-category-links a {
    font-size: 15px;
  }

  .page-faq .faq-category-links a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
  }
}

.page-faq .faq-sections {
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  display: flex;
}

.page-faq .faq-section {
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  display: flex;
}

.page-faq .faq-section-title {
  color: #333;
  border-bottom: 2px solid #333;
  margin: 0;
  padding-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .page-faq .faq-section-title {
    font-size: 26px;
    line-height: 39px;
  }
}

.page-faq .faq-list {
  flex-direction: column;
  align-items: stretch;
  display: flex;
}

.page-faq .faq-item {
  border-top: 1px solid #ccc;
}

.page-faq .faq-item:first-child {
  border-top: none;
}

.page-faq .faq-question {
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 15px 4px 15px 0;
  font-family: inherit;
  display: flex;
}

@media (min-width: 768px) {
  .page-faq .faq-question {
    padding-right: 20px;
  }
}

.page-faq .faq-question:hover .faq-question-text {
  color: var(--main-color);
}

.page-faq .faq-icon {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  display: flex;
}

.page-faq .faq-icon-q {
  color: var(--main-color);
}

.page-faq .faq-icon-a {
  width: auto;
  color: var(--secondary-color, #0d5cb8);
}

.page-faq .faq-question-text {
  color: #333;
  flex: 1;
  padding-right: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: color .2s;
}

@media (min-width: 768px) {
  .page-faq .faq-question-text {
    font-size: 18px;
  }
}

.page-faq .faq-arrow {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  transition: transform .4s;
  display: flex;
  position: relative;
}

.page-faq .faq-arrow:after {
  content: "";
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  width: 8px;
  height: 8px;
  display: block;
  transform: rotate(45deg);
}

.page-faq .faq-item.is-open .faq-arrow {
  transform: rotate(180deg) translateY(-4px);
}

.page-faq .faq-answer {
  grid-template-rows: 0fr;
  margin-left: 36px;
  transition: grid-template-rows .4s ease-in-out, visibility .4s;
  display: grid;
}

.page-faq .faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.page-faq .faq-answer-inner {
  background: rgba(246, 186, 88, .14);
  flex-direction: row;
  align-items: flex-start;
  gap: 23px;
  min-height: 0;
  margin: 0;
  padding: 0 32px;
  transition: padding .4s ease-in-out, margin .4s ease-in-out;
  display: flex;
  overflow: hidden;
}

.page-faq .faq-item.is-open .faq-answer-inner {
  margin: 0 0 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .page-faq .faq-item:not(.is-open) .faq-answer-inner {
    margin-top: 8px;
  }
}

.page-faq .faq-item:not(.is-open) .faq-answer-inner {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page-faq .faq-answer-text {
  color: #333;
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.page-faq .faq-answer-text p {
  line-height: 1.6;
  font-size: 15px !important;
}

@media (min-width: 768px) {
  .page-faq .faq-answer-text, .page-faq .faq-answer-text p {
    line-height: 1.6;
    font-size: 17px !important;
  }
}

.page-faq .faq-answer-text p + p {
  margin-top: 12px;
}

.page-faq .faq-answer-text {
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.page-faq .faq-answer-text iframe {
  max-width: 100%;
}

.page-faq .faq-answer-text a {
  color: var(--main-color);
  text-decoration: underline;
  transition: color .2s;
}

.page-faq .faq-answer-text a:hover {
  text-decoration: none;
}

.page-faq .post-nothing {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

@media (max-width: 767px) {
  .page-faq .faq-tabs {
    gap: 4px;
  }

  .page-faq .faq-tabs a {
    font-size: 14px;
  }

  .page-faq .faq-category-links a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .page-faq .faq-answer {
    margin-left: 0;
  }

  .page-faq .faq-answer-inner {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-faq .faq-item.is-open .faq-answer-inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
