/****************************************
よくある質問
****************************************/
/**********フリーワード検索**********/
.faqSearchCts {
  margin-top: 30px;

  & dt {
    font-weight: 600;

    &::before {
      content: "■";
    }
  }

  & dd {
    margin-top: 5px;
    width: 100%;
    max-width: 350px;

    & form {
      padding: 0 40px 0 15px;
      border-radius: 50px;
      overflow: hidden;
      line-height: 1.4;
      background-color: #FFF;
      position: relative;
      border: 1px solid #CCC;

      & input {
        font-family: 'Noto Sans Japanese', sans-serif;
        display: block;
        border: none;
        padding: 10px 5px;
        width: 100%;
        letter-spacing: 1px;
        font-size: 1.6rem;

        &:focus {
          outline: 0;
        }
      }

      & button {
        cursor: pointer;
        border: none;
        background: none;
        outline: none;
        transition: 0.2s linear;
        width: fit-content;
        line-height: 1;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        font-size: 1.8rem;

        &:hover {
          opacity: 0.6;
        }
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  .faqSearchCts {
    & dd {
      width: 100%;

      & form {
        & button {
          &:hover {
            opacity: 1;
          }
        }
      }
    }
  }
}

/**********質問・回答**********/
main {
  margin-top: 25px;
}

.faqCtsWrap {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  position: relative;
}

@media only screen and (max-width: 768px) {
  .faqCtsWrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/*-----ナビゲーション-----*/
.faqNavi {
  position: sticky;
  top: 150px;
  margin-top: 35px;

  & dt {
    border-top: 2px solid #333;
    border-bottom: 1px solid #333;
    font-weight: 600;
    text-align: center;
  }

  & dd {
    & ul {
      margin-top: 10px;

      & li {
        margin-top: 10px;

        & a {
          display: block;
          white-space: nowrap;
          font-weight: 500;
          padding: 5px 25px 5px 15px;
          line-height: 1.4;
          border-radius: 50px;
          position: relative;
          border: 1px solid #333;

          & i {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 10px;
            color: #666;
            font-size: 1.4rem;
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  .faqNavi {
    position: static;
    margin-top: 30px;

    & dt {
      font-size: 1.8rem;
    }
  }
}

/*-----質問・回答-----*/
.faqCts {
  &:nth-of-type(n+2) {
    margin-top: 50px;
  }

  & h2 {
    border-left: none;
    padding-left: 0;
    padding-bottom: 10px;
    font-size: 3rem;
    border-bottom: 3px double #333;
  }

  & dl {
    margin-top: 15px;
    background-color: #FFF5C2;
    padding: 20px 20px 20px 15px;
    line-height: 1.8;
    border-left: 5px solid #F8D000;

    & dt,
    & dd {
      position: relative;
      padding-left: 40px;

      & span {
        position: absolute;
        left: 0;
        font-family: josefin-sans, sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding-top: 5px;
        font-weight: bold;
        color: #FFF;
        border-radius: 50%;
        letter-spacing: 0;
      }
    }

    & dt {
      font-weight: 500;

      & span {
        background-color: #ff6464;
      }
    }

    & dd {
      margin-top: 10px;

      & span {
        border: 1px solid #ff6464;
        background-color: #FFF;
        color: #ff6464;
      }

      & p {
        background-color: #FFF9DF;
        font-size: 1.4rem;
        font-weight: 500;
        padding: 10px 15px;
        margin-top: 10px;
        font-size: 1.2rem;

        & a {
          display: block;
          border-bottom: 1px solid #000;
          width: fit-content;
          margin-bottom: 5px;

          & i {
            font-size: 1rem;
            margin-left: 5px;
          }
        }
      }
    }
  }
}

/*-----検索結果-----*/
.faqSearchTitle {
  border: none;
  margin-top: 5px;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  background-color: #F8D000;
  font-weight: 600;
  padding: 5px;
}

.faqSearchResult {
  position: sticky;
  top: 150px;
  border: 2px solid #000;
  margin-top: 30px;
  padding: 5px 10px 15px;
  text-align: center;

  & dt {
    font-weight: 500;

    & span {
      font-size: 2rem;
      font-weight: 600;
    }
  }

  & dd {
    margin-top: 5px;

    & a {
      display: block;
      background-color: #000;
      color: #FFF;
      border-radius: 50px;
      padding: 10px 30px;
      line-height: 1.4;
      font-weight: 600;
      font-size: 1.4rem;
      width: fit-content;
      margin: auto;
    }
  }
}

.faqHighlight {
  background-color: #ffe663;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.faqNone {
  font-weight: 600;
  border: 1px solid #000;
  text-align: center;
  line-height: 1.8;
  padding: 10px 10px 15px;
  border-radius: 5px;
}

@media only screen and (max-width: 768px) {
  .faqCts {
    &:nth-of-type(n+2) {
      margin-top: 25px;
    }

    & h2 {
      font-size: 2.6rem;
    }

    & dl {
      border-left: 3px solid #F8D000;
    }
  }

  .faqSearchResult {
    position: static;
  }
}
