/* ============================================================
   style.css — LifeGraph 共通スタイルシート
   index.html（アプリ）と lp.html（LP）で共有
   ============================================================ */

/* === カスタムプロパティ === */
:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-secondary: #6366f1;
  --color-accent: #8b5cf6;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-bg-light: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #ede9fe 100%);
  --gradient-bg-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);

  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* === リセット（index.html側はTailwindが処理） === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: #334155;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* === index.html 用: アプリ内カスタムスタイル === */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.entry-card {
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.modal-overlay {
  animation: fadeIn 0.2s ease;
}

.peak-glow {
  animation: pulse-glow 2s infinite;
}

/* === 共通アニメーション === */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 200, 0, 0.3)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.6)); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Google AdSense 広告枠 === */
.adsense-slot {
  width: 100%;
  max-width: 728px;
  margin: 32px auto;
  padding: 16px 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(203, 213, 225, 0.4);
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}

.adsense-slot::before {
  content: '';
  display: block;
}

/* === LP専用スタイル === */

/* LP全体レイアウト */
.lp-body {
  background: var(--gradient-bg-light);
  min-height: 100vh;
}

/* LP ヘッダー */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
  padding: 12px 0;
}

.lp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-logo-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  display: block;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.lp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.lp-cta-btn:active {
  transform: scale(0.97);
}

.lp-cta-btn-large {
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
}

.lp-cta-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.lp-cta-btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* LP セクション共通 */
.lp-section {
  padding: 72px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-alt {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.lp-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #1e293b;
  line-height: 1.4;
}

.lp-section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ヒーローセクション */
.lp-hero {
  padding: 80px 20px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.lp-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: #0f172a;
}

.lp-hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-description {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lp-hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.lp-hero-image {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border: 1px solid rgba(203, 213, 225, 0.3);
}

.lp-hero-image img {
  width: 100%;
  height: auto;
}

/* 特徴カード */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.lp-feature-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

.lp-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.lp-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
}

.lp-feature-text {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.7;
}

/* 使い方ステップ */
.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.lp-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.lp-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.lp-step-content {
  flex: 1;
}

.lp-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.lp-step-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* 活用シーン */
.lp-scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lp-scene-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(203, 213, 225, 0.3);
  transition: all 0.3s ease;
}

.lp-scene-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lp-scene-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.lp-scene-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.lp-scene-text {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.7;
}

/* 口コミ / テスティモニアル */
.lp-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lp-testimonial {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: var(--shadow-sm);
}

.lp-testimonial-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.lp-testimonial-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
}

.lp-testimonial-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* FAQ */
.lp-faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-faq-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 213, 225, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.lp-faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.lp-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  transition: background 0.2s ease;
}

.lp-faq-question:hover {
  background: rgba(59, 130, 246, 0.04);
}

.lp-faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: #94a3b8;
}

.lp-faq-item.open .lp-faq-arrow {
  transform: rotate(180deg);
}

.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lp-faq-item.open .lp-faq-answer {
  max-height: 300px;
}

.lp-faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.8;
}

/* SNS共有セクション */
.lp-share-section {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.08));
  border-radius: var(--radius-xl);
  margin: 0 auto;
  max-width: 1100px;
}

.lp-share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.lp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lp-share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.lp-share-btn-x {
  background: #0f1419;
}

.lp-share-btn-x:hover {
  box-shadow: 0 4px 15px rgba(15, 20, 25, 0.3);
}

.lp-share-btn-line {
  background: #06C755;
}

.lp-share-btn-line:hover {
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.lp-share-btn-hatena {
  background: #00A4DE;
}

.lp-share-btn-hatena:hover {
  box-shadow: 0 4px 15px rgba(0, 164, 222, 0.3);
}

/* CTA セクション */
.lp-final-cta {
  text-align: center;
  padding: 80px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.lp-final-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
}

.lp-final-cta p {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* LP フッター */
.lp-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px;
  text-align: center;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.lp-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.lp-footer-links a {
  color: #64748b;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.lp-footer-links a:hover {
  color: #e2e8f0;
}

.lp-footer-copy {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 16px;
}

/* プライバシーバッジ */
.lp-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* === レスポンシブ === */
@media (max-width: 768px) {
  .lp-hero h1 {
    font-size: 1.7rem;
  }

  .lp-hero-description {
    font-size: 0.92rem;
  }

  .lp-section {
    padding: 48px 16px;
  }

  .lp-section-title {
    font-size: 1.4rem;
  }

  .lp-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .lp-step {
    gap: 16px;
  }

  .lp-step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .lp-scenes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .lp-hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .lp-cta-btn-large {
    padding: 14px 32px;
    font-size: 0.95rem;
    width: 100%;
  }

  .lp-share-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .lp-share-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lp-hero h1 {
    font-size: 1.45rem;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-scenes-grid {
    grid-template-columns: 1fr;
  }

  .lp-feature-card {
    padding: 24px 20px;
  }

  .lp-testimonials {
    grid-template-columns: 1fr;
  }
}
