/* 全体背景とフォント */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg,  #e3fffb,#d18756 75%, #ec7f30);
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
  gap: 10px;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* イベントタイトルセクションと画像を横並びに */
.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.event-info {
  max-width: 500px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  flex-shrink: 0;
}

.event-info h1 {
  font-size: 3.8rem;
  margin-bottom: 0.3em;
  font-weight: 900;
  letter-spacing: 2px;
}

.event-info p {
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 400px;
}

.event-info .highlight {
  color: #ffd700;
  font-weight: bold;
}

/* 画像のスタイル */
.runner-image {
  max-width: 500px;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

.runner-image img {
  width: 100%;
  height: auto;
  border-radius: 0%;
  display: block;
  transform-origin: center center;
  transform: scale(1.3);
  transition: transform 3s ease-in-out;
}

.runner-image.animate img {
  transform: translateX(-45%) scale(0.8);
}

/* キラキラエフェクト用コンテナ */
.cheer-effects {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}

/* キラキラ粒子の基本スタイル */
.cheer-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 4px);
  animation: sparkle 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ページ下部のボタンコンテナ */
.button-container {
  width: 100%;
  max-width: 1200px;
  padding: 20px 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  min-height: 60px;
}

.button-container button {
  padding: 14px 28px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background-color: #ffd700;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.6);
  transition: background-color 0.3s ease;
  user-select: none;
  position: relative;
  z-index: 10;
}

.button-container button:hover {
  background-color: #e6c200;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  body {
    padding-left: 0 !important;
    min-height: 100dvh;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .event-info {
    max-width: 90%;
    text-align: center;
    margin-bottom: 0;
  }

  .runner-image {
    max-width: 80%;
    max-height: none;
    margin-bottom: 0;
  }

  .button-container {
    padding: 20px 20px;
    background: rgba(0,0,0,0.3);
    min-height: 60px;
  }
}