/* events.css - イベントページ固有のスタイル */

/* 空白セクション */
.white-space {
  height: 100px;
  background: var(--shinonome);
}

/* イベントセクション */
.event-section {
  display: flex;
  padding: 60px 10%;
  flex-direction: column;
  align-items: center;
  background: var(--ivory);
}

.event-section .section-title {
  color: var(--shinonome);
}

.event-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
  width: 100%;
  max-width: 1200px;
}

.event-block {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.event-block img {
  width: 240px;
  height: 160px;
  min-width: 240px;
  min-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.event-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.event-title-and-date {
  display: flex;
  align-items: center;
  gap: 13px;
}

.event-title {
  color: var(--shinonome);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.event-date {
  color: var(--shinonome);
  font-family: var(--noto);
  font-size: var(--font_16);
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.event-description {
  display: flex;
  padding: 11px 0px;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  align-self: stretch;
  border-top: 1px solid var(--shinonome);
  color: var(--shinonome);
  font-family: var(--noto);
  font-size: var(--font_16);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.event-description a {
  color: var(--shinonome);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--shinonome);
  transition: all 0.3s ease;
}

.event-description a:hover {
  color: blue;
  text-decoration: underline;
  text-decoration-color: blue;
  transition: all 0.3s ease;
}

/* ページネーションボタン */
.page-buttons {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 80px;
}

.page-buttons .current-button {
  display: flex;
  width: 44px;
  height: 44px;
  padding: 4px 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  border: 2px solid var(--shinonome) !important;
  background: var(--shinonome) !important;
  color: var(--ivory) !important;
  cursor: pointer;
  font-family: var(--noto);
  font-size: var(--font_18);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-buttons .button {
  display: flex;
  width: 44px;
  height: 44px;
  padding: 4px 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  border: 2px solid var(--shinonome);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  color: var(--shinonome);
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: var(--noto);
  font-size: var(--font_18);
  font-weight: 400;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-buttons .button:hover {
  background: var(--shinonome);
  color: var(--ivory);
  border: 2px solid var(--shinonome);
  transition: all 0.3s ease;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .white-space {
    height: 40px;
  }

  .event-section {
    padding: 60px 20px 30px 20px;
  }

  .event-list {
    align-items: center;
    gap: 24px;
    width: 80%;
  }

  .event-block {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .event-block img {
    width: 100%;
    height: auto;
    min-width: unset;
    min-height: unset;
    max-width: 400px;
    aspect-ratio: 3 / 2;
  }

  .event-content {
    align-items: center;
    width: 100%;
  }
}
