@charset "utf-8";

html {
    color: #333;
    font-size: 62.5%;
    line-height: 1.3;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
        YuGothic, "Yu Gothic Medium", "Hiragino Sans",
        "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    scroll-behavior: smooth;
    background-color: #e6e6e6;
}

body {
    position: relative;
    box-sizing: border-box;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: none;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
    background: #fff;
    padding: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
    border: 1px solid #808080;
    height: 18px;
    background-color: #fff;
    border-radius: 5px;
    width: calc(100% - 10px);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 1px solid #a4c3de;
}

ul,
li,
dl,
dt,
dd {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

table {
    border-collapse: collapse;
    margin: 0 auto;
}
/*
Clearfix
*/

.cf::after {
    content: "";
    display: block;
    clear: both;
}

/**********************************
  ボタン設定
  *********************************/

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}
button:hover,
a:hover {
    opacity: 0.7;
}
.btn-search,
.btn-clear,
.btn-export,
.btn-none,
.btn-sintyoku,
.btn-kubun {
    color: #fff;
    width: 140px;
    padding: 10px 0;
    font-size: 1.4rem;
}

.btn-search,
.btn-sintyoku,
.btn-kubun {
    background-color: #ee849b;
}
.btn-clear {
    background-color: #808080;
}
.btn-export {
    background-color: #7dc3a5;
}

input[type="submit"]:active,
button:active {
    background: #516275;
}
::placeholder {
    color: #9b9b9b;
}
.textleft {
    text-align: left;
}
select {
    border: 1px solid #808080;
    padding: 5px;
    border-radius: 5px;
}

#container {
    min-height: 100vh;
    position: relative;
    padding-bottom: 37px; /*←footerの高さ*/
    box-sizing: border-box;
}
#contents {
    display: flex;
    justify-content: left;
    max-width: 1700px;
    margin: 0 auto;
    width: calc(100% - 20px);
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    margin: 20px auto 0;
    min-height: calc(100vh - 130px);
}
/**********************************
  ヘッダ
  *********************************/
#header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}
.h-container {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 5px 0;
}
h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN",
        "Hiragino Mincho Pro", HGS明朝E, メイリオ, Meiryo, serif;
}
h1 img {
    width: 200px;
    vertical-align: -16px;
    margin-right: 10px;
}
.account {
    display: flex;
    line-height: 60px;
    font-size: 1.4rem;
}
.acname:after {
    display: inline-block;
    margin-left: 10px;
}
.acbtn,
.acbtn_man {
    width: 150px;
    margin-left: 20px;
}
.acbtn_man button {
    background-color: #ee849b;
    color: #fff;
    padding: 8px 20px;
    font-size: 1.4rem;
}
.acbtn button {
    background-color: #808080;
    color: #fff;
    padding: 8px 20px;
    font-size: 1.4rem;
}
.acname img,
.acbtn img,
.acbtn_man img {
    margin-right: 5px;
}
/**********************************
  フッタ
  *********************************/
#footer {
    width: 100%;
    position: absolute;
    bottom: 0;
}

.cr {
    font-size: 10px;
    margin: 10px 0;
}

/**********************************
  メニュー
  *********************************/

#nav {
    width: 160px;
    text-align: left;
    margin: 53px 20px 20px;
    font-size: 1.5rem;
}

.mainmenu > li {
    border-bottom: 1px dotted #a8a8a8;
}
.mainmenu > li:first-child {
    border-top: 1px dotted #a8a8a8;
}

.mainmenu > li > a {
    display: flex;
    padding: 10px;
    width: calc(100% - 20px);
    color: #333;
    font-weight: 500;
    margin: 3px 0;
    line-height: 24px;
}
.mainmenu > li > a > div {
    height: 24px;
    width: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-right: 8px;
}
.mainmenu > li > a > span {
    display: block;
}
.mainmenu > li > a:hover {
    background-color: #fdf4f5;
}
.mainmenu img {
    height: 100%;
    width: auto;
}
.current a {
    background-color: #fadae1;
}
/**********************************
ログイン
*********************************/
#top-container {
    width: 100%;
    height: 100vh;
    position: relative;
}
#login {
    width: 400px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #dddddd;
    padding: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#login h1 {
    margin-bottom: 40px;
}
.logincontent ul {
    font-size: 1.5rem;
    margin-top: 20px;
}
.logincontent ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.logincontent ul li div {
    width: 100px;
    text-align: right;
    margin-right: 10px;
}
.logincontent input {
    width: calc(200px - 10px);
}

.loginbtn {
    width: 180px;
    margin: 40px auto 0;
}
.loginbtn button {
    background-color: #ee849b;
    color: #fff;
    width: 100%;
    padding: 10px 0;
    font-size: 1.5rem;
}
.errmess {
    color: #ff0000;
    font-size: 1.4rem;
}
.logouttxt {
    font-size: 1.5rem;
    margin: 40px auto;
}

