.history{
    width: calc(100% - 40px);
    margin-left: auto;

}

.history tr{
    display: flex;
    gap: 40px;
}

.history th{
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 180%;
    letter-spacing: 0.05em;
    width: 140px;
    border-top: 1px solid #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;

}

.history td{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 180%;
    letter-spacing: 0.05em;
    border-top: 1px solid #D9D9D9;
    display: flex;
    align-items: center;
    padding: 20px;
    width: calc(100% - 180px);
}

.history tr:nth-last-of-type(1) td{
    border-bottom: 1px solid #D9D9D9;
}

.history tr:nth-last-of-type(1) th{
    border-bottom: 1px solid #D9D9D9;
}

.education__content.pc{
    display: flex;
}

.education__content.sp{
    display: none;
}

@media (max-width: 768px) {
    .history{
        width: 100%;    
    }
    
    .history tr{
        gap: 25px;
    }
    
    .history th{
        font-size: 14px;
        width: 70px;    
    }
    
    .history td{
        font-size: 14px;
        width: calc(100% - 70px);
    }
    
    .history tr:nth-last-of-type(1) td{
        border-bottom: 1px solid #D9D9D9;
    }
    
    .history tr:nth-last-of-type(1) th{
        border-bottom: 1px solid #D9D9D9;
    }
}

@media screen and (max-width: 768px) {
    .education__history.history tr{
        gap: 25px 0;
        flex-wrap: wrap;
    }

    .education__history.history th{
        justify-content: start;
        padding-left: 20px;
    }

    .education__history.history th:nth-of-type(1) {
        width: 100% !important;
        font-weight: 700;
        font-size: 16px;
        line-height: 100%;
        padding: 10.5px 20px;
        text-align: left;
        justify-content: start;
        gap: 10px;
     
    }
    .education__history.history th:nth-of-type(2) {
        width: 100% !important;
        font-size: 16px;
        text-align: left;
        padding: 10px 0;
       
    }
    .education__history.history th:nth-of-type(3) {
        width: 100% !important;
        font-size: 16px;
        text-align: left;
        padding: 10px 0;
     
    }
    .education__history.history th:nth-of-type(4) {
        width: 100% !important;
     
    }

    .education__history td{
        width: 100%;
    }
    .education__content.pc{
        display: none;
    }
    
    .education__content.sp{
        display: flex;
    }

    .education__history--custom{
        flex-direction: column;
        gap: 0!important;
    }

    .education__history.history tr{
        gap: 0;
    }

    .education__history-th{
        margin-bottom: 20px;
    }

    .history tr:nth-last-of-type(1) th{
        text-align: center;
        justify-content: center;
    }

}
