.calendar-month-wrapper {
  transform: skewX(-20deg);
  overflow: hidden;
  display: block;
  width: 3vw;
  height: 105%;
  cursor: pointer;
}

.calendar-month-wrapper:hover .calendar-month-button {
  background-size: 200%;
}

.calendar-month-button {
  position: absolute;
  transform: skewX(20deg);
  width: 150%;
  height: 100%;
  left: -25%;
  background-image: url("/assets/img/trainingContent/circle_darkBlue.webp");
  background-size: 10%;
  background-repeat: no-repeat;
  background-position: 50% 84%;
  transition: background-size 0.2s ease-in;
}

.calendar-month {
  overflow: visible;
  position: absolute;
  transform: skewX(15deg);
  text-align: center;
  height: 100%;
  width: 100%;
  padding-top: 12%;
  font-weight: bold;
  margin-left: 5%;
  transition: all 0.2s ease-in;
}

.unselected .calendar-month {
  color: #000076;
}

.selected .calendar-month {
  color: #ffc464;
  font-size: 1.8em;
  font-weight: bold;
  padding-top: 16%;
}

.selected .calendar-month-button {
  background-size: 200%;
}

#calendar-months {
  display: flex;
  height: 4vw;
  width: auto;
  margin-top: 3vh;
  justify-content: space-evenly;
  background: linear-gradient(90deg, #b67b03 0%, #daaf08 10%, #fee9a0 30%, #daaf08 50%, #fee9a0 80%, #daaf08 90% 100%);
  padding-left: 8vw;
  padding-right: 8vw;
}

.unselected .calendar-month::before {
  /* 矢印の表示設定 */
  content: "";
  position: absolute;
  margin-top: 27%;
  top: 0;
  bottom: 0;
  width: 0.3em;
  height: 0.3em;
  border-top: 0.08em solid #000076;
  border-right: 0.08em solid #000076;
  transform: rotate(45deg);
  animation: leftSlideBlink 1s linear infinite; /* アニメーションの初期設定 */
}

@keyframes leftSlideBlink {
  /* アニメーションの内容 */
  from {
    /* アニメーション開始時のスタイル */
    opacity: 0;
    left: -4%;
  }
  to {
    /* アニメーション終了時のスタイル */
    opacity: 1;
    left: 1%;
  }
}

.unselected .calendar-month::after {
  /* 右側の矢印の表示設定 */
  content: "";
  position: absolute;
  margin-top: 27%;
  top: 0;
  bottom: 0;
  width: 0.3em;
  height: 0.3em;
  border-top: 0.08em solid #000076;
  border-right: 0.08em solid #000076;
  transform: rotate(225deg);
  animation: rightSlideBlink 1s linear infinite;
}

@keyframes rightSlideBlink {
  /* 右側のアニメーションの内容 */
  from {
    opacity: 0;
    right: -4%;
  }
  to {
    opacity: 1;
    right: 1%;
  }
}

#calendar-under-line {
  background-color: #000076;
  width: 100%;
  height: 0.6vw;
}

@media screen and (min-width: 1024px) {
  .calendar-month-wrapper {
    display: block;
    width: 5vw;
  }

  .unselected .calendar-month {
    margin-top: 0.2vw;
    font-size: 0.9em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.2vw;
    font-size: 1.1em;
    font-weight: bold;
    left: -4%;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.2vw;
    margin-bottom: 0.2vw;
    font-size: 1.1em;
    font-weight: bold;
    left: -4%;
  }

  #calendar-months {
    display: flex;
    height: 4.2vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

@media screen and (min-width: 1500px) {
  .calendar-month-wrapper {
    display: block;
    width: 5vw;
  }

  .calendar-month-button {
    background-position: 50% 80%;
    background-size: 8%;
  }

  .unselected .calendar-month {
    margin-top: 0.3vw;
    font-size: 1.1em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.3vw;
    font-size: 1.4em;
    font-weight: bold;
    left: -2%;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.3vw;
    margin-bottom: 0.3vw;
    font-size: 1.4em;
    font-weight: bold;
    left: -2%;
  }

  #calendar-months {
    display: flex;
    height: 4vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }

  @keyframes leftSlideBlink {
    /* アニメーションの内容 */
    from {
      /* アニメーション開始時のスタイル */
      opacity: 0;
      left: 0%;
    }
    to {
      /* アニメーション終了時のスタイル */
      opacity: 1;
      left: 5%;
    }
  }

  @keyframes rightSlideBlink {
    /* 右側のアニメーションの内容 */
    from {
      opacity: 0;
      right: 0%;
    }
    to {
      opacity: 1;
      right: 5%;
    }
  }
}

