/* あしらい */
.event-detail-ashirai {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.event-detail-ashirai .ashirai-image {
  width: 100%;
  height: auto;
}

/* イベント一覧ページ専用スタイル */
.event-list .container {
  padding: 0;
}

.event-list-inner {
  display: inline-flex;
  padding: 48px 24px 32px 24px;
  margin-top: 56px;
  border-radius: 40px;
  background: #fffdea;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#events .event-card {
  width: 100%;
  min-width: 100%;
  max-width: none;
  box-shadow: none;
}

.event-card-inner {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.event-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 件数表示部分 */
.event-count-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 16px;
}

.event-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #156fc6;
  text-align: center;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.28px;
}

.count-number {
  color: #156fc6;
  text-align: center;
  font-size: var(--24px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.48px;
}

.event-display-info {
  color: #156fc6;
  font-size: var(--10px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.2px;
}

/* サムネイル部分 */
.event-thumbnail {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 327 / 148;
  border-radius: 16px 16px 0 0;
}

.event-thumbnail img.main-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* サムネイル内コンテナ（オーバーレイとあしらいの親要素） */
.event-thumbnail-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2; /* 重なり順を明示的に設定 */
}

/* サムネイル内テキスト要素（タイトルとサブテキスト） */
.event-thumbnail-overlay {
  width: 100%;
  border-radius: 8px;
  padding: 12px var(--17px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* サムネイルあしらい */
.event-thumbnail-ashirai {
  position: absolute;
  top: -13px;
  right: -31px;
  width: var(--60px);
  height: var(--60px);
  pointer-events: none;
  z-index: 1;
}

.event-thumbnail-title {
  font-weight: bold;
}

.thumbnail-ashirai-image {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

/* カード内部分 */
.event-info {
  padding: 16px 24px;
  flex-grow: 1;
}

.event-title {
  font-weight: 500;
  font-size: var(--14px);
  line-height: 1.7;
  color: #27292b;
  margin-top: 0;
  margin-bottom: 16px;
}

.event-excerpt {
  font-size: var(--14px);
  line-height: 1.7;
  color: #27292b;
}

/* 詳しくはこちら部分 */
.event-arrow {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 24px 24px;
  font-weight: 600;
  font-size: var(--14px);
  line-height: 1.7;
  color: #156fc6;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.event-arrow span {
  margin-right: 4px;
}

.arrow-circle {
  position: relative;
  width: 14px;
  height: 14px;
  background-color: #156fc6;
  border-radius: 50%;
  margin-left: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-right {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #ffffff;
  margin-left: 1px;
}

/* ページネーション */
.pagination {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: center;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  text-decoration: none;

  font-weight: 600;
  font-size: var(--14px);
  border-radius: 15px;
  color: #156fc6;
  background-color: #e8f3ff;
  transition: background-color 0.3s ease;
}

.page-number.active {
  background-color: #156fc6;
  color: #ffffff;
}

.page-dots {
  margin: 0 4px;
  color: #156fc6;
}

/* タイトル部分 */
.title-area {
  text-align: center;
  margin-top: 50px;
}

.event-title-en {
  font-weight: 600;
  font-size: var(--28px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #156fc6;
  margin: 0;
  margin-bottom: 16px;
}

.event-title-ja {
  font-weight: 600;
  font-size: var(--18px);
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: #27292b;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.cta-button-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
}
.cta-button-container .cta{
  margin-top: 0;
}
