﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic', sans-serif;
    background-image: 
        url('img/login-img.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position:center;
}

.footer{
    font-size:18px;
    font-weight:bold;
    text-align:center;
    margin: 0 auto;
}

.r-h1 {
    font-size: 25px;
    color:black;
}

.r-div {
    width: 100%;
    padding: 50px 0px 10px 0px;
    margin: 0 auto;
    text-align: center;
    color:black;
}

.r-title {
    font-size: 28px;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.borderwhite {
    height:500px;
    width: 400px;
    padding: 10px;
    margin: 0 auto;
    margin-top:50px;
    background-color: rgba(255,255,255, .8);
    text-align: center;
}

.login {
    height: 260px;
    width: 350px;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
}


    .login input[type=text] {
        width: 250px;
        height: 30px;
        background: #f4a460;
        border: 1px solid black;
        border-radius: 2px;
        color: #fff;
        font-family: 'Exo', sans-serif;
        font-size: 16px;
        font-weight: 400;
        padding: 4px;
    }

    .login input[type=password] {
        width: 250px;
        height: 30px;
        background: #f0e68c;
        border: 1px solid black;
        border-radius: 2px;
        color: #fff;
        font-family: 'Exo', sans-serif;
        font-size: 16px;
        font-weight: 400;
        padding: 4px;
        margin-top: 10px;
    }

    .login input[type=submit] {
        width: 200px;
        height: 40px;
        background: #fffacd;
        border: 1px solid black;
        cursor: pointer;
        border-radius: 15px;
        color: black;
        font-family: 'Exo', sans-serif;
        font-size: 20px;
        font-weight: 500;
        padding: 6px;
        margin-top: 25px;
    }

        .login input[type=submit]:hover {
            opacity: 0.8;
        }

        .login input[type=submit]:active {
            opacity: 0.6;
        }

    .login input[type=text]:focus {
        outline: none;
        border: 1px solid #800000 /*rgba(255,255,255,0.9)*/;
    }

    .login input[type=password]:focus {
        outline: none;
        border: 1px solid #800000 /*rgba(255,255,255,0.9)*/;
    }

    .login input[type=submit]:focus {
        outline: none;
    }

    .login input[type=text]:focus,
    .login input[type=text]:valid,
    .login input[type=text]:-webkit-autofill {
        background-color: #f0e68c !important;
        -webkit-box-shadow: 0 0 0px 1000px #f4a460 inset; /* 背景を塗りつぶす */
        color: #000 !important; /* 文字色も指定しておくと安心 */
    }

    .login input[type=password],
    .login input[type=password]:focus,
    .login input[type=password]:-webkit-autofill {
        background-color: #f0e68c !important; /* 既存の背景色を維持 */
        -webkit-box-shadow: 0 0 0px 1000px #f0e68c inset; /* 背景を塗りつぶし */
        color: black !important; /* 文字色を黒に強制 */
    }

/*::-webkit-input-placeholder {
    color: rgba(255,255,255,0.6);
}

::-moz-input-placeholder {
    color: rgba(255,255,255,0.6);
}
*/

/* スマホ用（640px以下の時） */
@media screen and (max-width:640px) {


    .login {
        height: 260px;
        width: 300px;
    }

    .borderwhite {
        width: 300px;
    }

    .r-title {
        font-size: 20px;
    }
}
