@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700&display=swap');
*{
    position: relative;
}

body,
input,
select,
textarea,
button{
    position: relative;
    font-size:14px;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing:border-box;
    position: relative;
}

.link-style{
    color: #0a58ca;
    text-decoration: underline;
}


/* keycolor #8e2969 */
.message{
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    margin: auto;
    max-width: 1200px;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: rgb(13,110,253);
    background-color: #cfe2ff;
    border-color: #aec5e7;
}

.message:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content:'\f06a'
}

.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.success:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content:'\f058'
}

.warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.warning:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content:'\f06a'
}

.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.error:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content: "\f057"
}

#top{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

#top header{
    width:100%;
}

h1 a{
    /* display:block;
    width:240px;
    height: 50px;
    text-indent: -9999px;
    background-image: url(../img/genka_logo.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden; */
    text-decoration: none;
    color:#000;
    font-size: 1.5rem;
}

#top h1{
    /* width:320px;
    height: 50px;
    text-indent: -9999px;
    background-image: url(../img/genka_logo.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;

    margin:auto;
    height: 90px;
    background-position: center; */
    text-align: center;

}

.form-floating > .form-control:not(:-moz-placeholder-shown) ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:-webkit-autofill ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.dummy-area{
    overflow: hidden;
    visibility: hidden;
    box-sizing: border-box;
    padding: 1rem 0.75rem;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    min-height: 100px;
    line-height: 1.25;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: 1px solid;
}
.flex-textarea{
    position: absolute;
    display: block;
    width: 100%;
    height: 100% !important;
    top: 0;
    left: 0;
    resize: none;
    overflow: hidden;
}

.tooltip-inner{
    text-align: left;
    font-size: .8rem;
}

.content_wrap{
    margin:auto;
}

.loader-wrap{
    display: none;
    z-index: 9999;
}

.loader-overlay{
    display: none;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,.7);
    top: 0;
    left: 0;
}

.hov-gray{
    transition: .2s;
}

.hov-gray:hover{
    background:#ccc !important;
}

#top .content_wrap{
    max-width:342px;
}

h3{
    padding: 6px 13px;
    font-size: 130%;
    border-left: 8px solid #8e2969;
}

.navbar-expand-lg .navbar-collapse{
    justify-content: flex-end;
}

h4{
    position: relative;
    padding: 4.5px 22px;
    font-size: 110%;
}

h4::before {
    position: absolute;
    content: '';
    height: 6px;
    width: 6px;
    background-color: #8e2969;
    border-radius: 50%;
    top: 12px;
    left: 0;
}

.dropdown-menu {
    overflow:auto;
    max-height: 250px;
    min-width: 100%;
}

.ui-autocomplete{
    z-index:9999;
}

.fs-xs{
    font-size:.7rem !important;
}

.fs-s{
    font-size:.8rem !important;
}

.fs-1em{
    font-size:1em !important;
}

.max-width-100{
    max-width: 100% !important;
}

.red{
    color:#f10;
}

main th{
    white-space: nowrap;
    background-color: #6082af !important;
    color: #fff;
    vertical-align: middle;
}

table td a{
    word-break: break-all;
}

.table td,
.table th{
    padding:.3rem;
}

.form-floating > .form-control:not(:-moz-placeholder-shown) ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:-webkit-autofill ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}

.pagination{
    align-items: center;
    justify-content: space-between;
}

.pagination li{
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}
.pagination li.active a {
    border-radius: 0.2rem;
  background-color: #0d6efd;
  color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}


div::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  div::-webkit-scrollbar-track {
     background: #eee;
  }

  div::-webkit-scrollbar-thumb {
    background: #c7d6ed;
    border-radius:5px;
  }

table tbody tr:nth-child(2n){
    /* background:#f5f5f5; */
}

/* nav */
.nav-wrap{
    position: fixed;
    height: 100dvh;
    height: 100vh;
    width: 250px;
    background: #8e2969;
    z-index: 100;
    top: 0;
    left: 0;
}

.nav-toggle {
    position: absolute;
    padding: .3rem;
    background-color: #fff;
    border-radius: .25rem;
    bottom:1rem;
    right: .3rem;
    cursor: pointer;
}

.nav-toggle > * {
    display: inline-block;
    font-weight: bold;
    color: #0a58ca;
    /* transition: .3s; */
}

.nav-close .nav-wrap .nav-toggle > * {
    transform: rotate(180deg);
}

.nav-close .content_wrap,
.nav-close .container{
    width: 100%;
    max-width: 100%;
}

.nav-close h1,
.nav-close .menu-title{
    display: none;
}

.nav-close .dropdown-toggle::after{
    display: none;
}

.nav-wrap{
    /* transition: .3s; */
}

