﻿@charset "utf-8";
/* Bar Graph Vertical */
.bar-graph .year {
  animation: fade-in-text 2.2s 0.1s forwards;
}

.bar-graph-vertical {
  /* margin-top: 50px; */
  max-width: 100%;
  display: flex;position: relative;
}

.bar-graph-vertical .bar-container {
  /* float: left; margin: 0 1%;*/
  height: 400px;
  position: relative;
  text-align: center;
  /* width: 23%; */
  padding: 0 1%;
  flex: 1;
  }

.bar-graph-vertical .bar {
	text-align: center;
	border-radius: var(--br_s);
	bottom: 40px;
	position: absolute;
	transform: translateX(-50%);
	left: 50%;
	width: 60%;
	min-width: 80px;
}

.bar-graph-vertical .year {
	bottom: 0;
	left: 0;
	margin: 0 auto;
	position: absolute;
	right: 0;
	/*transform: rotate(90deg); */
}
.bar-graph-vertical .graph_line{
	width: 100%; height: 1px; background-color: #dfdfdf; display: block; content: "";
	position: absolute;
	bottom: 40px;
	left: 0;
}

.bar-graph-two .bar::before {
	animation: fade-in-text 2.2s 0.1s forwards;
	color: #fff;
	content: attr(data-percentage);
	font-weight: 800;
	left: 0;
	right: 0;
	margin: 0 auto;
	position: absolute;
	text-align: center;
	top: 24px;
	font-size: 2rem;
  /* transform: rotate(90deg); */
}
.bar-graph-two .bar::after {
	animation: fade-in-text 2.2s 0.1s forwards;
	color: #fff;
	content: '만원';
	top: 70px;
	left: 0;
	right: 0;
	margin: 0 auto;
	position: absolute;
	text-align: center;
}

.bar-graph-two .bar-one .bar {
  background-color: #6e9cff;
  /* animation: show-bar-one-vertical 1.2s 0.1s forwards; */
}

.bar-graph-two .bar-two .bar {
  background-color: #5686ef;
  /* animation: show-bar-two-vertical 1.2s 0.2s forwards; */
}

.bar-graph-two .bar-three .bar {
  background-color: #2b5ecb;
  /* animation: show-bar-three-vertical 1.2s 0.3s forwards; */
}

.bar-graph-two .bar-four .bar {
  background-color: #1342a9;
  /* animation: show-bar-four-vertical 1.2s 0.4s forwards; */
}
.bar-graph-two .bar {
  opacity: 0;
}

.Recruit_03.active .bar-graph-two .bar-one .bar {
  animation: show-bar-one-vertical 1.2s 0.1s forwards;
  opacity: 1;
}
.Recruit_03.active .bar-graph-two .bar-two .bar {
  animation: show-bar-two-vertical 1.2s 0.2s forwards;
  opacity: 1;
}
.Recruit_03.active .bar-graph-two .bar-three .bar {
  animation: show-bar-three-vertical 1.2s 0.3s forwards;
  opacity: 1;
}
.Recruit_03.active .bar-graph-two .bar-four .bar {
  animation: show-bar-four-vertical 1.2s 0.4s forwards;
  opacity: 1;
}



/* Bar Graph Horizontal */
.bar-graph .year {
  animation: fade-in-text 2.2s 0.1s forwards;
  opacity: 0;
}

.bar-graph-horizontal {
  max-width: 380px;
}

.bar-graph-horizontal > div {
  float: left;
  margin-bottom: 8px;
  width: 100%;
}

.bar-graph-horizontal .year {
  float: left;
  margin-top: 18px;
  width: 50px;
}

.bar-graph-horizontal .bar {
  border-radius: 3px;
  height: 55px;
  float: left;
  overflow: hidden;
  position: relative;
  width: 0;
}

.bar-graph-one .bar::after {
  animation: fade-in-text 2.2s 0.1s forwards;
  color: #fff;
  content: attr(data-percentage);
  font-weight: 700;
  position: absolute;
  right: 16px;
  top: 17px;
}

.bar-graph-one .bar-one .bar {
  background-color: #64b5f6;
  animation: show-bar-one 1.2s 0.1s forwards;
}

.bar-graph-one .bar-two .bar {
  background-color: #5686ef;
  animation: show-bar-two 1.2s 0.2s forwards;
}

.bar-graph-one .bar-three .bar {
  background-color: #2b5ecb;
  animation: show-bar-three 1.2s 0.3s forwards;
}

