@charset "utf-8";
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap'); */

* {
    font-family: inherit;
}

html {
    font-size: 1.0rem;
}

@media screen and (max-width: 1030px) {
    html {
        font-size: 0.8rem;
    }
}

body {
    position: relative;
    height: 100vh;
    margin: auto;
    align-content: center;
    background-color: #FFD43B;
    font-size: 1.5rem;
    font-family: "Noto Sans", "Noto Sans JP Black", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

button {
    font-family: "Noto Sans", "Noto Sans JP Black", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    border: none;
    cursor: pointer;
}

p {
    margin: 0;
}

.flex {
    display: flex;
}

.location-menu {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px;
}

#result .location-menu {
    justify-content: center;

}

.typed {
    color: #ffaa22;
}


/*** 遷移ボタン ***/
.move-btn {
    height: auto;
    padding: 1rem 5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    box-shadow: 0px 7px 0px 0px #D9D9D9;
    font-size: 1.3rem;
    font-weight: bold;
}

.move-btn:hover {
    background-color: #FFECA7;
    box-shadow: 0px 7px 0px 0px #D9D9D9;
}

/*********************************
    メニュー画面
*********************************/
/*** タイトル ***/
.menu h1 {
    position: relative;
    width: fit-content;
    font-size: 2.5rem;
    text-align: left;
    margin: 40px auto;
}

.menu h1 p {
    width: fit-content;
}

.h1-deco {
    display: flex;
    gap: 5px;
}

.h1-deco span {
    display: inline-block;
    width: calc(var(--fontSize) * 1.5);
    height: auto;
    aspect-ratio: 1;
    padding: 5px;
    text-align: center;
    align-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000;
    box-shadow: 0px 5px 0px 0px #D9D9D9;
    font-size: var(--fontSize);

    --fontSize: 4.0rem;
    --spanW: calc(100% / 12);
}

.menu h1 img {
    display: block;
    width: 70%;
    margin: auto;
}

@media screen and (max-width: 1315px) {
    .menu h1 span {
        --fontSize: 3.5rem
    }
}

@media screen and (max-width: 1200px) {
    .menu h1 span {
        --fontSize: 3.0rem
    }
}

@media screen and (max-width: 1030px) {
    .menu h1 span {
        --fontSize: 3.5rem
    }
}

@media screen and (max-width: 980px) {
    .menu h1 span {
        --fontSize: 3.0rem
    }
}

.font-1 {
    font-size: 1rem;
}

.container {
    display: grid;
    align-items: flex-end;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    margin: 1rem;
}

/*** view ***/
.view {
    padding: 10px 20px;
    background-color: #F2F2F2;
    border-radius: 20px;
    text-align: center;
}

/*** レベル数表示 ***/
.level-num {
    position: relative;
    display: flex;
    justify-content: center;
    width: fit-content;
    height: 80px;
    margin: 10px auto;
}

.level-num>button {
    position: absolute;
    top: -6px;
    padding: 15px 15px 10px;
    background-color: #FFD43B;
    box-shadow: 0px 7px 0px 0px #D9D9D9;
    cursor: pointer;
    transition: .3s;
}

.level-num>button:hover {
    box-shadow: 0px 1px 0px 0px #D9D9D9;
    top: 0px;
}

.level-num img {
    width: 50px;
    background-color: #fff;
    border-radius: 100px;
}

.level-num-left {
    border-radius: 15px 0 0 15px;
    left: -80px;
}

.level-num-right {
    border-radius: 0 15px 15px 0;
    right: -80px;
}

.level-num-view {
    width: 200px;
    height: 70px;
    margin: auto;
    align-content: center;
    background-color: #fff;
    border-top: 5px solid #D9D9D9;
    border-bottom: 5px solid #D9D9D9;
    font-size: 3.0rem;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

/*** レベル日本語表示 ***/
.level-text {
    margin: 0;
}

.level-text-course {
    width: 80%;
    margin: auto;
    padding: 1rem;
    background-color: #E5DBFF;
    border-radius: 15px;
    font-size: 1.5rem;
}

.level-text-detail {
    font-size: 1.2rem;
    font-family: "Noto Sans JP";
    margin: 5px 0;
}

/*** スタートテキスト ***/
.start-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.start-text img {
    width: 6%;
    height: auto;
}

.start-text span {
    display: inline-block;
    margin: 1rem 0 1rem 0;
    padding: 0.3rem 1rem;
    border-radius: 10px;
    background-color: #FFD43B;
    box-shadow: 0px 5px 0px 0px #D9D9D9;
    font-size: 2.0rem;
}

/*** ポイント ***/
.point {
    position: relative;
    padding: 20px;
    background-color: #FFF2CC;
    box-shadow: 0px 7px 0px 0px rgb(0, 0, 0, 0.4);
    color: #000;
    border: none;
    border-radius: 20px;
    text-align: center;
    font-size: 1.5rem;

}

.point:hover {
    opacity: 0.8;
}

.point>span {
    position: absolute;
    top: 0px;
    left: 5px;
    font-family: "UD デジタル 教科書体 NK";
    font-size: 8rem;
    font-weight: bold;
    color: #fff;
    z-index: 0;
}

.point>p {
    position: relative;
    z-index: 10;
    color: #000;
}

.small-text {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
}

.information {
    /* position: relative; */
    display: none;
}

.information>button {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%);
    z-index: 11;
}

