@charset "UTF-8";
/*
  /asset/css/object/component/c-cta.css
  CTAコンポーネント用CSS
*/

/*
  CTAベース
*/
.c-cta {
  position: relative;
  transition: all ease 0.2s;
  .c-cta__link {
    display: block;
    padding: 34px 25px 27px;
    background-color: var(--rsaikenkanri-cta);
    border: 3px solid var(--white);
    color: var(--white);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    width: 425px;
    border-radius: 50px;
    @media screen and (max-width: 1024px) {
      width: 400px;
      font-size: 18px;
    }
    @media screen and (max-width: 840px) {
      padding: 25px 15px 18px;
    }
    @media screen and (max-width: 600px) {
      width: auto;
      padding: 24px 15px 17px;
    }
    &::before {
      content: "";
      display: block;
      position: absolute;
      width: 13px;
      height: 13px;
      right: 22px;
      margin: auto;
      transform: rotate(45deg);
      transition: all 0.3s ease;
      width: 13px;
      border-right: 3px solid var(--white);
      border-top: 3px solid var(--white);
      @media screen and (max-width: 1024px) {
        right: 25px;
      }
    }
  }
  .c-cta__balloon {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    color: var(--black);
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    padding: 7px 25px 4px;
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    white-space: nowrap;
    @media screen and (max-width: 600px) {
      font-size: 12px;
      padding: 5px 15px 3px;
      top: -12px;
    }
    &::after {
      display: block;
      position: absolute;
      content: "";
      width: 0;
      height: 0;
      left: 50%;
      bottom: -8px;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-bottom-width: 0;
      border-top: 10px solid var(--white);
      @media screen and (max-width: 600px) {
        top: 20px;
      }
    }
  }
  .c-cta__balloon-accent {
    color: var(--rsaikenkanri-cta);
  }
  .c-cta__image {
    display: block;
    left: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    @media screen and (max-width: 1024px) {
      left: 12px;
    }
    @media screen and (max-width: 840px) {
      display: none;
    }
  }
  .c-cta__free {
    background-color: var(--white);
    border-radius: 20px;
    color: var(--rsaikenkanri-cta);
    display: inline-block;
    padding: 6px 10px 3px;
    position: relative;
    top: -1px;
    white-space: nowrap;
    font-size: 14px;
    @media screen and (max-width: 600px) {
      display: none;
    }
  }
  @media screen and (max-width: 840px) {
    margin: 25px 0 0;
  }
  @media screen and (max-width: 600px) {
    margin: 20px 0 0;
    width: inherit;
  }
  &:first-child {
    @media screen and (max-width: 840px) {
      margin: 0;
    }
  }
  &:hover {
    transform: scale(1.03);
    .c-cta__balloon {
      background: var(--rsaikenkanri-cta);
      color: var(--white);
      &::after {
        border-top: 10px solid var(--rsaikenkanri-cta);
      }
    }
    .c-cta__free {
      background: var(--rsaikenkanri-cta);
      color: var(--white);
    }
    .c-cta__balloon-accent {
      color: var(--white);
    }
    .c-cta__link {
      color: var(--rsaikenkanri-cta);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
      background-color: var(--white);
      border: 3px solid var(--rsaikenkanri-cta);
      &::before {
        border-right: 3px solid var(--rsaikenkanri-cta);
        border-top: 3px solid var(--rsaikenkanri-cta);
      }
    }
  }
}

/*
  ボーダーCTA
*/
.c-cta--border {
  &:hover {
    .c-cta__balloon {
      background-color: var(--white);
      color: var(--rsaikenkanri-cta);
      &::after {
        border-top: 10px solid var(--white);
      }
    }
    .c-cta__link {
      background-color: var(--rsaikenkanri-cta);
      border: 3px solid var(--white);
      color: var(--white);
      &::before {
        border-right: 3px solid var(--white);
        border-top: 3px solid var(--white);
      }
    }
  }
  .c-cta__balloon {
    background: var(--rsaikenkanri-cta);
    color: var(--white);
    &::after {
      border-top: 10px solid var(--rsaikenkanri-cta);
    }
    .c-cta__free {
      background: var(--white);
      color: var(--rsaikenkanri-cta);
    }
  }
  .c-cta__link {
    color: var(--rsaikenkanri-cta);
    background-color: var(--white);
    border: 3px solid var(--rsaikenkanri-cta);
    &::before {
      content: "";
      border-right: 3px solid var(--rsaikenkanri-cta);
      border-top: 3px solid var(--rsaikenkanri-cta);
    }
  }
}

/*
  ドキュメント有
*/
.c-cta--mail {
  .c-cta__link {
    padding: 34px 25px 24px 65px;
    @media screen and (max-width: 840px) {
      padding: 24px 15px 17px;
    }
  }
}

