/* ==========================================================================
   Global Styles & Design System - 天王土地課金サイト
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-main: #07090e;
  --bg-surface: #0b0f19;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-card: rgba(255, 255, 255, 0.06);
  
  --primary-gold: #d4af37;
  --primary-gold-rgb: 212, 175, 55;
  --primary-gold-dark: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #e5c05b 0%, #b8860b 50%, #996515 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  
  /* Layout Metrics */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-display: 'Outfit', 'Inter', 'Noto Sans JP', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Gradients for Premium Depth */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(var(--primary-gold-rgb), 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(var(--primary-gold-rgb), 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 
              0 0 40px rgba(var(--primary-gold-rgb), 0.03);
}

/* Golden Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #07090e;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(var(--primary-gold-rgb), 0.2);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-gold-rgb), 0.4);
}

.btn-gold:hover::after {
  left: 125%;
}

.btn-gold:active {
  transform: translateY(0);
}

/* Secondary Button (Outline Gold) */
.btn-outline {
  background: transparent;
  color: var(--primary-gold);
  border: 1px solid rgba(var(--primary-gold-rgb), 0.3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(var(--primary-gold-rgb), 0.05);
  border-color: var(--primary-gold);
  color: #fff;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(var(--primary-gold-rgb), 0.1);
}

/* Micro-animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Footer style */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  font-family: var(--font-display);
}
