/**
 * LP AI×LINE Detail Page Styles
 *
 * 導入前の内容確認ページ（メインLPと統一デザイン）
 */

/* ==========================================================================
   CSS Variables (メインLPと共通)
   ========================================================================== */
:root {
    --lpd-primary: #0066FF;
    --lpd-primary-light: #3d8bfd;
    --lpd-primary-dark: #0052cc;
    --lpd-accent: #06C755;
    --lpd-accent-light: #2dd36f;
    --lpd-text-primary: #1a1a2e;
    --lpd-text-secondary: #4a5568;
    --lpd-text-muted: #718096;
    --lpd-bg-primary: #ffffff;
    --lpd-bg-secondary: #f8fafc;
    --lpd-bg-tertiary: #f1f5f9;
    --lpd-border: #e2e8f0;
    --lpd-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --lpd-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --lpd-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --lpd-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --lpd-warning: #f59e0b;
    --lpd-danger: #ef4444;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html.lp-ai-line-detail-page,
body.lp-ai-line-detail-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    scroll-behavior: smooth;
}

body.lp-ai-line-detail-page {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--lpd-text-primary);
    background: var(--lpd-bg-primary);
    overflow-x: hidden;
}

#lpd-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#lpd-main *,
#lpd-main *::before,
#lpd-main *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.lpd-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lpd-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.lpd-header {
    min-height: 50vh;
    background: linear-gradient(180deg, var(--lpd-bg-secondary) 0%, var(--lpd-bg-primary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

.lpd-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(6, 199, 85, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.lpd-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lpd-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
}

.lpd-header-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lpd-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.lpd-badge-warning svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.lpd-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--lpd-text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.lpd-header-desc {
    font-size: 1.1rem;
    color: var(--lpd-text-secondary);
    margin-bottom: 24px;
    line-height: 1.9;
}

.lpd-header-note {
    display: inline-block;
    background: var(--lpd-bg-tertiary);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--lpd-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.lpd-section {
    padding: 100px 24px;
    position: relative;
}

.lpd-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lpd-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.lpd-section-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--lpd-primary), var(--lpd-accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-section-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.lpd-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lpd-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(6, 199, 85, 0.08) 100%);
    border-radius: 20px;
}

.lpd-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--lpd-text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */
.lpd-capabilities {
    background: var(--lpd-bg-secondary);
}

.lpd-cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lpd-cap-card {
    background: var(--lpd-bg-primary);
    border: 1px solid var(--lpd-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.lpd-cap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.lpd-cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.lpd-cap-card.can::before {
    background: linear-gradient(90deg, var(--lpd-accent), #34d399);
}

.lpd-cap-card.can:hover {
    box-shadow: 0 20px 40px rgba(6, 199, 85, 0.12);
}

.lpd-cap-card.cannot::before {
    background: linear-gradient(90deg, var(--lpd-danger), #f87171);
}

.lpd-cap-card.cannot:hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
}

.lpd-cap-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.lpd-cap-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-cap-icon svg {
    width: 28px;
    height: 28px;
}

.lpd-cap-card.can .lpd-cap-icon {
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.15), rgba(6, 199, 85, 0.05));
}

.lpd-cap-card.can .lpd-cap-icon svg {
    fill: var(--lpd-accent);
}

.lpd-cap-card.cannot .lpd-cap-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.lpd-cap-card.cannot .lpd-cap-icon svg {
    fill: var(--lpd-danger);
}

.lpd-cap-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lpd-text-primary);
    margin: 0;
}

.lpd-cap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lpd-cap-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--lpd-text-secondary);
    border-bottom: 1px solid var(--lpd-border);
    font-size: 1rem;
}

.lpd-cap-list li:last-child {
    border-bottom: none;
}

