/* 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;
  align-items: center;
  gap: 24px;
}

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

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

/* Language Switcher - Modern Toggle Style */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  color: white;
}

.lang-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* Section Subtitle (shared) */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
}

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

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

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

.hero-tagline {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-visual {
  flex: 0 0 auto;
}

/* Phone Mockup - CSS-only device frame */
.phone-mockup {
  width: 220px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-mockup img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.store-buttons {
  display: flex;
  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;
}

.store-icon {
  flex-shrink: 0;
}

/* 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 {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 14px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

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

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

/* Screenshots Showcase */
.screenshots {
  padding: 60px 20px;
  background-color: var(--background-color);
}

.screenshots-container {
  max-width: 960px;
  margin: 0 auto;
}

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

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}

.screenshot-item {
  text-align: center;
}

.phone-mockup-small {
  width: 180px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
}

.phone-mockup-small img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.screenshot-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* How It Works */
.how-it-works {
  padding: 60px 20px;
  background-color: var(--surface-color);
}

.how-it-works-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-icon {
  color: var(--primary-color);
  margin-bottom: 12px;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

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

.step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Trust Section */
.trust {
  padding: 60px 20px;
  background-color: var(--background-color);
}

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

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EBF5FF;
  color: var(--primary-color);
  border-radius: 50%;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

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

.final-cta h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

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

.final-cta .store-buttons {
  justify-content: center;
}

.cta-store-button {
  font-size: 16px;
  padding: 16px 32px;
}

/* 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;
}

/* Update History */
.update-entry {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.update-entry:last-child {
  border-bottom: none;
}

.update-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

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

.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: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero .store-buttons {
    justify-content: center;
  }

  .phone-mockup {
    width: 180px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .phone-mockup-small {
    width: 140px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  .nav-links {
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 4px;
  }

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

  .hero-tagline {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

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

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

@media (max-width: 480px) {
  .phone-mockup-small {
    width: 120px;
    padding: 6px;
    border-radius: 18px;
  }

  .phone-mockup-small img {
    border-radius: 14px;
  }
}
