@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary-bg: #FEFDDF;
  --secondary-bg: #EBFAED;
  --accent-blue: #1D4497;
  --accent-orange: #F06522;
  --accent-green: #B8D94B;
  --marche-pink: #FF6699;
  --marche-pink-light: #FFF0F5;
  --sports-blue: #00B1FF;
  --sports-yellow: #FFDB00;
  --text-main: #333333;
  --text-white: #FFFFFF;
  --shadow-pop: 8px 8px 0px rgba(0,0,0,0.1);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --radius-lg: 30px;
  --radius-pill: 50px;
  --border-thick: 4px solid #333;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .font-maru {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
}

/* Sidebar Text */
.sidebar-text {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.sidebar-text.left { left: 0; }
.sidebar-text.right { right: 0; }

.vertical-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(29, 68, 151, 0.1);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Header */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-blue);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 20px;
  transition: 0.3s;
}

nav a:hover {
  background: var(--accent-blue);
  color: var(--text-white);
}

nav a.cta {
  background: var(--accent-orange);
  color: var(--text-white);
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--accent-blue);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--primary-bg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.mobile-menu.active {
  right: 0;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--accent-blue);
}

/* Active Hamburger Animation */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

.marche-card-icon {
  width: 100%;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 2px solid rgba(0,0,0,0.05);
}

.marche-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.marche-card:hover .marche-card-icon img {
  transform: scale(1.05);
}