/*
  料金プラン用影なしCTA(lp/001)
*/
.c-cta-small {
  position: relative;
  &:hover {
    transform: scale(1.03);
    .c-cta-small__link {
      color: var(--rsaikenkanri-cta);
      background: var(--white);
      color: var(--rsaikenkanri-cta);
      border: 3px solid var(--rsaikenkanri-cta);
      &::before {
        border-right: 3px solid var(--rsaikenkanri-cta);
        border-top: 3px solid var(--rsaikenkanri-cta);
      }
    }
  }
  .c-cta-small__link {
    display: block;
    padding: 20px 25px 24px;
    background: var(--rsaikenkanri-cta);
    color: var(--white);
    border: 3px solid var(--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    width: 100%;
    height: 60px;
    border-radius: 50px;
    @media screen and (max-width: 1024px) {
      font-size: 16px;
    }
    &::before {
      content: "";
      display: block;
      position: absolute;
      width: 13px;
      height: 13px;
      right: 22px;
      margin: auto;
      transform: rotate(45deg);
      transition: all 0.3s ease;
      width: 13px;
      border-right: 3px solid var(--white);
      border-top: 3px solid var(--white);
      @media screen and (max-width: 1024px) {
        right: 25px;
      }
    }
  }
}

/*
  サイドフローティングCTA
*/
.c-cta-floating {
  position: fixed;
  top: 45%;
  right: 0;
  z-index: var(--z-index-front);
  width: 57px;
  @media screen and (max-width: 840px) {
    display: none !important;
  }
}
.c-cta-floating__close {
  display: block;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -25px;
  right: 0;
  background-color: var(--gray-08);
  padding: 5px 5px 1px 5px;
  &::before {
    content: "";
    background-color: var(--white);
    width: 3px;
    height: 14px;
    line-height: 0;
    position: absolute;
    top: 6px;
    left: 12px;
    transform: rotate(-45deg);
  }
  &::after {
    content: "";
    background-color: var(--white);
    width: 3px;
    height: 14px;
    line-height: 0;
    position: absolute;
    top: 6px;
    left: 12px;
    transform: rotate(45deg);
  }
}
.c-cta-floating__link {
  text-decoration: none;
  display: block;
  padding: 22px 15px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  background-color: var(--rsaikenkanri-cta);
  border-top: 2px solid var(--rsaikenkanri-cta);
  border-left: 2px solid var(--rsaikenkanri-cta);
  border-bottom: 2px solid var(--rsaikenkanri-cta);
  &:hover {
    background-color: var(--white);
    color: var(--rsaikenkanri-cta);
  }
}

/*
  下部固定CTA
*/
.c-cta-bottom {
  background-color: rgba(0, 173, 14, 0.8);
  width: 100%;
  padding: 15px 0;
  position: fixed;
  z-index: var(--z-index-front);
  bottom: 0;
  left: 0;
  transition: 0.3s;
  transform: translateY(101%);
  @media screen and (max-width: 840px) {
    display: block;
    padding: 10px;
  }
}
.c-cta-bottom.is-show {
  transform: translateY(0);
}
.c-cta-bottom-list {
  width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  @media screen and (max-width: 1024px) {
    width: 90%;
  }
  @media screen and (max-width: 840px) {
    width: 100%;
  }
}
.c-cta-bottom-item {
  width: 48%;
  @media screen and (max-width: 840px) {
    width: 49%;
  }
}
.c-cta-bottom-item__link {
  display: inline-block;
  position: relative;
  text-align: center;
  white-space: nowrap;
  background-color: var(--rsaikenkanri-cta);
  padding: 10px 0 8px;
  color: var(--white);
  text-decoration: none;
  width: 100%;
  height: auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border: 3px solid var(--white);
  border-radius: 50px;
  @media screen and (max-width: 840px) {
    font-size: 14px;
    border: none;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    width: 13px;
    height: 13px;
    right: 22px;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    transition: 0.3s;
    width: 13px;
    border-right: 3px solid var(--white);
    border-top: 3px solid var(--white);
    @media screen and (max-width: 1024px) {
      right: 25px;
    }
    @media screen and (max-width: 840px) {
      content: none;
    }
  }
  &:hover {
    transform: scale(1.03);
    color: var(--rsaikenkanri-cta);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    background-color: var(--white);
    border: 3px solid var(--rsaikenkanri-cta);
    &::before {
      border-right: 3px solid var(--rsaikenkanri-cta);
      border-top: 3px solid var(--rsaikenkanri-cta);
    }
  }
}
.c-cta-bottom-item__link--border {
  border: 3px solid var(--rsaikenkanri-cta);
  background-color: var(--white);
  color: var(--rsaikenkanri-cta);
  @media screen and (max-width: 840px) {
    border: none !important;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    width: 13px;
    height: 13px;
    right: 22px;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    transition: 0.3s;
    width: 13px;
    border-right: 3px solid var(--rsaikenkanri-cta);
    border-top: 3px solid var(--rsaikenkanri-cta);
    @media screen and (max-width: 1024px) {
      right: 25px;
    }
    @media screen and (max-width: 840px) {
      content: none;
    }
  }
  &:hover {
    transform: scale(1.03);
    color: var(--white);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    background-color: var(--rsaikenkanri-cta);
    border: 3px solid var(--white);
    &::before {
      border-right: 3px solid var(--white);
      border-top: 3px solid var(--white);
    }
  }
}
.c-cta-bottom-item__text {
  line-height: 1.4;
}
.c-cta-bottom-item__text-sub {
  display: block;
  font-size: 12px;
  padding: 0 0 5px;
  @media screen and (max-width: 840px) {
    display: none;
  }
}
.c-cta-bottom-item__image {
  display: block;
  left: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  @media screen and (max-width: 1024px) {
    left: 12px;
  }
  @media screen and (max-width: 840px) {
    display: none;
  }
}
/* 固定フッターCTAはpc表示しない場合のクラス */
.c-cta-bottom--pc-none {
  @media screen and (min-width: 841px) {
    display: none;
  }
  .c-cta-bottom-item__image-wrap,
  .c-cta-bottom-item__text-sub {
    display: none;
  }
}
