/**
* アコーディオン
*/
.accordion-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 12px;
  border: 3px solid #ddd;
  transition: all 0.1s;
}

.accordion-container:hover {
  border-color: #000;
}

.accordion-header {
  width: 100%;
  padding: 24px 32px;
  background: #f4f4f4;
  border: none;
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 10px;

  @media screen and (max-width: 960px) {
    padding: 16px 16px 16px 8px;
    gap: 8px;
  }
}

.accordion-header[aria-expanded="true"] {
  border-radius: 10px 10px 0 0;
}

.accordion-title {
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  transition: color 0.2s ease;
  position: absolute;
  left: 48%;
  transform: translateX(-50%);
  white-space: nowrap;

  @media screen and (max-width: 960px) {
    font-size: 0.95rem;
  }
}

.accordion-icon {
  margin-left: auto;
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  @media screen and (max-width: 960px) {
    width: 14px;
    height: 14px;
  }
}

.accordion-icon::before,
.accordion-icon::after {
  position: absolute;
  background: #000;
  content: "";
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  transform: translate(-50%, -50%);

  @media screen and (max-width: 960px) {
    width: 14px;
    height: 2px;
  }
}

.accordion-icon::after {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 20px;
  transform: translate(-50%, -50%);

  @media screen and (max-width: 960px) {
    width: 2px;
    height: 14px;
  }
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
  display: flex;
  padding: 0 32px;
  flex-direction: column;
  gap: 32px;
  align-self: stretch;
  max-height: 0;
  overflow: hidden;
  background: white;
  font-size: 14px;
  font-weight: 400;
  line-height: 180%;
  color: #000;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-radius: 10px;

  @media screen and (max-width: 960px) {
    padding: 0 20px;
    gap: 24px;
  }
}

.accordion-content.active {
  padding: 28px 32px;

  @media screen and (max-width: 960px) {
    padding: 16px 20px;
  }
}

.accordion-content-text {
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media screen and (max-width: 960px) {
    gap: 6px;
  }
}

.accordion-content-text-title {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;

  @media screen and (max-width: 960px) {
    font-size: 3.85vw;
  }
}

.accordion-content-text-body {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;

  @media screen and (max-width: 960px) {
    font-size: 3.34vw;
  }
}

.accordion-content-text-annotation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;

  @media screen and (max-width: 960px) {
    padding-top: 8px;
  }

  li {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    align-self: stretch;
    color: #636363;
    font-family: "Noto Sans JP";
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    list-style: none;

    @media screen and (max-width: 960px) {
      font-size: 2.83vw;
    }
  }

  li:before {
    content: "※";
  }
}

.accordion-content-text-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  list-style: none;
  padding-left: 0;

  @media screen and (max-width: 960px) {
    gap: 4px;
  }

  li {
    display: flex;
    position: relative;
    align-items: flex-start;
    gap: 2px;
    align-self: stretch;
    color: #000;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    padding-left: 14px;

    @media screen and (max-width: 960px) {
      font-size: 3.33vw;
    }
  }

  li:before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-image: url("../img/list_dot.svg");
    background-size: contain;
    background-repeat: no-repeat;
  }
}

/**
* 新しいアコーディオン（アイコン付き）
*/
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 12px;
  transition: all 0.1s;
  max-width: 1000px;
  width: 100%;
}

.faq-accordion-header {
  width: 100%;
  padding: 24px 32px;
  background: #fff;
  border: none;
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 10px;
  gap: 16px;

  @media screen and (max-width: 960px) {
    padding: 12px 16px;
    gap: 12px;
  }
}

.faq-accordion-header::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("../img/icon_question.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;

  @media screen and (max-width: 960px) {
    width: 28px;
    height: 28px;
  }
}

.faq-accordion-header[aria-expanded="true"] {
  border-radius: 10px 10px 0 0;
}

.faq-accordion-title {
  color: #000;
  text-align: left;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  transition: color 0.2s ease;

  @media screen and (max-width: 960px) {
    font-size: 16px;
  }
}

.faq-accordion-title:hover {
  color: #0054AE;
}

.faq-accordion-header:hover .faq-accordion-title {
  color: #0054AE;
}

.faq-accordion-icon {
  margin-left: auto;
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  @media screen and (max-width: 960px) {
    width: 14px;
    height: 14px;
  }
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
  position: absolute;
  background: #000;
  content: "";
  transition: transform 0.3s ease;
}

.faq-accordion-icon::before {
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  transform: translate(-50%, -50%);

  @media screen and (max-width: 960px) {
    width: 14px;
    height: 2px;
  }
}

.faq-accordion-icon::after {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 20px;
  transform: translate(-50%, -50%);

  @media screen and (max-width: 960px) {
    width: 2px;
    height: 14px;
  }
}

.faq-accordion-header[aria-expanded="true"] .faq-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion-content {
  display: flex;
  padding: 0 32px;
  gap: 12px;
  align-self: stretch;
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-radius: 0 0 10px 10px;
  position: relative;

  @media screen and (max-width: 960px) {
    padding: 0 16px;
  }
}

.faq-accordion-content.active::before {
  opacity: 1;
}

.faq-accordion-content.active {
  padding: 32px 32px 28px 32px;
  border-top: 2px solid #CFECFA;

  @media screen and (max-width: 960px) {
    padding: 16px 16px 20px 16px;
  }
}

.faq-accordion-content-icon {
    display: flex;
    width: 40px;
    height: 40px;
    aspect-ratio: 1;
    content: "";
    background: url("../img/icon_answer.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    @media screen and (max-width: 960px) {
        width: 28px;
        height: 28px;
    }
}

.faq-accordion-content-text {
    color: #000;
    font-family: "Noto Sans JP";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 180%;

    @media screen and (max-width: 960px) {
        font-size: 14px;
    }
}
