/*知っておきたい保障のこと用css*/
main h2{
    background-color: #deb551;
}

main h3{
    border-left: 5px #deb551 solid;
    border-bottom: 2px #deb551 solid;
}

h4{
    color: #deb551;
}

h5.box-title, h4.box-title{
    padding: 10px 20px;
    color: #fff;
    background-color: #deb551;
    margin-bottom: 0;
}

ol li {
    list-style: none;
    counter-increment: number;
    position: relative;
    margin-bottom: 1rem;
}

ol.brackets li {
    text-indent: -4.3rem;
    margin-left: 4.3rem;
}

ol.brackets li::before {
    content: "（" counter(number, decimal) "）";
}

.contents{
    border: 2px #deb551 solid;
}

.overview-image img{
    top: -15%;
}

.knowledge-links{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.knowledge-links:not(:last-child){
    margin-bottom: 40px;
}

.knowledge-links a{
    display: inline-block;
    text-align: center;
    padding: 10px 40px 10px 20px;
    color: #52472b;
    background-color: #fffaf0;
    font-weight: bold;
    border: 1px currentColor solid;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
}

.knowledge-links a:hover{
    filter: brightness(1.1);
}

.knowledge-links a:after{
    position: absolute;
    top: 50%;
    right: 2rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
}

.grid-note{
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f4f4f4 calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), #f4f4f4 calc(100% - 1px));
    background-size: 20px 20px;
    background-repeat: repeat;
    background-position: center center;
}

.box-title{
    background-color: #deb551;
    border: 2px #deb551 solid;
}

.box-text{
    background-color: #fff;
    border: 2px #deb551 solid;
}

.summary{
    color: #fa7333;
    font-weight: bold;
}

.limit-table{
    width: 100%;
    margin-bottom: 20px;
    border-collapse:  collapse;
}

.limit-table th, .limit-table td{
    padding: 10px;
    font-weight: normal;
    border: 1px #deb551 solid;
}

.limit-table th{
    background-color: #fffaf0;
}

.limit-table th:first-child{
    width: 48%;
}

.income{
    font-weight: bold;
}

.limit-image{
    width: 100%;
    max-width: 600px;
    margin: 10px 0;
}

.contents nav{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 40px;
    font-size: 14px;
}

a.previous-page, a.next-page{
    width: 270px;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
    background-color: #deb551;
    text-decoration: none;
}

a.previous-page{
    padding-left: 40px;
    clip-path: polygon(0% 50%, 10% 0%, 100% 0%, 100% 100%, 10% 100%);
}

a.next-page{
    justify-self: end;
    text-align: right;
    padding-right: 40px;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

.note-4word{
    display: block;
    text-indent: -2.7rem;
    padding-left: 2.7rem;
}

/*960px以下*/
@media screen and (max-width: 960px){
    .knowledge-links{
        grid-template-columns: 1fr;
    }

    .knowledge-links a{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .limit-table{
        width: 100%;
        font-size: 1.2rem;
    }

    a.previous-page, a.next-page{
        width: fit-content;
        text-align: center;
    }

    a.previous-page{
        padding-left: 25px;
    }

    a.next-page{
        padding-right: 25px;
    }

    .contents nav span{
        display: none;
    }
}
