/* ============================================================
   EFG Blog Style - 2026.04.17 Master Edition (Final-Fixed)
   ============================================================ */

/* 1. 記事全体のコンテナ・基本設定 */
article {
    line-height: 1.8;
    color: #333;
    word-break: break-all;
}

/* 2. テキスト要素（見出し・段落・引用） */
article h2 {
    font-size: 1.5rem;
    border-left: 6px solid #000;
    padding: 0.2em 0.8em;
    margin: 2.5em 0 1.2em;
}

article h3 {
    font-size: 1.25rem;
    margin: 2em 0 1em;
    display: flex;
    align-items: center;
}

article h3::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #000;
    margin-right: 10px;
}

article p {
    margin: 0 0 2em;
}

article blockquote {
    margin: 2.5em 0;
    padding: 1.5em;
    border-left: 4px solid #ccc;
    background: #fcfcfc;
    font-style: italic;
}

/* 3. 標準リスト（箇条書き） */
article ul, article ol {
    padding-left: 1.5em;
    margin-bottom: 2em;
}

article ul { list-style-type: disc; }
article ol { list-style-type: decimal; }

article li { margin-bottom: 0.5em; }

article li > ul, 
article li > ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* 4. メディア（画像・図解） */
article figure {
    margin: 2.5em 0;
    padding: 0;
    text-align: center;
}

article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

article figcaption {
    margin-top: 0.8em;
    font-size: 0.85rem;
    color: #666;
}

article .double-container {
    gap: 2rem;
}

/* 5. 特殊リスト：チェックリスト（本文内・黒デザイン） */
.point-list-container {
    margin: 2.5em 0;
    border: 2px solid #000;
}

.point-list-header {
    background: #000;
    color: #fff;
    padding: 0.5em 1em;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.point-list {
    list-style: none;
    padding: 0.8em 0 0 0;
    margin: 0;
}

.point-list li {
    position: relative;
    padding: 1em 1em 1em 3.5em;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
    font-weight: bold;
}

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

.point-list li::before {
    content: "";
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #000;
}

.point-list li::after {
    content: "";
    position: absolute;
    left: calc(1em + 6px);
    top: calc(50% - 2px);
    width: 10px;
    height: 5px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
}

/* 6. 特殊リスト：ステップタイムライン */
.step-container {
    margin: 3em 0;
    padding: 0;
    list-style: none;
}

.step-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 2.5em;
}

.step-item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 30px;
    width: 2px;
    height: 85%;
    background-color: #bbb; 
}

.step-item:last-child::before { display: none; }

.step-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-color: #000;
    border-radius: 50%;
    z-index: 1;
}

.step-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 0.5em;
}

.step-title {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.8em;
}

.step-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    border-bottom: 1px dotted #bbb;
    padding-bottom: 1.5em;
}

/* 7. 記事冒頭のまとめ（青デザイン） */
.summary-container {
    margin: 2.5em 0;
    padding: 1.5em 2em;
    background-color: #e8f2ff; /* 背景の青を強化 */
    border: 1px solid #0066ff; /* はっきりした青の太枠 */
    border-radius: 8px;
}

.summary-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #0066ff;
    margin-bottom: 1.2em;
    font-size: 1.2rem;
}

.summary-title::before {
    content: "💡";
    margin-right: 12px;
}

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

.summary-list li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 1em;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.summary-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #0066ff;
    font-size: 0.9em;
    top: 0.1em;
}

/* 8. FAQ（青デザイン） */
.box.info {
    margin: 2.5em 0;
    padding: 1.5em 2em;
    background-color: #e8f2ff; /* まとめと共通の青 */
    border: 1px solid #0066ff; /* まとめと共通の太枠 */
    border-radius: 8px;
}

.box.info strong {
    display: block;
    color: #0066ff;
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

/* 9. 注意ボックス・テーブル */
.box.caution {
    background-color: #fff5f5;
    border-color: #ff4d4f;
    color: #b91c1c;
    padding: 1.2em;
    margin: 2em 0;
    border-radius: 4px;
    border: 1px solid;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95rem;
}

article th {
    background: #e8e8e8;
    font-weight: bold;
}

article th, article td {
    border: 1px solid #ddd;
    padding: 1em;
}

/* 10. テクニカル：コードブロック */
article pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 1.5em;
    overflow-x: auto;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    margin: 2em 0;
    line-height: 1.5;
}

.token.comment { color: #7f848e; font-style: italic; }
.token.punctuation { color: #abb2bf; }
.token.string { color: #98c379; }
.token.number { color: #d19a66; }
.token.operator { color: #56b6c2; }
.token.keyword { color: #c678dd; font-weight: bold; }
.token.function { color: #61afef; }
.token.class-name { color: #e5c07b; }
.token.selector { color: #e06c75; }
.token.property { color: #abb2bf; }
.token.tag { color: #e06c75; }
.token.attr-name { color: #d19a66; }
.token.attr-value { color: #98c379; }

/* 11. CTAエリア */
.cta-container {
    margin: 4em 0 2em;
    padding: 3em 2em;
    border: 3px solid #004bb1;
    background-color: #f0f7ff;
    text-align: center;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #004bb1;
    margin-bottom: 1em;
}

.cta-button {
    display: inline-block;
    background-color: #004bb1;
    color: #fff;
    padding: 1.2em 3em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #003580;
    transform: translateY(-2px);
}

/* スマホ対応・その他 */
article > *:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .cta-container { padding: 2em 1em; }
    .cta-title { font-size: 1.3rem; }
}