:root {
  --type-color-pink: #ec79a8;
  --type-color-blue: #69beec;
  --type-color-green: #63b63f;
  --type-color-yellow: #f7b42e;
}
body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media print, screen and (min-width: 768px) {
    main {
        width: 100%;
        max-width: 960px;
        padding: 48px 0 72px;
    }
  }
@media print, screen and (max-width: 768px) {
    main {
      width: 100%;
      padding: 0 2.1333333333vw;
    }
}

.main-image__content {
  width: 100%;
  height: auto;
}
.main-image__content img {
  width: 100%;
  height: auto;
}

/* ここから下チャート部分 */


.chart{
    display: flex;
    justify-content: center;
    margin-top: 60px;
}
.chart-container{
  width: 100%;
  max-width: 720px;
}
.chart-card {
    position: relative;
    margin: 20px 0;
}
/* .chart-card .chart-label-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 22px;
    align-items: flex-end;
} */
.chart-card .chart-label-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;

    height: 22px;
    align-items: flex-end;

  }
.chart-card .chart-label-wrapper span:nth-child(2) {
    text-align: center;
    flex-grow: 1;
}
.chart-card .chart-label-wrapper span {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
  }
/* .chart-card .chart-label-wrapper .chart-label-center {
    font-size: 15px;
    line-height: 1; 
    flex-grow: 1;
    text-align: center;
    align-self: flex-start;
} */
.chart-card .chart-label-wrapper .chart-label-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    font-size: 15px;
    align-self: flex-start;

  }
canvas {
    display: block;
    margin: 7px auto;
    background-color: var(--sub-bg-color);
    border-radius: 1em;
    width: 100%;
    height: 13px;
}
@media print, screen and (max-width: 768px) {
    .chart {
      margin-inline: 3.2vw;
    }
    .chart-container {
      width: 100%;
    }
    .chart-card .chart-label-wrapper span {
      font-size: 3.2vw;
    }
    .chart-card .chart-label-wrapper .chart-label-center {
      font-size: 3.7333333333vw;
    }
    canvas {
      width: 100%;
      height: 5.3333333333vw;
    }
}



/* ここまでチャート部分 */

.content {
  margin-inline: auto;
  max-width: 760px;
  margin-top: 60px;
}
/* .content.pink {
  --type-color: var(--type-color-pink);
}
.content.blue {
  --type-color: var(--type-color-blue);
}
.content.green {
  --type-color: var(--type-color-green);
}
.content.yellow {
  --type-color: var(--type-color-yellow);
} */
.content h2 {
  /* color: var(--main-color); */
  font-size: 20px;
  line-height: 1.5;
  font-weight: bold;
}
.content strong {
  /* color: var(--main-color); */
  display: block;
  line-height: 2;
  /* font-size: 16px; */
  font-weight: bold;
}
.content p {
  font-size: 16px;
  line-height: 2;
}
.content h2 + p,
.content h2 + strong {
  margin-top: 16px;
}
.content p + h2 {
  margin-top: 60px;
}
.content p + strong {
  margin-top: 32px;
}
@media print, screen and (max-width: 768px) {
  .content {
    padding: 0 3.2vw;
  }
  .content h2 {
    font-size: 5.3333333333vw;
  }
  .content p, .content strong {
    font-size: 4.2666666667vw;
  }
  .content h2 + p,
  .content h2 + strong {
    margin-top: 4.2666666667vw;
  }
  .content p + h2 {
    margin-top: 16vw;
  }
  .content p + strong {
    margin-top: 8.5333333333vw;
  }
}
.back-to-home {
  margin-top: 60px;
  margin-inline: auto;
  display: block;
  padding: 18px 24px;
  background-color: var(--main-color);
  min-height: 60px;
  width: 300px;
  text-align: center;
  border-radius: 30px;
  display: flex;
  justify-content: center;
}
.back-to-home span {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}
@media print, screen and (max-width: 768px) {
  .back-to-home {
    margin-top: 8vw;
    width: 80vw;
    height: 16vw;
    line-height: 1.2631578947;
    border-radius: 9999px;
    padding: 4.8vw 6.4vw;
  }
  .back-to-home span {
    font-size: 5.3333333333vw;
  }
}
/* シェア */
.share {
  margin-top: 60px;
}
.share__item {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.share-sns__item {
  height: 50px;
  width: 100%;
  max-width: 280px;
  min-width: 190px;
  border-radius: 10px;
}
.share-sns__link {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
}
.share-sns__item--twitter {
  background-color: #040404;
}
.share-sns__item--facebook {
  background-color: #1877f2;
}
.share-sns__item--line {
  background-color: #06c755;
}
.share-copy {
  width: 100%;
  margin-top: 20px;
}
.copy-url {
  height: 40px;
  max-width: 723px;
  min-width: 150px;
  width: 100%;
}
.copy-url .copy-url__input {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  font-size: 12px;
  line-height: 2;
  padding: 6px 20px;
  background-color: #fff;
  border: 1px solid #bcc2c9;
}
.copy-btn {
  flex-shrink: 0;
  height: 40px;
  width: 140px;
}
.copy-btn__content {
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 10px;
  font-size: 12px;
  line-height: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
@media print, screen and (max-width: 768px) {
  .share {
    margin-top: 16vw;
    padding-bottom: 16vw;
  }
  .share__item {
    flex-direction: column;
    align-items: center;
    gap: 3.2vw;
  }
  .share-sns__link {
    gap: 3.2vw;
    font-size: 4.2666666667vw;
    border-radius: 2.6666666667vw;
  }
  .share-sns__item {
    max-width: none;
    width: 81.3333333333vw;
    height: 13.3333333333vw;
  }
  .share-copy {
    margin-top: 12px;
  }
  .copy-url {
    width: 81.3333333333vw;
    height: 10.6666666667vw;
  }
  .copy-url .copy-url__input {
    border-radius: 1.3333333333vw;
    font-size: 3.2vw;
    padding: 1.6vw 5.3333333333vw;
  }
  .copy-btn {
    height: 10.6666666667vw !important;
    width: 74.6666666667vw !important;
  }
  .copy-btn .copy-btn__content {
    border: .2666666667vw solid #333;
    border-radius: 13.3333333333vw;
    font-size: 3.4666666667vw;
    line-height: 1.6153846154;
  }
}