/* Common */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-collapse: collapse;
  font-size: 16px;
}
input, select, textarea {
  border: 1px solid #666666;
  background: #ffffff;
  padding-left: 2px;
}
body {
  max-width: 400px;
  margin: 0px auto;
  background-color: black;
  color: white;
  overflow: scroll;
}
.header_fixed {
  position: fixed;
  background-color: black;
  width: 400px;
}
:root { --color: red; }
.bt {  /* border-top */
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: var(--color);
}
.bb {  /* border-bottom */
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: var(--color);
}
.br {  /* border-right */
  border-right-style: solid;
  border-right-width: 1px;
  border-right-color: var(--color);
}
.bl {  /* border-left */
  border-left-style: solid;
  border-left-width: 1px;
  border-left-color: var(--color);
}
.cls { clear:both; }  /* float clear */

.t10 { margin-top:10px; }
h3 {  /* Page Title */
  font-size: 120%;
  font-weight: bold;
  padding-top: 5px;
  padding-left: 5px;
  min-height: 1em;
}
.err_msg {
  text-align: center;
  width: 100vw;
  color: red;
  line-height: 3em;
}
.w10  { width: 10px; }  .w20  { width: 20px; }  .w30  { width: 30px; }  .w40  { width: 40px; }  .w50  { width: 50px; }
.w60  { width: 60px; }  .w70  { width: 70px; }  .w80  { width: 80px; }  .w90  { width: 90px; }  .w100 { width:100px; }
.w110 { width:110px; }  .w120 { width:120px; }  .w130 { width:130px; }  .w140 { width:140px; }  .w150 { width:150px; }
.w160 { width:160px; }  .w170 { width:170px; }  .w180 { width:180px; }  .w190 { width:190px; }  .w200 { width:200px; }
.w210 { width:210px; }  .w220 { width:220px; }  .w230 { width:230px; }  .w240 { width:240px; }  .w250 { width:250px; }
.w260 { width:260px; }  .w270 { width:270px; }  .w280 { width:280px; }  .w290 { width:290px; }  .w300 { width:300px; }
.w310 { width:310px; }  .w320 { width:320px; }  .w330 { width:330px; }  .w340 { width:340px; }  .w350 { width:350px; }
.w360 { width:360px; }  .w370 { width:370px; }  .w380 { width:380px; }  .w390 { width:390px; }  .w400 { width:400px; }


/* Title */
div.title {
  width:360px;
  height: 80px;
}

/* DrawerMenu */
ol, ul {
  list-style: none;
}
a {
  text-decoration: underline;
  color: inherit;
}
.toggle_menu {
  position: absolute;
  top: 0px;
  right: 0px;
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}
.toggle_menu .content_hide {
  position: absolute;
  top: 0;
  left: 40px;
  width: 150px;
  height: 100vh;
  background-color: #000000;
  opacity: 0.5;
}
.toggle_menu .drawer_menu {
/*  position: fixed;*/
  position: absolute;
  top: 0;
  right: -100vw;
  width: 250px;
  height: 100vh;
/*  cursor: pointer;*/
  background-color: #000000;
}
.toggle_menu .drawer_menu ul {
  margin: 0;
  padding: 0;
}
.toggle_menu .drawer_menu li {
  list-style: none;
}
.toggle_menu .drawer_menu li.nav_score {
}
.toggle_menu .drawer_menu li.nav_score2 a {
  text-align: left;
  padding-left:1em;
}
.toggle_menu .drawer_menu li.logout {
  background-color: #990000;
  color: white;
  margin-top: 1em;
  border-top: 1px solid #ffffff;
}
.toggle_menu .drawer_menu li a {
  display: block;
/*  padding: 10px 20px;*/
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}
.toggle_menu #toggle_btn {
  position: absolute;
  display: none;
  opacity: 0;
}
.toggle_menu #toggle_btn:checked ~ .drawer_menu {
  -webkit-transform: translateX(-100vw);
          transform: translateX(-100vw);
}
.toggle_menu #toggle_btn:checked ~ .content_hide {
  -webkit-transform: translateX(-400px);
          transform: translateX(-400px);
}
/* menu toggle */
.toggle_menu #toggle_btn ~ label {
  display: block;
  padding: 0em;
  cursor: pointer;
  -webkit-transition: 0.5s transform;
          transition: 0.5s transform;
  -webkit-transition-timing-function: cubic-bezier(.61,-0.38,.37,1.27);
          transition-timing-function: cubic-bezier(.61,-0.38,.37,1.27);
  text-align: center;
  color: #ffffff;
  background-color:#000000;
}
.toggle_menu #toggle_btn:checked ~ label {
  -webkit-transform: translateX(-250px);
          transform: translateX(-250px);
}
.toggle_menu #toggle_btn ~ label::before {
  content: '≡';
  font-size: 1.5em;
}
.toggle_menu #toggle_btn:checked ~ label::before {
  content: '×';
}



