:root {
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --light-text: #f0e6d2;
  --accent-color: #c8102e;
  --accent-hover: #e63946;
  --border-color: #2a2a2a;
  --card-bg: #1e1e1e;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 4rem 0;
}

/* Header & Navigation */
header {
  background-color: var(--darker-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--light-text);
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  margin: 0 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: relative;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--transition);;
}

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

.slideshow-container {
  height: 70vh;
  max-height: 800px;
  min-height: 500px;
  position: relative;
}

.mySlides {
  display: none;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mySlides::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.slide-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Slide Navigation */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  color: var(--light-text);
  font-weight: bold;
  font-size: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(200, 16, 46, 0.3);
  backdrop-filter: blur(5px);
  z-index: 3;
  border: none;
}

.next {
  right: 20px;
  border-radius: 50% 0 0 50%;
}

.prev {
  left: 20px;
  border-radius: 0 50% 50% 0;
}

.prev:hover, .next:hover {
  background-color: rgba(200, 16, 46, 0.8);
}

.slide-indicators {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(200, 16, 46, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.active, .dot:hover {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* Content Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step-number {
  background: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--light-text);
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid var(--accent-color);
  transition: var(--transition);
  font-weight: 300;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
}

.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Footer */
.main-footer {
  background-color: var(--darker-bg);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-links, .social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link, .social-link {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 300;
}

.footer-link:hover, .social-link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: #777;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-list {
    margin-top: 1rem;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-text {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Improved Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #f0e6d2, #c8102e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

h2::after {
  width: 100px;
  height: 4px;
  bottom: -15px;
}

/* Enhanced Card Styles */
.feature-card, .usecase-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card::before, .usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200,16,46,0.1) 0%, rgba(18,18,18,0.8) 100%);
  z-index: 1;
}

.feature-card:hover, .usecase-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
  color: var(--accent-hover);
}

/* Improved Grid Layouts */
.features-grid, .usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

/* Process Steps Enhancement */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
}

.step-content {
  padding-top: 1.5rem;
}

/* Improved Hero Section */
.slide-content {
  max-width: 900px;
  padding: 3rem;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(200,16,46,0.3);
}

.slide-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.slide-text {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
}

/*.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
} */

/* Gradient Accents */
.cta-section {
  background: linear-gradient(135deg, rgba(200,16,46,0.1) 0%, rgba(18,18,18,1) 100%);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

/* Animation Enhancements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-card:hover {
  animation: float 3s ease-in-out infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-text {
    font-size: 1.1rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
}