/**********************************
  コンテンツ
  *********************************/
#main {
    width: calc(100% - 220px);
    margin: 20px 0;
    font-size: 1.4rem;
}
h2 {
    font-weight: 500;
    position: relative;
    text-align: left;
    padding-left: 25px;
    font-size: 1.8rem;
    border-bottom: 1px solid #ee849b;
    color: #ee849b;
    margin: 10px 0 20px;
}
h2:before,
h2:after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
}
h2:before {
    border: 1px solid #ee849b;
    top: -3px;
    left: 0;
}
h2:after {
    border: 1px solid #f5c4cf;
    top: -10px;
    left: 8px;
}
h3 {
    text-align: left;
    margin: 0 0 10px;
}
.box {
    padding: 10px;
    background-color: #fdf4f5;
    width: calc(100% - 20px);
}
.tbl1 {
    width: 100%;
}
.tbl1 th {
    background-color: #ffd6df;
    border: 1px solid #d2d2d2;
    font-weight: normal;
    padding: 10px;
    white-space: nowrap;
}
.tbl1 td {
    background: #fff;
    border: 1px solid #d2d2d2;
    padding: 10px;
    white-space: nowrap;
}
.tbl1 tr:last-child td {
    border-bottom: 1px solid #d2d2d2;
}
.tbl1 tr:hover td {
    /* background-color: rgb(212, 233, 206); */
    background-color: rgb(225, 249, 233);
}
.test {
    background-color: rgb(225, 249, 233);
}

.tbl-syukeijokyo tr td:last-child {
    text-align: left;
}

.tbl-syukeijokyo td:first-child {
    width: 160px;
}
.tbl-syukeijokyo td:nth-child(2) {
    text-align: left;
    width: 65px;
}
.tbl-syukeijokyo td:nth-child(3) {
    width: 140px;
    text-align: left;
}
.tbl-syukeijokyo td:nth-child(4) {
    width: 140px;
    text-align: left;
}

/*
  tbl-sales
  -----------------------*/
.tab-nav {
    display: flex;
}
.tab-nav li {
    width: 150px;
    margin-right: 10px;
}
.tab-nav li:last-child {
    margin-right: 0;
}
.tab-nav button {
    background-color: #fdf4f5;
    width: 100%;
    padding: 10px 0;
    position: relative;
}
.tab-nav button:hover {
    background-color: #ee849b;
    color: #fff;
    opacity: 1;
}
.tab-on button {
    cursor: not-allowed;
    background-color: #ee849b;
    color: #fff;
}
.tab-nav button:hover:after,
.tab-on button:after {
    content: "";
    display: block;
    background-color: #ee849b;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    position: absolute;
    bottom: -5px;
    left: 69px;
}
.r-t-box {
    background-color: #fdf4f5;
    padding: 20px 10px;
}
.scroll-box-x {
    overflow-x: auto;
}
.scroll-box-y {
    overflow-y: auto;
}
.box-sales {
    max-height: 450px;
}
.tbl-sales td {
    font-size: 1.3rem;
    text-align: right;
    padding: 5px 5px;
}
.tbl-sales td:first-child {
    text-align: left;
}
.tbl-sales ._sticky_xy {
    position: sticky;
    top: 0;
    left: 0;
    border: 1px solid #d2d2d2;
    z-index: 1;
}
.tbl-sales ._sticky_x {
    position: sticky;
    top: 0;
    left: 0;
    border: 1px solid #d2d2d2;
}
.tbl-sales ._sticky_y {
    position: sticky;
    top: 0;
    left: 0;
    border: 1px solid #d2d2d2;
}
.tbl-sales ._sticky_xy:before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #ffd6df;
    border: 1px solid #d2d2d2;
}
.tbl-sales ._sticky_x:before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-left: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
}
.tbl-sales ._sticky_y:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #fbbbca;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
}
.tbl-sales tr td:first-child {
    max-width: 170px;
}
.tbl-sales .row-area td {
    font-weight: 600;
}
.tbl-sales .row-kyoten td {
    background-color: #d6ebdd !important;
    font-weight: 600;
}
.tbl-sales .row-komoku td {
    background-color: #c6dde0 !important;
    font-weight: 600;
}
.tbl-sales .row-area td:first-child,
.tbl-sales .row-kyoten td:first-child,
.tbl-sales .row-komoku td:first-child {
    font-weight: 300;
}

.scroll-box-x::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.scroll-box-y::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/*スクロールバー全体の背景*/

.scroll-box-x::-webkit-scrollbar-track,
.scroll-box-y::-webkit-scrollbar-track {
    background: #fff;
}

/*スクロールバーの動く部分*/

