@charset "UTF-8";

/*--------------------------下層ページ----------------------------------*/
/*--------------------------4つのポイント-----------------------------------------*/

#hd_p4 + section {
    overflow: visible;
    z-index: 8;
}
#hd_p4 + section > .content_wrapper {
    position: relative;
    overflow: visible;
}

#hd_p4 + section > .content_wrapper:before,
#hd_p4 + section > .content_wrapper:after {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    left: 20px;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: url("/common/upload_data/b-hanerucom/image/point_character01.png") no-repeat left center / 150px;
    background-position: left bottom 25px;
}
#hd_p4 + section > .content_wrapper:after {
    background: url("/common/upload_data/b-hanerucom/image/top_point_character02.png") no-repeat right bottom / contain;
    width: 550px;
    height: 450px;
    background-size: 140px;
    left: auto;
    right: 20px;
}

/* 大切にする4つのこと2カラム */
a[id^="p4_"] + section > .content_wrapper {
    max-width: 1280px !important;
}

a[id^="p4_"] + section .wrapper_item {
    background: var(--i_sub_color);
    border-radius: 15px;
}

a[id^="p4_"] + section .inner_item_txt {
    padding: 35px !important;
    color: #fff;
}

a[id^="p4_"] + section.contents_box01 .inner_item_img img {
    border-radius: 15px 0 0 15px;
}

a[id^="p4_"] + section .heading.block_header_2 .h {
    font-size: 2.4rem;
    color: #fff;
    padding-left: 0;
    border-left: none;
    font-weight: 600;
}

#p4_1 + section .wrapper_item {
    background: #e02117;
}
#p4_2 + section .wrapper_item {
    background: #75af16;
}
#p4_3 + section .wrapper_item {
    background: #002076;
}

@media screen and (min-width: 1401px) {
    #hd_p4 + section > .content_wrapper:after {
        bottom: -100px;
        background-size: 180px;
        left: auto;
        right: -80px;
    }
}

@media screen and (min-width: 901px) and (max-width: 1250px) {
    a[id^="p4_"] + section.contents_box01 .inner_item_img img{
        object-fit: cover;
        height: 420px;
    }
    #p4_4 + section.contents_box01 .inner_item_img img{
        height: revert-layer;
    }
}
@media screen and (max-width: 900px) {
    #hd_p4 + section > .content_wrapper:before {
        background-size: 15vw;
        background-position: left center;
    }
    #hd_p4 + section > .content_wrapper:after {
        background-size: 15vw;
        right: 0;
        bottom: -50px;
    }
    a[id^="p4_"] + section.contents_box01 .inner_item_img img {
        border-radius: 15px 15px 0 0;
    }
    a[id^="p4_"] + section .inner_item_txt {
        border-radius: 0 0 15px 15px;
        padding: 35px 25px !important;
    }
    .contents_box01:not(.block_image_text_2):not(.block_image_text_6) .inner_item_img {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 480px) {
    #hd_p4 + section > .content_wrapper:before {
        background-size: 60px;
    }
    #hd_p4 + section > .content_wrapper:after {
        width: 100%;
        height: 100%;
        background-size: 65px;
        right: 0;
        bottom: auto;
        top: 0;
    }
}