* {
    box-sizing: border-box;
}

body {
    background: #fefffa;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

A:link {
    color: #000066;
}

A:visited {
    color: #000066;
}

A:active {
    color: #000066;
}

A:hover {
    color: #000066;
}

a {
    font-weight: 600;
    color: #000066;
    font-size: 12px;
}

img {
    border-color: #ee2c1c;
}

h1 {
    font-size: 24px;
    margin: 15px auto 20px auto;
    padding-bottom: 10px;
    border-bottom: 2px dashed #333;
}

h2 {
    color: rgb(237, 22, 78);
    font-size: 20px;
    margin: 15px auto 15px auto;
}

#space {
    clear: both;
}

#menu {
    width: 100%;
    height: 185px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #8bbada;
}

#ctrl-space {
    position: relative;
}

#container {
    position: absolute;
    left: 20px;
    top: 210px;
}

#menuContainer {
    width: 484px;
    height: auto;
    margin: 25px auto 0 auto;
    position: absolute;
    top: -2500px;
    left: 14px;
    text-align: center;
    padding: 20px 10px;
    z-index: 319999;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 4px solid #666;
    opacity: 0.9;

    font-weight: bold;
    font-size: 24px;
    box-shadow: 2px 2px 4px;
}


select {
    padding: 4px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 20px;
}

.selectDiv {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    height: auto;
    /*padding-left: 60px;*/
}


.okiba {
    display: inline-block;
    width: 88px;
    height: 120px;
    z-index: 3;
    border: 4px dashed #aaa;
    font-size: 20px;
    font-weight: bold;
    text-align:center;
    margin: 3px 8px;
    color: #999;
}


.okiba2 {
    display: inline-block;
    width: 88px;
    height: 120px;
    z-index: 3;
    border: 4px solid #333;
    font-size: 20px;
    font-weight: bold;
    text-align:center;
    background-color: #4c946a;
    margin: 3px 8px;
    color: #fff;
    cursor: pointer;
}


.dispButton2 {
    display: inline-block;
    font-size: 1.45rem !important;
    font-weight: bold;
    text-align: center;
    margin: 20px 5px 10px 5px;
    padding: 3px 0 2px 0;
    border: 2px solid #666;
    border-radius: 2px;
    color: #333;
    background-color: #eee;
    width: 75%;
    min-width: 120px;
    cursor: pointer;
    text-decoration: none !important;
}

.dispButton {
    display: inline-block;
    font-size: 1.45rem !important;
    font-weight: bold;
    text-align: center;
    margin: 20px 5px 10px 5px;
    padding: 6px 0 5px 0;
    border: 2px solid #666;
    border-radius: 2px;
    color: #333;
    background-color: #eee;
    width: 75%;
    min-width: 180px;
    cursor: pointer;
    text-decoration: none !important;
}


footer {
    width: 100%;
    background-color: #fafafa;
    color: #333;
    padding: 6px 0;
    text-align: left;
    z-index: 70000000;
    position: fixed;
    bottom: 0;
    left: 0;
    -webkit-transform: translate3d(0,0,0);
    border-top: 2px solid #333;
}

footer a {
    margin: 0 10px;
    color: #333 !important;
    font-size: 0.8rem;
    font-weight: bold;
}

#exp {
    position: absolute;
    top: 945px;
    left: 20px;
    font-size: 20px;
    font-weight: bold;
    width: 500px;
    height: auto;
    border: solid 3px #333;
    border-radius: 10px;
    padding: 15px;
    color: #333333;
    line-height: 1.6em;
    background-color: #eeeeee;
    margin-bottom: 50px;
    z-index: 3;
}

#exp p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}


#expSpace {
    width: 480px;
    height: auto;
    margin: 0 auto 0 auto;
    position: absolute;
    top: -5500px;
    left: 6px;
    text-align: center;
    padding: 20px 10px;
    z-index: 319999;
    background-color: rgb(244,244,244,0.95);
    border-radius: 4px;
    border: 4px solid #666;

    font-weight: bold;
    font-size: 24px;
    line-height: 160%;
}

#expContent {
    height: 500px;
    overflow-y: scroll;
    text-align: left;
    margin: 5px;
    font-size: 20px;
}

#expContent p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}

#expContent img {
    border: 3px solid #666;
}

#config {
    top: 580px;
    height: 0;
    width: 0;
    position: absolute;
    font-size: 15px;
    font-weight: bold;
    color: #333333;
    line-height: 20px;
    background-color: #fafafa
}

#contentright {
    position: absolute;
    float: left;
    left: 580px;
    top: 220px;
    width: 140px;
    height: 640px;
    z-index: 100500;
}

#title {
    position: relative;
    top: 138px;
    width: auto;
    margin-top: 0px;
    margin-left: 20px;
    float: left;
    font-weight: 600;
    color: black;
    font-size: 30px;
}

.ctrlbt {
    position: relative;
    top: 138px;
    cursor: pointer;
    float: left;
    width: auto;
    height: 30px;
    margin-left: 15px;
    margin-top: 0px;
    text-decoration: underline;
    font-weight: 600;
    color: black;
    font-size: 30px;
    z-index: 12001;
}

.ctrlbt a {
    color: black;
    font-size: 30px;
}

#mobilead {
    position: absolute;
    float: left;
    left: 20px;
    top: 3220px;
    z-index: 35;
}

#mobilead2 {
    position: absolute;
    float: left;
    left: 20px;
    top: 10px;
    z-index: 36;
}

