details {
  --arrow-size: 18px;
  --anime-speed: 0.5s;
}
.detailsB {
  background-color: #f3f3f3;
  margin: 0 0 20px 0;
  width: 100%;
  animation-fill-mode: forwards;
}
.summary {
  position: relative;
  display: block;
  padding: 0 calc(var(--arrow-size) + 3em) 0.5em 10px;
  padding-top: 12px;
  cursor: pointer;
  font-weight: bold;
  background-color: #ffffff;
  color: #2c2c2c;
  font-size: 24px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgb(197, 197, 197);
  border-left: 10px solid #80cbc4;
  height: 55px;
  &:hover {
    cursor: pointer;
  }
}
/* .summary::before {
  content: 'Q.';
  position: absolute;
  top: 0.75em;
  left: 1.5em;
} */
.summary .ico {
  position: absolute;
  top: 0;
  right: 1.5em;
  bottom: 0;
  display: block;
  width: var(--arrow-size);
  height: calc(var(--arrow-size) * 0.6);
  margin: auto;
  background: #80cbc4;
  clip-path: polygon(100% 13%, 50% 100%, 0 13%, 8% 0, 50% 73%, 92% 0);
  transition: 0.5s;
  animation-fill-mode: forwards;
}
/* .detailsB[open] .summary .ico {
  transform: rotate(180deg);
} */
.detailsB .answer-inner {
  position: relative;
  padding: 10px 8px;
  background-color: #f3f3f3;
  overflow-wrap: break-word;
}
.summary::-webkit-details-marker {
  /* Safari-デフォルトの三角形を削除*/
  display: none;
}
.answer {
  overflow: hidden;
  /* padding・marginはここでは設定しない */
}

@media only screen and (max-width: 768px) {
  .summary {
    padding: 0 calc(var(--arrow-size) * 0.8 + 1em) 8px 10px;
    padding-top: 8px;
    font-size: 18.5px;
    height: 40px;
  }

  .summary .ico {
    right: 0.75em;
    width: calc(var(--arrow-size) * 0.75);
    height: calc(var(--arrow-size) * 0.45);
  }
  .detailsB .answer-inner {
    padding: 6px 4px;
  }
}
