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: #333;
}

A:visited {
    color: #333;
}

A:active {
    color: #333;
}

A:hover {
    color: #333;
}

a {
    font-weight: 600;
    color: #333;
}

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;
}

img {
    border-color: #ee2c1c;
}

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;
}

#title {
    position: relative;
    top: 135px;
    width: 120px;
    margin-top: 6px;
    margin-left: 20px;
    margin-right: 10px;
    float: left;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
}

.ctrlbt {
    position: relative;
    top: 135px;
    cursor: pointer;
    float: left;
    width: auto;
    height: 30px;
    margin-left: 26px;
    margin-top: 4px;
    text-decoration: underline;
    font-weight: 600;
    color: #000066;
    font-size: 30px;
    z-index: 12001;
}

.ctrlbt a {
    color: #000066;
}

#container {
    font-family: 'M PLUS Rounded 1c';
    position: absolute;
    left: 20px;
    top: 200px;
}


#ctrl-space {
    position: relative;
}

#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #8fd0e6;
}

#menuContainer {
    width: 430px;
    height: auto;
    margin: 25px auto 0 auto;
    position: absolute;
    top: -2500px;
    left: 0;
    text-align: center;
    padding: 20px 10px;
    z-index: 319999;
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 4px solid #666;
    opacity: 0.9;

    font-weight: bold;
    font-size: 24px;
}

select {
    min-width: 300px;
    padding: 4px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
}

.selectDiv {
    margin-top: 4px;
    margin-bottom: 4px;
    text-align: left;
    /*padding-left: 60px;*/
}

.dispButton {
    display: inline-block;
    font-size: 1.45rem !important;
    font-weight: bold;
    text-align: center;
    margin: 10px 5px 10px 5px;
    padding: 6px 0 5px 0;
    border: 2px solid #666;
    border-radius: 4px;
    color: #333 !important;
    background-color: #eee;
    width: auto;
    min-width: 160px;
    cursor: pointer;
    text-decoration: none !important;
}

#resultSpace {
    position: absolute;
    left: 10px;
    top: -2000px;
    width: 430px;
    border: 4px solid #333;
    border-radius: 4px;
    text-align: center;
    z-index: 9999999;
    background-color: rgb(248, 248, 248, 0.8);
    opacity: 1;
    overflow:hidden;
    padding: 12px 8px;

    height: auto;
}

.inputspace {
    margin: 10px auto 10px 10px;
}

.inputspace2 {
    margin: 20px auto 10px auto;
    text-align: center;
}

input[type="text"] {
    border: solid 2px #666;
    border-radius: 5px;
    background-color: #fcfcfc;
    padding: 3px 5px 3px 5px;
    height:  36px;
    width: 200px;
    font-size: 24px;
}

#difficultySpan,#sizeSpan,#ruleSpan,#ojyamaSpan,#cursorSpan {
    text-align: center;
}

#resultSpace div {
    margin: 20px 0;
    font-size: 28px;
}

.resultStr {
    display: inline-block;
    font-size: 24px;
    width: 100px;
}

#resultSpace div:first-of-type {
    font-weight: bold;
    /*color: #E9546B;*/
}

#exp {
    position: absolute;
    top: 790px;
    font-size: 20px;
    font-weight: bold;
    width: 420px;
    height: auto;
    left: 10px;
    margin-bottom: 20px;
    border: solid 3px #333;
    border-radius: 4px;
    padding: 15px;
    color: #333333;
    line-height: 1.6em;
    background-color: #eeeeee;
}

#ruleSpace {
    width: 240px;
    position: absolute;
    top: 130px;
    left: 280px;
    padding-left: 15px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: #c39b5e;
}


#scoreSpace {
    width: 240px;
    position: absolute;
    top: 190px;
    left: 280px;
    padding-left: 15px;
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

#score1 {
    /*float: left;*/
}

#score2 {
    /*float: right;*/
}

#exp p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}

