* {
    color: #fff;
    margin: 0;
}

body {
    display: block;
    background-color: rgb(0, 0, 0);
}

main {
    margin: 20px auto 0;
    max-width: 800px;
    display: block;
    unicode-bidi: isolate;
    border: 1px solid #fff;
    background-color: black;
}

#head {
    height: 50px;
    width: 90%;
    margin: 50px auto 0;
    display: flex;
    justify-content: center;
    border: 1px solid #fff;
    background-color: black;
}

#window {
    height: 300px;
    width: 90%;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    background-size: cover;
    background-position: 50%;
    border: 1px solid #fff;
    background-color: black;
    position: relative;
}

/* --------------------------------マップここから---------------------------------- */
/* --------------------------天井----------------------------- */
#map-top1 {
    top: 20%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(0% 0%, 20% 0%, 30% 100%, 0% 100%);
}

#map-top2 {
    top: 20%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(20% 0%, 80% 0%, 70% 100%, 30% 100%);
}

#map-top3 {
    top: 20%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(80% 0%, 100% 0%, 100% 100%, 70% 100%);
}

#map-top4 {
    top: 10%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(0% 0%, 10% 0%, 20% 100%, 0% 100%);
}

#map-top5 {
    top: 10%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(10% 0%, 90% 0%, 80% 100%, 20% 100%);
}

#map-top6 {
    top: 10%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(90% 0%, 100% 0%, 100% 100%, 80% 100%);
}

#map-top7 {
    top: 0;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(0% 0%, 0% 0%, 10% 100%, 0% 100%);
}

#map-top8 {
    top: 0;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(1.0);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

#map-top9 {
    top: 0;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom5.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: aqua;
    position: absolute;
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 90% 100%);
}

/* --------------------------地面----------------------------- */
#map-bottom1 {
    top: 70%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(0% 0%, 30% 0%, 20% 100%, 0% 100%);
}

#map-bottom2 {
    top: 70%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(30% 0%, 70% 0%, 80% 100%, 20% 100%);
}

#map-bottom3 {
    top: 70%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(70% 0%, 100% 0%, 100% 100%, 80% 100%);
}

#map-bottom4 {
    top: 80%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(0% 0%, 20% 0%, 10% 100%, 0% 100%);
}

#map-bottom5 {
    top: 80%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(20% 0%, 80% 0%, 90% 100%, 10% 100%);
}

#map-bottom6 {
    top: 80%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(80% 0%, 100% 0%, 100% 100%, 90% 100%);
}

#map-bottom7 {
    top: 90%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(0% 0%, 10% 0%, 0% 100%, 0% 100%);
}

#map-bottom8 {
    top: 90%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(1.0);
    /* 明るさを50%に調整 */
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

#map-bottom9 {
    top: 90%;
    width: 100%;
    height: 10%;
    background-image: url(../image/bottom6.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(166, 125, 58);
    position: absolute;
    clip-path: polygon(90% 0%, 100% 0%, 100% 100%, 100% 100%);
}

/* --------------------------後ろの壁----------------------------- */
#map-back1 {
    top: 30%;
    left: 0%;
    width: 30%;
    height: 40%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(174, 131, 82);
    position: absolute;
}

#map-back2 {
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(114, 161, 193);
    position: absolute;
}

#map-back3 {
    top: 30%;
    left: 70%;
    width: 30%;
    height: 40%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.6);
    background-color: rgb(194, 92, 167);
    position: absolute;
}

#map-back4 {
    top: 20%;
    left: 0%;
    width: 20%;
    height: 60%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(43, 41, 28);
    position: absolute;
}

#map-back5 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(28, 32, 43);
    position: absolute;
}

#map-back6 {
    top: 20%;
    left: 80%;
    width: 20%;
    height: 60%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.8);
    background-color: rgb(43, 28, 32);
    position: absolute;
}

