/* ============================================
   ReplyAI - 共通スタイルシート
   ============================================ */

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

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #eef2ff;
  --color-background: #f9fafb;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-white: #ffffff;
  --color-border: #e5e7eb;
  --color-error: #ef4444;

  --font-family-base:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   Header
   ============================================ */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.header-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid transparent;
  background: var(--color-background);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    var(--color-background) 100%
  );
  padding: 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
}

.hero-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ============================================
   App Icon / Screenshot
   ============================================ */
.app-showcase {
  margin: 48px auto;
  max-width: 300px;
}

.app-icon-large {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  margin: 0 auto;
}

.app-icon-large svg {
  width: 120px;
  height: 120px;
  color: var(--color-white);
}

/* ============================================
   Features Section
   ============================================ */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

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

/* ============================================
   Scene Selection
   ============================================ */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.scene-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.2s ease;
}

.scene-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.scene-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.scene-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-secondary);
}

.scene-card:hover .scene-icon svg {
  color: var(--color-primary);
}

.scene-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.scene-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================
   Tone Selection
   ============================================ */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.tone-card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 20px 16px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.tone-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tone-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.tone-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-secondary);
}

.tone-card:hover .tone-icon svg {
  color: var(--color-primary);
}

.tone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  padding: 80px 20px;
  text-align: center;
}

.download-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.download-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

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

.store-button {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--border-radius-md);
  padding: 16px 32px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-button.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.store-button.coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.store-icon {
  width: 28px;
  height: 28px;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-text);
}

.store-text {
  text-align: left;
}

.store-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
}

.store-name {
  font-size: 18px;
  color: var(--color-text);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 48px 20px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-contact {
  font-size: 12px;
  color: var(--color-text-muted);
}

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

/* ============================================
   Language Selection Page
   ============================================ */
.lang-select-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    var(--color-background) 100%
  );
  padding: 20px;
}

.lang-select-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.lang-select-icon {
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-lg);
}

.lang-select-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.lang-select-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.lang-select-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.lang-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lang-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: 2px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.lang-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.lang-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-primary);
}

.lang-card-text {
  text-align: left;
  flex: 1;
}

.lang-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

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

.lang-card-arrow {
  width: 24px;
  height: 24px;
}

.lang-card-arrow svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
}

/* ============================================
   Policy Pages
   ============================================ */
.policy-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  padding: 20px;
}

.policy-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.policy-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.policy-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.policy-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.policy-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.policy-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.policy-back:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

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

  .section-title {
    font-size: 28px;
  }

  .features-grid,
  .scene-grid,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    gap: 12px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .lang-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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

  .section {
    padding: 48px 20px;
  }
}
