@charset "UTF-8";
/*
  /rakurakucloud/seisan/base/css/object/module/m-infographic-benefits.css
  導入効果インフォグラフィック用CSS（/base/include/infographic/benefits.php）
  業務ごとの高さ比は旧デザイン（assets_src/css/object/module/_infographic-benefits.scss）と共通
  導入前：経理 68.54 / 承認 77.89 / 申請 218.09（計 364.52）
  導入後：経理 16.62 / 承認 16.61 / 申請 21.809（紙・Excel比で90%削減）（計 55.039）
  棒グラフの高さ比：導入後 / 導入前 = 0.151
*/
.m-infographic-benefits {
  position: relative;
  width: 100%;
  max-width: 590px;
  margin: 0 auto;
  color: var(--black);
  text-align: center;
}

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

/* 棒グラフ */
.m-infographic-benefits__bar {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 42.7%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.m-infographic-benefits__bar--before {
  left: 0;
  height: 100%;
}
.m-infographic-benefits__bar--after {
  right: 0;
  height: 15.1%;
}

.m-infographic-benefits__bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  @media screen and (max-width: 600px) {
    font-size: 12px;
  }
}
/* 導入前（紙・Excel）の内訳 */
.m-infographic-benefits__bar-item--accounting {
  height: 18.8%;
  background-color: var(--gray-08);
}
.m-infographic-benefits__bar-item--approval {
  height: 21.37%;
  background-color: var(--gray-07);
}
.m-infographic-benefits__bar-item--application {
  height: 59.83%;
  background-color: var(--gray-06);
}
/* 導入後（「楽楽精算」）の内訳 */
.m-infographic-benefits__bar-item--light {
  height: 30.2%;
  background-color: var(--rseisan-light);
}
.m-infographic-benefits__bar-item--medium {
  height: 30.18%;
  background-color: var(--rseisan-medium);
}
.m-infographic-benefits__bar-item--dark {
  height: 39.62%;
  background-color: var(--rseisan-dark);
}

/* 棒グラフ間の傾斜 */
.m-infographic-benefits__slope {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42.7%;
  right: 42.7%;
  background-color: var(--rseisan-bg-sub-02);
  clip-path: polygon(0 0, 100% 84.9%, 100% 100%, 0 100%);
}

/* 吹き出し（上端位置：グラフ高さ × (1 - 0.151) - 吹き出しとの間隔 - 吹き出しサイズ） */
.m-infographic-benefits__balloon {
  position: absolute;
  top: calc(248px * 0.849 - 22px - 170px);
  left: 78.65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  margin: 0;
  border: 2px solid var(--rseisan-primary);
  border-radius: 100%;
  background-color: var(--white);
  color: var(--rseisan-primary);
  line-height: 1.1;
  transform: translateX(-50%);
  @media screen and (max-width: 600px) {
    top: calc(200px * 0.849 - 18px - 102px);
    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(--rseisan-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: 24px;
  @media screen and (max-width: 600px) {
    font-size: 14px;
  }
}
.m-infographic-benefits__balloon-row--num {
  position: relative;
  font-size: 56px;
  letter-spacing: 0.02em;
  @media screen and (max-width: 600px) {
    font-size: 32px;
  }
}
.m-infographic-benefits__balloon-row--last {
  font-size: 30px;
  @media screen and (max-width: 600px) {
    font-size: 17px;
  }
}
.m-infographic-benefits__balloon-small {
  font-size: 20px;
  font-weight: 500;
  @media screen and (max-width: 600px) {
    font-size: 12px;
  }
}
.m-infographic-benefits__balloon-unit {
  font-size: 44px;
  @media screen and (max-width: 600px) {
    font-size: 26px;
  }
}
.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: 14px 0 0;
  @media screen and (max-width: 600px) {
    margin-top: 10px;
  }
}
.m-infographic-benefits__label {
  width: 42.7%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  @media screen and (max-width: 840px) {
    font-size: 15px;
  }
  @media screen and (max-width: 600px) {
    font-size: 12px;
  }
}
.m-infographic-benefits__label-row {
  display: block;
}
.m-infographic-benefits__label-logo {
  width: 84px;
  height: auto;
  margin-right: 0.5em;
  vertical-align: -0.3em;
  @media screen and (max-width: 600px) {
    width: 56px;
    margin-right: 0.3em;
  }
}
.m-infographic-benefits__label-em {
  font-size: 26px;
  letter-spacing: 0.02em;
  @media screen and (max-width: 840px) {
    font-size: 22px;
  }
  @media screen and (max-width: 600px) {
    font-size: 18px;
  }
}
