@charset "utf-8";

html {
  scroll-behavior: auto;
}

/* ========================================
   FAQ PAGE
======================================== */

.faq-page {
  color: #454545;
  background-color: #FFFCEF;
}


/* ========================================
   FAQ FV
======================================== */

.faq-fv {
  padding-top: clamp(7.5rem, 5rem + 5.21vw, 11.25rem);
}

.faq-fv__inner {
  width: min(100% - 80px, 1180px);
  margin: 0 auto;
  padding: 0 clamp(0rem, -7rem + 14.58vw, 10.5rem);
}

.faq-fv__heading {
  position: relative;
}

.faq-fv__en {
  margin-bottom: 8px;
  color: #904142;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.faq-fv__title {
  margin: 0;
  color: #904142;
  font-size: clamp(1.5rem, 1.25rem + 0.52vw, 1.875rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.faq-fv__text {
  margin-top: clamp(1.5rem, 1rem + 1.04vw, 2.25rem);
  color: #454545;
  font-size: 13px;
  line-height: 2;
  font-weight: 500;
}


/* ========================================
   FAQ NAV
======================================== */

.faq-nav {
  padding-top: clamp(2.5rem, 1.667rem + 1.74vw, 3.75rem);
  background-color: #FFFCEF;
}

.faq-nav__inner {
  width: min(80%, 1024px);
  margin: 0 auto;
  padding: 0 clamp(0rem, -7rem + 14.58vw, 5rem);
}

.faq-nav__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}

.faq-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 42px 10px 18px;

  border: 1px solid #904142;

  color: #454545;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.faq-nav__item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.faq-nav__item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;

  width: 16px;
  height: 16px;

  border: 1px solid #904142;
  border-radius: 50%;

  transform: translateY(-50%);
}

.faq-nav__item::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 22.5px;

  width: 5px;
  height: 5px;

  border-right: 1px solid #904142;
  border-bottom: 1px solid #904142;

  transform: rotate(45deg);
}

.faq-nav__item:hover {
  color: #fff;
  background-color: #904142;
}

.faq-nav__item:hover p {
  color: #fff;
}

.faq-nav__item:hover::before,
.faq-nav__item:hover::after {
  border-color: #fff;
}


/* ========================================
   FAQ CONTENT
======================================== */

.faq {
  background-color: #FFFCEF;
  padding:
    clamp(4rem, 2.333rem + 3.47vw, 6.5rem)
    0
    clamp(6rem, 4rem + 4.17vw, 9rem);
}

.faq__inner {
  width: min(100% - 80px, 1180px);
  margin: 0 auto;
  padding: 0 clamp(0rem, -7rem + 14.58vw, 10.5rem);
}


/* ========================================
   FAQ GROUP
======================================== */


.faq-group + .faq-group {
  margin-top: clamp(4.5rem, 3rem + 3.13vw, 6.75rem);
}

.faq-group__heading {
  position: relative;
  padding: 20px 0;
}

.faq-group__heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background-color: #e1d9d1;
}

.faq-group__heading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 34px;
  height: 1px;

  background-color: #904142;
}

.faq-group__heading p {
  margin: 0;

  color: #904142;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.faq-group__list {
  width: 100%;
}


/* ========================================
   FAQ ITEM
======================================== */

.faq-item {
  border-bottom: 1px solid #d8d8d8;
  padding: .5rem;
}


/* ========================================
   QUESTION
======================================== */

.faq-item__question {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 60px;
  padding:
    16px
    55px
    16px
    38px;

  cursor: pointer;

  outline: none;
}

.faq-item__question::before {
  content: "Q";
  position: absolute;
  top: 19px;
  left: 12px;

  color: #904142;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.faq-item__question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 15px;

  color: #904142;
  font-size: 16px;
  line-height: 1;

  transform: translateY(-50%);
}

.faq-item.is-open .faq-item__question::after {
  content: "−";
}

.faq-item__question-text {
  margin: 0;

  color: #454545;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
}


