:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-color: #3b82f6;
  --accent-light: #93c5fd;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-900: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 0.75rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Account for fixed header */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px; /* Smaller offset for mobile */
  }
}

body {
  font-family: var(--font-family);
  background-color: var(--neutral-50);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}

/* Enhanced Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header-row {
  display: contents; /* Makes children act as direct flex items on desktop */
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Focus states for accessibility */
nav a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 2px;
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header Social Links and Actions Container */
.header-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.business-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(30, 64, 175, 0.2);
  white-space: nowrap;
  min-width: 100px;
}

.business-btn:hover {
  background: rgba(30, 64, 175, 0.15);
  border-color: rgba(30, 64, 175, 0.3);
  transform: translateY(-1px);
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-social-link:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

/* Social Icon Images */
.social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.header-social-link:hover .social-icon-img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.social-icon-img-about {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
}

.social-icon-img-footer {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social a:hover .social-icon-img-footer {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.cta-btn:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Modern Hero Section */
#hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  #hero,
  #services,
  #works,
  #pricing,
  #about {
    scroll-margin-top: 60px;
  }
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  word-break: keep-all;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin: 0 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Services Section */
#services {
  padding: 3rem 0;
  background-color: #fff;
  scroll-margin-top: 100px;
}

#services h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow: visible;
  padding: 0 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  text-align: left;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Works Section */
#works {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  scroll-margin-top: 100px;
}

#works h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

/* News Section */
#news {
  padding: 5rem 0;
  background-color: #fff;
}

#news h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

.news-list {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.news-item h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.news-item a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.news-item a:hover {
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

/* About Features */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--border-radius);
}

.feature h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.expertise-note {
  margin: 2rem 0 1.5rem;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.expertise-note strong {
  color: var(--primary-color);
}

/* Pricing Section */
#pricing {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  scroll-margin-top: 100px;
}

#pricing h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.pricing-cta {
  margin-top: 3rem;
}

.pricing-guarantee {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Testimonials Section */
#testimonials {
  padding: 5rem 0;
  background-color: #fff;
}

#testimonials h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--neutral-50) 0%, #fff 100%);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.rating {
  color: #fbbf24;
  font-size: 1.25rem;
}

/* Stats Section */
#stats {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid a.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  min-height: 120px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.grid a.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s ease;
}

.grid a.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.grid a.card:hover::before {
  left: 100%;
}

.grid a.card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced About Section */
#about {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  scroll-margin-top: 100px;
}

/* Special button styling for About section */
#about .btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

#about .btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

#about .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

#about img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
}

#about .about-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

#about .about-text p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2rem 0;
}

footer nav ul {
  justify-content: center;
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

footer a:hover {
  color: #fff;
}

footer a:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Social Links */
.social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social a:hover {
  background: rgba(255, 255, 255, 1);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer p {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 200;
  text-decoration: none;
  border-radius: var(--border-radius);
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  header {
    padding: 0.5rem 0;
  }
  
  .nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  /* Mobile header row contains logo + all buttons */
  .mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding-right: 0.5rem;
  }
  
  .logo {
    flex-shrink: 0;
  }
  
  .logo img {
    height: 25px;
  }
  
  /* Show navigation on mobile with adjusted styling */
  nav {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  nav a {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
  }
  
  .header-right {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.15rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    margin-left: auto;
    padding-left: 0.5rem;
  }
  
  .header-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.2rem;
    flex-shrink: 0;
  }
  
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.2rem;
    flex-shrink: 0;
  }
  
  .business-btn,
  .cta-btn {
    padding: 0.1rem 0.15rem !important;
    font-size: 0.4rem !important;
    min-width: unset !important;
    width: auto !important;
    text-align: center;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  
  .header-social-link {
    width: 22px;
    height: 22px;
  }
  
  .social-icon-img {
    width: 11px;
    height: 11px;
  }
  
  .section-intro {
    white-space: normal;
    font-size: 1rem;
  }
  
  
  /* 中間CTA mobile調整 */
  .text-center div[style*="display: flex"] {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  .text-center .btn {
    width: 100%;
    max-width: 300px;
  }
  
  #hero {
    padding: 3rem 0;
  }
  
  #hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    white-space: normal;
    word-break: keep-all;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  /* Pricing Grid Mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  
  .price {
    font-size: 2rem;
  }
  
  /* Testimonials Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  /* Stats Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* About Features Mobile */
  .about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1rem;
  }
  
  #about .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  #about img {
    width: 200px;
    height: 200px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  /* News Mobile */
  .news-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .news-date {
    order: 2;
    font-size: 0.8rem;
  }
  
  footer nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 1rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .cta-btn {
    order: 3;
    width: 100%;
    text-align: center;
  }
  
  .header-social {
    order: 2;
    gap: 0.25rem;
  }
  
  .header-social-link {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
  
  /* モバイルでのheader-actions調整 */
  .header-actions {
    order: 3;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .business-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Works Categories */
.works-category {
  margin-bottom: 3rem;
}

.works-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  width: 100%;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-grid .card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 2px solid rgba(37, 99, 235, 0.1);
  display: block;
  position: relative;
  overflow: hidden;
}

.category-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.category-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-grid .card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-grid .card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .works-category {
    margin-bottom: 2rem;
  }
  
  .works-category h3 {
    font-size: 1.25rem;
  }
  
  .social {
    gap: 1rem;
  }
  
  .social a {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* Social Media導線 */
.social-intro {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.social-intro p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.social-intro p:last-of-type {
  margin-bottom: 1.5rem;
}

.social-links-about {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  flex: 1;
  min-width: 240px;
}

.social-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.social-icon {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-50);
  border-radius: 50%;
  flex-shrink: 0;
  padding: 8px;
  overflow: hidden;
}

.social-link-card > div {
  flex: 1;
  min-width: 0;
}

.social-link-card strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.social-link-card small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.813rem;
  line-height: 1.3;
}

/* サービスセクション内のソーシャル案内 */
.service-social-note {
  margin: 1.5rem 0;
  text-align: center;
}

.service-social-note p {
  background: linear-gradient(135deg, #e0f2fe 0%, #f3e5f5 100%);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 0;
  color: var(--text-secondary);
}

.inline-social-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.inline-social-link:hover {
  border-bottom-color: var(--primary-color);
}

@media (max-width: 768px) {
  .social-links-about {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .social-link-card {
    min-width: auto;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
  }
  
  .social-intro {
    padding: 1rem;
  }
  
  .social-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
  }
  
  .social-icon-img-about {
    width: 32px;
    height: 32px;
  }
  
  .service-social-note p {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Force icon sizes - Override any conflicting styles */
.social-intro .social-icon {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
}

.social-intro .social-icon img,
.social-intro .social-icon .social-icon-img-about {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}