/* 新アコーディオンパーツ */
summary::-webkit-details-marker {
  display: none;
}

/* details レイアウト＆アニメーション */
.details::details-content {
  content-visibility: unset;
  display: block grid;

  @media (prefers-reduced-motion: no-preference) {
    transition-duration: 300ms;
    transition-property: grid-template-rows;
  }
}

.details:not([open])::details-content {
  grid-template-rows: 0fr;
}

.details[open]::details-content {
  grid-template-rows: 1fr;
}

.details-content-wrapper {
  overflow: hidden;
}

/* details スタイル設定（共通/SP） */
.details {
  margin-top: 2em;
}

.details + .details {
  margin-top: 0.6em;
}

.details-summary {
  position: relative;
  cursor: pointer;
  padding: 1.12rem 3.64rem 1.12rem 1.4rem;
  list-style-type: none;
  border: 0.2rem solid #09f;
  border-radius: 1.2rem;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #09f;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

@media (hover: hover) {
  .details-summary:hover {
    color: #fff;
    text-decoration: none;
    border-color: #46b5ff;
    background-color: #46b5ff;
  }

  .details-summary:hover::before,
  .details-summary:hover::after {
    background-color: #fff;
  }
}

.details-summary::before,
.details-summary::after {
  -webkit-backface-visibility: hidden;
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.5rem;
  height: 2px;
  margin: -1px 0 0;
  background-color: #0099ff;
  content: "";
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    background-color 0.25s;
}

.details-summary::before {
  transform: rotate(90deg);
}

.details[open] .details-summary {
  background: #09f;
  color: #fff;
}

.details[open] .details-summary:hover {
  border-color: #46b5ff;
  background-color: #46b5ff;
}

.details[open] .details-summary::before {
  transform: rotate(0deg);
}

.details[open] .details-summary::before,
.details[open] .details-summary::after {
  background-color: #fff;
}

.details-content {
  padding: 0.6em 1em;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.details[open] .details-content {
  transform: translateY(0);
}

.details-content p {
  margin-top: 1em;
  margin-bottom: 0;
}

.details-content p:first-child {
  margin-top: 0;
}

/* details PCスタイル設定 */
@media print, screen and (min-width: 768px) {
  .details + .details {
    margin-top: 1.2em;
  }

  .details-summary {
    font-size: 1.8rem;
    padding: 2.24rem 7.24rem 2.24rem 2.56rem;
  }

  .details-summary::before,
  .details-summary::after {
    width: 2.1rem;
    right: 1.6em;
  }

  .details-content {
    padding: 1.4em 1.6em;
  }
}

/* 新アコーディオンパーツここまで */

/* アコーディオン　QA */
.details.details-qa {
  .mark-q {
    margin-right: 1rem;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    line-height: 1;
  }

  .box-a {
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
  }

  .mark-a {
    color: #ff65e2;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    flex-basis: 2.2rem;
    text-align: center;
  }

  .mark-a + p {
    margin-top: 0;
  }
}
.details.details-qa:not([open]) .details-summary:not(:hover) {
  color: #0099ff;
}

@media print, screen and (min-width: 768px) {
  .details.details-qa {
    .mark-q {
      margin-right: 2rem;
      font-weight: 700;
      font-size: 2.8rem;
    }
    .box-a {
      gap: 2rem;
    }
    .mark-a {
      font-size: 2.8rem;
      font-weight: 700;
      flex-basis: 2.2rem;
    }
  }
}