.bar-graph-one .bar-four .bar {
  background-color: #1342a9;
  animation: show-bar-four 1.2s 0.4s forwards;
}

/* Circle Chart */
.circle-chart-container {
	clear: left;
	float: left;
	position: relative;
	max-width: 165px;
	width: 100%;
}

.circle-chart {
	overflow: visible;
}

.circle-chart-circle {
 	animation: circle-chart-fill 1.35s reverse;
	transform: rotate(-90deg);
	transform-origin: center;
}

.circle-chart-two {
	left: 6%;
	max-width: 88%;
	position: absolute;
	top: 6%;
}

.circle-chart-percentage {
	animation: fade-in-text 2.2s 0.1s forwards;
	font-size: 22px;
	font-weight: 700;
	position: absolute;
}

.circle-chart-one-percentage {
	color: #5292AC;
	left: 65px;
	top: 60px;
}

.circle-chart-two-percentage {
	color: #64B2D1;
	left: 40px;
	top: 90px;
}

@keyframes circle-chart-fill {
	to { stroke-dasharray: 0 100; }
}
/* Bar Graph Animations */
@-webkit-keyframes show-bar-one {
  0% {
    width: 0;
  }
  100% {
    width: 69.6%;
  }
}

@-webkit-keyframes show-bar-two {
  0% {
    width: 0;
  }
  100% {
    width: 71%;
  }
}

@-webkit-keyframes show-bar-three {
  0% {
    width: 0;
  }
  100% {
    width: 74.7%;
  }
}

@-webkit-keyframes show-bar-four {
  0% {
    width: 0;
  }
  100% {
    width: 76.8%;
  }
}

@-webkit-keyframes show-bar-one-vertical {
  0% {
    height: 0;
  }
  100% {
    height: 40%;
  }
}

@-webkit-keyframes show-bar-two-vertical {
  0% {
    height: 0;
  }
  100% {
    height: 55%;
  }
}

@-webkit-keyframes show-bar-three-vertical {
  0% {
    height: 0;
  }
  100% {
    height: 68%;
  }
}

@-webkit-keyframes show-bar-four-vertical {
  0% {
    height: 0;
  }
  100% {
    height: 82%;
  }
}

@-webkit-keyframes fade-in-text {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.numbers {
  font-family: "Chivo Mono", monospace;
  /* font-size: 150px; */
  letter-spacing: normal;
  line-height:  1em;
  text-align: center;
  margin: 0!important;
  overflow: hidden;
}
.numbers__window {
  display: inline-block;
  overflow: hidden;
  width: 0.56em;
  height: 1em;
}
.numbers__window__digit {
  font: inherit;
  word-break: break-all;
  display: block;
  width: 0;
  padding: 0 2em 0 0;
  margin: 0 auto;
  overflow: inherit;
  /* animation: counting 0.5s steps(15) forwards infinite; */
}

/* active일 때만 숫자 굴리기 */
.Recruit_03_num.active .numbers__window__digit {
  animation-name: counting;
  animation-duration: 1s;           /* 전체 재생 시간 늘리기 (기본) */
  animation-timing-function: steps(15);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;       /* 한 번만 굴러감 */
}

/* 자릿수별로 조금씩 다르게 (더 자연스럽게) */
.Recruit_03_num.active .numbers__window__digit--1 {
  animation-duration: 0.5s;           
}

.Recruit_03_num.active .numbers__window__digit--2 {
  animation-duration: 0.8s;
}

.Recruit_03_num.active .numbers__window__digit--3 {
  animation-duration: 1s;          
}

/* 올라갔다 다시 내릴 때 초기화 */
.Recruit_03_num:not(.active) .numbers__window__digit {
  animation: none;
  transform: translate3d(0, 0, 0);
}

.Recruit_03_num:not(.active) .numbers__window__digit {
  animation: none;
  transform: translate3d(0, 0, 0); /* 위치 초기화 */
}
.numbers__window__digit::before {
  content: attr(data-fake);
  display: inline-block;
  width: 100%;
  height: auto;
}
/* .numbers__window__digit--1 {
  animation-iteration-count: 3;
}
.numbers__window__digit--2 {
  animation-iteration-count: 6;
}
.numbers__window__digit--3 {
  animation-iteration-count: 9;
}
.numbers__window__digit--4 {
  animation-iteration-count: 12;
}
.numbers__window__digit--5 {
  animation-iteration-count: 15;
} */

@keyframes counting {
  100% {
    transform: translate3d(0, -10em, 0);
  }
}