/* Updated styles to match top/index.html tone (billboard-style hero, orange accent, stronger typography) */
:root {
  --bg: linear-gradient(135deg, #EEF0F8 0%, #E8EAF6 100%);
  --card: #ffffff;
  --accent: #FF8200;
  /* Updated to match image */
  /* primary orange */
  --accent-2: #FFA040;
  /* lighter orange */
  --text: #10222b;
  --muted: #6b7a84;
  --max-width: 1200px;
  --radius: 12px;
  --hero-height: 64vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Meiryo, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #EEF0F8 0%, #E8EAF6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

.container {
  width: calc(100% - 2rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Header */
.site-header {
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.logo {
  display: inline-block;
  font-weight: 900;
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 700
}

/* Billboard / Hero: inspired by top/index.html */
.hero {
  position: relative;
  min-height: var(--hero-height);
  padding: 8rem 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
  overflow: visible;
  display: flex;
  align-items: center;
  margin: 2rem auto;
  max-width: calc(var(--max-width) + 4rem);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(16, 34, 42, 0.12), 0 4px 16px rgba(16, 34, 42, 0.06);
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.15), rgba(255, 160, 64, 0.08));
  top: -60px;
  left: -60px;
  z-index: 0;
  filter: blur(20px);
}

.hero::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.12), rgba(255, 160, 64, 0.06));
  bottom: -40px;
  right: 30%;
  z-index: 0;
  filter: blur(15px);
}

.hero-inner {
  max-width: 820px
}

.hero .hero-copy h1 {
  margin: 0 0 1.2rem 0;
  font-size: 3.8rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 800;
  width: 100%;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.hero .hero-copy .kicker {
  display: block;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: .4rem
}

.hero .lead {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

.hero .meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem
}

.hero .event-date {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0 1rem 0;
  border-left: none;
  padding-left: 0;
}

.hero .note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
  line-height: 1.6;
}

.hero .btn {
  display: inline-block;
  padding: 1rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(255, 130, 0, 0.25), 0 2px 8px rgba(255, 130, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.hero .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero .btn:hover::before {
  width: 300px;
  height: 300px;
}

.hero .btn:hover {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 130, 0, 0.4), 0 4px 12px rgba(255, 130, 0, 0.2);
}

.hero .btn.btn-default {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hero .btn.btn-default::before {
  background: rgba(255, 130, 0, 0.1);
}

.hero .btn.btn-default:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 130, 0, 0.4), 0 4px 12px rgba(255, 130, 0, 0.2);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-right: 3rem;
}

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(5deg);
  width: 50%;
  max-width: 650px;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(16, 34, 42, 0.1)) drop-shadow(0 6px 12px rgba(16, 34, 42, 0.08));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 550px;
  border-radius: 16px;
}

.hero-visual .img-box {
  width: 100%;
  height: 100%;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
}

.hero-visual .img-box img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 3.5rem 0
}

.section h2 {
  margin-top: 0;
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.4;
}

.features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: .6rem 0 0 0
}

.features li {
  background: var(--card);
  padding: .6rem .9rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 34, 42, 0.04)
}

.map-placeholder {
  background: linear-gradient(90deg, #fff 0%, #f7f7f7 100%);
  border-radius: 12px;
  padding: 3.8rem;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(16, 34, 42, 0.03)
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.schedule-item {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 34, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem
}

.schedule-item time {
  display: block;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent)
}

.faq dl {
  margin: 0
}

.faq dt {
  font-weight: 800;
  margin-top: .8rem
}

.faq dd {
  margin: 0 0 1rem 0;
  color: var(--muted)
}

.register .container {
  text-align: center
}

.site-footer {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid rgba(16, 34, 42, 0.06);
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
}

/* Supporters Section */
.supporters-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 34, 42, 0.08);
  max-width: 92%;
  width: 100%;
  text-align: center;
}

.supporters-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  padding: 1rem 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.supporters-logo {
  margin: 0 0 1.5rem 0;
}

.supporters-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.supporters-info {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  text-align: left;
}

