html {
    font-size: 1vw;
}

body {
    font-family: dnp-shuei-gothic-kin-std, sans-serif;
    font-weight: 600;
    font-feature-settings: "palt";
}

.wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li {
    font-family: dnp-shuei-gothic-kin-std, sans-serif;
    font-weight: 600;
    line-height: 1.5;
    font-feature-settings: "palt";
    letter-spacing: .1em;
}

p {
    font-size: 2.25rem;
}

main {
    padding: 5rem 5rem min(12vw, 12.5vh) 5rem;
    position: fixed;
    height: calc(100dvh - min(18vw, 18.75vh));
    overflow-y: scroll;
    width: 100%;
}

.en {
    letter-spacing: -.05em;
}

h1 {
    writing-mode: vertical-rl;
    position: absolute;
    left: 0;
    bottom: calc(1em + min(10vw, 15vh));
    font-size: min(6vh, 3.6vw);
    letter-spacing: -.025em;
    line-height: 1;
    z-index: 100;
}

h2 {
    font-size: min(8vh, 4.5vw);
    height: 100%;
    margin: 0;
}

h2 .cell {
    min-height: min(15vh, 8.1vw);
}

h2 .en {
    font-size: .85em;
}


.bg_logo {
    width: calc(100% - 5rem);
    height: min(12vw, 12.5vh);
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    justify-content: space-between;
    background: #ffffff;
}


.bg_logo img {
    height: min(12vw, 12.5vh);
}

.bg_logo .border {
    display: block;
    width: 101%;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 28.5%, rgba(0, 0, 0, 1) 28.5%, rgba(0, 0, 0, 1) 43%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 85.75%, rgba(0, 0, 0, 1) 85.75%);
    margin: 0 -.5vw;
    background-position: top right;
}

/* Medium */
@media screen and (max-width: 63.9375em) {}

/* Small */
@media screen and (max-width: 39.9375em) {

    .wrapper {
        min-height: 432px;
        position: relative;
    }

    main {
        padding-left: 20rem;
        height: 100dvh;
        min-height: 432px;
    }

    main .grid-y {
        justify-content: center;
    }

    h1 {
        writing-mode: horizontal-tb;
        right: auto;
        left: 10rem;
        bottom: 8rem;
        letter-spacing: .025em;
        font-size: 5rem;
        position: fixed;
    }

    h2 {
        font-size: min(18vh, 6.75vw);
        height: 100%;
        margin: 0;
        text-align: right;
    }

    h2 .cell {
        min-height: min(15vh, 8.1vw);
    }

    p {
        font-size: 5rem;
        text-align: right;
    }

    .bg_logo {
        height: calc(100% - 10rem);
        width: 10rem;
        position: fixed;
        bottom: 5rem;
        top: 5rem;
        left: 5rem;
        right: auto;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        min-height: calc(430px - 10rem);
    }

    .bg_logo img {
        width: 10rem;
        height: auto;
    }

    .bg_logo .border {
        display: block;
        height: 100%;
        background: #ffffff;
        background: linear-gradient(-90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 28.5%, rgba(0, 0, 0, 1) 28.5%, rgba(0, 0, 0, 1) 43%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 85.75%, rgba(0, 0, 0, 1) 85.75%);
        width: 10rem;
        margin: -.5vw 0;
    }

}