.scroll-box-x::-webkit-scrollbar-thumb,
.scroll-box-y::-webkit-scrollbar-thumb {
    background: #b1b1b1;
    border: none;
}

/*スクロールバーの動く部分のホバー（マウスオーバー）*/

.scroll-box-x::-webkit-scrollbar-thumb:hover,
.scroll-box-y::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.btn {
    padding: 8px 0;
}
.btn-regi {
    background-color: #ee849b;
    color: #fff;
    width: 130px;
}
.btn-regi-zumi {
    background-color: #b1b1b1;
    color: #fff;
    width: 130px;
}

button:disabled:hover {
    cursor: not-allowed;
    opacity: 1;
}
.termsall {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.termsbox {
    background-color: #fdf4f5;
    padding: 20px;
    width: calc(100% - 180px);
}

.otherbtn {
    width: 140px;
    margin: 20px 0 0 20px;
}
.otherbtn button {
    margin-bottom: 12px;
}
.termsset {
    display: flex;
    justify-content: space-between;
}
.joken {
    width: calc(100% - 160px);
}
.terms {
    font-size: 1.4rem;
}
.terms2 {
    margin-bottom: 0 !important;
}
.terms ul,
.terms ul li {
    display: flex;
    align-items: center;
}
.terms ul {
    flex-wrap: wrap;
}
.terms ul li {
    margin-right: 30px;
    margin-bottom: 20px;
}
.terms ul li:last-child {
    margin-right: 0;
}
.label {
    margin-right: 10px;
    white-space: nowrap;
}
.btn-terms {
    width: 140px;
}
.btn-terms button {
    margin-bottom: 12px;
}
.btn-terms button:last-child {
    margin-bottom: 0;
}
.btn-terms .btn-none {
    margin-bottom: 12px;
}

.box-kubun {
    max-height: 450px;
}

/*
  売上集計
  -----------------------*/
.acco-t1 {
    position: relative;
    padding-left: 15px;
}
.acco-t2 {
    position: relative;
    padding-left: 30px;
}
.acco-t2-dummy {
    padding-left: 30px;
}
.acco-t1:before,
.acco-t2:before {
    content: "";
    display: block;
    border: solid #707070;
    border-width: 3px 3px 0 0;
    width: 6px;
    height: 6px;
    position: absolute;
    top: 12%;
    transition: 0.3s;
}
.acco-t1:before {
    left: 0;
    transform: rotate(135deg);
}
.acco-t2:before {
    left: 15px;
    transform: rotate(135deg);
}
.close .acco-t1:before,
.close .acco-t2:before {
    transform: rotate(45deg);
    top: 25%;
}

.acco-t3 {
    padding-left: 30px;
}
.tbl-rh .row-area:hover,
.tbl-rh .row-komoku:hover,
.tbl-sales .row-kyoten:hover,
.tbl-sales .row-komoku:hover {
    opacity: 0.7;
    cursor: pointer;
}

.category-cell {
    cursor: pointer;
}
.category-level-3 a {
    color: #2f986b;
    text-decoration: underline;
}
.category-level-3 a:hover {
    text-decoration: none;
}

.tbl-sales .row-add td {
    background-color: #ffe765 !important;
}
.row-add td a {
    color: #333 !important;
    text-decoration: underline;
}

.pm-box {
    display: flex;
    background-color: #fdf4f5;
    padding: 20px 10px;
    justify-content: space-between;
}
.set-syaho,
.set-kaigo,
.set-jiko {
    border: 1px dotted #707070;
    padding: 15px;
    text-align: left;
}
.set-syaho {
    width: 30%;
}
.set-kaigo {
    width: 28%;
}
.set-jiko {
    width: 28%;
}
.t-step {
    font-weight: 600;
    margin: 0 0 5px;
}
.step1 div {
    display: flex;
    align-items: center;
    justify-content: left;
}
.step1 select {
    margin-right: 10px;
}
.step1 input {
    margin: 0 10px 0 5px;
}
.btn-enter button {
    background-color: #ee849b;
    color: #fff;
    width: 50px;
    padding: 5px 0;
}

.step2 .t-step,
.step3 .t-step {
    margin-top: 20px;
}
.step2,
.step2-jiko {
    line-height: 1.8;
}
.step2 span,
.step2-jiko span {
    display: inline-block;
    padding: 2px;
    background-color: #ee849b;
    color: #fff;
    margin: 0 2px;
    line-height: 18px;
    height: 18px;
}

.tbl-set-syaho th {
    text-align: center;
}
.tbl-set-syaho td {
    padding: 5px 20px;
}

.tbl-set-syaho td:nth-child(2) {
    text-align: right;
    max-width: 40px;
    min-width: 40px;
}

.tbl-set-syaho td:nth-child(3),
.tbl-set-syaho td:last-child {
    text-align: right;
    max-width: 80px;
    min-width: 80px;
}
.change-box {
    background-color: #c6dde0;
    border-radius: 5px;
    width: 100%;
    padding: 3px 3px 3px 0;
}

.box-syaho {
    width: 65%;
}
.box-kaigo {
    width: 70%;
}
.box-jiko {
    width: 68%;
}

.box-syaho .scroll-box-y {
    height: 465px;
}
.box-kaigo .scroll-box-y {
    height: 530px;
}
.box-jiko .scroll-box-y {
    height: 465px;
}

.scroll-box-y ._sticky {
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 1px solid #d2d2d2;
    border-top: 1px solid #d2d2d2;
    z-index: 1;
}
.scroll-box-y ._sticky:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    background: #ffd6df;
    z-index: -1;
}

