
@page {
  size: A4 portrait; /* 横の場合はlandscape */
  margin: 0mm;
}

html{
    width: 100%;
    height: 100%;
  }
  
body{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  font-family:  Meiryo, メイリオ, 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3',Osaka, 'MS PGothic', arial, helvetica, sans-serif;
  background-color: #ffe5cc;
}

header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 10px;
  background-color:  #ff8c00;
}

header a{
  color: #333333;
}

header .logo:hover{
  position: relative;
  top: 1px;
  left: 1px;
  opacity: 0.8;
}

header .dropdown-toggle{
  color: #ffffff;
}

header .dropdown-menu{
  max-width: 200px;
}

main{
  display: flex;
  justify-content: center;
  width: 100%;
}

.contain{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.input{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 600px;
  margin: 120px 0 0 0;
}

.input_header{
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  text-align: center;
  background-color: #ff8c00;
}

.input_body{
  width: 100%;
  padding: 20px 10px;
  background-color: #ffffff;
  border: solid 1px #ff8c00;
}

.input_message{
  width: 100%;
  margin: 0 0 20px 0;
  text-align: center;
}

.input_link a{
  position: relative;
  top: 30px;
  color: #333333;
  border-bottom: solid 1px #333333;
}

.input_link a:hover{
  text-decoration: none;
  top: 31px;
  left: 1px;
  opacity: 0.8;
}

.input_row{
  width: 100%;
  margin: 0 0 20px 0;
}

.input_submit{
  width: 100%;
}

.input_submit button{
  width: 100%;
  padding: 10px;
  color: #ffffff;
  background-color: #ff8c00;
  border: none;
}

.input_submit button:hover{
  position: relative;
  top: 1px;
  left: 1px;
  opacity: 0.8;
}

.invoice{
  margin: 100px 0 0 0;
}

/* 請求書リスト */
.invoice_list{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
}

.invoice_list_header{
  width: 100%;
  font-size: 20px;
  margin: 0 0 30px 0;
  padding: 3px 0;
  text-align: center;;
  background-color: #ffe2cb;
}
.invoice_list_row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 30px;
  background-color: #ffffff;
  overflow: hidden;
}

.invoice_list_row:hover{
  color: #333333;
  text-decoration: none;
}

.invoice_list_row::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: scale(.5);
  transform: scale(.5);
}
.invoice_list_row:hover::after {
  background: #ffdfb5;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.invoice_list_row::before,
.invoice_list_row::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: '';
}
.invoice_list_row,
.invoice_list_row::before,
.invoice_list_row::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s;
  transition: all .3s;
}

.row-invoice_current{
  width: 500px;
  height: 80px;
  margin: 0 auto 50px auto;
  color: #333333;
  font-size: 1.4rem;
  font-weight: bold;
  border: solid 3px #ff8c00;
}

.row-invoice_past{
  width: 400px;
  height: 50px;
  margin: 0 auto 20px auto;
  color: #333333;
  font-size: 1.2rem;
  border: solid 1px #ff8c00;
}

.invoice_list_link{
  color: #ff8c00;
}

.invoice_list_message{
  margin: 0 auto 30px auto;
}

/* 請求書詳細 */
.invoice_viewer{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
  margin: 20px 0;
  padding: 50px 30px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.invoice_viewer_header{
  display: flex;
  justify-content: center;
  width: 90%;
  margin: 0 0 10px 0;
  padding: 3px 0;
  font-size: 1.3em;
  border: solid 2px #333333;
}

.invoice_viewer_date{
  width: 100%;
  text-align: right;
  margin: 0 0 20px 0;
}

.invoice_viewer_info{
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.invoice_viewer_info_left{
  width: 55%;
}

.invoice_customer{
  width: 100%;
  height: 30px;
  margin: 0 0 20px 0;
  font-size: 1.2em;
}

.invoice_viewer_amount{
  width: 100%;
  text-align: left;
  margin: 0 0 20px 0;
}

.invoice_viewer_amount span{
  font-size: 0.8em;
}

.amount_table{
  width: 100%;
  font-size: 1.2rem;
  border: solid 3px #333333;
}

.amount_table table{
  width: 100%;
  height: 40px;
}

.amount_table th{
  width: 35%;
  text-align: center;
  background-color: #cccccc;
  border-right: solid 1px #333333;
}

.amount_table td{
  width: 65%;
  text-align: center;
  font-weight: bold;
}

.invoice_method{
  display: block;
  width: 100%;
  height: 120px;
  margin: 0 0 10px 0;
  border-top: solid 1px #333333;
}

.invoice_method_row{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  border-bottom: solid 1px #333333;
}

.invoice_method_label{
  width: 80px;
  text-align: right;
}

.invoice_viewer_info_right{
  display: block;
  width: 35%;
  margin: 50px 0 0 0;
  background-image: url(../img/stamp.png);
  background-repeat: no-repeat;
  background-position: top 50px right;
}

.invoice_servantop{
  position: relative;
  margin: 5px 0 0 0;
  font-size: 1.2em;
  font-weight: bold;
}

.invoice_viewer_list{
  width: 100%;
}

.list_table table{
  width: 100%;
  border: solid 3px #333333;
  font-weight: normal;
  text-align: center;
  box-sizing: border-box;
}

.list_table th{
  height: 42px;
  background-color: #cccccc;
  border-left: dotted 1px #333333;
  border-bottom: solid 1px #333333;
}

.list_table td{
  height: 42px;
  padding: 0 5px 0 0;
  border-left: dotted 1px #333333;
  border-bottom: solid 1px #333333;
  font-size: 0.9rem;
}

.list_table_item{
  width: 25%;
}

.list_table_quentity{
  width: 10%;
}

.list_table_unit{
  width: 10%;
}

.list_table_amount{
  width: 15%;
}

.list_table_lavel{
  padding: 0 20px 0 0 !important;
  background-color: #cccccc;
}

.invoice_print:hover{
  cursor: pointer;
}

.invoice_tax{
  width: 100%;
  text-align: left;
}

/* 共通パーツ */
.error_message{
  width: 100%;
  color: #b22222;
  font-size: 0.8em;
}

.session_message{
  width: 100%;
  margin: 10px 0;
  padding: 5px;
  color: #b22222;
  text-align: center;
  background-color: #ffdfd0;
}

.submit_area{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.sub_btn{
  display: block;
  width: 80px;
  margin: 0 10px;
  padding: 7px 0;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 3px;
  appearance: none;
}

.sub_btn:hover{
  position: relative;
  top: 1px;
  left: 1px;
  opacity: 0.8;
  color: #ffffff;
  text-decoration: none;
}

.sub_btn a:hover{
  text-decoration: none;
  opacity: 0.8;
}

.blue{background-color: #0066aa;}
.green{background-color: #2f4f4f;}
.red{background-color: #7e0000;}
.orange{background-color: #ff8c00;}
.gray{color: #333333;background-color: #bbbbbb;}
.gray:hover{color: #333333;}
