/* Design System: based on Design.md (Design Tokens) */
:root {
  /* Brand Colors (Design.md 2.1) */
  --accent: #f57c00;      /* Vivid Orange – CTAs, headings, icon fill */
  --accent-2: #FFA040;    /* Lighter orange – hover gradients */
  --accent-dark: #e65100; /* Dark orange – pressed / deepened */
  --accent-yellow: #fbc02d; /* Warming Yellow – attention badges, special events */

  /* Neutral Colors (Design.md 2.2) */
  --bg: #fff8f0;          /* Ivory White – warm page background */
  --card: #ffffff;        /* Pure White – card surfaces */
  --text: #2c3e50;        /* Dark Charcoal – main body text */
  --muted: #78909c;       /* Slate Gray – secondary text */
  --border: #ffe0b2;      /* Soft orange border */

  /* UI Dimensions */
  --max-width: 1200px;
  --radius: 16px;         /* Rounded, friendly card corners */
  --radius-btn: 24px;     /* Pill-shaped buttons */
  --hero-height: 64vh;

  /* Shadows */
  --shadow-card: 0 4px 12px rgba(230, 81, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(230, 81, 0, 0.15);
}

* {
  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-color: var(--bg);
  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-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
  opacity: 0.88;
}

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

/* Billboard / Hero (Modern Editorial Layout) */
.hero {
  position: relative;
  min-height: 520px;
  padding: 4.5rem 3.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #fffcf8 45%, #fff3e0 100%);
  overflow: hidden;
  margin: 2rem auto 3.5rem;
  max-width: var(--max-width);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(230, 81, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
  isolation: isolate;
}

/* Background English Watermark (Editorial style) */
.hero-bg-watermark {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 8.2rem);
  letter-spacing: 0.12em;
  color: rgba(245, 124, 0, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* Soft warm ambient lighting */
.hero::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 124, 0, 0.14) 0%, rgba(251, 192, 45, 0.03) 70%);
  top: -100px;
  left: -80px;
  z-index: 0;
  filter: blur(40px);
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.16) 0%, rgba(255, 243, 224, 0.02) 70%);
  bottom: -60px;
  right: 15%;
  z-index: 0;
  filter: blur(35px);
}

.hero-inner-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Hero copy column */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

/* Kicker tag */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  background: rgba(245, 124, 0, 0.08);
  border: 1px solid rgba(245, 124, 0, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.kicker-tag {
  background: var(--accent);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  line-height: 1.2;
}

.kicker-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Hero Title */
.hero .hero-copy h1,
.hero-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: var(--text);
  white-space: normal;
}

/* Event Date Badge */
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(245, 124, 0, 0.25);
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.08);
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-date-badge .date-icon {
  font-size: 1.1rem;
}

.hero-date-badge .date-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.hero-date-badge .date-range {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-date-badge .date-range strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0.15rem;
}

.hero-date-badge .date-range small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.1rem;
}