.tbl-syaho td {
    padding: 2px 20px;
}
.tbl-syaho td:first-child,
.tbl-syaho td:nth-child(2),
.tbl-syaho td:nth-child(4),
.tbl-syaho td:nth-child(5) .tbl-syaho td:nth-child(6) {
    text-align: left;
}

.tbl-syaho td:nth-child(3),
.tbl-syaho td:nth-child(6) {
    text-align: right;
}

.tbl-jiko td {
    padding: 2px 20px;
}
.tbl-jiko td:first-child,
.tbl-jiko td:nth-child(2),
.tbl-jiko td:nth-child(4),
.tbl-jiko td:nth-child(5),
.tbl-jiko td:nth-child(6) {
    text-align: left;
}

.tbl-jiko td:nth-child(3),
.tbl-jiko td:nth-child(7) {
    text-align: right;
}

.btn-edit {
    background-color: #ee849b;
    color: #fff;
    width: 80px;
    padding: 5px 0;
    display: block;
    margin: 0 auto;
}

.btn-record a {
    display: block;
    background-color: #ee849b;
    color: #fff;
    width: 120px;
    padding: 10px 0 10px 20px;
    margin: 20px auto 0;
    position: relative;
}
.btn-record a:before,
.btn-record a:after {
    position: absolute;
    content: "";
    display: block;
    width: 10px;
    height: 3px;
    background-color: #fff;
}
.btn-record a:before {
    left: 22px;
    top: calc(50% - 1.5px);
}
.btn-record a:after {
    transform: rotate(90deg);
    left: 22px;
    top: calc(50% - 1.5px);
}
.box-ippan {
    height: 290px;
}
.step4 {
    margin-top: 20px;
}
.box-hokensya {
    display: flex;
    align-items: center;
}
.btn-hokensya a {
    display: block;
    background-color: #ee849b;
    color: #fff;
    width: 120px;
    padding: 5px 0;
    margin-left: 10px;
    text-align: center;
}
.tbl-kaigo {
    font-size: 1.2rem;
}
.tbl-kaigo .btn-edit {
    width: 50px;
}
.tbl-jiko {
    font-size: 1.3rem;
}
.tbl-kaigo td {
    padding: 2px 20px;
}
.tbl-kaigo td:first-child,
.tbl-kaigo td:nth-child(2),
.tbl-kaigo td:nth-child(5),
.tbl-kaigo td:nth-child(4) {
    text-align: left;
}
.tbl-kaigo td:nth-child(3),
.tbl-kaigo td:nth-child(6),
.tbl-kaigo td:nth-child(7),
.tbl-kaigo td:nth-child(8),
.tbl-kaigo td:nth-child(9),
.tbl-kaigo td:nth-child(10),
.tbl-kaigo td:nth-child(11),
.tbl-kaigo td:nth-child(12) {
    text-align: right;
}
.tbl-kaigo td:nth-child(4) {
    white-space: normal;
    min-width: 100px;
}

.box-visitnum {
    max-height: 450px;
}

.tbl-kubun td {
    text-align: left;
    padding: 5px 30px;
}
.tbl-kubun td:nth-child(2) {
    text-align: right;
}
.yen::before {
    display: inline;
    content: "¥";
}
/* アップロード
  -----------------------*/

.box-upload .box {
    margin-bottom: 20px;
}
.box-upload h3 {
    margin-bottom: 5px;
}
.box-upload ul li {
    border-bottom: 1px dotted #808080;
    padding-bottom: 10px;
    padding-left: 15px;
    margin-bottom: 10px;
    text-align: left;
}
.box-upload ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.upbox {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
}
.upbox ul {
    width: calc(100% - 170px);
    min-width: 1140px;
}
.csvbtnbox {
    width: 150px;
    margin-left: 20px;
}

.box-up {
    display: flex;
    justify-content: left;
    align-items: center;
}

