@charset "utf-8";
.casePage,
.caseArchive{
    overflow: hidden;
    padding-bottom: 50px;
    line-height: 1.4;
}
.case-cat{
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-left: 5px solid #0072AD;
    padding-left: 10px;
    .txt1{
        padding: 3px 10px;
        background: #0072AD;
        color: white;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .05em;
    }
    .txt2{
        font-size: 20px;
        font-weight: 400;
        letter-spacing: .2em;
        font-family: serif;
    }
}
.case-head{
    border-left: 5px solid #F0F0F0;
    padding: 12px 0 6px 10px;
}
.case-title{
    display: grid;
    margin-bottom: 10px;
    span{
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .1em;
    }
    h2{
        margin-top: 4px;
        font-size: 24px;
        font-weight: 500;
        letter-spacing: .1em;
    }
}
.case-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    li{
        padding: 3px 6px;
        background: #E0F3FD;
        color: #0C2B61;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: .05em;
    }
}
.case-images{
    margin: 40px auto 56px;
    .image{
        display: grid;
        width: 300px;
        margin: 0 auto 10px;
        background: white;
        > div{
            grid-column: 1;
            grid-row: 1;
            opacity: 0;
            transition: opacity .5s ease-in-out;
            &.is-active{
                opacity: 1;
            }
        }
        .before,
        .after{
            background: #D8D8D8;
            p{
                line-height: 28px;
                color: white;
                font-size: 14px;
                font-weight: 500;
                letter-spacing: .1em;
                text-align: center;
            }
            img{
                width: 100%;
                aspect-ratio: 5/3;
                object-fit: cover;
            }
        }
        .before p{
            background: #6B7C87;
        }
        .after p{
            background: #0072AD;
        }
        hr{
            height: 20px;
            margin: 5px;
            border: none;
            background: url(../img/case/case-circle-down.webp) center/contain no-repeat;
        }
    }
    .tab{
        display: flex;
        button{
            flex: auto 1 1;
            border-bottom: 1px solid #D8D8D8;
            padding: 10px;
            background: none;
            color: #333333;
            font-size: 14px;
            letter-spacing: .1em;
            text-align: center;
            &.is-active{
                border-color: #333333;
            }
        }
    }
}
.case-table-title{
    font-family: serif;
    text-align: center;
    h3{
        color: #333333;
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .15em;
    }
    p{
        color: #4B9CC5;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: .05em;
    }
}
.case-table{
    border-collapse: separate;
    border-spacing: 2px;
    margin: 20px auto 0;
    th,
    td{
        font-size: 14px;
        font-weight: 500;
    }
    th{
        width: 130px;
        padding: 20px 5px;
        background: #E0F3FD;
        color: #0072AD;
        letter-spacing: .1em;
    }
    td{
        padding: 20px 14px;
        background: #F6F9FB;
        color: #333333;
        letter-spacing: .05em;
    }
}
.case-table-note{
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
    text-align: right;
}
.case-heading{
    margin: 50px 0 20px;
    border-bottom: 1px solid #0072AD;
    padding-bottom: 4px;
    font-family: serif;
    p{
        color: #333333;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: .05em;
    }
    h3{
        margin-top: 4px;
        color: #0072AD;
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .15em;
    }
}
.case-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    img{
        width: 300px;
    }
    p{
        width: 100%;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .1em;
        line-height: 1.625;
    }
}
.case-list{
    li{
        padding-left: 27px;
        background: url(../img/case/case-check-icon.webp) 0 2px/22px no-repeat;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .1em;
        + li{
            margin-top: 10px;
        }
    }
}
.case-comment{
    position: relative;
    margin-top: 65px;
    padding: 30px 25px 30px 15px;
    > *{
        position: relative;
    }
    &::before,
    &::after{
        content: '';
        display: block;
        position: absolute;
        z-index: -1;
        width: 100%;
        height: 100%;
        box-shadow: 0 3px 6px rgb(0 0 0/16%);
    }
    &::after{
        top: 0;
        left: -5px;
        background: #F6F9FB;
    }
    &::before{
        top: 10px;
        left: 5px;
        background: #0072AD;
    }
    p{
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .05em;
        line-height: 1.625;
    }
}
.case-comment-title{
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 10px;
    margin-bottom: 15px;
    color: #0072AD;
    .img{
        grid-row: 1/3;
        aspect-ratio: 1/1;
        border-radius: 50%;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .txt{
        align-self: end;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .1em;
    }
    h3{
        align-self: start;
        border-bottom: 1px solid;
        padding-bottom: 5px;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .1em;
    }
}
.case-patient{
    margin-top: 35px;
    &::after{
        background: #FFFDF9;     
    }
    &::before{
        background: #C79E64;   
    }
}
.case-patient-title{
    margin-bottom: 15px;
    padding-left: 50px;
    background: url(../img/case/case-comment.webp) 0 50%/35px no-repeat;
    color: #C79E64;
    .txt{
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .1em;
    }
    h3{
        border-bottom: 1px solid;
        padding-bottom: 5px;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .1em;
    }
}
.case-side-title{
    margin: 70px 0 20px;
    font-family: serif;
    > p{
        display: flex;
        align-items: center;
        gap: 5px;
        color: #333333;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: .05em;
        &::before{
            content: '';
            width: 30px;
            height: 1px;
            background: currentColor;
        }
    }
    h3{
        margin: 3px 0 0 32px;
        color: #0072AD;
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .1em;
        line-height: 1.46;
    }
}
.case-side{
    counter-reset: side;
    li{
        position: relative;
        counter-increment: side;
        padding-left: 19px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .05em;
        &::before{
            content: counter(side)".";
            position: absolute;
            left: 0;
        }
        + li{
            margin-top: 10px;
        }
    }
}
.case-categories-title{
    margin: 50px 0 20px;
    font-family: serif;
    text-align: center;
    h3{
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .15em;
    }
    p{
        color: #4B9CC5;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: .05em;
    }
}
.case-categories{
    display: grid;
    grid-template-columns: repeat(2, 166px);
    grid-auto-rows: 80px;
    justify-content: center;
    gap: 10px 5px;
    a{
        border: 1px solid #0072AD;
        border-radius: 3px;
        background-color: white;
        background-image: url(../img/case/case-right.webp), radial-gradient(circle at center, #0072AD 14px, white 15px);
        background-position: 156px 65px, 145px 56px;
        background-size: 5px, 30px 30px;
        background-repeat: no-repeat;
        box-shadow: 0 2px 4px rgb(0 0 0/16%);
        color: #0072AD;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .05em;
        text-align: center;
        transition: .3s ease-in-out;
        img{
            display: block;
            width: 45px;
            margin: 9px auto 3px;
        }
    }
}
.case-link{
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    a{
        position: relative;
        min-width: 260px;
        padding: 12px 12px 12px 0;
        background: #0072AD;
        color: white;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: .1em;
        text-align: center;
        &::after{
            content: "\f105";
            font-family: FontAwesome;
            position: absolute;
            top: 50%;
            right: 10px;
            margin-top: -15px;
            color: #fff;
            font-size: 20px;
            transition: .3s ease-in;
        }
        &:nth-child(2){
            background: #C79E64;
        }
    }
}
@media screen and (min-width:768px) {
    .case-images{
        .image{
            width: 100%;
            > div{
                display: grid;
                grid-template-columns: 300px 20px 300px;
                justify-content: center;
                align-items: center;
                gap: 10px;
            }
            hr{
                margin: 0;
                transform: rotate(-90deg);
            }
        }
    }
    .case-text{
        flex-direction: row-reverse;
        gap: 30px;
    }
    .case-side-title{
        h3{
            br{
                display: none;
            }
        }
    }
    .case-categories{
        grid-template-columns: repeat(4, 166px);
    }
}
@media screen and (min-width:1025px) {
    .casePage,
    .caseArchive{
        padding-bottom: 70px;
        .container{
            width: 930px;
        }
    }
    .case-cat{
        gap: 15px;
        min-height: 60px;
        border-left-width: 10px;
        padding-left: 20px;
        .txt1{
            padding: 4px 10px;
            font-size: 16px;
            letter-spacing: .1em;
        }
        .txt2{
            font-size: 24px;
        }
    }
    .case-head{
        border-left-width: 10px;
        padding: 18px 0 13px 20px;
    }
    .case-title{
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        span{
            font-size: 23px;
            letter-spacing: .05em;
        }
        h2{
            margin-top: 0;
            font-size: 30px;
            letter-spacing: .25em;
        }
    }
    .case-tags{
        gap: 8px;
        li{
            font-size: 16px;
            letter-spacing: .1em;
        }
    }
    .case-images{
        margin: 50px auto 60px;
        .image{
            margin-bottom: 26px;
            > div{
                grid-template-columns: 420px 30px 420px;
                gap: 15px;
            }
            .before,
            .after{
                p{
                    line-height: 40px;
                    font-size: 18px;
                }
            }
            hr{
                height: 30px;
            }
        }
        .tab{
            button{
                border-bottom-width: 2px;
                font-size: 20px;
            }
        }
    }
    .case-table-title{
        h3{
            font-size: 30px;
        }
        p{
            font-size: 16px;
        }
    }
    .case-table{
        border-spacing: 3px;
        margin-top: 30px;
        th,
        td{
            font-size: 16px;
        }
        th{
            width: 250px;
            padding: 19px;
            letter-spacing: .2em;
        }
        td{
            padding: 19px 40px;
            letter-spacing: .05em;
        }
    }
    .case-table-note{
        margin-top: 5px;
        font-size: 12px;
    }
    .case-heading{
        margin: 60px 0 20px;
        padding-bottom: 5px;
        p{
            font-size: 16px;
        }
        h3{
            font-size: 30px;
        }
    }
    .case-text{
        gap: 40px;
        img{
            width: 380px;
        }
    }
    .case-list{
        li{
            padding-left: 32px;
            background-position: 0 0;
            background-size: 27px;
            + li{
                margin-top: 17px;
            }
        }
    }
    .case-comment{
        margin-top: 120px;
        padding: 30px 79px 35px 70px;
        &::before,
        &::after{
            box-shadow: none;
        }
        &::after{
            top: 0;
            left: 0;
            width: 880px;
        }
        &::before{
            top: 15px;
            left: 0;
            width: 895px;
        }
        p{
            line-height: 1.75;
        }
    }
    .case-comment-title{
        grid-template-columns: 120px 1fr;
        gap: 0 40px;
        margin-bottom: 25px;
        .txt{
            font-size: 16px;
        }
        h3{
            font-size: 23px;
        }
    }
    .case-patient{
        margin-top: 65px;
    }
    .case-patient-title{
        height: 85px;
        margin-bottom: 20px;
        padding-left: 105px;
        padding-top: 11px;
        background-size: 66px;
        .txt{
            font-size: 16px;
        }
        h3{
            font-size: 23px;
        }
    }
    .case-side-title{
        margin: 74px 0 30px;
        > p{
            font-size: 16px;
        }
        h3{
            margin: 4px 0 0 35px;
            font-size: 30px;
            letter-spacing: .15em;
        }
    }
    .case-side{
        li{
            padding-left: 23px;
            font-size: 16px;
        }
    }
    .case-categories-title{
        margin: 80px 0 30px;
        h3{
            font-size: 30px;
        }
        p{
            font-size: 16px;
        }
    }
    .case-categories{
        grid-template-columns: repeat(4, 220px);
        grid-auto-rows: 100px;
        gap: 10px 15px;
        width: 930px;
        margin-left: -30px;
        a{
            background-image: url(../img/case/case-right.webp), radial-gradient(circle at center, #0072AD 19px, white 20px);
            background-position: 204px 78px, 187px 63px;
            background-size: 7px, 40px 40px;
            font-size: 16px;
            img{
                width: 52px;
                margin: 14px auto 4px;
            }
        }
    }
    .case-link{
        margin-top: 80px;
        flex-direction: row-reverse;
        gap: 40px;
        a{
            padding: 17px 12px 17px 0;
        }
    }
}

/*
 * 症例アーカイブページ
 */
.caseArchive .case-categories{
    a{
        background-image: url(../img/case/case-down.webp), radial-gradient(circle at center, #0072AD 14px, white 15px);
        background-position: 85px 93px, 75px 81px;
        background-size: 8px, 30px 30px;
    }
}
@media screen and (min-width:768px) {
    .caseArchive .case-categories{
        a{
            background-position: 154px 67px, 145px 56px;
        }
    }
}
@media screen and (min-width:1025px) {
    .caseArchive .case-categories{
        a{
            background-image: url(../img/case/case-down.webp), radial-gradient(circle at center, #0072AD 19px, white 20px);
            background-position: 202px 80px, 187px 63px;
            background-size: 10px, 40px 40px;
        }
    }
}
@media screen and (max-width:767px) {
    .caseArchive .case-categories{
        grid-template-columns: repeat(3, 100px);
        grid-auto-rows: 106px;
        gap: 10px 17px;
        a{
            img{
                margin: 10px auto 5px;
            }
            span{
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 1.1;
                height: 2lh;
            }
        }
    }
}
.case-archive-title{
    margin-top: 50px;
    border-left: 5px solid #0072AD;
    padding: 4px 0 4px 10px;
    font-family: serif;
    p{
        color: #0072AD;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: .05em;
    }
    h3{
        margin-top: 2px;
        color: #333333;
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .2em;
    }
}
.case-archive-text{
    margin-bottom: 20px;
    border-left: 5px solid #F0F0F0;
    padding: 11px 0 4px 10px;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .1em;
    line-height: 1.5;
}
.case-archive-slider{
    width: calc(100% + 14px);
    margin-left: -7px;

    &.slick-dotted.slick-slider{
        margin-bottom: 80px;
    }
    .slick-track{
        display: flex;
        margin: 3px 0 9px;
    }
    .slick-slide {
        height: auto;
        > *{ /* aがdivで囲まれる対策*/
            margin: 0 7px;
            height: 100%;
        }
    }
    a{
        display: block;
        height: 100%;
        padding-bottom: 18px;
        background: white;
        box-shadow: 0 3px 6px rgb(0 0 0/16%);
        .img{
            aspect-ratio: 16/11;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .txt1{
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            gap: 10px;
            margin: 16px 15px 0;
            font-weight: 500;
            span:first-child{
                color: #A1A1A1;
                font-size: 10px;
            }
            span:nth-child(2){
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                height: 2lh;
                color: #333333;
                font-size: 14px;
                letter-spacing: .05em;
            }
        }
        .txt2{
            margin: 13px 13px 0 16px;
            ul{
                li{
                    display: inline-block;
                    margin: 3px 5px 0 0;
                    padding: 3px;
                    background: #E0F3FD;
                    color: #0C2B61;
                    font-size: 9px;
                    font-weight: 400;
                }
                .doc{
                    background: #C79E64;
                    color: white;
                }
            }
        }
    }
    .slick-dots{
        li{
            width: 10px;
            height: 10px;
            margin: 0 3px;
            button{
                width: 100%;
                height: 100%;
                padding: 0;
                &::before{
                    content: '';
                    width: 100%;
                    height: 100%;
                    border-radius: 50%;
                    background: #F0F0F0;
                    opacity: 1;
                }
            }
        }
        .slick-active{
            button::before{
                background: #94AFBE;
            }
        }
    }
}
@media screen and (min-width:1025px) {
    .case-archive-title{
        margin-top: 110px;
        padding: 9px 0 9px 20px;
    }
    .case-archive-text{
        margin-bottom: 28px;
        padding: 6px 0 6px 20px;
    }
    .case-archive-slider{
        width: auto;
        margin-left: 0;
        .slick-slide {
            > *{
                margin: 0 10px;
            }
        }
        a{
            padding-bottom: 20px;
            .txt1{
                gap: 15px;
                margin: 25px 20px 10px;
                span:first-child{
                    font-size: 14px;
                }
                span:nth-child(2){
                    display: block;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    height: auto;
                    -webkit-line-clamp: unset;
                    -webkit-box-orient: unset;
                    font-size: 16px;
                }
            }
            .txt2{
                margin: 10px 10px 0 16px;
                ul{
                    display: inline;
                    li{
                        margin: 5px 6px 0 0;
                        font-size: 10px;
                    }
                }
            }
        }
    }
}

/*
 * 担当医アーカイブページ
 */
.case-doctor{
    position: relative;
    margin-bottom: 67px;
    filter: drop-shadow(0 3px 6px rgb(0 0 0/16%));
    > div{
    padding: 25px 21px;
    background: linear-gradient(
        135deg,
        #D2DFEA -30px,
        #F4F8FA 60px,
        #D2DFEA 130px,
        #F2FAFD 230px,
        #D2DFEA 290px,
        #d2dfea 430px,
        #F2FAFD 550px
    );
    clip-path: polygon(
        24px 0,
        100% 0,
        100% calc(100% - 32px),
        calc(100% - 24px) 100%,
        0 100%,
        0 32px
    );
    }
}
.case-doctor-info{
    position: relative;
    margin-right: 109px;
    color: #333333;
    .txt1{
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 12px;
        font-size: 10px;
        font-weight: 400;
        &::before,
        &::after{
            content: '';
            border-top: .8px solid #707070;
        }
    }
    .txt2{
        margin: 15px 0 8px;
        font-family: serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .1em;
        line-height: 1.46;
    }
    hr{
        border-top: .5px solid #818181;
        border-bottom: none;
    }
    .txt3{
        margin-top: 12px;
        font-family: serif;
    }
    .txt31{
        width: fit-content;
        border: 0.5px solid;
        padding: 1px 5px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .1em;
    }
    .txt32{
        margin-top: 5px;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: .1em;
        white-space: nowrap;
        text-shadow: 0 0 4px white;
        span{
            margin-left: 5px;
            font-size: 18px;
            letter-spacing: .1em;
        }
    }
    .txt4{
        display: flex;
        align-items: center;
        gap: 3px;
        margin-top: 3px;
        p{
            margin-right: 2px;
            color: #000000;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: .08em;
        }
        a{
            width: 25px;
        }
    }
}
.case-doctor-image{
    position: absolute;
    z-index: -1;
    top: 33px;
    right: 0;
    width: 134px;
    height: calc(100% - 33px);
    mask-image: linear-gradient(to top, transparent 25px, black 50px);
}
.case-doctor-text{
    position: relative;
    z-index: 1;
    margin: 13px 2px 0;
    padding: 8px;
    color: white;
    font-size: 12px;
    font-weight: 350;
    letter-spacing: .05em;
    line-height: 1.58;
    &::after{
        content: '';
        display: block;
        position: absolute;
        z-index: -1;
        inset: 0;
        background:
            linear-gradient(to right bottom, rgb(0 132 215 / 80%), rgb(18 48 90 / 80%)),
            linear-gradient(transparent, #DCE7F0 40px);
    }
}
@media screen and (min-width:768px) {
    .case-doctor-info{
        margin-right: 145px;
        .txt2{
            br{
                display: none;
            }
        }
        .txt3{
            display: flex;
            align-items: center;
            gap: 25px;
        }
        .txt32{
            margin-top: 0;
            text-shadow: none;
        }
        .txt4{
            justify-content: flex-end;
            margin-top: -14px;
        }
    }
    .case-doctor-text{
        margin-right: 120px;
        background: linear-gradient(to right bottom, rgb(0 132 215 / 80%), rgb(18 48 90 / 80%));
        &::after{
            content: none;
        }
    }
}
@media screen and (min-width:1025px) {
    .case-doctor{
        margin-bottom: 100px;
        > div{
            padding: 30px 183px 38px 47px;
            background: linear-gradient(
                135deg,
                #D2DFEA 40px,
                #F4F8FA 205px,
                #D2DFEA 370px,
                #F2FAFD 440px,
                #D2DFEA 690px,
                #d2dfea 760px,
                #F2FAFD 1000px
            );
            clip-path: polygon(
                45px 0,
                100% 0,
                100% calc(100% - 70px),
                calc(100% - 45px) 100%,
                0 100%,
                0 70px
            );
        }
    }
    .case-doctor-info{
        margin-right: 90px;
        margin-left: 13px;
        .txt1{
            gap: 10px;
            font-size: 14px;
        }
        .txt2{
            margin: 20px 0 10px 13px;
            font-size: 18px;
            letter-spacing: .15em;
        }
        hr{
            border-top-width: 1px;
        }
        .txt3{
            margin-top: 20px;
            margin-left: -3px;
        }
        .txt31{
            padding: 3px 8px;
            font-size: 20px;
            letter-spacing: .15em;
        }
        .txt32{
            font-size: 37px;
            letter-spacing: .15em;
            span{
                margin-left: 10px;
                font-size: 23px;
                letter-spacing: .15em;
            }
        }
        .txt4{
            p{
                margin-right: 7px;
                font-size: 12px;
            }
        }
    }
    .case-doctor-image{
        top: 10px;
        right: 29px;
        width: 209px;
        height: calc(100% - 10px);
        mask-image: linear-gradient(to top, transparent 38px, black 62px);
    }
    .case-doctor-text{
        margin: 20px 0 0;
        padding: 10px;
        background: linear-gradient(to right bottom, rgb(0 132 215 / 80%), rgb(18 48 90 / 80%) 90%);
        font-size: 16px;
    }
}