/* =========================
   Event Carousel
========================= */

/* =========================
   Event Section
========================= */

.event-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;

  padding: 20px 0 10px;
  margin-top: 5px;
  text-align: center;
}


/* 英字サブタイトル */
.event-section::before {
  content: "EVENT";

  display: block;

  font-size: 0.7rem;
  font-weight: 500;

  letter-spacing: 0.22em;

  color: #9ca3af;

  margin-bottom: 6px;
}


/* 見出し */
.event-section h3 {
  font-size: 1.7rem;
  font-weight: 600;

  color: #374151;

  margin: 0 0 5px;
}

/* =========================
   Carousel
========================= */
/* スライダー */

.event-slider {
  list-style: none;
  margin: 0;
  padding: 0;

  position: relative;
  height: 405px;
  overflow: hidden;

  perspective: 1600px;
}

/* ベース */
.top-event-card {

  position: absolute;

  left: 50%;
  top: 50%;

  width: 220px;

  opacity:0;

  z-index:1;

  transition:
    transform 0.8s ease,
    opacity 0.8s ease;

  transform-origin: center center;
}


.top-event-card a {
  text-decoration: none;
  color: inherit;
}


/* 中央 */
.top-event-card.active {

  transform:
    translate(-50%, -50%)
    scale(0.95);

  opacity: 1;
  z-index: 20;
}

.top-event-card.active:hover {
  transform:
    translate(-50%,-50%)
    scale(1.1);

  transition: 0.3s;
}

.top-event-card.active img {
  box-shadow:
    0 10px 24px rgba(0,0,0,0.14);
}


/* 左 */
.top-event-card.prev {
  transform:
    translate(-155%, -50%)
    rotateY(12deg)
    scale(0.82);

  opacity: 0.48;

  z-index: 10;
}


/* 右 */
.top-event-card.next {
  transform:
    translate(55%, -50%)
    rotateY(-12deg)
    scale(0.82);

  opacity: 0.48;

  z-index: 10;
}


.top-event-card.prev img,
.top-event-card.next img {

  box-shadow:
    0 6px 15px rgba(0,0,0,.12);
}


/* その他 */
.top-event-card:not(.active):not(.prev):not(.next) {
  opacity: 0;
  pointer-events: none;
}


/* =========================
   thumb
========================= */
.event-thumb {
  width: 100%;
  height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.event-thumb img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  border-radius: 6px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.10);
}



/* =========================
   Event Caption
========================= */

.event-caption {
  position: relative;

  padding: 0;

  text-align: center;
}


/* =========================
   Status
========================= */

.event-status {
  position: absolute;

  top: -318px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 10;

  display: inline-block;

  padding: 6px 12px;

  font-size: 0.95rem;
  font-weight: 700;

  line-height: 1.2;

  border-radius: 4px;

  background: rgba(255, 255, 255, 0.94);

  color: #374151;

  white-space: nowrap;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* =========================
   Event Information
========================= */

.event-caption h3,
.event-caption p {
  position: static;

  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}


/* イベント名 */

.event-caption h3 {
  margin: -2px 10px 0;

  font-size: 1.05rem;
  font-weight: 600;

  line-height: 1.35;

  color: #374151;

  text-decoration: none;
}


/* 開催日 */

.event-caption p {
  margin: 3px 10px 0;

  font-size: 0.95rem;

  line-height: 1.3;

  color: #6b7280;

  text-decoration: none;
}


/* =========================
   左右カードは情報を表示しない
========================= */

.top-event-card.prev .event-caption,
.top-event-card.next .event-caption {
  display: none;
}


/* =========================
  一覧へ
========================= */

event-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 5px;

  padding: 9px 22px;

  border: 1px solid #d1d5db;
  border-radius: 999px;

  background: transparent;

  color: #4b5563;

  font-size: 0.9rem;
  text-decoration: none;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.event-more:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #1f2937;
}

