@charset "UTF-8";
/*
  /rakurakucloud/mailmarketing/asset/css/object/module/m-onayami.css
  お悩みモジュール用CSS
*/
.m-onayami {
  position: relative;
  padding: 50px 0 0;
  @media screen and (max-width: 840px) {
    padding: 0;
  }
}
.m-onayami-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  @media screen and (max-width: 840px) {
    grid-template-columns: 1fr;
  }
  &.m-onayami-list--2column {
    grid-template-columns: repeat(2, 1fr);
    @media screen and (max-width: 840px) {
      grid-template-columns: 1fr;
    }
  }
}
.m-onayami__content {
  position: relative;
  padding: 90px 20px 30px;
  background-color: var(--gray-bg-02);
  border-radius: 10px;
  margin: 0 0 100px;
  @media screen and (max-width: 840px) {
    margin: 70px 0 30px;
  }
}
.m-onayami__image {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.m-onayami-content-item {
  background-color: var(--white);
  width: calc(100% - 20px);
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
}
.m-onayami-content-item:not(:last-of-type) {
  margin: 0 0 10px;
}
.m-onayami-content-item:nth-child(even) {
  margin-inline-start: auto;
}
.m-onayami__content-before {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 10px;
  background-color: var(--white);
  border-radius: 10px;
}
.m-onayami__content-before-text {
  font-size: 16px;
  text-align: center;
}
.m-onayami__content-before-text-large {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.m-onayami__solution {
  position: relative;
  background: var(--rmailmarketing-bg-sub-03);
  border-radius: 10px;
  padding: 50px 20px 30px;
  text-align: center;
  &::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 62px;
    border-radius: 32px;
    background: var(--white);
  }
  &::after {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background: url(/rakurakucloud/mailmarketing/asset/image/common/icon/icon_arrow-primary.svg) no-repeat no-repeat center center;
  }
}
.m-onayami__solution.m-onayami__solution--height {
  height: 230px;
  @media screen and (max-width: 1024px) {
    height: 300px;
  }
  @media screen and (max-width: 1024px) {
    height: inherit;
  }
}
.m-onayami__solution-text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}
.m-onayami__solution-text:last-of-type {
  margin: 0 0 20px;
}
.m-onayami__solution-explain {
  margin: 20px 0 0;
  font-size: 16px;
  text-align: left;
  line-height: 1.6;
}
.m-onayami__solution-large {
  font-size: 24px;
}
.m-onayami__solution-small {
  font-size: 16px;
  margin: 20px 0 0;
}
.m-onayami__heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.m-onayami__heading--sp {
  display: none;
}
/* trouble */
.m-onayami-list.m-onayami-list--4column {
  grid-template-columns: repeat(4, 1fr);
  gap: 0 20px;
}
.m-onayami-list.m-onayami-list--4column .m-onayami__solution-text {
  font-size: var(--fz-s);
  line-height: var(--line-height-s);
}
.m-onayami__content.m-onayami__content--mb-none {
  margin: 0 0 60px;
}
.m-onayami__title {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  @media screen and (max-width: 840px) {
    position: static;
    transform: none;
    font-size: 22px;
    padding: 20px 0 0;
  }
}
.m-onayami__title.m-onayami__title--position {
  top: 53%;
  @media screen and (max-width: 1024px) {
    top: 47%;
  }
}
