/* 入試説明会2026 トップページ */

.container {
    font-family: sans-serif;
    position: relative;
    display: grid;
    place-items: center;
    width: 95%;
    /* max-width: 750px; */
    height: 95dvh;
    margin: 2.5dvh auto;
    overflow: hidden;
    background-image: url('../img/main-background.jpg?20260907');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: .25rem;
    max-width: 90%;
    background-color: #fffc;

    & button {
        height: 2.5em;
        width: 10em;
        font-size: 1.15rem;
        background-color: #fff;
        border-color: #bc0301;
        color: #bc0301;
        border-radius: .15em;
    }

    & p {
        line-height: 1.5;
        background: #fff;
        border-radius: .25em;
        padding: .5em 1em;
        margin-bottom: 2em;

        & span {
            color: #bc0301;
            font-weight: bold;
        }
    }
}

/* バックドア通過中（申込開始日前でも申込できる状態）であることの明示 */
.preview-badge {
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bc0301;
    color: #fff;
    font-size: .8rem;
    padding: .25em 1em;
    border-radius: 1em;
    z-index: 3;
}

dialog {
    border: 1px solid #393939;
    border-radius: .25rem;
    background-color: #efefef;

    & h2 {
        font-size: 1rem;
        color: #bc0301;
    }

    & h2 + p {
        text-align: justify;
    }
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    & input {
        font-size: 1.25rem;
        text-align: center;
        padding: .25em .5em;
        border: 1px solid #ccc;
        border-radius: .25rem;
    }

    & .buttons {
        background-color: transparent;
    }
}

.inputs {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 15rem;

    & small {
        text-indent: -1em;
        margin-left: 2em;
        font-size: 75%;
        line-height: 1.3;
    }
}

.alert {
    position: absolute;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2em;
    color: red;
    font-size: 70%;
    text-align: center;
}

.none {
    display: none;
}
