.img img {
  max-width: 100%;
  height: auto;
  display: block;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.calendar-wrapper:has(.img-area) {
  display: block;
}

.quarter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quarter .period {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding-top: 1px;
  background: #eee;
}

.month-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4px;
}
.month-wrapper .month {
  background: #bbb;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #FFF;
}
.month-wrapper .month.active {
  background: #00a9e0;
}
.month-wrapper .event {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 500;
  align-items: center;
  white-space: nowrap;
  width: 100%;
  max-width: 63px;
}
.month-wrapper .event .in-text {
  display: block;
  width: fit-content;
  border-bottom: 1px solid #00a9e0;
}
.month-wrapper .event:before {
  content: "";
  display: none;
  width: 8px;
  height: 8px;
  background: #00a9e0;
  border-radius: 100%;
}
.month-wrapper .event.active:before {
  display: block;
}
.month-wrapper .event.ev2 {
  translate: 19px 0;
}

button {
  all: unset;
}

.text-block:has(.event-tab) {
  margin-top: 80px;
}
@media screen and (max-width: 767px) {
  .text-block:has(.event-tab) {
    margin-top: 64px;
  }
}

.event-tab {
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-tab li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-tab li:after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  background: #CCC;
}
.event-tab li:last-of-type:after {
  display: none;
}
.event-tab li button {
  text-decoration: underline;
  transition: all .3s;
  cursor: pointer;
}
@media (any-hover: hover) {
  .event-tab li button:hover {
    color: #00a9e0;
  }
}

.ir-calendar-item {
  margin-top: 40px;
  opacity: 0;
  display: none;
}
@media screen and (max-width: 767px) {
  .ir-calendar-item {
    margin-top: 24px;
  }
}
.ir-calendar-item.active {
  display: block;
  animation: fadeIn .5s ease-in-out 0.2s forwards;
}
.ir-calendar-item .label-year {
  font-size: 20px;
  color: #00a9e0;
  font-weight: 500;
}

.entry-body ul.event-list {
  border-top: 1px solid #CCC;
}
.entry-body ul.event-list li {
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 24px;
  border-bottom: 1px solid #CCC;
  padding: 14px 0;
}
@media screen and (max-width: 767px) {
  .entry-body ul.event-list li {
    grid-template-columns: 130px 1fr;
  }
}
.entry-body ul.event-list li .date,
.entry-body ul.event-list li .event-title {
  font-size: 16px;
}
@media screen and (max-width: 767px) {
  .entry-body ul.event-list li .date,
  .entry-body ul.event-list li .event-title {
    font-size: 14px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


