/* 募集中・募集終了ボタン共通 */
.event-section {
  background-image: url(../../img/roles-bg_paint.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position-y: 46px;
  background-color: #FBF6EE;
  padding-top: 31px;
  padding-bottom: 222px;
}

.event__grid__button--isopen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 36px;
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: "Noto Sans JP";
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

/* 募集中ボタン */
.event__grid__button--isopen.event__grid__button--isopen--true {
  color: #F08300;
  border-color: #F08300;
  background-color: #fff;
}

/* 募集終了ボタン */
.event__grid__button--isopen.event__grid__button--isopen--false {
  color: #5E5E5E;
  border-color: #5E5E5E;
  background-color: #F3F3F3;
}

.event-section .roles_h2-span1 {
  display: block;
  font-family: "Caveat";
  color: #F08300;
  margin-bottom: 5px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.event-section .roles_h2-span2 {
  display: block;
  font-family: "Noto Sans JP";
  color: #282828;
  font-size: 1.5rem;
  line-height: 1.46;
  margin-bottom: 30px;
}

.event__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  gap: 18px 16px;
  justify-content: center;
}

.event__grid-inner {
  width: 100%;
}

.event__grid > a {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event__grid > a:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.event__grid-img {
  width: 100%;
  aspect-ratio: 520 / 262;
  object-fit: cover;
  display: block;
}

.event__grid-content {
  padding: 14px 14px 0;
}

.event__grid__button--arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event__grid__button--arrow img {
  width: 10px;
  height: 18px;
}

.event__grid dl {
  margin: 0;
  font-family: "Noto Sans JP";
}

.event__grid__button-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 14px 14px;
}

.event__grid dt {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.44;
  color: #000000;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event__grid dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.44;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* ページネーション */
.event-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  margin-bottom: -76px; /* ページネーション込みで次セクションまでの余白が約200pxになるよう調整 */
}

.event-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #5E5E5E;
  border-radius: 50%;
  background-color: #ffffff;
  color: #5E5E5E;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.event-pagination .page-numbers.current {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.event-pagination .prev,
.event-pagination .next {
  position: relative;
  background-color: #ffffff;
  border-color: #5E5E5E;
  font-size: 0;
}

.event-pagination .prev::before,
.event-pagination .next::before {
  content: "";
  display: block;
  width: 7px;
  height: 13px;
  background-color: #5E5E5E;
  -webkit-mask: url("../../img/common-arrow_white.svg") center / contain no-repeat;
  mask: url("../../img/common-arrow_white.svg") center / contain no-repeat;
}

.event-pagination .prev::before {
  transform: rotate(180deg);
}

/* レスポンシブはここから */
@media screen and (max-width: 767px) {
  .event-section {
    background-image: unset;
    padding-top: unset;
  }
  
  .event__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event__grid > a {
    width: 100%;
  }

  .event__grid-content {
    padding: 20px 15px 0;
  }

  .event__grid__button-area {
    padding: 54px 15px 15px;
  }

  .role-section.event-section {
    padding-bottom: 156px;
  }

  .event-section .roles_h2-span1 {
    font-size: 1.25rem;
    padding-top: 33px;
  }

  .event-section .roles_h2-span2 {
    font-size: 1.375rem;
    margin-bottom: 28px;
    line-height: 1.18;
    letter-spacing: 6%;
  }

  .event__grid-img {
    aspect-ratio: 359 / 181;
  }

  .event__grid dt {
    margin: 0 0 20px;
  }

  .event__grid__button--arrow {
    width: 28px;
    height: 28px;
  }

  .event__grid__button--arrow img {
    width: 8px;
    height: 16px;
  }

  .event__grid dt {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .event__grid dd {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}