.mofu-accordion{
  margin: 20px 0 40px; 
}
.faq {
  background-color: #E9F7FB;
}
.faq-conatiner {
  margin-top: 40px;
  border-top: 1px solid #D9D9D9;
}
.ma-item {
  border-bottom: 1px solid #D9D9D9;
}

.ma-item .ma-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 25px 40px 25px 25px;
  cursor: pointer;
  font-weight: 300;
  letter-spacing: 0.05em;
  background-color: #55929A;
}


.ma-item .ma-item-title::after {
  position: absolute;
  content: '';
  right: 20px;
  transform: translateY(-25%) rotate(45deg);
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  transition: transform .3s;
}

.ma-item[open] .ma-item-title::after {
  transform: rotate(225deg);
}

.ma-item .ma-item-text {
  position: relative;
  transform: translateY(-8px);
  opacity: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0px 40px;
  transition:
    max-height .9s ease,
    transform .9s ease,
    padding .9s ease;
}

.ma-item.opening .ma-item-text,
.ma-item.closing .ma-item-text {
  will-change: max-height, opacity, transform;
}
.ma-item[open] .ma-item-text {
  padding: 16px 40px;
  transform: none;
  transform: translateY(0);
  max-height: 1500px;
  opacity: 1;
}
.mofu-accordion p{
  margin-top: 0px; 
}
@media only screen and (max-width: 680px) {
  .mofu-accordion{
    margin: 20px 0 20px; 
  }
  .ma-item .ma-item-text {
    padding-top: 0;
  }
  .ma-item[open] .ma-item-text {
    padding: 20px 20px;
  }
  .ma-item .ma-item-title {
    padding: 20px 40px 20px 16px;
  }
  .quote_text p{
    margin: 0px; 
  }
}
.ma-item {
  /* --------アコーディオンの中身のスタイル-------- */
  &::details-content {
    transition: height 0.4s, content-visibility 0.4s allow-discrete;
    height: 0;
    opacity: 0;
    overflow: clip;
  }

  /* --------アコーディオンの中身のスタイル（開いている時）-------- */
  &[open]::details-content {
    opacity: 1;
  }

  /* アコーディオンが開いた時のスタイル */
  &[open] .icon {
    transform: rotate(180deg);
  }
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords; /* height:0（数値型） → auto（文字型） のアニメーションを可能にするための指定 */
  }
  .ma-item[open]::details-content {
    height: auto;
  }
}

@supports not (interpolate-size: allow-keywords) {
  .ma-item[open]::details-content {
    height: 150px;
    overflow-y: scroll; /* 溢れる場合はスクロール可能にする */
  }
}