@charset "UTF-8";

/* =============================================================================

FAQ Single CSS

・FAQ詳細用CSS「.faq_single-×××」「.faq-×××」

上記はここに記述する

============================================================================= */

.faq_single-layout {
  display: flex;
  width: 122.6rem;
  margin: 0 auto;
  justify-content: space-between;

  @media (width <= 640px) {
    width: auto;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 10.4rem;
  }
}

.faq_single-article {
  min-width: 0;
  width: 77.5rem;

  @media (width <= 640px) {
    width: 100%;
  }
}

.faq_single-faq-item {
  padding: 3.2rem;
  background-color: #efefec;

  @media (width <= 640px) {
    padding: 2rem;
  }
}

.faq_single-question-box {
  padding: 1.2rem 1.6rem 1.3rem;
  background-color: #ffffff;

  @media (width <= 640px) {
    padding: 1.2rem 1.6rem 1.3rem;
  }
}

.faq_single-question-box,
.faq_single-answer-box {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  align-items: start;
  column-gap: 1.6rem;

  @media (width <= 640px) {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    column-gap: 1.6rem;
  }
}

.faq-question-label,
.faq-answer-label {
  margin: 0;
}

.faq-q,
.faq-a {
  display: block;
  color: #000000;
  font-family: var(--ff-bellefair);
  font-weight: 400;
  text-align: center;
  line-height: 1;
}

.faq-q {
  font-size: 2.8rem;
  letter-spacing: 0.1em;

  @media (width <= 640px) {
    font-size: 2rem;
  }
}

.faq-a {
  font-size: 3.2rem;
  letter-spacing: 0.1em;
  line-height: 1.146;

  @media (width <= 640px) {
    font-size: 2rem;
    line-height: 1;
  }
}

.faq_single-question {
  margin: 0;
  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_single-answer-box {
  margin-top: 3.2rem;

  @media (width <= 640px) {
    margin-top: 2rem;
  }
}

.faq_single-answer-text {
  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_single-main-content {
  margin-top: 7rem;

  @media (width <= 640px) {
    margin-top: 7rem;
  }
}

.faq_single-contents h1 {
  margin: 0 0 7rem;
  color: rgb(0 0 0 / 85%);
  font-family: var(--ff-ten);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;

  @media (width <= 640px) {
    margin-bottom: 4.8rem;
    font-size: 2rem;
  }
}

.faq_single-contents h2 {
  margin-block: 7rem 3.2rem;
  padding-bottom: 0;
  border-bottom: 0;
  color: rgb(0 0 0 / 85%);
  font-family: var(--ff-ten);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;

  @media (width <= 640px) {
    margin-block: 4.8rem 2.4rem;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
  }
}

.faq_single-sidebar {
  width: 30.2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;

  @media (width <= 640px) {
    width: 100%;
  }
}

.faq_single-category-section {
  width: 100%;
}

.faq_single-category-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq_single-category-title {
  margin: 0;
  color: #ad995a;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.2728;

  @media (width <= 640px) {
    font-size: 2rem;
  }
}

.faq_single-category-lines {
  position: relative;
  height: 3px;
  background-color: #ad995a;
  &:before {
    content: "";
    display: block;
    width: 6rem;
    height: 100%;
    background-color: #e5e4df;
    position: absolute;
    top: 0;
    left: 0;
  }
}

.faq_single-category-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}

.faq_single-category-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.8rem;
}

.faq_single-category-item::before {
  content: "";
  display: block;
  width: 1rem;
  height: 0.1rem;
  background-color: #000000;
  flex-shrink: 0;
}

.faq_single-category-name {
  color: #000000;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.4;

  @media (width <= 640px) {
    font-size: 1.8rem;
  }
}

