/* ========== LiteWord Top Page LP ========== */
/* All selectors scoped under #top-lp */

#top-lp {
  --primary: #2967ad;
  --primary-dark: #1e4f85;
  --primary-light: #4a8fd4;
  --primary-pale: #dbeafe;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-light: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(41, 103, 173, 0.1);
  --shadow-lg: 0 12px 40px rgba(41, 103, 173, 0.15);
  --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

#top-lp *, #top-lp *::before, #top-lp *::after { box-sizing: border-box; }
#top-lp a { color: inherit; text-decoration: none; }
#top-lp .tlp-sp-only { display: none; }

/* --- Shared --- */
#top-lp .tlp-section { padding: 80px 0; }
#top-lp .tlp-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
#top-lp .tlp-section-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.4; margin: 0 0 16px; }
#top-lp .tlp-section-title span { color: var(--primary); }
#top-lp .tlp-section-lead { font-size: clamp(0.88rem, 2.5vw, 1rem); color: var(--text-light); text-align: center; max-width: 640px; margin: 0 auto 48px; line-height: 1.8; }

/* ========== 1. Hero ========== */
#top-lp .tlp-hero { background: linear-gradient(135deg, #1e4f85 0%, #2967ad 50%, #4a8fd4 100%); padding: 80px 0 60px; position: relative; overflow: hidden; }
#top-lp .tlp-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%); pointer-events: none; }
#top-lp .tlp-hero-inner { display: flex; align-items: center; gap: 48px; }
#top-lp .tlp-hero-text { flex: 1; }
#top-lp .tlp-hero-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1.5; margin: 0 0 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#top-lp .tlp-hero-sub { font-size: clamp(0.88rem, 2.5vw, 1.05rem); color: rgba(255,255,255,0.85); margin: 0 0 28px; line-height: 1.8; }
#top-lp .tlp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
#top-lp .tlp-hero-cta-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700; padding: 14px 32px; border-radius: 100px; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4); transition: transform 0.2s, box-shadow 0.2s; }
#top-lp .tlp-hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,0.5); }
#top-lp .tlp-hero-cta-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 0.92rem; font-weight: 600; padding: 12px 24px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.3); transition: background 0.2s; }
#top-lp .tlp-hero-cta-secondary:hover { background: rgba(255,255,255,0.25); }
#top-lp .tlp-hero-video { flex: 1; max-width: 520px; }
#top-lp .tlp-hero-short-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
#top-lp .tlp-hero-short-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ========== Trust Bar ========== */
#top-lp .tlp-trust-bar { background: var(--bg-white); border-bottom: 1px solid var(--primary-pale); padding: 24px 0; }
#top-lp .tlp-trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
#top-lp .tlp-trust-item { text-align: center; }
#top-lp .tlp-trust-num { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
#top-lp .tlp-trust-num small { font-size: 0.6em; font-weight: 600; }
#top-lp .tlp-trust-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; margin-top: 2px; display: block; }

/* ========== 2. Reasons ========== */
#top-lp .tlp-reasons { background: var(--bg-white); }
#top-lp .tlp-reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#top-lp .tlp-reason-card { background: var(--bg-light); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
#top-lp .tlp-reason-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
#top-lp .tlp-reason-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--primary); color: #fff; font-size: 1.1rem; font-weight: 700; border-radius: 50%; margin: 0 0 16px; }
#top-lp .tlp-reason-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 12px; line-height: 1.4; }
#top-lp .tlp-reason-desc { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; }
#top-lp .tlp-reason-highlight { color: var(--primary); font-weight: 700; }

