@charset "UTF-8";
/*
  /rakurakucloud/denshihozon/asset/css/object/module/m-infographic-benefits.css
  導入効果インフォグラフィック用CSS
  棒グラフの高さ比：導入後 50時間 / 導入前 300時間
*/
.m-infographic-benefits {
  position: relative;
  width: 100%;
  max-width: 598px;
  margin: 0 auto;
  color: var(--black);
  text-align: center;
}

.m-infographic-benefits__chart {
  position: relative;
  height: 337px;
  @media screen and (max-width: 600px) {
    height: 230px;
  }
}

/* 棒グラフ */
.m-infographic-benefits__bar {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 38%;
}
.m-infographic-benefits__bar--before {
  left: 0;
  height: 100%;
  @media screen and (max-width: 600px) {
    width: 43.5%;
  }
}
.m-infographic-benefits__bar--after {
  right: 0;
  height: calc(100% / 6);
  @media screen and (max-width: 600px) {
    width: 41.5%;
  }
}

.m-infographic-benefits__bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  @media screen and (max-width: 600px) {
    font-size: 11px;
  }
}
/* 導入前（手作業）の内訳 */
.m-infographic-benefits__bar-item--download {
  height: 12%;
  background-color: var(--gray-08);
}
.m-infographic-benefits__bar-item--folder {
  height: 16%;
  background-color: var(--gray-07);
}
.m-infographic-benefits__bar-item--check {
  height: 17%;
  background-color: var(--gray-06);
}
.m-infographic-benefits__bar-item--rename {
  height: 55%;
  background-color: var(--gray-05);
}
/* 導入後（「楽楽電子保存」） */
.m-infographic-benefits__bar-item--light {
  height: 25%;
  background-color: var(--rdenshihozon-bg-main);
}
.m-infographic-benefits__bar-item--medium {
  height: 25%;
  background-color: var(--rdenshihozon-primary);
}
.m-infographic-benefits__bar-item--dark {
  height: 50%;
  background-color: var(--rdenshihozon-dark);
}

/* 棒グラフ間の傾斜 */
.m-infographic-benefits__slope {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  right: 38%;
  background-color: var(--rdenshihozon-bg-sub-03);
  clip-path: polygon(0 0, 100% calc(100% * 5 / 6), 100% 100%, 0 100%);
  @media screen and (max-width: 600px) {
    left: 43.5%;
    right: 41.5%;
  }
}

/* 吹き出し（上端位置：グラフ高さ × 5/6 - 吹き出しとの間隔 - 吹き出しサイズ） */
.m-infographic-benefits__balloon {
  position: absolute;
  top: calc(337px * 5 / 6 - 26px - 152px);
  left: 81%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 152px;
  border: 2px solid var(--rdenshihozon-primary);
  border-radius: 100%;
  background-color: var(--white);
  color: var(--rdenshihozon-primary);
  line-height: 1.1;
  transform: translateX(-50%);
  @media screen and (max-width: 600px) {
    top: calc(230px * 5 / 6 - 18px - 102px);
    left: 79.25%;
    width: 102px;
    height: 102px;
  }
  /* しっぽ：線色の三角（::before）に白の三角（::after）を重ねて線で表現 */
  &::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(--rdenshihozon-primary);
    @media screen and (max-width: 600px) {
      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: 600px) {
      border-width: 16px 9px 0;
    }
  }
}
.m-infographic-benefits__balloon-row {
  display: block;
  font-size: 26px;
  @media screen and (max-width: 600px) {
    font-size: 17px;
  }
}
.m-infographic-benefits__balloon-small {
  font-size: 18px;
  font-weight: 500;
  @media screen and (max-width: 600px) {
    font-size: 12px;
  }
}
.m-infographic-benefits__balloon-num {
  font-size: 46px;
  letter-spacing: 0.02em;
  @media screen and (max-width: 600px) {
    font-size: 32px;
  }
}
.m-infographic-benefits__balloon-unit {
  font-size: 24px;
  font-weight: 500;
  @media screen and (max-width: 600px) {
    font-size: 16px;
  }
}
.m-infographic-benefits__balloon-note {
  font-size: 11px;
  font-weight: 500;
  vertical-align: top;
  @media screen and (max-width: 600px) {
    font-size: 8px;
  }
}

/* 棒グラフ下のラベル */
.m-infographic-benefits__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  @media screen and (max-width: 600px) {
    gap: 8px;
    margin-top: 10px;
  }
}
.m-infographic-benefits__label {
  width: 38%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  @media screen and (max-width: 600px) {
    font-size: 12px;
    white-space: normal;
  }
}
.m-infographic-benefits__label--before {
  @media screen and (max-width: 600px) {
    width: 43.5%;
  }
}
.m-infographic-benefits__label--after {
  @media screen and (max-width: 600px) {
    width: 41.5%;
  }
}
.m-infographic-benefits__label-num {
  font-size: 22px;
  @media screen and (max-width: 600px) {
    font-size: 16px;
  }
}
