@charset "utf-8";

#rpg_div {
    position: relative;
    display: flex;
}
.rpg_div_inner {
    position: relative;
    display: flex;
    flex-direction: column;
}

.scImage {
    scale: 50%;
}
.scRank {
    display: inline-block;
    width: 100px;
    font-size: 24px;
    text-align: right;
    padding-right: 10px;
}
.scName {
    display: inline-block;
    width: 105px;
    font-size: 20px;
    color: rgb(0, 0, 0);
}
.scScore {
    display: inline-block;
    width: 85px;
    font-size: 20px;
    white-space: nowrap;
    text-align: right;
    padding-right: 20px;
    color: rgb(91, 67, 6);
}
.scKilled {
    display: inline-block;
    width: 80px;
    font-size: 20px;
    white-space: nowrap;
    text-align: right;
    padding-right: 10px;
    color: darkred;
}
.scYours {
    border-radius: 10px;;
    background-color: rgba(250, 250, 210, 0.5);
}

#rpgMapBase {
    position: relative;
    width: 704px;
    height: 704px;
    overflow: hidden;
    border-radius: 32px;
    background-image: url("../images/back01.jpg");
    background-size: cover;
    display: flex;
}
.rpgMapBaseNomal {
    border-top: 10px solid #444444;
    border-left: 10px solid #888888;
    border-bottom: 10px solid #ffffff;
    border-right: 10px solid #cccccc;
}
.rpgMapBaseRed {
    border-top: 10px solid #442222;
    border-left: 10px solid #884444;
    border-bottom: 10px solid #ff8888;
    border-right: 10px solid #cc6666;
}
#rpgMapFrame {
    position: absolute;
    width: 704px;
    height: 704px;
    display: flex;
    overflow: hidden;
}

#rpgMapWindow,
#rpgMapWindow2 {
    position: absolute;
    display: flex;
    overflow: visible;
}
#talkWindow {
    position: absolute;
    height: 200px;
    font-family: "Reggae One", system-ui;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 24px;
    white-space: nowrap;;
    padding: 10px 20px;
    background-image: url('../images/chatBoard.png');
    background-color: #734B2C;
    background-size: 100% 100%;
    border: 3px solid #734B2C;
    border-radius: 10px;

    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    display: none;
    flex-direction: column;
    justify-content: enter;
    z-index: 10000;
    align-items: center;
}
#talkWindow span {
    font-family: initial;
    font-weight: bold;
}

/*  スコアボード */
#rgbBord {
    position: relative;
    background-image: url("../images/scoreBoard.png");
    background-size: 100% 100%;
    font-family: "Reggae One", system-ui;
    font-style: normal;
    font-weight: bold;
    padding-top: 10px;
    margin-right: 10px;
    display: block;
}
#rgbBord > div:nth-of-type(1) {
    position: relative;
    font-size: 34px;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
#rgbBord > div:nth-of-type(2) {
    position: relative;
    width: 300px;
    height: 128px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: nowrap;
}
#rgbBord > div:nth-of-type(2) > div:nth-of-type(1){
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}
#rgbBord > div:nth-of-type(2) > div:nth-of-type(2) {
    position: relative;
    width: 220px;
    font-size: 24px;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}
.point {
    position: relative;
    height: 48px;
    display: flex;
    flex-wrap: nowrap;
}
#atkPoint ,
#hitPoint ,
#corePoint {
    position: relative;
    width: 128px;
}
.pointSize {
    width: 38px;
    margin-right: 4px;
}

/* ランキングボード */
#rankingBord {
    position: relative;
    width: 400px;
    min-height: 520px;
    background-image: url("../images/rankingBoard.png");
    background-size: 100% auto;
    font-family: "Reggae One", system-ui;
    font-style: normal;
    font-weight: bold;
    border: 3px solid #692703;
    border-radius: 15px;
    padding-top: 10px;
    padding-bottom: 20px;
    margin-top: 10px;
    margin-right: 10px;
    display: block;
}
#rankingBord > div:nth-of-type(1) {
    position: relative;
    font-size: 24px;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    text-align: center;
}
#ranking {
    position: relative;
    width: 390px;
    white-space: nowrap;
    margin-left:10px;
    line-height: 40px;
    font-size: 24px;
    font-weight: bold;
}
/* キー操作説明 */
#rabBordKey {
    position: absolute;
    width: 390px;
    height: 210px;
    top: 500px;
    margin-left: 10px;
    margin-right: 10px;
    background-image: url("../images/scoreBoard.png");
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#rabBordKeyImg {
    width: 380px;
    height: auto;
}


 /* チャット関連 */