#map-back7 {
    top: 10%;
    left: 0%;
    width: 10%;
    height: 80%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(100, 155, 80);
    position: absolute;
}

#map-back8 {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(40, 28, 43);
    position: absolute;
}

#map-back9 {
    top: 10%;
    left: 90%;
    width: 10%;
    height: 80%;
    background-image: url(../image/center.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(43, 28, 28);
    position: absolute;
}

/* --------------------------右の壁----------------------------- */
#map-right1 {
    right: 20%;
    width: 10%;
    height: 100%;
    background-image: url(../image/right.jpg);
    background-size: cover;
    filter: brightness(0.5);
    background-color: rgb(93, 185, 185);
    position: absolute;
    clip-path: polygon(0% 30%, 100% 20%, 100% 80%, 0% 70%);
}

#map-right2 {
    right: 10%;
    width: 10%;
    height: 100%;
    background-image: url(../image/right.jpg);
    background-size: cover;
    filter: brightness(0.7);
    background-color: rgb(43, 78, 78);
    position: absolute;
    clip-path: polygon(0% 20%, 100% 10%, 100% 90%, 0% 80%);
}

#map-right3 {
    right: 0;
    width: 10%;
    height: 100%;
    background-image: url(../image/right.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(67, 121, 121);
    position: absolute;
    clip-path: polygon(0% 10%, 100% 0%, 100% 100%, 0% 90%);
}

/* --------------------------左の壁----------------------------- */
#map-left1 {
    left: 20%;
    width: 10%;
    height: 100%;
    background-image: url(../image/left.jpg);
    background-size: cover;
    filter: brightness(0.5);
    background-color: rgb(45, 147, 147);
    position: absolute;
    clip-path: polygon(0% 20%, 100% 30%, 100% 70%, 0% 80%);
}

#map-left2 {
    left: 10%;
    width: 10%;
    height: 100%;
    background-image: url(../image/left.jpg);
    background-size: cover;
    filter: brightness(0.7);
    background-color: rgb(42, 116, 116);
    position: absolute;
    clip-path: polygon(0% 10%, 100% 20%, 100% 80%, 0% 90%);
}

#map-left3 {
    left: 0;
    width: 10%;
    height: 100%;
    background-image: url(../image/left.jpg);
    background-size: cover;
    filter: brightness(0.9);
    background-color: rgb(67, 121, 121);
    position: absolute;
    clip-path: polygon(0% 0%, 100% 10%, 100% 90%, 0% 100%);
}

/* --------------------------キャラクターオブジェクト----------------------------- */
#map-character1 {
    top: 35%;
    left: -10%;
    width: 40%;
    height: 40%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
}

#map-character2 {
    top: 35%;
    left: 30%;
    width: 40%;
    height: 40%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
}

#map-character3 {
    top: 35%;
    left: 70%;
    width: 40%;
    height: 40%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
}

/* #map-character4 {
    top: 25%;
    left: -20%;
    width: 60%;
    height: 60%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
} */

#map-character5 {
    top: 30%;
    left: 20%;
    width: 60%;
    height: 60%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
}

/* #map-character6 {
    top: 25%;
    left: 60%;
    width: 60%;
    height: 60%;
    background-position: 50% 70%;
    background-image: url(../image/event0.png);
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    position: absolute;
} */

/* --------------------------------マップここまで---------------------------------- */

#message {
    height: 300px;
    width: 90%;
    margin: 20px auto 50px;
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: center;
    border: 1px solid #fff;
    background-color: black;
    position: relative;
}

/* #window {
    height: 300px;
    width: 90%;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    background-size: cover;
    background-position: 50%;
    border: 1px solid #fff;
    background-color: black;
} */

button {
    color: black;
    height: 100px;
    margin-top: 100px;
}

#message_window {
    top: 5%;
    height: 90%;
    width: 90%;
    position: absolute;
    border: 1px solid #fff;
    background-color: black;
}

#message_text {
    font-size: 30px;
    padding: 50px 50px;
}