/* ========== WordPress Guide ========== */
/* All selectors scoped under #wp-guide */

#wp-guide {
  --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;
}
#wp-guide *, #wp-guide *::before, #wp-guide *::after { box-sizing: border-box; }
#wp-guide a { color: inherit; text-decoration: none; }

/* --- Shared --- */
#wp-guide .wpg-section { padding: 80px 0; }
#wp-guide .wpg-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
#wp-guide .wpg-section-title { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.4; margin: 0 0 16px; }
#wp-guide .wpg-section-title span { color: var(--primary); }
#wp-guide .wpg-section-lead { font-size: clamp(0.88rem, 2.5vw, 1rem); color: var(--text-light); text-align: center; margin: 0 0 40px; }

/* --- Speech Row --- */
#wp-guide .wpg-speech-row { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; justify-content: center; }
#wp-guide .wpg-speech-avatar { width: 48px; height: 48px; flex-shrink: 0; animation: wpgFloat 3s ease-in-out infinite; }
#wp-guide .wpg-speech-bubble { background: var(--primary-pale); color: var(--primary-dark); padding: 12px 20px; border-radius: 14px 14px 14px 4px; font-size: 0.95rem; font-weight: 600; max-width: 400px; }

/* --- Voice Button --- */
#wp-guide .wpg-voice-wrap { text-align: center; margin: 32px 0 0; }
#wp-guide .wpg-voice-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: var(--bg-light); color: var(--primary); border: 2px solid var(--primary-pale); border-radius: 100px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s; font-family: var(--font-main); }
#wp-guide .wpg-voice-btn:hover { background: var(--primary-pale); border-color: var(--primary-light); }
#wp-guide .wpg-voice-btn.playing { background: var(--primary); color: #fff !important; border-color: var(--primary); }
#wp-guide .wpg-voice-btn svg { flex-shrink: 0; }

/* ========== 1. Hero ========== */
#wp-guide .wpg-hero { background: linear-gradient(135deg, #1e4f85 0%, #2967ad 50%, #4a8fd4 100%); padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
#wp-guide .wpg-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 30% 80%, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }
#wp-guide .wpg-hero-avatar { width: 100px; height: 100px; margin: 0 auto 20px; display: block; animation: wpgFloat 3s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15)); }
#wp-guide .wpg-hero-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; color: #fff; margin: 0 0 12px; }
#wp-guide .wpg-hero-sub { font-size: clamp(0.88rem, 2.5vw, 1.05rem); color: rgba(255,255,255,0.85); margin: 0 0 28px; }
#wp-guide .wpg-hero .wpg-voice-btn { background: rgba(255,255,255,0.15); color: #fff !important; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#wp-guide .wpg-hero .wpg-voice-btn:hover { background: rgba(255,255,255,0.25); }

/* ========== 2. Three Cards ========== */
#wp-guide .wpg-what-is-server { background: var(--bg-white); }
#wp-guide .wpg-three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#wp-guide .wpg-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
#wp-guide .wpg-card-icon { font-size: 2rem; margin: 0 0 12px; }
#wp-guide .wpg-card-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 8px; }
#wp-guide .wpg-card-desc { font-size: 0.84rem; color: var(--text-body); line-height: 1.6; }

