/* ============================================
   神奈川県立相模原高等学校 同窓会
   学校の歴史ページ専用スタイル
   ============================================ */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.history-page {
  padding: 80px 0 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.history-hero {
  position: relative;
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #FAF7F2 0%, #F2EBDB 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.history-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../image/hero.png') no-repeat center / cover;
  opacity: 0.15;
  z-index: 0;
}

.history-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 252, 247, 0.15), rgba(242, 235, 219, 0.40));
  z-index: 1;
}

.history-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.history-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.2vw, 64px);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.history-hero-underline {
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto 16px;
  background: var(--color-gold);
}

.history-hero-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.12em;
}

/* 1カラムレイアウト */
.history-inner {
  display: block;
  padding: 30px 0 100px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.history-main {
  min-width: 0;
}

/* セクション見出し */
.history-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
  padding-left: 4px;
}

.history-section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.10em;
}

.history-section-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.16em;
}

/* ============================================
   TIMELINE (TABLE LAYOUT)
   ============================================ */
.timeline-table {
  width: 100%;
}

.timeline-era-header {
  background-color: #E2E2E2;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  padding: 12px 16px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.timeline-era-header:first-child {
  margin-top: 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 65px 75px 40px 40px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 42, 68, 0.1);
  align-items: baseline;
}

.timeline-row:last-child {
  border-bottom: none;
}

.tl-col-gregorian,
.tl-col-japanese {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-navy);
}

.tl-col-month,
.tl-col-day {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-navy);
  text-align: right;
}

.tl-col-event {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-navy);
  line-height: 1.6;
}

/* ============================================
   ANTHEM SECTION
   ============================================ */
.anthem-section {
  position: relative;
  background: var(--color-navy);
  color: #FFFCF7;
  padding: 80px 32px 72px;
  overflow: hidden;
  margin-bottom: 0;
}

.anthem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 154, 71, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.anthem-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.anthem-head {
  text-align: center;
  margin-bottom: 36px;
}

.anthem-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: #FFFCF7;
  margin-bottom: 14px;
}

.anthem-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.anthem-separator {
  display: block;
  margin: 0 auto 24px;
  width: 320px;
  max-width: 80%;
  opacity: 0.85;
}

.anthem-credit {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(255, 252, 247, 0.85);
  display: inline-flex;
  gap: 28px;
}

/* 歌詞 2カラム */
.anthem-lyrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 50px 0 56px;
  padding: 0 8px;
}

.anthem-verse {
  position: relative;
}

.anthem-verse-num {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: #FFFCF7;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.anthem-verse-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.anthem-verse-num-dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  margin-left: 4px;
}

.anthem-verse-stanza {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 2.2;
  color: #FFFCF7;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.anthem-verse-stanza:last-child {
  margin-bottom: 0;
}

/* YouTube placeholder */
.anthem-video {
  display: block;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  aspect-ratio: 16 / 5;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.anthem-video:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 154, 71, 0.4);
}

.anthem-video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.anthem-video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.anthem-video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.anthem-video:hover .anthem-video-play {
  transform: scale(1.05);
  background: #FFFCF7;
}

.anthem-video-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 252, 247, 0.85);
  letter-spacing: 0.14em;
}

/* Anthem Glassmorphism Player */
.anthem-player-container {
  max-width: 640px;
  margin: 0 auto;
}

.anthem-player {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.player-btn {
  background: transparent;
  border: none;
  color: #FFFCF7;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.2s ease;
}

.player-btn:hover {
  color: var(--color-gold);
}

.play-pause-btn {
  width: 48px;
  height: 48px;
  background: rgba(201, 154, 71, 0.15);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  flex-shrink: 0;
}

.play-pause-btn:hover {
  background: var(--color-gold);
  color: #0F2A44;
  transform: scale(1.06);
}

.player-info {
  flex-shrink: 0;
}

.player-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 252, 247, 0.9);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}

.player-timeline {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.player-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.player-progress {
  width: 0%;
  height: 100%;
  background: var(--color-gold);
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.05s linear;
}

.player-time {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 252, 247, 0.75);
  letter-spacing: 0.05em;
  min-width: 82px;
  text-align: right;
  flex-shrink: 0;
}

.player-volume-control {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.volume-btn {
  color: rgba(255, 252, 247, 0.75);
}

.volume-btn:hover {
  color: var(--color-gold);
}

/* ============================================
   FOOTER (history page) - reuse news-footer style
   ============================================ */
.history-footer {
  position: relative;
  padding: 56px 0 32px;
  background: var(--color-bg-base);
  overflow: hidden;
}

.history-footer::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url('../assets/history-decor/emblem_watermark.png') no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
}

.history-footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.history-footer-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.history-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
}

.history-footer-nav a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
}

.history-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}

.history-footer-nav a:hover {
  color: var(--color-gold);
}

.history-footer-nav a:hover::after {
  width: 100%;
}

.history-footer-info {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-base);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.history-footer-tel {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-base);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.history-footer-copyright {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE - Tablet (≤1023px)
   ============================================ */
@media (max-width: 1023px) {
  .history-page {
    padding: 56px 0 0;
  }

  .history-page-head {
    margin-bottom: 48px;
  }

  .history-inner {
    padding-bottom: 64px;
  }

  .timeline-row {
    grid-template-columns: 55px 65px 35px 35px 1fr;
    gap: 12px;
    padding: 12px 8px;
  }

  .tl-col-gregorian,
  .tl-col-japanese,
  .tl-col-month,
  .tl-col-day,
  .tl-col-event {
    font-size: 14px;
  }

  .anthem-section {
    padding: 56px 24px 56px;
  }

  .anthem-lyrics {
    gap: 36px;
    margin: 36px 0 40px;
  }

  .history-footer::before {
    width: 140px;
    height: 140px;
    right: 24px;
  }
}

/* ============================================
   RESPONSIVE - Mobile (≤767px)
   ============================================ */
@media (max-width: 767px) {
  .history-page {
    padding: 40px 0 0;
  }

  .history-page-head {
    margin-bottom: 32px;
  }

  .history-section-head {
    margin-bottom: 26px;
  }

  .timeline-row {
    grid-template-columns: 45px 55px 28px 28px 1fr;
    gap: 6px;
    padding: 10px 0;
  }
  
  .tl-col-gregorian,
  .tl-col-japanese,
  .tl-col-month,
  .tl-col-day,
  .tl-col-event {
    font-size: 13px;
  }
  
  .timeline-era-header {
    font-size: 14px;
    padding: 10px;
    margin-top: 32px;
  }

  .anthem-section {
    padding: 48px 20px;
  }

  .anthem-title {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .anthem-credit {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  .anthem-lyrics {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 0;
  }

  .anthem-verse-num {
    font-size: 28px;
  }

  .anthem-verse-stanza {
    font-size: 14.5px;
    line-height: 2;
  }

  .history-footer::before {
    width: 100px;
    height: 100px;
    right: 16px;
    opacity: 0.10;
  }

  .history-footer-nav {
    gap: 14px 18px;
  }

  /* プレイヤーのモバイル対応 */
  .anthem-player {
    padding: 12px 16px;
    gap: 14px;
  }
  
  .play-pause-btn {
    width: 40px;
    height: 40px;
  }

  .play-pause-btn svg {
    width: 18px;
    height: 18px;
  }

  .player-title {
    font-size: 13px;
  }

  .player-timeline {
    height: 5px;
  }

  .player-time {
    font-size: 11px;
    min-width: 70px;
  }
  
  .anthem-video {
    aspect-ratio: 16 / 6;
  }
}
