@charset "UTF-8";

/* =============================================================================

FAQ Archive CSS

・FAQ一覧用CSS「.faq_archive-×××」「.faq-×××」

上記はここに記述する

============================================================================= */

.faq-search-block {
  margin-top: -6rem;
  margin-bottom: 10rem;

  @media (width <= 640px) {
    margin-top: 0;
    margin-bottom: 4rem;
  }
}

.faq-search-form {
  padding: 4rem;
  background-color: #efefec;

  @media (width <= 640px) {
    padding: 3rem 2rem;
  }
}

.faq-search-label {
  display: block;
  margin-bottom: 1.6rem;
  color: rgb(0 0 0 / 85%);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.6;

  @media (width <= 640px) {
    margin-bottom: 1.1rem;
    font-size: 1.6rem;
    text-align: center;
    letter-spacing: 0;
  }
}

.faq-search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 0;
  align-items: stretch;

  @media (width <= 640px) {
    grid-template-columns: minmax(0, 1fr) 4.8rem;
  }
}

.faq-search-input {
  width: 100%;
  height: 5.6rem;
  border: 0.2rem solid #ad995a;
  border-radius: 0;
  padding: 0 1.6rem;
  background-color: #ffffff;
  color: #ad995a;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;

  &::placeholder {
    color: rgb(173 153 90 / 40%);
    opacity: 1;
    font-size: 14px;
  }

  &:focus {
    outline: none;
  }

  @media (width <= 640px) {
    height: 4.4rem;
    padding: 0 1.6rem;
  }
}

.faq-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 0;
  height: 5.6rem;
  border: 0;
  border-radius: 0;
  background-color: #ad995a;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;

  &:hover,
  &:focus-visible {
    opacity: 0.88;
  }

  &::before {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 14px;
    margin: auto;
    content: "";
    display: block;
    width: 2rem;
    height: 2rem;
    transform: rotate(90deg);
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 1 0 3.473 9.766l3.63 3.63a.75.75 0 1 0 1.06-1.06l-3.63-3.63A5.5 5.5 0 0 0 9 3.5ZM5 9a4 4 0 1 1 8 0a4 4 0 0 1-8 0Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 1 0 3.473 9.766l3.63 3.63a.75.75 0 1 0 1.06-1.06l-3.63-3.63A5.5 5.5 0 0 0 9 3.5ZM5 9a4 4 0 1 1 8 0a4 4 0 0 1-8 0Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  @media (width <= 640px) {
    width: 4.8rem;
    height: 4.4rem;
    gap: 0;
    font-size: 0;

    &::before {
      width: 1.6rem;
      height: 1.6rem;
    }
  }
}

.faq-search-result-info {
  margin-top: 0.6rem;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  color: #555555;
}

.faq-archive-section {
  width: 100%;
  padding: 12rem 0;
  background-color: #efefec;
  @media (width <= 640px) {
    padding: 4rem 0;
  }
}

