/**
 * SEO コンテンツページ共通スタイル
 * 対象: blog / course / faq 等の長文SEO記事ページ
 */

.seo-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.85;
}

/* h1 - メインタイトル（バナー風） */
.seo-content h1 {
    font-size: 1.65rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    margin: 0 0 1.8rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* h2 - セクション見出し */
.seo-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 2.4rem 0 1rem;
    padding: 0.65rem 0 0.65rem 0.95rem;
    border-left: 5px solid #dc2626;
    background: #fef2f2;
    border-radius: 0 6px 6px 0;
}

/* h3 - 小見出し */
.seo-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #dc2626;
    margin: 1.6rem 0 0.7rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px dotted #fca5a5;
}

/* 段落 */
.seo-content p {
    margin: 0 0 1rem;
    line-height: 1.85;
    color: #374151;
}

/* リスト */
.seo-content ul,
.seo-content ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}
.seo-content li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
    color: #374151;
}
.seo-content ul li::marker {
    color: #dc2626;
}
.seo-content ol li::marker {
    color: #dc2626;
    font-weight: 700;
}

/* 強調 */
.seo-content strong {
    color: #dc2626;
    font-weight: 700;
}

/* リンク */
.seo-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.seo-content a:hover {
    color: #dc2626;
}

/* テーブル */
.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.88rem;
}
.seo-content table th {
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-bottom: 2px solid #0f172a;
}
.seo-content table td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #374151;
}
.seo-content table tr:last-child td {
    border-bottom: none;
}
.seo-content table tr:nth-child(even) td {
    background: #fafafa;
}

/* CTA ボックス */
.seo-content .cta-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}
.seo-content .cta-box h3 {
    color: #dc2626;
    margin: 0 0 0.8rem;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.15rem;
}
.seo-content .cta-box p {
    margin: 0.4rem 0;
    line-height: 1.85;
}
.seo-content .cta-box a {
    color: #dc2626;
    font-weight: 700;
    text-decoration: none;
}
.seo-content .cta-box a:hover {
    text-decoration: underline;
}

/* 例ボックス */
.seo-content .example-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 0.9rem 1.1rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0 1.5rem;
}
.seo-content .example-box p {
    margin: 0.5rem 0;
}
.seo-content .example-box p:first-child {
    margin-top: 0;
}
.seo-content .example-box p:last-child {
    margin-bottom: 0;
}

/* div ベースのコンテナレイアウト用 */
.seo-content > p:first-of-type {
    font-size: 1rem;
    color: #4b5563;
    background: #f8fafc;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #94a3b8;
    margin-bottom: 1.8rem;
}

/* 横スクロール対応（テーブルが大きい場合） */
@media (max-width: 600px) {
    .seo-content {
        padding: 1rem 0.6rem 3rem;
        font-size: 0.92rem;
    }
    .seo-content h1 {
        font-size: 1.35rem;
        padding: 1rem;
    }
    .seo-content h2 {
        font-size: 1.15rem;
    }
    .seo-content table {
        font-size: 0.82rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .seo-content table th,
    .seo-content table td {
        padding: 0.5rem 0.6rem;
    }
}

/* 英語ページ向け微調整（行間・フォント） */
.seo-content-en {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.75;
}
.seo-content-en h1 {
    line-height: 1.3;
}

/* FAQ スキーマ用：質問の視認性 */
.seo-content h3:first-letter {
    font-size: inherit;
}
