@font-face {
    font-family: "マキナスFlat";
    src: local("Makinas-4-Flat"),
    local("Makinas 4 Flat"),
    local("マキナス 4 Flat"),
    url("../assets/fonts/Makinas-4-Flat-sub.woff2");
}

html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
@media screen and (max-width: 999px) {
    html {
        font-size: 15pt;
    }
}

body {
    background-color: rgb(71, 97, 133);
    background-image: url("../core/pictures/bg.png");
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
}
@media screen and (min-width: 1280px) {
    body {
        font-family: 'M PLUS Rounded 1c', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    }
}

.hidden {
    display: none !important;
}

.hamburger-menu {
    z-index: 22;
}

.root {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    --footer-height: 2.5rem;
}

.body {
    width: 100%;
    height: 100%;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    --login-button-height: 5rem;

    img[alt="logo"] {
        max-width: 100vw;
    }
}

.buttons-area {
    height: var(--login-button-height);
    margin-bottom: 10vw;
    display: flex;
    flex-flow: row;
    box-sizing: border-box;
    --button-width: 15rem;
    --number-of-buttons: 3;
    width: calc((var(--button-width) * var(--number-of-buttons)) + (5rem * (var(--number-of-buttons) - 1)));
    align-items: center;
    justify-content: space-between;
    margin-top: 8rem;
}
@media all and (max-width: 999px) {
    .buttons-area {
        width: 100%;
        --button-height: 4rem;
        height: calc((var(--button-height) * var(--number-of-buttons)) + (2rem * (var(--number-of-buttons) - 1)));
        flex-flow: column;
        margin-top: 4rem;
    }
}
.buttons-area.hidden {
    display: none;
}
.buttons-area button.to-login {
    height: 100%;
    width: var(--button-width);
    font-size: inherit;
    margin: 0;
}
@media all and (max-width: 999px) {
    .buttons-area button.to-login {
        height: var(--button-height);
    }
}

a.content[href] {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 150%;
    font-family: "マキナスFlat", sans-serif;
    border-radius: 1em;
    filter: brightness(130%);
    border: 3px solid;
    text-decoration: none;
    color: inherit;
    --background-opacity: 0.9;
}
a.content[href]:hover {
    filter: none;
    cursor: pointer;
}

.hub {
    width: 90%;
    height: auto;
    display: flex;
    flex-flow: row;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto 2em auto;
    font-size: xxx-large;

    @media screen and (max-width: 999px) {
        font-size: xx-large;
    }

    @media screen and (max-width: 599px) {
        font-size: x-large;
    }

    @media screen and (max-width: 479px) {
        font-size: large;
    }
}
.hub > a {
    width: min(40%, min(16em, 48vw));
    padding: 1em 0;
}
.hub > a.chevalier {
    background-color: rgba(var(--chevalier-theme-color-r), var(--chevalier-theme-color-g), var(--chevalier-theme-color-b), var(--background-opacity));
    border-color: #6d666c;
    margin-right: 10vw;
}
.hub > a.fiancee {
    background-color: rgba(var(--fiancee-theme-color-r), var(--fiancee-theme-color-g), var(--fiancee-theme-color-b), var(--background-opacity));
    border-color: #896f64;
}

a.content.mine {
    width: 15em;
    height: 3em;
    background-color: rgba(var(--neutral-theme-light-color-r), var(--neutral-theme-light-color-g), var(--neutral-theme-light-color-b), calc(var(--background-opacity) * 0.5));
    border-color: var(--neutral-theme-color-rgb);
}

#login_with_twitter {
    position: relative;

    &::after {
        content: "（非推奨）";
        font-size: medium;
        position: absolute;
        bottom: 0.25em;
        left: 0;
        right: 0;
        height: auto;
    }
}

.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    z-index: 11;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background-color: rgba(var(--neutral-theme-color-r), var(--neutral-theme-color-g), var(--neutral-theme-color-b), 0.12);
}
.footer > .copyright {
    font-size: 80%;
}