#consoleSpace {
    position: absolute;
    top: 590px;
    left: 20px;
    width: 420px;
    z-index: 66699;
}

#consoleSpace span {
    font-size: 20px;
    font-weight: bold;
    color: palevioletred;
    margin: 8px;
    display: inline-block;
}

#totop a {
    /*color: rgb(237, 22, 78) !important;*/
}

#mobilead {
    position: absolute;
    float: left;
    left: 20px;
    top: 1660px;
    z-index: 39;
}

#mobilead2 {
    position: absolute;
    width: auto;
    height: auto;
    left: 20px;
    top: 10px;
    z-index: 38;
}

#gamecontent {
    width: 100%;
    height: 405px;
    top: 40px;
    margin: 0;
    border: 0;
    padding: 0;
}


#contentright {

    position: absolute;
    float: left;
    left: 640px;
    top: 200px;
    width: auto;
    height: auto;

    z-index: 100500;
}


#disp {
    position: absolute;
    font-weight: bold;
    background-color: #f2f2f2;
    line-height: 30px;
}


@media screen and (min-width: 1024px) {

    footer {
        text-align: center;
    }

    /* 1024px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 160px;
    }

    #exp {
        left: 160px;
    }

    #container {
        left: 160px;
    }

    #mobilead {
        display:block;
        left: 140px;
        top: 10px;
    }

    #mobilead2 {
        left: 150px;
        top: 1660px;
    }

    #contentright {
        left: 660px;
    }
}

@media screen and (min-width: 1280px) {
    /* 1280px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 300px;
    }

    #exp {
        left: 300px;
    }

    #container {
        left: 300px;
    }

    #mobilead,#mobilead2 {
        left: 310px;
    }

    #contentright {
        left: 820px;
    }
}


#line1 {
    position: absolute;
    top: 185px;
    width: 100%;
    height: 5px;
    background-color: #1e80a1;
}

.pointTag {
    /*min-width: 200px;*/
    width: 240px;
    height: auto;
    padding: 5px;
    /*background-color: #fafafa;*/
    /*border: 3px solid #333;*/
    /*border-radius: 5px;*/
    text-align: center;
    position: absolute;
    font-weight: bold;
    font-family: "Nico Moji";
    color: #f4d29e;
    /*rgb(232, 25, 112);*/
    text-shadow:1px 1px 0 #111, -1px -1px 0 #111,
    -1px 1px 0 #111, 1px -1px 0 #111,
    0 1px 0 #111,  0-1px 0 #111,
    -1px 0 0 #111, 1px 0 0 #111;
}

.pointTag2 {
    /*min-width: 200px;*/
    width: 240px;
    height: auto;
    padding: 5px;
    /*background-color: #fafafa;*/
    /*border: 3px solid #333;*/
    /*border-radius: 5px;*/
    text-align: center;
    position: absolute;
    font-weight: bold;
    font-family: "Nico Moji";
    color: #eee;
    color: rgb(209,209,209);
    color: linear-gradient(0deg, rgba(209,209,209,1) 0%, rgba(255,255,255,1) 100%);
    /*rgb(232, 25, 112);*/
    text-shadow:1px 1px 0 #111, -1px -1px 0 #111,
    -1px 1px 0 #111, 1px -1px 0 #111,
    0 1px 0 #111,  0-1px 0 #111,
    -1px 0 0 #111, 1px 0 0 #111;
}

.tooltip,.tooltip2 {
    position: relative;
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 10px;
    width: 100px;
    color: #333;
    font-size: 40px;
    /*background: rgb(250, 250, 250, 0.85);*/
    /*border: solid 3px #555;*/
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
    /*border-radius: 8px;*/
    z-index: 13526;
    line-height: 150%;
}

.tooltip2 {
    width: 280px !important;
}

#exp img {
    border: 3px solid #333;
}

#mesSpace {
    position:absolute;
    top: 480px;
    width: 500px;
    font-size: 64px;
    font-weight: bold;
    margin-left: 8px;
}