@charset "utf-8";

.p-case {
    padding: 1rem 0 2.5rem;
}

.p-case-inner {
    display: grid;
    gap: .8rem;
}

.p-case-list {
    display: grid;
    gap: .6rem;
}

.p-case-list a {
    position: relative;
    display: flex;
    align-items: center;
    background: url(../img/case_studies/list_bg.png), linear-gradient(65deg, #fcf1ef, #fff1fd);
    background-repeat: no-repeat, repeat;
    background-position: top right, center center;
    background-size: 50% auto, cover;
    -webkit-box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.p-case-list a figure {
    flex: 0 0 30%;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.p-case-list a figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-case-list a div {
    flex: 1;
    padding: .3rem .8rem .5rem .3rem;
    display: grid;
    gap: .2rem;
    place-items: start;
    position: relative;
}

.p-case-list a div::after {
    content: '';
    width: .5rem;
    height: .5rem;
    background: url(../img/common/ico_arw.png) no-repeat top center / 100% auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: .2rem;
    margin: auto;
}

.p-case-list a .ttl {
    border-bottom: 2px solid #000;
}

.p-case-detail {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0 2.5rem;
}

.p-case-detail_header {
    position: relative;
}

.p-case-detail_header .header_eyecatch {
    width: min(100% - 1rem, 11rem);
    margin: auto;
}

.p-case-detail_header .header_eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-case-detail_header .header_ttlwrap {
    position: absolute;
    bottom: .5rem;
    left: 0;
    display: grid;
    place-items: start;
    gap: .1rem;
}

.p-case-detail_header .header_ttlwrap>* {
    background: #fff;
    padding: .1rem;
    -webkit-box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
}

.p-case-detail_body {
    width: min(100%, 11rem);
    margin: auto;
    display: grid;
    gap: 1rem;
}

.p-case-detail_body>div {
    display: grid;
    gap: .4rem;
}

.p-case-detail_body .body_ttl {
    display: grid;
    place-items: center;
    gap: .2rem;
}

.p-case-detail_body .body_ttl::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #e83278;
}

.p-case-detail_body .body_col2 {
    display: flex;
    gap: .4rem;
}

.p-case-detail_body .body_col2 figure {
    flex: 0 0 40%;
}

.p-case-detail_body .notes {
    text-align: right;
}

.p-case-detail_footer {
    display: grid;
    gap: .5rem;
}

.p-case-detail_footer {
    display: grid;
    gap: 1rem;
}

.p-case-detail_footer .footer_conts {
    width: min(100%, 900px);
    margin: auto;
    display: grid;
    gap: .4rem;
    place-items: center;
    background: #ffeec1;
    border-right: .2rem solid #fedd97;
    border-left: .2rem solid #fedd97;
    padding: .4rem;
    position: relative;
}

.p-case-detail_footer .footer_ttl {
    background: #fff;
    color: #b27500;
    padding: .1rem;
    position: absolute;
    top: -.3rem;
    -webkit-box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, .15);
}

.p-case-detail_footer .footer_conts02 {
    background: url(../img/case_studies/footer_bg.png) no-repeat bottom center / 100% auto;
    padding: 1.5rem 0;
}

.p-case-detail_footer .footer_ttl02 {
    text-align: center;
}

.p-case-detail_footer .footer_ttl02 p {
    background: linear-gradient(90deg, #f78a9e, #f56f87, #fe988b);
    color: #fff;
    padding: 0 .1rem;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.p-case-detail_footer .footer_conts03 {
    display: grid;
    gap: .4rem;
}

@media only screen and (max-width: 1024px) {
    .p-case-list a {
        flex-direction: column;
    }
    .p-case-list a figure{
        flex: 1;
    }

    .p-case-list a div{
        flex: 0;
    }

    .p-case-detail_header .header_eyecatch {
        width: 100%;
    }

    .p-case-detail_header .header_ttlwrap {
        position: relative;
        left: -.5rem;
    }

    .p-case-detail_body .body_col2 {
        flex-direction: column;
    }

    .p-case-detail_body .notes {
        text-align: left;
    }

    .p-case-detail_footer .footer_ttl {
        position: relative;
        top: auto;
    }

    .p-case-detail_footer .footer_conts02 {
        padding: 0 .5rem 1rem;
        width: calc(100% + 1rem);
        margin: 0 -.5rem;
        overflow: hidden;
    }

    .p-case-detail_footer .footer_ttl02 {
        text-align: left;
    }

}