/*下層ページ共通css*/
main h2{
    font-size: 2.6rem;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: #fff;
    background-color: #0062b1;
}

main h3{
    font-size: 2rem;
    padding: 0 5px;
    margin-bottom: 20px;
    border-left: 5px #0062b1 solid;
    border-bottom: 2px #0062b1 solid;
}

.contents h3:not(:first-child){
    margin-top: 40px;
}

h4{
    color: #0062b1;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

h5{
    font-size: 1.6rem;
}

h6{
    font-size: 1.6rem;
}

.overview{
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.overview-image{
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    position: relative;
}

.overview-image img {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
}

.contents{
    padding: 20px;
    border: 2px #0062b1 solid;
}

p:not(:last-child){
    margin-bottom: 1.6rem;
}

p.box-title, p.department, p.supplement{
    margin-bottom: 0;
}

.overview-text a, .contents a{
    color: #0062b1;
    text-decoration: underline;
}

.tab2, .tab3, .tab4, .tab5{
    display: grid;
    gap: 10px;
    padding: 0 10px 0;
}

.tab2{
    grid-template-columns: repeat(2, 1fr);
}

.tab3{
    grid-template-columns: repeat(3, 1fr);
}

.tab4{
    grid-template-columns: repeat(4, 1fr);
}

.tab5{
    grid-template-columns: repeat(5, 1fr);
}

.tab div, .tab a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 60px;
    background-color: #e1effb;
    border-top: 1px #0062b1 solid;
    border-right: 1px #0062b1 solid;
    border-left: 1px #0062b1 solid;
    border-radius: 10px 10px 0 0;
}

.tab div, .tab a:hover{
    color: #fff;
    font-weight: bold;
    background-color: #0062b1;
}

.information-box{
    background-color: #dfecf5;
    border-radius: 10px;
    padding: 20px 10px;
}

.label-box{
    margin-bottom: 20px;
}

.box-title{
    padding: 10px 20px;
    color: #fff;
    background-color: #0062b1;
    font-weight: bold;
    border: 2px #0062b1 solid;
    border-radius: 10px 10px 0 0;
}

.box-text{
    padding: 10px 20px;
    color: #333;
    border: #0062b1 2px solid;
    border-radius: 0 0 10px 10px;
}

.contents ul li{
    text-indent: -1rem;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.contents ul li::before {
    display: inline-block;
    content: "●";
    margin-right: 5px;
    color: #0062b1;
}

.bottom-gap{
    margin-bottom: 20px;
}

.bottom-gap-l{
    margin-bottom: 40px;
}

.contact{
    color: #005693;
    font-weight: bold;
}

.contact div{
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 2rem;
    white-space: nowrap;
}

.details{
    display: flex;
    gap: 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: normal;
}

.note{
    display: block;
    text-indent: -1.3rem;
    padding-left: 1.3rem;
}

.text-right{
    text-align: right;
}

.bg-child{
    background-color: #e88db0;
}

.bg-life-new{
    background-color: #3e6ce3;
}

.bg-life{
    background-color: #5d97f1;
}

.bg-matureage{
    background-color: #b688fe;
}

.red{
    color: #f00;
}

.blue{
    color: #00f;
}

.k-blue{
    color: #0062b1;
}

.bold{
    font-weight: bold;
}

.mb-1rem{
    margin-bottom: 1rem;
}

.mt-1rem{
    margin-top: 1rem;
}

.ml-1rem{
    margin-left: 1rem;
}

@media screen and (max-width: 960px){
    main h2{
        font-size: 2.4rem;
    }

    .overview{
        align-items: start;
    }

    .overview-image{
        width: auto;
        height: auto;
        overflow: visible;
        position: static;
    }

    .overview-image img{
        height: auto;
        position: static;
    }

    .tab{
        grid-template-columns: 1fr;
        padding: 0;
        margin-bottom: 10px;
    }

    .tab div, .tab a{
        flex-direction: row;
        padding: 10px;
        border: 1px #0062b1 solid;
        border-radius: 10px;
    }

    .details{
        flex-direction: column;
        gap: 0;
    }

    .long-text{
        display: flex;
        flex-direction: column;
    }
}
