@charset "UTF-8";

.container{
    width: 100%;
    height: 100vh;
    position: relative;

}

section{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#clock{
    
    font-size: clamp(8rem, 0.566rem + 13.99vw, 14rem);
    font-family: 'Lilita One', cursive;
    letter-spacing: 2rem;
    color: rgb(0, 196, 176);
    white-space: nowrap;
    
}

#clock span{
    display: inline-block;
    text-align: center;
    width: clamp(5rem, 0.044rem + 9.33vw, 9rem);

}

#clock span:nth-of-type(3){
    width: clamp(3rem, 0.522rem + 4.66vw, 5rem);
    margin-left: 1rem;
}

#clock span:nth-of-type(6){
    width: clamp(3rem, 0.522rem + 4.66vw, 5rem);
    margin-left: 1rem;
}

.img{
    width: 400px;
    height: auto;
    align-items: end;
    position: absolute;
    bottom: 0;
    right: 0;
}

img{
    max-width: 100%;
}

#carrendar{
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -30%);
    font-size: 3rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: rgb(127, 164, 215);
    font-weight: bold;
}





/* モバイル版 */
@media(max-width:850px) {
    #clock{
    
        font-size: clamp(3rem, -1rem + 20vw, 14rem);
        font-family: 'Lilita One', cursive;
        letter-spacing: 2rem;
        color: rgb(0, 196, 176);
        white-space: nowrap;
        
    }

    #clock span{
        display: inline-block;
        text-align: center;
        width: clamp(2rem, -0.545rem + 12.73vw, 9rem);
    
    }

    #clock span:nth-of-type(3){
        width: clamp(0.5rem, -0.503rem + 4.59vw, 5rem);
        margin-right: clamp(1.2rem, 1.133rem + 0.31vw, 1.5rem);
       /*  margin-left: clamp(0.1rem, -0.101rem + 0.92vw, 1rem); */
    }
    
    #clock span:nth-of-type(6){
        width: clamp(0.5rem, -0.503rem + 4.59vw, 5rem);
        margin-right: clamp(1.2rem, 1.133rem + 0.31vw, 1.5rem);
        /* margin-left: clamp(0.1rem, -0.101rem + 0.92vw, 1rem); */
    }

    #carrendar{
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -40%);
        font-size: clamp(1rem, 0.6rem + 2vw, 3rem);
        font-family: 'M PLUS Rounded 1c', sans-serif;
        color: rgb(108, 124, 178);
    }




}


@media(max-width:500px){
    #carrendar{
        position: absolute;
        top: 38%;
        left: 50%;
        transform: translate(-50%, -40%);
        font-size: clamp(1rem, 0.6rem + 2vw, 3rem);
        font-family: 'M PLUS Rounded 1c', sans-serif;
        color: rgb(108, 124, 178);
    }
}
