/* Home page styles for NowisYoungest Apps */

/* Base styles */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #f72585;
  --text-color: #333333;
  --light-text: #666666;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --container-max-width: 1200px;
  --border-color: #e1e4e8;
  --text-muted: #8991a0;
  --light-gray: #f0f2f5;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Hero banner with gradient background */
.hero-banner {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(67, 97, 238, 0.3) 0%, rgba(67, 97, 238, 0) 70%);
  transform: translateX(-50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-banner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-banner p {
  font-size: 1.4rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* App directory container */
.app-directory-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Header styles */
.app-directory-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.app-directory-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.app-directory-header .subtitle {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-top: 0;
}

/* App grid layout */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* App card styles */
.app-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
  min-height: 120px;
}

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

.app-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
}

.app-info h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.app-info p {
  margin: 0;
  color: var(--light-text);
  font-size: 0.95rem;
}

/* Placeholder card styling */
.app-placeholder {
  border: 2px dashed #e0e0e0;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}

.app-placeholder .app-icon {
  background-color: rgba(247, 37, 133, 0.1);
}

.app-placeholder h2 {
  color: var(--accent-color);
}

/* Footer styles */
.app-footer {
  background-color: #f1f3f9;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-info p {
  margin: 0.5rem 0;
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 2.2rem;
  }
  
  .hero-banner p {
    font-size: 1.1rem;
  }
  
  .app-directory-header h2 {
    font-size: 1.8rem;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .app-card {
    min-height: 100px;
  }
}

/* Animation delay utilities */
.animate__fadeInUp:nth-child(2) {
  animation-delay: 0.1s;
}

.animate__fadeInUp:nth-child(3) {
  animation-delay: 0.2s;
}

.animate__fadeInUp:nth-child(4) {
  animation-delay: 0.3s;
}

/* ダークモード対応 - グローバル変数を使用 */
@media (prefers-color-scheme: dark) {
  :root {
    /* トップページ用CSS変数オーバーライド */
    --primary-color: #7bb3ff;
    --secondary-color: #5a7cdb;
    --accent-color: #ff6b9d;
    --text-color: #e1e3e6;
    --light-text: #bdc1c6;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    --border-color: #3c4043;
    --text-muted: #9aa0a6;
    --light-gray: #2d2d2d;
  }
  
  body {
    background-color: var(--background-color);
    color: var(--text-color);
  }
  
  .hero-banner {
    background: linear-gradient(135deg, #4a5d9a, #3a5998);
  }
  
  .app-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
  }
  
  .app-card:hover {
    background-color: #242424;
    border-color: #484848;
  }
  
  .app-icon {
    background-color: rgba(123, 179, 255, 0.15);
  }
  
  .app-placeholder {
    border-color: var(--border-color);
    background-color: rgba(30, 30, 30, 0.7);
  }
  
  .app-placeholder .app-icon {
    background-color: rgba(255, 107, 157, 0.15);
  }
  
  .app-footer {
    background-color: #1a1a1a;
    border-top-color: var(--border-color);
  }
} 