#chatSpace {
    position: relative;
    width: 400px;
    display: block;
}
#chatWindow {
    position: relative;
    width: 390px;
    height: 460px;
    overflow: hidden;
    font-size: 20px;
    font-family: "Reggae One", system-ui;
    letter-spacing:-0.1em;
    background-image: url('../images/chatBoard.png');
    background-size: 100% 100%;
    padding-top: 15px;
    margin-left: 10px;
    border-radius: 10px;
}
#chatInput {
    position: relative;
    width: 390px;
    height: 28px;
    background-color: darkgoldenrod;
    padding-left: 10px;
    margin-top: 5px;
    margin-left: 10px;
    border-radius: 10px;
    border:1px solid black;
}
#chatInput:focus {
    background-color: lightgoldenrodyellow;
    border:2px solid black;
}

.chatLine {
    position: relative;
    width: 390px;
    height: 24px;
    overflow: hidden;
    display: block;
    margin-bottom: 5px;
    /* border: 1px red solid; */
}
.chatMyself {
    position: relative;
    display: flex;
    margin-right: auto;
}
.chatMyself > span:nth-of-type(1) {
    position: relative;
    color: black;
    margin-left: 5px;
    margin-right: 5px;
}
.chatMyself > span:nth-of-type(2)  {
    position: relative;
    color: black;
    background-color: lightgoldenrodyellow;
    border-radius: 10px;
    padding-left: 10px; 
    padding-right: 10px; 
}
.chatMyself > span:nth-of-type(2)::after {
  content: " ";
  position: relative;
  width: 10px;
  height: 10px;
  background-color: black;
  transform: rotate(45deg);
}

