:root {
    --System-Base-Color: #008EA0;
    --System-SubBase-Color: #d1ce00;
    --System-Font-Family: Hiragino Sans;
    --move-animation-foward: -50%;
    --move-animation-upDown: -50%;
    /*--Background-Image: url("../image/7125.jpg");*/

    --TextFontSize: 20px;
    --InputFontSize: 18px;
    --ButtonFontSize: 16px;
    --AnkerLinkFontSize: 14px;
    --DoubleFA_CodeInputFontSize: 50px;
}

body {
    /*background-image: var(--Background-Image);
    background-size: cover;*/
    background-color: #cfcfcf;
}

.Commontext {
    font-family: var(--System-Font-Family);
    font-size: var(--TextFontSize);
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
}

.FormBaseZone {
    position: absolute;
    padding: 48px;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 500px;
    transform: translate(-50%,-50%);
    border-radius: 12px;
    overflow: hidden;
}

.ttb .animation-bg {
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-name: PageAnime-ttb;
}

@keyframes PageAnime-ttb {
    0% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(var(--move-animation-foward), var(--move-animation-upDown));
    }
}

@layer LoginFormComponent {
    .AuthenticationTitle_Style {
        color: var(--System-Base-Color);
    }

    .LoginTitle_Style {
        color: var(--System-Base-Color);
    }

    .LoginForm {
        background-color: #c9c9c9;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 450px;
        height: 500px;
        transform: translate(-50%,-50%);
        text-align: center;
        display: inline-flex;
        padding: 48px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: #FFF;
        opacity: 0.88;
    }

    .LoginFormInput {
        padding: 10px 0;
        gap: 10px;
        margin: 10px 0;
    }

    .LoginFormInput input {
        margin: 3px auto;
        display: flex;
        height: 20px;
        width: 300px;
        padding: 10px 16px;
        border: none;
        outline: none;
        border-bottom: 2px solid #999;
        background: transparent;
        -webkit-appearance: none;
        appearance: none;
    }

    .LoginInput_Style input:focus{
        border-bottom-color: var(--System-Base-Color);
    }

    .AuthenticationTitle_Style input:focus{
        border-bottom-color: var(--System-Base-Color);
    }

    .LoginFormInput select {
        margin-top: 20px;
        margin-bottom: 30px;
        height: 30px;
        width: 150px;
        border: none;
        outline: none;
        border-bottom: 2px solid #999;
        text-align: center;
        background: transparent;
    }

    .LoginInput_Style select:focus {
        border-bottom-color: var(--System-Base-Color);
    }

    .AuthenticationTitle_Style select:focus{
        border-bottom-color: var(--System-Base-Color);
    }

    .LoginFormInput option {
        border: none;
        outline: none;
        opacity: 0;
    }

/*
    .LoginButton_Style {
        color: #FFF;
        display: flex;
        padding: 15px 60px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: var(--System-Base-Color);
        border: none;
        border-radius: 10px;
        margin: auto;
    }

    .LoginButton_Style:active{
        background: #007483;
    }

    .AuthenticationButton_Style {
        color: #FFF;
        display: flex;
        padding: 15px 60px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: var(--System-SubBase-Color);
        border: none;
        border-radius: 10px;
        margin: auto;
    }

    .AuthenticationButton_Style:active {
        background: #7a8300;
    }
    */

    :root {
        --button-motion-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
        --button-motion-duration: 0s;
        --button-scale-up: 1.05;
        --button-scale-down: 0.95;
    }

    @media (prefers-reduced-motion: no-preference) {
        :root {
        --button-motion-duration: 0.3s;
        }
    }

    .LoginButton {
        color: #FFF;
        display: flex;
        padding: 15px 60px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border: none;
        border-radius: 10px;
        margin: auto;
        appearance: none;
        background: transparent;
        cursor: pointer;
        font: inherit;
        font-weight: 500;
        line-height: 1;
        position: relative;
        transition: filter var(--button-motion-duration) var(--button-motion-ease);
    }

    .LoginButton:hover {
        filter: brightness(1.1);
    }

    .LoginButton:active {
        filter: brightness(0.9);
    }

    .LoginButton__content {
        display: block;
        position: relative;
        transition: transform var(--button-motion-duration) var(--button-motion-ease);
    }

    .LoginButton:hover .LoginButton__content {
        transform: scale(var(--button-scale-up));
    }

    .LoginButton:active .LoginButton__content {
        transform: scale(var(--button-scale-down));
    }

    .LoginButton__shape {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        overflow: visible;
        transition: transform var(--button-motion-duration) var(--button-motion-ease);
    }

    @supports not (d: path('')) {
        .LoginButton:hover .LoginButton__shape {
        transform: scale(var(--button-scale-up));
        }

        .LoginButton:active .LoginButton__shape {
        transform: scale(var(--button-scale-down));
        }
    }

    .LoginButton_Style > .LoginButton__shape > .LoginButton__path {
        fill: var(--System-Base-Color);
        transition: d var(--button-motion-duration) var(--button-motion-ease);
    }

    .AuthenticationButton_Style > .LoginButton__shape > .LoginButton__path {
        fill: var(--System-Base-Color);
        transition: d var(--button-motion-duration) var(--button-motion-ease);
    }

    .LoginButton:hover .LoginButton__path {
        d: path("M0,0 C0,-5 100,-5 100,0 C105,0 105,100 100,100 C100,105 0,105 0,100 C-5,100 -5,0 0,0 z");
    }

    .LoginButton:active .LoginButton__path {
        d: path("M0,0 C30,10 70,10 100,0 C95,30 95,70 100,100 C70,90 30,90 0,100 C5,70 5,30 0,0 z");
    }

    .LoginButtonArea {
        display: flex;
    }

    .LoginForm a {
        margin-top: 10px;
        color: #000000;
        font-family: var(--System-Font-Family);
        font-size: var(--AnkerLinkFontSize);
    }
}

