/* 記事内目次と現在地表示 */

body.single-post .article-content #toc_container {
    box-sizing: border-box;
    margin: 1.4em 0 1.8em;
    padding: 18px 22px 20px;
    border: 1px solid #e3dbc9;
    border-radius: 12px;
    background: #eee7da;
    color: #544b3c;
}

body.single-post .article-content #toc_container .toc_title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #544b3c;
}

body.single-post .article-content #toc_container .toc_title::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("../img/pig-1.svg") center / contain no-repeat;
    flex-shrink: 0;
}

body.single-post .article-content #toc_container > ul,
body.single-post .article-content #toc_container .toc_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-post .article-content #toc_container li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    line-height: 1.6;
}

body.single-post .article-content #toc_container li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    color: #7a7265;
    font-weight: 700;
}

body.single-post .article-content #toc_container li ul {
    margin-top: 4px;
    padding-left: 10px;
}

body.single-post .article-content #toc_container a {
    font-weight: 700;
    color: #5a5143;
    text-decoration: none;
}

body.single-post .article-content #toc_container a:hover {
    color: #433a2f;
    text-decoration: none;
}

@media (max-width: 767px) {
    body.single-post .article-content #toc_container {
        padding: 14px 16px 16px;
        border-radius: 10px;
    }

    body.single-post .article-content #toc_container .toc_title {
        font-size: 24px;
    }
}

/* ==========================================================================
   TOC Card + Active Highlight
   ========================================================================== */
.store-list {
    margin: 32px 0 40px;
    padding: 22px 20px 16px;
    background: var(--km-white);
    border: 1px solid var(--km-border);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(32, 32, 32, 0.08);
}

.store-list h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--km-text);
    background: #fff1d6;
    border-radius: 999px;
}

.store-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.store-list ul li {
    margin: 0;
}

.store-list ul li + li {
    border-top: 1px dashed var(--km-border-mid);
    padding-top: 6px;
}

.store-list a {
    position: relative;
    display: block;
    padding: 10px 12px 10px 18px;
    border-radius: 10px;
    color: var(--km-text);
    font-weight: 600;
    text-decoration: none;
}

.store-list li.is-active a::before,
.store-list a.is-active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 70%;
    transform: translateY(-50%);
    border-radius: 6px;
    background: var(--km-accent);
}

.article-content [id^="heading-"],
.heading-section [id^="heading-"] {
    scroll-margin-top: 120px;
}

@media (max-width: 900px) {
    .store-list {
        padding: 18px 16px 14px;
    }

    .store-list h2 {
        font-size: 16px;
    }

    .store-list a {
        font-size: 15px;
    }
}
