@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    background: url(../img/bg_img.gif);
    line-height: 1;
    height: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

input[type="submit"],
input[type="button"] {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
}


input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
    display: none;
}


input[type="submit"]::focus,
input[type="button"]::focus {
    outline-offset: -2px;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

#page_top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    top: 0;
}

#page_top a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

#page_top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f015';
    font-size: 25px;
    color: black;
    position: absolute;
    width: 25px;
    height: 25px;
    top: 2%;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}


#page_top02 {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    top: 25px;
    opacity: .7;
}

#page_top02 a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

#page_top02 a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f015';
    font-size: 25px;
    color: black;
    position: absolute;
    width: 25px;
    height: 25px;
    top: 2%;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

/* popup */
.overlay {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    z-index: 1;
}

.btn_area {
    width: 75%;
    position: absolute;
    top: 10%;
    left: 12%;
    background-color: #000;
    color: #fff;
    z-index: 2;
    text-align: center;
    padding: 1rem 0 0;
    box-sizing: border-box;
    opacity: .8;
}

.btn_area p {
    padding: .5rem;
    font-size: small;
}

.btn_area img {
    width: 40%;
    margin: 1rem auto;
}

.btn_area button {
  margin: 1rem 0 1rem;
  max-width: 200px;
  padding: 1rem 2rem;
  background-color: #0188BA;
  border-radius: .4rem;
  color: #fff;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn_area button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

button {
    width: 90%;
    padding: .5rem;
    border-radius: 4px;
}

/* score */
.resscore p{
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
    display: block;
    background: #fff;
    padding: .6rem;
    border-radius: 4px;
    margin-top: 1rem;
    line-height: 1.4;
    text-align: center;
}

/* modal */
.modal {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100vw;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden scroll;
    background: #000;
    opacity: .9;
}
.close_modal {
    position: sticky;
    top: 0;
    height: 0;
    text-align: right;
}

.close_modal button{
    margin: 20% 20% 0 0;
    width: 12%;
    font-size: 1.4rem;
    background-color: #0188BA;
    color: #fff;
}

.inner {
    position: relative;
    width: 200px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto; 
}

/* font */
.mt_1{
    margin-top: .5rem;
}


.page-top::before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f015';
    font-size: 18px;
    color: black;
    position: absolute;
    width: 18px;
    height: 18px;
    top: 17%;
    bottom: 0;
    right: 0;
    left: 7px;    
    color: black;
}

@media screen and (max-width:767px) , screen and (max-height: 450px) {
    /* footer */
    .footer {
        flex-wrap: wrap;
        display: flex;   
        font-size: small;
        justify-content: space-between;
        padding-bottom: 10px;
        width: 98%;
    }

    .footer .foot_list {
        height: 36px;
        flex: 0 0 32%;
        padding: .5rem 0 .5rem .5rem;
        text-align: center;
        background: #ecd9af;
        border: 2px solid #625b49;
        box-sizing: border-box;
        border-radius: 1rem;
        filter: drop-shadow(3px 2px 3px #666);
        box-shadow: 0px 0px 8px 3px #c9ac75 inset;
    }

    .foot_list:hover {
        text-align: center;
        background: #c9ac75;
        border: 2px solid #625b49;
        box-sizing: border-box;
        border-radius: 1rem;
    }

    .foot_list a {
        color: #000;
    }

    .bdr02 {
        text-align: center;
        display: inline-block;
        padding: 30px;
        margin: 0;
        position: relative;
    }


    #menu-bottom {
        width: 100%;
        padding: 3px;
        position: fixed;
        z-index: 99;
        overflow: auto;
        bottom: 0;
    }
}

@media screen and (min-width:768px) and (min-height: 451px) {
    /* footer */
    .footer {
        flex-wrap: wrap;
        display: flex;   
        font-size: small;
        justify-content: space-between;
        margin-top: 20px;;
    }

    .footer .foot_list {
        height: 36px;
        flex: 0 0 32%;
        padding: .5rem 0 .5rem .5rem;
        text-align: center;
        background: #ecd9af;
        border: 2px solid #625b49;
        box-sizing: border-box;
        border-radius: 1rem;
        filter: drop-shadow(3px 2px 3px #666);
        box-shadow: 0px 0px 8px 3px #c9ac75 inset;
        font-size: 16px;
    }

    .foot_list:hover {
        text-align: center;
        background: #c9ac75;
        border: 2px solid #625b49;
        box-sizing: border-box;
        border-radius: 1rem;
    }

    .foot_list a {
        color: #000;
    }

    .foot_list a:hover {
        color: #fff;
    }

    .bdr02 {
        text-align: center;
        display: inline-block;
        padding: 30px;
        margin: 0;
        position: relative;
    }


    #menu-bottom {
        width: 100%;
        padding: 3px;
        position: fixed;
        z-index: 99;
        overflow: auto;
        /* bottom: 0; */
    }
}

@media (orientation: landscape) {
    #menu-bottom {
        width: 60%;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        position: unset;
    }
}

.logout {
    background: url(../img/icon_logout.png) left no-repeat;
    background-size: 16px;
    line-height: 1rem;
}

.foot_list a {
    color: #000;
}

.rank {
    background: url(../img/icon_rank.png) left no-repeat;
    background-size: 20px;
    line-height: 1rem;
}