/* Teppan Manatsu - Premium Japanese Modern Web Design (Awwwards Style) */

:root {
  /* Premium Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --color-text-main: #1d1d1f;
  --color-text-sub: #86868b;
  
  --color-crimson: #c8102e; /* Crimson Red (お好み焼き・ロゴの赤) */
  --color-gold: #c5a059;    /* Gold (高級感・格式) */
  --color-gold-light: rgba(197, 160, 89, 0.15);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(197, 160, 89, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(29, 29, 31, 0.04);
}

/* Global resets & Typography */
body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: 'Zen Maru Gothic', 'Be Vietnam Pro', sans-serif;
  overflow-x: hidden;
}

/* Bold & Premium Typography with generous spacing */
h1, h2, h3, h4, .font-premium {
  font-family: 'Zen Maru Gothic', sans-serif;
  letter-spacing: -0.02em;
}

/* 3D Canvas container background */
#threejs-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
}

/* Bento Grid Layout Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Interactive custom elements */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-text-main);
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-premium:hover {
  color: #ffffff;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(197, 160, 89, 0.4);
}

.btn-premium:hover::before {
  width: 100%;
}

.btn-premium:active {
  transform: translateY(1px);
}

/* Specialized Client Login Button */
.btn-login {
  border: 1px solid var(--color-crimson);
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(197, 160, 89, 0.05));
}

.btn-login:hover {
  border-color: var(--color-crimson);
  box-shadow: 0 8px 16px -8px rgba(200, 16, 46, 0.3);
}

.btn-login::before {
  background-color: var(--color-crimson);
}

/* Floating Logo (Right-Bottom) */
.floating-logo-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-logo-container:hover {
  transform: scale(1.1) rotate(5deg);
}

.floating-logo {
  border: 3px solid var(--color-crimson);
  box-shadow: 0 12px 24px rgba(200, 16, 46, 0.2), 0 0 0 4px var(--color-gold);
  background: #ffffff;
}

/* Keyframe animations */
@keyframes custom-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.animate-fade-in-slow {
  animation: custom-fade-in 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll-driven animations classes (controlled by Intersection Observer in JS) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Bento Card Hover and layouts */
.bento-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(29, 29, 31, 0.08);
  border-color: var(--color-gold);
}

/* Responsive video wrapper for YouTube */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

