/* === Landing Page Styles === */

/* ランディングページ全体 */
.landing {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8e8 50%, #fff0f5 100%);
  overflow-x: hidden;
}

/* === Hero Section === */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
}

/* 背景のフローティングノート */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-notes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-note {
  position: absolute;
  border-radius: 4px;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.floating-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 30%;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 0 3px 3px;
}

.note-1 {
  width: 80px;
  height: 80px;
  background: #fff9c4;
  top: 10%;
  left: 10%;
  transform: rotate(-5deg);
  animation-delay: 0s;
}

.note-2 {
  width: 100px;
  height: 100px;
  background: #ffcdd2;
  top: 15%;
  right: 15%;
  transform: rotate(3deg);
  animation-delay: 1s;
}

.note-3 {
  width: 70px;
  height: 70px;
  background: #bbdefb;
  bottom: 25%;
  left: 8%;
  transform: rotate(-8deg);
  animation-delay: 2s;
}

.note-4 {
  width: 90px;
  height: 90px;
  background: #c8e6c9;
  bottom: 20%;
  right: 10%;
  transform: rotate(6deg);
  animation-delay: 0.5s;
}

.note-5 {
  width: 60px;
  height: 60px;
  background: #e1bee7;
  top: 40%;
  left: 5%;
  transform: rotate(-3deg);
  animation-delay: 1.5s;
}

.note-6 {
  width: 75px;
  height: 75px;
  background: #ffe0b2;
  top: 50%;
  right: 5%;
  transform: rotate(4deg);
  animation-delay: 2.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 3deg));
  }
}

.note-1 { --rotate: -5deg; }
.note-2 { --rotate: 3deg; }
.note-3 { --rotate: -8deg; }
.note-4 { --rotate: 6deg; }
.note-5 { --rotate: -3deg; }
.note-6 { --rotate: 4deg; }

/* ヒーローコンテンツ */
.hero-content {
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

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

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(255, 154, 158, 0.4));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #a8e6cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: #888;
  margin: 0 auto 40px;
  max-width: 400px;
  line-height: 1.6;
}

/* CTAボタン */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 154, 158, 0.5);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button i {
  font-size: 1.3rem;
}

.cta-button.large {
  padding: 20px 50px;
  font-size: 1.2rem;
}

/* ヒーロー直下の招待制ノート */
.hero-invite-note {
  margin: 20px auto 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  font-size: 0.85rem;
  color: #777;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  line-height: 1.5;
}

.hero-invite-note i {
  font-size: 1rem;
  color: #b08fc7;
}

