/* リセット関連 */
ul {
    list-style:none;
    padding-inline-start: 0;
}

button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

html {
	overflow-y: scroll;
}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
	margin: 0;
	padding: 0;
}
address,caption,cite,code,dfn,em,strong,th,var {
	font-style: normal;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
caption,th {
	text-align: left;
}
q:before,q:after {
	content: '';
}
object,embed {
	vertical-align: top;
}
hr,legend {
	display: none;
}
h1,h2,h3,h4,h5,h6 {
	font-size: 100%;
}
img,abbr,acronym,fieldset {
	border: 0;
}
li {
	list-style-type: none;
}
sup {
	vertical-align: super;
	font-size: 0.5em;
}
img {
	vertical-align: top;
}
i {
	font-style: normal;
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
} 

/* リセット関連 ここまで*/
a {
    text-decoration: none;
    color: #000;
}

i {
    margin-right: 0.625rem;
}

.dn {
    display: none;
}

.inline {
    display: inline;
}

.mt_1r {
    margin-top: 1rem;
}

.ml_1r {
    margin-left: 1rem;
}

/* base */

body {
    height: 100%;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.side_area {
    position: relative;
    background-color: #ffffff;
    padding: 1rem;
    width: 10rem;
    min-height: 96.5vh;
    border-right :1px solid #ddd;
    box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
    -webkit-box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
    -moz-box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
}

.header_logo {
    text-align: center;
}

nav {
    margin-top: 2rem;
}

nav li {
    color: #000000;
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 900;
}

.footer_logo {
    width: 90%;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.main_area {
    width: 100%;
    min-width: 1600px;
    background-color: #eee;
}

.header {
    display: flex;
    justify-content: space-between;
    height: 4rem;
    background-color: #fff;
    border-bottom :1px solid #ddd;
    box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
    -webkit-box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
    -moz-box-shadow:rgba(122, 122, 122, 0.0588235) 0px 0px 6px 3px;
}

.header_r {

    line-height: 4rem;
    margin-right: 4rem;
}

/* funeral_detail */

.funeral_main {
    width: 100%;
    display: flex;
}

.funeral_info {
    width: 70%;
    min-width: 800px;
    font-size: 0.875rem;
}

.funeral_sub {
    width: 30%;
    font-size: 0.875rem;
}

.funeral_info_upper, 
.funeral_sub_upper,
.funeral_sub_center,
.funeral_sub_under {
    background-color: #FFF;
    border: #f0f0f0 1px solid;
    border-radius: 5px;
    margin: 1rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.funeral_info_head {
    display: flex;
    justify-content: space-between;
}

.info_ttl {
    font-weight: 900;
}

.sub_ttl {
    display: inline-block;
    font-weight: 900;
    width: 90px;
    margin: auto 0;
}

.middle {
    display: inline-block;
    margin: auto 0;
}

.funeral_info_body form{
    display: inline-block;
}

.pic {
    font-weight: 900;
    background-color: #EEE;
    border-radius: 5px;
    padding: 0 10px;
}

.funeral_info_head, .funeral_info_body {
    width: 98%;
    margin: 0 auto;
    border-bottom: #EEE 1px solid;
    padding: 10px;
}

.funeral_table {
    width: 100%;
    background-color: #FFF;
    border-radius: 5px;
    margin: 5px auto;
    border-collapse: separate;
    border-spacing: 10px;
}

.funeral_table th {
    width: 100px;
    background-color: #EEE;
    border-radius: 5px;
    text-align: center;
}
  
.funeral_table tr {
    height: 40px;
}

.funeral_table td {
    width: 200px;
}

.num {
    text-align: right !important;
}

.deceased {
    background-color: #000 !important;
    color: #fff;
}

.mourner {
    background-color: #555 !important;
    color: #fff;
}

.funeral_info_under {
    display: flex;
    justify-content: space-between;
}

.funeral_recept {
    width: 50%;
    background-color: #FFF;
    border: #f0f0f0 1px solid;
    border-radius: 5px;
    margin: 0 1rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.funeral_customer {
    width: 50%;
    background-color: #FFF;
    border: #f0f0f0 1px solid;
    border-radius: 5px;
    margin: 0 1rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.remarks {
    margin: 0 1rem;
}

/* funeral */

.sales_summary {
    display: flex;
}

.summary {
    width: 20%;
}

.summary_table {
    width: 95%;
    /* background-color: #FFF;
    border-radius: 5px; */
    margin: 5px 0 10px 20px;
    border-collapse: separate;
    border-spacing: 10px;
}

.summary_table th {
    border-radius: 5px;
    background-color: #80976f;
    color: #fff;
    text-align: center;
}

.summary_table tr {
    height: 2rem;
}

.summary_table td {
    font-weight: 900;
    text-align: right;
}

.summary_table td:first-of-type {
    width: 125px;
}

.search {
    width: 80%;
}

.search label {
    font-size: 14px;
}

.search_area {
    width: 95.7%;
    margin: 10px auto;
}

.searchbox {
    display: flex;
    margin-top: 1rem;
    padding: auto 0;
}

.searchbox input {
    padding: 0.25rem;
    border-radius: 5px;
    border: none;
}

.searchbox select {
    padding: 0.25rem;
    border-radius: 5px;
    border: none;
}

.search_btn {
    background-color: #555;
    border-radius: 5px;
    color: #fff;
    padding: 0.5rem 1rem;
}

.search_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.list_table {
    margin-left: 2.25rem;
}

.list_table th {
    background-color: #80976f;
    text-align: center;
    padding: 0.5rem;
    border-right: #a7bd97 1px dotted;
    color: #fff;
}

.list_table th:last-of-type {
    border-right: none;
}

.list_table th:first-of-type {
    border-radius: 5px 0 0 0;
}

.list_table th:last-of-type {
    border-radius: 0 5px 0 0;
}

.list_table td {
    padding: 0.5rem 1.5rem;
}

/* １行ずつ色変更　不要なら削除 even:奇数行　odd:偶数行 */
.list_table tr:nth-child(even) td { 
    background: #ffffff; 
} 
.list_table tr:nth-child(odd) td {
    background: #ddd; 
}

.update_btn {
    background-color: #80976f;
    border-radius: 5px;
    color: #fff;
    padding: 0.1rem 1rem;
}

.update_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.delete_btn {
    background-color: #ff0000;
    border-radius: 5px;
    color: #fff;
    padding: 0.1rem 1rem;
}

.delete_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.detail_btn {
    background-color: #1c2e53;
    border-radius: 5px;
    color: #fff;
    padding: 0.25rem 0.5rem;
}

.detail_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.no_pay {
    background-color: #ff0000;
    color: #fff;
    border-radius: 5px;
    padding: 0.25rem;
}

/* customer */

.customer_list {
    margin-top: 2rem;
}

.customer_list th {
    background-color: #3d67bb;
    border-right: #6384c4 1px dotted;
    color: #fff;
}

/* consultation */

.consultation_list {
    margin-top: 2rem;
}

.consultation_list th {
    background-color: #BD3819;
    border-right: #fb5630 1px dotted;
    color: #fff;
}

/* print */

.js-print-hide {
    width: 100%;
    text-align: center;
}
.print_btn {
    width: 100px;
    background-color: #444444;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem;
    margin: 1rem auto 1rem 1rem;
    text-align: center;
}

.print_btn:hover {
    opacity: 0.7;
    transition: 0.3s;
}

/* create */
/* modal */

/* モーダルを開くボタン */
.modal-open {
    color: #fff;
    background: #444444;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

  /* モーダルと背景の指定 */
.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0,0,0,50%);
    padding: 40px 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
}
  
  /* モーダルの擬似要素の指定 */
.modal:before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    margin-left: -0.2em;
}
  
/* クラスが追加された時の指定 */
.modal.is-active{
    opacity: 1;
    visibility: visible;
}
  
/* モーダル内側の指定 */
.modal-container{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 900px;
    max-height: 900px;
    width: 90%;
}
  
/* モーダルを閉じるボタンの指定 */
.modal-close{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}
  
/* モーダルのコンテンツ部分の指定 */
.modal-content{
    background: #eee;
    text-align: left;
    line-height: 1.8;
    padding: 20px;
}
  
/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p {
    margin: 1em 0;
}

.modal_list {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
}

.create_form {
    padding: 0.5rem;
    border-radius: 5px;
    border: #ccc 1px solid;
}

.create_form_l {
    padding: 0.5rem;
    border-radius: 5px;
    border: #ccc 1px solid;
    width: 90%;
}

.form_int {
    width: 30%;
}

.funeral_table input[type=text] {
    width: 90%;
    padding: 0.5rem;
    border-radius: 5px;
    border: #ccc 1px solid;
}

.funeral_table input[type=number] {
    width: 30%;
    padding: 0.5rem;
    border-radius: 5px;
    border: #ccc 1px solid;
}

.funeral_table select {
    padding: 0.5rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

textarea {
    max-width: 95%;
    min-width: 95%;
    min-height: 100px;
}

.create_btn {
    background-color: #80976f;
    border-radius: 5px;
    color: #fff;
    padding: 0.5rem 1rem;
}

.create_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.sub_create_btn {
    background-color: #80976f;
    border-radius: 5px;
    color: #fff;
    padding: 0.25rem 0.5rem;
}

.sub_create_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.cancel_btn {
    background-color: #444444;
    border-radius: 5px;
    color: #fff;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
}

.cancel_btn:hover {
    opacity: 0.7;
    transition: .3s;
}

.crud_area {
    text-align: center;
}

/* invoice */

.invoice_list {
    margin-top: 2rem;
}

.invoice_list th {
    background-color: #222222;
    border-right: #444444 1px dotted;
    color: #fff;
}

/* transportation */

.transportation_list {
    margin-top: 2rem;
}

.transportation_list th {
    background-color: #8f8f8f;
    border-right: #5d5d5d 1px dotted;
    color: #fff;
}

/* memorial */

.memorial_list {
    margin-top: 2rem;
}

.memorial_list th {
    background-color: #444444;
    border-right: #666666 1px dotted;
    color: #fff;
}

/* 印刷レイアウトbook_table */

.table_area {
    width: 100%;
}

.book_table {
    width: 95%;
    margin: 0.5rem auto;
    border: #000 2px solid;
}

.book_table th {
    font-size: 0.875rem;
    text-align: center;
    border-bottom: double;
    border-right: #000 1px solid;
}

.book_table td {
    font-size: 0.875rem;
    border: #000 1px dotted;
    border-right: #000 1px solid;
    text-align: center;
    padding: 5px 0;
    max-width: 200px;
    word-wrap: break-word;
}

.book_table .tal {
    text-align: left;
    padding-left: 3px;
}

.book_table select {
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
    width: 95%;
}

.book_table input[type="text"] {
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
    width: 92%;
}

.book_table input[name*="amount"]{
    width: 85%;
    padding: 0.2rem;
    border-radius: 5px;
    border:none; 
}

.book_table input[name*="price"]{
    width: 85%;
    padding: 0.2rem;
    border-radius: 5px;
    border: none; 
}

.book_table input[name*="tax"]{
    width: 85%;
    padding: 0.2rem;
    border-radius: 5px;
    border: none; 
}

.book_table input[name*="quantity"]{
    width: 20px;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table input[name*="unit"]{
    width: 25px;
    padding: 0.2rem;
    border-radius: 5px;
    border: none; 
}

.book_table input[name*="recept_product_unit"]{
    width: 20px;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table input[name*="recept_product_price"]{
    width: 90px;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table input[name*="op_product_unit_4"], 
.book_table input[name*="op_product_unit_5"], 
.book_table input[name*="op_product_unit_6"], 
.book_table input[name*="op_product_unit_7"], 
.book_table input[name*="op_product_unit_8"], 
.book_table input[name*="op_product_unit_9"], 
.book_table input[name*="op_product_unit_10"]{
    width: 20px;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table input[name*="op_product_price_4"], 
.book_table input[name*="op_product_price_5"], 
.book_table input[name*="op_product_price_6"], 
.book_table input[name*="op_product_price_7"], 
.book_table input[name*="op_product_price_8"], 
.book_table input[name*="op_product_price_9"], 
.book_table input[name*="op_product_price_10"]{
    width: 90px;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table input[name*="billing"]{
    width: 70%;
    padding: 0.2rem;
    border-radius: 5px;
    border: #ccc 1px solid; 
}

.book_table textarea {
    width: 400px;
    height: 100px;
}

.book_table input[type=number]{
    text-align: right;
}

/* ログインForm Layout */
.form-wrapper {
    background: #fafafa;
    margin: 3em auto;
    padding: 0 1em;
    max-width: 370px;
  }
  
  .form-wrapper h1 {
    text-align: center;
    padding: 1em 0;
  }
  
  .form-wrapper form {
    padding: 0 1.5em;
  }
  
  .form-item {
    margin-bottom: 0.75em;
    width: 100%;
  }
  
  .form-item input {
    background: #fafafa;
    border: none;
    border-bottom: 2px solid #e9e9e9;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    height: 50px;
    transition: border-color 0.3s;
    width: 100%;
  }
  
  .form-item input:focus {
    border-bottom: 2px solid #c0c0c0;
    outline: none;
  }
  
  .button-panel {
    margin: 2em 0 0;
    width: 100%;
    padding: 0 0 2em 0;
  }
  
  .button-panel .button {
    background: #3e4a88;
    border: none;
    color: #fff;
    cursor: pointer;
    height: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.3s ease-in-out;
    width: 100%;
  }
  
  .button:hover {
    background: #01188B;
  }
  
  .form-footer {
    font-size: 1em;
    padding: 2em 0;
    text-align: center;
  }
  
  .form-footer a {
    color: #8c8c8c;
    text-decoration: none;
    transition: border-color 0.3s;
  }
  
  .form-footer a:hover {
    border-bottom: 1px dotted #8c8c8c;
  }