/* ════════════════════════════════════════
   まったい祭り 2026 — メインスタイル
   コンセプト: ちょい悪オヤジ × 子どもの夏祭り
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --c-bg-deep:    #0a0e2c;   /* 紺夜空 */
  --c-bg-night:   #14193d;
  --c-red:        #d62828;   /* 縁日の赤 */
  --c-red-deep:   #9e1818;
  --c-gold:       #ffc857;   /* 花火の金 */
  --c-pink:       #ff5d8f;
  --c-cyan:       #41d3bd;
  --c-cream:      #faf2e1;
  --c-text:       #1a1a1a;
  --c-text-light: #6c6c6c;

  --f-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --f-yusei: 'Yusei Magic', 'Hiragino Maru Gothic ProN', sans-serif;
  --f-base:  -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-base);
  color: var(--c-text);
  background: var(--c-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ━━━━━━━━ ヒーロー ━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,200,87,0.20), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255,93,143,0.18), transparent 50%),
    linear-gradient(180deg, var(--c-bg-deep) 0%, var(--c-bg-night) 50%, var(--c-red-deep) 100%);
  z-index: -2;
}

.hero-fireworks {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-fireworks span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow:
     0   -40px 0 var(--c-gold),
     0    40px 0 var(--c-gold),
    -40px   0  0 var(--c-gold),
     40px   0  0 var(--c-gold),
    -28px -28px 0 var(--c-pink),
     28px -28px 0 var(--c-pink),
    -28px  28px 0 var(--c-pink),
     28px  28px 0 var(--c-pink);
  animation: firework 4s infinite;
  opacity: 0;
}
.hero-fireworks span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s;  }
.hero-fireworks span:nth-child(2) { top: 22%; left: 78%; animation-delay: 1.0s; background: var(--c-pink); box-shadow:0 -40px 0 var(--c-pink),0 40px 0 var(--c-pink),-40px 0 0 var(--c-pink),40px 0 0 var(--c-pink),-28px -28px 0 var(--c-gold),28px -28px 0 var(--c-gold),-28px 28px 0 var(--c-gold),28px 28px 0 var(--c-gold); }
.hero-fireworks span:nth-child(3) { top: 60%; left: 12%; animation-delay: 2.0s; background: var(--c-cyan); box-shadow:0 -40px 0 var(--c-cyan),0 40px 0 var(--c-cyan),-40px 0 0 var(--c-cyan),40px 0 0 var(--c-cyan),-28px -28px 0 var(--c-gold),28px -28px 0 var(--c-gold),-28px 28px 0 var(--c-gold),28px 28px 0 var(--c-gold); }
.hero-fireworks span:nth-child(4) { top: 70%; left: 80%; animation-delay: 0.5s; }
.hero-fireworks span:nth-child(5) { top: 40%; left: 50%; animation-delay: 2.5s; background: var(--c-pink); }

@keyframes firework {
  0%   { transform: scale(0);   opacity: 0; }
  20%  { transform: scale(0.4); opacity: 1; }
  60%  { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-edition {
  font-family: var(--f-serif);
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.6em;
  margin: 0 0 16px;
  color: var(--c-gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(72px, 16vw, 200px);
  line-height: 0.9;
  margin: 0 0 32px;
  text-shadow:
    0 0 20px rgba(255,200,87,0.4),
    0 4px 16px rgba(0,0,0,0.6);
}
.hero-title-fes {
  display: inline-block;
  margin-left: 0.1em;
  background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-mat,
.hero-title-tsu,
.hero-title-tai,
.hero-title-i {
  display: inline-block;
  animation: bounce 3s ease-in-out infinite;
}
.hero-title-tsu { animation-delay: 0.15s; }
.hero-title-tai { animation-delay: 0.30s; }
.hero-title-i   { animation-delay: 0.45s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-tagline {
  font-family: var(--f-yusei);
  font-size: clamp(16px, 2.5vw, 22px);
  margin: 0 0 48px;
  letter-spacing: 0.05em;
  color: var(--c-cream);
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-info-item {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,200,87,0.3);
  border-radius: 12px;
  padding: 16px 28px;
  min-width: 160px;
}
.hero-info-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-gold);
  margin-bottom: 6px;
}
.hero-info-value {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}
.hero-info-value small {
  font-size: 0.6em;
  font-weight: 400;
  margin-left: 2px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--c-red);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(214,40,40,0.5);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(214,40,40,0.7);
}

/* ━━━━━━━━ セクション共通 ━━━━━━━━ */
.section {
  padding: 100px 20px;
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--f-yusei);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--c-red);
  margin: 0 0 12px;
  text-align: center;
}
.section-title {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  text-align: center;
  margin: 0 0 60px;
  line-height: 1.4;
}

