/**
 * event ページ専用CSS
 * このディレクトリ配下の見た目調整はここに書きます。
 */

.event-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .event-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 42%);
    gap: 2.5rem 2rem;
  }
}

.event-layout__main {
  min-width: 0;
  display: grid;
  gap: 2.25rem;
}

.event-layout__media {
  min-width: 0;
}

.event-layout__media picture,
.event-layout__media img,
.event-layout__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .event-layout__media {
    position: sticky;
    top: 6rem;
  }
}

.event-about .section-heading,
.event-news .section-heading {
  margin-top: 0;
}

.event-intro {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: var(--font-ja-weight);
  line-height: 1.9;
  color: #374151;
}

.event-news {
  margin-bottom: 0;
}

.event-news .prose p {
  margin: 0 0 1.25rem;
}

.event-news__sign {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #6b7280;
  text-align: right;
}

.event-next__title {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a2a40;
}

.event-overview {
  display: grid;
  gap: 0.85rem 0;
  margin: 0;
}

.event-overview__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}

.event-overview__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.event-overview .label-gold {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  white-space: pre-wrap;
}

.event-overview dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
}

@media (max-width: 479px) {
  .event-overview__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* 過去のくつっ子まつり：年度一覧 */
.event-year-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .event-year-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.event-year-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-year-card__inner {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
}

.event-year-card__body {
  flex: 1;
  min-width: 0;
}

.event-year-card__thumbs {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.event-year-card__thumb {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--color-border);
  background: #f3f5f7;
}

@media (min-width: 768px) {
  .event-year-card__thumb {
    width: 6.5rem;
    height: 6.5rem;
  }
}

.event-year-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 8px 24px rgba(26, 42, 64, 0.08);
}

.event-year-card__year {
  margin: 0 0 0.75rem;
  font-family: var(--font-ja);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-navy);
}

.event-year-card__summary {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #374151;
}

.event-year-card__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.event-year-card__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* 前回のくつっ子まつり：開催記録 + ギャラリー */
.event-history {
  margin-bottom: 2.5rem;
}

.event-history__item {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .event-history__item {
    grid-template-columns: minmax(12rem, 24rem) minmax(0, 1fr);
    gap: 2rem;
  }
}

.event-history__poster {
  margin: 0;
  min-width: 0;
}

.event-history__poster picture,
.event-history__poster img,
.event-history__poster-img {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  height: auto;
}

@media (min-width: 768px) {
  .event-history__poster picture,
  .event-history__poster img,
  .event-history__poster-img {
    max-width: none;
    margin: 0;
  }
}

.event-history__body {
  min-width: 0;
  padding: 0;
}

.event-history__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .event-history__header {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.event-history__no {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-family: var(--font-base);
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.event-history__date {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.event-history__venue {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #374151;
}

.event-history__lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.event-history__gallery-label {
  display: block;
  margin-bottom: 0.75rem;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.event-gallery__item {
  min-width: 0;
  overflow: hidden;
  background: #f3f5f7;
  border: 1px solid var(--color-border);
}

.event-gallery__item picture,
.event-gallery__item img,
.event-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 1100px) {
  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