/* ========================================
   ANSWER
======================================== */

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;

  overflow: hidden;

  opacity: 0;

  transition:
    grid-template-rows 0.4s ease,
    opacity 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item__answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item__answer-inner p {
  position: relative;

  margin: 0;
  padding:
    0
    55px
    22px
    38px;

  color: #666;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
}

.faq-item__answer-inner p::before {
  content: "A";
  position: absolute;
  top: 5px;
  left: 12px;

  color: #904142;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}


/* ========================================
   HOVER
======================================== */

@media (hover: hover) {

  .faq-item__question:hover .faq-item__question-text {
    color: #904142;
  }

}


/* ========================================
   ADMIN
   管理画面では常時展開
======================================== */

.wp-admin .faq-item__answer {
  display: block;
  grid-template-rows: 1fr;
  overflow: visible;
  opacity: 1;
}

.wp-admin .faq-item__answer-inner {
  overflow: visible;
}

.wp-admin .faq-item__question::after {
  content: "−";
}


/* ========================================
   TABLET / SP
======================================== */

@media (max-width: 767px) {

  .faq-fv {
    padding-top: 100px;
  }

  .faq-fv__inner {
    width: 100%;
    padding: 0 24px;
  }

  .faq-fv__title {
    font-size: 24px;
  }

  .faq-fv__text {
    margin-top: 24px;

    font-size: 12px;
    line-height: 1.9;
  }

  .faq-fv__text br {
    display: none;
  }


  /* nav */

  .faq-nav {
    padding-top: 40px;
  }

  .faq-nav__inner {
    width: 100%;
    padding: 0 24px;
  }

  .faq-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .faq-nav__item {
    min-height: 48px;
    padding: 9px 32px 9px 10px;
  }

  .faq-nav__item p {
    font-size: 10px;
  }

  .faq-nav__item::before {
    right: 9px;

    width: 14px;
    height: 14px;
  }

  .faq-nav__item::after {
    right: 13px;

    width: 5px;
    height: 5px;
  }


  /* FAQ */

  .faq {
    padding: 60px 0 80px;
  }

  .faq__inner {
    width: 100%;
    padding: 0 24px;
  }

  .faq-group + .faq-group {
    margin-top: 64px;
  }

  .faq-group__heading {
    padding-bottom: 12px;
  }

  .faq-group__heading p {
    font-size: 16px;
  }

  .faq-item__question {
    min-height: 58px;
    padding:
      15px
      38px
      15px
      28px;
  }

  .faq-item__question::before {
    top: 19px;
    left: 4px;

    font-size: 10px;
  }

  .faq-item__question::after {
    right: 5px;

    font-size: 15px;
  }

  .faq-item__question-text {
    font-size: 12px;
    line-height: 1.7;
  }

  .faq-item__answer-inner p {
    padding:
      0
      38px
      20px
      28px;

    font-size: 11px;
    line-height: 1.9;
  }

  .faq-item__answer-inner p::before {
    top: 4px;
    left: 4px;

    font-size: 10px;
  }

}


@media (max-width: 374px) {

  .faq-fv__inner,
  .faq-nav__inner,
  .faq__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-nav__list {
    gap: 6px 8px;
  }

  .faq-nav__item p {
    font-size: 9px;
  }

}


/* ========================================
   CMS EDITOR
   GrapesJS編集画面のみFAQを常時展開
======================================== */

.gjs-dashed .faq-item__question {
  border-color: #904142;
  border-bottom-color: transparent;
}

.gjs-dashed .faq-item__question::after {
  content: "−";
}

.gjs-dashed .faq-item__answer {
  display: block;
  grid-template-rows: 1fr;
  overflow: visible;
  opacity: 1;

  border-left: 1px solid #904142;
  border-right: 1px solid #904142;
  border-bottom: 1px solid #904142;
  border-top: none;
}

.gjs-dashed .faq-item__answer-inner {
  min-height: auto;
  overflow: visible;
}