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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --background-dark: #0f172a;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;

  /* Modern shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Modern gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", Menlo, monospace;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header and Navigation */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
  padding: var(--space-4) 0;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

/* 絵文字の表示を修正 */
.logo::before {
  content: "📝 ";
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
}

.nav-menu a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.nav-menu a:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: heroShimmer 6s infinite linear;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

@keyframes heroShimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sparkle Text Effect */
.sparkle-text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: white;
  text-align: left;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.025em;
  position: relative;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sparkle-text::before {
  content: "✨";
  position: absolute;
  left: -50px;
  top: -10px;
  font-size: 2rem;
  animation: sparkle1 2s ease-in-out infinite;
}

.sparkle-text::after {
  content: "⭐";
  position: absolute;
  right: -50px;
  bottom: -10px;
  font-size: 1.5rem;
  animation: sparkle2 2.5s ease-in-out infinite;
}

@keyframes sparkle1 {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes sparkle2 {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(-180deg);
  }
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-image {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  position: relative;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.1rem;
}

.app-store-badge {
  height: 80px;
  width: auto;
  border: none;
  box-shadow: none;
}

.btn-primary .app-store-badge {
  border: none;
  box-shadow: none;
}

.btn:has(.app-store-badge) {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  padding: var(--space-2);
}

.hero-image img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
}

/* Features Section */
.features {
  padding: var(--space-24) 0;
  background: var(--background-secondary);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--text-dark);
  letter-spacing: -0.025em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-color);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: block;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-dark);
  text-align: center;
}

.feature-card ul {
  list-style: none;
  space-y: var(--space-2);
}

.feature-card li {
  padding: var(--space-2) 0;
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-light);
  line-height: 1.6;
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--space-2);
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* App Showcase Section */
.app-showcase {
  padding: var(--space-24) 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse > * {
  direction: ltr;
}

.showcase-image {
  position: relative;
}

.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item:hover .showcase-image::before {
  opacity: 0.2;
  transform: translate(-10px, -10px);
}

.showcase-item:hover .showcase-image img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.showcase-content {
  padding: var(--space-4);
}

.showcase-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-dark);
  line-height: 1.3;
}

.showcase-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Benefits Section */
.benefits {
  padding: var(--space-24) 0;
  background: linear-gradient(
    135deg,
    var(--background-secondary) 0%,
    white 100%
  );
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: var(--space-6);
  position: relative;
}

.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover .benefit-number {
  transform: scale(1.1) rotate(360deg);
  box-shadow: var(--shadow-xl);
}

.benefit-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* How to Use Section */
.how-to-use {
  padding: var(--space-20) 0;
  background: white;
  text-align: center;
}

.how-to-use ul {
  list-style: none;
  max-width: 600px;
  margin: var(--space-8) auto;
  text-align: left;
}

.how-to-use li {
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  position: relative;
  padding-left: var(--space-12);
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-to-use li::before {
  content: "🚀";
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-to-use li:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: translateX(8px);
}

.how-to-use li:hover::before {
  transform: translateY(-50%) scale(1.2);
}

.conclusion {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05),
    rgba(6, 182, 212, 0.05)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* FAQ Section */
.faq {
  padding: var(--space-24) 0;
  background: var(--background-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  space-y: var(--space-4);
}

.faq-item {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-item:hover::before {
  transform: scaleX(1);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: var(--space-24) 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: var(--background-dark);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
}

.footer-links {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero {
    padding: var(--space-16) 0;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .sparkle-text {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .showcase-item {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .showcase-item.reverse {
    direction: ltr;
  }

  .showcase-content h3 {
    font-size: 1.5rem;
  }

  .showcase-content p {
    font-size: 1rem;
  }

  .sparkle-text::before,
  .sparkle-text::after {
    display: none;
  }

  .container {
    padding: 0 var(--space-4);
  }

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