/* 目次のボタンスタイル */
.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;
}

/*カードボタン部分*/
/* カード型リンク全体のスタイル */
.custom-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    padding: 20px;
    max-width: 100%;
    margin: 20px auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* カードホバー時のエフェクト */
.custom-card:hover {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* カード内コンテンツのスタイル */
.custom-card-content {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 画像部分のスタイル */
.custom-card-img img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

/* テキスト部分のスタイル */
.custom-card-text b {
    font-size: 20px;
    color: #333;
}

.custom-card-text p {
    font-size: 18px;
    color: #666;
    margin-top: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
        text-align: center;
    }
    
    .custom-card-content {
        flex-direction: column; /* コンテンツ全体を縦並びに */
    }

    .custom-card-img img {
        width: 100%;
        margin: 0 0 20px 0; /* 画像下に余白 */
    }
    
    .custom-card-text {
        margin-top: 10px; /* テキスト部分を画像の下に配置 */
    }

    .task_contact img{
        display: none;
    }
}