.t-up {
    font-weight: 600;
    font-size: 1.5rem;
    width: 155px;
}
.btn-up {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 130px;
}
.btn-up label {
    display: block;
    width: 110px;
    padding: 8px 0;
    text-align: center;
    color: #fff;
    background-color: #ee849b;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 20px;
}
.btn-up label:hover {
    opacity: 0.7;
}
.btn-up input {
    display: none;
}
.btn-up p {
    color: #808080;
}
.file-name {
    width: 390px;
}
.time-up {
    margin-right: 20px;
    width: 250px;
}
.btn-thismonth,
.box-totallingtime {
    text-align: left;
}
.box-totallingtime p {
    margin: 0;
}
.btn-thismonth {
    margin-top: 10px;
}

.btn-thismonth button {
    width: 150px;
    padding: 10px 0;
    text-align: center;
    color: #fff;
    background-color: #7dc3a5;
}

@media screen and (max-width: 1585px) {
    .upbox {
        justify-content: end;
    }
    .upbox ul {
        width: 100%;
    }
    .csvbtnbox {
        margin-left: 15px;
        margin-top: 20px;
    }
}
/* 訪問実績
  -----------------------*/
.usercode,
.staffcode,
.visiter {
    width: 100px !important;
}

.box-visitrecord {
    max-height: 400px;
    text-align: right;
}
.tbl-visitrecord {
    font-size: 1.3rem;
}
.tbl-visitrecord th {
    padding: 10px 5px;
}
.tbl-visitrecord td {
    padding: 5px 5px;
}
.tbl-visitrecord td:first-child,
.tbl-visitrecord td:nth-child(3),
.tbl-visitrecord td:nth-child(4) {
    text-align: left;
}
.tbl-visitrecord th {
    text-align: center;
}
.tbl-visitrecord th:first-child,
.tbl-visitrecord td:first-child {
    /* max-width: 220px;
    min-width: 220px; */
    white-space: normal;
}
.tbl-visitrecord th:nth-child(2),
.tbl-visitrecord td:nth-child(2) {
    /* max-width: 110px;
    min-width: 110px; */
    width: 100px;
}
.tbl-visitrecord th:nth-child(3),
.tbl-visitrecord td:nth-child(3) {
    /* max-width: 90px;
    min-width: 90px; */
    width: 200px;
}
.tbl-visitrecord th:nth-child(4),
.tbl-visitrecord td:nth-child(4) {
    /* max-width: 90px;
    min-width: 90px; */
    width: 100px;
}
.tbl-weekly ._sticky_xy,
.tbl-visitrecord ._sticky_xy {
    position: sticky;
    top: 0;
    border: 1px solid #fff;
    z-index: 1;
}
.tbl-weekly ._sticky_x,
.tbl-visitrecord ._sticky_x {
    position: sticky;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    top: 0;
}
.tbl-weekly .no_trans {
    z-index: 0;
}
.tbl-visitrecord th:first-child,
.tbl-visitrecord td:first-child {
    left: 0;
}
/* .tbl-visitrecord th:nth-child(2),
.tbl-visitrecord td:nth-child(2) {
    left: 231px;
} */
/* .tbl-visitrecord th:nth-child(3),
.tbl-visitrecord td:nth-child(3) {
    left: 352px;
} */
/* .tbl-visitrecord th:nth-child(4),
.tbl-visitrecord td:nth-child(4) {
    left: 453px;
} */
.tbl-weekly ._sticky_y,
.tbl-visitrecord ._sticky_y {
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 1px solid #d2d2d2;
    border-top: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
}
.tbl-weekly ._sticky_xy:before,
.tbl-visitrecord ._sticky_xy:before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    border: 1px solid #d2d2d2;
    z-index: -1;
    background-color: #ffd6df;
}
.tbl-weekly ._sticky_x:before,
.tbl-visitrecord ._sticky_x:before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 100%;
    height: 100%;
    border-left: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
    z-index: -1;
}
.tbl-weekly ._sticky_y:before,
.tbl-visitrecord ._sticky_y:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
    z-index: -1;
    background-color: #fbbbca;
}
.tbl-master td a,
.tbl-visitrecord td a {
    color: #2f986b;
    text-decoration: underline;
}
.tbl-master td a:hover,
.tbl-visitrecord td a:hover {
    text-decoration: none;
}
.tbl-onhold {
    font-size: 1.3rem;
}
.tbl-onhold td {
    text-align: left;
    padding: 5px 10px;
}
.tbl-onhold td:nth-child(3),
.tbl-onhold td:nth-child(5),
.tbl-onhold td:nth-child(7),
.tbl-onhold td:nth-child(8),
.tbl-onhold td:nth-child(9),
.tbl-onhold td:nth-child(11) {
    text-align: right;
}
/* .tbl-onhold td:last-child {
    white-space: normal !important;
} */