.chatPlayer {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.chatPlayer > span:nth-of-type(1) {
    position: relative;
    color: black;
    margin-right: 10px;
}
.chatPlayer > span:nth-of-type(2)  {
    position: relative;
    color: black;
    background-color: #7AE07A;
    border-radius: 10px;
    padding-left: 10px; 
    padding-right: 10px; 
    margin-right: 5px;
}
.chatSystem {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}
.chatStart {
    position: relative;
    color: #26303d;
    border-radius: 10px;
    padding-left: 20px; 
    padding-right: 20px;
    margin-right: 20px; 
}


/*  スプライト */
.yusha01 {
    background-image: url('../images/pl100.png');
    width: 59px;
    height: 87px;
    transform: translate(-5px, -53px); /* -(37-32), -(85-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha02 {
    background-image: url('../images/pl200.png');
    width: 53px;
    height: 85px;
    transform: translate(2px, -51px); /* -(30-32), -(83-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha03 {
    background-image: url('../images/pl300.png');
    width: 55px;
    height: 88px;
    transform: translate(1px, -54px); /* -(31-32), -(86-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha04 {
    background-image: url('../images/pl400.png');
    width: 50px;
    height: 82px;
    transform: translate(3px, -48px); /* -(29-32), -(80-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha05 {
    background-image: url('../images/pl500.png');
    width: 47px;
    height: 82px;
    transform: translate(5px, -48px); /* -(27-32), -(80-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha06 {
    background-image: url('../images/pl600.png');
    width: 53px;
    height: 84px;
    transform: translate(2px, -50px); /* -(30-32), -(82-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha07 {
    background-image: url('../images/pl700.png');
    width: 55px;
    height: 89px;
    transform: translate(-1px, -54px); /* -(33-32), -(86-32) */ 
    position: absolute;
    z-index: 10;
}
.yusha08 {
    background-image: url('../images/pl800.png');
    width: 64px;
    height: 88px;
    transform: translate(-1px, -54px); /* -(33-32), -(86-32) */ 
    position: absolute;
    z-index: 10;
}
.npc01 {
    background-image: url('../images/npc01.png');
    width: 59px;
    height: 87px;
    transform: translate(-5px, -53px); 
    position: absolute;
    z-index: 10;
}
.npc02 {
    background-image: url('../images/npc02.png');
    width: 64px;
    height: 98px;
    transform: translate(-5px, -61px); 
    position: absolute;
    z-index: 10;
}
.npc03 {
    background-image: url('../images/npc03.png');
    width: 59px;
    height: 90px;
    transform: translate(-5px, -53px); 
    position: absolute;
    z-index: 10;
}
.npc04 {
    background-image: url('../images/npc04.png');
    width: 59px;
    height: 90px;
    transform: translate(-5px, -53px); 
    position: absolute;
    z-index: 10;
}
.npc05 {
    background-image: url('../images/npc05.png');
    width: 59px;
    height: 90px;
    transform: translate(-5px, -53px); 
    position: absolute;
    z-index: 10;
}
.tento01 {
    background-image: url('../images/tento01.png');
    width: 256px;
    height: 256px;
    transform: translate(-112px, -192px); 
    position: absolute;
    z-index: 10;

}

.mons01 {
    background-image: url('../images/ms100.png');
    width: 64px;
    height: 51px;
    transform: translate(0px, -8px) scale(100%); 
    position: absolute;
    z-index: 20;
    animation: mons01anim 2.4s linear infinite;
}
@keyframes mons01anim {
    0% {
        transform: translate(0px, -8px) scale(100%); 
    }
    92% {
        transform: translate(0px, -8px)  scale(100%); 
    }
    94% {
        transform: translate(0px, -8px)  scale(90%); 
    }
    96% {
        transform: translate(0px, -8px)  scale(100%); 
    }
    98% {
        transform: translate(0px, -8px)  scale(90%); 
    }
    100% {
        transform: translate(0px, -8px) scale(100%); 
    }
}
.mons02 {
    background-image: url('../images/ms200.png');
    width: 64px;
    height: 90px;
    transform: translate(0px, -49px); 
    position: absolute;
    z-index: 20;
}
.mons03 {
    background-image: url('../images/ms300.png');
    width: 80px;
    height: 109px;
    transform: translate(-8px, -68px);
    position: absolute;
    z-index: 20;
}
.mons04 {
    background-image: url('../images/ms400.png');
    width: 48px;
    height: 64px;
    transform: translate(+8px, -23px);
    position: absolute;
    z-index: 20;
    animation: mons04anim 4s linear infinite;
}
@keyframes mons04anim {
    0% {
        opacity: 100%;
        transform: translate(+8px, -23px);
    }
    25% {
        opacity: 75%;
        transform: translate(+8px, -43px);
    }
    50% {
        opacity: 10%;
        transform: translate(+8px, -23px);
    }
    75% {
        opacity: 75%;
        transform: translate(+8px, -43px);
    }
    100% {
        opacity: 100%;
        transform: translate(+8px, -23px);
    }
}
.mons05 {
    background-image: url('../images/ms500.png');
    width: 64px;
    height: 106px;
    transform: translate(0px, -65px); 
    position: absolute;
    z-index: 20;
}

/* 宝物 */
.effect01 {
    background-image: url('../images/effect01.png');
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 500;
    transform: translate(0px, -160px) scale(0);
    animation: effect01anim 2s linear forwards;
}
@keyframes effect01anim {
    0% {
        opacity: 0.8;
        transform: translate(0px, -23px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(0px, -80px) scale(2);
    }
    30% {
        opacity: 0.8;
        transform: translate(0px, -75px) scale(2);
    }
    40% {
        opacity: 1;
        transform: translate(0px, -80px) scale(2);
    }
    50% {
        opacity: 0.8;
        transform: translate(0px, -75px) scale(2);
    }
    60% {
        opacity: 1;
        transform: translate(0px, -80px) scale(2);
    }
    100% {
        opacity: 0;
        transform: translate(0px, -23px) scale(0);
    }
}
/* 幽霊 */
.effect02 {
    background-image: url('../images/effect02.png');
    width: 64px;
    height: 104px;
    position: absolute;
    z-index: 500;
    transform: translate(0px, -600px) scale(0);
    animation: effect02anim 5s linear forwards;
}
@keyframes effect02anim {
    0% {
        opacity: 0.5;
        transform: translate(0px, -100px) scale(1);
    }
    10% {
        opacity: 0.7;
        transform: translate(-10px, -150px) scale(1);
    }
    20% {
        opacity: 0.9;
        transform: translate(10px, -200px) scale(1);
    }
    30% {
        opacity: 1;
        transform: translate(-10px, -250px) scale(1);
    }
    40% {
        opacity: 1;
        transform: translate(10px, -300px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-10px, -350px) scale(1);
    }
    60% {
        opacity: 1;
        transform: translate(10px, -400px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(0px, -600px) scale(1.5);
    }
}
/* YOU DEAD */
.effect03 {
    background-image: url('../images/youDead.png');
    width: 128px;
    height: 100px;
    position: absolute;
    z-index: 501;
    transform: translate(-32px, -80px) scale(0);
    animation: effect04anim 3s linear infinite;
}
@keyframes effect03anim {
    0% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-32px, -70px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
    }
}
/*Turned Zombie */
.effect04 {
    background-image: url('../images/turnedZombie.png');
    width: 128px;
    height: 100px;
    position: absolute;
    z-index: 501;
    transform: translate(-32px, -80px) scale(0);
    animation: effect04anim 4s linear forwards;
}
@keyframes effect04anim {
    0% {
        opacity: 0;
        transform: translate(-32px, -80px) scale(0.5);
        background-position-y: 0px;
    }
    10% {
        opacity: 0.5;
        transform: translate(-32px, -70px) scale(1);
        background-position-y: 0px;
    }
    20% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 0px;
    }
    30% {
        opacity: 0.5;
        transform: translate(-32px, -70px) scale(1);
        background-position-y: 0px;
    }
    40% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 0px;
    }
    50% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 100px;
    }
    60% {
        opacity: 0.5;
        transform: translate(-32px, -70px) scale(1);
        background-position-y: 100px;
    }
    70% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 100px;
    }
    80% {
        opacity: 0.5;
        transform: translate(-32px, -70px) scale(1);
        background-position-y: 100px;
    }
    90% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 100px;
    }
    100% {
        opacity: 1;
        transform: translate(-32px, -80px) scale(1);
        background-position-y: 100px;
    }
}
/*ダメージ */
.effect05 {
    background-image: url('../images/damage01.png');
    width: 128px;
    height: 128px;
    position: absolute;
    z-index: 501;
    transform: translate(0px, -24px) scale(0);
    animation: effect05anim 0.5s linear forwards;
}
@keyframes effect05anim {
    0% {
        opacity: 0;
        transform: translate(-32px, -56px) scale(0.5);
    }
    20% {
        opacity: 0.5;
        transform: translate(-32px, -56px) scale(1);
    }
    40% {
        opacity: 1;
        transform: translate(-32px, -56px) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translate(-32px, -56px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-32px, -56px) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-32px, -56px) scale(1);
    }
}
/*アタック*/
.effect06 {
    background-image: url('../images/attack01.png');
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 501;
    transform: translate(0px, -24px) scale(0);
    animation: effect06anim 0.5s linear forwards;
}
@keyframes effect06anim {
    0% {
        opacity: 0;
        transform: translate(0px, -24px) scale(1);
    }
    20% {
        opacity: 0.5;
        transform: translate(0px, -24px) scale(2);
    }
    40% {
        opacity: 1;
        transform: translate(0px, -24px) scale(1);
    }
    60% {
        opacity: 1;
        transform: translate(0px, -24px) scale(2);
    }
    80% {
        opacity: 1;
        transform: translate(0px, -24px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0px, -24px) scale(2);
    }
}
/*攻撃アイテムゲット*/
.effect07 {
    background-image: url('../images/attakPoint01.png');
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 501;
    transform: translate(0px, -24px) scale(0);
    animation: effect01anim 2s linear forwards;
}
/*回復アイテムゲット*/
.effect08 {
    background-image: url('../images/lifeUp01.png');
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 501;
    transform: translate(0px, -24px) scale(0);
    animation: effect01anim 2s linear forwards;
}
/*パニック*/
.effect09 {
    background-image: url('../images/panic01.png');
    width: 64px;
    height: 32px;
    position: absolute;
    z-index: 6;
    transform: translate(0px, -80px) scale(0);
    animation: effect09anim 0.5s linear forwards;
}
@keyframes effect09anim {
    0% {
        opacity: 0;
        transform: stranslate(0px, -80px) cale(0.8);
    }
    20% {
        opacity: 0.5;
        transform: translate(0px, -80px) scale(1);
    }
    40% {
        opacity: 1;
        transform: translate(0px, -80px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translate(0px, -80px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(0px, -80px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(0px, -80px) scale(1);
    }
}
/*空振り*/
.effect10 {
    background-image: url('../images/miss01.png');
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 401;
    transform: translate(0px, -30px) scale(0);
    animation: effect10anim 0.5s linear forwards;
}
@keyframes effect10anim {
    0% {
        opacity: 0;
        transform: translate(0px, -30px)  scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(0px, -30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0px, -30px) scale(2);
    }
}
.chest01 {
    background-image: url('../images/chest01.png');
    width: 64px;
    height: 64px;
    transform: translate(0px, -23px);
    position: absolute;
    z-index: 5;
}
.chest02 {
    background-image: url('../images/weaponBox.png');
    width: 64px;
    height: 78px;
    transform: translate(0px, -37px);
    position: absolute;
    z-index: 5;
}
.chest03 {
    background-image: url('../images/lifeBox.png');
    width: 64px;
    height: 68px;
    transform: translate(0px, -27px);
    position: absolute;
    z-index: 5;
}

.ohaka01 {
    background-image: url('../images/ohaka01.png');
    width: 64px;
    height: 64px;
    transform: translate(0px, -23px);
    position: absolute;
    z-index: 4;
}
.green {
    background-color: lightgreen;
    width: 64.5px;
    height: 64px;
    position: absolute;
}
.brown {
    background-color: darkolivegreen;
    width: 65px;
    height: 65px;
    position: absolute;
}
.block01 {
    background-image: url('../images/block01.png');
    background-size: 100% 100%;
    width: 64.5px;
    height: 64px;
    position: absolute;
}
.block01_ {
    background-image: url('../images/block01_.png');
    width: 64.5px;
    height: 81px;
    transform: translate(0px, -16px);
    position: absolute;
}
.renga01 {
    background-image: url('../images/renga01.png');
    background-size: 100% 100%;
    width: 64.5px;
    height: 64px;
    position: absolute;
}
.renga01_ {
    background-image: url('../images/renga01_.png');
    width: 64.5px;
    height: 81px;
    transform: translate(0px, -16px);
    position: absolute;
}
.umi01 {
    background-image: url('../images/umi01.png');
    background-size: 100% 100%;
    width: 64.5px;
    height: 64px;
    position: absolute;
    animation: umi01anim 10s linear infinite;
}
@keyframes umi01anim {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 0px 64px;
    }
}
.kusa01 {
    background-image: url('../images/kusa01.png');
    background-size: 100% 100%;
    width: 65px;
    height: 65px;
    position: absolute;
}
.kusa02 {
    background-image: url('../images/kusa02.png');
    background-size: 100% 100%;
    width: 65px;
    height: 65px;
    background-size: 100% 100%;
    position: absolute;
}
.tree01 {
    background-image: url('../images/tree01.png');
    width: 65px;
    height: 122px;
    position: absolute;
    transform: translate(0px, -76.5px);
}
.tree02 {
    background-image: url('../images/tree02.png');
    width: 96px;
    height: 122px;
    position: absolute;
    transform: translate(-16px, -76.5px);
}

#rpgSec {
    margin-bottom: 0px;
}
#rpg_key {
    display: flex;
}
#rpg_key div {
    text-align: center;
}
#rpg_key table {
    margin-left: 20px;
    margin-right: 20px;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-out {
    animation: fadeOut 1s ease forwards;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* 歩きのアニメーション */
.charaWalk {
    transform-origin: center 128px;
    animation: charaWalk 0.35s linear;
}
@keyframes charaWalk {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform-origin: center 64px;
        transform: translate(0px, -7px) rotate(-3deg);
    }
    50% {
        transform-origin: center 64px;
        transform: translate(0px, 0px) rotate(0deg);
    }
    75% {
        transform-origin: center 64px;
        transform: translate(0px, -7px) rotate(3deg);
    }
    100% {
        transform-origin: center 64px;
        transform: translate(0px, 0px) rotate(0deg);
    }
}
.monsWalk {
    transform-origin: center 64px;
    animation: monsWalk 0.5s linear;
}
@keyframes monsWalk {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    20% {
        transform: translate(0px, -10px) rotate(-10deg);
    }
    40% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    60% {
        transform: translate(0px, -10px) rotate(10deg);
    }
    80% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}