/* ========================================
   まとめね - Landing Page & Legal Pages
   ======================================== */

:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --secondary-color: #2196F3;
  --accent-color: #FF6B6B;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-color);
  box-shadow: var(--shadow);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* ========================================
   Hero Section with Feature Graphic
   ======================================== */

.hero {
  background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 50%, #F7DC6F 100%);
  padding: 0;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-image {
  position: relative;
}

.feature-graphic {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  padding: 3rem 2rem 3rem 0;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--text-color);
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.tagline strong {
  color: var(--primary-dark);
}

.app-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  position: relative;
  display: inline-block;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-badge.coming-soon img {
  filter: grayscale(50%);
}

.badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-content {
    padding: 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .app-badges {
    justify-content: center;
  }
}

/* ========================================
   AI Chat Highlight Section
   ======================================== */

.ai-chat-highlight {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 5rem 1.5rem;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.highlight-badge {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.ai-chat-highlight h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Chat Demo */
.chat-demo {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-examples {
  max-width: 600px;
  margin: 0 auto;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.message-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.user-message .message-avatar {
  background: var(--secondary-color);
}

.ai-message .message-avatar {
  background: linear-gradient(135deg, var(--primary-color), #00bcd4);
}

.message-content {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.user-message .message-content {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.ai-message .message-content {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.message-content strong {
  color: #4dd0e1;
}

/* AI Features Grid */
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ai-feature {
  text-align: center;
}

.ai-feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dd0e1;
}

.ai-feature h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ai-feature p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ai-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ai-chat-highlight h2 {
    font-size: 1.75rem;
  }

  .ai-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chat-demo {
    padding: 1rem;
  }

  .chat-message {
    gap: 0.5rem;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
  }

  .message-content {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   How it Works Section
   ======================================== */

.how-it-works {
  background: var(--bg-light);
  padding: 5rem 1.5rem;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
  flex: 1;
  min-width: 200px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-arrow {
  color: var(--primary-color);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .step-arrow {
    display: none;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    min-width: auto;
  }
}

/* ========================================
   Features Section
   ======================================== */

.features {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card.featured {
  border-color: var(--primary-color);
  border-width: 2px;
  background: linear-gradient(180deg, #f0fff0 0%, white 100%);
}

.feature-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.feature-card.featured .feature-icon {
  background: var(--primary-color);
  color: white;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
  background: var(--bg-light);
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pricing-description {
  color: var(--text-light);
  margin-bottom: 3rem;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-width: 280px;
  flex: 1;
  max-width: 350px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-period {
  color: var(--text-light);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.pricing-annual {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    min-width: auto;
    width: 100%;
    max-width: 350px;
  }
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta .app-badges {
  justify-content: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta .store-badge img {
  height: 48px;
}

/* ========================================
   Footer
   ======================================== */

footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links-section ul {
  list-style: none;
}

.footer-links-section li {
  margin-bottom: 0.5rem;
}

.footer-links-section a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ========================================
   Legal Pages (Privacy & Terms)
   ======================================== */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.legal-page .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.legal-page h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

.legal-page p {
  margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.legal-page th {
  background: var(--bg-light);
  font-weight: 600;
}

.legal-page tr:nth-child(even) {
  background: var(--bg-light);
}

/* Simple footer for legal pages */
.legal-page + footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.legal-page + footer .footer-links a {
  color: #ccc;
}

/* ========================================
   Utilities
   ======================================== */

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
}
