@charset "UTF-8";

a#bg+section .content_wrapper {
    background: #918E8C;
}
a#bg+section .heading.block_header_1 > p {
    text-shadow: 2px 2px 7px var(--i_sub2_color);
}
a#bg+section .heading.block_header_1 > p::before {
    filter: none;
}

#sm + div.composite_box01 .wrapper_item {
    justify-content: space-around;
    gap: 5rem;
}

#sm + .composite_box01.block_images_16 .inner_item,
#sm + .composite_box01.block_images_16 .inner_item>a {
    height: 100%!important;
    max-height: auto!important;
}

#sm + .composite_box01 .inner_item:nth-of-type(1):nth-last-of-type(6),
#sm + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(5),
#sm + .composite_box01 .inner_item:nth-of-type(3):nth-last-of-type(4) {
    margin-bottom: 0!important;
}

#sm + .composite_box01 .inner_item:nth-of-type(1):nth-last-of-type(6),
#sm + .composite_box01 .inner_item:nth-of-type(2):nth-last-of-type(5),
#sm + .composite_box01 .inner_item:nth-of-type(3):nth-last-of-type(4),
#sm + .composite_box01 .inner_item:nth-of-type(4):nth-last-of-type(3),
#sm + .composite_box01 .inner_item:nth-of-type(5):nth-last-of-type(2),
#sm + .composite_box01 .inner_item:nth-of-type(6):nth-last-of-type(1) {
    margin-left: 0!important;
}

#sm + div.composite_box01 .inner_item {
    /* border: 4px solid var(--i_main_color); */
    /* width: 29%; */

    border: 4px solid var(--i_main_color);
    width: 20%;
    aspect-ratio: 1 / 1;
    padding: 13rem;
    height: fit-content;
}

#sm + div.composite_box01 .inner_item_img img {
    object-fit: contain;
}

#sm + div.composite_box01.block_images_16 .inner_item_txt {
    padding-bottom: 0;
}

@media screen and (max-width: 1200px) {
    #sm + .composite_box01.block_images_16 .inner_item,
    #sm + .composite_box01.block_images_16 .inner_item>a {
        height: 100%!important;
        max-height: none;
    }
}

@media screen and (max-width: 1024px) {
    #sm + div.composite_box01.block_images_16 .inner_item_img {
        margin-bottom: 0;
        width: 100%;
        height: 100%;
    }

    #sm + .composite_box01.block_images_16 .inner_item>a {
        height: 100% !important;
    }
    #sm + div.composite_box01 .inner_item {
    /* border: 4px solid var(--i_main_color); */
    /* width: 29%; */

    border: 4px solid var(--i_main_color);
    width: 23% !important;
    aspect-ratio: 1 / 1;
    padding: 0!important;
    height: fit-content;
    }
    #sm + div.composite_box01 .inner_item a,
    #sm + div.composite_box01 .inner_item a .inner_item_img {
        width: 100%;
        height: 100%;
        overflow: visible!important; 
    }
}

@media screen and (max-width: 900px) {
    #sm + div.composite_box01.block_images_16 .inner_item:nth-of-type(2n) {
        margin-left: 0 !important;
    }
    #sm + div.composite_box01 .inner_item {
        width: 47%;
    }
}

@media screen and (max-width: 768px) {
    #sm + div.composite_box01 .inner_item:nth-of-type(2n-1):nth-last-of-type(2) {
        margin-bottom: 30px !important;
    }
    #sm + div.composite_box01 .wrapper_item {
        gap: 2rem 5rem;
    }
    #sm + div.composite_box01 .inner_item {
    width: 36% !important;
    }
}

