
.toplogo{
    margin-left: 2%;
}

#mainvisual {
    height: 100vh;
    background: linear-gradient(33deg, #2B76D9 0%, #2B76D9 50%, #80D2F2 50%, #80D2F2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

#mainvisual::after{
    content: "";
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-image: url('/Media/all/takanori2.webp');
    background-position: center;
    background-size: cover;
    opacity: 0.5;

    position: absolute;
    z-index: 2;
}

#mainvisual>img{
    position: relative;
    z-index: 3;
    display: block;
    width: 70%;

    animation: appear 2.5s ease forwards;
    animation-delay:2s;

}

@keyframes appear{
    0%{
        opacity: 0;
        transform: translateY(30%);
    }
    50%{
        opacity: 0;
        transform: translateY(10%);
    }
    100%{
        opacity: 1;
        transform: translateY(0%);

    }
}

#mainvisual>span{
    position: relative;
    z-index: 3;
    display: inline-block;
    transition: all .4s;
    position: absolute;
    height: 3px;
    width: 100%;
}

#mainvisual span::before{
    content: "";
    display: inline-block;
    position: absolute;
    left: 25%;
    height: 3px;
    border-radius: 2px;
    background: #fff;

    transform: rotate(-33deg);
    width: 50%;

    animation: xrosLeft 3s ease forwards;
    animation-delay:2s;
}

#mainvisual span::after{
    content: "";
    display: inline-block;
    transition: all .4s;
    position: absolute;
    right: 5%;
    height: 3px;
    border-radius: 2px;
    background: #fff;

    transform: rotate(33deg);
    width: 90%;

    animation: xrosRight 3s ease forwards;
    animation-delay:2s;

}

@keyframes xrosLeft{
    0%{
        transform: rotate(0deg);
        width: 0%;
        opacity: 0;
        left: 0%;
    }
    25%{
        transform: rotate(0deg);
        width: 50%;
        opacity: 1;
        left: 0%;
    }
    50%{
        transform: rotate(0deg);
        width: 0%;
        left: 50%;
    }
    51%{
        transform: rotate(-33deg);
        width: 0%;
        left: 50%;
    }
    75%{
        width: 50%;
        left: 25%;
    }
    80%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@keyframes xrosRight{
    0%{
        transform: rotate(0deg);
        width: 0%;
        opacity: 0;
        right: 0%;
    }
    25%{
        transform: rotate(0deg);
        width: 50%;
        opacity: 1;
        right: 0%;
    }
    50%{
        transform: rotate(0deg);
        width: 0%;
        right: 50%;
    }
    51%{
        transform: rotate(33deg);
        width: 0%;
        right: 50%;
    }
    75%{
        width: 90%;
        right: 5%;
    }
    80%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}





/* about */

.aboutWrapper{
    margin-top: 7%;
}

.aboutContainer{
    display: flex;
    margin-bottom: 7%;
}

.aboutContainer img{
    width: 50%;
    aspect-ratio: 8/9;
    object-fit: cover;
}

.aboutTextSide{
    padding: 5% 0;
    width: 40%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aboutTitle::after{
    content: "ABOUT US";
    font-weight: 700;
    font-size: 5rem;
    line-height: 81px;
    font-family: 'Noto Serif JP', serif;
}

.mark span{
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #FFEE6E 0%);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 26px;
}
.firstMark{
    margin-bottom: 3%;
}

.aboutText p{
    font-size: 1.1rem;
    margin-bottom: 5%;
}
.aboutText p:nth-child(1){
    margin-top: 5%;
}

.border-img{
    width: 100%;
}






/* servise */

.serviceWrapper{
    background: linear-gradient(180deg, rgba(0, 56, 130, 0.3) 0%, rgba(43, 118, 217, 0) 69.27%, rgba(43, 118, 217, 0.3) 100%), linear-gradient(196.03deg, rgba(128, 210, 242, 0.7) 0%, rgba(128, 210, 242, 0) 52.6%, rgba(128, 210, 242, 0.7) 100%, rgba(128, 210, 242, 0.625443) 100%), #2B76D9;
    padding: 10% 0;
}

.serviceContainer{
    width: 90%;
    margin: 0 auto;
}

.titleContainer{
    display: flex;
}

.serviceTitle{
    width: 35%;
}

.serviceAfter h3{
    font-weight: 700;
    font-size: 1rem;
    line-height: 16px;
    color: #FFFFFF;
}

.serviceTitle h1{
    font-weight: 700;
    font-size: 2rem;
    color: #FFFFFF;
    margin-top: 3%;
}

.titleContainer p{
    font-style: normal;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 30px;
    width: 35%;
    margin-top: 2%;
}

.serviceCards{
    width: 100%;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.4vw, 32px);
    margin-top: 4%;
}

.serviceCard{
    position: relative;
}

.serviceCard__link{
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 18px 40px -20px rgba(0, 12, 40, .6);
    transition: transform .5s cubic-bezier(.22,.85,.32,1), box-shadow .5s ease;
}

.serviceCard__link:hover,
.serviceCard__link:focus-visible{
    transform: translateY(-10px);
    box-shadow: 0 30px 50px -18px rgba(0, 12, 40, .7);
}

.serviceCard__link:focus-visible{
    outline: 2px solid #FFEE6E;
    outline-offset: 4px;
}

.serviceCard__link::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(2, 10, 30, .28);
    opacity: 0;
    transition: opacity .5s ease;
}