/* SNS Links */
.footer-social {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-link span {
  font-size: 0.85rem;
  font-weight: 500;
}

.social-link:hover {
  color: var(--accent);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

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

/* Copyright */
.footer-copyright {
  margin-top: 1rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Utility */
/* Global Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(255, 130, 0, 0.25), 0 2px 8px rgba(255, 130, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 130, 0, 0.4), 0 4px 12px rgba(255, 130, 0, 0.2);
}

.btn-default {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: #f4f6f7;
  color: var(--text);
  text-decoration: none;
  font-weight: 700
}

.btn-blue {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: #1a237e;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #1a237e;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-blue:hover {
  background: white;
  color: #1a237e;
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
  padding: 0;
}

.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-btn .bar:nth-child(1) {
  top: 0;
}

.hamburger-btn .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-btn .bar:nth-child(3) {
  bottom: 0;
}

.hamburger-btn.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 106, 0, 0.95);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-link {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Responsive adjustments */
@media (max-width:1000px) {
  .hero {
    padding: 6rem 2rem;
    margin: 1.5rem auto;
  }

  .hero-visual {
    width: 52%;
    max-width: 520px;
    right: -60px;
  }

  .hero-visual img {
    max-height: 460px;
  }

  .hero .hero-copy h1 {
    font-size: 2.8rem;
    line-height: 1.3;
  }

  .hero .lead {
    font-size: 1rem;
    margin: 0 0 1.2rem;
  }

  .hero .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width:800px) {
  .header-inner {
    padding: 0.6rem 0
  }

  .main-nav {
    display: none
  }

  .hamburger-btn {
    display: block
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
    flex-direction: column;
    margin: 1rem 0.5rem;
    border-radius: 16px;
    max-width: 95%;
  }

  .hero::before {
    width: 120px;
    height: 120px;
    top: -40px;
    left: -40px;
  }

  .hero::after {
    width: 80px;
    height: 80px;
    bottom: -30px;
  }

  .hero .hero-copy h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    white-space: normal;
  }

  .hero .lead {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.7;
  }

  .hero .btn {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-visual {
    position: relative;
    width: 85%;
    max-width: 320px;
    margin: 0 auto 2rem auto;
    transform: rotate(5deg);
    top: auto;
    right: auto;
    order: -1;
    filter: drop-shadow(0 8px 16px rgba(16, 34, 42, 0.08)) drop-shadow(0 4px 8px rgba(16, 34, 42, 0.06));
  }

  .hero-visual img {
    max-height: none;
    width: 100%;
    max-width: 100%;
  }

  .schedule-grid {
    grid-template-columns: 1fr
  }

  .container {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Footer Mobile Adjustments */
  .footer-social {
    gap: 2rem;
  }

  .footer-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .footer-copyright p {
    font-size: 0.7rem;
  }

  /* Supporters Section Mobile */
  .supporters-section {
    max-width: 100%;
    padding: 1.5rem;
  }

  .supporters-title {
    font-size: 1rem;
    padding: 0.8rem 0;
  }

  .supporters-info {
    font-size: 0.7rem;
    line-height: 1.7;
  }
}

/* Floating Map Button */
.floating-map-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 80;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-map-btn:hover {
  transform: scale(1.05);
  background-color: var(--accent-2);
}

.floating-map-btn svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 800px) {
  .floating-map-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .floating-map-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Map PDFs styling */
.map-pdfs {
  display: flex;
  justify-content: center;
  gap: 12px;
  /* Smaller gap for mobile */
  margin: 2rem 0;
  /* flex-wrap: wrap; Removed to force single line if possible, or keep wrap but ensure size fits */
  flex-wrap: nowrap;
  /* Force side by side */
}

.map-pdfs a {
  display: block;
  width: 50%;
  /* Use flex basis logic via width */
  max-width: 300px;
  /* Limit max width */
  transition: transform 0.2s ease;
  flex-shrink: 1;
  /* Allow shrinking */
}

.map-pdfs a:hover {
  transform: translateY(-5px);
}

.map-pdfs img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: block;
  /* Remove bottom space */
}

/* Map button container */
.map-button-container {
  text-align: center;
  margin-top: 2rem;
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}

/* Styles for new sections */
.events .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.section-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

.today-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0
}

.today-label {
  font-weight: 700;
  color: var(--muted);
  margin: 0 0.5rem;
}

.today-list .event-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  margin-bottom: .6rem;
  box-shadow: 0 8px 20px rgba(16, 34, 42, 0.04);
  align-items: center
}

.today-list .event-card .time {
  font-weight: 900;
  color: var(--accent);
  width: 120px;
  min-width: 120px;
  font-size: 0.9rem;
  text-align: right;
  flex-shrink: 0;
}

.today-list .event-card .body .place {
  color: var(--muted);
  font-size: .95rem
}

.upcoming-list .up-item {
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(16, 34, 42, 0.04)
}

.search-controls {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem
}

.search-controls input,
.search-controls select {
  padding: .6rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 34, 42, 0.06);
  width: 100%
}

.table-wrap {
  overflow: auto;
  background: transparent;
  border-radius: 8px;
  max-height: 60vh;
  /* Limit height to approx 60% of viewport */
  overflow-y: auto;
  /* Enable vertical scrolling */
  border: 1px solid rgba(16, 34, 42, 0.06);
  /* Add border for clarity */
}

