/* ===========================================
   DF Guide TOC - 記事内 自動目次
   /wp-content/plugins/df-guide-search/assets/guide-toc.css
   =========================================== */

.df-guide-toc {
    background: #fff8ea;
    border: 2px solid #333;
    border-radius: 0;
    padding: 0 0 14px;
    margin: 8px 0 32px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.df-guide-toc-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    padding: 12px 18px;
    background-color: #ffc107;
    border-bottom: 2px solid #333;
    overflow: hidden;
    background-image:
        linear-gradient(125deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.34) 22%, transparent 22.5%),
        linear-gradient(to bottom, transparent 80%, rgba(0,0,0,.16) 80%, rgba(0,0,0,.16) 100%);
    background-repeat: no-repeat;
}

.df-guide-toc-en {
    font-family: "Archivo", sans-serif;
    font-weight: 900;
    font-size: clamp(16px, 2.6vw, 20px);
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #333;
    line-height: 1;
}

.df-guide-toc-ja {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .1em;
    color: #333;
    opacity: .8;
}

.df-guide-toc-list {
    list-style: none !important;
    margin: 0;
    padding: 0 18px;
    counter-reset: df-guide-toc-counter;
}

.df-guide-toc-list li {
    counter-increment: df-guide-toc-counter;
    border-top: 1px dashed #e2c98a;
    list-style: none !important;
    list-style-type: none !important;
}

.df-guide-toc-list li::marker {
    content: "";
}

.df-guide-toc-list li:first-child {
    border-top: none;
}

.df-guide-toc-list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 2px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.df-guide-toc-list a::before {
    content: counter(df-guide-toc-counter, decimal-leading-zero);
    flex: 0 0 auto;
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #ffc107;
    -webkit-text-stroke: 0.5px #333;
}

.df-guide-toc-list a:hover {
    color: #a35a00;
    text-decoration: underline;
}

/* offset anchored scroll position so headings don't hide under a sticky header.
   90px is a starting estimate — if headings still land partly under the site
   header after clicking a TOC link, increase this value to match the header's
   actual height. */
h2[id] {
    scroll-margin-top: 90px;
}