.btn-back {
    background-color: #808080;
    padding: 10px 0;
    color: #fff;
    width: 140px;
}

.detail-export {
    display: flex;
    align-items: flex-end;
}

.tbl-detail {
    font-size: 1.3rem;
}
.tbl-detail th {
    font-size: 1.2rem;
}
.tbl-detail th {
    padding: 10px 5px;
}
.tbl-detail td {
    padding: 5px 5px;
}
.tbl-detail td:first-child,
.tbl-detail td:nth-child(2),
.tbl-detail td:nth-child(3),
.tbl-detail td:nth-child(4),
.tbl-detail td:nth-child(7),
.tbl-detail td:nth-child(8),
.tbl-detail td:nth-child(9),
.tbl-detail td:nth-child(10),
.tbl-detail td:nth-child(12),
.tbl-detail td:nth-child(15),
.tbl-detail td:nth-child(16),
.tbl-detail td:nth-child(18),
.tbl-detail td:nth-child(19) {
    text-align: left;
}

.tbl-detail td:nth-child(5),
.tbl-detail td:nth-child(6),
.tbl-detail td:nth-child(11),
.tbl-detail td:nth-child(13),
.tbl-detail td:nth-child(22),
.tbl-detail td:nth-child(23),
.tbl-detail td:nth-child(24),
.tbl-detail td:nth-child(25),
.tbl-detail td:last-child {
    text-align: right;
}
.tbl-detail td:first-child,
.tbl-detail td:nth-child(2) {
    background-color: #f7f7f7;
}
.detail-intro .tbl1 td:last-child,
.tbl-detail td:nth-child(5),
.tbl-detail td:last-child {
    font-weight: bold;
}

.tbl-detail ._sticky {
    left: auto;
}

.detail-intro table {
    width: 60%;
    margin-left: 0;
}
.detail-intro {
    padding: 20px 10px;
    display: flex;
}
.detail-intro table th:last-child {
    background-color: #fdbbca;
}
.detail-intro table td:first-child,
.detail-intro table td:nth-child(3),
.detail-intro table td:nth-child(4),
.detail-intro table td:nth-child(5) {
    text-align: left;
}
.detail-intro table td:first-child {
    white-space: normal;
}

.tbl-accmonth td {
    text-align: left;
    padding: 5px 20px;
}
.tbl-accmonth td:nth-child(2) {
    text-align: left;
}
.tbl-accmonth td:nth-child(4) {
    text-align: right;
}

.box-master,
.box-detail {
    max-height: 500px;
}
.terms-master {
    width: 100%;
}

.tbl-master th {
    padding: 5px 10px;
}
.tbl-master ._sticky {
    position: sticky;
    left: 0;
    border-bottom: 1px solid #d2d2d2;
    border-top: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
}
.tbl-master tr:first-child th {
    top: 0;
    height: 20px;
}
.tbl-master tr:first-child th:nth-child(11) {
    height: 10px;
}
.tbl-master tr:nth-child(2) th {
    top: 30px;
    height: 10px;
}
.tbl-master ._sticky:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
    z-index: -1;
    background-color: #ffd6df;
}

.tbl-master td {
    text-align: left;
    padding: 5px 10px;
}

.tbl-master td:first-child,
.tbl-master td:nth-child(7),
.tbl-master td:nth-child(8),
.tbl-master td:nth-child(9) {
    text-align: right;
}
.tbl-master td:last-child,
.tbl-master td:nth-child(10),
.tbl-master td:nth-child(12),
.tbl-master td:nth-child(13) {
    text-align: center;
}
.resultbox {
    position: relative;
}
.kijun {
    position: absolute;
    width: 160px;
    text-align: center;
    display: flex;
    top: 0;
    left: 350px;
}
.t-kijun {
    padding: 5px;
    width: 60%;
}
.num-kijun {
    padding: 5px 0;
    width: 40%;
    font-weight: 600;
    text-align: left;
}
.hyoji {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #f1f1f1;
    padding: 5px;
    width: 520px;
    font-size: 1.3rem;
}
.hyoji .range_1,
.hyoji .range_2,
.hyoji .range_3,
.hyoji .range_4 {
    display: inline-block;
    margin: 0 5px;
    padding: 2px 5px;
}

