body {
    font-family: "Meiryo UI";
    width: 100%;
    max-width: 1000px;
    margin: auto;
    background-color: #dcdcdc;
    padding: 0px 10px;
}

footer {
    font-family: "Meiryo UI";
    font-size: 16px;
}

.formmain {
    background-color: #ffffff;
    padding: 2rem 2rem;
}

#subtitle {
    font-size: 1.5em;
    color: #364e96;
    padding: 0;
    margin: 0;
}

h1 {
    color: #364e96;/*文字色*/
    padding: 0;/*上下の余白*/
    margin: 0;
    border-top: solid 3px #364e96;/*上線*/
    border-bottom: solid 3px #364e96;/*下線*/
    font-size: 26px;
    text-shadow: 3px 3px #b0c4de;
}

h1:first-letter {
    font-size: 2em;
    color: #7172ac;
}

h2 {
    position: relative;
    padding: 0.8rem 0;
    margin-bottom: 0.1rem;
    overflow: hidden;
    color: #353535;
    font-weight: bold;
    font-size: 24px;
    width:16em;
}

h2:before,
h2:after {
    position: absolute;
    width: 100%;
    bottom: 0;
    content: '';
}

h2:before {
    border-bottom: 5px solid #ddb3b8;
}

h2:after {
    border-bottom: 5px solid #353535;
}

h3 {
    margin-top: 0.1rem;
    padding: 1rem 0rem;
    margin-bottom: 0.3rem;
    border-bottom: 2px solid #b2d5de;
    font-size: 20px;
    width:auto;
}

#indent1 {
    padding: 0rem 2rem;
}

#indent2 {
    padding: 0rem 2rem;
}

#text {
    font-size: 18px;
    word-break: break-all;
}

#output {
    font-size: 18px;
}

.billingsettings {
    font-size: 16px;
    width: auto;
}

.billingsettings>input[type=number] {
    margin: 5px 5px;
    width: 10rem;
}

#formmessagesuccess {
    font-size: 16px;
    color: green;
    width: auto;
    word-break: break-all;
}

#formmessagefalse {
    font-size: 16px;
    color: red;
    width: auto;
    word-break: break-all;
}

#resultoutput {
    font-size: 16px;
    width: auto;
    word-break: break-all;
}

/* ランダム要素のテーブルユーティリティ設定 */
.utilitytable{
    display: table;
    border-collapse: collapse;
}
.utilitytable>div{
    display: table-row;
}
.utilitytable>div>div{
    display: table-cell;
    border: 1px solid #999;
    padding: 5px;
}
.utilitytable#utilitycell {
}
#utilityheadercell {
    font-size: 18px;
    background-color: #336B87;
    color: #ffffff;
}

/* 排出率合計のテーブル設定 */
.oddstotaltable{
    display: table;
    border-collapse: collapse;
}
.oddstotaltable>div{
    display: table-row;
}
.oddstotaltable>div>div{
    display: table-cell;
    border: 1px solid #999;
    padding: 5px;
}
#oddstotalheadercell {
    font-size: 16px;
    background-color: #2A3132;
    color: #ffffff;
}
#oddstotalcell {
    font-size: 16px;
    width: auto;
}

/* ランダム要素のテーブル設定 */
.randtable{
    display: table;
    border-collapse: collapse;
}
.randtable>div{
    display: table-row;
}
.randtable>div>div{
    display: table-cell;
    border: 1px solid #999;
    padding: 5px;
}

#randcell {
    font-size: 16px;
}
#randheadercell {
    font-size: 16px;
}
#randtableheader {
    background-color: #eaf3ff;
}

input.utilbutton {
    margin: 3px 3px;
    font-size: 16px;
    width: auto;
}
input.randElement {
    margin: 5px 5px;
    font-size: 16px;
    width: auto;
}
input[type="number"] {
    margin: 5px 5px;
    font-size: 16px;
    width: 20rem;
}
input.randExecNum {
    margin: 5px 5px;
    font-size: 16px;
    width: 8rem;
}

/* 実行結果テキストエリア */
textarea {
  max-height: 130px;
  min-height: 130px;
  max-width: 500px;
  min-width: 500px;
}

/* 統計結果のテーブル設定 */
.statistictable {
    display: table;
    border-collapse: collapse;
}
.statistictable>div {
    display: table-row;
}
.statistictable>div>div {
    display: table-cell;
    border: 1px solid #999;
    padding: 5px;
}
#statcell {
    font-size: 16px;
}
#statheadercell {
    font-size: 16px;
    background-color: #eaf3ff;
}


/* 課金関連のテーブル設定 */
.billtable{
    display: table;
    border-collapse: collapse;
}
.billtable>div{
    display: table-row;
}
.billtable>div>div{
    display: table-cell;
    border: 1px solid #999;
    padding: 5px;
}
#billtableheadercell {
    font-size: 16px;
    background-color: #2A3132;
    color: #ffffff;
}
#billcell {
    font-size: 16px;
    width: auto;
}


/* 実行結果出力形式 */
#resulttype {
    font-size: 16px;
    width: 500px;
}

/*まずはお決まりのボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;/*rem算出をしやすくするために*/
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}
/*まずはお決まりのボックスサイズ算出をborer-boxに_ここまで */

input.btn-border {
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
}

input.btn-border:hover {
  color: #fff;
  background: #000;
}
