/* Eduwise Global - Custom Styles - Performance Optimized */
/* Enhances Tailwind CSS with custom components and animations */

/* ===== Unified Header System ===== */
.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.main-header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

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

.main-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.main-header .logo-container img {
    height: 2.5rem;
    width: 2.5rem;
}

@media (min-width: 768px) {
    .main-header .logo-container img {
        height: 3rem;
        width: 3rem;
    }
}

.main-header .logo-container span {
    font-size: 1.125rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #1f3b58;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .main-header .logo-container span {
        font-size: 1.25rem;
    }
}

.main-header .nav-desktop {
    display: none;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .main-header .nav-desktop {
        display: flex;
    }
}

.main-header .nav-tablet {
    display: none;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.875rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .main-header .nav-tablet {
        display: flex;
    }
}

.main-header .mobile-menu-toggle {
    display: block;
    color: #1f3b58;
}

@media (min-width: 1024px) {
    .main-header .mobile-menu-toggle {
        display: none;
    }
}

.main-header .mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

@media (max-width: 1023px) {
    .main-header .mobile-menu.show {
        display: block;
    }
}

.main-header .nav-link {
    color: #3f6f9f;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-header .nav-link:hover {
    color: #d8a600;
}

.main-header .nav-link.active {
    font-weight: 600;
}

/* Critical Performance CSS */
.lazy-image {
    filter: blur(5px);
    transition: filter 0.3s ease;
    background-color: #f3f4f6;
}

.lazy-loaded {
    filter: none;
}

.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* GPU acceleration for smooth performance */
.college-card,
.university-card,
.cta-button,
.nav-active {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Efficient grid layouts */
.grid-optimized {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    contain: layout;
}

/* Comparison Bar Styles */
#comparison-bar {
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

#comparison-preview::-webkit-scrollbar {
    height: 4px;
}

#comparison-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

#comparison-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

#comparison-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Comparison Modal Styles */
#comparison-modal table {
    font-size: 14px;
}

#comparison-modal th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
}

#comparison-modal .bg-gray-50 {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

/* Comparison Notification Styles */
.comparison-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Navigation Highlight Styles */
:root {
  --navy-deep: #1f3b58;
  --navy-accent: #4a6741;
  --gold-light: #f9d766;
}

.nav-active {
  position: relative;
  font-weight: 600 !important;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-accent));
  border-radius: 2px;
  animation: slideIn 0.3s ease-out;
}

.section-active {
  background-color: rgba(31, 59, 88, 0.1) !important;
  border-radius: 6px !important;
  transform: translateX(4px);
  transition: all 0.3s ease;
}

/* Mobile navigation active states */
@media (max-width: 768px) {
  .nav-active {
    background-color: rgba(31, 59, 88, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
  }
  
  .nav-active::after {
    display: none;
  }
}

/* Smooth scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(31, 59, 88, 0.1);
  z-index: 9999;
}

.scroll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-accent));
  transition: width 0.3s ease;
}

/* Breadcrumb navigation */
.breadcrumb-nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 59, 88, 0.1);
}

/* Section navigation dots */
.section-dot {
  transition: all 0.3s ease;
  position: relative;
}

.section-dot.active {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(31, 59, 88, 0.2);
}

.section-dot::before {
  content: attr(title);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-deep);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.section-dot:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

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

/* Page transition effects */
.page-transition {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced hover effects for navigation */
nav a:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Range Slider Styles */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e5e7eb;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

input[type="range"]:hover {
  opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Favorite button animation */
.favorite-btn {
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  transform: scale(1.05);
}

.favorite-active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  animation: favoriteGlow 0.3s ease;
}

@keyframes favoriteGlow {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Advanced filter toggle */
.filter-toggle {
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  color: var(--green-600);
  text-decoration: underline;
}

/* Filter info styling */
.filter-info {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  border: 1px solid #0ea5e9;
  font-weight: 500;
}



/* Blog Article Styles - Optimized for busy moms reading on mobile */
.blog-content {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.8;
  color: #333;
  font-size: 18px;
  background-color: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f3b58;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.blog-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  border-left: 5px solid #5c8be5;
  padding: 1rem;
  background-color: #fefefe;
  border-radius: 4px;
}

.blog-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2d3748;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.blog-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
}

/* Highlight boxes for important information */
.blog-content .highlight {
  background-color: #fff6d6;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid #f0d591;
  font-weight: 500;
}

/* Section styling */
.blog-content section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-left: 5px solid #5c8be5;
  background-color: #fefefe;
  border-radius: 4px;
}

.blog-content strong {
  font-weight: 600;
  color: #1f3b58;
}

