/* ================================================================
   SEO Apex — フロントエンドスタイル
   .seo-apex-article 内のすべての要素に適用
   ================================================================ */

.seo-apex-article {
    font-size: 16px;
    line-height: 1.9;
    color: #1d2327;
}

/* ── 見出し ──────────────────────────────────────────────────── */
.seo-apex-article h2 {
    font-size: 22px;
    font-weight: 700;
    border-left: 5px solid #2271b1;
    background: #f0f6fc;
    padding: 12px 18px;
    margin: 48px 0 20px;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.seo-apex-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
    border-bottom: 2px solid #dce8f8;
    padding-bottom: 6px;
    margin: 32px 0 14px;
}

.seo-apex-article p {
    margin-bottom: 16px;
}

.seo-apex-article ul,
.seo-apex-article ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.seo-apex-article li {
    margin-bottom: 6px;
}

/* ── ポイントボックス（緑）────────────────────────────────────── */
.apex-point-box {
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-left: 5px solid #00a32a;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 28px 0;
}

.apex-point-box .apex-box-title {
    color: #1b5e20;
}

/* ── 警告ボックス（オレンジ）────────────────────────────────── */
.apex-warning-box {
    background: #fff8e1;
    border: 1px solid #ffca28;
    border-left: 5px solid #f57c00;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 28px 0;
}

.apex-warning-box .apex-box-title {
    color: #e65100;
}

/* ── 情報ボックス（青）──────────────────────────────────────── */
.apex-info-box {
    background: #e3f2fd;
    border: 1px solid #64b5f6;
    border-left: 5px solid #1976d2;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 28px 0;
}

.apex-info-box .apex-box-title {
    color: #0d47a1;
}

/* 共通ボックスタイトル */
.apex-box-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

/* ── ステップ図 ─────────────────────────────────────────────── */
.apex-step-flow {
    margin: 28px 0;
    counter-reset: apex-step;
}

.apex-step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 16px 20px;
    position: relative;
    counter-increment: apex-step;
    margin-bottom: 36px;
}

/* 自動採番 */
.apex-step-item::before {
    content: counter(apex-step);
    background: #2271b1;
    color: #fff;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* 矢印を自動生成 */
.apex-step-item:not(:last-child)::after {
    content: '▼';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #2271b1;
    font-size: 16px;
}

/* ── 比較表 ─────────────────────────────────────────────────── */
.apex-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.apex-compare-table th {
    background: #2271b1;
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
}

.apex-compare-table th:first-child {
    background: #1a5a96;
}

.apex-compare-table td {
    padding: 11px 16px;
    border: 1px solid #dce8f8;
    text-align: center;
    vertical-align: middle;
}

.apex-compare-table tr:nth-child(even) td {
    background: #f7f9ff;
}

.apex-compare-table td:first-child {
    font-weight: 600;
    text-align: left;
    background: #f0f6fc;
}

/* ── チェックリスト ─────────────────────────────────────────── */
.apex-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.apex-checklist li {
    padding: 10px 12px 10px 44px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.apex-checklist li:last-child {
    border-bottom: none;
}

.apex-checklist li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #00a32a;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ── FAQセクション ──────────────────────────────────────────── */
.apex-faq-section {
    margin: 36px 0;
}

.apex-faq-section > h2 {
    margin-bottom: 20px;
}

.apex-faq-item {
    border: 1px solid #dce8f8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.apex-faq-q {
    background: #f0f6fc;
    padding: 14px 20px 14px 56px;
    font-weight: 700;
    color: #1d2327;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.apex-faq-q::before {
    content: 'Q';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #2271b1;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.apex-faq-a {
    padding: 14px 20px 14px 56px;
    background: #fff;
    border-top: 1px solid #dce8f8;
    color: #444;
    line-height: 1.8;
    position: relative;
    font-size: 15px;
}

.apex-faq-a::before {
    content: 'A';
    position: absolute;
    left: 16px;
    top: 18px;
    background: #00a32a;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* ── モバイル対応 ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .seo-apex-article h2 { font-size: 18px; }
    .seo-apex-article h3 { font-size: 16px; }
    .apex-compare-table  { font-size: 13px; }
    .apex-compare-table th,
    .apex-compare-table td { padding: 8px 10px; }
    .apex-step-item { padding: 12px 16px; }
}
