
/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    text-align: center;
    color: #fff;
}

/* Loading画像中央配置　*/
#splash_text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 100%;
}

/*割れる画面のアニメーション*/
.loader_cover {
    width: 100%;
    height: 50%;
    background-color: #333;
    transition: all .2s cubic-bezier(.04, .435, .315, .9);
    transform: scaleY(1);
}

/*上の画面*/
.loader_cover-up {
    transform-origin: center top;
}

/*下の画面*/
.loader_cover-down {
    position: absolute;
    bottom: 0;
    transform-origin: center bottom;
}

div#position{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 2.5rem;
}

.content {
    transition: opacity 1s ease;
}

#fade-content {
    font-size: 1.5rem;
    font-family: 'Yusei Magic', sans-serif;
    color: #493759;
}

/* Backgroud */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* button:hover */
.btn_red:hover {
    background-color: #e95464;
    cursor: pointer;
}

.btn_blue:hover {
    background-color: #5383c3;
    cursor: pointer;
}

.btn_yellow:hover {
    background-color: #f5e56b;
    cursor: pointer;
}

.btn_green:hover {
    background-color: #7ebeab;
    cursor: pointer;
}

.btn_black:hover {
    background-color: #2b2b2b;
    cursor: pointer;
}

.btn_purple:hover {
    background-color: #c0a2c7;
    cursor: pointer;
}

.btn_white:hover {
    background-color: #f7fcfe;
    cursor: pointer;
}


/* :root は全体で使えるCSS変数を定義する場所 */
:root {
    --cr-main-1: #4d5aaf;
    --cr-main-2: #df7163;
    --cr-1: color-mix(in srgb, var(--cr-main-1), var(--cr-main-2) 20%);
    --cr-2: color-mix(in srgb, var(--cr-main-1), var(--cr-main-2) 35%);
    --cr-3: color-mix(in srgb, var(--cr-main-1), var(--cr-main-2) 50%);
    --cr-4: color-mix(in srgb, var(--cr-main-1), var(--cr-main-2) 65%);
    --cr-5: color-mix(in srgb, var(--cr-main-1), var(--cr-main-2) 80%);
}

html,
body {
    font-family: 'Yusei Magic', sans-serif;
    height: 100%;
}

body {
    display: grid;
    place-content: center;
    background: #eaf4fc;
}

.blobs {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: blur(140px);
}

.blob {
    width: max(240px, 28vw);
    aspect-ratio: 1;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
}

.blob:nth-of-type(1) {
    background: var(--cr-main-1);
}

.blob:nth-of-type(2) {
    background: var(--cr-main-2);
}

.blob:nth-of-type(3) {
    background: var(--cr-1);
}

.blob:nth-of-type(4) {
    background: whitesmoke;
}

.blob:nth-of-type(5) {
    background: var(--cr-3);
}

.blob:nth-of-type(6) {
    background: var(--cr-4);
}

.blob:nth-of-type(7) {
    background: var(--cr-2);
}

h2 {
    font-size: clamp(24px, 6vw, 64px);
    max-width: 400px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.8;
    mix-blend-mode: overlay;
}