.serviceCard__link:hover::before,
.serviceCard__link:focus-visible::before{
    opacity: 1;
}

.serviceCard__media{
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.serviceCard__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transition: transform .8s cubic-bezier(.22,.85,.32,1);
}

.serviceCard:nth-child(2) .serviceCard__media img{
    object-position: 68% 50%;
}

.serviceCard__link:hover .serviceCard__media img,
.serviceCard__link:focus-visible .serviceCard__media img{
    transform: scale(1.09);
}

.serviceCard__media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 18, 46, 0) 34%, rgba(3, 18, 46, .58) 64%, rgba(2, 12, 34, .93) 100%);
}

.serviceCard__body{
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 22px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 8, 24, .7), 0 2px 12px rgba(0, 8, 24, .45);
}

.serviceCard__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.serviceCard__index{
    font-family: 'Noto Serif JP', serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #FFEE6E;
}

.serviceCard__icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #FFEE6E;
}

.serviceCard__icon svg{
    width: 1.05rem;
    height: 1.05rem;
}

.serviceCard__en{
    margin-top: 16px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .78);
}

.serviceCard__ja{
    margin-top: 6px;
    font-weight: 700;
    font-size: clamp(1.35rem, .8rem + 1.4vw, 1.9rem);
    line-height: 1.35;
}

.serviceCard__desc{
    margin-top: 10px;
    font-size: .82rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .86);
}

.serviceCard__more{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: #FFEE6E;
}

.serviceCard__arrow{
    display: inline-block;
    transition: transform .35s ease;
}

.serviceCard__link:hover .serviceCard__arrow,
.serviceCard__link:focus-visible .serviceCard__arrow{
    transform: translateX(6px);
}

.buttons{
    width: 50%;
    margin-top: 3%;
}







/* clinic */

.clinicContainer{
    margin-top: 5%;
}

.clinicContainer{
    display: flex;
}

.clinicContainer img{
    width: 50%;
}

