/* CSS Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary: #DC2626;
  --primary-dark: #791414;
  --accent: #CA8A04;
  --accent-hover: #a16e03;
  --bg-primary: #FEF2F2;
  --bg-secondary: #f6eaea;
  --bg-card: #fff;
  --text-primary: #450A0A;
  --text-secondary: #555;
  --border-color: #FECACA;
  
  /* Design System Colors */
  --bg-dark: #1A1A2E;
  --bg-dark-light: #2C2C54;
  --text-gold: #E2D4B0;
  --button-red: #C75B39;
  --accent-cream: #F5E6CC;
  --matcha-green: #4A6741;
  
  /* Typography */
  --font-heading: 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-gold);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-gold);
}

h1 {
  font-size: 3rem;
  font-weight: 400;
}

h2 {
  font-size: 2.5rem;
  font-weight: 400;
}

h3 {
  font-size: 2rem;
  font-weight: 400;
}

h4 {
  font-size: 1.5rem;
  font-weight: 400;
}

h5 {
  font-size: 1.25rem;
  font-weight: 400;
}

h6 {
  font-size: 1rem;
  font-weight: 400;
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 300;
  color: var(--text-gold);
  opacity: 0.9;
}

/* Links */
a {
  color: var(--text-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--button-red);
}

/* Container */
.auto-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

/* Grid System */
.grid-layout {
  display: grid;
  gap: var(--spacing-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-dense {
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-xs);
}

/* Flexbox Utilities */
.flex-container {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

/* Spacing Utilities */
.section-spacing {
  padding: var(--spacing-xxl) 0;
}

.margin-bottom {
  margin-bottom: var(--spacing-lg);
}

.padding-small {
  padding: var(--spacing-sm);
}

.padding-large {
  padding: var(--spacing-xl);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-gold {
  color: var(--text-gold);
}

.text-cream {
  color: var(--accent-cream);
}

/* Background Utilities */
.bg-dark {
  background-color: var(--bg-dark);
}

.bg-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.bg-cream {
  background-color: var(--accent-cream);
  color: var(--bg-dark);
}

/* Visibility */
.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-bounceIn {
  animation: bounceIn 0.8s ease forwards;
}

/* Delayed animations */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Image Utilities */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Overlay Pattern */
.noodle-pattern {
  position: relative;
}

.noodle-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(226, 212, 176, 0.02) 2px,
    rgba(226, 212, 176, 0.02) 4px
  );
  pointer-events: none;
}