.gameButton {
    font-size: 0.75rem !important;
    font-weight: bold;
    text-align: center;
    margin: auto;
    padding: 5px 0 5px 0;
    position: absolute;
    border: 2px solid #666;
    border-radius: 5px;
    color: #333;
    background-color: #eee;
    width: auto;
    min-width: 120px;
    height: 35px;
    left: -650px;
    cursor: pointer;
}

.gameButton:hover {
    /*background-color: rgb(237, 22, 78);*/
    /*color: #fff;*/
}

#drawButton {
    z-index: 110110;
}

#passButton {
    z-index: 110112;
}

.spanButton {
    border: solid 2px deeppink;
    border-radius: 5px;
    background-color: #fcfcfc;
    padding: 3px 5px 3px 5px;
    width: 350px;
    margin: 30px auto;
    cursor: pointer;
}

.emButton {
    cursor: pointer;
    position:relative;
    float:left;
    width:auto;
    height:30px;
    margin-left:10px;
    text-decoration: underline;
    font-weight: 600;
    color: #ff3385 !important;
    font-size: 14px;
    z-index: 11101;
}


#resultSpace {
    position: absolute;
    left: 12px;
    top: -2000px;
    width: 480px;
    border: 3px solid #333;
    border-radius: 10px;
    text-align: center;
    z-index: 9999999;
    background-color: rgb(248, 248, 248, 0.85);
    opacity: 1;
    overflow:hidden;
    padding: 12px 8px;
    height: auto;
}

#clearMes {
    color: red;
    width: 450px;
    font-weight: bold;
    position: absolute;
    left: 35px;
    top: 140px;
    font-size: 48px;
    z-index: 110117;
    text-align: center;
}

#turnmes {
    color: deeppink;
    width: 570px;
    font-weight: bold;
    position: absolute;
    left: 120px;
    top: 200px;
    font-size: 24px;
    z-index: 110117;
    text-align: center;
}

#resultDisplay {
    width: 450px;
    position: absolute;
    top: 600px;
    left: 20px;
    font-weight: bold;
    font-size: 20px;
    z-index: 5;
}

#resultDisplay2 {
    width: 580px;
    position: absolute;
    top: -1500px;
    left: 30px;
    font-weight: bold;
    font-size: 20px;
    z-index: 1720999;

    height: auto;
    border: 5px solid #333;
    border-radius: 15px;
    background-color: #eee;
    opacity: 0.96;
    text-align: center;
}

#resultDisplay2 table {
    margin: auto;
    /*border: 3px solid #aaa;*/
    text-align: center;
    width: 300px;
}

#resultDisplay2 table td {
    text-align: left;
}

#winlose {
    width: 90%;
    margin: auto;
    text-align: center;
    font-size: 32px;
    color: dodgerblue;
    word-wrap: break-word;
}

#tesute:hover {
    /*background-color: deeppink;*/
    /*color: white;*/
    /*border: 3px solid #333;*/
}

.daifuda {
    width: 36px;
    height: 48px;
    position: absolute;
    top: 40px;
    z-index: 3;
    border: 5px dashed #aaa;
    font-weight: bold;
    text-align:center;
    color: #999;
}

#daifuda1 {
    left: 192px;
}
#daifuda2 {
    left: 280px;
}
#daifuda3 {
    left: 368px;
}
#daifuda4 {
    left: 456px;
}

#rest {
    position: absolute;
    top: 544px;
    left: 496px;
    z-index: 3;
    width: 90px;
    font-weight: bold;
    color: #666;
    text-align: center;
}

#monooki {
    width: 100px;
    position: absolute;
    font-weight: bold;
    top: 32px;
    left: 456px;
    z-index: 33;
    color: #999;
}

.upokiba {
    width: 73px;
    height: 97px;
    position: absolute;
    top: 80px;
    z-index: 5;
    border: 5px dashed #9edbf5;
    font-weight: bold;
    text-align:center;
    color: #999;
}

#suteokiba {
    width: 73px;
    left: 206px;
}

#teokiba {
    left: 118px;
}

#dealButton {
    width: 130px;
    position: absolute;
    font-weight: bold;
    top: 496px;
    left: 478px;
    font-size: 14px;
    z-index: 838;
    color: #333;
    background-color: #eee;
    /*text-decoration: underline;*/
    border: 3px solid #999;
    padding: 6px 6px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}

#daifuda {
    width: 100px;
    position: absolute;
    font-weight: bold;
    top: 420px;
    left: 592px;
    font-size: 18px;
    z-index: 88888;
    color: #999;
}

.bold {
    font-weight: bold;
    color: #E5004F;
}

#daiokiba {
    width: 73px;
    height: 97px;
    position: absolute;
    top: 450px;
    left: 574px;
    z-index: 3;
    border: 5px dashed #aaa;
}

@media screen and (min-width: 1280px) {
    footer {
        text-align: center;
    }
    /* 960px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 270px;
    }

    #exp {
        left: 270px;
        width: 520px;
        font-size: 20px;
    }

    #container {
        left: 270px;
    }

    #mobilead {
        left: 270px;
        top: 10px;
    }

    #mobilead2 {
        top: 3220px;
    }

    #contentright {
        left: 830px;
    }
}

#line1 {
    position: absolute;
    top: 185px;
    width: 100%;
    height: 5px;
    background-color: #187FC4;
}

#mesSpace {
    width: 500px;
    position: absolute;
    top: 15px;
    z-index: 99999;
    font-weight: bold;
    font-size: 32px;
}

#levelSpace {
    position: absolute;
    left: 18px;
}

#moveSpace {
    width: 200px;
    position: absolute;
    left: 300px;
}