/*
  /asset/css/object/module/m-card.css
  機能パネル用ccs
*/

.m-card-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-items: start;
  @media screen and (max-width: 840px) {
    grid-template-columns: repeat(2, 1fr);
  }
}
.m-card-feature-feature-heading-h4 {
  color: var(--black);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  padding: 0 0 10px;
  @media screen and (max-width: 840px) {
    font-size: 18px;
  }
}
.m-card-feature-item___text {
  padding: 15px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.m-card-feature-cta {
  text-align: center;
  display: grid;
  justify-content: center;
  @media screen and (max-width: 840px) {
    display: block;
    margin: 80px 0 0;
  }
  @media screen and (max-width: 600px) {
    margin: 50px 0 0;
  }
}
.m-card-feature-image-wrap {
  margin: 45px 0 0;
}
.m-card-feature-item {
  display: block;
  text-align: center;
  position: relative;
  border-radius: 10px;
  padding: 35px 20px;
  flex-basis: 32%;
  background-color: var(--gray-bg-02);
  min-height: 400px;
  cursor: pointer;
  @media screen and (max-width: 840px) {
    flex-grow: 1;
  }
  @media screen and (max-width: 600px) {
    padding: 25px 10px 50px;
    min-height: auto;
  }
  .c-check-list {
    margin: 20px 0 0;
    @media screen and (max-width: 600px) {
      min-height: 0;
    }
  }
  .c-check-item {
    position: relative;
    margin: 12px 0 0;
    &:first-of-type {
      margin: 0;
    }
    @media screen and (max-width: 600px) {
      display: none;
    }
  }
  .m-card-feature-item__hide-text {
    height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 20px;
    background-color: var(--white);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin: 15px 0 45px;
    transition: all ease 0.3s;
    @media screen and (max-width: 600px) {
      height: auto;
      opacity: 1;
      display: none;
    }
    em {
      font-weight: 700;
    }
  }
  &.is-accordion-open {
    .m-card-feature-item__hide-text {
      height: auto;
      opacity: 1;
      padding: 20px;
      transition: all ease 0.3s;
      visibility: visible;
      @media screen and (max-width: 600px) {
        display: block;
        position: fixed;
        z-index: var(--z-index-modal);
        top: 25%;
        left: 5%;
        width: 90%;
      }
    }
    .m-card-feature-item__button-background {
      &::after {
        content: none;
      }
    }
    .m-card-feature-item__button {
      &::after {
        @media screen and (max-width: 600px) {
          content: "";
          width: 100%;
          height: 100vh;
          background: rgba(0, 0, 0, 0.4);
          position: fixed;
          z-index: var(--z-index-overlay);
          top: 0;
          left: 0;
        }
      }
    }
  }
  .m-card-feature-item__hide-close {
    display: none;
    @media screen and (max-width: 600px) {
      display: block;
      position: absolute;
      top: -10px;
      right: -10px;
      width: 30px;
      height: 30px;
      border-radius: 15px;
      background-color: var(--rsaikenkanri-primary);
      &::before {
        content: "";
        background-color: var(--white);
        width: 3px;
        height: 14px;
        line-height: 0;
        position: absolute;
        top: 8px;
        left: 14px;
        transform: rotate(45deg);
      }
      &::after {
        content: "";
        background-color: var(--white);
        width: 3px;
        height: 14px;
        line-height: 0;
        position: absolute;
        top: 8px;
        left: 14px;
        transform: rotate(-45deg);
      }
    }
  }
}
.m-card-feature-item-heading {
  min-height: 70px;
  font-size: 20px;
  color: var(--rsaikenkanri-primary);
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  @media screen and (max-width: 600px) {
    font-size: 15px;
    min-height: 75px;
  }
}
.m-card-feature-item__icon-wrap {
  background-color: var(--white);
  width: 95px;
  height: 95px;
  border-radius: 50px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.m-card-feature-item__icon {
  width: 70px;
  height: 70px;
}
.m-card-feature-item__hide-highlighter {
  background: linear-gradient(transparent 75%, var(--rseikyu-accent) 0%);
  background-position: 0 1.3em;
  font-weight: 700;
}
.m-card-feature-item__button {
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 35px;
  display: inline-block;
  width: max-content;
  color: var(--rsaikenkanri-primary);
  margin: 0 auto;
  padding: 0 0 0 23px;
  cursor: pointer;
  &:hover {
    .m-card-feature-item__button-background {
      transform: rotate(90deg);
      @media screen and (max-width: 600px) {
        transform: rotate(180deg);
      }
    }
  }
}
.m-card-feature-item__button-open {
  color: var(--rsaikenkanri-primary);
  text-decoration: none;
  display: inline-block;
}
.m-card-feature-item__button-background {
  display: inline-block;
  background-color: var(--rsaikenkanri-primary);
  width: 18px;
  height: 18px;
  border-radius: 9px;
  position: absolute;
  left: 0;
  transition: all ease 0.3s;
  &::before {
    content: "";
    background-color: var(--white);
    width: 8px;
    height: 2px;
    line-height: 0;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
  }
  &::after {
    content: "";
    background-color: var(--white);
    width: 2px;
    height: 8px;
    line-height: 0;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
  }
}
