* {
    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;
}

#line1 {
    position: absolute;
    top: 185px;
    width: 100%;
    height: 5px;
    background-color: #187FC4;
}


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: 190px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #8bbada;
}


#ctrl-space {
    position: relative;
}

#container {
    position: absolute;
    left: 20px;
    top: 210px;
}

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: 865px;
    left: 20px;
    font-size: 26px;
    font-weight: bold;
    width: 660px;
    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: 5;
}

#exp p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}

#totop a {
    color: rgb(237, 22, 78) !important;
}

#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: 880px;
    top: 200px;
    width: 140px;
    height: 640px;
    z-index: 100500;
}

#title {
    position: relative;
    top: 140px;
    width: auto;
    margin-top: 8px;
    margin-left: 20px;
    float: left;
    font-weight: 600;
    color: black;
    font-size: 20px;
}

.ctrlbt {
    position: relative;
    top: 140px;
    cursor: pointer;
    float: left;
    width: auto;
    height: 30px;
    margin-left: 15px;
    margin-top: 8px;
    text-decoration: underline;
    font-weight: 600;
    color: #000066;
    font-size: 20px;
    z-index: 12001;
}

#mobilead {
    position: absolute;
    padding-left: 30px;
    float: left;
    left: 20px;
    top: 20px;
    z-index: 100500;
}

.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;
}


.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: 5px;
    color: #333 !important;
    background-color: #eee;
    width: auto;
    min-width: 240px;
    cursor: pointer;
    text-decoration: none !important;
}

.spanButton {
    border: solid 2px #333;
    border-radius: 5px;
    background-color: #fcfcfc;
    padding: 3px 5px 3px 5px;
    width: 350px;
    margin: 20px 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;
}

#clearMes {
    color: red;
    width: 450px;
    font-weight: bold;
    position: absolute;
    left: 180px;
    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: 16px;
    left: 20px;
    font-weight: bold;
    font-size: 20px;
    z-index: 700;
}

#resultDisplay2 {
    width: 580px;
    position: absolute;
    top: -1500px;
    left: 100px;
    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;
}

#tefuda {
    width: 100px;
    position: absolute;
    font-weight: bold;
    top: 420px;
    left: 502px;
    font-size: 18px;
    z-index: 88888;
    color: #999;
}

#daifuda {
    width: 100px;
    position: absolute;
    font-weight: bold;
    top: 420px;
    left: 592px;
    font-size: 18px;
    z-index: 88888;
    color: #999;
}

#tesute {
    width: 150px;
    position: absolute;
    font-weight: bold;
    top: 195px;
    left: 577px;
    font-size: 18px;
    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;
}

#tesute:hover {
    /*background-color: deeppink;*/
    /*color: white;*/
    /*border: 3px solid #333;*/
}

#teokiba {
    width: 73px;
    height: 97px;
    position: absolute;
    top: 450px;
    left: 486px;
    z-index: 3;
    border: 5px dashed #aaa;
}

#removeButton {
    position: absolute;
    top: 18px;
    left: 416px;
    width: 140px;
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    z-index: 7888;
    text-align: center;
    cursor: pointer;

    font-size: 20px;
    padding: 4px 0 4px 0;
    border: 2px solid #666;
    border-radius: 4px;
    background-color: #eee;
}

#dealButton {
    position: absolute;
    top: 18px;
    left: 576px;
    width: 160px;
    color: #333;
    font-weight: bold;
    z-index: 7888;
    text-align: center;
    cursor: pointer;

    font-size: 20px;
    padding: 4px 0 4px 0;
    border: 2px solid #666;
    border-radius: 4px;
    background-color: #eee;
}


#rest {
    position: absolute;
    top: 62px;
    left: 630px;
    z-index: 3;
    width: 120px;
    font-weight: bold;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.baokiba {
    position: absolute;
    width: 71px;
    height: 93px;
    border: 5px dashed #ccc;
    top: 95px;
    z-index: 7;
}
#baokiba1 {
    left: 15px;
}
#baokiba2 {
    left: 93px;
}
#baokiba3 {
    left: 171px;
}
#baokiba4 {
    left: 249px;
}
#baokiba5 {
    left: 327px;
}
#baokiba6 {
    left: 405px;
}
#baokiba7 {
    left: 483px;
}
#baokiba8 {
    left: 561px;
}
#baokiba9 {
    left: 639px;
}
#baokiba10 {
    left: 717px;
}

span img {
    border: 2px solid #333;
}


.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: 300px;
    }

    #exp {
        left: 300px;
        width: 580px;
        font-size: 20px;
    }

    #container {
        left: 270px;
    }

    #mobilead {
        left: 260px;
    }

    #contentright {
        left: 1130px;
    }
}


#menuContainer {
    width: 600px;
    height: auto;
    margin: 25px auto 0 auto;
    position: absolute;
    top: -2500px;
    left: 100px;
    text-align: center;
    padding: 20px 10px;
    z-index: 319999;
    background-color: #d9d9d9;
    border-radius: 12px;
    border: 4px solid #666;
    opacity: 0.9;

    font-weight: bold;
    font-size: 24px;
}


.selectDiv {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
    /*padding-left: 60px;*/
}


select {
    min-width: 240px;
    padding: 4px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
}

#difficultySpan {
    text-align: center;
}

#ruleMes {
    position: absolute;
    width: 480px;
    top: 568px;
    left : 20px;
    font-size: 20px;
    font-weight: bold;
    color: #666;
}