#page-description {
  margin-left: 7%;
}

#training-description-area {
  display: inline-flex;
  overflow: hidden;
  margin-top: 20px;
  width: 100%;
}

ul {
  margin-block-start: 0em;
  margin-block-end: 0em;
  padding: 0;
}

.horizontal-list {
  display: inline-flex;
  white-space: nowrap;
}

.horizontal-list li {
  display: inline-block;
  border-style: solid;
  border-color: #ffffff;
  border-width: 0.2vw;
}

@keyframes event-image-scroll {
  0% {
    transform: translateX(0%);
  }
  14% {
    transform: translateX(-13.4%);
  }
  29% {
    transform: translateX(-30.4%);
  }
  43% {
    transform: translateX(-44%);
  }
  58% {
    transform: translateX(-57.8%);
  }
  72% {
    transform: translateX(-73%);
  }
  86% {
    transform: translateX(-86.5%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.horizontal-list {
  animation-name: event-image-scroll;
  animation-timing-function: ease;
  animation-duration: 20s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
}

#months {
  display: flex;
  justify-content: space-evenly;
  background: linear-gradient(to right, #3cca3c, 10%, #33bdb4, #0e2288);
  margin-bottom: 3.7%;
}

#calendar-under-space {
  height: 2vw;
}

.event-button-area {
  text-align: center;
}

.event-button-area > div {
  color: white;
  font-size: 1rem;
}

.empty-event > button {
  display: none;
}

.empty-event > div {
  display: none;
}

.description-month-detail-image {
  object-fit: cover;
  max-height: 60%;
  z-index: 1;
}

.button-image {
  width: 90%;
}

.month-button {
  background-color: #ffffff00;
  border-color: transparent;
  border: none;
  /*波紋の基点とするためrelativeを指定*/
  position: relative;
  /*波紋の形状*/
  display: inline-block;
  border-radius: 50%;
  outline: none;
}

/*波形を設定*/
.month-button::after {
  content: "";
  /*絶対配置で波形の位置を決める*/
  position: absolute;
  /*波形の形状*/
  width: 150%;
  height: 150%;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*ループするアニメーションの設定*/
  animation: 3s circleanime linear infinite;
}

/*波形の2つ目は0.5秒遅らせてアニメーション*/
.month-button::before {
  animation-delay: 0.5s;
}

/*波形のアニメーション*/
@keyframes circleanime {
  0% {
    transform: scale(0.68);
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

#training-page-title {
  font-size: 2.5rem;
  width: fit-content;
}

#under-line {
  height: 4px;
  width: 440px;
  background-color: lime;
  position: relative;
  bottom: 40px;
  transform: skewX(-45deg);
}

#page-description .attention {
  font-size: clamp(0.5rem, 0.8vw, 2rem);
}

@media screen and (min-width: 1024px) {
  #page-description {
    font-size: 1rem;
  }

  #training-description-area {
    height: 280px;
  }

  .horizontal-list {
    height: 280px;
  }

  .horizontal-list li {
    height: 280;
  }

  .image-item {
    height: 280px;
  }

  #months {
    height: 90px;
  }

  .event-button-area > button {
    width: 40px;
    height: 40px;
  }

  .event-button-area > div {
    font-size: 1.2rem;
  }

  .month-button::after {
    border: 3px solid rgba(255, 255, 255, 0.3);
    left: -31.5%;
    top: -35%;
  }

  #under-line {
    width: 420px;
    bottom: 40px;
  }
}

@media screen and (min-width: 1600px) {
  #under-line {
    width: 450px;
    bottom: 40px;
  }
  #page-description {
    font-size: 1.5rem;
  }

  .description-month-detail-image {
    max-height: 82%;
  }

  #training-description-area {
    height: 360px;
  }

  .horizontal-list {
    height: 360px;
  }

  .image-item {
    height: 360px;
  }
}

@media screen and (min-width: 1920px) {
  #page-description {
    font-size: 1.6rem;
  }

  .description-month-detail-image {
    max-height: 40%;
  }

  #training-description-area {
    height: 400px;
  }

  .horizontal-list {
    height: 390px;
  }

  .image-item {
    height: 390px;
  }

  #months {
    height: 140px;
  }

  .event-button-area > button {
    width: 60px;
    height: 60px;
  }

  .event-button-area > div {
    font-size: 2rem;
  }

  .month-button::after {
    border: 3px solid rgba(255, 255, 255, 0.3);
    left: -28.5%;
    top: -30%;
  }

  #under-line {
    width: 540px;
    bottom: 40px;
  }

  #training-page-title {
    font-size: 3rem;
  }
}

@media screen and (min-width: 2560px) {
  #under-line {
    width: 570px;
    bottom: 40px;
  }

  .description-month-detail-image {
    max-height: 90%;
  }

  #training-description-area {
    height: 640px;
  }

  .horizontal-list {
    height: 630px;
  }

  .image-item {
    height: 630px;
  }
}

@media screen and (min-width: 3840px) {
  #page-description {
    font-size: 3.4rem;
  }

  .description-month-detail-image {
    max-height: 82%;
  }

  #training-description-area {
    height: 970px;
  }

  .horizontal-list {
    height: 940px;
  }

  .image-item {
    height: 940px;
  }

  #months {
    height: 320px;
  }

  .event-button-area > button {
    width: 150px;
    height: 150px;
  }

  .event-button-area > div {
    font-size: 4rem;
  }

  .month-button::after {
    border: 6px solid rgba(255, 255, 255, 0.3);
    left: -28.5%;
    top: -30%;
  }

  #under-line {
    height: 10px;
    width: 1080px;
    bottom: 50px;
  }

  #training-page-title {
    font-size: 6rem;
  }
}
