html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

div,form,select,button{
    font-size:16px;
}

html {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

#overlay {
    display: none;
}

#modal_back {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal_inner {
    background-color: #c5c5c5;
    padding: 5px;
}

#modal_top{
    display:flex;

}

#add_block_panel_wrapper {
    display: none;
}

#setting_panel_wrapper {
    display: none;
}

#add_block_panel {
    display: flex;
    flex-direction: column;
}

#setting_panel{
}

#setting_form p {
    padding: 10px;
}

.container-in {
    display: flex;
    align-items: center;
    align-content: center;
}

.container-main {
    display: flex;
    flex-wrap: wrap;
}

.container-main-row {
    display: flex;
}

.wide-block {
    width: 150px;
    height: 50px;
    border: solid 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    cursor: pointer;

}

.tall-block {
    width: 50px;
    height: 150px;
    border: solid 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    cursor: pointer;
}

.block {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.block input {
    display: none;
}

.block.true {
    background-color: #5b5b5b;
}

.container-main .block:not(.true) {
    background-color: #ffffff;
}

.outer {
    width: 52px;
    height: 52px;
}

.container-main .block {
    border: solid 1px;
    cursor: pointer;
}

#tool_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.square_btn {
    position: relative;
    display: inline-block;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: #FFF;
    background: #fd9535; /*背景色*/
    border-bottom: solid 2px #d27d00; /*少し濃い目の色に*/
    border-radius: 4px; /*角の丸み*/
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
    font-weight: bold;
    cursor: pointer;
}

.square_btn:active {
    border-bottom: solid 2px #fd9535;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}

#mainBlock {
    width: 100%;
    height: 100%;
}

#mainCanvas {
    background-color: #f0f0f0;
}

#ad_sm {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    justify-content: center;
}

@media only screen and (max-width: 768px) {

    #ad_pc {
        display: none;
    }

    #ad_sm {
        display: flex;
    }

}

/* デバイスの横幅が320px以下の場合 */