/* ========== 3. Gallery ========== */
#top-lp .tlp-gallery { background: var(--bg-section); }
#top-lp .tlp-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#top-lp .tlp-gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; background: var(--bg-light); display: block; color: inherit; }
#top-lp .tlp-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
#top-lp .tlp-gallery-img { width: 100%; height: 280px; object-fit: cover; object-position: top; display: block; background: var(--bg-section); transition: object-position 1.5s ease; }
#top-lp .tlp-gallery-item:hover .tlp-gallery-img { object-position: bottom; }
#top-lp .tlp-gallery-info { padding: 14px 16px; }
#top-lp .tlp-gallery-label { font-size: 0.78rem; color: var(--primary); font-weight: 600; margin: 0 0 4px; }
#top-lp .tlp-gallery-name { font-size: 0.88rem; color: var(--text-dark); font-weight: 500; }
#top-lp .tlp-cta-mid { text-align: center; margin: 48px 0 0; }
#top-lp .tlp-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-white); color: var(--primary); font-size: 0.92rem; font-weight: 600; padding: 12px 28px; border-radius: 100px; border: 2px solid var(--primary-pale); transition: background 0.2s, border-color 0.2s; }
#top-lp .tlp-btn-secondary:hover { background: var(--primary-pale); border-color: var(--primary-light); }

/* ========== 4. AI Support ========== */
#top-lp .tlp-ai-support { background: var(--bg-white); }
#top-lp .tlp-ai-demo-inner { display: flex; gap: 32px; align-items: flex-start; max-width: 820px; margin: 0 auto; }
#top-lp .tlp-ai-chat-example { flex: 1; background: var(--bg-light); border-radius: var(--radius); padding: 24px; }
#top-lp .tlp-ai-label { font-size: 0.72rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; text-align: center; }
#top-lp .tlp-ai-bubble { padding: 10px 16px; border-radius: 14px; font-size: 0.88rem; line-height: 1.6; max-width: 90%; margin: 0 0 10px; }
#top-lp .tlp-ai-user { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; text-align: right; }
#top-lp .tlp-ai-bot { background: var(--bg-white); color: var(--text-dark); border-bottom-left-radius: 4px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
#top-lp .tlp-ai-bot-icon { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
#top-lp .tlp-ai-examples { font-size: 0.75rem; color: var(--text-light); margin: 14px 0 0; text-align: center; line-height: 1.6; }
#top-lp .tlp-ai-examples strong { color: var(--text-body); font-weight: 500; }
#top-lp .tlp-ai-stats { flex-shrink: 0; width: 200px; display: flex; flex-direction: column; gap: 12px; }
#top-lp .tlp-ai-stat { background: var(--bg-light); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
#top-lp .tlp-ai-stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
#top-lp .tlp-ai-stat-num small { font-size: 0.6em; font-weight: 600; }
#top-lp .tlp-ai-stat-label { font-size: 0.72rem; color: var(--text-light); font-weight: 500; display: block; margin-top: 2px; }
#top-lp .tlp-ai-link { display: block; text-align: center; font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 4px; }
#top-lp .tlp-ai-link:hover { text-decoration: underline; }
#top-lp .tlp-ai-link-primary { display: block; text-align: center; background: var(--primary); color: #fff; font-size: 0.88rem; font-weight: 600; padding: 10px 0; border-radius: 100px; margin-top: 4px; transition: opacity 0.2s; }
#top-lp .tlp-ai-link-primary:hover { opacity: 0.9; }

/* ========== 5. Developer Story ========== */
#top-lp .tlp-story { background: var(--bg-section); }
#top-lp .tlp-story-inner { display: flex; align-items: flex-start; gap: 40px; max-width: 780px; margin: 0 auto; }
#top-lp .tlp-story-photo { flex-shrink: 0; }
#top-lp .tlp-story-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
#top-lp .tlp-story-title { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin: 0 0 4px; }
#top-lp .tlp-story-name { font-size: 0.82rem; color: var(--text-light); margin: 0 0 16px; }
#top-lp .tlp-story-body { font-size: 0.92rem; color: var(--text-body); line-height: 1.8; margin: 0 0 12px; }
#top-lp .tlp-story-body strong { color: var(--text-dark); }
#top-lp .tlp-story-body:last-child { margin: 0; }

