:root {
    --font-size: 5vw;
    --text-color: black;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: "UD Digi Kyokasho N-R";
}

.container {
    width: 100%;
    height: 100vh;
    max-width: 800px;
    padding-bottom: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.align-bottom {
    align-self: flex-end;
}

.section-content {
    font-weight: bold;
    font-size: calc(var(--font-size) * 1.3);
    font-family: "UD Digi Kyokasho N-B";
}

.title-content {
    font-weight: bold;
    font-size: calc(var(--font-size) * 1.5);
    font-family: "UD Digi Kyokasho N-B";
}

.text-content {
    flex: 5;
    writing-mode: vertical-rl;
    display: flex;
    overflow: auto;
    flex-direction: column;
    justify-content: center;
}

.text-content h1,
.text-content p {
    margin: 0;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 0;
}

.image-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button-content {
    flex: 1;
    display: flex;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.border-content {
    border: 1px solid black;
    color: var(--text-color);
}

button {
    font-size: calc(var(--font-size) * 1.3);
}

p {
    font-size: var(--font-size);
}

@media (min-width: 768px) {
    :root {
        --font-size: 16px;
        --text-color: black;
    }

    .title-content {
        font-weight: bold;
        font-size: calc(var(--font-size) * 3);
    }
}