/*
OCRB代替フォント
Licensed under SIL Open Font License 1.1 (http://scripts.sil.org/OFL)
&#169; 2019 会津若松市
*/
@font-face {
  font-family: 'OCRB';
  src: url('https://soyocho.com/calculator/OCR_font/OCRB_aizu.ttf') format('truetype');
  src: url('https://soyocho.com/calculator/OCR_font/OCRB_aizu.woff') format('woff');
  src: url('https://soyocho.com/calculator/OCR_font/OCRB_aizu.woff2') format('woff2');
}

.body {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  font-family : Arial,メイリオ, meiryo, sans-serif;
}

/***************************
　入力帳票
***************************/
.paper {
  position: relative;
  width: 740px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transform-origin: 0 0;
}

.paper-input {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.paper-image {
  position: relative;
}

.paper-input .sheet-input {
  position: absolute;
  outline: none;
  box-sizing: border-box;
  margin: 0;
  border: none !important;
  font-size: 20px;
  padding: 12px 4px 4px 4px !important;
  text-align: right;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  font-family : Arial,メイリオ, meiryo, sans-serif;
}

.paper-input .flag-button,
.paper-input .select,
.paper-input .mini-select {
  position: absolute;
  outline: none;
  box-sizing: border-box;
  margin: 0;
  border: none !important;
  font-size: 20px;
  padding: 12px 4px 4px 4px !important;
  text-align: right;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  font-family : Arial,メイリオ, meiryo, sans-serif;
  text-align: center;
}

.paper-input .flag-button {
  cursor: pointer;
  padding: 0 !important;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  text-shadow:
    black 0.5px 1px 0, black -0.5px -0,
    black -0.5px 1px 0, black 0.5px -0.5px 0,
    black 0px 0.5px 0, black 0 -0.5px 0,
    black -0.5px 0 0, black 0.5px 0 0;
}

.paper-input select.select,
.paper-input select.mini-select {
  cursor: pointer;
  padding: 0 !important;
  font-size: 21px;
  appearance: none;
  -webkit-appearance: none;
}

.paper-input select.mini-select {
  font-size: 15px;
}

.paper-input input:focus {
  outline: none;
}

.paper-input label.checkbox-wrapper {
  position: absolute;
  font-size: 12px;
  padding: 0 0 0 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-wrapper>input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  position: relative;
  display: none;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  width: 16px;
  vertical-align: -0.8rem;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  margin: .4rem;
  outline: none;
  margin: 0 2px 0 0 !important;
}

.checkbox-wrapper>input[type="checkbox"]::before {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  left: 0;
  top: 50%;
  border: 1px solid;
  border-color:  #000000;
  background-color: #FFFFFF;
}

.checkbox-wrapper>input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 16px;
  height: 9px;
  margin-top: -9px;
  top: 50%;
  left: 0px;
  transform: rotate(-45deg);
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-color:  #000000;
}

.split-input {
  width: 167px;
  height: 20px;
  position: absolute;
  text-align: right;
  overflow: hidden;
  z-index: 0;
  font-size: 21px;
}

.split-input .input {
  box-sizing: border-box;
  background: #ffff99;
  position: absolute;
  margin: 0 !important;
  padding: 0 4px !important;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  text-align: right;
  font-size: 21px;
}

.split-input>.result {
  display: block;
  font-family: 'OCRB', 'Courier New', monospace;
  font-weight: 400;
  width: 100%;
  height: 100%;
  line-height: 24px;
  letter-spacing: 8.0px;
  white-space: nowrap;
}

.paper-popup {
  overflow: hidden;
  z-index: 200;
}

.paper-popup.opened {
  overflow: visible;
}
.paper-popup.opened > .paper-input {
  overflow: visible;
}

.popup-cover {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 110;
}

.popup-cover.showed {
  display: block;
  animation: show 70ms linear 0s;
}

.paper-input .color-button {
  cursor: pointer;
  position: absolute;
  color: #af4400;
  border: 1px solid #af4400;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  padding: 0;
}