@media screen and (min-width: 1600px) {
  .calendar-month-wrapper {
    display: block;
    width: 5vw;
  }

  .calendar-month-button {
    background-position: 50% 80%;
    background-size: 8%;
  }

  .unselected .calendar-month {
    margin-top: 0.3vw;
    font-size: 1.3em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.3vw;
    font-size: 1.6em;
    font-weight: bold;
    left: -2%;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.3vw;
    margin-bottom: 0.3vw;
    font-size: 1.6em;
    font-weight: bold;
    left: -2%;
  }

  #calendar-months {
    display: flex;
    height: 4vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }

  @keyframes leftSlideBlink {
    /* アニメーションの内容 */
    from {
      /* アニメーション開始時のスタイル */
      opacity: 0;
      left: 0%;
    }
    to {
      /* アニメーション終了時のスタイル */
      opacity: 1;
      left: 5%;
    }
  }

  @keyframes rightSlideBlink {
    /* 右側のアニメーションの内容 */
    from {
      opacity: 0;
      right: 0%;
    }
    to {
      opacity: 1;
      right: 5%;
    }
  }
}

@media screen and (min-width: 1920px) {
  .calendar-month-wrapper {
    display: block;
    width: 4.2vw;
  }

  .unselected .calendar-month {
    margin-top: 0.4vw;
    font-size: 1.6em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.4vw;
    font-size: 1.8em;
    font-weight: bold;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.4vw;
    margin-bottom: 0.4vw;
    font-size: 1.8em;
    font-weight: bold;
  }

  #calendar-months {
    display: flex;
    height: 4vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }

  @keyframes leftSlideBlink {
    /* アニメーションの内容 */
    from {
      /* アニメーション開始時のスタイル */
      opacity: 0;
      left: -5%;
    }
    to {
      /* アニメーション終了時のスタイル */
      opacity: 1;
      left: 0%;
    }
  }

  @keyframes rightSlideBlink {
    /* 右側のアニメーションの内容 */
    from {
      opacity: 0;
      right: -5%;
    }
    to {
      opacity: 1;
      right: 0%;
    }
  }
}

@media screen and (min-width: 2560px) {
  .calendar-month-wrapper {
    display: block;
    width: 4.2vw;
  }

  .calendar-month-button {
    background-position: 50% 78%;
  }

  .unselected .calendar-month {
    margin-top: 0.2vw;
    font-size: 2.1em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.3vw;
    font-size: 2.4em;
    font-weight: bold;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.2vw;
    margin-bottom: 0.3vw;
    font-size: 2.4em;
    font-weight: bold;
  }

  #calendar-months {
    display: flex;
    height: 4vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }

  @keyframes leftSlideBlink {
    /* アニメーションの内容 */
    from {
      /* アニメーション開始時のスタイル */
      opacity: 0;
      left: -5%;
    }
    to {
      /* アニメーション終了時のスタイル */
      opacity: 1;
      left: 0%;
    }
  }

  @keyframes rightSlideBlink {
    /* 右側のアニメーションの内容 */
    from {
      opacity: 0;
      right: -5%;
    }
    to {
      opacity: 1;
      right: 0%;
    }
  }
}

@media screen and (min-width: 3840px) {
  .calendar-month-wrapper {
    display: block;
    width: 4.2vw;
  }

  .calendar-month-button {
    background-position: 50% 78%;
  }

  .unselected .calendar-month {
    margin-top: 0.2vw;
    font-size: 3.3em;
  }

  .unselected:hover .calendar-month {
    color: #ffc464;
    margin-bottom: 0.3vw;
    font-size: 3.6em;
    font-weight: bold;
    padding-top: 16%;
  }

  .selected .calendar-month {
    margin-top: 0.2vw;
    margin-bottom: 0.3vw;
    font-size: 3.6em;
    font-weight: bold;
  }

  #calendar-months {
    display: flex;
    height: 4vw;
    width: auto;
    margin-top: 3vh;
    justify-content: space-evenly;
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

.no-contents {
  display: none;
}
