/**
 * calendar
 * ---------------------------------------- */
#calendar {
  margin-top: 0.15625vw;
  padding: 262px 0 268px;
}

#calendar h2 {
  text-align: center;
}

.archive-content #calendar {
  padding: 0;
}

#calendar .calendar-contents {
  margin-top: 2.16145vw;
}

#calendar .calendar-content {
  height: 5.677vw;
  position: relative;
  width: 80%;
  margin-left: 10%;
  border-bottom: 1px solid #dfdfdf;
}

#calendar .calendar-content div {
  margin-top: 1.5vw;
}
#calendar p,
#calendar h4,
#calendar h5 {
  margin: 0;
}

#calendar .calendar-content .date {
  width: 15.573vw;
  display: inline-block;
  text-align: left;
}

#calendar .calendar-content hr {
  position: absolute;
  transform: rotate(90deg);
  top: 2.7vw;
  left: 12vw;
  border: none;
  height: 1px;
  width: 3.698vw;
  background-color: #dfdfdf;
}

#calendar .calendar-content a {
  height: 2.291667vw;
  line-height: 2.291667vw;
  width: 8.6vw;
  /* font-family: "roboto"; */
  font-size: 0.78vw;
  border-radius: 0.26vw;
  text-align: center;
  color: white;
  background-color: #000;
  position: absolute;
  right: 0;
  top: calc(50% - 1.1458vw);
  margin: 0 25px 0 0;
}

.calendar-text {
  display: inline-block;
  text-align: left;
}

.calendar-text h5 {
  font-size: 1.302vw;
  letter-spacing: 0;
}

.calendar-text p {
  font-size: 0.833vw;
  letter-spacing: 0;
}

.date h4 {
  font-size: 1.5625vw;
  /* font-family: "roboto"; */
}

.date p {
  font-size: 10px;
  display: inline-block;
  background-color: var(--maincolor);
  color: white;
  width: 83px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 5px;
  transform: translateX(-2px);
  vertical-align: middle;
}

#calendar .more,
.at-calendar .more {
  font-size: 3.125vw;
  margin-top: 3.3vw;
  margin-bottom: 2.656vw;
}

@media (min-width: 901px) {
  .sp {
    display: none;
  }
  #calendar .calendar-content .date.sp {
    display: none;
  }
}

@media (max-width: 900px) {
  #calendar {
    padding: 0;
  }
  #calendar h2 {
    line-height: 210px;
  }
  #calendar .calendar-content {
    padding-top: 5.17vw;
    padding-bottom: 5.17vw;
    /* height: 35.157vw; */
    height: 100%;
    margin: 0;
    width: 100%;
    padding-left: 4.8vw;
  }
  #calendar .calendar-content .date-sp-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #calendar .calendar-content a {
    /* display: none; */
    width: 83px;
    height: 20px;
    top: calc(50% - 4.1458vw);
    font-size: 10px;
    line-height: 20px;
    text-align: center;

    margin: 0;
    position: unset;
  }
  #calendar .calendar-content .animsition-link-sp {
    display: block;
    position: unset;
    margin: 0;
  }
  #calendar .calendar-content hr {
    display: none;
  }
  #calendar .calendar-content .date {
    width: 100%;
    margin-top: 2.933vw;
  }
  #calendar .calendar-content .date.pc {
    display: none;
  }
  #calendar .calendar-content .date.sp {
    margin: 0;
  }
  .calendar-text {
    display: unset;
  }
  .calendar-text p {
    display: none;
  }
  .calendar-text h5 {
    font-size: 4.2667vw;
  }
  .date h4 {
    display: contents;
  }
  #calendar .more,
  .at-calendar .more {
    font-size: 10.667vw;
    margin-top: 9.922vw;
    margin-bottom: 12.8vw;
  }
}

