/* 目次のボタンスタイル */
.click_solution_contents {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4da6b6;
    padding: 16px;
    border-radius: 5px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.click_solution_contents:hover {
    background-color: #3b8f99;
}

/* メニューリストのデフォルト状態は非表示 */
.custom-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* メニューが開いた時のスタイル */
.custom-menu.open {
    max-height: 1000px; /* 必要に応じて十分な高さを設定 */
}

/* メニュー項目のリンクのスタイル */
.custom-menu li {
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sub-menu {
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: #2CA6B5;
}

.menu-number {
    margin-right: 10px;
    font-weight: bold;
}

/* リンクのスタイル */
.custom-menu li a {
    display: block;
    padding: 10px;
    width: 100%;
    text-decoration: none;
    color: #2CA6B5;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.custom-menu li:hover, .custom-menu li a:hover {
    background-color: #007BFF;
    color: #fff;
}

/* 矢印アイコンのスタイル */
.material-symbols-outlined {
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* アンカーの位置を調整するためのスタイル */
.anchor {
    display: block;
    position: relative;
    height: 0;
    visibility: hidden;
}