/* ==============================
   JAN-ASIN LP - Article Styles
   ============================== */

.article-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.article-header {
    margin-bottom: 48px;
    text-align: center;
}

.article-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: break-all;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 64px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
    color: var(--text-dark);
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    color: var(--text-dark);
}

.article-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 24px;
    color: var(--text-mid);
}

.article-content ul,
.article-content ol {
    margin-bottom: 32px;
    padding-left: 28px;
    color: var(--text-mid);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 32px 0;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
}

/* 強調ボックス */
.article-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 32px 0;
}

.article-box-title {
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.article-box-title .material-symbols-outlined {
    color: var(--primary);
}

.article-box p:last-child,
.article-box ul:last-child {
    margin-bottom: 0;
}

/* 記事下CTA */
.article-cta {
    margin-top: 80px;
    background: linear-gradient(135deg, #137fec 0%, #0a4f96 100%);
    border-radius: var(--radius-2xl);
    padding: 48px 32px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.article-cta h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    border: none;
    margin: 0 0 16px;
    padding: 0;
}

.article-cta h3::after {
    display: none;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.article-cta-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.article-cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 999px;
}

.article-cta-feature .material-symbols-outlined {
    font-size: 18px;
    color: #ffd700;
}

.article-cta .btn-cta {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.article-cta .btn-cta:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

/* 前後記事へのナビゲーション */
.article-nav {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.article-nav h4 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.article-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.article-nav-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
}

.article-nav-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.article-nav-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.article-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
}

/* スマホ最適化 */
@media (max-width: 768px) {
    .article-container {
        padding: 96px 20px 64px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin: 48px 0 20px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
        margin: 32px 0 16px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-cta {
        padding: 40px 24px;
    }
    
    .article-cta h3 {
        font-size: 1.4rem;
    }
    
    .article-nav-links {
        grid-template-columns: 1fr;
    }
}
