#intro-screen {
    position: fixed;
    flex-direction: column; /* 子要素を縦方向に並べる */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 2s ease;
    cursor: pointer;
}
#intro-text {
    position: relative;
    top: -20px;
    font-size: 80px;
    text-align: center;
    line-height: 80px;
    margin: 0;
    padding: 0;
}
#intro-text-small {
    position: relative;
    top: -20px;
    font-size: 20px;
    text-align: center;
    line-height: 20px;
}
#intro-text-info {
    position: absolute;
    top: 60%;
    font-size: 20px;
    text-align: center;
    animation: anime_blink 2s infinite; /* 2秒間隔で無限に点滅 */
}
.fade-in {
    animation: anime_fadeIn 3s forwards; /* 3秒かけてフェードイン */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
}
@keyframes anime_fadeIn {
  from { opacity: 1; }
  to { opacity: 0; }
}

#npc-area-bg {
    display: inline-block;
    position: relative;
    width: 80%;
    height: auto;
    font-family: fantasy;
}
#npc-img-area {
    display: inline-block;
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    margin: 0 auto 10px auto;
    padding: 20px;
    background: #000;
    border: 3px solid #fff;
    box-sizing: border-box;
}
#npc-text-area {
    border: 5px solid #fff;
    border-radius: 6px;
    padding: 20px;
    margin: 10px auto;
    height: 180px;
    overflow-y: auto;
    background-color: #000;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}
/* スクロールバー設定 */
#npc-text-area::-webkit-scrollbar {
    width: 0;
    height: 0;
}
#npc-area-bg.click_wait {
    cursor: pointer;
}

@keyframes anime_blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.npc-next-btn-blink {
    position: relative;
    top: -5px;
    animation: anime_blink 1s infinite; /* 1秒間隔で無限に点滅 */
    text-align: center;
    font-size: 20px;
    cursor: pointer;
}

@keyframes anime_fadeOut {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  animation: anime_fadeOut 3s forwards; /* 3秒かけてフェードアウト */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
}


@media screen and (min-device-width : 0px) and (max-device-width : 499.9px) {
    #npc-area-bg {
        width: 100%;
    }
    #npc-img-area {
        width: 100%;
        height: auto;
        padding: 10px;
    }
    #npc-img-area img {
        width: 90%;
        height: auto;
    }
    
    .npc_text_bg {
        display: inline-block;
        position: relative;
        width: 100%;
        height: auto;
    }
    
    #npc-text-area {
        border: 3px solid #fff;
        padding: 10px;
        padding-bottom: 20px;
        margin: 2px auto;
        height: 200px;
        font-size: 20px;
    }
    
}