.blog-content em {
  color: #3f6f9f;
  font-style: italic;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .blog-content {
    font-size: 17px;
    line-height: 1.7;
  }
  
  .blog-content h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  
  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .blog-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .blog-content p {
    margin-bottom: 1.25rem;
  }
}

/* Reading comfort enhancements */
.reading-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background-color: #f9f9f9;
  min-height: 100vh;
}

@media (max-width: 640px) {
  .reading-container {
    padding: 0 1rem;
  }
}

/* Custom gold highlight colors */
.via-gold-50 {
    --tw-gradient-to: #fefce8;
    --tw-gradient-stops: var(--tw-gradient-from), #fefce8, var(--tw-gradient-to);
}

/* Import Google Fonts (fallback if CDN fails) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Custom Properties for consistent theming */
:root {
  --gold-light: #f9d766;
  --gold-dark: #d8a600;
  --navy-deep: #1f3b58;
  --navy-accent: #3f6f9f;
  --charcoal: #222222;
  --off-white: #f8f7f5;
  
  /* Enhanced color palette */
  --gold-subtle: rgba(249, 215, 102, 0.08);
  --navy-subtle: rgba(31, 59, 88, 0.05);
  --white-pure: #ffffff;
  --gray-whisper: #f7f8fa;
  --border-elegant: rgba(31, 59, 88, 0.08);
  
  /* Premium Background Variations */
  --bg-premium-light: linear-gradient(135deg, #fdfcf9 0%, #f8f6f0 50%, #f5f2e8 100%);
  --bg-premium-soft: linear-gradient(145deg, #ffffff 0%, #faf9f5 30%, #f7f4ec 100%);
  --bg-premium-warm: linear-gradient(135deg, #fefefc 0%, #faf8f2 50%, #f6f3e9 100%);
  --bg-section-elegant: linear-gradient(135deg, #faf9f6 0%, #f5f2eb 100%);
  --bg-card-luxury: linear-gradient(135deg, #ffffff 0%, #fdfcf8 100%);
  
  /* Textured overlays */
  --texture-subtle: radial-gradient(circle at 30% 70%, rgba(249, 215, 102, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 70% 30%, rgba(31, 59, 88, 0.02) 0%, transparent 50%);
  --texture-warm: radial-gradient(circle at 50% 50%, rgba(249, 215, 102, 0.04) 0%, transparent 70%);
}

/* Premium section styles */
.section-premium-soft {
  background: var(--bg-premium-soft);
  position: relative;
}

.section-premium-soft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--texture-subtle);
  pointer-events: none;
}

.section-premium-warm {
  background: var(--bg-premium-warm);
  position: relative;
}

.section-premium-warm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--texture-warm);
  pointer-events: none;
}

.section-elegant {
  background: var(--bg-section-elegant);
  position: relative;
}
  
  /* Typography scale */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing scale */
  --section-padding: 5rem;
  --container-padding: 1.5rem;
  
  /* Shadow scale - elegant depth */
  --shadow-subtle: 0 2px 8px rgba(31, 59, 88, 0.06);
  --shadow-elegant: 0 4px 16px rgba(31, 59, 88, 0.08);
  --shadow-medium: 0 8px 24px rgba(31, 59, 88, 0.12);
  --shadow-hover: 0 12px 32px rgba(31, 59, 88, 0.15);
  
  /* Easing curves for elegant motion */
  --ease-subtle: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-elegant: cubic-bezier(0.4, 0, 0.1, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-elegant: 0 8px 32px rgba(31, 59, 88, 0.08), 0 4px 16px rgba(31, 59, 88, 0.04);
  --shadow-hover: 0 16px 40px rgba(31, 59, 88, 0.12), 0 8px 24px rgba(31, 59, 88, 0.06);
  
  /* Animation curves */
  --ease-elegant: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-subtle: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles and resets */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg-premium-light);
  background-attachment: fixed;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Refined text styles */
.text-refined {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

.text-balance {
  text-wrap: balance;
}

/* Section styling enhancements */
.section-elevated {
  background: var(--white-pure);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--border-elegant);
  position: relative;
  overflow: hidden;
}

.section-elevated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  opacity: 0.6;
}

/* Card hover animations */
.card-elegant {
  background: var(--white-pure);
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--border-elegant);
  transition: all 0.4s var(--ease-elegant);
  position: relative;
  overflow: hidden;
}

.card-elegant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-subtle), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-elegant);
}

.card-elegant:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-elegant:hover::before {
  opacity: 1;
}

/* Reading experience improvements */
.prose-enhanced {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.prose-enhanced h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--navy-deep);
}

.prose-enhanced h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--navy-deep);
}