/* ━━━━━━━━ コンセプト ━━━━━━━━ */
.concept { background: var(--c-cream); }
.concept-text {
  max-width: 720px;
  margin: 0 auto 80px;
  font-size: clamp(15px, 2vw, 18px);
}
.concept-text p { margin: 0 0 1em; }
.concept-text strong {
  color: var(--c-red);
  font-weight: 700;
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 2px;
}

.concept-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(10,14,44,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--c-gold);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10,14,44,0.15);
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--c-red-deep);
}
.feature p {
  font-size: 14px;
  color: var(--c-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ━━━━━━━━ タイムスケジュール ━━━━━━━━ */
.schedule {
  background:
    linear-gradient(180deg, rgba(20,25,61,0.96), rgba(20,25,61,0.96)),
    radial-gradient(circle at 20% 30%, rgba(255,200,87,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,93,143,0.15), transparent 50%);
  background-color: var(--c-bg-night);
  color: #fff;
}
.schedule .section-eyebrow { color: var(--c-gold); }
.schedule .section-title { color: #fff; }

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-red) 100%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 73px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 16px rgba(255,200,87,0.6);
  z-index: 1;
}
.timeline-item.highlight::before {
  background: var(--c-red);
  box-shadow: 0 0 20px rgba(214,40,40,0.8);
}

.timeline-time {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
  width: 64px;
  flex-shrink: 0;
  text-align: right;
}
.timeline-content {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,200,87,0.15);
  border-radius: 12px;
  padding: 16px 24px;
  flex: 1;
  margin-left: 24px;
  transition: background 0.2s, border-color 0.2s;
}
.timeline-item.highlight .timeline-content {
  background: rgba(214,40,40,0.18);
  border-color: rgba(214,40,40,0.4);
}
.timeline-content h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  margin: 0 0 4px;
  color: #fff;
}
.timeline-content p {
  font-size: 13px;
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.schedule-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 40px;
}

/* ━━━━━━━━ ギャラリー ━━━━━━━━ */
.gallery { background: var(--c-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.gallery-large { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.gallery-video a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
}
.video-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-bg-deep), var(--c-red-deep));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-bg-deep);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px;
}
.video-thumb p {
  font-family: var(--f-yusei);
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.1em;
}

/* ━━━━━━━━ アクセス ━━━━━━━━ */
.access { background: #fff; }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.access-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px 24px;
}
.access-info dt {
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--c-red);
  border-right: 2px solid var(--c-gold);
  padding-right: 16px;
}
.access-info dd {
  margin: 0;
  font-size: 15px;
}
.access-info small {
  display: block;
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 4px;
}
.access-map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 720px) {
  .access-grid { grid-template-columns: 1fr; }
  .access-info dl { grid-template-columns: 70px 1fr; }
  .access-map { min-height: 280px; }
}

/* ━━━━━━━━ フッター ━━━━━━━━ */
.footer {
  background: var(--c-bg-deep);
  color: #fff;
  padding: 60px 20px 40px;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-logo {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 32px;
  margin: 0 0 16px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-org { margin: 0 0 8px; font-size: 14px; opacity: 0.8; }
.footer-copy { margin: 24px 0 0; font-size: 12px; opacity: 0.5; }

/* ━━━━━━━━ レスポンシブ ━━━━━━━━ */
@media (max-width: 600px) {
  .timeline::before { left: 50px; }
  .timeline-item::before { left: 43px; }
  .timeline-time { width: 50px; font-size: 18px; }
  .timeline-content { margin-left: 16px; padding: 12px 18px; }
  .hero-info-item { min-width: 130px; padding: 12px 20px; }
  .section { padding: 70px 20px; }
}
