.p_work .block_lists,
.p_work .block_related_lists,
.p_work .block_related_link {
    display: flex;
}

.p_work .block_lists,
.p_work .block_related_lists {
    flex-direction: column;
}

@media only screen and (min-width: 768px) {
    .p_work .block_lists {
        flex-direction: row;
    }
}
.p_work .block_photo img {
    object-fit: cover;
}

.p_work .block_photo img {
    width: 100%;
    height: 100%;
}

.p_work .block .heading_block {
    order: -1;
}
@media only screen and (min-width: 768px) {
    .p_work .block .heading_block {
        order: 0;
        margin-top: 40px;
    }
}
.p_work .block .txt {
    margin-top: 16px;
}
@media only screen and (min-width: 768px) {
    .p_work .block .txt {
        margin-top: 28px;
    }
}
.p_work .block_lists {
    gap: 60px;
    flex-wrap: wrap;
}
@media only screen and (min-width: 768px) {
    .p_work .block_lists {
        gap: 100px 20px;
    }
}
@media only screen and (min-width: 1025px) {
    .p_work .block_lists {
        gap: 100px 80px;
    }
}
.p_work .block_item {
    width: 100%;
    display: flex;
    flex-direction: column;
}
@media only screen and (min-width: 768px) {
    .p_work .block_item {
        width: calc(50% - 10px);
    }
}
@media only screen and (min-width: 1025px) {
    .p_work .block_item {
        width: calc(50% - 40px);
    }
}
@media only screen and (min-width: 768px) {
    .p_work .block_item:nth-child(4) .block_related,
    .p_work .block_item:nth-child(3) .block_related {
        margin-top: 28px;
    }
}
@media only screen and (min-width: 768px) {
    .p_work .block_item:nth-child(5) .txt,
    .p_work .block_item:nth-child(6) .txt {
        margin-top: 34px;
    }
}
@media only screen and (min-width: 768px) {
    .p_work .block_item:nth-child(5) .block_related,
    .p_work .block_item:nth-child(6) .block_related {
        margin-top: 34px;
    }
}
@media only screen and (min-width: 768px) {
    .p_work .block_item:nth-child(5) .block_related_lists,
    .p_work .block_item:nth-child(6) .block_related_lists {
        margin-top: 30px;
    }
}
.p_work .block_photo {
    aspect-ratio: 1.4992503748;
    overflow: hidden;
    margin-top: 20px;
}
@media only screen and (min-width: 768px) {
    .p_work .block_photo {
        margin-top: 0;
    }
}
.p_work .block_related {
    margin-top: 20px;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related {
        margin-top: 39px;
    }
}
.p_work .block_related_lists {
    gap: 10px;
    margin-top: 10px;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related_lists {
        margin-top: 19px;
    }
}
.p_work .block_related_item {
    background-color: #f5f5f5;
}
.p_work .block_related_link {
    align-items: center;
    position: relative;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related_link {
        transition: opacity 300ms linear;
    }
    .p_work .block_related_link:hover {
        opacity: 0.6;
    }
}
.p_work .block_related_link::after {
    content: "";
    width: 26px;
    aspect-ratio: 1;
    background-image: url("./../images/common/icon_arrow_right.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 24px 24px;
    position: absolute;
    top: 50%;
    right: 10px;
    translate: 0 -50%;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related_link::after {
        width: 32px;
        right: 18px;
        background-size: 30px 30px;
    }
}
.p_work .block_related_photo {
    width: 100px;
    aspect-ratio: 1;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related_photo {
        width: 120px;
    }
}
@media only screen and (min-width: 1025px) {
    .p_work .block_related_photo {
        width: 140px;
    }
}
.p_work .block_related_content {
    width: calc(100% - 100px);
    padding-left: 14px;
    padding-right: 50px;
}
@media only screen and (min-width: 768px) {
    .p_work .block_related_content {
        width: calc(100% - 120px);
    }
}
@media only screen and (min-width: 1025px) {
    .p_work .block_related_content {
        width: calc(100% - 140px);
        padding-left: 29px;
    }
}
.p_work .block_related_content p {
    font-weight: 700;
    line-height: 2;
}
