/*
 * Main Stylesheet for ainudes.space
 * Japanese language website with mobile-responsive design
 */

:root {
  /* Color palette - different from previous sites */
  --primary-color: #FF3366;       /* Pink/Red as main color */
  --secondary-color: #3366FF;     /* Blue accent */
  --tertiary-color: #33CCFF;      /* Light blue accent */
  --dark-color: #1E1E2A;          /* Dark background */
  --light-color: #FAFAFA;         /* Light background */
  --text-dark: #222233;           /* Dark text */
  --text-light: #FFFFFF;          /* Light text */
  --card-bg: #FFFFFF;             /* Card background */
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  
  /* Typography */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --container-padding: var(--spacing-md);
  --border-radius: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--spacing-xl) 0;
}

/* Button styles */
.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
  color: var(--text-light);
}

/* Header styles */
.site-header {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  width: 40px;
  height: 40px;
}

.logo-wrapper h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: var(--primary-color);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.bar:nth-child(1) {
  top: 0;
}

.bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.bar:nth-child(3) {
  bottom: 0;
}

/* Hero section */
.hero {
  background: var(--gradient);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-align: left;
}

/* Features section */
.features {
  background-color: var(--light-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin: 0 auto var(--spacing-md);
}

/* How it works section */
.how-it-works {
  background-color: var(--dark-color);
  color: var(--text-light);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50px;
  width: 100px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto var(--spacing-md);
}

/* Gallery section */
.gallery {
  background-color: var(--light-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay p {
  color: var(--text-light);
  font-weight: bold;
  margin: 0;
  padding: var(--spacing-md);
  text-align: center;
}

/* FAQ section */
.faq {
  background-color: var(--light-color);
}

.faq-list {
  display: grid;
  gap: var(--spacing-md);
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  position: relative;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding: 0 var(--spacing-md) var(--spacing-md);
}

/* CTA section */
.cta {
  background: var(--gradient);
  color: var(--text-light);
  text-align: center;
}

.cta h2 {
  margin-bottom: var(--spacing-md);
}

.cta p {
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-sm) / 2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-light);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    width: 100%;
  }
  
  .steps {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    pointer-events: none;
  }
  
  .nav-list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: all;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 3rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
