/* FV */

.case-mv * {
    box-sizing: border-box;
    line-height: 1.5em;
    font-weight: 700;
    color: #fff;
}

.case-mv-ttl {
    background: linear-gradient(135deg,rgba(72, 151, 210, 1) 0%, rgba(80, 43, 146, 1) 100%);
    padding: 24px 5%;
}

.case-mv p {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.case-mv h1 {
    font-size: 1.6rem;
}

.case-mv-img img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.case-mv-ttl .keyvisual_txt_h1 {
    font-size: 18px;
}

.case-p_hover:hover{
transition: all 0.2s ease;
}

.case-p_hover:hover{
    color: #0062c2;
}

@media screen and ( min-width: 751px ) {
    .case-mv {
        margin-top: -47px;
    }
}
@media screen and ( min-width: 768px ) {

    .case-mv {
        position: relative;
        overflow: hidden;
    }

    .case-mv-ttl {
        width: 100%;
        /* padding: min(10vw, 120px) 5%; */
        margin: 0 auto 0 0 ;
        /* display: flex; */
        flex-direction: column;
        justify-content: center;
    }

    .case-mv-ttl p {
        font-size: 3rem;
    }

    .case-mv-ttl h1 {
        font-size: 1.8rem;
    }

    .case-mv-img {
        width: 30%;
        height: 100%;
        top: 0;
        right: 0;
    }

    .case-mv-img img {
        object-position: top;
        height: 100%;
    }

    .case-mv-ttl .keyvisual_txt_h1{
        font-size: 22px;
    }

}

@media screen and ( min-width: 1024px ) {

    /* .case-mv-ttl {
       align-items: end;
    } */

    .case-mv-ttl p{
        /* width: min(100%, 510px); */
        text-align: left;
    }

    .case-mv-ttl h1{
        width: 100%;
        text-align: left;
    }
    .case-mv-ttl p {
        font-size: 3.2rem;
    }

    .case-mv-ttl h1 {
        font-size: 2rem;
    }

}

/* common */

.case-wrapper {
    box-sizing: border-box;
    padding: 0 5% 40px;
}

.case-wrapper_profile{
    display: block;
}

.case-wrapper * {
    box-sizing: border-box;
    line-height: 1.5em;
    color: #333;
}

.case-wrapper p {
    font-size: 1.4rem;
    line-height: 1.8em;
    margin: 2em 0;
    letter-spacing: .1em;
}

.case-wrapper img {
    width: min(100%, 768px);
    display: block;
    margin: 0 auto;
}

.case-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5em;
    margin: 2.15em 0 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #333;
}

.case-wrapper .question {
    margin: 1.75em 0 1em;
    padding-left: 32px;
    position: relative;
    font-size: 1.6rem;
    font-weight: 700;
}

.case-wrapper .question::before,
.case-wrapper .question::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 1px solid;
    border-right: 1px solid;
    rotate: 45deg;
    position: absolute;
    top: calc(1em * 1.8 / 2);
    translate: 0 -50%;
}

.case-wrapper .question::before {
    border-color: #502b92;
    left: -2px;
}

.case-wrapper .question::after {
    border-color: #0062c2;
    left: 8px;
}

.case-wrapper .question + p {
    margin-top: 1.1em;
}

.case-wrapper p:has( + img ) {
    margin-bottom: 1em;
}

.case-wrapper p:has( + .cta-box ) {
    margin-bottom: 3em;
}

@media screen and ( min-width: 768px ) {

    .case-wrapper p {
        font-size: 1.6rem;
    }

    .case-wrapper h2 {
        font-size: 2.6rem;
    }

    .case-wrapper .question {
        padding-left: 48px;
        font-size: 2rem;
    }

    .case-wrapper .question::before,
    .case-wrapper .question::after {
        width: 14px;
        height: 14px;
    }

    .case-wrapper .question::before {
        left: -4px;
    }

    .case-wrapper .question::after {
        left: 10px;
    }

    .case-wrapper_profile{
    display: flex;
    align-items: center;
}

}
@media screen and ( min-width: 1024px ) {

    .case-wrapper {
        width: 1024px;
        padding: 0 16px 56px;
        margin: 0 auto;
    }

}

/* interview-profile */
.interview-profile {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(51, 51, 51, 0.2);
    padding: 24px 5%;
    /* margin: 2.8em 0; */
}

.case-wrapper .interview-profile p {
    margin: 0;
}

.interview-profile .profile-ttl {
    font-weight: 700;
    color: #0062c2;
    padding-left: calc(1em + 10px);
    position: relative;
}

.interview-profile .profile-ttl::before {
    content: "";
    width: 1em;
    height: 1em;
    background-color: #0062c2;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
}

.case-wrapper .interview-profile .profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.3em 0;
}

@media screen and ( min-width: 768px ) {

   .case-wrapper .interview-profile .profile-name {
        font-size: 2.2rem;
   }

   .interview-profile {
        width: 70%;
        padding: 24px 32px;
        margin-left: 20px;
   }

}

/* ----
CTA 
----*/

.cta-box {
    width: min(100%, 768px);
    margin: 0 auto;
    padding: 24px 14px;
    text-align: center;
}

.cta-box + .cta-box {
    margin-top: 20px;
}

.case-wrapper .cta-form-ttl {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1.5em;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
}

.case-wrapper .cta-form-txt {
    font-size: 1.2rem;
    margin: 1em 0 2em;
    letter-spacing: 0.05em;
    line-height: 1.5em;
}

.case-wrapper .cta-form-btn {
    width: min(100%, 400px);
    margin: 0 auto;
    padding: 12px 5%;
    text-decoration: none;
    display: block;
    box-shadow: 0 3px 6px rgba(51, 51, 51, .1);
    transition: .3s;
}

.cta-form-btn p {
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 1.75em;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    transition: .3s;
}

/* お問い合わせボタン */

.cta-form-flairs {
    background-color: #b84b8c;
}

.cta-form-flairs .cta-form-ttl,
.cta-form-flairs .cta-form-txt {
    color: #fff;
}

.cta-form-flairs .cta-form-btn {
    padding: 4px;
    background-color: #fff;
}

.cta-form-flairs .cta-form-btn p {
    padding: 8px 24px;
    color: #c0167b;
}

.cta-form-flairs .cta-form-btn:hover p {
    background-color: #b84b8c;
    color: #fff;
}

/* 技術ページリンク */

.cta-link-tech {
    border: 1px solid #0062c2;
    background-color: #f7fbfd;
}

.cta-link-tech .cta-form-ttl {
    color: #0062c2;
}

.cta-link-tech .cta-form-btn {
    background-color: #0062c2;
    padding: 12px 10%;
}

.cta-link-tech .cta-form-btn p {
    color: #fff;
}

.cta-link-tech .cta-form-btn:hover {
    opacity: .7;
}

@media screen and ( min-width: 768px ) {

    .cta-box {
        padding: 32px 20px;
    }

    .case-wrapper .cta-form-ttl {
        font-size: 1.8rem;
    }

    .case-wrapper .cta-form-txt {
        font-size: 1.4rem;
    }

    .case-wrapper .cta-form-btn {
        padding: 12px 24px;
    }

    .cta-form-flairs .cta-form-btn {
        padding: 4px;
    }
    
    .cta-form-flairs .cta-form-btn p {
        padding: 8px 36px;
    }

}