@charset "UTF-8";

/* ==========================================================================
   object/component/heading.css
   ========================================================================== */

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

.o-c__heading-h1 {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  padding-bottom: 30px;
  position: relative;
  @media screen and (max-width: 576px) {
    padding-bottom: 20px;
    font-size: 25px;
  }
}

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

.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(--rseikyu-primary);
  @media screen and (max-width: 768px) {
    font-size: 22px;
  }
  &:after {
    content: "";
    width: 1000px;
    height: 1px;
    line-height: 0;
    background-color: var(--rseikyu-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;
  &::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 {
  padding-bottom: 30px;
  position: relative;
  top: -5px;
  @media screen and (max-width: 576px) {
    font-size: 16px;
    line-height: 24px;
  }
}

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

.o-c__heading-balloon {
  background: var(--rseikyu-primary);
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
  position: relative;
  padding: 10px 10px;
  border-radius: 30px;
  &:after {
    font-size: 14px;
    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(--rseikyu-primary);
  }
}