.at-calendar {
  max-width: 1096px;
  margin: 0 auto;
}
.at-calendar h2 {
  text-align: center;
}
.at-calendar .calendarlist {
  display: flex;
  flex-wrap: wrap;
  margin: 40px auto 0;
}
.at-calendar .at-calendar-item {
  list-style: none;
}
.at-calendar .at-calendar-item figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.at-calendar .at-calendar-item:nth-child(n + 3) .subject {
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 48px;
  width: calc(100% - 32px);
}
.at-calendar .at-calendar-item:nth-child(n + 3) .category {
  /* bottom: 56px; */
  bottom: 66px;
  left: 16px;
}
.at-calendar .at-calendar-item:nth-child(n + 3) .date {
  bottom: 64px;
  right: 16px;
}
@media screen and (min-width: 768px) {
  .at-calendar .at-calendar-item {
    flex-basis: calc(50% - 48px);
    margin: 20px;
  }
  .at-calendar .at-calendar-item .date {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 767px) {
  .at-calendar .calendarlist {
    flex-direction: column;
    max-width: 480px;
    margin-top: 24px;
  }
  .at-calendar .at-calendar-item .subject {
    font-size: 13px;
  }
  .at-calendar .at-calendar-item .category {
    font-size: 0.875rem;
  }
  .at-calendar .at-calendar-item .date {
    font-size: 0.625rem;
  }
  .at-calendar .at-calendar-item:nth-child(n + 2) {
    margin-top: 32px;
  }
  .row-grid-section .at-calendar .at-calendar-item:nth-child(n + 4) {
    display: none;
  }
}

/**
 * カレンダーリスト
 * ---------------------------------------- */
.at-calendar-item a {
  display: block;
  position: relative;
  box-shadow: 0 0px 5px var(--maincolor);
  transition: box-shadow 0.5s ease-out, transform 2s ease-out;
}
.at-calendar-item a::before {
  content: "";
  z-index: 1;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
}
.at-calendar-item a:hover {
  box-shadow: 0 0px 20px var(--maincolor);
  transform: translateY(-10px);
}
.at-calendar-item .c-tag {
  position: absolute;
  top: -12px;
  left: -12px;
}
.at-calendar-item .subject,
.at-calendar-item .category,
.at-calendar-item .date {
  display: flex;
  align-items: center;
  z-index: 2;
  position: absolute;
  height: 40px;
  line-height: 1.2;
}
.at-calendar-item .subject {
  bottom: 0;
  right: 24px;
  left: 24px;
  height: 64px;
  border-top: 2px solid #393939;
  color: #b8cad9;
  font-weight: 700;
  text-align: left;
  font-size: 20px;
}
.at-calendar-item .category,
.at-calendar-item .date {
  color: #b8cad9;
  border-color: var(--maincolor);
  font-weight: 900;
}
.at-calendar-item .category {
  /* bottom: 72px; */
  bottom: 83px;
  left: 24px;
  border-bottom: 2px solid currentcolor;
  font-size: 0.875rem;
}
.at-calendar-item .category .entry-cat {
  font-size: 10px;
  display: inline-block;
  background-color: var(--maincolor);
  color: white;
  width: 83px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 5px;
  transform: translateX(-2px);
  vertical-align: middle;
}
.at-calendar-item .date {
  bottom: 79px;
  right: 24px;
  font-size: 0.75rem;
}
.at-calendar-item figure {
  display: flex;
}
@media screen and (max-width: 479px) {
  .at-calendar-item .subject {
    height: 40px;
    font-size: 0.8125rem;
  }
  .at-calendar-item .category {
    /* bottom: 48px; */
    bottom: 58px;
    font-size: 0.6875rem;
  }
  .at-calendar-item .date {
    bottom: 55px;
    font-size: 0.625rem;
  }
}

@media screen and (max-width: 767px) {
  .at-calendar-item .category .entry-cat {
    font-size: 8px;
    width: 60px;
    height: 18px;
  }
}
