/**
 * イベント一覧アーカイブ（TOP のイベントカードと同一デザイン）
 */

body.fcm-event-archive #main_content.fcm-eventArchive {
  background: var(--fcm-color-bg);
}

body.fcm-event-archive .fcm-eventArchive__head {
  margin-bottom: var(--fcm-space-lg);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fcm-color-bg-mint, #e8f3eb);
}

body.fcm-event-archive .fcm-eventArchive__head .fcm-pageBreadcrumb {
  margin-bottom: 0.75rem !important;
}

body.fcm-event-archive .c-pageTitle {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fcm-color-text);
}

body.fcm-event-archive .fcm-eventArchive__intro,
body.fcm-event-archive .fcm-eventArchive__body {
  margin: 0 0 var(--fcm-space-xl);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fcm-color-text);
}

body.fcm-event-archive .fcm-eventArchive__intro {
  max-width: 48rem;
}

body.fcm-event-archive .fcm-eventArchive__body .c-eventGrid {
  margin-top: var(--fcm-space-lg, 2rem);
  margin-bottom: var(--fcm-space-lg, 2rem);
}

body.fcm-event-archive .fcm-eventArchive__intro > *:first-child,
body.fcm-event-archive .fcm-eventArchive__body > *:first-child {
  margin-top: 0;
}

body.fcm-event-archive .fcm-eventArchive__intro > *:last-child,
body.fcm-event-archive .fcm-eventArchive__body > *:last-child {
  margin-bottom: 0;
}

/* SWELL デフォルトのアーカイブ見出し・カードを非表示 */
body.fcm-event-archive .c-archiveTitle,
body.fcm-event-archive .p-archiveTitle,
body.fcm-event-archive .l-mainContent__title,
body.fcm-event-archive .p-pageTitle,
body.fcm-event-archive .c-pageTitle.-archive,
body.fcm-event-archive .p-blogCard,
body.fcm-event-archive .p-postList,
body.fcm-event-archive .p-archiveContent > .c-postList {
  display: none !important;
}

body.fcm-event-archive .c-eventGrid.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: var(--fcm-space-md, 1.5rem);
  margin-top: 0;
  margin-bottom: var(--fcm-space-xl, 3rem);
  align-items: stretch;
}