.faq_archive-list {
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .faq-list-item {
    list-style: none;
  }

  .faq-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;

    &:hover,
    &:focus-visible {
      opacity: 0.78;
    }
  }

  .faq-summary {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    padding: 1.2rem 1.6rem 1.3rem;
    background-color: #ffffff;
    min-height: 5.8rem;

    @media (width <= 640px) {
      align-items: flex-start;
      gap: 1.7rem;
      padding: 1.2rem 1.6rem 1.3rem;
      min-height: 7.1rem;
    }
  }

  .faq-q,
  .faq-a {
    display: block;
    flex-shrink: 0;
    color: #000000;
    font-family: var(--ff-bellefair);
    font-weight: 400;
    text-align: center;
    line-height: 1;
  }

  .faq-q {
    width: 2.4rem;
    font-size: 2.8rem;
    letter-spacing: 0.1em;
    transform: translateY(-0.1rem);

    @media (width <= 640px) {
      width: 1.7rem;
      font-size: 2rem;
    }
  }

  .faq-question {
    flex: 1;
    color: rgb(0 0 0 / 85%);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.6;

    @media (width <= 640px) {
      font-size: 1.4rem;
    }
  }

  .faq-answer {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0 0 1.6rem;

    @media (width <= 640px) {
      gap: 2rem;
      padding-top: 2rem;
      padding-left: 1.3rem;
    }
  }

  .faq-answer-content {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: start;
    gap: 2rem;

    @media (width <= 640px) {
      grid-template-columns: 2.3rem minmax(0, 1fr);
      gap: 2rem;
    }
  }

  .faq-a {
    width: 2.3rem;
    font-size: 3.2rem;
    letter-spacing: 0.1em;
    line-height: 1.146;

    @media (width <= 640px) {
      font-size: 2rem;
      line-height: 1;
    }
  }

  .faq-answer-preview {
    margin: 0;
    color: #000000;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.15;

    @media (width <= 640px) {
      font-size: 1.3rem;
      line-height: 1.75;
    }
  }

  .faq-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5.6rem;
    align-self: flex-end;
    padding-bottom: 1.4rem;
    border-bottom: 0.1rem solid #ad995a;
    font-family: var(--ff-ten);
    font-size: 1.4rem;
    color: #ad995a;
    letter-spacing: 0.1em;
    line-height: 1;

    &::after {
      content: "";
      display: block;
      width: 1.1rem;
      height: 1rem;
      background-color: currentColor;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' fill='black'%3E%3Cpath d='M0 4.5h8.086L4.793 1.207 6.207-.207 11 4.586v.828L6.207 10 4.793 8.586 8.086 5.5H0v-1Z'/%3E%3C/svg%3E");
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' fill='black'%3E%3Cpath d='M0 4.5h8.086L4.793 1.207 6.207-.207 11 4.586v.828L6.207 10 4.793 8.586 8.086 5.5H0v-1Z'/%3E%3C/svg%3E");
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      -webkit-mask-size: contain;
    }

    @media (width <= 640px) {
      gap: 2.6rem;
      padding-bottom: 1.2rem;
      font-size: 1.4rem;
    }
  }

  .faq_archive-pager {
    margin-top: 4rem;
    text-align: center;

    .wp-pagenavi {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 2.5rem;
      clear: none;
      margin: 0 auto;
      color: #000000;
      font-family: var(--ff-bellefair);
      font-size: 1.6rem;
      line-height: 1.146;
    }

    .wp-pagenavi a,
    .wp-pagenavi span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1rem;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: #000000;
      text-decoration: none;
      font-weight: 400;
    }

    .wp-pagenavi .pages,
    .wp-pagenavi .first,
    .wp-pagenavi .last {
      display: none;
    }

    .wp-pagenavi .extend {
      min-width: 1.3rem;
    }

    .wp-pagenavi .current {
      padding: 0 0 0.2rem;
      border-bottom: 0.1rem solid #ad995a;
      color: #000000;
    }

    .wp-pagenavi .previouspostslink,
    .wp-pagenavi .nextpostslink {
      position: relative;
      width: 1.1rem;
      min-width: 1.1rem;
      height: 1rem;
      font-size: 0;
      line-height: 1;
    }

    .wp-pagenavi .previouspostslink {
      margin-right: 0.7rem;
    }

    .wp-pagenavi .nextpostslink {
      margin-left: 0.7rem;
    }

    .wp-pagenavi .previouspostslink::before,
    .wp-pagenavi .nextpostslink::before {
      content: "";
      display: block;
      width: 1.1rem;
      height: 1rem;
      background-color: currentColor;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' fill='black'%3E%3Cpath d='M0 4.5h8.086L4.793 1.207 6.207-.207 11 4.586v.828L6.207 10 4.793 8.586 8.086 5.5H0v-1Z'/%3E%3C/svg%3E");
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' fill='black'%3E%3Cpath d='M0 4.5h8.086L4.793 1.207 6.207-.207 11 4.586v.828L6.207 10 4.793 8.586 8.086 5.5H0v-1Z'/%3E%3C/svg%3E");
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      -webkit-mask-size: contain;
    }

    .wp-pagenavi .previouspostslink::before {
      transform: rotate(180deg);
    }

    @media (width <= 640px) {
      margin-top: 3rem;

      .wp-pagenavi {
        gap: 2rem;
      }

      .wp-pagenavi .previouspostslink {
        margin-right: 0.4rem;
      }

      .wp-pagenavi .nextpostslink {
        margin-left: 0.4rem;
      }
    }
  }
}
