/*
 * Jetstream Auto TOC - Improved Stylesheet
 * Version: 10.0
 * Description: !important を削除し、テーマとの協調性を高めたスタイル。
 */

/* * メインコンテナのスタイル
 * .entry-content や .post-content は多くのテーマで使われる標準的なクラスです。
 * これにより、テーマのスタイルを不必要に上書きすることなく、目次にスタイルを適用します。
*/
.entry-content .auto_toc,
.post-content .auto_toc,
.article-content .auto_toc,
.page-content .auto_toc {
    background: #f0f8ff; /* より柔らかな色に変更 */
    padding: 20px 25px 25px;
    border: 1px solid #bce8f1;
    border-left: 5px solid #5bc0de;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 2em 0;
    color: #333;
}

/* 目次のタイトル */
.auto_toc .auto_toc_title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding: 0;
    color: #31708f;
    background: none; /* 背景色を削除しシンプルに */
    border: none;
}

/* 目次リストのスタイル */
.auto_toc ul {
    padding-left: 20px;
    margin: 0;
    list-style-type: disc;
    list-style-position: outside;
}

.auto_toc ul ul {
    margin-left: 20px;
    list-style-type: circle;
}

.auto_toc li {
    margin-bottom: 8px;
    padding-left: 0;
    color: #333;
    background-image: none;
}

.auto_toc li:last-child {
    margin-bottom: 0;
}

/* リンクのスタイル */
.auto_toc a {
    text-decoration: none;
    color: #31708f;
    transition: color 0.2s ease-in-out;
}

.auto_toc a:hover,
.auto_toc a:focus {
    color: #23527c;
    text-decoration: underline;
}