.clinicTextSide{
    width: 40%;
    padding: 1% 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clinicTextSide h1{
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 81px;
    color: #333;
}

.clinicTextSide p{
    margin: 7% 0;
}








@media (max-width:768px){

    /* about */

    .aboutWrapper{
        margin-top: 7%;
        width: 100%;
    }

    .aboutContainer{
        display: flex;
        flex-direction: column;
        margin-bottom: 7%;
    }

    .aboutContainer img{
        width: 100%;
    }

    .aboutTextSide{
        padding: 0;
        width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .aboutTitle::after{
        content: "ABOUT US";
        font-weight: 700;
        font-size: 3.5rem;
        line-height: 81px;
        font-family: 'Noto Serif JP', serif;
    }

    .mark span{
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #FFEE6E 0%);
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 26px;
    }
    .firstMark{
        margin-bottom: 3%;
    }

    .aboutText p{
        font-size: 1.1rem;
    
    }

    .border-img{
        width: 100%;
    }





    /* servise */

    .serviceContainer{
        width: 90%;
        margin: 0 auto;
    }

    .titleContainer{
        flex-direction: column;
    }

    .serviceTitle{
        width: 95%;
    }

    .serviceAfter h3{
        font-weight: 700;
        font-size: 1rem;
        line-height: 16px;
        color: #FFFFFF;
    }

    .serviceTitle h1{
        font-weight: 700;
        font-size: 2rem;
        color: #FFFFFF;
        margin-top: 3%;
    }

    .titleContainer p{
        font-style: normal;
        font-weight: 500;
        font-size: 0.8rem;
        line-height: 30px;
        width: 95%;
        margin-top: 2%;
    }

    .serviceCards{
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 8%;
    }

    .serviceCard__link{
        aspect-ratio: 4 / 3.1;
    }

    .buttons{
        width: 80%;
        margin: 3% auto 0 auto;
    }




    /* スライド部分 */
    #photoSlide h1{
        width: fit-content;
    }
    #photoSlide h1 img{
        margin: 7% auto 0 auto;
        width: 100%;
    }




    /* clinic */

    .clinicContainer{
        margin-top: 5%;
    }

    .clinicContainer{
        display: flex;
        flex-direction: column;
    }

    .clinicContainer img{
        width: 100%;
    }

    .clinicTextSide{
        width: 95vw;
        padding: 0%;
        margin: 0 auto;
        display: block;
    }

    .clinicTextSide h1{
        font-weight: 700;
        font-size: 3.5rem;
        line-height: 81px;
        color: #333;
    }

    .clinicTextSide p{
        margin: 7% 0;
    }

}





@media (min-width:769px) and (max-width:992px){
    /* about */

    .aboutWrapper{
        margin-top: 7%;
        width: 100%;
    }

    .aboutContainer{
        display: flex;
        margin-bottom: 7%;
    }

    .aboutContainer img{
        width: 50%;
    }

    .aboutTextSide{
        padding: 0;
        width: 45%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .aboutTitle::after{
        content: "ABOUT US";
        font-weight: 700;
        font-size: 3rem;
        line-height: 81px;
        font-family: 'Noto Serif JP', serif;
    }

    .mark span{
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #FFEE6E 0%);
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 26px;
    }
    .firstMark{
        margin-bottom: 3%;
    }

    .aboutText p{
        font-size: 1.1rem;
    
    }

    .border-img{
        width: 100%;
    }





    .serviceContainer{
        width: 90%;
        margin: 0 auto;
    }

    .titleContainer{
        flex-direction: column;
    }

    .serviceTitle{
        width: 80%;
    }

    .serviceAfter h3{
        font-weight: 700;
        font-size: 1rem;
        line-height: 16px;
        color: #FFFFFF;
    }

    .serviceTitle h1{
        font-weight: 700;
        font-size: 2rem;
        color: #FFFFFF;
        margin-top: 3%;
    }

    .titleContainer p{
        font-style: normal;
        font-weight: 500;
        font-size: 0.8rem;
        line-height: 30px;
        width: 95%;
        margin-top: 2%;
    }

    .serviceCards{
        gap: 16px;
    }

    .buttons{
        width: 80%;
        margin: 3% 0;
    }





        /* clinic */

    .clinicContainer{
        margin-top: 5%;
    }

    .clinicContainer{
        display: flex;
    }

    .clinicTextSide{
        width: 45%;
        padding: 0%;
        margin: 0 auto;
        display: block;
    }

    .clinicTextSide h1{
        font-weight: 700;
        font-size: 3rem;
        line-height: 70px;
        color: #333;
    }

    .clinicTextSide p{
        margin: 7% 0;
    }
}






@media (min-width: 1200px) {
    
    .serviceContainer{
        width:70%;
        margin: 0 auto;
    }

    .serviceCards{
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce){

    .serviceCard__link,
    .serviceCard__link::before,
    .serviceCard__media img,
    .serviceCard__arrow{
        transition: none;
    }

    .serviceCard__link:hover,
    .serviceCard__link:focus-visible{
        transform: none;
    }

    .serviceCard__link:hover .serviceCard__media img,
    .serviceCard__link:focus-visible .serviceCard__media img{
        transform: none;
    }

}
