@charset "UTF-8";

@font-face {
    font-family: "Noto Sans";
    src: url("../../fonts/NotoSans-VariableFont_wdth\,wght.ttf") format("truetype");
    font-display: swap;
}

/*var*/
:root {
    --Jp:"Noto Sans", "ヒラギノ角ゴ ProN", "游ゴシック", "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;

    --black: #2d2d2d;
    --key1: #D63384;
    --key2: #0292F5;
    --key3: #F2CE02;
    --key4: #E63946;
    --key5: #4CAF50;
}

html {
    font-size: 100vw / 72;
}

body {
    width: 100%;
    height: 100vh;
    position: relative;
}

#title {
    width: 40vw;
    height: 50%;
    margin: 0 auto;
    margin-left: 5%;
    background-image: url(../images/screen.svg);
    background-repeat: no-repeat;
    background-position: 50% 75%;
    background-size: contain;
}

#view {
    width: 40vw;
    height: 20vw;
    position: absolute;
    right: 11vw;
    top: 5%;
    z-index: 1;
}

#view>div {
    position: relative;
}

#view img {
    width: 40vw;
    height: 20vw;
    object-fit: cover;
}

#view .study {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(-5%, 50%);
    width: fit-content;
    padding: 1.75vw 5vw;
    background-color: #fff;
    z-index: 2;
    letter-spacing: 0.75rem;
    font-size: 1.2rem;
    font-family: var(--Jp);
    font-weight: 500;
    color: #2d2d2d;
}

#view .study:empty {
    display: none;
}

.shape {
    position: absolute;
    right: -5%;
    bottom: -5%;
    width: 7.5vw;
    height: 7.5vw;
    transition: .1s cubic-bezier(0, 0, 0.5, 1);
}

.shape.one {
    transform: scale(2, 0.5) translateX(-25%);
    background-color: var(--key1);
}

.shape.two {
    transform: scale(0.5, 1.5) translate(25%, -25%);
    background-color: var(--key2);
}

.shape.three {
    border-radius: 50%;
    background-color: var(--key3);
}

.shape.four {
    transform: rotate(45deg) scale(0.5, 1.25);
    background-color: var(--key4);
}

.shape.five {
    background-color: var(--key5);
}

#select {
    width: 95vw;
    height: 17.5vw;
    position: absolute;
    top: calc(100vh - 20vw);
    left: 2.5vw;
    display: flex;
    justify-content: space-between;
}

a {
    text-decoration: none;
}

.page {
    width: 17.5vw;
    height: 17.5vw;
    box-sizing: border-box;
    border: 1px solid #ccc;
    overflow: hidden;
}

.page img {
    width: 95%;
    height: 8.75vw;
    margin: 0 auto;
    margin-top: 5%;
    object-fit: cover;
}

h1 {
    width: 100%;
    margin: 0 auto;
    margin-top: 0.675vw;
    padding-left: 2vw;
    font-size: 2rem;
    color: var(--black);
    font-family: var(--Jp);
    position: relative;
}

h1::before {
    content: '';
    width: 1.5vw;
    height: 100%;
    position: absolute;
    left: 2.5%;
    top: 0;
}

.one h1::before {
    background-color: var(--key1);
}

.two h1::before {
    background-color: var(--key2);
}

.three h1::before {
    background-color: var(--key3);
}

.four h1::before {
    background-color: var(--key4);
}

.five h1::before {
    background-color: var(--key5);
}

#select .study {
    width: fit-content;
    margin: 0 auto;
    margin-left: 2.5%;
    margin-top: 7.5%;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0 1.5vw;
    background-color: var(--black);
    color: #fff;
    font-family: var(--Jp);
}

@media screen and (max-width: 768px) {
    #title {
        width: 90vw;
        height: 50vw;
        margin: 0 auto;
    }

    #view {
        display: none;
    }

    #select {
        width: 95vw;
        height: calc(100vh - 55vw);
        display: grid;
        position: unset;
        margin: 0 auto;
    }

    .page {
        width: 95vw;
        height: 108px;
        display: flex;
        position: relative;
    }

    .page img {
        position: absolute;
        right: 0;
        width: 216px;
        height: 108px;
        margin-top: 0;
    }

    h1 {
        width: calc(90vw - 216px);
        margin: 0;
        margin-left: 0vw;
        padding-left: 10vw;
        font-size: 1.5rem;
        align-content: center;
        text-wrap: none;
    }

    h1::before {
        width: 5vw;
        left: 0;
    }

    #select .study {
        position: absolute;
        right: 0;
        bottom: 0;
        margin: 0;
        width: 216px;
        font-size: 0.9rem;
        font-weight: 400;
        padding: 0.75vh 3vw;
        text-align: center;
    }
}

@media screen and (max-height: 640px) {

    #title,
    #view {
        display: none;
    }
}