.nav-close .nav-wrap {
    width: 50px;
    /* left: calc(-250px + 2rem); */
}

.nav-close .main-wrap {
    padding-left: 3rem;
}

@media screen and (max-width: 600px) {
    .main-wrap {
        padding-left: 3rem !important;
    }
    small{
        font-size: .5rem;
    }
}

.nav-contents{
    /* transition: .3s; */
}

.nav-close .nav-contents{
    /* opacity: 0; */
}


.nav-contents h1 a{
    display: block;
    color: #fff;
    padding: 1rem;
}

.nav-list{
    display: block;
    padding: 0;
    max-height: calc(100dvh - 165px);
    border-top: 1px solid #db9fc5;
    /* overflow: auto; */
}

.nav-list::-webkit-scrollbar {
    width: 8px;
}

.nav-list::-webkit-scrollbar-track {
    background: #fff;
}

.nav-list::-webkit-scrollbar-thumb {
    background: #842029;
    border-radius: 5px;
}

.nav-list.nav-scroll{
    overflow-y: auto;
    scrollbar-color: #842029 #fff;
    scrollbar-width: thin;
}

.nav-item-link{
    display: block;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
}

.nav-item-link i{
    color: inherit;
}

.dropdown-item{
    font-size: .8rem;
}

.nav-item{
    border-bottom: 1px solid #db9fc5;
}

.nav-item:hover{
    background-color: #fff;
}

.nav-item:hover .nav-item-link{
    color: #8e2969;
}

.body{
    min-height: 100dvh;
    min-height: 100vh;
}

.main-maintenance-support{
    padding:.5rem;
    border:1px solid #dee2e6;
}

.main-maintenance-support-row{
    display: flex;
}

.main-maintenance-support-date-col,
.main-maintenance-support-content-col{
    padding: .5rem;
}

.main-maintenance-support-date-col{
    font-weight: bold;
    word-break: keep-all;
}

.main-wrap{
    padding-left:calc(250px + 1rem);
    padding-bottom:50px;
}

.normalize-form{
    display: inline-block;
    padding: .2rem;
    width: 100%;
    background-color: #f6faff;
    border-bottom: 1px dotted #ccc;
}

input.normalize-form:read-only,
textarea.normalize-form:read-only{
    background-color: transparent;
    border-bottom: 1px dotted transparent;
}

.normalize-form::placeholder{
    color: #ccc;
}

.select-form{
    position: relative;
    padding-right: 1.5rem;
    background-color: #f6faff;
}

.select-form::before{
    position: absolute;
    content: '▼';
    margin: auto;
    right: .5rem;
    top: 0;
    bottom: 0;
}

.select-disabled select{
    background-color: transparent;
    border-bottom: 1px dotted transparent;
    color: #aaa;
    pointer-events: none;
}

.icon-set-form input{
    padding-right: 2.5rem;
}

.icon-set-form i{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    content: '';
    margin: auto;
    right: .5rem;
    top: 0;
    bottom: 0;
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0;
}

.icon-set-form:hover i{
    opacity: 1;
}

.cell-nowrap *{
    white-space: nowrap;
}

.normalize-form option{
    padding:.3rem;
}

.normalize-form:disabled{
    border-bottom:0;
    color: #aaa;
}

.schedule-add-btn{
    display: none;
}
.schedule-add:hover .schedule-add-btn{
    display: block;
}

i{
    font-size: 1.2rem;
}

.time-item{
    padding:.3rem;
    background:#eee;
    border-radius:4px;
}

.time-item.cat1{
    background:#d0dcf3;
}
.time-item.cat2{
    background:#e1f3d0;
}
.time-item.cat3{
    background:#f3f2d0;
}

.time-item.del {
   color: #f00;
   text-decoration : line-through ;
 }

.search-panel{
    padding: 1rem;
    background-color: #eee;
}

.year-schedule-calendar{
    width: 1800px;
    border-top: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
}

.year-schedule-calendar-header-row{
    display: flex;
}