.kara {
    margin: 0 10px;
}
.box-weekly {
    max-height: 450px;
}
.tbl-weekly {
    font-size: 1.3rem;
}
.tbl-weekly th {
    font-size: 1.2rem;
    padding: 5px;
}
.tbl-weekly td {
    padding: 5px 5px;
}
.tbl-weekly tr:first-child td:first-child,
.tbl-weekly tr:first-child th:nth-child(2),
.tbl-weekly tr:first-child th:nth-child(3),
.tbl-weekly tr:first-child th:nth-child(5),
.tbl-weekly tr:first-child th:nth-child(6),
.tbl-weekly tr:first-child th:nth-child(7),
.tbl-weekly tr:first-child th:nth-child(8),
.tbl-weekly tr:first-child th:nth-child(9),
.tbl-weekly tr:first-child th:nth-child(10),
.tbl-weekly tr:first-child th:nth-child(11),
.tbl-weekly tr:first-child th:last-child {
    height: 80px;
}
.tbl-weekly tr:first-child th:nth-child(4),
.tbl-weekly tr:nth-child(3) th:first-child,
.tbl-weekly tr:nth-child(3) th:nth-child(2),
.tbl-weekly tr:nth-child(3) th:nth-child(3),
.tbl-weekly tr:nth-child(3) th:nth-child(4) {
    height: 40px;
}
.tbl-weekly tr .th-scroll {
    height: 20px;
    background-color: #fbbbca;
}

.tbl-weekly tr:first-child th:first-child,
.tbl-visitrecord td:first-child {
    /* max-width: 45px;
    min-width: 45px; */
    width: 100px;
}

.tbl-weekly tr:first-child th:nth-child(2),
.tbl-weekly tr:first-child th:nth-child(3),
.tbl-weekly td:nth-child(2),
.tbl-weekly td:nth-child(3) {
    max-width: 115px;
    min-width: 115px;
}

.tbl-weekly tr:first-child th:nth-child(4) {
    max-width: 85px;
    min-width: 85px;
}
/* .tbl-weekly tr:nth-child(3) th:first-child, */
.tbl-weekly td:nth-child(4) {
    max-width: 55px;
    min-width: 55px;
}
/* .tbl-weekly tr:nth-child(3) th:nth-child(2), */
.tbl-weekly td:nth-child(5) {
    max-width: 30px;
    min-width: 30px;
}
.tbl-weekly tr:first-child th:nth-child(5) {
    max-width: 60px;
    min-width: 60px;
}
/* .tbl-weekly tr:nth-child(3) th:nth-child(3), */
.tbl-weekly td:nth-child(6) {
    max-width: 55px;
    min-width: 55px;
}
/* .tbl-weekly tr:nth-child(3) th:nth-child(4), */
.tbl-weekly td:nth-child(7) {
    max-width: 70px;
    min-width: 70px;
}

.tbl-weekly tr:first-child th:nth-child(6),
.tbl-weekly tr:first-child th:nth-child(7){
    max-width: 70px;
    min-width: 70px;
}

.tbl-weekly td:nth-child(8),
.tbl-weekly td:nth-child(9),
.tbl-weekly tr:first-child th:nth-child(8),
.tbl-weekly td:nth-child(10),
.tbl-weekly tr:first-child th:nth-child(9),
.tbl-weekly td:nth-child(11),
.tbl-weekly tr:first-child th:nth-child(10),
.tbl-weekly td:nth-child(12) {
    max-width: 35px;
    min-width: 35px;
}
.tbl-weekly td {
    text-align: right;
}
.tbl-weekly td:nth-child(2),
.tbl-weekly td:nth-child(3),
.tbl-weekly td:nth-child(4),
.tbl-weekly td:nth-child(7),
.tbl-weekly td:nth-child(8),
.tbl-weekly td:nth-child(9) {
    white-space: normal;
    text-align: left;
}
.tbl-weekly td:nth-child(5),
.tbl-weekly td:nth-child(6) {
    text-align: center;
}
.tbl-weekly td:last-child {
    font-weight: bold;
}
.tbl-weekly tr:first-child th:first-child,
.tbl-weekly td:first-child {
    left: 0;
    max-width: 65px;
    min-width: 65px;
}
.tbl-weekly tr:first-child th:nth-child(2),
.tbl-weekly td:nth-child(2) {
    left: 76px;
}
.tbl-weekly tr:first-child th:nth-child(3),
.tbl-weekly td:nth-child(3) {
    left: 202px;
}
.tbl-weekly tr:first-child th:nth-child(4),
.tbl-weekly td:nth-child(4) {
    left: 328px;
}
.tbl-weekly tr:first-child th:nth-child(5),
.tbl-weekly td:nth-child(5) {
    left: 424px;
}

