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

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

/* 本文エリア（bodyフィールド）だけを狙って幅を制限する */
article .field--name-body {
    max-width: 900px;      
    padding-right: 30px;   /* スマホ表示やサイドバーとの間に余白を持たせる */
    box-sizing: border-box;
}

/* 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: 1px 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;
    margin: 0;
}

.point-list li {
    position: relative;
    margin: 0;
    padding: 0.6em 1em 0.6em 3.5em;
    border-bottom: none;
    line-height: 1.3;
    font-weight: bold;
}

.point-list li:first-child {
    margin-top: 0.8em;
}

.point-list li:last-child {
    margin-bottom: 0.9em;
    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: 2em 0;
    padding: 1.2em;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    color: #333;
    box-sizing: border-box;
}

.box.info strong {
    display: block;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

.box.info p:last-child {
    margin-bottom: 0;
}

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

.box.caution strong {
    display: block;
    color: #b91c1c;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

.box.caution p:last-child {
    margin-bottom: 0;
}

/* テーブル */
article table {
    width: 100%;
    border-collapse: collapse !important;
    margin: 2em 0;
    font-size: 0.95rem;
    border: 1px solid #999 !important;
}

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

article th,
article td {
    border: 1px solid #999 !important;
    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: 3.5em 2em;
    border: 1px solid #111;
    background-color: #111;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

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

.cta-description {
    margin-bottom: 2em;
    color: #d6d6d6 !important;
    font-size: 1rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2em !important;
    padding: 1em 3em !important;
    border: 1px solid #44ebff !important;
    background: #44ebff !important;
    color: #001014 !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    filter: none !important;
    box-sizing: border-box !important;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.cta-button:hover {
    background: #7af2ff !important;
    border-color: #7af2ff !important;
    color: #001014 !important;
    transform: translateY(-2px);
}

.cta-button::after {
    content: "";
    display: block;
    width: 34px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 18'%3E%3Cpath d='M1 9h28M21 2l8 7-8 7' fill='none' stroke='%23001014' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

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

/* ============================================================
   EFG Blog Layout Fix (Master Edition)
   本体幅ジャスト ＋ タイトル全幅 ＋ 2本線メタバー (時計/日付/SNS)
   ============================================================ */

/* 1. タイトルと本文を包む左カラムの枠組みを透過（展開）させる */
.page-node-type-article .left-col {
    display: contents !important;
}

/* 2. 親の .container 幅（本体幅）いっぱいに広げる Grid レイアウト */
.page-node-type-article .section-main.double-container {
    display: grid !important;
    /* 左側（本文エリア）/ 右側（サイドバー：400px） */
    grid-template-columns: 1fr 400px !important;
    gap: 32px 60px !important;
    width: 100% !important;
    max-width: none !important; /* 本体のコンテナ幅に完全フィット */
    margin: 0 !important;
}

/* 3. タイトル＆メタバー枠：タイトル下に2本線 */
.page-node-type-article .field-news-title-wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    row-gap: 0 !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
}

/* 4. タイトル文字本体 */
.page-node-type-article .field--name-title {
    flex: 0 0 100% !important;
    width: 100% !important;
    display: block !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #111111 !important;
    padding-top: 8px !important;
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* 5. メタバー左側：時計アイコン＋公開日 */
.page-node-type-article .field-news-title-wrap::before {
    content: "2026.04.17" !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 54px !important;
    padding-left: 24px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18' viewBox='0 -960 960 960' width='18' fill='%23666666'%3E%3Cpath d='m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E") no-repeat left center !important;
    color: #555555 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}


/* 6. 本文エリア：左配置 ＋ 最大幅制限 (ご指定の900px) */
.page-node-type-article .field-news-body-wrap {
    grid-column: 1 !important;
    max-width: 900px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* 7. 関連記事（右サイドバー）：本体の右端配置 (ご指定の400px) */
.page-node-type-article .right-col {
    grid-column: 2 !important;
    width: 100% !important;
}

.page-node-type-article .right-col h2 {
    margin-top: 0 !important;
}