@charset "UTF-8";
/*相続について*/
main {padding-bottom: 150px;}
.problem {
padding:60px 0 90px 0;
background-position: bottom center;
background-size:cover;
background-repeat: no-repeat;
}
    #section_1 .problem{background-image: url("../images/inheritance/back__1_pc.png.webp");}
    #section_2 .problem{background-image: url("../images/inheritance/back__2_pc.png.webp");}
    #section_3 .problem{background-image: url("../images/inheritance/back__3_pc.png.webp");}
    #section_4 .problem{background-image: url("../images/inheritance/back__4_pc.png.webp");}
    #section_5 .problem{background-image: url("../images/inheritance/back__5_pc.png.webp");}
    #section_6 .problem{background-image: url("../images/inheritance/back__6_pc.png.webp");}

.problem__inner,.problem .wp-block-group__inner-container{
width: 90%;
max-width: 1090px;
height: auto;
background-color: #fff;
border-radius: 10px;
padding: 50px;
margin: 0 auto;
}
.problem__inner_title {text-align: center;width: 100%;}
.problem__inner_title .wp-block-group__inner-container {
padding: 0 0 20px 0;
width: inherit;
max-width: inherit;
background-color: inherit;
}
.problem .wp-block-media-text{
display: flex;
justify-content:center;
gap:5%;
margin-top: 20px;
}
.problem .wp-block-media-text__media{width: auto;max-width: 390px;}
.problem .wp-block-media-text__content {padding: 0;width: auto;max-width: 520px;line-height: 2em;}
.problem .has-text-align-center {margin-top: 0;}

.wp-block-group.answer {padding: 60px 0;}
.answer .wp-block-group__inner-container{
width: 90%;
max-width: 980px;
height: auto;
padding:0;
margin: 0 auto;
display: grid;
justify-items: center;
}
.answer .wp-block-buttons {margin-top: 40px;}
.wp-block-buttons>.wp-block-button {
    margin: 20px auto 80px;
}
@media only screen and (max-width: 960px) {
    .problem .wp-block-group__inner-container {padding:30px 5%;}
    .problem .wp-block-media-text {padding:20px 0;flex-wrap: wrap;}
    .problem .wp-block-media-text__content{width: 100%;min-width: inherit;order:2;text-align: left;}
    .problem .wp-block-media-text__media{order:1;}
    .problem .problem__inner_title .wp-block-group__inner-container {padding: 0;margin-bottom: 10px;}
}

@media only screen and (max-width: 768px) {
 .page-inheritance   .wp-block-buttons>.wp-block-button {
    margin: 0px auto;
}
   .page-inheritance   .number-list__after {
        margin-left: 0px;
        margin-top: 20px;
    }
     #section_1 {margin-top: 50px;}
    #section_1 .problem{background-image: url("../images/inheritance/back__1_sp.png.webp");}
    #section_2 .problem{background-image: url("../images/inheritance/back__2_sp.png.webp");}
    #section_3 .problem{background-image: url("../images/inheritance/back__3_sp.png.webp");}
    #section_4 .problem{background-image: url("../images/inheritance/back__4_sp.png.webp");}
    #section_5 .problem{background-image: url("../images/inheritance/back__5_sp.png.webp");}
    #section_6 .problem{background-image: url("../images/inheritance/back__6_sp.png.webp");}
    .problem {
    background-size: auto;
}
}