@media (min-width: 640px) {
  body.fcm-event-archive .c-eventGrid.wp-block-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  body.fcm-event-archive .c-eventGrid.wp-block-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.fcm-event-archive .c-eventGrid > .wp-block-column {
  flex-basis: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* TOP イベント情報カードと同一の見た目を強制 */
body.fcm-event-archive .c-eventGrid .c-eventCard,
body.fcm-event-archive .c-eventSlider .c-eventCard {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--fcm-radius-lg, 12px) !important;
  overflow: hidden !important;
  box-shadow: var(--fcm-shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.08)) !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__link,
body.fcm-event-archive .c-eventSlider .c-eventCard__link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__media,
body.fcm-event-archive .c-eventSlider .c-eventCard__media {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    180deg,
    #f3efe6 0%,
    #d5cfc3 42%,
    #4a4642 100%
  ) !important;
  overflow: hidden !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__overlay,
body.fcm-event-archive .c-eventSlider .c-eventCard__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 1rem 1.1rem 1.15rem !important;
  background: linear-gradient(
    180deg,
    rgba(16, 24, 20, 0) 28%,
    rgba(16, 24, 20, 0.55) 66%,
    rgba(16, 24, 20, 0.86) 100%
  ) !important;
  pointer-events: none !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__body,
body.fcm-event-archive .c-eventSlider .c-eventCard__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 0.3rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__meta,
body.fcm-event-archive .c-eventSlider .c-eventCard__meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.3rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__type,
body.fcm-event-archive .c-eventSlider .c-eventCard__type,
body.fcm-event-archive .c-eventGrid .c-eventCard__type.c-label,
body.fcm-event-archive .c-eventSlider .c-eventCard__type.c-label {
  align-self: flex-start !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__type.-ticket,
body.fcm-event-archive .c-eventSlider .c-eventCard__type.-ticket {
  background: #efc61a !important;
  color: #2b241b !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__date,
body.fcm-event-archive .c-eventSlider .c-eventCard__date,
body.fcm-event-archive .c-eventGrid .c-eventCard__title,
body.fcm-event-archive .c-eventSlider .c-eventCard__title,
body.fcm-event-archive .post_content .c-eventCard__title,
body.fcm-event-archive .c-eventGrid .c-eventCard__venue,
body.fcm-event-archive .c-eventSlider .c-eventCard__venue {
  color: #fff !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__date,
body.fcm-event-archive .c-eventSlider .c-eventCard__date {
  display: block !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__title,
body.fcm-event-archive .c-eventSlider .c-eventCard__title,
body.fcm-event-archive .post_content h3.c-eventCard__title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  color: #fff !important;
}

@media (max-width: 639px) {
  body.fcm-event-archive .c-eventGrid .c-eventCard__title,
  body.fcm-event-archive .c-eventSlider .c-eventCard__title,
  body.fcm-event-archive .post_content h3.c-eventCard__title {
    font-size: 1.3rem !important;
  }
}

body.fcm-event-archive .c-eventGrid .c-eventCard__title::before,
body.fcm-event-archive .c-eventGrid .c-eventCard__title::after,
body.fcm-event-archive .c-eventSlider .c-eventCard__title::before,
body.fcm-event-archive .c-eventSlider .c-eventCard__title::after,
body.fcm-event-archive .post_content h3.c-eventCard__title::before,
body.fcm-event-archive .post_content h3.c-eventCard__title::after {
  display: none !important;
  content: none !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__venue,
body.fcm-event-archive .c-eventSlider .c-eventCard__venue {
  font-size: 0.7rem !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__status,
body.fcm-event-archive .c-eventSlider .c-eventCard__status {
  position: absolute !important;
  top: 0.65rem !important;
  right: 0.65rem !important;
  z-index: 2 !important;
}

body.fcm-event-archive .c-eventGrid .c-eventCard__thumbPlaceholder,
body.fcm-event-archive .c-eventSlider .c-eventCard__thumbPlaceholder {
  color: rgba(43, 36, 27, 0.45) !important;
}

body.fcm-event-archive .c-eventGrid__empty {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: var(--fcm-color-text-muted);
}

body.fcm-event-archive .fcm-eventArchive__head .fcm-eventArchive__pagination {
  margin: 0 0 1rem !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination,
.fcm-eventArchive__pagination {
  display: block !important;
  width: 100% !important;
  margin: 1.5rem 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination ul.page-numbers,
.fcm-eventArchive__pagination ul.page-numbers,
.fcm-eventArchive__pagination ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination ul.page-numbers li,
.fcm-eventArchive__pagination ul.page-numbers li,
.fcm-eventArchive__pagination ul li {
  display: inline-flex !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination ul.page-numbers li::before,
body.fcm-event-archive .fcm-eventArchive__pagination ul.page-numbers li::after,
.fcm-eventArchive__pagination ul.page-numbers li::before,
.fcm-eventArchive__pagination ul.page-numbers li::after,
.fcm-eventArchive__pagination ul li::before,
.fcm-eventArchive__pagination ul li::after {
  content: none !important;
  display: none !important;
}

body.fcm-event-archive .fcm-eventArchive__body .fcm-eventArchive__pagination,
body.fcm-event-archive .c-eventGrid + .fcm-eventArchive__pagination {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  padding-top: 0.25rem !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination a.page-numbers,
body.fcm-event-archive .fcm-eventArchive__pagination span.page-numbers,
.fcm-eventArchive__pagination a.page-numbers,
.fcm-eventArchive__pagination span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 2.5rem !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--fcm-color-primary) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: var(--fcm-font-en, inherit) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  color: var(--fcm-color-primary) !important;
  cursor: pointer !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination span.page-numbers.dots,
.fcm-eventArchive__pagination span.page-numbers.dots {
  width: auto !important;
  min-width: 1.5rem !important;
  height: auto !important;
  padding: 0 0.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fcm-color-text-muted, #667) !important;
  cursor: default !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination span.page-numbers.current,
.fcm-eventArchive__pagination span.page-numbers.current {
  background: var(--fcm-color-primary) !important;
  border-color: var(--fcm-color-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: default !important;
}

body.fcm-event-archive .fcm-eventArchive__pagination a.page-numbers:hover,
.fcm-eventArchive__pagination a.page-numbers:hover {
  background: var(--fcm-color-primary) !important;
  border-color: var(--fcm-color-primary) !important;
  color: #fff !important;
}