/* ========== 6. Final CTA ========== */
#top-lp .tlp-final { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
#top-lp .tlp-final::before { content: ''; position: absolute; bottom: -60px; left: -60px; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none; }
#top-lp .tlp-final-avatar { width: 80px; height: 80px; margin: 0 auto 16px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15)); animation: tlpFloat 3s ease-in-out infinite; }
#top-lp .tlp-final-speech { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-block; padding: 12px 28px; border-radius: var(--radius); margin: 0 0 24px; }
#top-lp .tlp-final-speech p { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
#top-lp .tlp-final-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: #fff; margin: 0 0 24px; line-height: 1.4; }
#top-lp .tlp-final-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 700; padding: 18px 48px; border-radius: 100px; box-shadow: 0 4px 20px rgba(245,158,11,0.4); transition: transform 0.2s, box-shadow 0.2s; }
#top-lp .tlp-final-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.5); }
#top-lp .tlp-final-reassure { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 16px 0 0; }
#top-lp .tlp-final-free { margin: 20px 0 0; }
#top-lp .tlp-final-free a { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: underline; transition: color 0.2s; }
#top-lp .tlp-final-free a:hover { color: rgba(255,255,255,0.8); }

/* ========== Animations ========== */
#top-lp .tlp-animate { opacity: 0; transition: none; }
#top-lp .tlp-animate.animated { animation-duration: 0.8s; animation-fill-mode: both; animation-timing-function: ease-out; }
#top-lp .tlp-fade-up.animated { animation-name: tlpFadeUp; }
#top-lp .tlp-scale-in.animated { animation-name: tlpScaleIn; }
#top-lp .tlp-delay-100 { animation-delay: 0.1s; }
#top-lp .tlp-delay-200 { animation-delay: 0.2s; }
#top-lp .tlp-delay-300 { animation-delay: 0.3s; }

@keyframes tlpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tlpFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tlpScaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  #top-lp .tlp-section { padding: 56px 0; }
  #top-lp .tlp-hero { padding: 56px 0 48px; }
  #top-lp .tlp-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  #top-lp .tlp-hero-ctas { justify-content: center; }
  #top-lp .tlp-hero-video { max-width: 100%; width: 100%; }
  #top-lp .tlp-ai-demo-inner { flex-direction: column; }
  #top-lp .tlp-ai-stats { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  #top-lp .tlp-ai-stat { flex: 1; min-width: 120px; }
  #top-lp .tlp-ai-link, #top-lp .tlp-ai-link-primary { flex: 1; min-width: 140px; }
  #top-lp .tlp-trust-items { gap: 24px; }
  #top-lp .tlp-trust-num { font-size: 1.6rem; }
  #top-lp .tlp-reasons-grid { grid-template-columns: 1fr; gap: 16px; }
  #top-lp .tlp-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  #top-lp .tlp-story-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  #top-lp .tlp-story-img { width: 100px; height: 100px; }
  #top-lp .tlp-final { padding: 56px 0; }
}
@media (max-width: 600px) {
  #top-lp .tlp-sp-only { display: inline; }
  #top-lp .tlp-section { padding: 40px 0; }
  #top-lp .tlp-container { padding: 0 16px; }
  #top-lp .tlp-hero { padding: 40px 0 36px; }
  #top-lp .tlp-hero-ctas { flex-direction: column; align-items: center; }
  #top-lp .tlp-trust-items { gap: 16px; }
  #top-lp .tlp-trust-num { font-size: 1.4rem; }
  #top-lp .tlp-gallery-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  #top-lp .tlp-gallery-item:nth-child(n+5) { display: none; }
  #top-lp .tlp-gallery-img { height: 200px; }
  #top-lp .tlp-final-cta { font-size: 1rem; padding: 16px 36px; }
}
@media (max-width: 500px) {
  #top-lp .tlp-hero-title { font-size: 1.4rem; }
  #top-lp .tlp-section-title { font-size: 1.3rem; }
}
