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

:root {
  --color-royal-blue: #001F5B; /* Deep, vibrant royal blue */
  --color-royal-blue-dark: #001540; /* Darker navy for cards */
  --color-light-gray: #F8F9FA;
  --color-text: #E2E8F0; /* Light text for dark background */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background-color: var(--color-royal-blue);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Noto Serif JP', serif;
}

/* Custom utilities */
.text-royal-blue {
  color: var(--color-royal-blue);
}

.bg-royal-blue {
  background-color: var(--color-royal-blue);
}

.border-royal-blue {
  border-color: var(--color-royal-blue);
}

.hover\:text-royal-blue:hover {
  color: var(--color-royal-blue);
}

.hover\:bg-royal-blue-dark:hover {
  background-color: #001540; /* Slightly darker for hover */
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
  /* Typography & Spacing */
  body {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  /* Center typical text elements for a premium mobile feel */
  main p, main h1, main h2, main h3, main h4 {
    text-align: center;
  }
  
  /* Reset alignment for specific components that need left-alignment */
  form p, form label, table, th, td, td ul, td li {
    text-align: left;
  }
  
  /* Slightly smaller headings on mobile */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  
  /* Faster Animations */
  .fade-in {
    animation-duration: 0.6s;
  }
  .reveal-text {
    animation-duration: 1.2s;
  }

  /* Reduce excessive padding on mobile */
  section.py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Micro animations for interactive elements */
.interactive-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interactive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Dark Mode Utilities */
.bg-dark-card {
  background-color: var(--color-royal-blue-dark);
}
.border-dark-card {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-royal-blue);
  border-radius: 0.5rem;
}

/* --- Cinematic Animations --- */
.reveal-text {
  opacity: 0;
  animation: cinematic-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-0 { animation-delay: 0.2s; }
.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.3s; }
.delay-3 { animation-delay: 1.7s; }

@keyframes cinematic-reveal {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Premium Shine Effect */
.shine-wrapper {
  position: relative;
  overflow: hidden; /* Required to clip shine to crest boundaries */
}
.shine-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: premium-shine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2s; /* Start shining shortly after reveal */
  pointer-events: none;
  z-index: 10;
}

@keyframes premium-shine {
  0% { left: -150%; }
  25% { left: 250%; } /* Fast sweep across */
  100% { left: 250%; } /* Wait for the rest of the cycle */
}