/* ========== 3. Xserver Reasons ========== */
#wp-guide .wpg-xserver { background: var(--bg-section); }
#wp-guide .wpg-reason-list { max-width: 640px; margin: 0 auto; }
#wp-guide .wpg-reason-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
#wp-guide .wpg-reason-item:last-child { border-bottom: none; }
#wp-guide .wpg-reason-check { color: var(--primary); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
#wp-guide .wpg-reason-item strong { color: var(--text-dark); font-size: 0.95rem; display: block; margin: 0 0 4px; }
#wp-guide .wpg-reason-item p { font-size: 0.84rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ========== 4 & 5. Steps ========== */
#wp-guide .wpg-steps { background: var(--bg-white); }
#wp-guide .wpg-install { background: var(--bg-section); }
#wp-guide .wpg-step-list { max-width: 640px; margin: 0 auto; }
#wp-guide .wpg-step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e2e8f0; }
#wp-guide .wpg-step:last-child { border-bottom: none; }
#wp-guide .wpg-step-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--primary); color: #fff !important; font-size: 0.9rem; font-weight: 700; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
#wp-guide .wpg-step-content h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; line-height: 1.4; }
#wp-guide .wpg-step-content p { font-size: 0.88rem; color: var(--text-body); margin: 0 0 8px; line-height: 1.6; }
#wp-guide .wpg-step-content code { background: var(--primary-pale); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; font-size: 0.85em; }
#wp-guide .wpg-step-link { display: inline-block; font-size: 0.85rem; color: var(--primary); font-weight: 600; margin: 4px 0 0; }
#wp-guide .wpg-step-link:hover { text-decoration: underline; }
#wp-guide .wpg-step-img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 12px 0 0; display: block; }

/* ========== CTA --- */
#wp-guide .wpg-cta-mid { text-align: center; margin: 32px 0 0; }
#wp-guide .wpg-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; font-size: 1rem; font-weight: 700; padding: 14px 36px; border-radius: 100px; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4); transition: transform 0.2s, box-shadow 0.2s; }
#wp-guide .wpg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5); }
#wp-guide .wpg-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-white); color: var(--primary) !important; font-size: 0.95rem; font-weight: 600; padding: 12px 28px; border-radius: 100px; border: 2px solid var(--primary-pale); transition: background 0.2s; }
#wp-guide .wpg-btn-secondary:hover { background: var(--primary-pale); }
#wp-guide .wpg-cta-note { font-size: 0.78rem; color: var(--text-light); margin: 10px 0 0; text-align: center; }

/* ========== 6. Final ========== */
#wp-guide .wpg-final { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
#wp-guide .wpg-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; }
#wp-guide .wpg-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: wpgFloat 3s ease-in-out infinite; }
#wp-guide .wpg-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; }
#wp-guide .wpg-final-speech p { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
#wp-guide .wpg-final-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: #fff; margin: 0 0 24px; }
#wp-guide .wpg-final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#wp-guide .wpg-final-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 20px 0 0; }
#wp-guide .wpg-final-note a { color: rgba(255,255,255,0.8); text-decoration: underline; }
#wp-guide .wpg-final .wpg-voice-btn { background: rgba(255,255,255,0.15); color: #fff !important; border-color: rgba(255,255,255,0.3); }

/* ========== Animations ========== */
#wp-guide .wpg-animate { opacity: 0; transition: none; }
#wp-guide .wpg-animate.animated { animation-duration: 0.8s; animation-fill-mode: both; animation-timing-function: ease-out; }
#wp-guide .wpg-fade-up.animated { animation-name: wpgFadeUp; }
#wp-guide .wpg-delay-100 { animation-delay: 0.1s; }
#wp-guide .wpg-delay-200 { animation-delay: 0.2s; }
#wp-guide .wpg-delay-300 { animation-delay: 0.3s; }

@keyframes wpgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wpgFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  #wp-guide .wpg-section { padding: 56px 0; }
  #wp-guide .wpg-hero { padding: 56px 0 48px; }
  #wp-guide .wpg-three-cards { grid-template-columns: 1fr; gap: 14px; }
  #wp-guide .wpg-final { padding: 56px 0; }
}
@media (max-width: 600px) {
  #wp-guide .wpg-section { padding: 40px 0; }
  #wp-guide .wpg-container { padding: 0 16px; }
  #wp-guide .wpg-hero { padding: 40px 0 36px; }
  #wp-guide .wpg-hero-avatar { width: 72px; height: 72px; }
  #wp-guide .wpg-speech-row { flex-direction: column; text-align: center; }
  #wp-guide .wpg-speech-bubble { border-radius: 14px; }
  #wp-guide .wpg-final-btns { flex-direction: column; align-items: center; }
}
