@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --text-primary: #1e1e2f;
  --text-secondary: #65657b;
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --success-color: #10b981;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border-color: rgba(30, 30, 47, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(79, 70, 229, 0.05), 0 2px 4px -1px rgba(79, 70, 229, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(79, 70, 229, 0.08), 0 4px 6px -2px rgba(79, 70, 229, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%),
              var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Common Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 245, 250, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Language Swapper */
.lang-switcher {
  display: flex;
  background: var(--border-color);
  padding: 4px;
  border-radius: 20px;
  position: relative;
  gap: 4px;
}

.lang-btn {
  border: none;
  background: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--bg-secondary);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-icon-container {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.hero-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-spring);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 15px 25px -10px rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.store-badge-btn {
  display: inline-flex;
  height: 52px;
  transition: var(--transition-spring);
}

.store-badge-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.store-badge-btn img {
  height: 100%;
  width: auto;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

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

/* Section Header */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 8px;
  background: var(--accent-gradient);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-card:nth-child(4) .feature-icon-wrapper {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pro Showcase Section */
.pro-showcase {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
  border-radius: 32px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
}

.pro-info {
  flex: 1;
}

.pro-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--gold-gradient);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.pro-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pro-features-list {
  list-style: none;
  margin-bottom: 32px;
}

.pro-features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.pro-features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #d97706;
  font-weight: 700;
}

.pro-price-tag {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pro-price-tag span {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-right: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Other Apps Section */
.other-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.app-card {
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-card-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.app-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.app-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.app-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.app-link:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

/* Privacy & Contact Pages Content */
.subpage-container {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.subpage-card {
  padding: 48px;
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.subpage-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
  display: block;
}

.rich-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.rich-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.rich-text ul {
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.rich-text li {
  margin-bottom: 8px;
}

/* Contact Specific styles */
.contact-info-block {
  text-align: center;
  padding: 24px 0;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .pro-showcase {
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
    text-align: center;
  }
  .pro-features-list {
    display: inline-block;
    text-align: left;
  }
  .subpage-card {
    padding: 24px;
  }
  .subpage-title {
    font-size: 2rem;
  }
  nav {
    display: none; /* Can build a simple burger menu or hide in simple site and use footer links */
  }
}
