/* ===== Variables ===== */
:root {
  --color-primary: #e63946;
  --color-primary-dark: #c1121f;
  --color-secondary: #2a9d8f;
  --color-accent: #f4d35e;
  --color-accent-light: #fff8e7;
  --color-text: #1d1d1d;
  --color-text-muted: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fc;
  --color-border: #e2e8f0;
  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 64px;
  --content-padding: clamp(20px, 4vw, 48px);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

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

main {
  width: 100%;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.nav {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--content-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e7 0%, #e8f5f3 50%, #fde8ea 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(244, 211, 94, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.hero-badge {
  display: block;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.45;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid #e6c84a;
  margin-bottom: 1.25rem;
}

.hero-theme {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.hero-subtitle {
  display: block;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-meta-item {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-secondary);
}

.hero-meta-item .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hero-meta-item .value {
  font-weight: 700;
  font-size: 1rem;
}

.hero-disc {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  opacity: 0.15;
  pointer-events: none;
}

.disc {
  position: absolute;
  border-radius: 50%;
  border: 8px solid;
}

.disc-1 {
  width: 200px;
  height: 200px;
  border-color: var(--color-primary);
  top: 0;
  right: 0;
  animation: float 6s ease-in-out infinite;
}

.disc-2 {
  width: 120px;
  height: 120px;
  border-color: var(--color-secondary);
  bottom: 20px;
  left: 0;
  animation: float 5s ease-in-out infinite 1s;
}

.disc-3 {
  width: 80px;
  height: 80px;
  border-color: var(--color-accent);
  top: 50%;
  left: 50%;
  animation: float 4s ease-in-out infinite 0.5s;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: -1.5rem auto 2.5rem;
}

/* ===== About ===== */
.about-text {
  max-width: 720px;
  margin: 0 auto;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ===== Details ===== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-secondary);
}

.detail-card dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-card dd {
  font-weight: 700;
  font-size: 1.05rem;
}

.detail-card dd small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.notes-box {
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

.notes-box h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.notes-box ul {
  padding-left: 1.25rem;
}

.notes-box li {
  margin-bottom: 0.4rem;
}

/* ===== Divisions ===== */
.division-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.division-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s;
}

.division-card:hover {
  transform: translateY(-4px);
}

.division-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.division-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  max-width: 500px;
  margin: 0 auto;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--color-border);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline time {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  min-width: 80px;
}

.timeline span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ===== Entry ===== */
.section-entry {
  background: linear-gradient(135deg, #e8f5f3 0%, #fff8e7 100%);
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-secondary);
}

.org-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  min-width: 4rem;
}

.entry-note {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.entry-deadline {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.entry-deadline li:last-child {
  margin-bottom: 0;
}

.entry-deadline .contact-label {
  display: block;
  min-width: 0;
  margin-bottom: 0.2rem;
}

.entry-qr {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.entry-qr p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.entry-qr img {
  margin: 0 auto;
  border-radius: 8px;
}

/* ===== Access ===== */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.access-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

address {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.parking-info {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.parking-info h4 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.parking-info ul {
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.access-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ===== Sponsors ===== */
.sponsors {
  padding: 40px 0;
  text-align: center;
  background: #fff;
}

.sponsor-image {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.organizer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.site-footer {
  background: #1d1d1d;
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p + p {
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .access-grid,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .hero-disc {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 60px 0;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }
}