.year-schedule-calendar-header-row > *{
    width: 150px;
    padding: .3rem;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.year-schedule-calendar-body-row{
    display: flex;
}

.year-schedule-calendar-body-row > *{
    width: 150px;
}

.schedule-type{
    width: 30px;
    padding: .3rem;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.schedule-add{
    width: 120px;
    padding: .3rem;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.footer-wrap{
    position: absolute;
    margin: auto;
    bottom: 0;
    left: 0;
    right: 0;
}

.btn-outline-secondary{
    background-color: #fff;
}

.course-table{
    border-top: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    overflow: hidden;
}

.course-header{
    display: flex;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    text-align: center;
    font-weight: bold;
}

.course-row{
    display: flex;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.course-div1-title,
.course-div2-title,
.course-div3-title,
.course-div4-title{
    width : 150px;
}

.course-div1{
    width: 100%;
    padding: .3rem;
}

.course-div2{
    padding: .3rem;
    margin-left: 150px;
    border-top: 1px solid #ced4da;
}

.course-div3{
    padding: .3rem;
    margin-left: 150px;
    border-top: 1px solid #ced4da;
}

.course-div4{
    display: flex;
    justify-content: space-between;
    margin-left: 150px;
    border-top: 1px solid #ced4da;
}

.course-div5{
    display: flex;
    justify-content: space-around;
    width: 500px;
    text-align: right;
}

.course-div5-item{
    width: 40px;
    text-align: center;
}

.fa-solid{
    color:#0d6efd;
}

.fa-copy{
    color:unset;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

*:read-only,
*:disabled {
    outline: none;
}

.btn-clipboard {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: .65em;
    color: #ccc;
    background-color: #fff;
    border: 1px solid;
    border-radius: .25rem;
}

.btn-clipboard:hover, .btn-clipboard:focus {
    color: #fff;
    background-color: #0d6efd;
}

.btn-clipboard{
    display: none;
}

#wrapper{
    display:none;
	margin: 0px auto 0px auto;
	width: 320px; height: auto;
}

#msg{
	margin: 0px; padding: 10px;
	background-color: lightgray;
	text-align: center;
}

#canvas{
	width: 100%; height: auto;
	background-color: silver;
}

#qr_modal{
    display:none;
    position:fixed;
    margin: auto;
    background:rgba(0, 0, 0, 0.25);
    width:100vw;
    height:100vh;
    top:0;
    left: 0;;
}

#qr_wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 100%;
}

#qr_modal #view_qr,
#download_qr{
    margin-bottom:1em;
}

#qr_modal #make_qr{
    display:none;
}


#qr_modal button{
    background:#fff;
}

.notice_icon{
    position: fixed;
    margin:1.25em;
    top:0;
    right:0;
    cursor: pointer;
    z-index: 1020;
}

.tips{
    position: fixed;
    margin:1.25em;
    font-size:80%;
    bottom:0;
    right:0;
    cursor: pointer;
    z-index: 1020;
}
.tips section{
    background:rgba(255,255,255,.9)
}

@media screen and (max-width: 991px) {
    .notice_icon{
        top:auto;
        bottom:0;
    }
}

.swing {
    transform-origin: top center;
    animation: swing linear 1s forwards;
}

@keyframes swing {
0% { transform: rotate(0deg); }
10% { transform: rotate(-10deg); }
20% { transform: rotate(0deg); }
30% { transform: rotate(10deg); }
40% { transform: rotate(0deg); }
50% { transform: rotate(-10deg); }
60% { transform: rotate(0deg); }
70% { transform: rotate(10deg); }
80% { transform: rotate(0deg); }
90% { transform: rotate(-10deg); }
100% { transform: rotate(0deg); }
}

.more,
.close{
    position: absolute;
    margin:auto;
    bottom:.5em;
    right:.5em;
    background:#fff;
    z-index: 20;
}

.overlay{
    position: absolute;
    display: block;
    margin:auto;
    width: 100%;
    height:6em;
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 80%);
    bottom:0;
    left:0;
    z-index: 10;
}

body main.m-3{
    margin-bottom:200px !important;
}