/* Custom gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Blog Card Enhancements */
.blog-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  transition: all 0.4s var(--ease-elegant);
  border-left: 4px solid var(--gold-dark);
  overflow: hidden;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-elegant);
}

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

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-category-tag {
  background: linear-gradient(135deg, 
    rgba(249, 215, 102, 0.15), 
    rgba(216, 166, 0, 0.15));
  color: var(--gold-dark);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  display: inline-block;
  letter-spacing: 0.025em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 166, 0, 0.2);
}

.blog-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-subtle);
}

.blog-card:hover .blog-title {
  color: var(--navy-accent);
}

.blog-excerpt {
  color: var(--navy-accent);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--navy-accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.blog-read-more {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s var(--ease-subtle);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.blog-read-more:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.blog-read-more svg {
  transition: transform 0.3s var(--ease-subtle);
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* Header enhancements */
.header-elegant {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-elegant);
  box-shadow: 0 4px 24px rgba(31, 59, 88, 0.08);
}

/* Hero section styling */
.hero-refined {
  position: relative;
  overflow: hidden;
}

.hero-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, var(--gold-subtle), transparent 70%);
  pointer-events: none;
}

/* Button refinements */
.btn-refined {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s var(--ease-elegant);
}

.btn-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s var(--ease-elegant);
}

.btn-refined:hover::before {
  opacity: 1;
}

.btn-refined:hover {
  color: var(--navy-deep);
  background: var(--white-pure);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Decorative elements */
.divider-elegant {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  margin: 2rem auto;
  border-radius: 2px;
  position: relative;
}

.divider-elegant::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold-dark);
  border-radius: 50%;
}

/* Icon refinements */
.icon-refined {
  transition: all 0.3s var(--ease-subtle);
  filter: drop-shadow(0 2px 4px rgba(31, 59, 88, 0.1));
}

.card-elegant:hover .icon-refined {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(31, 59, 88, 0.15));
}

/* Custom button styles */
.btn-primary {
  background: var(--navy-deep);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--navy-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  padding: 0.75rem 2rem;
  border: 2px solid var(--gold-dark);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--gold-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Card component styles */
.card {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border-left: 4px solid var(--gold-dark);
}

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

/* Service card specific styles */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}

/* Blog card featured styles */
.blog-card.featured-article {
  border: 2px solid var(--color-gold-light);
  background: linear-gradient(135deg, white 0%, rgba(249, 215, 102, 0.03) 100%);
}

/* Testimonial card styles */
.testimonial-card {
  background: var(--off-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--gold-light);
  font-family: var(--font-serif);
  opacity: 0.3;
}

/* Hero section specific styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

/* Process flow styles */
.process-step {
  position: relative;
  text-align: center;
}

