@charset "UTF-8";

/* ==========================================================================
   infographic-benefits.css
   ========================================================================== */

/* 棒グラフの高さ比：導入後 93時間 / 導入前 688時間 */
/* グラフの高さはページ側で --benefits-chart-height / --benefits-chart-height-sp を指定すると上書き */

.o-m__infographic-benefits {
  position: relative;
  width: 100%;
  max-width: 598px;
  margin: 0 auto;
  color: var(--black);
  text-align: center;
}

.o-m__infographic-benefits_chart {
  position: relative;
  height: var(--benefits-chart-height, 337px);
  @media screen and (max-width: 576px) {
    height: var(--benefits-chart-height-sp, 230px);
  }
}

.o-m__infographic-benefits_bar {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38%;
}

.o-m__infographic-benefits_bar._before {
  left: 0;
  height: 100%;
  background-color: var(--gray-06);
  @media screen and (max-width: 576px) {
    width: 43.5%;
  }
}

.o-m__infographic-benefits_bar._after {
  right: 0;
  height: 13.5174418605%;
  background-color: var(--rseikyu-primary);
  color: var(--white);
  @media screen and (max-width: 576px) {
    width: 41.5%;
  }
}

.o-m__infographic-benefits_bar_text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  @media screen and (max-width: 576px) {
    font-size: 14px;
  }
}

.o-m__infographic-benefits_slope {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  right: 38%;
  background-color: var(--rseikyu-bg-sub-03);
  clip-path: polygon(0 0, 100% 86.4825581395%, 100% 100%, 0 100%);
  @media screen and (max-width: 576px) {
    left: 43.5%;
    right: 41.5%;
  }
}

.o-m__infographic-benefits_balloon {
  position: absolute;
  top: calc(var(--benefits-chart-height, 337px) * 0.8648255814 - 26px - 152px);
  left: 81%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 152px;
  border: 2px solid var(--rseikyu-primary);
  border-radius: 100%;
  background-color: var(--white);
  color: var(--rseikyu-primary);
  line-height: 1.1;
  transform: translateX(-50%);
  @media screen and (max-width: 576px) {
    top: calc(var(--benefits-chart-height-sp, 230px) * 0.8648255814 - 18px - 102px);
    left: 79.25%;
    width: 102px;
    height: 102px;
  }
  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-color: transparent;
  }
  &::before {
    top: 100%;
    border-width: 22px 13px 0;
    border-top-color: var(--rseikyu-primary);
    @media screen and (max-width: 576px) {
      border-width: 16px 10px 0;
    }
  }
  &::after {
    top: calc(100% - 3px);
    border-width: 22px 12px 0;
    border-top-color: var(--white);
    @media screen and (max-width: 576px) {
      border-width: 16px 9px 0;
    }
  }
}

.o-m__infographic-benefits_balloon_row {
  display: block;
  font-size: 26px;
  @media screen and (max-width: 576px) {
    font-size: 17px;
  }
}

.o-m__infographic-benefits_balloon {
  ._small {
    font-size: 18px;
    font-weight: 500;
    @media screen and (max-width: 576px) {
      font-size: 12px;
    }
  }
  ._num {
    font-size: 46px;
    letter-spacing: 0.02em;
    @media screen and (max-width: 576px) {
      font-size: 32px;
    }
  }
  ._unit {
    font-size: 24px;
    font-weight: 500;
    @media screen and (max-width: 576px) {
      font-size: 16px;
    }
  }
  ._note {
    font-size: 11px;
    font-weight: 500;
    vertical-align: top;
    @media screen and (max-width: 576px) {
      font-size: 8px;
    }
  }
}

.o-m__infographic-benefits_labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  @media screen and (max-width: 576px) {
    gap: 8px;
    margin-top: 10px;
  }
}

.o-m__infographic-benefits_label {
  width: 38%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  @media screen and (max-width: 576px) {
    width: auto;
    font-size: 12px;
    white-space: normal;
  }
}

.o-m__infographic-benefits_label._before {
  @media screen and (max-width: 576px) {
    width: 43.5%;
  }
}

.o-m__infographic-benefits_label._after {
  @media screen and (max-width: 576px) {
    width: 41.5%;
  }
}

.o-m__infographic-benefits_label_row {
  display: block;
}

.o-m__infographic-benefits_label ._num {
  font-size: 22px;
  @media screen and (max-width: 576px) {
    font-size: 16px;
  }
}