/* Data Regist(abort) Button */

.data_regist, .data_abort {
  position: absolute;
  top: 40px;
  right: 0px;
  display: inline-block;
  width: 40px;
  height: 40px;

}
.data_regist a, .data_abort a {
  text-align: center;
  line-height: 40px;
  background-color: #ffffff;
  display: block;
  color: black;
}

/* Footer */
div.footer_ajust {
  height: 3.5em;
}
footer {
  margin-top: 1em;
  padding-top: 1em;
  padding-right: 5px;
  text-align: right;
  font-size: 14px;
  background-color: #990000;
  position: fixed;
  bottom: 0;
  width: 400px;
}

/* FormCommon */
dl.nobg {
  display: block !important;
  font-size: 0 !important;
}
dl.nobg dt {
  background-color: #ffffcc !important;
  display: inline-block !important;
  width: 6em !important;
  text-align: right !important;
   padding: 0 4px !important;
}
dl.nobg dd {
  background-color: #ffffcc !important;
  display: inline-block !important;
  width: 150px !important;
  padding: 0 4px !important;
}
dl.nobg dd.full {
  background-color: #ffffcc !important;
  display: block !important;
  width: 100% !important;
  font-size: 12px !important;
  padding: 0 !important;
}
div.send_button {
  padding-top: 15px;
  text-align: right;
}
div.send_button input {
  padding: 4px 8px;
}
div.reg_err {
  width: 100vw;
  padding: 0 5px;
  font-size: 14px;
  line-height: 14px;
  color: red;
}
div.notice {
  width: 100vw;
  padding: 0 5px;
  font-size: 14px;
  line-height: 14px;
}
span.notice {
  font-size: 12px;
  line-height: 12px;
}


/* Average View Area */
article.average {
  padding-top: 1em;
}
article.average dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.average dt.avg {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 150px;
  text-align: center;
}
article.average dd.avg {
  background-color: #ffffcc;
  color: #000000;
  text-align: center;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 70px;
}
article.average dt.scr {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 120px;
  text-align: center;
}
article.average dd.scr {
  background-color: #ffffcc;
  color: #000000;
  text-align: center;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 60px;
}



/* View Setting Area */
article.views {
  padding-top: 1em;
}
article.views dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.views dt.center_title {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  text-align: center;
}
article.views dd.center_select {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 300px;
}
article.views dt.games_title {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  text-align: center;
}
article.views dd.games_select {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 300px;
}


/* Score Data */
article.scores {
  padding-top: 280px;
}

article.scores table {
  width: 100%;
}
article.scores table th {
  border: solid 1px #ff0000;
  color: white;
  padding: 2px;
}
article.scores table th:nth-of-type(1) {
 background-color: #990000;
}
article.scores table th:nth-of-type(2) {
 background-color: #999900;
}
article.scores table th:nth-of-type(3) {
 background-color: #000099;
}
article.scores table th:nth-of-type(4) {
 background-color: #009900;
}
article.scores table td {
  border: solid 1px #ff0000;
  color: #000000;
  text-align: center;
  padding: 2px;
}
article.scores table td:nth-of-type(1) {
 background-color: #ffcccc;
}
article.scores table td:nth-of-type(2) {
 background-color: #ffffcc;
}
article.scores table td:nth-of-type(3) {
 background-color: #ccccff;
}
article.scores table td:nth-of-type(4) {
 background-color: #ccffcc;
}