/* Action Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  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);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.28), 0 2px 6px rgba(245, 124, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.hero .btn:hover {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(245, 124, 0, 0.4), 0 4px 10px rgba(245, 124, 0, 0.2);
}

.hero .btn.btn-default {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.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 10px 28px rgba(245, 124, 0, 0.35);
}

/* Hero Visual / Magazine-style Architectural Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.visual-frame {
  position: relative;
  max-width: 360px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(44, 62, 80, 0.14), 0 8px 24px rgba(245, 124, 0, 0.10);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.visual-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(44, 62, 80, 0.18), 0 12px 30px rgba(245, 124, 0, 0.16);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.visual-frame:hover .hero-img {
  transform: scale(1.02);
}

.section {
  padding: 3.5rem 0;
  overflow-x: clip;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-left: none;
  padding-left: 0;
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--text);
}

/* クイズラリー & ミッションラリー: スマホ幅でも1行に綺麗に収める */
.quiz h2 {
  font-size: clamp(1.05rem, 4.3vw, 2.4rem);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@media (max-width: 420px) {
  .quiz h2 {
    font-size: clamp(0.92rem, 4.1vw, 1.15rem);
    letter-spacing: -0.025em;
  }
}

/* ── Watermark English heading (stanlly-plus.jp style) ── */
.section h2[data-en] {
  position: relative;
  isolation: isolate;
  text-align: center;
  width: 100%;
  margin: 0 auto 2.2rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  z-index: 1;
}

.section h2[data-en]::before {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Large impactful scale inspired by stanlly-plus.jp */
  font-size: clamp(4.5rem, 8.5vw, 7.8rem);
  font-weight: 900;
  font-family: 'Poppins', 'Roboto', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(245, 124, 0, 0.11);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* Wide desktop screens */
@media (min-width: 1200px) {
  .section h2[data-en]::before {
    font-size: 8rem;
    letter-spacing: 0.14em;
  }
}

/* Mobile screens: Maintain prominent large English scale while preventing overflow */
@media (max-width: 600px) {
  .section h2[data-en] {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.6rem;
  }
  .section h2[data-en]::before {
    /* Responsive large scale for smartphones (45-60px scale) */
    font-size: clamp(2.9rem, 11.5vw, 4.4rem);
    letter-spacing: 0.05em;
  }
}

.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, #fff8f0 0%, #ffffff 100%);
  border-top: 2px solid var(--border);
  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: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  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 1.2rem;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(245, 124, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-blue:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.35);
}

/* 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(245, 124, 0, 0.97);
  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: 3.5rem 2.5rem;
    min-height: auto;
  }

  .hero-inner-wrap {
    gap: 2.5rem;
  }

  .visual-frame {
    max-width: 320px;
  }
}

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

  .logo-img {
    height: 25px;
    max-width: 220px;
  }

  .main-nav {
    display: none
  }

  .hamburger-btn {
    display: block
  }

  .hero {
    min-height: auto;
    padding: 2.2rem 1.25rem 2.8rem;
    margin: 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    max-width: 95%;
  }

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

  .hero::after {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: 5%;
  }

  .hero-inner-wrap {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-kicker {
    margin-bottom: 0.8rem;
  }

  .hero .hero-copy h1,
  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.35;
    white-space: normal;
    margin-bottom: 1.1rem;
    text-align: center;
  }

  .hero-date-badge {
    margin-bottom: 1.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
  }

  .hero-date-badge .date-range strong {
    font-size: 1.1rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    margin: 0 auto;
    top: auto;
    right: auto;
  }

  .visual-frame {
    max-width: 270px;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(44, 62, 80, 0.12), 0 6px 16px rgba(245, 124, 0, 0.08);
  }

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

  .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: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

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

.today-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1.25rem 0 1.75rem;
  flex-wrap: wrap;
}

.today-date-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.today-date-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  user-select: none;
}

.today-date-picker-label:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.today-date-picker-label:active {
  transform: translateY(0);
}

.today-label {
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-size: 1rem;
}

.calendar-icon {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.today-date-picker-label:hover .calendar-icon {
  transform: scale(1.15);
}

.today-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* Googleマップ準備中プレースホルダー */
.map-placeholder {
  width: 100%;
  height: 480px;
  background-color: #f7f6f2;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .map-placeholder {
    height: 320px;
  }
}

.map-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.map-placeholder-icon {
  color: var(--muted);
  opacity: 0.7;
}

.map-placeholder-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.today-list .event-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: .6rem;
  box-shadow: var(--shadow-card);
  align-items: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.today-list .event-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.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;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.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: 0 auto 2.5rem;
  max-width: 820px;
  line-height: 1.8;
  text-align: left;
}

.map-section > .container > p {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2rem;
}



.terminals-grid {
  display: grid;
  /* 6-col grid: row1 = 3 cards (2col each), row2 = 2 cards centered (2col each, offset by 1col) */
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.terminals-grid .terminal-card:nth-child(1) { grid-column: 1 / span 2; }
.terminals-grid .terminal-card:nth-child(2) { grid-column: 3 / span 2; }
.terminals-grid .terminal-card:nth-child(3) { grid-column: 5 / span 2; }
/* Row 2: 2 cards centered – start at col 2 and col 4 */
.terminals-grid .terminal-card:nth-child(4) { grid-column: 2 / span 2; }
.terminals-grid .terminal-card:nth-child(5) { grid-column: 4 / span 2; }

.terminal-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.terminal-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.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, #fff8f0 0%, #fff3e0 100%);
}

/* How to Enjoy Section */
.how-to-enjoy {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 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: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.rally-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.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);
  }

  .terminals-grid .terminal-card:nth-child(1),
  .terminals-grid .terminal-card:nth-child(2),
  .terminals-grid .terminal-card:nth-child(3),
  .terminals-grid .terminal-card:nth-child(4),
  .terminals-grid .terminal-card:nth-child(5) {
    grid-column: auto / span 1;
  }
}

@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 */
  }

  /* Reset nth-child grid-column assignments for flex context */
  .terminals-grid .terminal-card:nth-child(1),
  .terminals-grid .terminal-card:nth-child(2),
  .terminals-grid .terminal-card:nth-child(3),
  .terminals-grid .terminal-card:nth-child(4),
  .terminals-grid .terminal-card:nth-child(5) {
    grid-column: unset;
  }

  .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 var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.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(245, 124, 0, 0.06);
}

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

.event-list-summary h2 {
  margin: 0;
  text-align: left;
  font-size: 1.3rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.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 */
  }
}