@charset "UTF-8";

.p-faq {
  padding-bottom: 109px;
  padding-inline: 20px;
  padding-top: 120px;
}

.p-faq__inner {
  margin-inline: auto;
  max-width: 1098px;
}

.p-faq__layout {
  align-items: flex-start;
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
}

.p-faq__layout-main {
  width: 100%;
}
.p-faq__contents > .webgene-blog {
  display: flex;
  flex-direction: column;
}

.p-faq__list {
  border-top: solid 1px #aaa;
}

.p-faq__item {
  align-items: center;
  border-bottom: solid 1px #aaa;
  display: flex;
  gap: 22px;
  padding-bottom: 17px;
  padding-top: 22px;
}
.p-faq__item::after {
  background-image: url(../images/arrow_pink.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  flex-shrink: 0;
  height: 15px;
  width: 15px;
}

.p-faq__wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.p-faq__cate {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  max-width: 120px;
  width: 100%;
}
.p-faq__cate::before {
  color: #163c72;
  content: "Q.";
  font-family: "Prompt", sans-serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 2px;
  line-height: calc(30 / 20);
}
.p-faq__cate p {
  background-color: #fff;
  border-radius: 20px;
  color: #163c72;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: calc(17 / 12);
  padding: 3px 7px 3px 7px;
  text-align: center;
}

.p-faq__title {
  color: #372710;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

.p-faq-category__title {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: calc(24 / 16);
  padding-bottom: 20px;
  padding-top: 8px;
}
.p-faq-category__list > .webgene-blog {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.p-faq-cate__link {
  background-color: #fff;
  border: solid 1px #d3d3d3;
  border-radius: 20px;
  padding: 10px 15px;
  transition: background 0.3s ease, color 0.3s ease;
}
.p-faq-cate__link:hover {
  background-color: #163c72;
  color: #fff;
  opacity: 1;
}
.p-faq-cate__link.is-select {
  background-color: #163c72;
  color: #fff;
}
@media (min-width: 1024px) {
  .p-faq__layout {
    flex-direction: row;
    gap: 0;
  }
  .p-faq__layout-main {
    border-right: dotted 1px #83a2b3;
    flex: 1 1 auto;
    min-width: 0;
  }
  .p-faq__layout-sidebar {
    flex: 0 0 214px;
    left: 0;
    padding-left: 27px;
    position: sticky;
    top: 200px;
  }
  .p-faq__contents {
    max-width: 753px;
  }
  .p-faq__wrap {
    align-items: center;
    flex-direction: row;
  }
  .p-faq-category__title {
    padding-bottom: 28px;
  }
  .p-faq-category__list {
    border-top: solid 1px #d3d3d3;
  }
  .p-faq-category__list > .webgene-blog {
    display: block;
  }
  .p-faq-cate__link {
    align-items: center;
    background-color: transparent;
    border: none;
    border-bottom: solid 1px #d3d3d3;
    border-radius: 0px;
    display: flex;
    gap: 20px;
    padding: 18px 0px;
  }
  .p-faq-cate__link::before {
    background-color: #333;
    border-radius: 50%;
    content: "";
    flex-shrink: 0;
    height: 6px;
    transition: background 0.3s ease;
    width: 6px;
  }
  .p-faq-cate__link:hover {
    background-color: transparent;
    color: #333;
    opacity: 1;
  }
  .p-faq-cate__link:hover::before {
    background-color: #215aab;
  }
  .p-faq-cate__link.is-select {
    background-color: transparent;
    color: #333;
  }
  .p-faq-cate__link.is-select::before {
    background-color: #215aab;
  }
}