section {
    padding: 2rem;
    width: 70%;
    border: 2px solid silver;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 5% auto;
    background-color: #ffffff;
    /* リンク設定（共通） */
    & a {
        text-decoration: underline;
        font-size: 16px;
    }
    @media (hover: hover) {
        & a:hover {
            text-decoration: none !important;
        }
    }
    & a.disabled {
        color:#333;
        pointer-events: none;
        opacity: 0.5; 
        cursor: not-allowed;
        text-decoration: none !important;
    }
    /* タイトル（共通） */
    & div.title {
        font-size: 36px;
        color:#333;
        text-align: center;
        margin: 1rem 0;
    }
    /* 説明（共通） */
    & div.description {
        font-size: 16px;
        width: 80%;
        margin: 3% auto 0 auto;
    }
    /* 入力エリア（共通） */
    & div.input-wrapper {
        position: relative;
        display: grid;
        margin: 5% 20%;
        align-items: center;
        & input,
        & input:hover,
        & input:focus {
            width: 85%;
            font-size: 22px;
            border-radius: 5px;
            border: 1px lightgrey solid;
            outline: 0;
            box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
            padding: 3% 5%;
        }
        & input:-webkit-autofill,
        & input:-webkit-autofill:hover, 
        & input:-webkit-autofill:focus,
        & input:-webkit-autofill:active {
            border: 1px lightgrey solid !important;
            border-radius: 5px !important;
            box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3) !important;
            -webkit-text-fill-color: #000000 !important;
            transition: background-color 9999s ease-in-out 0s;
        }
    }
    /* エラーメッセージ（共通） */
    & .err-txt {
        grid-row: 2;
        display: inline-block;
        display: none;
        font-size:14px; font-weight:bold; color: #fff;
        background: #f00;
        box-sizing: border-box;
        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        -o-border-radius: 4px;
        -ms-border-radius: 4px; 
        position: absolute;
        margin: 5px 0 5px 0;
        padding: 5px 10px;
    }
    & .err-txt:after{
        content: "";
        position: absolute;
        top: -13px;
        left: 35px;
        margin-left: -17px;
        border: 5px solid transparent;
        border-bottom: 10px solid #f00;
        z-index: 1;
    }

    & div.auth {
        text-align: center;
        /* ボタン（共通） */
        & button {
            font-size: 24px;
            border-radius: 5px;
            padding: 1rem 3rem;
            margin: 5%;
            box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
            transition: 0.2s;
        }
        & button:disabled {
            box-shadow: none;
            left: 2px;
            top: 2px;
            pointer-events: none;
            cursor: not-allowed;
        }
        @media (hover: hover) {
            & button:hover {
                cursor: pointer;
                opacity: 0.7;
            }
        }
        /* ボタン（認証メール送信ボタン、OTP認証ボタン） */
        & button#send-otp, & button#auth-otp {
            width: auto;
            color: #FFF;
            border: 1px var(--base-color) solid;
            background-color: var(--base-color);
        }
        & button#send-otp:disabled, & button#auth-otp:disabled {
            background-color: var(--base-color-light);
            color: #888888;
        }
        /* ボタン（認証用メール修正ボタン） */
        & button#update-mail {
            width: 70%;
            background-color: #FFF;
        }
        & button#update-mail:disabled {
            background-color: #464646
        }
    }


}

/* メールアドレス入力画面用 */
section.input-mail {
    & .err-txt {
        top: 10%;
    }
}

/* OTP認証画面用 */
section.auth-otp {
    & div.input-wrapper {
        grid-template-columns: 4fr 3fr;
        margin: 3% 10%;
    }
}

/* SP用 */
@media screen and (max-width: 640px) {
    section {
        padding: 1rem;
        width: 85%;
        margin: 5% auto !important;
        /* タイトル（共通） */
        & div.title {
            font-size: 32px;
            margin: 1rem auto;
            width: 90%;
        }
        /* 説明（SP） */
        & div.description {
            width: 95%;
            margin: 3% auto 0 auto;
        }
        & div.auth {
            /* ボタン（共通） */
            & button {
                font-size: 20px;
                padding: 1rem 2rem;
            }
            @media (hover: none) {
                & button:active {
                    cursor: pointer;
                    opacity: 0.7;
                }
            }
            /* ボタン（認証用メール修正ボタン） */
            & button#update-mail {
                width: 90%;
                padding: 1rem 0.5rem;
            }
        }
    }
    section.input-mail {
        & div.input-wrapper {
            margin: 10% 5% 15% 5% !important;
        }
    }
    section.auth-otp {
        & div.input-wrapper {
            margin: 5% !important;
            grid-template-columns: unset;
            & input,
            & input:hover,
            & input:focus {
                margin: 5% auto 10% auto;
            }
            & .err-txt {
                top: -30px;
            }
        }
    }

    
}