.hero-invite-note strong {
  color: #555;
  font-weight: 600;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  color: #ff9a9e;
  font-size: 1.5rem;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* === Features Section === */
.landing-features {
  padding: 100px 20px;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.section-description {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto 0;
}

.feature-card {
  background: linear-gradient(135deg, #fff9f0 0%, #fffaf5 100%);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 154, 158, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 154, 158, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* === Themes Section === */
.landing-themes {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f4f0 0%, #fff 100%);
}

.themes-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 50px auto 0;
}

.theme-preview {
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-preview:hover {
  transform: translateY(-5px);
}

.theme-preview-content {
  height: 150px;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8e8 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.theme-preview-content.dark {
  background: linear-gradient(135deg, #1a1030 0%, #0d1a2a 100%);
}

.theme-preview-content.pastel {
  background: linear-gradient(135deg, #f8e1eb 0%, #e8e1f8 100%);
}

.theme-preview-content.mint {
  background: linear-gradient(135deg, #d0ece4 0%, #f0f5d8 100%);
}

.preview-notes {
  display: flex;
  gap: 10px;
  transform: rotate(-5deg);
}

.preview-note {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s ease;
}

.preview-note:nth-child(1) { --rot: -3deg; }
.preview-note:nth-child(2) { --rot: 2deg; transform: translateY(-5px); }
.preview-note:nth-child(3) { --rot: -1deg; }

.theme-preview:hover .preview-note {
  transform: rotate(0deg) scale(1.05);
}

.theme-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
}

.theme-name i {
  font-size: 1.1rem;
}

/* === How To Section === */
.landing-howto {
  padding: 100px 20px;
  background: white;
}

.howto-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto 0;
  flex-wrap: wrap;
}

.howto-step {
  text-align: center;
  padding: 30px;
  flex: 1;
  min-width: 200px;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.howto-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.howto-step p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.howto-arrow {
  color: #ff9a9e;
  font-size: 1.5rem;
  opacity: 0.5;
}

/* === Pricing Section === */
.landing-pricing {
  padding: 80px 24px;
  background: rgba(255, 255, 255, 0.5);
}

.pricing-status {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  background: #ff9a9e;
  color: white;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}

.pricing-lead {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin: 0 auto 48px;
  max-width: 640px;
  line-height: 1.8;
}

.pricing-lead strong {
  color: #ff6b6b;
}

/* Phase 1 招待ユーザー向け案内 (#102) */
.pricing-early-supporter {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8e8 100%);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
  text-align: center;
}

.pricing-early-supporter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 12px;
}

.pricing-early-supporter-title {
  font-size: 1.2rem;
  color: #444;
  margin: 0 0 12px;
  font-weight: 700;
}

.pricing-early-supporter-text {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

.pricing-early-supporter-text strong {
  color: #ff6b6b;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card-recommended {
  border: 2px solid #ff9a9e;
  transform: scale(1.02);
}

.pricing-card-bonus {
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8e8 100%);
  border-radius: 10px;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

.pricing-bonus-label {
  display: block;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.pricing-card-bonus strong {
  color: #ff6b6b;
}

.pricing-card-lifetime {
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8e8 100%);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9a9e;
  color: white;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 154, 158, 0.4);
}

.pricing-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}

.pricing-card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff6b6b;
  margin: 12px 0 0;
  line-height: 1.2;
}

.pricing-card-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  margin-left: 2px;
}

.pricing-card-note {
  font-size: 0.75rem;
  color: #ff9a9e;
  margin: 6px 0 14px;
  font-weight: 600;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
}

.pricing-card-features li {
  font-size: 0.82rem;
  color: #666;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.4;
}

.pricing-card-features li:first-child {
  border-top: none;
}

.pricing-common {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 28px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pricing-common-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: #333;
}

.pricing-common ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-common ul li {
  padding: 10px 0;
  color: #666;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-common ul li i {
  color: #ff9a9e;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .landing-pricing {
    padding: 56px 16px;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 16px;
  }
  .pricing-card-recommended {
    transform: none;
  }
  .pricing-early-supporter {
    padding: 20px 18px;
    max-width: 90%;
  }
  .pricing-early-supporter-title {
    font-size: 1.05rem;
  }
  .pricing-early-supporter-text {
    font-size: 0.825rem;
  }
}

/* === CTA Section === */
.landing-cta {
  padding: 100px 20px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #ffecd2 100%);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
}

.landing-cta .cta-button {
  background: white;
  color: #ff9a9e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.landing-cta .cta-button:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* === Footer === */
.landing-footer {
  padding: 40px 20px;
  background: #333;
  color: white;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .floating-note {
    opacity: 0.4;
  }

  .note-1, .note-3, .note-5 {
    display: none;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .feature-card {
    padding: 25px 20px;
  }

  .themes-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .theme-preview-content {
    height: 120px;
  }

  .preview-note {
    width: 40px;
    height: 40px;
  }

  .howto-arrow {
    display: none;
  }

  .howto-steps {
    flex-direction: column;
    gap: 10px;
  }

  .howto-step {
    padding: 20px;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .themes-showcase {
    grid-template-columns: 1fr;
  }

}

/* === Scroll Animations === */
.feature-card,
.theme-preview,
.howto-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.theme-preview.visible,
.howto-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スタガードアニメーション用 */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.theme-preview:nth-child(1) { transition-delay: 0.1s; }
.theme-preview:nth-child(2) { transition-delay: 0.2s; }
.theme-preview:nth-child(3) { transition-delay: 0.3s; }
.theme-preview:nth-child(4) { transition-delay: 0.4s; }

.howto-step:nth-child(1) { transition-delay: 0.1s; }
.howto-step:nth-child(2) { transition-delay: 0.15s; }
.howto-step:nth-child(3) { transition-delay: 0.2s; }
.howto-step:nth-child(4) { transition-delay: 0.25s; }
.howto-step:nth-child(5) { transition-delay: 0.3s; }
