#main{
  width: 800px;
  margin:0 auto;
  color:#222;
  background-color:#FFF;
  padding: 10px 20px 20px 20px;
}

#bg{
  margin:0;
  background:repeating-linear-gradient(45deg, #FFFFFF 0, #FFFFFF 10px, #fffacd 10px, #fffacd 20px);
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-flow: column;
  min-height: 100vh;
}

#checkbox{
  margin:2px auto 20px auto;
  font-weight: bold;
  border: dashed 2px #000000;
  border-radius: 5px;
  padding:10px;
  line-height:2em;
}

.textarea1 {
  border: 2px solid #2e8b57;
  border-radius: 0.67em;
  resize: vertical;
  width:700px;
  height:300px;
  line-height:25px;
  padding:7px;
  border-bottom: solid 7px #2f4f4f;
}

.textarea2 {
  border: 2px solid #2e8b57;
  border-radius: 0.67em;
  resize: vertical;
  width:340px;
  height:300px;
  line-height:25px;
  padding:7px;
  border-bottom: solid 7px #2f4f4f;
}

.mojisu {
  font-size:0.8em;
}

#after_v, #after_h {
  position: relative;
  padding: 0.5em 1em;
  line-height:25px;
  font-weight: bold;
  font-size:15px;
  border: solid 2px #9932cc;
  border-radius: 10px;/*角の丸み*/
  margin:2px;
  border-bottom: solid 7px #4b1f63;
  background: #FFFFFF;
}

a       { text-decoration:none;color:#000;}
a:hover { text-decoration:underline;}

#header{
  background: #FFF;
  color: #000;
  font-size:80%;
  width:100%;
  text-align:center;
  padding: 3px 0;
  border-bottom: ridge 3px #AAA;
}

#footer{
  background: #FFF;
  color: #000;
  width:100%;
  text-align:center;
  padding: 15px 0;
  border-top: ridge 3px #AAA;
  margin-top: auto;
}

.floatright{
  float: right;
  width: calc(100%/2.1);
}

h1 {
  position: relative;
  padding: 0.25em 1em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
  text-align:center;
}
h1:before, h1:after {
  content: '';
  position: absolute;
  top: -7px;
  width: 2px;
  height: calc(100% + 14px);
  background-color: black;
}
h1:before {
  left: 7px;
}
h1:after {
  right: 7px;
}

.copy_button{
  display: inline-block;
  padding: 0.1em 0.5em;
  text-decoration: none;
  background: #677cbb;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #191970;
  border-radius: 7px;
}
.copy_button:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);/*影を小さく*/
  border-bottom: none;
}

.dl_button{
  position: relative;
  display: inline-block;
  padding: 0.1em 0.5em;
  text-decoration: none;
  background: #8d57a7;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #4b1f63;
  border-radius: 7px;
}

.dl_button:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);/*影を小さく*/
  border-bottom: none;
}

.react_button{
  display: inline-block;
  padding: 0.1em 0.5em;
  text-decoration: none;
  background: #556b2f;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #2f4f4f;
  border-radius: 7px;
}

.react_button:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);/*影を小さく*/
  border-bottom: none;
}

/*タブ切り替え全体のスタイル*/
.tabs {
  margin-top: 50px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

/*タブのスタイル*/
.tab_item {
  width: calc(100%/2);
  height: 50px;
  border-bottom: 3px solid #333333;
  background-color: #888888;
  line-height: 50px;
  font-size: 16px;
  text-align: center;
  color: #565656;
  display: block;
  float: left;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s ease;
}
.tab_item:hover {
  opacity: 0.75;
}

/*ラジオボタンを全て消す*/
input[name="tab_item"] {
  display: none;
}

/*タブ切り替えの中身のスタイル*/
.tab_content {
  display: none;
  padding: 30px;
  clear: both;
  overflow: hidden;
}

.subject01 {
   text-align: left;  /* 文章を左寄せする(※) */
   float: left;     /* 左端に寄せて、後続を右側へ回り込ませる */
}
.subject02 {
   text-align: right; /* 文章を右寄せする */
}

/*選択されているタブのコンテンツのみを表示*/
#horisontal:checked ~ #horisontal_content,
#vertical:checked ~ #vertical_content {
  display: block;
}

/*選択されているタブのスタイルを変える*/
.tabs input:checked + .tab_item {
  background-color: #333333;
  color: #fff;