/* 人気の質問 (WordPress Popular Posts)
============================================================================= */
.faq_single-popular-list {
  margin-top: 3.2rem;

  .wpp-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wpp-list li > a {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    text-decoration: none;
    color: #000000;

    &:hover {
      opacity: 0.7;
    }
  }

  .wpp-thumbnail {
    width: 9.6rem;
    min-width: 9.6rem;
    height: 9.6rem;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #efefec;
  }

  .wpp-post-title {
    font-family: var(--ff-ten);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 1.6;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ACF コンテンツエリア
============================================================================= */
.faq_single-main-content {
  .faq_single-contents {
    flex: 1;
    min-width: 0;

    /* 画像+テキスト 横並びレイアウト */
    .cwwl-column {
      margin-top: var(--cwwl-mt, 4.8rem);
    }

    ._img-l-text .cwwl-column-item,
    ._img-r-text .cwwl-column-item {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.2rem;
      align-items: start;

      @media (width <= 640px) {
        grid-template-columns: 1fr;
        gap: 1.6rem;
      }
    }

    ._img-r-text .cwwl-column-item {
      .cwwl-column-item-img {
        order: 2;
      }
      .cwwl-column-item-text {
        order: 1;
      }

      @media (width <= 640px) {
        .cwwl-column-item-img {
          order: 0;
        }
        .cwwl-column-item-text {
          order: 0;
        }
      }
    }

    /* 3カラムコンテンツ */
    ._col3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 3.9rem;
      align-items: start;

      .cwwl-column-item {
        display: flex;
        flex-direction: column;
      }

      .cwwl-column-item-img {
        aspect-ratio: 231 / 161;
        overflow: hidden;
      }

      .cwwl-column-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .cwwl-column-item-text p {
        margin-top: 0;
        font-size: 1.3rem;
        line-height: 1.7;
      }

      @media (width <= 640px) {
        grid-template-columns: 1fr;
        gap: 2rem;

        .cwwl-column-item {
          display: grid;
          grid-template-columns: 16.4rem minmax(0, 1fr);
          gap: 0.7rem;
          align-items: start;
        }

        .cwwl-column-item-img {
          aspect-ratio: 164 / 114;
        }

        .cwwl-column-item-text p {
          font-size: 1.1rem;
          line-height: 2.15;
        }
      }
    }

    .faq_single-wedding-bnr {
      margin-top: 5rem;
      padding: 3.2rem 1.6rem;
      background-color: #efefec;

      @media (width <= 640px) {
        padding: 2.4rem 1.5rem;
      }
    }

    .faq_single-wedding-bnr-body {
      color: #ad995a;
      font-size: 1.3rem;
      font-weight: 700;
      line-height: 1.7;

      @media (width <= 640px) {
        font-size: 1.3rem;
      }
    }

    .faq_single-wedding-bnr-links {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 1.8rem;

      @media (width <= 640px) {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 1.2rem;
      }
    }

    .faq_single-wedding-bnr-link {
      display: block;
      background-color: #ffffff;
      text-decoration: none;
      width: 23.9rem;

      @media (width <= 640px) {
        width: 100%;
      }
    }

    .faq_single-wedding-bnr-link-image {
      display: block;
      overflow: hidden;

      picture {
        display: block;
      }

      img {
        width: 100%;
        height: auto;
        display: block;
      }
    }

    /* 画像のみ */
    ._img-top .cwwl-column-item-img img,
    .cwwl-column-item-img img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* テキスト */
    .cwwl-column-item-text p {
      font-size: 1.4rem;
      line-height: 1.9;
      margin-top: 1.2rem;

      @media (width <= 640px) {
        font-size: 1.3rem;
      }
    }
  }
}

/* ナビゲーションページャー
============================================================================= */
.faq_single-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6.4rem;
  margin-top: 8rem;
  padding-top: 0;
  border-top: 0;

  @media (width <= 640px) {
    gap: 2.9rem;
    margin-top: 4rem;
    justify-content: space-between;
  }

  a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0 2rem;
    border-bottom: 0.1rem solid #000000;
    font-family: var(--ff-ten);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.1em;
    color: #000000;
    text-decoration: none;

    &:hover {
      opacity: 0.7;
    }

    @media (width <= 640px) {
      gap: 0.8rem;
      font-size: 1.2rem;
      padding-bottom: 1rem;
      letter-spacing: 0.1em;
    }
  }

  .prev::before,
  .next::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;
    flex-shrink: 0;
  }

  .prev::before {
    transform: rotate(180deg);
  }

  .prev,
  .next {
    display: flex;
    justify-content: space-between;
    min-width: 15.1rem;

    @media (width <= 640px) {
      min-width: auto;
    }
  }

  .back {
    min-width: 11.4rem;

    @media (width <= 640px) {
      min-width: auto;
    }
  }

  .is-disabled {
    pointer-events: none;
    opacity: 0;
  }
}