.lpd-cap-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.lpd-cap-card.can .lpd-cap-list li::before {
    background-color: var(--lpd-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.lpd-cap-card.cannot .lpd-cap-list li::before {
    background-color: var(--lpd-danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.lpd-flow {
    background: var(--lpd-bg-primary);
}

.lpd-flow-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.lpd-flow-cards::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--lpd-border);
}

.lpd-flow-card {
    background: var(--lpd-bg-primary);
    border: 1px solid var(--lpd-border);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.lpd-flow-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lpd-shadow-lg);
    border-color: var(--lpd-primary);
}

.lpd-flow-number {
    width: 56px;
    height: 56px;
    background: var(--lpd-bg-primary);
    border: 2px solid var(--lpd-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lpd-primary);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.lpd-flow-card:hover .lpd-flow-number {
    background: var(--lpd-primary);
    color: white;
}

.lpd-flow-text {
    color: var(--lpd-text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.lpd-flow-note {
    text-align: center;
    margin-top: 48px;
    padding: 20px;
    background: var(--lpd-bg-tertiary);
    border-radius: 12px;
    color: var(--lpd-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Fit Section
   ========================================================================== */
.lpd-fit {
    background: var(--lpd-bg-secondary);
}

.lpd-fit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lpd-fit-card {
    background: var(--lpd-bg-primary);
    border: 1px solid var(--lpd-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.lpd-fit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.lpd-fit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.lpd-fit-card.good::before {
    background: linear-gradient(90deg, var(--lpd-accent), #34d399);
}

.lpd-fit-card.good {
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}

.lpd-fit-card.good:hover {
    border-color: rgba(6, 199, 85, 0.3);
}

.lpd-fit-card.caution::before {
    background: linear-gradient(90deg, var(--lpd-warning), #fbbf24);
}

.lpd-fit-card.caution {
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.lpd-fit-card.caution:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.lpd-fit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.lpd-fit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-fit-icon svg {
    width: 28px;
    height: 28px;
}

.lpd-fit-card.good .lpd-fit-icon {
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.15), rgba(6, 199, 85, 0.05));
}

.lpd-fit-card.good .lpd-fit-icon svg {
    fill: var(--lpd-accent);
}

.lpd-fit-card.caution .lpd-fit-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
}

.lpd-fit-card.caution .lpd-fit-icon svg {
    fill: var(--lpd-warning);
}

.lpd-fit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lpd-text-primary);
    margin: 0;
}

.lpd-fit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lpd-fit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    color: var(--lpd-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.lpd-fit-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.lpd-fit-card.good .lpd-fit-list li::before {
    background: var(--lpd-accent);
}

.lpd-fit-card.caution .lpd-fit-list li::before {
    background: var(--lpd-warning);
}

/* ==========================================================================
   Online Section
   ========================================================================== */
.lpd-online {
    background: var(--lpd-bg-primary);
}

.lpd-online-content {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 50%, #fff8e1 100%);
    border: 1px solid var(--lpd-border);
    border-radius: 28px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.lpd-online-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.lpd-online-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--lpd-primary), var(--lpd-accent));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.lpd-online-icon svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.lpd-online-quotes {
    margin-bottom: 28px;
}

.lpd-online-quote {
    display: inline-block;
    background: var(--lpd-bg-primary);
    border: 1px solid var(--lpd-border);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--lpd-text-secondary);
    font-size: 0.9rem;
    margin: 5px;
}

.lpd-online-main {
    font-size: 1.3rem;
    color: var(--lpd-text-primary);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.8;
}

.lpd-online-main span {
    background: linear-gradient(135deg, var(--lpd-primary), var(--lpd-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lpd-online-notes {
    color: var(--lpd-text-muted);
    font-size: 0.9rem;
}

.lpd-online-notes p {
    margin: 0 0 4px 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.lpd-cta-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 50%, #fff8e1 100%);
    position: relative;
    text-align: center;
    padding: 100px 24px;
    overflow: hidden;
}

.lpd-cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.lpd-cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 199, 85, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.lpd-cta-content {
    position: relative;
    z-index: 10;
}

.lpd-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.lpd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.lpd-btn-primary {
    background: linear-gradient(135deg, var(--lpd-primary) 0%, var(--lpd-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35), 0 2px 6px rgba(0, 102, 255, 0.2);
}

.lpd-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4), 0 4px 10px rgba(0, 102, 255, 0.2);
}

.lpd-btn-primary svg {
    width: 20px;
    height: 20px;
}

.lpd-btn-secondary {
    background: linear-gradient(135deg, var(--lpd-accent) 0%, var(--lpd-accent-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35), 0 2px 6px rgba(6, 199, 85, 0.2);
}

.lpd-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4), 0 4px 10px rgba(6, 199, 85, 0.2);
}

.lpd-btn-tertiary {
    background: var(--lpd-bg-primary);
    color: var(--lpd-text-primary);
    border: 2px solid var(--lpd-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lpd-btn-tertiary:hover {
    border-color: var(--lpd-primary);
    color: var(--lpd-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.lpd-footer {
    background: var(--lpd-bg-primary);
    border-top: 1px solid var(--lpd-border);
    color: var(--lpd-text-muted);
    text-align: center;
    padding: 40px 24px;
    font-size: 0.9rem;
}

.lpd-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lpd-footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--lpd-primary), var(--lpd-accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-footer-logo-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.lpd-footer-logo span {
    font-weight: 600;
    color: var(--lpd-text-primary);
}

.lpd-footer p {
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .lpd-flow-cards::before {
        display: none;
    }
}

@media (max-width: 800px) {
    .lpd-flow-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .lpd-cap-grid,
    .lpd-fit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lpd-section {
        padding: 80px 20px;
    }

    .lpd-cap-card,
    .lpd-fit-card {
        padding: 28px;
    }

    .lpd-online-content {
        padding: 40px 24px;
    }

    .lpd-btn {
        width: 100%;
        padding: 16px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    .lpd-flow-cards {
        grid-template-columns: 1fr;
    }
}
