
@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: #f5f5dc;
}

header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 10px;;
  border-bottom: solid 1px #2f4f4f;
}

header a{
  color: #333333;
}

/*　ハンバーガーボタン　*/
.hamburger {
  display : block;
  position: fixed;
  z-index : 3;
  right : 13px;
  top   : 12px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}
.hamburger span {
  display : block;
  position: absolute;
  width   : 30px;
  height  : 2px ;
  left    : 6px;
  background : #555;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition   : 0.3s ease-in-out;
  transition        : 0.3s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}

/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top : 16px;
  left: 6px;
  background :#fff;
  -webkit-transform: rotate(-45deg);
  -moz-transform   : rotate(-45deg);
  transform        : rotate(-45deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  background :#fff;
  -webkit-transform: rotate(45deg);
  -moz-transform   : rotate(45deg);
  transform        : rotate(45deg);
}

nav.globalMenuSp {
  position: fixed;
  z-index : 2;
  top  : 0;
  left : 0;
  color: #fff;
  background: rgba(0,0,0,0.7);
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: opacity .6s ease, visibility .6s ease;
}

nav.globalMenuSp ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

nav.globalMenuSp ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  transition: .4s all;
}
nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
}
nav.globalMenuSp ul li:hover{
  background :#ddd;
}

nav.globalMenuSp ul li a {
  display: block;
  color: #fff;
  padding: 1em 0;
  text-decoration :none;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
  opacity: 100;

}

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

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

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

.input_form{
  width: 550px;
}

.input_form_header{
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.input_form_body{
  padding: 20px 10px;
  background-color: #ffffff;
  border: solid 1px #2f4f4f;
}

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

.formInputRowValue-error{
  color: #cc0000;
}

.input_form_submit{
  width: 100%;
}

.button-login{
  width: 100%;
  padding: 10px;
  color: #ffffff;
  background-color: #2f4f4f;
  border: none;
}

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

.invoice{
  display: flex;
  flex-direction: column;
  align-items: center;
  width :1200px;
  margin: 50px 0 0 0;
}

/* 請求書一覧 */

.nav{
  margin: 0 0 30px 0;
}

.nav-tabs{
  display: flex;
  justify-content: space-between;
  width: 800px;
  border: none;
}

.nav-tabs .nav-link {
  width: 390px;
  color: #333333;
  text-align: center;
  background-color: #eeeeee;
  border: solid 1px #cccccc;
  border-radius: 3px;
}

.nav-tabs .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
  background-color: #ffffff;
  border: solid 1px #cccccc;
}

.invoice_list{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
}

.invoice_list_message{
  width: 100%;
  text-align: center;
}

.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{
  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 #d0650b;
}

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

.invoice_list_link{
  color: #d0650b;
}

.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: space-between;
  width: 100%;
  margin: 0 0 10px 0;
}

.invoice_viewer_header_customer{
  display: flex;
  flex-direction: column;
  width: 45%;
  margin: 0 0 0 5%;
  box-sizing: border-box;
}

.invoice_viewer_header_servantop{
  display: flex;
  flex-direction: column;
  width: 45%;
  margin: 0 0 0 5%;
}

.servantop_top{
  display: flex;
  justify-content: space-between;
}

.servantop_top_number{
  text-align: center;
}

.servantop_bottom{
  position: relative;
  top: -15px;
  background-image: url(../img/stamp.png);
  background-repeat: no-repeat;
  background-position: top right;
}

.servantop_bottom_name{
  padding: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.servantop_bottom_contact{
  display: flex;
  justify-content: space-between;
}

.invoice_viewer_caption{
  display: inline-block;
  width: 250px;
  height: 50px;
  margin: 0 0 10px 0;
  border: solid 3px #333333;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  line-height: 50px;;
  letter-spacing: 1.2rem;
}

.invoice_viewer_caption span{
  margin-right: -1.2rem;
}

.invoice_viewer_date{
  width: 100%;
  height: 95px;
  text-align: left;
  margin: 0 0 5px 0;
}

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

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

.amount_table table{
  width: 100%;
}

.amount_table th{
  width: 50%;
  height: 50px;
  text-align: center;
  border-right: dashed 1px #333333;
}

.amount_table td{
  width: 50%;
  height: 50px;
  text-align: center;
  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;
  border-left: dotted 1px #333333;
  border-bottom: double #333333;
}

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

.list_table_item{
  width: 25%;
}

.list_table_description{
  width: 30%;
}

.list_table_quentity{
  width: 10%;
}

.list_table_unit{
  width: 10%;
}

.list_table_amount{
  width: 15%;
}

.list_table_memo{
  padding: 10px;
}

.invoice_print:hover{
  cursor: pointer;
}

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

.session_message{
  margin: 0 0 20px 0;
  color: #cc0000;
  font-size: 20px;
}

.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: #c65c00;
}

.gray{
  color: #333333;
  background-color: #bbbbbb;
}

.gray:hover{
  color: #333333;
}