@charset "UTF-8";

/* ==========================================================================
   heading.css
   ========================================================================== */

.o-c__heading {
  text-align: center;
}

.o-c__heading-h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  padding-bottom: 24px;
  position: relative;
  color: var(--rseisan-primary);
  @media screen and (max-width: 576px) {
    font-size: 25px;
    padding-bottom: 44px;
  }
  &:after {
    @media screen and (max-width: 576px) {
      height: 2px;
      bottom: 25px;
    }
  }
}

.o-c__heading-h1_annotation {
  font-size: 12px;
}

.o-c__heading-h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  padding-bottom: 54px;
  position: relative;
  @media screen and (max-width: 576px) {
    font-size: 25px;
    padding-bottom: 44px;
  }
  &:after {
    content: "";
    width: 40px;
    height: 3px;
    line-height: 0;
    background-color: var(--rseisan-primary);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    @media screen and (max-width: 576px) {
      height: 2px;
      bottom: 25px;
    }
  }
}

.o-c__heading-h2_annotation {
  font-size: 12px;
}

.o-c__heading-h2_line {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  position: relative;
  color: var(--rseisan-primary);
  @media screen and (max-width: 768px) {
    font-size: 22px;
  }
  &:after {
    content: "";
    width: 1000px;
    height: 1px;
    line-height: 0;
    background-color: var(--rseisan-primary);
    position: absolute;
    z-index: 100;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    @media screen and (max-width: 768px) {
      width: 90%;
    }
  }
}

.o-c__heading-h2_line_box {
  background-color: var(--white);
  padding: 0 30px;
  position: relative;
  z-index: 200;
  @media screen and (max-width: 768px) {
    padding: 0 20px;
  }
}

.o-c__heading-h2_line_big {
  font-size: 48px;
  margin: 0 10px;
  @media screen and (max-width: 768px) {
    font-size: 30px;
  }
}

.o-c__heading-lead {
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 30px;
  position: relative;
  @media screen and (max-width: 576px) {
    font-size: 16px;
    line-height: 24px;
    padding-bottom: 25px;
  }
  &::before {
    margin-top: calc((1 - 1.6) * 0.3em);
  }
  &::after {
    margin-bottom: calc((1 - 1.6) * 0.7em);
  }
  &::before,
  &::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
  }
}

.o-c__heading-lead_bold {
  font-weight: 700;
}

.o-c__heading-details_h1 {
  background-color: var(--rseisan-primary);
  color: var(--white);
  text-align: center;
  height: 210px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  @media screen and (max-width: 576px) {
    font-size: 20px;
    padding: 15px 20px;
    height: auto;
    text-align: left;
  }
  &:before {
    content: "";
    position: absolute;
    z-index: 10;
    bottom: -30px;
    right: -150px;
    width: 406px;
    height: 386px;
    background-image: url(/rakurakucloud/seisan/assets/image/figure/cta_back_component.webp);
    background-size: cover;
    transform: rotate(50deg);
    z-index: 10;
    @media screen and (max-width: 576px) {
      bottom: auto;
      top: -60px;
      right: -65px;
      width: 150px;
      height: 150px;
    }
  }
  &:after {
    content: "";
    position: absolute;
    z-index: 10;
    bottom: -140px;
    left: -150px;
    width: 406px;
    height: 386px;
    background-image: url(/rakurakucloud/seisan/assets/image/figure/cta_back_component.webp);
    background-size: cover;
    transform: rotate(230deg);
    z-index: 10;
    @media screen and (max-width: 576px) {
      display: none;
    }
  }
  span {
    position: relative;
    z-index: 20;
  }
}