#maintnance_dialog_bg {
  background-color: rgba(0,0,0, 0.4);
  width: 100vw;
  height: 100vh;
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
}
#maintnance_dialog {
  width: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit- transform: translateY(-50%) translateX(-50%);
  padding: 20px;
  background-color: #ffffcc;
  border-radius: 5px;
  border: 1px black solid;
  z-index: 2;
}
#maintnance_dialog p {
  text-align: center;
  color: black;
}
#maintnance_button {
  padding-top: 1em;
  text-align: center;
}
article.brandchoice {
  padding-top: 120px;
}
article.brandchoice dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.brandchoice dt {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 130px;
  text-align: center;
  justify-content: center;
}
article.brandchoice dd {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 270px;
}

article.bowldata {
}
article.bowldata dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.bowldata dt {
  background-color: #ffcccc;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 130px;
  text-align: center;
  justify-content: center;
  color: black;
}
.dt_head {
  background-color: #990000 !important;
  color: white !important;
  font-weight: bold !important;
}
article.bowldata dd {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 270px;
}
.dd_head {
  background-color: #999900 !important;
  text-align: center !important;
  display: block !important;
  color: white !important;
  font-weight: bold !important;
}
.dd_head2 {
  background-color: #009900 !important;
  text-align: center !important;
  display: block !important;
  color: white !important;
  font-weight: bold !important;
}

/* Score Regist Form */
article.score_regist {
  padding-top: 115px;
}
article.score_regist dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.score_regist dt {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 130px;
  text-align: center;
  justify-content: center;
}
article.score_regist dd {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 270px;
}
article.score_regist dd input[type="number"] {
  width: 5em;
}
article.score_regist dd textarea {
  width: 230px;
  height: 4em;
}
/* Member Regist Form */
article.member_regist {
  padding-top: 120px;
}
article.member_regist dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.member_regist dt {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 130px;
  text-align: center;
  justify-content: center;
}
article.member_regist dd {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 270px;
}
input#name1, input#name2 {
  width: 5em;
}/* Login */
article.login {
  padding-top: 150px;
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 300px;
  margin: 0 auto;
}
article.login form, article.login dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
}
article.login dt {
  background-color: #aa0000;
  padding: 10px;
  display: flex;
  flex-direction: column;
  width: 130px;
  text-align: center;
  justify-content: center;
}
article.login dd {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 10px;
  display: flex;
  width: 170px;
}
article.login dd input {
  width:100%;
}
article.login .login_btn {
  width: 100px;
  height: 40px;
  margin: 30px auto;
}
article.login .login_btn input {
  width: 100px;
  height: 40px;
  line-height: 40px;
}

div.memregmsg {
  width: 100vw;
  text-align:center;
  padding-bottom: 30px;
}



/* Average View Area */
article.average {
  padding-top: 1em;
}
article.average dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.average dt.avg {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 150px;
  text-align: center;
}
article.average dd.avg {
  background-color: #ffffcc;
  color: #000000;
  text-align: center;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 70px;
}
article.average dt.scr {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 120px;
  text-align: center;
}
article.average dd.scr {
  background-color: #ffffcc;
  color: #000000;
  text-align: center;
  padding: 4px;
  display: flex;
  flex-direction: column;
  width: 60px;
}



/* View Setting Area */
article.views {
  padding-top: 1em;
}
article.views dl {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  width: 400px;
}
article.views dt.center_title {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  text-align: center;
}
article.views dd.center_select {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 300px;
}
article.views dt.games_title {
  background-color: #aa0000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  text-align: center;
}
article.views dd.games_select {
  background-color: #ffffcc;
  color: #000000;
  text-align: left;
  padding: 4px;
  display: flex;
  width: 300px;
}


/* Main Page */
article.scores {
  padding-top: 250px;
}

article.scores table {
  width: 100%;
}
article.scores table th {
  border: solid 1px #ff0000;
  color: white;
  padding: 2px;
}
article.scores table th:nth-of-type(1) {
 background-color: #990000;
}
article.scores table th:nth-of-type(2) {
 background-color: #999900;
}
article.scores table th:nth-of-type(3) {
 background-color: #000099;
}
article.scores table th:nth-of-type(4) {
 background-color: #009900;
}
article.scores table td {
  border: solid 1px #ff0000;
  color: #000000;
  text-align: center;
  padding: 2px;
}
article.scores table td:nth-of-type(1) {
 background-color: #ffcccc;
}
article.scores table td:nth-of-type(2) {
 background-color: #ffffcc;
}
article.scores table td:nth-of-type(3) {
 background-color: #ccccff;
}
article.scores table td:nth-of-type(4) {
 background-color: #ccffcc;
}