.process-number {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.process-arrow {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  color: var(--gold-dark);
  font-size: 2rem;
}

/* Instagram feed styles */
.instagram-post {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.instagram-post:hover {
  transform: scale(1.05);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(248, 215, 102, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal-content {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-large);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid var(--gold-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* Responsive design helpers */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .process-arrow {
    display: none;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* 追加：レスポンシブデザインの最適化 */
@media (max-width: 640px) {
  /* スマホでのヒーローセクション調整 */
  .hero-refined h1 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-refined p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* スマホでのカード間隔調整 */
  .card-elegant {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* スマホでのセクション間隔 */
  .py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  /* フォームの改善 */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* ナビゲーションの改善 */
  .container.mx-auto.px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* タブレット対応 */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-refined h1 {
    font-size: 3.5rem !important;
  }
  
  .card-elegant {
    padding: 1.75rem !important;
  }
}

/* デスクトップ最適化 */
@media (min-width: 1025px) {
  .hero-refined h1 {
    font-size: 4.5rem !important;
  }
  
  .container {
    max-width: 1200px !important;
  }
  
  .card-elegant {
    padding: 2rem !important;
  }
}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --gold-light: #cc9900;
    --gold-dark: #996600;
    --navy-deep: #000033;
    --navy-accent: #000066;
    --charcoal: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Blog-specific styles */
.prose {
  max-width: none;
}

.prose h1 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.prose h2 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top: 2rem;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.prose h4 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
}

.prose p {
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.prose a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--navy-deep);
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 4px solid var(--gold-light);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--navy-accent);
  background: rgba(249, 215, 102, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose code {
  background: rgba(31, 59, 88, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--navy-deep);
}

.prose pre {
  background: var(--charcoal);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ブログ特化のレスポンシブデザイン最適化 */
@media (max-width: 640px) {
  /* ブログリストの調整 */
  .blog-card {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important;
  }
  
  /* ブログ記事カードの調整 */
  .featured-article, .blog-card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .blog-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
  
  .blog-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  .blog-meta {
    font-size: 0.8rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  /* ブログ記事の読みやすさ改善 */
  .prose h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }
  
  .prose h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 1.5rem !important;
  }
  
  .prose h3 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 1.25rem !important;
  }
  
  .prose h4 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  .prose p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
  }
  
  .prose blockquote {
    padding: 1rem !important;
    margin: 1.5rem 0 !important;
    padding-left: 1rem !important;
  }
  
  .prose ul, .prose ol {
    padding-left: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .prose li {
    margin-bottom: 0.25rem !important;
    line-height: 1.6 !important;
  }
  
  .prose pre {
    padding: 1rem !important;
    margin: 1rem 0 !important;
    font-size: 0.85rem !important;
  }
  
  /* ブログナビゲーション最適化 */
  .container.mx-auto {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* ブログコンテンツ幅の調整 */
  .max-w-4xl {
    max-width: 100% !important;
    padding: 0 1rem !important;
  }
  
  .max-w-6xl {
    max-width: 100% !important;
    padding: 0 1rem !important;
  }
}

/* タブレット向けブログ最適化 */
@media (min-width: 641px) and (max-width: 1024px) {
  .blog-card {
    padding: 1.5rem !important;
  }
  
  .prose h1 {
    font-size: 2.25rem !important;
  }
  
  .prose h2 {
    font-size: 1.875rem !important;
  }
  
  .prose h3 {
    font-size: 1.5rem !important;
  }
  
  .prose p {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
  }
  
  .max-w-4xl {
    max-width: 95% !important;
  }
}

/* デスクトップ向けブログ最適化 */
@media (min-width: 1025px) {
  .blog-card {
    padding: 2rem !important;
  }
  
  .prose h1 {
    font-size: 2.5rem !important;
  }
  
  .prose h2 {
    font-size: 2rem !important;
  }
  
  .prose h3 {
    font-size: 1.5rem !important;
  }
  
  .prose p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
  }
  
  .max-w-4xl {
    max-width: 1024px !important;
  }
}

.prose strong {
  color: var(--navy-deep);
  font-weight: 600;
}

.prose ul, .prose ol {
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 4px solid var(--gold-dark);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--navy-accent);
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose code {
  background: var(--off-white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--navy-deep);
}

.prose pre {
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--gold-dark);
}

.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  margin: 3rem 0;
  border-radius: 1px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th, .prose td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background: var(--off-white);
  font-weight: 600;
  color: var(--navy-deep);
}

.prose td {
  color: var(--charcoal);
}

/* Blog card specific styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reading progress indicator */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  z-index: 100;
  transition: width 0.3s ease;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here for future enhancement */
}
/* Ensure form inputs are accessible and clickable */
input, textarea, select {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    background-color: white !important;
    opacity: 1 !important;
}

/* Specific styles for checklist form */
#checklist-download-form input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    cursor: text !important;
}

#checklist-download-form input:focus {
    outline: 2px solid #d8a600 !important;
    box-shadow: 0 0 0 3px rgba(216, 166, 0, 0.1) !important;
}

/* Navigation order check - timestamp: Sun Aug  3 02:56:16 AM UTC 2025 */

/* Gentle Japanese Text Handling - Improved word breaks for better readability */
/* Apply only to specific problematic elements, not globally */
.service-card h3, .blog-card h3, .card h3, .blog-title, 
.testimonial-card h3, .hero-title {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.4;
}

/* PC画面専用：改行表示改善（モバイルには影響なし） */
@media (min-width: 768px) {
  /* PC画面での改行表示を改善 */
  .pc-line-break {
    word-break: keep-all;
    white-space: pre-line;
  }
  
  /* About Usセクションのミッション文章 */
  .mission-text-pc {
    word-break: keep-all;
    white-space: pre-line;
    line-height: 1.6;
  }
  
  /* サービス説明文のPC表示 */
  .service-description-pc {
    word-break: keep-all;
    white-space: pre-line;
    line-height: 1.5;
  }
  
  /* Footer内容のPC表示 */
  .footer-content-pc {
    word-break: keep-all;
    white-space: pre-line;
  }
}

/* Navigation specific handling */
nav a, .mobile-menu a, #mobile-menu a {
  word-break: keep-all;
  white-space: nowrap;
}

/* Button text preservation */
.btn, button, .button, .btn-primary, .btn-secondary {
  word-break: keep-all;
  white-space: nowrap;
}
/* PC画面改行改善完了 - Thu Aug  7 06:35:00 PM UTC 2025 */
/* モバイルには影響なし、PC画面のみ日本語改行を最適化 */
/* Cache update: 1754591700 */
