#tutorialWindow {
    position: fixed;
    width: 450px;
    padding: 10px;
    background-color: #00000046;
    text-shadow: 2px 2px 2px black;
    white-space: pre-wrap;
    border: solid 1px #ff0077;
    color: white;
    border-radius: 5px;
    pointer-events: none;
    display: none;
    z-index: 500;
}

.novel {
    /* position: fixed; */
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #00cece;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.novel:hover {
    background-color: #00a4a4;
}

.novel1 {
    /* position: fixed; */
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ff0077;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.novel1:hover {
    background-color: #b40054;
}

.novel2 {
    /* position: fixed; */
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ffd500;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.novel2:hover {
    background-color: #b79900;
    color: rgb(0, 0, 0);
}

#download-btn, 
#tutorialButton,
#importHtmlButton,
.tutorialButton {
    /* position: fixed; */
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#importHtmlButton {
    right: 225px;
    /* チュートリアルボタンの横に配置 */
}

#tutorialButton:hover,
#importHtmlButton:hover,
.tutorialButton:hover {
    background-color: #0056b3;
}

/* タイピングアニメーション用のスタイル */
.typing {
    display: inline-block;
    white-space: pre-wrap;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0);
    /* カーソル風の点滅 */
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* メニューボタンのスタイル */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    z-index: 1000;
}

.menu-btn:hover {
    background-color: #0056b3;
}

/* メニューのスタイル */
.nav-menu {
    position: fixed;
    top: 0;
    right: -30%;
    /* 初期状態では画面外に隠れている */
    width: 30%;
    height: 100%;
    background-color: #222;
    color: white;
    transition: right 0.3s ease-in-out;
    overflow-y: scroll;
    /* スライドアニメーション */
    z-index: 999;
    padding-bottom: 100px;
}

/* メニューが表示された時の状態 */
.nav-menu.active {
    right: 0;
}

/* メニュー項目のスタイル */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 90px 0 0 0;
}

.nav-menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

.nav-menu li a {
    /* color: white; */
    text-decoration: none;
    font-size: 18px;
}

.nav-menu li a:hover {
    color: #ddd;
}

@media screen and (max-width: 800px) {

    /* 画面の横幅が max-widthに書き込んだ数値以下になったらここに書き込まれたCSSに切り替える */
    body {
        height: 1000px;
        overflow-y: scroll;
    }

    #favavv {
        display: inline-block;
    }

    main {
        /* height: 1000px; */
        overflow: scroll !important;
    }

    #wer {
        display: none;
    }

    .menu-btn {
        top: auto;
        background-color: #9fc700;
        bottom: 0%;
        border-radius: 10px 10px 0px 0px;
        left: 0%;
        right: 0;
    }

    .menu-btn:hover {
        background-color: #c19d00;
    }

    .novel2 {
        display: none;
    }

    /* メニューのスタイル */
    .nav-menu {
        right: -95%;
        width: 95%;
    }

    .nav-menu ul {
        margin-top: 10%;
    }

    #lag a {
        margin: 2px;
        display: inline-block;
    }

    #dlbt {
        /* font-size: 80%; */
        display: none;
    }

    #dlbt01 {
        /* font-size: 80%; */
        display: inline-block;
    }

    #rert {
        flex-wrap: nowrap !important;
    }

    #bunki {
        top: 0%;
        width: 100%;
    }

    #tyekku {
        right: 0%;
        padding-left: 5px;
        /* width: 100%; */
    }

    #ertwww {
        display: none;
    }

    #verttt {
        min-height: 50px;
    }

    #scene-list {
        min-height: 50px;
    }

    #eventtttt {
        min-height: 100vh;
    }

    #gent {
        width: 90.5%;
        margin-top: 0%;
        margin-left: 5%;
        min-height: 500px;
    }

    #tyi {
        display: none;
    }

    #tutorialWindow {
        width: 97%;
    }
}