.hero-illustration {
  width: 100%;
  max-width: 800px;
  margin-bottom: -150px;
  z-index: 0;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.catchphrase-container {
  position: relative;
  z-index: 10;
  margin-bottom: 30px;
}

.catchphrase-bubble {
  background: #FFF;
  padding: 30px 50px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.catchphrase-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #FFF;
}

.catchphrase {
  font-size: 1.8rem;
  color: var(--accent-blue);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.main-title {
  font-size: 4rem;
  color: var(--accent-blue);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.sub-title {
  font-size: 1.5rem;
  color: var(--accent-orange);
  font-weight: 900;
}

.event-details-hero {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.info-badge {
  background: var(--accent-blue);
  color: #FFF;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Section Common */
section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--accent-blue);
  position: relative;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background: var(--accent-orange);
  margin: 15px auto 0;
  border-radius: 3px;
}

/* Sports Cards */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.sport-card {
  background: var(--text-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.sport-card:hover {
  transform: translateY(-10px);
}

.sport-img-container {
  width: 100%;
  height: 250px;
  background-color: var(--secondary-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sport-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.5s;
}

.sport-card:hover .sport-img {
  transform: scale(1.1) rotate(5deg);
}

.sport-content {
  padding: 30px;
  flex-grow: 1;
}

.sport-tag {
  display: inline-block;
  background: var(--accent-green);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  margin-bottom: 12px;
}

.sport-card h3 {
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  margin-bottom: 12px;
  color: var(--accent-blue);
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sport-info {
  list-style: none;
  margin-bottom: 25px;
}

.sport-info li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.sport-info li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.apply-btn {
  display: inline-block;
  width: 100%;
  padding: 15px;
  background: var(--accent-orange);
  color: #ff7215;
  border: 4px solid var(--accent-orange);
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  border-radius: 15px;
  transition: 0.3s;
}

.apply-btn:hover {
  background: #ff8121;
  color: rgb(255, 255, 255);
}

.vendor-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 15px;
  background: var(--accent-blue);
  color: #FFF;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-family: 'Zen Maru Gothic', sans-serif;
  border-radius: 12px;
  border: 3px solid #333;
  box-shadow: 4px 4px 0px #333;
  transition: 0.2s ease;
  margin-top: 15px;
  font-size: 0.9rem;
}

.vendor-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #333;
  background: var(--accent-orange);
  color: #FFF;
}

/* Bubble Grid (Activities) */
.bubble-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.bubble-item {
  width: 250px;
  background: #FFF;
  border: 4px solid var(--accent-green);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float 4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

.bubble-icon {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.bubble-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.bubble-item:hover .bubble-icon img {
  transform: scale(1.1);
}

.bubble-title {
  padding: 15px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-blue);
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble-item:nth-child(even) { animation-delay: 1s; transform: rotate(1deg); }
.bubble-item:nth-child(3n) { animation-delay: 2s; transform: rotate(-1.5deg); }
.bubble-item:nth-child(4n) { animation-delay: 1.5s; transform: rotate(1.2deg); }

/* --- Pop Style Utilities --- */
.pop-text-multi span:nth-child(6n+1) { color: var(--marche-pink); }
.pop-text-multi span:nth-child(6n+2) { color: var(--accent-orange); }
.pop-text-multi span:nth-child(6n+3) { color: var(--sports-yellow); }
.pop-text-multi span:nth-child(6n+4) { color: var(--accent-green); }
.pop-text-multi span:nth-child(6n+5) { color: var(--sports-blue); }
.pop-text-multi span:nth-child(6n+6) { color: var(--accent-blue); }

.pop-text-shadow {
  -webkit-text-stroke: 2px #333;
  text-shadow: 3px 3px 0px #333, 5px 5px 0px rgba(0,0,0,0.15);
}

.sticker-card {
  background: #FFF;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  transition: 0.3s;
}

.sticker-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px rgba(0,0,0,0.15);
}

/* Background Patterns */
.pattern-dots {
  background-image: radial-gradient(var(--marche-pink) 15%, transparent 15%);
  background-size: 30px 30px;
  background-color: var(--marche-pink-light);
}

.pattern-starburst {
  background: 
    repeating-conic-gradient(from 0deg, rgba(0, 177, 255, 0.1) 0deg 15deg, rgba(255, 255, 255, 0.1) 15deg 30deg);
  background-attachment: fixed;
  background-color: #FFF;
}

.pattern-diagonal {
  background: repeating-linear-gradient(
    45deg,
    var(--sports-yellow),
    var(--sports-yellow) 20px,
    #FFF 20px,
    #FFF 40px
  );
}

/* Decorations */
.garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><polygon points="0,0 20,0 10,20" fill="%23FF6699"/><polygon points="20,0 40,0 30,20" fill="%23FFDB00"/><polygon points="40,0 60,0 50,20" fill="%2300B1FF"/><polygon points="60,0 80,0 70,20" fill="%23B8D94B"/><polygon points="80,0 100,0 90,20" fill="%23F06522"/></svg>');
  background-size: 200px 40px;
  background-repeat: repeat-x;
  z-index: 5;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.marche-intro {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.2rem;
  background: #FFF;
  display: block;
  width: fit-content;
  max-width: 900px;
  padding: 10px 30px;
  border-radius: 50px;
  margin: 0 auto 50px;
  border: 4px solid var(--marche-pink);
  box-shadow: var(--shadow-pop);
}

/* Responsive */
@media (max-width: 992px) {
  nav .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .marche-intro {
    font-size: 1rem;
    padding: 15px 20px;
    border-radius: 20px;
    width: 95%;
    margin-bottom: 30px;
  }
  section { padding: 60px 15px; }
  .hero { padding-top: 100px; }
  .hero .main-title { font-size: clamp(1.8rem, 7vw, 3rem) !important; white-space: normal !important; line-height: 1.2; }
  .hero .main-title span { display: inline-block; margin: 0; }
  .section-title span { display: inline-block; margin: 0 1px; font-size: inherit; }
  .catchphrase { font-size: 1.1rem; padding: 10px; }
  .catchphrase-bubble { padding: 15px 20px; width: 95%; margin: 0 auto 20px; }
  header { padding: 10px 20px; width: 95%; }
  .sidebar-text { display: none; }
  .event-details-hero { flex-direction: column; gap: 15px; width: 100%; align-items: center; }
  .info-badge { width: 90%; text-align: center; }
  .section-title {
    font-size: clamp(1.4rem, 5vw, 2.2rem) !important;
    margin-bottom: 40px;
    white-space: normal !important;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .marche-container { padding: 20px !important; }
  .marche-container .sports-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .marche-card {
    padding: 10px !important;
  }
  .marche-card h3 {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }
  .marche-card ul li {
    font-size: 0.85rem !important;
  }
  .hero-illustration { margin-bottom: -80px; opacity: 0.6; }
  .bubble-item { width: 140px; height: 140px; }
  .bubble-icon { font-size: 2rem; }
  .bubble-title { font-size: 0.9rem; }
  .sport-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
  }
  .sport-card .sport-content {
    padding: 20px !important;
  }
  .sport-info {
    margin-bottom: 12px !important;
  }
  .sport-info li {
    font-size: 0.78rem !important;
    margin-bottom: 6px !important;
    padding-left: 18px !important;
  }
  .sport-card p {
    font-size: 0.8rem !important;
  }
  .vendor-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    margin-top: 12px !important;
    border-width: 2px !important;
    box-shadow: 3px 3px 0px #333 !important;
  }
  .vendor-btn:hover {
    transform: translate(-1px, -1px) !important;
    box-shadow: 4px 4px 0px #333 !important;
  }
}