.information>img {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    width: 60%;
}

.information>iframe {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.black-back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 5;
    opacity: 0.8;
}

.start-timer {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    z-index: 11;
    color: white;
    text-align: center;
    display: none;
    width: 100%;
}

/*********************************
    ゲーム画面
*********************************/
.game-screen {
    position: relative;
    display: none;
    min-height: calc(100vh - 50px);
    margin: 15px;
    padding: 8px 40px 5px;
    background-color: #F2F2F2;
    border-radius: 20px;
}

/* 入力ミス時の点滅 */
.is-miss {
    background-color: rgb(255, 193, 227);
}


.time {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 10px 10px;
}

/*** タイマー表示 ***/
.timer {
    width: 100%;
    font-size: 1.2rem;
}

.timer-gauge {
    height: 23px;
    padding: 3px;
    background-color: #fff;
    border-radius: 50px;
}

.timer-gauge>span {
    display: block;
    height: 100%;
    background-color: #FF5050;
    border-radius: 50px;
    animation-name: gauge;
    /* animation-duration: 60s; jsの「timeLimit」変数に設定している秒数を同じにすること */
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

@keyframes gauge {
    0% {
        width: 100%;
    }

    100% {
        width: 2%;
    }
}


/*** 入力文字数表示 ***/
.input-num {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.input-num-count {
    position: relative;
    width: fit-content;
    padding: 15px 20px 5px;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
    font-size: 1.0rem;
    line-height: 1.5rem;
    filter: drop-shadow(0px 5px 0px #D9D9D9);
}

.input-num-count::after {
    --triangleW: 30px;

    content: "";
    position: absolute;
    top: 25px;
    right: calc(var(--triangleW) * -1);
    display: block;
    width: var(--triangleW);
    height: 30px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 100%, 0% 100%);
}

.input-num-count>span {
    font-size: 2.0rem;
}

.input-num-img {
    width: 50px;
}

.input-num-img img {
    width: 100%;
    height: auto;
}

/*** 問題表示 ***/
.problem-view {
    width: 80%;
    height: 132px;
    margin: auto;
    padding: 15px 40px;
    align-content: center;
    text-align: center;
    border-radius: 20px;
    background-color: #385723;
    color: #FEFAE0;
    font-size: 1.2rem;
}

.problem-text {
    font-size: 2.5rem;
}

.problem-roma {
    font-size: 2.0rem;
}

/*** キーボード ***/
.keyboard {
    position: relative;
    width: 80%;
    margin: 10px auto 0;
    padding: 1px 40px 0;
    background-color: #EDEDED;
    border-radius: 20px;
}

.keyboard-key {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 8px 0;
}

.keyboard-key p {
    --keyW: 3.0rem;
    --keyP: 15px;

    position: relative;
    top: 0;
    width: var(--keyW);
    height: 40px;
    padding: 2px;
    background-color: #fff;
    box-shadow: 0px 5px 0px 0px #D9D9D9;
    border-radius: 5px;
    text-align: center;
    transition: .3s;
}

.keyboard-key .is-push {
    box-shadow: 0px 1px 0px 0px #D9D9D9;
    top: 6px;
}

.keyboard-key .dummy1 {
    width: 2.8rem;
}

.keyboard-key .dummy2 {
    width: 3.6rem;
}

.keyboard-key .dummy3 {
    width: 5.7rem;
}

.keyboard-key .dummy4 {
    width: 4.7rem;
}

.keyboard-key .dummy5 {
    width: 5.8rem;
}

.keyboard-key .space {
    width: calc(var(--keyW) * 3.8);
}

.keyboard-key .shift {
    width: auto;
    padding: 2px 18px;
}

/*** 手 ***/
.hand {
    display: flex;
    justify-content: center;
    margin: 15px 0 0 0;
}

.hand .left-hand,
.hand .right-hand {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin: 0 60px;
}

.left-hand span,
.right-hand span {
    width: 50px;
    background-color: #c0c0c0;
    border-radius: 50px 50px 0 0;
}

.hand .l-thumb,
.hand .r-thumb {
    height: 50px;
}

.hand .l-index,
.hand .r-index {
    height: 95px;
}

.hand .l-middle,
.hand .r-middle {
    height: 105px;
}

.hand .l-ring,
.hand .r-ring {
    height: 85px;
}

.hand .l-pinky,
.hand .r-pinky {
    height: 60px;
}

.l-thumb.active,
.r-thumb.active {
    background-color: #ffd771;
}

.l-index.active,
.r-index.active {
    background-color: #9fffbc;
}

.l-middle.active,
.r-middle.active {
    background-color: #ff9bf5;
}

.l-ring.active,
.r-ring.active {
    background-color: #9999ff;
}

.l-pinky.active,
.r-pinky.active {
    background-color: #ff7b7b;
}

/*** ポーズ文 ***/
.pause-text {
    position: absolute;
    bottom: 0;
    left: 20px;
    font-size: 1.2rem;
}

.pause-text span {
    display: inline-block;
    margin: 1rem 0 1rem 0;
    padding: 0.3rem 1rem;
    border-radius: 10px;
    background-color: #FFD43B;
    box-shadow: 0px 5px 0px 0px #D9D9D9;
    font-size: 1.5rem;
}

/*** キーボード規格表示 ***/
.standard-text {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 1.2rem;
}

/*********************************
    途中終了確認画面
*********************************/
.interruption {
    display: none;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.interruption p {
    margin: 1rem 0;
    text-align: center;
    color: #fff;
    font-size: 2.0rem;
}

.interruption div {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
}

/*********************************
    結果画面
*********************************/
.result {
    position: relative;
    min-height: calc(100vh - 80px);
    margin: 20px;
    padding: 20px;
    background-color: #F2F2F2;
    border-radius: 20px;
}

.result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/*** タイトル ***/
.result h1 {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    font-size: 2.5rem;
}

/*** 「ハイスコア更新」表示 ***/
.high-score {
    position: absolute;
    top: 50%;
    right: -15rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #FF0000;
}


/*** 名前入力エリア ***/
.input-name {
    position: absolute;
    top: 30px;
    left: 50px;
    display: flex;
    margin: 0;
    padding: 0 1rem;
    border-bottom: 2px solid #000;
}

.input-name dd {
    margin: 0 0 0 2rem;
}

.input-name input {
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: transparent;
}

/*** 結果情報表示 ***/
.result-detail {
    width: calc(100% - 30px - 55%);
}

.result-detail dl {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 1.5rem;
    margin: 20px 0;
}

.result-detail dl dt {
    width: 40%;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    align-content: center;
    background-color: #FFD43B;
    border-radius: 50px 0 0 50px;
    box-shadow: 0px 7px 0px 0px #D9D9D9;
}

.result-detail dl dd {
    width: 60%;
    margin: 0;
    padding: 15px 20px;
    align-content: center;
    background-color: #fff;
    border-radius: 0 50px 50px 0;
    box-shadow: 0px 7px 0px 0px #D9D9D9;
}

.result-detail input {
    display: block;
    width: 90%;
    height: 100%;
    font-size: 1.5rem;
    outline: none;
    border: none;
}

/*** レベル表 ***/
.level-table {
    width: fit-content;
    margin: 20px auto;
    padding: 20px 30px;
    background-color: #D9D9D9;
    border-radius: 15px;
}

.level-table>div {
    display: flex;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.level-table table {
    border-collapse: collapse;
}

.level-table th {
    background-color: #FFD43B;
}

.level-table td {
    background-color: #fff;
}

.level-table th,
.level-table td {
    padding: 10px;
    border: 2px solid #D9D9D9;
}

/* 該当の級の行を点灯 */
.level-table .is-active {
    background-color: #cdbcff;
}

.level-table .is-active td {
    background-color: transparent;
}

/*** 結果を保存するボタン ***/
.screen-shot {
    padding: 0;
}

.screen-shot a {
    display: inline-block;
    padding: 1rem 5rem;
    color: #000;
    text-decoration: none;
}

@media screen and (max-width: 1300px) {
    .result-container {
        gap: 15px;
    }

    .level-table {
        padding: 20px 15px;
    }

    .level-table>div {
        gap: 15px;
    }

    .result-detail dl dt,
    .result-detail dl dd {
        padding: 15px 10px;
    }
}

@media screen and (max-width: 1100px) {
    .result-container {
        display: block;
    }

    .result-detail {
        width: 75%;
        margin: 20px auto;
    }

    .level-table {
        width: fit-content;
        padding: 20px 30px;
    }
}