/* =========================================================
   Competition History / Wind Band
========================================================= */
.page-competition-history {
  --history-purple: #65427c;
  --history-purple-dark: #35243f;
  --history-purple-pale: #f5f1f7;
  --history-line: #ddd5e2;
  --history-gold: #a27d2d;
  background: #fff;
  color: #29252c;
}

/* =========================================================
   Hero：全下層ページ共通の subpage-hero を使用
========================================================= */
.page-competition-history .site-header {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.page-competition-history .site-header.is-dark,
.page-competition-history .site-header.is-scrolled {
  background: rgba(28, 21, 36, .90);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.competition-subpage-hero .subpage-hero__media img {
  object-position: center 42%;
}

.competition-subpage-hero .subpage-hero__overlay {
  background:
    linear-gradient(90deg, rgba(22, 14, 30, .76) 0%, rgba(22, 14, 30, .44) 42%, rgba(22, 14, 30, .18) 72%, rgba(22, 14, 30, .25) 100%),
    linear-gradient(180deg, rgba(22, 14, 30, .16), rgba(22, 14, 30, .40));
}

.competition-subpage-hero .subpage-hero__content {
  justify-content: center;
}

.history-archive { padding: clamp(70px, 9vw, 130px) 0; }
.history-archive__inner { max-width: 1040px; }
.history-archive__heading {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}
.history-archive__number {
  margin: 0;
  color: var(--history-purple);
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
}
.history-archive__en { color: var(--history-purple); }
.history-archive__heading h2 {
  margin: 0 0 15px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 500;
}
.history-archive__heading div > p:last-child { margin: 0; line-height: 1.9; }

.year-nav {
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 0 0 55px;
  padding: 12px;
  overflow-x: auto;
  background: rgba(255,255,255,.94);
  border: 1px solid #ebe6ee;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(42,28,50,.07);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.year-nav::-webkit-scrollbar { display: none; }
.year-nav a {
  flex: 1 0 auto;
  min-width: 110px;
  padding: 9px 17px;
  border-radius: 999px;
  color: #5b5360;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: .25s ease;
}
.year-nav a:hover,
.year-nav a.active { background: var(--history-purple); color: #fff; }

.year-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 75px 0 22px;
  color: var(--history-purple-dark);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: .08em;
}
.year-title:first-child { margin-top: 0; }
.year-title::after { content: ""; flex: 1; height: 1px; background: var(--history-line); }

.timeline { position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  position: relative;
  margin: 0;
  border-top: 1px solid var(--history-line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--history-line); }
.timeline-year {
  padding: 26px 22px 24px 0;
  color: var(--history-purple);
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: .04em;
}
.timeline-item > .timeline-content {
  grid-column: 2;
}
.timeline-content {
  padding: 25px 0 24px 28px;
  background: transparent;
  border-left: 1px solid var(--history-line);
  box-shadow: none;
}
.timeline-item > .timeline-content + .timeline-content {
  border-top: 1px dashed #ddd5e2;
}
.content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px);
  gap: 24px;
  align-items: start;
}
.content-inner > .text { min-width: 0; }
.meta {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin: 0 0 11px;
  padding: 3px 12px;
  background: var(--history-purple-pale);
  border-radius: 999px;
  color: var(--history-purple);
  font-size: 13px;
  font-weight: 700;
}
.conductor { margin: 0 0 8px; font-size: 13px; color: #6b626e; }
.song { margin: 0; font-size: 14px; line-height: 1.85; }
.awards { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.award {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ded7e2;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}
.award .label { padding: 7px 9px; background: #fff; color: #665d69; }
.award .result { min-width: 34px; padding: 7px 9px; color: #fff; font-weight: 700; text-align: center; }
.award .result.gold { background: #9a7628; }
.award .result.silver { background: #85858b; }
.award .result.bronze { background: #916345; }
.image:empty { display: none; }
.image img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.history-back { padding: 0 20px 100px; text-align: center; }
.history-back a {
  display: inline-flex;
  min-width: min(100%, 300px);
  justify-content: center;
  padding: 17px 25px;
  border: 1px solid var(--history-purple);
  color: var(--history-purple);
  text-decoration: none;
  transition: .25s;
}
.history-back a:hover { background: var(--history-purple); color: #fff; }
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--history-purple-dark);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .25s;
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 767px) {
  .competition-subpage-hero .subpage-hero__media img {
    object-position: 58% center;
  }

  .competition-subpage-hero .subpage-hero__content {
    justify-content: flex-end;
  }
  .history-archive__heading { grid-template-columns: 42px 1fr; gap: 14px; }
  .year-nav { margin-inline: -10px; border-radius: 14px; }
  .year-nav a { min-width: 92px; padding-inline: 12px; }
  .year-title { margin-top: 58px; }
  .timeline-item { grid-template-columns: 72px minmax(0, 1fr); }
  .timeline-year { padding: 23px 10px 20px 0; font-size: 23px; }
  .timeline-content { padding: 21px 0 20px 17px; }
  .content-inner { display: block; }
  .image { margin-top: 16px; }
  .image img { width: min(100%, 240px); max-height: 150px; }
  .song { font-size: 13px; }
  .awards { gap: 5px; }
  .award { font-size: 11px; }
  .award .label, .award .result { padding: 6px 7px; }
}