@charset "UTF-8";

/* common */

.container {
  max-width: 850px;
  padding: 9.5rem 0 0;
}

/* main */

#data-contents {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-evenly;
}

.box {
  background-color: var(--main-color);
  align-self: center;
  max-width: 330px;
  width: 100%;
  padding: 1rem;
  margin: 1rem;
}

.box h3 {
  color: var(--main-color);
  background-color: #fff;
  text-align: center;
  font-family: var(--font-family-01);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 0 4px;
  margin-bottom: 1rem;
}

.box-contents {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 1em;
  margin: 0 auto;
}

.box p,
.box li {
  color: #fff;
  text-align: left;
  font-family: var(--font-family-01);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.055em;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.box li {
  font-size: 14px;
  line-height: 1.8;
}

.box .accent {
  font-size: 240%;
  font-weight: bold;
  margin: 0 0.2em 0 0.25em;
}

.box .annotation {
  display: block;
  font-size: 63.5%;
  font-weight: bold;
  margin: 0;
}

#overtime p,
#gender p,
#paid-leave-rate p,
#parental-leave-rate p {
  text-align: center;
}

#female-executive-ratio h3 {
  font-size: 13px;
}

#allowance p {
  line-height: 1.8;
}

/* pie-chart */

.pie-chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  margin: 1rem auto 0;
}

.pie-chart {
  background: conic-gradient(#ecf2f5 0% 40%, #e28282 40% 100%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.pie-chart-wrapper .label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  font-family: var(--font-family-01);
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
}

.pie-chart-wrapper .label-right {
  color: #e28282;
  top: calc(45% - 10px);
  left: 55%;
  transform: rotate(72deg) translateY(-40px) rotate(-72deg) translateX(-50%);
}

.pie-chart-wrapper .label-left {
  color: #fff;
  top: calc(33% - 10px);
  left: 46%;
  transform: rotate(252deg) translateY(-40px) rotate(-252deg) translateX(-50%);
}

.pie-chart-wrapper .label .accent {
  font-size: 160%;
  margin: 0 0.1em 0 0.25em;
}

.pie-chart-ratio {
  color: var(--main-color);
  background-color: #fff;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-family-01);
  font-size: 18px;
  font-weight: bold;
  border: 2px solid var(--main-color);
  padding: 2px 10px;
  pointer-events: none;
}

#employment .pie-chart-wrapper .label .accent {
  margin-left: 0;
}

#employment .pie-chart-wrapper .label {
  line-height: 1.48;
}

#employment .pie-chart-wrapper .label-left {
  top: calc(23% - 10px);
  left: 46%;
}

#employment .pie-chart-wrapper .label-right {
  top: calc(35% - 10px);
  left: 55%;
}

@media screen and (min-width: 480px) {
  /* main */

  .box-contents {
    max-width: 98%;
  }

  #staff .box-contents,
  #age .box-contents,
  #female-executive-ratio .box-contents {
    max-width: 75%;
  }

  #staff h3,
  #age h3,
  #overtime h3,
  #paid-leave-rate h3,
  #female-executive-ratio h3,
  #qualification h3 {
    margin-bottom: 0.8rem;
  }

  #allowance p {
    letter-spacing: 0.068em;
  }

  #allowance p .annotation {
    letter-spacing: 0.055em;
  }
}
