/* ===============================
   Pastel Theme Overrides
   =============================== */
:root {
  /* Typography overrides */
  --font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* Pastel palette */
  --bg-primary: #fdfcff;
  --bg-secondary: #faf7ff; /* lavender tint */
  --bg-tertiary: #f6f9ff; /* very light sky */
  --bg-card: #ffffff;

  --text-primary: #1f2937; /* slate 800 */
  --text-secondary: #6b7280; /* slate 500 */
  --text-muted: #9ca3af; /* slate 400 */

  --border-light: #e8eaf3;
  --border-medium: #d9dcec;
  --border-dark: #b9bfd6;

  /* Accents (soft) */
  --primary-color: #c4b5fd; /* violet 300 */
  --primary-light: #e9d5ff; /* violet 200 */
  --primary-dark: #a78bfa;  /* violet 400 */
  --secondary-color: #f9a8d4; /* pink 300 */
  --accent-color: #a5f3fc; /* sky 300 */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f9a8d4 0%, #c4b5fd 60%, #a5f3fc 100%);
  --gradient-secondary: radial-gradient(900px 600px at 80% -10%, rgba(196, 181, 253, 0.25) 0%, rgba(249, 168, 212, 0.15) 45%, rgba(255, 255, 255, 0) 70%),
                        radial-gradient(800px 600px at 0% 100%, rgba(165, 243, 252, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
                        #fdfcff;
  --gradient-hero: radial-gradient(700px 500px at 20% 10%, rgba(196, 181, 253, 0.25) 0%, rgba(196, 181, 253, 0) 60%),
                   radial-gradient(850px 650px at 90% 30%, rgba(249, 168, 212, 0.18) 0%, rgba(249, 168, 212, 0) 60%),
                   linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);

  /* Shadows (soft) */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 6px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-xl: 0 24px 60px rgba(17, 24, 39, 0.10);
}

/* Header */
.header { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--border-light); box-shadow: 0 4px 20px rgba(31, 41, 55, 0.08); }
.logo, .footer-logo { color: var(--text-primary); }
.logo::after { background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%); }

/* Improve navbar readability */
.nav-link { color: var(--text-primary); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.nav-link:hover { color: var(--text-primary); background: rgba(196, 181, 253, 0.25); }
.nav-link.active { color: var(--text-primary); background: linear-gradient(135deg, rgba(196, 181, 253, 0.4) 0%, rgba(249, 168, 212, 0.28) 100%); }
.nav-link:focus-visible { outline: 3px solid rgba(196, 181, 253, 0.65); outline-offset: 2px; border-radius: 10px; }

/* Mobile menu readability */
.nav-menu .nav-link { color: var(--text-primary); }

/* Buttons */
.btn-primary { box-shadow: 0 8px 24px rgba(196, 181, 253, 0.25); }
.btn-primary:hover { box-shadow: 0 16px 32px rgba(196, 181, 253, 0.30); }
.btn-secondary { background: #ffffff; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: #f8f7ff; color: var(--text-primary); border-color: var(--border-medium); box-shadow: var(--shadow-md); }

/* Hero */
.hero { background: var(--gradient-secondary); }
.hero-gradient { background: var(--gradient-hero); opacity: 1; }
.hero-title { color: var(--text-primary); line-height: 1.4; }
.hero-subtitle { 
  color: var(--text-secondary); 
  max-width: 100%; 
  text-align: center;
}
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Mobile text adjustments */
@media (max-width: 768px) {
  .hero-title { 
    font-size: 2rem !important; 
    line-height: 1.5 !important;
    letter-spacing: 0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero-subtitle { 
    font-size: 0.95rem !important; 
    line-height: 1.9 !important;
    max-width: 100%;
    padding: 0 1.25rem;
    letter-spacing: 0.03em;
    text-align: center;
  }
  .hero-buttons {
    gap: 1rem;
    padding: 0 1rem;
    margin-top: 1.5rem;
  }
  .btn-large {
    font-size: 0.95rem;
    padding: 0.9rem 1.75rem;
  }
  
  /* Stats cards mobile layout */
  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem;
    margin-top: 2rem !important;
  }
  
  .stat {
    padding: 3rem 2rem !important;
    width: 100% !important;
    min-height: 240px !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }
  
  .stat-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.65rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .stat-number {
    font-size: 2.5rem !important;
    margin: 0.5rem 0 0.25rem !important;
  }
  
  .stat-label {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0.02em;
    text-align: center;
  }
}

/* Stats with ornamental decorative frame */
.stat { 
  background: #ffffff; 
  border: none;
  box-shadow: var(--shadow-sm); 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  border-radius: 0;
  padding: 3.5rem 2.5rem;
  min-height: 280px;
  width: 100%;
  background-image: url('../images/frame-ornament-pink.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: visible;
}

.stat > * {
  position: relative;
  z-index: 1;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat:hover { 
  box-shadow: var(--shadow-lg); 
  transform: translateY(-4px);
}

.stat-icon { 
  width: 50px; 
  height: 50px; 
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.5rem; 
  color: #fff; 
  margin-bottom: 0.25rem; 
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(196, 181, 253, 0.3);
}

.stat:hover .stat-icon { transform: scale(1.1) rotate(5deg); }
.stat-number { color: var(--primary-dark); position: relative; z-index: 1; font-size: 2.5rem; }
.stat-label { color: var(--text-secondary); position: relative; z-index: 1; }

/* Sections */
.about { background: var(--bg-secondary); }
.services { background: var(--bg-primary); }
.company { background: var(--bg-secondary); }
.contact { background: var(--bg-primary); }

/* Cards */
.service-content,
.company-details,
.contact-method,
.feature-card,
.stream-card,
.creator-card { background: #ffffff; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }

.service-icon { background: linear-gradient(135deg, #f9a8d4, #c4b5fd); color: #fff; border: none; }
.achievement-card { background: #ffffff; border: 1px solid var(--border-light); }
.achievements-section { background: linear-gradient(135deg, rgba(196, 181, 253, 0.15), rgba(249, 168, 212, 0.1)); border-color: var(--border-light); }
.message-section { background: linear-gradient(135deg, rgba(165, 243, 252, 0.18), rgba(249, 168, 212, 0.12)); border-color: var(--border-light); }
.message-header i, .message-header h4 { color: var(--primary-dark); }
.highlight-text { color: var(--primary-dark); }

/* Company items */
.company-item strong { color: var(--primary-dark); }
.company-item span { color: var(--text-secondary); }

/* Contact */
.contact-icon { background: linear-gradient(135deg, #f9a8d4, #c4b5fd); }
.contact-info a { color: #a78bfa; }
.contact-info a:hover { color: var(--text-primary); }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.footer-link:hover { color: var(--primary-dark); }
.social-link { background: #ffffff; border-color: var(--border-light); color: var(--text-secondary); }
.social-link:hover { background: linear-gradient(135deg, #f9a8d4, #c4b5fd); color: #fff; border-color: transparent; }

/* Forms */
.form-group input, .form-group select, .form-group textarea { background: #fff; border: 1px solid var(--border-light); color: var(--text-primary); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.25); }

/* Mobile menu panel */
@media (max-width: 768px) {
  .nav-menu { background: #ffffff; border-left: 1px solid var(--border-light); }
  .nav-link { background: #ffffff; border: 1px solid var(--border-light); }
}
