.ma-contact {
  &:hover {
    .multiply {
      opacity: 0.4;
    }

    color: var(--green);

    .btn-common__txt {
      &::after {
        transform: scaleX(1);
      }
    }

    .btn-common__photo {
      background: var(--green);
      border: 1px solid var(--green);
      border-radius: 28px;
    }

    .btn-common__arrow {
      display: none;
    }

    .btn-common__arrow--hover {
      display: block;
    }
  }
}

.accordion-panel {
  display: block grid;
  transition: grid-template-rows 0.5s;
  grid-template-rows: 0fr;
}

.accordion-panel>* {
  overflow: hidden;
}

.accordion-panel[data-is-active='true'] {
  grid-template-rows: 1fr;
}


/* 矢印のスタイル */
.accordion-arrow {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-bottom: 1px solid var(--black);
  border-right: 1px solid var(--black);
  transition: transform 0.3s ease;
  content: '';
}

/* アコーディオンが開いているときに矢印を下向きに回転 */
.accordion-title.open .accordion-arrow {
  transform: translateY(-50%) rotate(225deg);
  /* 矢印を180度回転 */
}

/* スマホサイズの時だけアコーディオン形式にする */
@media (max-width: 767px) {
  .accordion-content {
    display: none;
    /* デフォルトで非表示 */
  }

  .accordion-title {
    cursor: pointer;
    /* クリック可能な表示 */
  }
}

.h-fit-content {
  height: fit-content;
}

/* ma-case 詳細ページ
---------------------------*/
.ma-case-post__section {
  h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.2em;
    padding: 7px 0 7px 15px;
    position: relative;
    background-color: var(--gray-300);

    &:before {
      content: '';
      display: block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      bottom: 0;
      width: 3px;
      height: 34px;
      background: var(--green);
    }
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: .8em;
  }

  ul {
    list-style: disc;
    padding-left: 1.2em;
    margin: 1.5rem 0;
  }

  ol {
    list-style: decimal;
    padding-left: 1.2em;
    margin: 1.5rem 0;
  }

  li {
    &::marker {
      color: var(--green);
      font-size: large;
    }

    &:not(:first-child) {
      margin-top: 8px;
    }
  }

  a {
    color: var(--green);
    text-decoration: underline;
  }

  p {
    strong {
      color: var(--green);
    }
  }

  .wp-block-quote {
    padding: 24px;
    background: var(--green-light);
  }

  .sns-box {
    a {
      transform: .3s;

      &:hover {
        filter: brightness(110%);
      }
    }
  }

  .profile {
    background-color: var(--green-light);
    padding: 20px;
  }

  @media (max-width: 767px) {
    h2 {
      font-size: 1.125rem;
    }

    h3 {
      font-size: 1rem;
    }

    p,
    li {
      font-size: .875rem;
    }

    .sns-box {
      img {
        width: 83px;
        height: auto;
      }
    }

    .news-post__arrow {
      width: 18px;
      height: 18px;
    }
  }
}

/* maページ
---------------------------*/
.ma-sec01 {
  ul {
    list-style: disc;
    margin-left: 1em;
  }
}