#eventsTable {
  width: 100%;
  border-collapse: collapse
}

#eventsTable th,
#eventsTable td {
  padding: .8rem;
  border-bottom: 1px solid rgba(16, 34, 42, 0.04);
  text-align: left
}

.terminal-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: left;
}



.terminals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.terminal-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 34, 42, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.terminal-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--accent);
}

.terminal-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.terminal-card img:hover {
  transform: scale(1.03);
}

.map-section .map-controls {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem
}

.map-controls input {
  padding: .6rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 34, 42, 0.06);
  flex: 1
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

/* Quiz & Mission Rally Section */
.quiz {
  background: linear-gradient(135deg, #f5f7fa 0%, #eff2f7 100%);
}

/* How to Enjoy Section */
.how-to-enjoy {
  background: linear-gradient(135deg, #f5f7fa 0%, #eff2f7 100%);
}

.enjoy-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.enjoy-text {
  flex: 1;
  min-width: 300px;
}

.enjoy-text p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  font-size: 1rem;
}

.enjoy-text .note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.enjoy-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rally-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 34, 42, 0.06);
}

.rally-item h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.rally-image {
  width: 100%;
  max-width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 8px 24px rgba(16, 34, 42, 0.12), 0 4px 12px rgba(16, 34, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rally-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16, 34, 42, 0.16), 0 6px 16px rgba(16, 34, 42, 0.1);
}

.map-credit {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
}

.currency img {
  max-height: 220px;
  object-fit: cover
}

.footer-links a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none
}


@media (max-width:1000px) {
  .terminals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:800px) {

  /* Terminal Swipe Layout */
  .terminals-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1rem;
    padding-right: 1rem;
    grid-template-columns: none;
    /* Reset grid */
  }

  .terminals-grid::-webkit-scrollbar {
    display: none;
  }

  .terminal-card {
    min-width: 85%;
    /* Show part of the next card */
    scroll-snap-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .rally-item {
    padding: 1rem;
  }

  .rally-item h3 {
    font-size: 1.1rem;
  }

  /* How to Enjoy mobile adjustments */
  .enjoy-content {
    flex-direction: column;
    align-items: stretch;
  }

  .enjoy-text {
    min-width: 100%;
  }

  .enjoy-button {
    justify-content: center;
    margin-top: 1rem;
  }


}

/* Venue badge styling - red-purple circle with white text */
.venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8B2E8B;
  /* red-purple color */
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  line-height: 1;
}

/* Event list toggle styling */
.event-list-details {
  border: 1px solid rgba(16, 34, 42, 0.06);
  border-radius: 12px;
  padding: 1rem;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(16, 34, 42, 0.04);
}

.event-list-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.event-list-summary:hover {
  background: rgba(255, 106, 0, 0.05);
}

.event-list-summary::-webkit-details-marker {
  display: none;
}

.event-list-summary h2 {
  margin: 0;
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.event-list-details[open] .toggle-icon {
  transform: rotate(180deg);
}

.event-list-details[open] .search-controls,
.event-list-details[open] .table-wrap {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-list-details .search-controls {
  margin-top: 1rem;
}

/* Responsive adjustments for Mobile */
@media (max-width: 800px) {

  /* Today's Events - Stack vertically */
  .today-list .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .today-list .event-card .time {
    width: 100%;
    min-width: auto;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .today-list .event-card .time::before {
    content: "時間：";
    font-weight: 700;
    color: var(--muted);
    margin-right: 0.5rem;
  }

  .today-list .event-card .body {
    width: 100%;
  }

  .today-list .event-card .body strong {
    display: block;
    margin-bottom: 0.8rem;
  }

  .today-list .event-card .body strong::before {
    content: "企画内容";
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }

  .today-list .event-card .body .place {
    display: block;
  }

  .today-list .event-card .body .place::before {
    content: "会場";
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }

  /* Event List Table - Stack vertically (Card view) */
  #eventsTable thead {
    display: none;
  }

  #eventsTable,
  #eventsTable tbody,
  #eventsTable tr,
  #eventsTable td {
    display: block;
    width: 100%;
  }

  #eventsTable tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 34, 42, 0.08);
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  #eventsTable td {
    padding: 0.5rem 0;
    border-bottom: none;
    text-align: left;
  }

  #eventsTable td:last-child {
    padding-bottom: 0;
  }

  #eventsTable td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 3rem;
  padding: 0 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev {
  left: 2rem;
}

.lb-next {
  right: 2rem;
}

@media (max-width: 800px) {
  .lb-nav {
    display: none;
    /* Hide buttons on mobile, use swipe or just close */
  }
}