/*
 * Table of Contents Styles
 *
 * 目的: ブログ記事ページの目次デザイン
 * プラグイン: Table of Contents Plus (TOC+)
 * 適用ページ: single-blog.php
 * 作成日: 2026.01.14
 */

/* entry-contentのスタイルをリセット */
.entry-content #toc_container,
.entry-content #toc_container * {
    all: revert;
}

.entry-content #toc_container {
    width: 100%;
    max-width: 565px;
    padding: 22px 35px;
    border: 1px solid #D9D9D9;
    background: #F7F7F7;
    margin: 50px auto;
    box-sizing: border-box;
}

.entry-content #toc_container .toc_title {
    color: #000;
    font-family: "Noto Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}

.entry-content #toc_container .toc_title a {
    color: #59A3E8;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.entry-content #toc_container .toc_title a:hover {
    text-decoration: underline;
}

.entry-content #toc_container .toc_brackets {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.entry-content #toc_container .toc_list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.entry-content #toc_container .toc_list li {
    padding-left: 35px;
    margin: 7px 0 0;
    line-height: 1.5;
    position: relative;
    counter-increment: toc-counter;
}

.entry-content #toc_container .toc_list li:first-of-type {
    margin: 12px 0 0;
}

.entry-content #toc_container .toc_list li::before {
    content: counter(toc-counter);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(10%);
    font-family: "Maven Pro", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.entry-content #toc_container .toc_list li a {
    color: #59A3E8;
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.entry-content #toc_container .toc_list li a:hover {
    text-decoration: underline;
}

/* responsive */
@media screen and (max-width: 750px) {
    .entry-content #toc_container {
        width: 100%;
        max-width: 100%;
        padding: 6.67vw 8vw 5.33vw 5.33vw;
        margin: 8vw auto;
    }

    .entry-content #toc_container .toc_title {
        font-size: 4.27vw;
    }

    .entry-content #toc_container .toc_title a {
        font-size: 4.27vw;
    }

    .entry-content #toc_container .toc_brackets {
        font-size: 4.27vw;
    }

    .entry-content #toc_container .toc_list li {
        font-size: 4.27vw;
        padding-left: 6.67vw;
        margin: 1.6vw 0 0;
    }

    .entry-content #toc_container .toc_list li:first-of-type {
        margin: 3.2vw 0 0;
    }

    .entry-content #toc_container .toc_list li::before {
        transform: translateY(0);
        font-size: 4.27vw;
    }

    .entry-content #toc_container .toc_list li a {
        font-size: 4vw;
    }
}