@media screen and (max-width: 600px) {
    .sp-none{
        display: none;
    }
    .sp-spacer{
        display: inline-block;
        margin:1rem;
    }
    .accordion-button{
        font-size:85%;
    }

    main > section.p-3{
        padding:0 !important;
    }
    main table {
        width:100%
      }
      main table:not(.sp-scroll) th{
        display: block;
        border-width: 0 1px 1px !important;
    }
    main table:not(.sp-scroll) thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
      }

      main table:not(.sp-scroll) tr {
        display: block;
        margin-bottom: .625em;
      }

      main table:not(.sp-scroll) td {
        display: block;
        font-size: .8em;
        min-height:32px;
        position: relative;
        border-width: 0 1px 1px !important;
        position: relative;
        padding: .625em .625em .625em 7em !important;
        word-break: break-all;
      }
      main table:not(.sp-scroll):not(.sp-no-label) tbody tr td:nth-child(2) span,
      main table:not(.sp-scroll):not(.sp-no-label) tbody tr td:first-of-type button,
      main table:not(.sp-scroll):not(.sp-no-label) tbody tr td:first-of-type a,
      main table:not(.sp-scroll):not(.sp-no-label) tbody tr td:first-of-type > i{
        display:inline-block;
        margin:.5em 1em !important;
      }

      main table:not(.sp-scroll) tbody tr td:first-of-type *{
        margin-bottom:0 !important;
      }


      main table:not(.sp-scroll) td::before {
        content: attr(data-label);
        display:block;
        white-space: pre;
        font-weight: bold;
        position: absolute;
        left: 10px;
      }


      main table:not(.sp-scroll) td > span{
        width:auto !important;
      }

      /*
      .Customers.detail .tab-content table tbody tr td:first-of-type,
      .DailyReports table tbody tr td:first-of-type,
      .Inquiries table tbody tr td:first-of-type,
      .Main table tbody tr td:first-of-type{
        padding:0 !important;
      }

      .Customers.detail .tab-content table tbody tr td:nth-child(2) br,
      .Customers.detail .tab-content table tbody tr td:first-of-type br,
      .DailyReports table tbody tr td:nth-child(2) br,
      .DailyReports table tbody tr td:first-of-type br,
      .Inquiries table tbody tr td:nth-child(2) br,
      .Inquiries table tbody tr td:first-of-type br,
      .Main table tbody tr td:nth-child(2) br,
      .Main table tbody tr td:first-of-type br{
        display:none;
      }

      main table tbody tr td:nth-child(2) span,
      main table tbody tr td:first-of-type button,
      main table tbody tr td:first-of-type a,
      main table tbody tr td:first-of-type > i{
        display:inline-block;
        margin:.5em 1em !important;
      }

      main table tbody tr td:first-of-type *{
        margin-bottom:0 !important;
      }
*/

      main table td::before {
        content: attr(data-label);
        display:block;
        white-space: pre;
        font-weight: bold;
        position: absolute;
        left: 10px;
      }
}

mark{
    background-color:#fffe89;
}
.ranking::after {
    position: absolute;
    content: '';
    margin: auto;
    background: #eee;
    width: 100%;
    height: 1px;
    left: 0;
    top: 1rem;
    z-index: -1;
}

.ranking td{
    height: 300px;
}
.ranking td::before{
    display: block;
    position: absolute;
    content: '';
    margin: auto;
    background: #a0b0d9;
    width: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.ranking td::after{
    display: block;
    position: absolute;
    content: '';
    margin: auto;
    background: #eee;
    width: 100%;
    height: 1px;
    left: 0;
    top:1rem;
    bottom: 0;
    z-index: -1;
}

.ranking td span.order-graf{
    display: block;
    position: absolute;
    content: '';
    margin: auto;
    background: #a0b0d9;
    width: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}
.ranking td span.sales-graf{
    display: block;
    position: absolute;
    content: '';
    margin: auto;
    background: #d9b0a0;
    width: 50px;
    height: 1px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hanrei{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ranking th{
    width: calc(100% / 10);
    text-align: center;
}

.table-div{
}

.table-div + .table-div{
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dotted #ced4da;
}

.table-div + .table-div h4{
    display: none;
}

.table-div .table-row{
    display: flex;
    width: fit-content;
    border-top: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
}

.row-item{
    display: flex;
    flex-wrap: wrap;
    /* border-bottom: 1px solid #ced4da; */
}

.table-body .table-row:last-of-type{
}

.table-div .table-cell{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3rem;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.table-row .table-cell:last-of-type{
    /* border-right: 1px solid #ced4da; */
}

.table-header .table-cell{
    text-align: center;
}

@media screen and (max-width: 800px) {
    .table-header{
        display: none;
    }

    .table-body .table-row,
    .product-name{
        flex-wrap: wrap;
        width: 100% !important;
    }
    .table-cell{
        width: 100% !important;
    }
    .sp-half-cell{
        width: 50% !important;
    }
    .sp-pad-3{
        padding: .5rem;
    }
}

.order-list-header{
    display: flex;
    justify-content: space-between;
}

.order-list-body-row{
    display: flex;
    justify-content: space-between;
}

.order-list-header{
    font-weight: bold;
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}
.order-list-body{
    border-bottom: 1px solid #ced4da;
}

.order-list-header-date,
.order-list-body-date{
    padding: .3rem;
    width: 100px;
}
.order-list-header-customer,
.order-list-body-customer{
    padding: .3rem;
    width: 200px;
}
.order-list-body-row{
}
.before-border{
    position: static;
}
.before-border::before{
    position: absolute;
    content: '';
    width: calc(100% - 300px);
    border-bottom: 1px solid #ced4da;
    right: 0;
    top: 0;
}
.after-border{
    position: static;
}
.after-border::after{
    position: absolute;
    content: '';
    width: calc(100% - 100px);
    border-bottom: 1px solid #ced4da;
    right: 0;
    bottom: 0;
}
.order-list-header-product,
.order-list-body-product{
    padding: .3rem;
    width: 200px;
}
.order-list-header-detail,
.order-list-body-detail{
    padding: .3rem;
    width: calc(100% - 500px);
}

.order-list-body-detail td{
    width: 25%;
}