/* ikuji - 育児記録アプリ Website Styles */

:root {
  --primary-color: #5B8DEF;
  --primary-dark: #4A7ADB;
  --text-color: #333333;
  --text-secondary: #666666;
  --background-color: #FFFFFF;
  --surface-color: #F5F5F5;
  --border-color: #E0E0E0;
  --max-width: 800px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: white;
  font-size: 14px;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Main Content */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section (Top Page) */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.store-button img {
  height: 24px;
}

/* Features Section */
.features {
  padding: 60px 20px;
  background-color: var(--surface-color);
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Legal Pages */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.last-updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.legal-content h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.contact-info {
  background-color: var(--surface-color);
  padding: 20px;
  border-radius: 8px;
  margin-top: 32px;
}

.contact-info h3 {
  margin-top: 0;
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  font-size: 14px;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  font-size: 12px;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .legal-content h1 {
    font-size: 24px;
  }

  .legal-content h2 {
    font-size: 18px;
  }
}
