.faq {
  padding: 13px 0 96px;
}

.case_hamburger {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  color: #000;
  a {
    text-decoration: underline;
  }
}

.case_hamburger_list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.case_hamburger_item {
  display: flex;
  gap: 6px;
  align-items: center;
}

@media screen and (max-width: 769px) {
  .case_hamburger {
    font-size: 12px;
    line-height: 24px;
    text-align: left;
    color: #000;
  }

  .case_hamburger_item {
    img {
      width: 12px;
      height: 12px;
    }
  }
}

.faq_fv {
  margin-top: 11px;
}

.faq_fv-hgroup {
  width: 100%;
  height: 140px;
  background: #f4f4f5;
  display: grid;
  place-content: center;
}

.faq_fv-heading {
  font-weight: bold;
  font-size: 30px;
  line-height: 33px;
  text-align: center;
  color: #000;
}

.faq_fv-sub-heading {
  margin-top: 14px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #000;
}

.faq_fv-text {
  margin-top: 53px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #000;
}

.faq-button-box {
  margin-top: 43px;
  display: flex;
  gap: 54px;
  align-items: center;
  justify-content: center;
}

.faq-select-sp {
  display: none;
}

.faq-btn-first {
  position: relative;
  display: grid;
  place-content: center;
  width: 100%;
  max-width: 386px;
  height: 71px;
  border-radius: 35.5px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #000;
  color: #000;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 24px;
    margin: auto;
    aspect-ratio: 1/1;
    height: 12px;
    background-image: url("../img/icon/icon-btn-arrow-right-black.svg");
    background-repeat: no-repeat;
  }
  &[data-select="true"] {
    background: #000;
    border: 1px solid #000;
    color: #fff;
    &::after {
      background-image: url("../img/icon/icon-btn-arrow-right-white.svg");
    }
  }
}

.faq-2-button-box {
  margin-top: 64px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.faq-2-button {
  display: block;
  width: 100%;
  max-width: 180px;
  padding: 11px 0 5px;
  background: #f4f4f5;
  border-radius: 10px;
  opacity: 0.4;
  &[data-select="true"] {
    opacity: 1;
  }
}

.faq-2-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: #000;
}

.faq-2-button-icon {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}

.faq-content {
  margin-top: 60px;
}

.faq-item {
  border: #f4f4f5 10px solid;
  border-radius: 26px;
}

.faq-item-heading {
  background-color: #f4f4f5;
  padding: 32px 0;
  padding-left: 45px;
  font-weight: bold;
  font-size: 26px;
  line-height: 33px;
  text-align: left;
  color: #000;
}

.faq-item-list {
  padding: 37px 50px;
  display: grid;
  gap: 24px;
}

.faq-details {
  padding: 23px 24px 18px;
  background-color: #f4f4f5;
  border-radius: 16px;
}

.faq-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  color: #000;

  &::-webkit-details-marker {
    display: none;
  }

  &::after {
    content: "";
    aspect-ratio: 1/1;
    height: 30px;
    background-image: url("../img/faq/place-icon.svg");
    background-repeat: no-repeat;
  }
}

.faq-details {
  &[open] {
    .faq-details-summary {
      &::after {
        background-image: url("../img/faq/mainasu-icon.svg");
        background-repeat: no-repeat;
      }
    }
  }
}

.faq-details-summary-container {
  display: flex;
  gap: 17px;
  padding-left: 18px;
}

.faq-details-text {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background-color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  color: #000;
  a {
    color: #0000ee;
    text-decoration: underline;
  }
  span {
    white-space: pre-line;
  }
}

@media screen and (max-width: 769px) {
  .faq_fv {
    margin-top: 24px;
  }

  .faq_fv-hgroup {
    padding: 15px 0 10px;
    height: 76px;
    display: block;
    height: auto;
  }

  .faq_fv-heading {
    font-size: 24px;
  }

  .faq_fv-sub-heading {
    margin-top: 4px;
    font-size: 16px;
  }
  .faq_fv-text {
    margin-top: 20px;
    text-align: left;
  }

  .faq-button-box {
    display: none;
  }

  .faq-select-sp {
    margin-top: 25px;
    display: block;
  }

  .faq-select {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 12px 36px;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: #000;
    border: #000 solid 1px;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-appearance: none; /* デフォルトスタイルを無効化 */
    appearance: none;
    background-image: url("../img/faq/select-icon.svg"); /* カスタムアイコン */
    background-repeat: no-repeat;
    background-position: right 10px center; /* アイコンの位置 */
    background-size: 12px; /* アイコンのサイズ */
    padding-right: 36px;
  }

  .faq-2-button-box {
    margin-top: 30px;
    gap: 15px;
  }

  .faq-2-button {
    max-width: 160px;
  }

  .faq-2-button-container {
    font-size: 14px;
    line-height: 26px;
    gap: 6px;
  }

  .faq-2-button-ico {
    margin-top: 2px;
  }

  .faq-content {
    margin-top: 45px;
  }

  .faq-item {
    border: unset;
    border-radius: unset;
  }

  .faq-item-heading {
    background-color: unset;
    padding: 0;
    font-size: 20px;
    line-height: 33px;
    text-align: center;
  }

  .faq-item-list {
    padding: 0;
    margin-top: 19px;
    gap: 10px;
  }

  .faq-details {
    padding: 14px 0 0;
    border-radius: 10px;
  }

  .faq-details-summary {
    align-items: unset;
    padding: 0 13px 14px 16px;
    gap: 16px;
  }

  .faq-details-summary-container {
    align-items: baseline;
    padding-left: 0;
    p {
      align-self: flex-start;
    }
  }

  .faq-details-text {
    padding: 16px;
    align-items: flex-start;
    border-left: solid #f4f4f5 2px;
    border-right: solid #f4f4f5 2px;
    border-bottom: solid #f4f4f5 2px;
    border-radius: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }
}