@layer CreateUserFormComponent {
    .CreateUserForm {
        background-color: #c9c9c9;
        position: absolute;
        top: 50%;
        left: calc(50% + 546px);
        width: 450px;
        height: 500px;
        transform: translate(-50%,-50%);
        text-align: center;
        display: inline-flex;
        padding: 48px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: #FFF;
        opacity: 0.88;
        color: var(--System-Base-Color);
    }

    .CreateUserForm input {
        font-family: var(--System-Font-Family);
        font-size: var(--InputFontSize);
        margin: 3px 0px;
        display: flex;
        height: 20px;
        width: 250px;
        padding: 12px 16px;
        border: none;
        outline: none;
        border-bottom: 2px solid #999;
        background: transparent;
    }

    .ReturnToLoginRight {
        position: absolute;
        top: 30px;
        left: 5px;
        border: none;
        background: #FFF;
    }

    .CreateNewUserAccount_InputArea {
        margin-bottom: 30px;
    }

    .CreateNewAccountButton {
        font-family: var(--System-Font-Family);
        font-size: var(--ButtonFontSize);
        color: #FFF;
        display: flex;
        padding: 5px 50px;
        justify-content: center;
        align-items: center;
        background: var(--System-Base-Color);
        border: none;
        border-radius: 10px;
        height: 50px;
    }

    .CreateNewAccountButton:active {
        background: #007888;
    }

    .ChangeLanguage2 {
        width: 150px;
        border: none;
        outline: none;
        border-bottom: 2px solid #999;
        text-align: center;
        background: transparent;
    }
}

@layer ResetPasswordFormComponent {
    .ResetPasswordForm {
        background-color: #c9c9c9;
        position: absolute;
        top: 50%;
        left: calc(50% - 546px);
        width: 450px;
        height: 500px;
        transform: translate(-50%,-50%);
        text-align: center;
        display: inline-flex;
        padding: 48px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: #FFF;
        opacity: 0.88;
        color: var(--System-Base-Color);
    }

    .ResetPasswordForm input {
        font-family: var(--System-Font-Family);
        font-size: var(--InputFontSize);
        margin: 20px 0px;
        display: flex;
        height: 20px;
        width: 300px;
        padding: 12px 16px;
        border: none;
        outline: none;
        border-bottom: 2px solid #999;
        background: transparent;
    }

    .ResetPasswordButton {
        font-family: var(--System-Font-Family);
        font-size: var(--ButtonFontSize);
        margin-top: 40px;
        margin-bottom: 100px;
        color: #FFF;
        display: flex;
        padding: 5px 50px;
        justify-content: center;
        align-items: center;
        background: #c7c42e;
        border: none;
        border-radius: 10px;
        height: 40px;
    }

    .ResetPasswordButton:active {
        background: #a5a325;
    }

    @media screen and (max-width: 480px) { /*For Phone*/
        .ReturnToLoginLeft {
            position: absolute;
            top: 30px;
            right: 70px;
            border: none;
            background: #FFF;
        }
    }
    @media screen and (min-width: 480px) { /*For PC*/
        .ReturnToLoginLeft {
            position: absolute;
            top: 30px;
            right: 5px;
            border: none;
            background: #FFF;
        }
    }
}

@layer DoubleFAComponent {
    .rmgcplogin_DoubleFA {
        background-color: #c9c9c9;
        position: absolute;
        top: calc(50% - 596px);
        left: 50%;
        width: 450px;
        height: 500px;
        transform: translate(-50%,-50%);
        text-align: center;
        display: inline-flex;
        padding: 48px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: #FFF;
        opacity: 0.88;
        color: var(--System-Base-Color);
    }

    .rmgcplogin_DoubleFA > .DoubleFA_OKButton {
        color: #FFF;
        display: flex;
        padding: 10px 60px;
        justify-content: center;
        align-items: center;
        background: var(--System-Base-Color);
        border: none;
        border-radius: 10px;
        margin: 20px;
    }

    .rmgcplogin_DoubleFA > .DoubleFA_OKButton:active {
        background: #007483;
    }

    .rmgcplogin_DoubleFA > .DoubleFA_CancelButton {
        color: #FFF;
        display: flex;
        padding: 10px 50px;
        justify-content: center;
        align-items: center;
        background: #b9b9b9;
        border: none;
        border-radius: 10px;
        margin: 40px;
    }

    .rmgcplogin_DoubleFA > .DoubleFA_CancelButton:active {
        background: #919191;
    }

    .rmgcplogin_DoubleFA > .DoubleFA_CancelButton {
        color: #FFF;
        display: flex;
        padding: 10px 50px;
        justify-content: center;
        align-items: center;
        background: #b9b9b9;
        border: none;
        border-radius: 10px;
        margin: 40px;
    }

    .rmgcplogin_DoubleFA > .DoubleFA_CodeInput {
        margin: 40px;
        display: flex;
        height: 60px;
        width: 300px;
        padding: 10px 16px;
        background: transparent;
        font-size: var(--DoubleFA_CodeInputFontSize);
    }

    .rmgcplogin_DoubleFA > p{
        width: 300px;
    }

	/* 通常の文字サイズやフォント・色はここで維持する */
	#lang {
	    font-size: inherit; /* or 好きなサイズ */
	    font-family: inherit;
	    color: #888; /* 初期はプレースホルダー色 */
	}
	
	/* 有効な値を選択した時だけ黒にする */
	#lang:not(:invalid) {
	    color: #000;
	}
}
