/* 自動目次用のスタイル */
.custom-toc {
    background-color: #ffffff;
    border: 2px solid #555555;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-sizing: border-box !important;
    width: 100%;
    overflow: hidden;
    /* 万が一のはみ出しも隠すか改行させる */
}

.custom-toc * {
    box-sizing: border-box !important;
}

.custom-toc .toc-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.custom-toc ul {
    width: 100% !important;
}

.custom-toc ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.custom-toc ul li {
    margin-bottom: 12px;
    position: relative;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100%;
    display: block;
}

.custom-toc ul li:last-child {
    margin-bottom: 0;
}

.custom-toc ul li a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    max-width: 100%;
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.5;
}

.custom-toc ul li a:hover {
    text-decoration: underline;
    color: #0073aa;
}

/* JSスムーススクロール対応用アンカー */
.toc-anchor {
    display: block;
    position: relative;
    top: -120px;
    /* PC用：ヘッダーの高さ分上にずらす */
    visibility: hidden;
}

/* スマホ表示での調整 */
@media screen and (max-width: 768px) {
    .custom-toc {
        padding: 15px;
        margin: 20px 0;
    }

    /* ジャンプ位置調整（スマホ用） */
    .toc-anchor {
        top: -80px;
        /* スマホ用：ヘッダーの高さ分上にずらす */
    }
}

.header h1,
.header .h_txt {
    font-size: 95%;
    color: #000;
    margin-bottom: 5px;
}

@media(max-width:768px) {

    .header h1,
    .header .h_txt {
        font-size: 80%;
        color: #000;
        margin-bottom: 5px;
    }
}