/* sample-event: design.md 準拠
   配色 4 色: #1A2238（夜空紺）/ #FFFFFF（白）/ #E8A13D（琥珀）/ #222222（濃灰）
   フォント: システムフォントスタックのみ / 太さ 400・700 のみ
   ブレークポイント: min-width 768px の 1 つのみ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #222222;
  background-color: #FFFFFF;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.4;
}

/* ---- ヒーロー（header） ---- */

.hero {
  background-color: #1A2238;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
  padding: 48px 16px;
}

.hero h1 {
  font-size: 32px;
  color: #FFFFFF;
}

.hero-datetime {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
}

.hero-place {
  font-size: 16px;
  font-weight: 400;
  margin-top: 8px;
}

/* ---- カウントダウン（3 状態: 初期非表示 / 表示中 / 経過後） ---- */

/* 状態 1: 初期（JS が動かない限り非表示。空枠を見せない） */
.countdown {
  display: none;
  margin-top: 24px;
}

/* 状態 2: カウントダウン表示中（JS が is-counting を付与） */
.countdown.is-counting {
  display: block;
}

/* 状態 3: 経過後（JS が is-past を付与。「開催日」のみ表示） */
.countdown.is-past {
  display: block;
}

.countdown.is-past .countdown-label,
.countdown.is-past .countdown-values {
  display: none;
}

.countdown-label {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
}

.countdown-num {
  font-size: 28px;
  font-weight: 700;
  color: #E8A13D;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}

.countdown-unit {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  margin-right: 8px;
}

.countdown-unit:last-child {
  margin-right: 0;
}

.countdown-past {
  display: none;
  font-size: 28px;
  font-weight: 700;
  color: #E8A13D;
}

.countdown.is-past .countdown-past {
  display: block;
}

/* noscript フォールバック（カウントダウンと同位置） */
.countdown-noscript {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  margin-top: 24px;
}

/* ---- 開催情報（main > section） ---- */

.info {
  background-color: #FFFFFF;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px;
}

.info h2 {
  font-size: 22px;
  color: #1A2238;
}

.info-list {
  margin-top: 24px;
}

.info-list dt {
  font-size: 16px;
  font-weight: 700;
  color: #1A2238;
  margin-top: 16px;
}

.info-list dt:first-child {
  margin-top: 0;
}

.info-list dd {
  font-size: 16px;
  font-weight: 400;
  color: #222222;
}

/* ---- フッター ---- */

.site-footer {
  background-color: #1A2238;
  color: #FFFFFF;
  text-align: center;
  padding: 48px 16px;
}

.site-footer p {
  font-size: 14px;
  font-weight: 400;
}

/* ---- 768px 以上 ---- */

@media (min-width: 768px) {
  .hero {
    min-height: 460px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-datetime {
    font-size: 20px;
  }

  .countdown-num {
    font-size: 40px;
  }

  .countdown-past {
    font-size: 40px;
  }

  .info {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .info h2 {
    font-size: 26px;
  }

  .site-footer {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
