@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

html {
    font-family: 'Noto Sans JP', sans-serif;
    font-size:14px;
}

body {
    margin: 0;
    padding: 0;
}

header {
    box-sizing: border-box;
    margin-top:0px;
    margin-left: 220px;
    line-height: 50px;
    padding: 0px 40px;
    /* background-color:blue; */
    text-align: right;
}

#main {
    box-sizing: border-box;
    margin-left: 220px;
    padding: 0px 40px;
}

#sub {
    box-sizing: border-box;
    top: 0px;
    height: 100%;
    width: 230px;
    position: fixed;
    overflow: auto;
    background: #eee;
    padding: 0px 20px;
}

#popup {
    box-sizing: border-box;
    margin: 20px;
}

@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
#message {
    animation-duration: 0.5s;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    /* 追加のスタイリング */
    color: white;
    font-weight: bold;
    background-color: #2e8b57; /* 背景色 */
    border: 2px solid #2e8b57; /* 境界線 */
    padding: 10px; /* 内部の余白 */
    text-align: center; /* テキストを中央揃え */
  }

  #message2 {
    animation-duration: 0.5s;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    /* 追加のスタイリング */
    color: white;
    font-weight: bold;
    background-color: #ff0000; /* 背景色 */
    border: 2px solid #ff0000; /* 境界線 */
    padding: 10px; /* 内部の余白 */
    text-align: center; /* テキストを中央揃え */
  }

.fade-in {
animation-name: fadeIn;
}

.fade-out {
animation-name: fadeOut;
}

table{
    font-size: 14px;
}

/* テーブル1 */
.table_view1 {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}
.table_view1 th {
    padding: 10px;
    background: #696969;
    border: solid 1px #778ca3;
    color:white;
    font-weight: normal;
}
.table_view1 td {
    padding: 10px;
    border: solid 1px #778ca3;
}
.table_view1 tr:hover{
    background: #ffffe0;
    cursor: pointer;
}
.table_view1 tr th:hover{
    cursor: default;
}

/* テーブル2 */
.table_view2 {
    width: 40%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}
.table_view2 th {
    padding: 10px;
    background: #696969;
    border: solid 1px #778ca3;
    color:white;
    font-weight: normal;
}
.table_view2 td {
    padding: 10px;
    border: solid 1px #778ca3;
}
.table_view2 tr:hover{
    background: #ffffe0;
    /* cursor: pointer; */
}

/* テーブル3 伝票新規登録の上段 */
.table_view3 {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}
.table_view3 th {
    padding: 5px;
    background: #696969;
    border: solid 1px #778ca3;
    color:white;
    font-weight: normal;
    white-space: nowrap;
}
.table_view3 td {
    /* padding: 10px; */
    border: solid 1px #778ca3;
    white-space: nowrap;
}

/* テーブル4 伝票新規登録の明細 */
.table_view4 {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}
.table_view4 th {
    background: #696969;
    border: solid 1px gray;
    color:white;
    font-weight: normal;
    white-space: nowrap;
}
.table_view4 td {
    /* padding: 10px; */
    border: solid 1px gray;
    white-space: nowrap;
}

/* テーブル5 請求書画面の明細 */
.table_view5 {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 12px;
}
.table_view5 th {
    background: #696969;
    border: solid 1px gray;
    color:white;
    font-weight: normal;
    white-space: nowrap;
}
.table_view5 td {
    border: solid 1px gray;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

.selectbox select {
    appearance: none;
    width: 140px;
    padding: 8px 10px;
    border: none;
    outline: 1px solid #d2d2d2;
    border-radius: 3px;
    background: #f7f7f7;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
    cursor: pointer;
}

.textbox {
    margin: 0px;
    padding: 8px 10px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    background: #f7f7f7;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
  }
  .textbox::placeholder {
    color: #999;
  }

.button {
    width: 120px;
    height: 38px;
    /* padding: .9em 0em; */
    border: none;
    border-radius: 3px;
    color: #fff;
    line-height: 1.5;
}

.button:hover {
    cursor: pointer;
}