/* eventページ用 */

/* 必要なパーツ読み込み */
@import url('../event/_fv.css');
@import url('../event/_problem.css');
@import url('../event/_feature.css');
@import url('../event/_cta.css');

/* event固有（あればここから下に書く） */
/* 募集中・募集終了ボタン共通 */
.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-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  background-color: #fff;
}

/* 募集中ボタン */
.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;
}

.role-section.event-section {
  background-color: #FBF6EE;
  padding-bottom: 200px;
}

.event-section .roles_h2-span1 {
  display: block;
  font-family: "Caveat";
  color: #F08300;
  padding-top: 31px;
  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;
}

.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;
  display: block;
}

.event__grid dl {
  margin: 0;
}

.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;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  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__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;
  }

  .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;
  }
}