.tbl-weekly tr:first-child th:nth-child(6),
.tbl-weekly td:nth-child(6) {
    left: 495px;
}
.tbl-weekly tr:first-child th:nth-child(7),
.tbl-weekly td:nth-child(7) {
    left: 576px;
}
.tbl-weekly tr:first-child th:nth-child(8),
.tbl-weekly td:nth-child(8) {
    left: 657px;
}
.tbl-weekly tr:first-child th:nth-child(9),
.tbl-weekly td:nth-child(9) {
    left: 703px;
}
.tbl-weekly tr:first-child th:nth-child(10),
.tbl-weekly td:nth-child(10) {
    left: 749px;
}
.tbl-weekly tr:first-child th:nth-child(11),
.tbl-weekly td:nth-child(11) {
    left: 795px;
}
.tbl-weekly tr:first-child th:nth-child(12),
.tbl-weekly td:nth-child(12) {
    left: 780px;
}
.tbl-weekly tr:nth-child(2) th.th-scroll {
    top: 31px;
}
.tbl-weekly tr:nth-child(3) th:first-child,
.tbl-weekly tr:nth-child(3) th:nth-child(2),
.tbl-weekly tr:nth-child(3) th:nth-child(3),
.tbl-weekly tr:nth-child(3) th:nth-child(4),
.tbl-weekly tr:nth-child(3) th.th-scroll {
    top: 62px;
}
.tbl-weekly tr:nth-child(4) th.th-scroll {
    top: 113px;
}

.miman {
    color: #ff0000;
}
.range_1,
.range_2,
.range_3,
.range_4 {
    border-radius: 5px;
    padding: 5px;
}
.range_1 {
    background-color: #ead1dc;
}
.range_2 {
    background-color: #fff2cc;
}
.range_3 {
    background-color: #cfe2f3;
}
.range_4 {
    background-color: #fcd0db;
}
.row-yaku td {
    background-color: #c5c5c5 !important;
}

.row-kyusyoku td {
    background-color: #5d5d5d !important;
}

.box-rh {
    max-height: 500px;
}
.tbl-rh .row-area td {
    background-color: #d6ebdd !important;
    border-top-width: 3px;
}
.tbl-rh .row-komoku td {
    background-color: #c6dde0 !important;
}
.over90 {
    border-radius: 5px;
    width: 50px;
    padding: 5px 10px;
    text-align: center;
    color: #fff;
    background-color: #ee849b;
    margin: 0 auto;
}
.tbl-rh td {
    text-align: right;
}
.tbl-rh td:first-child,
.tbl-rh td:nth-child(2) {
    text-align: left;
}
.tbl-rh td {
    padding: 5px 30px;
}
.tbl-rh td:last-child {
    text-align: center;
}
.tbl-rh .row-komoku td {
    font-weight: 600;
}
.tbl-rh .row-komoku td:first-child {
    font-weight: 300;
}

.tbl-rh ._sticky {
    top: 0;
}
.tbl-rh ._sticky:before {
    top: -1px;
}
.taisyo-t {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.taisyoday1,
.taisyoday2 {
    font-weight: 600;
    display: inline-block;
    margin: 0 5px;
}

/* エラーメッセージの見た目 */
.error-message {
    position: fixed; /* 固定位置 */
    top: 10px; /* 上端からの距離 */
    left: 50%; /* 横方向中央 */
    transform: translateX(-50%); /* 左右中央に配置するための調整 */
    z-index: 1000; /* 他の要素より上に表示 */
    background-color: #ff4d4d; /* Bright red background */
    color: white; /* White text */
    /* position: relative; */
    padding: 20px;
    border-radius: 5px; /* Slightly rounded corners */
    font-family: "Arial", sans-serif; /* Simple, clean font */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin: 20px;
}

.error-message p {
    margin: 0;
    font-size: 20px;
}

/* メッセージを消すボタン */
.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

/* インポート成功メッセージの見た目 */
.success-message {
    position: fixed; /* 固定位置 */
    top: 10px; /* 上端からの距離 */
    left: 50%; /* 横方向中央 */
    transform: translateX(-50%); /* 左右中央に配置するための調整 */
    z-index: 1000; /* 他の要素より上に表示 */
    background-color: #4caf50; /* 明るい緑色の背景 */
    color: white; /* 白色のテキスト */
    padding: 20px;
    border-radius: 5px; /* 角を少し丸める */
    font-family: "Arial", sans-serif; /* シンプルでクリーンなフォント */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 控えめな影で深みを出す */
    margin: 20px;
}

.success-message p {
    margin: 0;
    font-size: 20px;
}

/* ローディングアイコンのスタイル */
.upload-button {
    display: flex;
    justify-content: center;
    align-items: center;
    /* その他のスタイル設定 */
}

.loading-icon {
    display: none; /* 初期状態では非表示 */
    border: 4px solid #cdc9c9;
    border-top: 4px solid #ee849b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 週報の支所選択の複数選択のCSS */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    border-color: #0056b3;
    color: #fff;
}

.select2-branch ul li {
    margin-bottom: 0px;
}

.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #007bff;
    color: #fff;
}

.select2-selection__rendered {
    min-width: 200px;
    max-width: 600px;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: min-content;
    overflow-y: auto;
    max-width: 200px;
    text-align: left;
}

.select2-container--open .select2-dropdown--below {
    max-width: 200px;
}