@keyframes show {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/***************************
　切り替えタブ
***************************/
.st-tab__label {
  -webkit-appearance: none;
  border-top: 1px solid #333;
  border-right: 1px solid #333;
  border-left: 1px solid #333;
  border-bottom: none;
  cursor: pointer;
  display: inline-block;
  padding: 10px;
  text-align: center;
  width: 30%;
  min-width: 130px;
  box-sizing: border-box;
  opacity: 0.3;
  border-radius: 3px 3px 0 0;
  height: auto;
  margin-right: 5px;
}

.st-tab__label.st-tab__label--bottom {
  border-top: none;
  border-right: 1px solid #333;
  border-left: 1px solid #333;
  border-bottom: 1px solid #333;
  border-radius: 0 0 3px 3px;
}

.st-tab {
  margin-top: 0px;
  margin-bottom: 5px;
}

.st-tab__label:last-child {
  margin-right: 0;
}

.st-tab__input:checked+.st-tab__label {
  opacity: 1;
}

.st-tab__input {
  display: none;
}



  .st-tab__label {
      padding: 5px 
  }
@media screen and (min-width: 600px) {
  .st-tab__label {
      padding: 10px 
  }
}
@media screen and (min-width: 960px) {
  .st-tab__label {
      padding: 10px 
  }
}

/***************************
　スマホスクロールバー
***************************/
.scroll {
  overflow: auto;
}

@media screen and (max-width: 600px) {

  .scroll::-webkit-scrollbar {
    height: 4px;
  }

  .scroll::-webkit-scrollbar-thumb{
    background: #000000;
  }

  .scroll::-webkit-scrollbar-track-piece {
    background: #cccccc;
  }
}

/***************************
　計算エリア
***************************/
  .result__area {
    padding: 0px 0px 20px 0px;
  }
@media screen and (min-width: 600px) {
  .result__area {
    padding: 0px 50px 20px 50px;
  }
}

/***************************
　ボタン
***************************/
.calc-button {
  outline: none;
  font-size: 20px;
  border-radius: 3px;
  padding: 0px 6px;
  border: 1px solid #a9a9a9;
  width: 100%;
  margin: 10px 0px;
  cursor: pointer;
}

.calc-button:active {
  background: #a9a9a9;
  color: #ffffff;
}

/***************************
　計算結果のボックス
***************************/
.result__box {
  position: relative;
  border: solid 1px #a9a9a9;
  padding: 20px;
  margin-top: 20px;
}

.result__box .result__box-title {
  position: absolute;
  display: inline-block;
  top: -19px;
  left: 30px;
  line-height: 16px;
  padding: 7px 15px;
  font-size: 18px;
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #a9a9a9;
}

#result-explanation {
  color: red;
  text-align: center;
}

.result__field {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  padding: 2px;
  align-items: center;
}

.result__label {
  margin: 0;
  width: 50%;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  align-items: center;
}

.result__input {
  min-width: 145px;
  max-width: 40%;
  text-align: right;
  font-size: 22px;
  border-radius: 3px;
  border: 1px solid #a9a9a9;
  padding: 7px 7px 5px 7px;
  outline: none;
}

.result__line {
  border-top: 1px solid #a9a9a9;
}

.result__table-container {
  display: flex;
}

.result__table-headline {
  font-size: 17px;
  margin: 15px 0px 0px 20px;
  line-height: 20px;
}

.result__table {
  margin: 0px 20px 10px 20px;
  position: relative;
  font-size: 12px;
  border-collapse: collapse;
}

.result__table td {
  min-width: 90px;
  padding: 4px 0;
  line-height: 19px;
  border: solid 1px #a9a9a9;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}

.result__table::before {
  position: absolute;
  content: ' ';
  display: block;
  top: -9px;
  left: -15px;
  width: 5px;
  height: 100px;
  border-left: 1px solid #a9a9a9;
  border-top: 1px solid #a9a9a9;
  border-bottom: 1px solid #a9a9a9;
  border-radius: 5px 0 0 5px;
}

.result__table::after {
  position: absolute;
  content: ' ';
  display: block;
  top: -9px;
  right: -15px;
  width: 5px;
  height: 100px;
  border-right: 1px solid #a9a9a9;
  border-top: 1px solid #a9a9a9;
  border-bottom: 1px solid #a9a9a9;
  border-radius: 0 5px 5px 0;
}

/***************************
　スライドボックス
***************************/
.slidebox-trigger {
  font-size: 17px;
  margin-bottom: 0;
  cursor: pointer;
  background: #ddeeff;
  margin-top: 20px;
}

.slidebox-target {
  box-sizing: border-box;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.7s, opacity 0.7s;
  background: #ddeeff;
}

.slidebox-target.slidebox-target--opened {
  max-height: 800px;
  opacity: 1;
  white-space: nowrap;
}

.slidebox {
  padding: 10px;
}

.slidebox > p {
  font-size: 17px;
  line-height: 22px;
  margin: 20px 0px 0px 20px !important;
}

.slidebox__table {
  border-collapse: collapse;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  min-width: 100%;
}

.slidebox__table td {
  border: 1px solid #a9a9a9;
  min-width: 105px;
}

/***************************
　市区町村のデータ
***************************/
.data-area__table {
  margin: 10px auto 0px auto;
  border-collapse: collapse;
  text-align: center;
  box-sizing: border-box;
}

.data-area__table td {
  width: 130px;
  padding: 7px 0;
  margin-top: 10px;
  line-height: 19px;
  border: solid 1px #a9a9a9;
  white-space: nowrap;
  font-size: 18px;
}