/*======= レイアウト ======*/
.display_msg{
	color: red;
}
#master_add table.base_detail input .master_name{
	font-size: 26px;
	width:100px;
}
#wrapper {
    width: 95%;
    max-width: 2000px;
    min-width: 464px;
    margin: 0 auto;
    padding: 0px 8px 50px 8px;
    box-sizing: border-box;
}

body {
    border-top: 15px #3fbbc2 solid;
}

body#index,
body#login {
    border-top: none;
}

.gray{
	background-color: #efefef;
}

/*======= 分岐ページ(index) ======*/

.index_content .login_btn img {
    width: 150px;
    display: block;
    margin: 0 auto;
}

.index_content .login_btn {
    display: inline-block;
    width: 49%;
    text-align: center;
}

.index_content {
    padding: 200px 0;
}



/*======= 管理者ログイン ======*/

.login_logo img {
    width:  480px;
}

.login_logo {
    text-align: center;
    font-weight: bold;
    margin: 50px 0;
}

.login_area {
    width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 45px 22px 30px;
    border: 10px #3fbac2 solid;
}

.login_area dd input[type="text"] {
    border: 1px #ddd solid;
    font-size: 16px;
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
}

.login_area dl {
    margin-bottom: 20px;
}

.login_area dt {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.btn {
    background: #4d606e;
    color: #fff;
    border: none;
    font-size: 18px;
    letter-spacing: 2px;
    padding: 10px 45px;
    border-radius: 3px;
    margin: 40px auto;
    display: block;
}

.btn2 {
    background: #4d606e;
    color: #fff;
    border: none;
    font-size: 16px;
    letter-spacing: 2px;
    padding: 10px 45px;
    border-radius: 3px;
    margin: 0px auto;
    display: block;
}


input[type="password"] {
    border: 1px #ddd solid;
    font-size: 16px;
    width: 100%;
    padding: 12px 8px;
    box-sizing: border-box;
}


/*======= 管理者ログイン ======*/

#header .header_logo{
    position: relative;
}
#header .header_logo img {
    width: 250px;
    top:0px;
    left:0px;
}

#header .btn_area .btn,
.patient_manage h3 .btn {
    margin: 0;
    display: inline-block;
    font-size: 14px;
    padding: 9px 0;
    width: 145px;
    margin-left: 4px;
    text-align: center;
}

/* アナリティクス：ナビ紫・かんばん追加ターコイズと区別するスレートブルー */
#header .btn_area a.btn.bg_g {
    background: #5a6d84;
}

#header .btn_area a.btn.bg_g:hover {
    background: #4a5c72;
    color: #fff;
}

#header .btn_area a.btn.bg_p,
.patient_manage h3 .btn.btn.bg_p {
    background: #7e6bc4;
}

#header .btn_area p {
    text-align: right;
}

#header {
    width: 95%;
    max-width: 2000px;
    min-width: 464px;
    margin: 0 auto;
    position: relative;
    padding-top: 15px;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0px;
    box-sizing: border-box;
}

#header .btn_area {
    /*width: 40%;*/
    position: absolute;
    top:15px;
    right: 0;
    bottom: 0;
}


/*======= 管理者トップ ======*/

.news_list {
    background: #fff;
    border: 5px #3fbbc2 solid;
    padding: 10px 20px;
    position: relative;
    margin-top: 60px;
}

.news_list h3.tag {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    background: #3fbbc2;
    position: absolute;
    padding: 5px 20px;
    top: -36px;
    left: -5px;
}

.news_list ul li {
    border-bottom: 1px #ccc dashed;
    padding: 10px 0;
}

.news_list ul li:last-child {
    border-bottom: none;
}

.news_list ul li span {
    color: #aaa;
    font-size: 13px;
    margin-right: 10px;
}

.news_list ul li span.status:before {
    content: "未";
    color: #fff;
    text-align: center;
    font-weight: bold;
}

.news_list ul li span.status {
    background: #ccc;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    text-align: center;
    position: relative;
}

.news_list ul li span.status.comp {
    background: #f75b5c;
}

.news_list ul li span.status.comp:before {
    content: "完";
}
/*======= 管理者トップ：タスクリスト ======*/

.task_manage {
    margin-top: 40px;
}

.task_manage table {
    background: #fff;
    border: 5px #ccc solid;
    text-align: center;
}

.task_manage .task_span {
    background: #ccc;
    display: block;
    padding: 10px 0;
}

.task_manage .task_span.pink {
    background: #ff7a73;
}

.task_manage .task_span.green {
    background: #6aed6b;
}

.task_manage .task_span.purple {
    background: #ba6ce4;
}

.task_manage .task_span.finish {
    line-height: 0;
}

.task_manage .task_span.finish:before {
    content: "★";
    color: #ffdd7e;
    font-size: 12px;
    position: relative;
    top: -1px;
}

.task_manage .day th,
.task_manage .week th {
    font-weight: bold;
    width: 22px;
}

.task_manage .day,
.task_manage .week,
.task_manage .month {
    background: #f7f7f7;
    font-size: 12px;
}

.task_manage td {
    border-bottom: none;
    border-top: none;
}

.task_manage .td_w10 {
    width: 60px;
    font-size: 13px;
}

.task_manage .task_name {
    text-align: left;
    border: none;
}

.task_manage .task_name {
    text-align: left;
    border: none;
    padding: 5px;
    font-size: 14px;
}

.task_manage .task_list_head th {
    background: #ff9944;
    color: #fff;
    border: 2px #fff solid;
    border-top: none;
    border-bottom: none;
}

.task_manage .clinic_name {
    width: 2%;
    background: #f7f7f7;
    font-weight: bold;
    color: #f94;
    border: none;
    padding: 0 5px;
}

.task_manage th,
.task_manage td {
    padding: 5px 0px;
}

.task_manage .top {
    border-top: 1px #ccc solid;
}

.task_manage .comp td {
    background: #ddd;
}

.task_manage .task_btn_area {
    position: relative;
	width:300px;
}

.task_manage .task_btn_area .btn {
    display: inline-block;
    font-size: 15px;
    padding: 5px 10px;
    position: absolute;
    background: #3fbbc2;
    left: 15px;
    bottom: -25px;
}

.task_manage .task_btn_area select {
    position: absolute;
    left: 135px;
    bottom: 16px;
    border: 2px #ddd solid;
}

.task_manage .task_btn_area .zoom {
    position: absolute;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 18px;
    bottom: 10px;
}

.task_manage .task_btn_area .zoom.plus {
    right: 40px;
}


.modal {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  display:none;
  z-index: 3000;
}
html.taskmagic-scroll-lock,
body.taskmagic-scroll-lock {
  overflow: hidden !important;
}
.overLay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    z-index: 3001;
}
.modal .inner {
    position: fixed;
    z-index: 3002;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 30px;
    border: 5px #3fbbc2 solid;
    width: 50%;
    min-width: 380px;
}
.modal .inner table {
    border: 3px #ddd solid;
}
.modal .inner table th, .modal .inner table td {
    padding: 10px;
}
.modal .inner table th {
    text-align: left;
    background: #f7f7f7;
    width: 25%;
}
.modal .inner td input{
    width: 80%;
}
.modal .inner td input.calendar {
    width: auto;
    padding: 3px 10px;
    margin-right: 10px;
}
.modal .inner td select {
    width: 50%;
}
.modal .inner .btn.submit {
    margin-bottom: 0;
	display: inline-block;
}
.modal .inner .btn.delete {
    margin-bottom: 0;
	display: inline-block;
	background: #B70D0F;
	margin-left: 10px;
}
.modal .inner h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #3fbbc2;
    letter-spacing: 2px;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal h3 {
    position: relative;
}
.modal#add_task_modal .task-modal-title-actions {
    display: inline-block;
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
}
.modal#add_task_modal .task-modal-title-menu-btn {
    border: none;
    background: transparent;
    color: #4d606f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.modal#add_task_modal .task-modal-title-menu-layer {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    padding: 6px;
    z-index: 100070;
    text-align: left;
}
.modal#add_task_modal .task-modal-title-menu-layer.is-open {
    display: block;
}
.modal#add_task_modal .task-modal-title-menu-item {
    display: block;
    width: 100%;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 10px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.modal#add_task_modal .task-modal-title-menu-item:hover {
    background: #f4f7fb;
}
.modal#add_task_modal .task-modal-title-menu-item--danger {
    color: #c62828;
}
/* モーダル階層の最前面は常に Swal（確認ダイアログ） */
.swal2-container {
    z-index: 120000 !important;
}
.modal .inner .modalButtonarea {
    text-align: center;
	width: 100%;
}
.modal .inner a.modalClose {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    letter-spacing: normal;
    color: #aaa;
    margin: 10px;
    border: 1px #ccc solid;
    padding: 0px 10px;
    border-radius: 3px;
}

/* タスク追加／編集モーダル #add_task_modal（日次・週間・ストーリー） */
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-task-name-row th {
    vertical-align: top;
    padding-top: 12px;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-task-name-row td {
    width: 75%;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal textarea#task_name.task-modal-task-name-input,
.modal#add_task_modal .inner.taskmng.task-edit-modal textarea#task_name {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    padding: 6px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fff;
    min-height: calc(1.4em + 20px);
    resize: none;
    overflow-x: hidden;
    overflow-y: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-category-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    position: relative;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-category-wrap select#category_no {
    width: auto;
    min-width: 12em;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 28px 4px 10px;
    border-radius: 13px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-text-fill-color: currentColor;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(50% - 1px), calc(100% - 7px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    box-shadow: none;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-category-wrap select#category_no:focus {
    outline: none;
    box-shadow: none;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-category-wrap select#category_no.task-modal-category-native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.modal#add_task_modal .task-modal-category-face.weekly_category_badge {
    display: inline-block;
    max-width: 260px;
    min-width: 9em;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 12px;
    border-radius: 13px;
    text-align: center;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    font-family: var(--taskmagic-font-base);
    word-break: normal;
    overflow-wrap: anywhere;
}
.modal#add_task_modal .task-modal-category-face.weekly_category_badge:focus,
.modal#add_task_modal .task-modal-category-face.weekly_category_badge:focus-visible {
    outline: none;
    box-shadow: none;
}
.task-modal-category-menu-layer {
    z-index: 100060;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal th.task-modal-th-label {
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    color: #555;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal .task-modal-fa {
    opacity: 0.88;
}
.modal#add_task_modal .inner.taskmng.task-edit-modal.task-edit-modal-shell {
    box-sizing: border-box;
    /* .modal .inner の position:fixed + 中央寄せを維持（relative にすると長いページ下部で画面上部が欠ける） */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: min(90vh, calc(100vh - 24px));
    width: min(92vw, 950px);
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal#add_task_modal .task-edit-modal-body-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}
.modal#add_task_modal .task-edit-modal-footer {
    flex: 0 0 auto;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.modal#add_task_modal textarea.task-note-html-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.modal#add_task_modal .task-note-editor-wrap {
    position: relative;
    min-height: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}
.modal#add_task_modal .task-note-editor-wrap .ql-toolbar.ql-snow {
    border-radius: 6px 6px 0 0;
    border-color: rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow {
    border-radius: 0 0 6px 6px;
    border-color: rgba(0, 0, 0, 0.1);
    min-height: 168px;
    font-size: 15px;
    font-family: var(--taskmagic-font-base);
}
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow .ql-editor {
    font-family: var(--taskmagic-font-base);
    color: #000;
    line-height: 1.6;
}
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow .ql-editor p,
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow .ql-editor li {
    line-height: 1.6;
}
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow .ql-editor p {
    margin: 2px 0;
}
.modal#add_task_modal .task-note-editor-wrap .ql-container.ql-snow .ql-editor.ql-blank::before {
    color: rgba(0, 0, 0, 0.38);
    font-style: normal;
}
.modal#add_task_modal .task-note-modal-row th.task-modal-th-label {
    vertical-align: top;
    padding-top: 14px;
}
.modal#add_task_modal textarea#task_modal_memo.task-modal-memo-input {
    padding: 6px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fff;
}

/* 週間: タスク詳細モーダル — ノートは表の下（見出しなし・詰め） */
.modal#add_task_modal .weekly-modal-note-below {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

/* 週間モーダル: 開始日・締切日（ネイティブ date + クイック） */
.modal#add_task_modal .weekly-modal-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.modal#add_task_modal .weekly-modal-date-input {
    min-width: 11.2em;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 6px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.modal#add_task_modal .task-modal-input-like-date {
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
}
.modal#add_task_modal select.task-modal-input-like-date {
    min-width: 12em;
    max-width: 100%;
}
.modal#add_task_modal .task-modal-project-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.modal#add_task_modal .task-modal-project-jump-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    color: #4d606f;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.modal#add_task_modal .task-modal-project-jump-link:hover {
    color: #3e4d5a;
}
.modal#add_task_modal .weekly-modal-time-field input.task-modal-input-like-date {
    width: 64px;
    margin-right: 4px;
}
.modal#add_task_modal .weekly-modal-date-quick {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.modal#add_task_modal .weekly-modal-date-quick__btn {
    font-size: 12px;
    padding: 4px 10px;
    line-height: 1.35;
    margin: 0;
    border-radius: 5px;
}

/* 週間タスク詳細モーダル専用（幅・メモ全幅・日付コンパクト・締切開閉・見積/実績1行） */
.modal#add_task_modal .inner.task-edit-modal-shell.weekly-task-edit-modal-shell {
    width: min(96vw, 950px);
    max-width: 96vw;
}
.modal#add_task_modal .weekly-task-edit-modal-shell textarea#task_modal_memo.task-modal-memo-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-date-input {
    width: 11rem;
    max-width: 48%;
    min-width: 0;
    flex: 0 0 auto;
}
.modal#add_task_modal .weekly-task-edit-modal-shell th.weekly-modal-startdate-th {
    white-space: normal;
    vertical-align: top;
    padding-top: 10px;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-deadline-reveal-wrap {
    margin-top: 6px;
    line-height: 1.35;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-deadline-reveal {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-deadline-reveal:hover {
    color: #0d47a1;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-end-date-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-end-date-block__head {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-time-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-time-field label {
    margin-right: 4px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}
.modal#add_task_modal .weekly-task-edit-modal-shell .weekly-modal-time-sep {
    color: #aaa;
    font-weight: 600;
    user-select: none;
}

/*======= 患者情報管理 ======*/

.task_day_list,
.master_list {
    width: 100%;
    clear: left;
}
.task_today_list{
    width: 60%;
    float: left;
}
.task_etc_list{
    width: 37%;
    float: right;
}

@media screen and (max-width: 1100px) {
    /* 表示領域が320px以下の場合に適用するスタイル */
    .task_today_list{
        width: 100%;
        clear: left;
        margin-bottom: 30px;
    }
    .task_etc_list{
        width: 100%;
        clear: left;
    }
}
.simplytask_area{
    margin-top:10px;
    float: left;
    display: flex;
    align-items: center;
    column-gap: 10px;
}
.calendar_area{
    margin-top:10px;
    float: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
}
.simplytask_area .task_sadd_btn {
    margin: 0 10px 0 0;
}
.calendar_area #displayDay {
    box-sizing: border-box;
    height: 38px;
    margin: 0 0 0 4px;
}
.calendar_area .task_date_btn0,
.calendar_area .task_date_btn1,
.calendar_area .task_date_btn2,
.calendar_area .task_add_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
}
.calendar_area .weekly_two_week_toggle,
.calendar_area .compdisp_area {
    display: inline-flex;
    align-items: center;
}
.calendar_area .weekly_two_week_toggle input,
.calendar_area .compdisp_area input {
    margin-top: 0;
}
.calendar_area .task_add_btn {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: auto;
    min-width: 7.5em;
    vertical-align: middle;
}
.task_add_label_sp {
    display: none;
}
.task_add_label_pc {
    display: inline;
}
/* 日次・週間: ツールバー直後の clearfix と一覧ブロックの間隔 */
.cf_after_task_toolbar {
    margin-bottom: 22px;
}
#simply_task_name{
    padding: 8px;
    font-size: 16px;
    width:250px;
    min-width: 50px;
    margin-right: 10px;
}
#simply_master_name {
    padding: 8px;
    font-size: 16px;
    width: 250px;
}

.task_red_list{
    margin-bottom: 15px;
}

.task_day_list table th,
.task_day_list table td {
    padding: 6px;
}
.today_task table th,
.today_task table td {
    padding: 6px 0px 6px 0px;
}

.task_day_list table th,
.master_list table th {
    background: #3fbbc2;
    color: #fff;
    border-width: 1px 0px; /* 上下だけ引く */
}
.task_day_list table tr {
    border-left: solid 4px #3fbbc2;
    border-right: solid 1px #dddddd;
}
.task_day_list table tr.section {
    text-align: left;
    border-left: solid 4px #4d606f;
    border-right: solid 1px #dddddd;
    background-color: #4d606f;
    color: #fff;
}
.task_day_list table tr.section td{
    text-align: left;
    padding: 5px 8px;
    font-size: 12px;
}

.task_red_list table th{
    background: #f75b5c;
    color: #fff;
    border-width: 1px 0px; /* 上下だけ引く */
}
.task_red_list table tr{
    border-left: solid 4px #f75b5c;
}

.task_inbox_list table th{
    background: cornflowerblue;
    color: #fff;
    border-width: 1px 0px; /* 上下だけ引く */
}
.task_inbox_list table tr{
    border-left: solid 4px cornflowerblue;
}


.task_day_list table th.bg_s,
.master_list table th.bg_s {
    background: #aaa;
}
.task_day_list table th,
.master_list table th {
    font-size: 12px;
}

.task_day_list table td{
	text-align: center;
    border-width: 0px 0px 0px 0px; /* 上下だけ引く */
    padding-top: 4px;
    padding-bottom: 2px;
}
.task_day_list table td.checktd{
    text-align: left;
    padding-left: 0px;

}
.task_day_list table th.task_name{
    text-align: left;
}
.task_day_list table td.task_name{
    text-align: left;
}
.task_day_list table td.taskname_td{
    text-align: left;
    border-bottom: 1px solid #ccc;
    padding-top: 0px;
    padding-bottom: 4px;
}
.task_day_list table td.checkbox_td{
     border-bottom: 1px solid #ccc;
    padding-top: 4px;
    padding-bottom: 4px;
 }
.task_day_list table .comp td {
    background: #bbb;
}

.task_day_list input.calendar {
    width: 100px;
}
.task_day_list input[type="text"] {
    width: 80px;
}
.task_day_list input[type="text"].memo {
    width: 200px;
}
.taskmng input[type="text"] {
    padding: 5px;
}
.taskmng input[type="text"].time {
    width: 60px;
    font-size: 12px;
    margin-right: 5px;
}
.taskmng input[type="text"]#task_name {
    width: 80%;
    font-size: 14px;
    padding: 5px;
    margin-right: 5px;
}
.task_day_list .selectWrap{
    width: 100%;
    position: relative;
    display: inline-block;
}

.task_day_list .sectionSelectWrap{
    width: 80%;
    position: relative;
    display: inline-block;
    background-color: #fff;
}
.task_day_list .selectWrap .select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    font-size:11px;
    font-weight: bold;
    height: 18px;
    background: transparent;
    position: relative;
    z-index: 1;
    padding: 0 10px 0 0px;
    border: 0px solid #b4b3b3;
    border-radius: 2px;
    margin-right: 0px;
}
.task_day_list .selectWrap .project_name {
    font-size:12px;
    color: #fff;
    border-radius: 13px;
}
.task_day_list .selectWrap .section_no {
    max-width: 40px;
    color: #333;
    border-radius: 13px;
    text-align: center;
    background-color: #D2DAE2;
    padding-left: 10px;
    padding-right: 10px;
}
.task_day_list .selectWrap .category_no {
    max-width: 90px;
    color: #333;
    border-radius: 13px;
    text-align: center;
    padding-left: 5px;
}
.task_day_list .sectionSelect{
    margin: 0px 7px;
    background: #fff;
    color: #000;
    width:80%;
}
.task_day_list .select_project{
    width:47%;
    float: left;
}
.task_day_list .selectWrap .select:hover{
}
.task_day_list .select:focus{
    outline: none;
}
.task_day_list select::-ms-expand {
    display: none;
}
.task_day_list input[type="text"].task_name {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
    text-align: left;
    border: 0px solid #b4b3b3;
    background: none;
    padding-left: 5px;
}
.task_day_list th.category {
    max-width: 200px;
    text-align: left;
}
/* ストーリー管理: カテゴリ列は最大 150px で表示 */
.task_day_list .task_project_list th.category {
    width: 150px;
    max-width: 150px;
}
.task_day_list .task_project_list .selectWrap .category_no {
    width: 150px;
    max-width: 150px;
}
.task_day_list input[type="text"].task_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.task_day_list input[type="text"].dtime {
    width: 40px;
    font-size: 14px;
    margin-right: 0px;
    text-align: center;
    border: 0px solid #b4b3b3;
    background: none;
}
.task_day_list input[type="text"].dtime:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}

.task_day_list input[type="number"].sort_no {
    max-width: 23px;
    color: #333;
    font-weight: bold;
    border-radius: 13px;
    text-align: center;
    background-color: #D9DFD9;
    padding: 2px 7px 2px 10px;
    border: 0px;
}

.task_day_list input[type="date"].ddate {
    font-size: 13px;
    padding: 5px;
    background: white;
    border: 0px solid #b4b3b3;
}
.task_th_70{
    width: 40px;
}
.datetd{
    text-align: center;
    font-size: 12px;
}
.menutd{
    width: 30px;
    text-align: right;
}
input[type="date"] {
    font-size: 18px;
    padding: 10px;
}
/* スピンボタン（上下ボタン）を非表示 */
input[type=date]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
/* 無入力時の 年/月/日 を / / にする */
input[type=date]::-webkit-datetime-edit-year-field:not([aria-valuenow]),
input[type=date]::-webkit-datetime-edit-month-field:not([aria-valuenow]),
input[type=date]::-webkit-datetime-edit-day-field:not([aria-valuenow]) {
    color: transparent;
}
/* /の色を変える */
input[type=date]::-webkit-datetime-edit-text {
    color: #666;
}
/* clearボタンの非表示 */
input[type=date]::-webkit-clear-button {
    -webkit-appearance: none;
}
/* カレンダーのインジケータ（▼）を非表示 */
input[type=date]::-webkit-calendar-picker-indicator {
    color: transparent;
    position: relative;
}
/* fontAwesomeのカレンダーアイコンをインジケータにする */
input[type=date]::-webkit-calendar-picker-indicator:before {
    color: #666;
    font-family: FontAwesome;
    /*content: "\f073";*/ /* fa-calendar */
    content: "\f133"; /* fa-calendar-o */
    position: absolute;
    left: -5px; /* ここら辺はいい感じの塩梅で */
    top: -5px;  /* ここも */
}
.task_day_list select {
    padding-right: 25px;
}
/* JS 描画の select / タスク名入力: 閉じた select やセル内でも絵文字フォントにフォールバック */
.task_day_list .selectWrap .select,
.task_day_list .selectWrap .project_name,
.task_day_list .selectWrap .category_no,
.task_day_list .selectWrap .section_no,
.task_day_list input[type="text"].task_name,
.today_task .selectWrap .select,
.today_task .selectWrap .project_name,
.today_task .selectWrap .category_no,
.today_task .selectWrap .section_no,
.task_project_list select,
.task_project_list .select,
.task_project_list input[type="text"].task_name,
.modal .inner select,
.modal .inner input[type="text"],
.modal .inner textarea {
    font-family: var(--taskmagic-font-base);
}
.csv_download{
	width: 100%;
	padding: 20px;
	text-align: center;
}

.csv_download select {
    padding-right: 25px;
}
/*======= 施設情報管理 ======*/

.master_list table th {
    background: #4d606e;
}

.master_list table {
    width: 100%;
}

.master_list table tr:nth-child(2n+1) {
    background: #efefef;
}

.master_list table tr:hover {
    background: #fffeab;
    cursor: pointer;
}

.pager {
    margin: 20px 0;
    text-align: center;
    margin-bottom: 60px;
}

.pager a,
.pager span {
    background: #ccc;
    padding: 8px 18px;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
    color: #fff;
}

.pager span {
    background: #999999;
}

#master h3 {
    position: relative;
    margin-bottom: 10px;
}

#master a.add_new {
    position: absolute;
    right: 0;
    font-weight: normal;
    font-size: 14px;
    background: #4d606e;
    color: #fff;
    padding: 3px 20px;
    border-radius: 3px;
}


/*======= 施設情報管理(新規登録・編集) ======*/

#master_add table.add_detail th {
    width: 30%;
}

#master_add th {
    background: #ccc;
}

#master_add th,
#master_add td {
    border-color: #999;
    padding: 5px 10px;
}

#master_add table {
    border: 3px #4d606e solid;
    background: #fff;
    width: 100%;
}

#master_add table.add_detail {
    border-top: none;
}

#master_add th.college_name {
    background: #4d606e;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
	text-align: left;
	padding: 10px 10px;
}

#master_add th.college_name span.disp_kigo{
	display: inline-block;
    background: #fff;
	font-size: 16px;
	color: #aaa;
	min-width: 90px;
	text-align: left;
	padding: 6px 6px;
	margin: 0px 10px;
	
}

#master_add th.college_name .name{
	width: 320px;
	margin: 0px 10px;
	font-size: 16px;
}
#master_add th.college_name .kigo{
	width: 100px;
	margin: 0px 10px;
	font-size: 16px;
}

#master_add table.base_detail th:first-child,
#master_add table.base_detail td:first-child {
    width: 20%;
}

#master_add table.base_detail th:nth-child(3),
#master_add table.base_detail td:nth-child(3) {
    width: 35%;
}

#master_add table.base_detail input {
    width: 100%;
    padding: 3px 5px;
    box-sizing: border-box;
}

#master_add a.btn.back {
    position: absolute;
    bottom: 0;
}

#master_add .input_area {
    position: relative;
}

#master_add a.btn.back {
    position: absolute;
    bottom: 0;
    margin: 0;
}

.btn.submit {
    background: #3fbbc2;
}
th.status_area{
	width: 780px;
}
td.status_area{
	width: 130px;
}
td.status_area.completion{
    background: #4d606f;
	color: #fff;
}
td.status_area.prov{
    background: #f9c7d0;
}
td.status_area.ing{
    background: #FFF28A;
}
.btn.status {
    background: #3fbbc2;
	display: inline-block;
	padding: 0px 5px;
	font-size: 14px;
	margin: 2px 0 0 10px;
	float: right;
}
span.status {
	float: left;
	display: inline-block;
}


/*======= 病院／医師トップ ======*/

.patient_manage table {
    background: #fff;
    border: 5px #3fbbc2 solid;
    text-align: center;
}

.patient_manage table th {
    background: #3fbbc2;
    color: #fff;
    border-color: #fff;
    font-weight: normal;
}

.patient_manage table th,
.patient_manage table td {
    padding: 10px 0;
}

.patient_manage .btn {
    margin: 0;
    display: inline-block;
    font-size: 14px;
    padding: 2px 20px;
}

.patient_manage .btn.edit {
    background: #bbb;
}

.patient_manage .btn.remove {
    background: #f75b5c;
}

.patient_manage td:last-child {
    width: 10%;
}

.patient_manage table ul li {
    display: inline-block;
    width: 25%;
    border: 2px #ccc solid;
    margin: 2px 0;
    letter-spacing: normal;
}

.patient_manage td.status {
    width: 25%;
}

.patient_manage th .status_type {
    background: #fff;
    color: #222;
    width: 90%;
    margin: 0 auto;
    font-size: 13px;
    padding: 3px 0;
}

.patient_manage th .status_type span:before {
    background: #26a1a8;
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    top: 3px;
    position: relative;
    margin-right: 3px;
    margin-left: 5px;
    border: 2px #ccc solid;
}

.patient_manage th .status_type span.next:before {
    background: #c1c1c1;
}

.patient_manage th .status_type span.ing:before {
    background: #FFF28A;
}
.patient_manage th .status_type span.not:before {
    background: #fff;
}

.patient_manage table ul li.status_ok {
    background: #26a1a8;
    color: #fff;
}

.patient_manage table ul li.status_next {
    background: #c1c1c1;
    color: #fff;
}

.patient_manage h3 {
    position: relative;
    margin: 40px 0px 10px;
}

.patient_manage h3 .btn {
    position: absolute;
    right: 0;
    bottom: 0;
    font-weight: normal;
}
.patient_manage h3 .btn2 {
    position: absolute;
    right: 200px;
    bottom: 0;
    font-weight: normal;
}


/*======= 病院／医師：患者情報編集 ======*/

.clinic_info table {
    border: 5px #3fbbc2 solid;
    background: #fff;
}

.clinic_info th {
    background: #3fbbc2;
    color: #fff;
    text-align: left;
    font-weight: normal;
    border-color: #fff;
}

.clinic_info th,
.clinic_info td {
    width: 25%;
    padding: 10px 25px;
}


/*======= 病院／医師：患者情報編集(入力エリア) ======*/

.patient_detail {
    position: relative;
}

.patient_detail .tabs {
    letter-spacing: -.40rem;
    text-align: center;
    background: #fff;
    border: 4px #4d606f solid;
    border-bottom: sienna;
}

.patient_detail .tabs li a {
    color: #4d606f;
    width: 180px;
    border-left: none;
    border-bottom: none;
    display: inline-block;
    padding: 10px 0;
    font-weight: bold;
    border-left: 2px #4d606f solid;
    font-size: 16px;
}

.patient_detail .tabs li.select a {
	color: #FF6800;
	
}

.patient_detail .tabs li a.completion {
    background: #4d606f;
    color: #fff;
}

.patient_detail .tabs li a.prov {
    background: #f9c7d0;
}
.patient_detail .tabs li a.ing {
    background: #FFF28A;
}

.patient_detail .tabs li {
    display: inline-block;
    letter-spacing: normal;
}

.patient_detail .tabs li:first-child a {
    border-left: none;
}

.patient_detail .info_tabs {
    background: #ddd;
    border: 4px #4d606f solid;
    border-bottom: none;
}

.patient_detail .tab_panel .content_area {
    background: #fff;
    border: 4px #4d606f solid;
    border-top: none;
}

.patient_detail .info_tabs li {
    display: inline-block;
    padding: 20px 25px;
}

.patient_detail .info_tabs li a {
    color: #4d606f;
    font-weight: bold;
}

.patient_detail .info_tabs li a.active {
    border-bottom: 2px #4d606f solid;
    padding-bottom: 6px;
}

.patient_detail .caption {
    padding: 10px;
    font-weight: bold;
    position: relative;
}

.patient_detail .caption span {
    font-size: 13px;
    margin-left: 10px;
}

.patient_detail .caption span.ta_r {
    position: absolute;
    right: 0;
    bottom: 10px;
}

.patient_detail th {
    background: #eee;
}

.patient_detail th,
.patient_detail td {
    padding: 10px;
}

.patient_detail .tab01 td:first-child {
    text-align: center;
}

.patient_detail .consent_date th {
    width: 30%;
}

.patient_detail .editor {
    text-align: right;
    margin-right: 20px;
}

.patient_detail .editor input {
    margin-left: 10px;
}

.patient_detail .editor:before {
    content: "";
    width: 25px;
    height: 25px;
    display: inline-block;
    background: url(../img/icon_editor.png) no-repeat;
    background-size: 100%;
    position: relative;
    top: 7px;
    left: -5px;
}

.btn.next {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
}

.tab_btn:hover {
    cursor: pointer;
}

.tab_panel {
    display: none;
}

.patient_detail .status_type span:before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    background: #fff;
    border: 2px #ccc solid;
    position: relative;
    top: 2px;
    margin-right: 5px;
}

.patient_detail .status_type span.completion:before {
    background: #4d606f;
}

.patient_detail .status_type span.prov:before {
    background: #f9c7d0;
}
.patient_detail .status_type span.ing:before {
    background: #FFF28A;
}
.patient_detail .status_type {
    text-align: right;
    margin-top: 40px;
}
.patient_detail .status_type span {
    margin-left: 15px;
}
/*======= 病院／医師：患者情報編集(患者背景) ======*/

.patient_detail .patient_bg th {
    text-align: left;
    width: 20%;
}

.patient_detail .patient_bg td {
    width: 32%;
}

.patient_detail .patient_bg td ul.dp_inline li {
    display: inline-block;
    width: 23%;
    vertical-align: top;
}

.patient_detail .patient_bg td ul.dp_inline li.w100 {
    width: 100%;
}

.patient_detail .patient_bg td ul.dp_inline.v2 li {
    width: auto;
}

.patient_detail .patient_bg td ul li {
    position: relative;
    padding: 7px 0;
}

.patient_detail .patient_bg td ul li .sub {
    position: absolute;
    right: 120px;
    bottom: 5px;
}

.patient_detail .patient_bg td ul.yarn {
    margin-left: 80px;
}

.patient_detail th span {
    font-size: 13px;
}


/*======= 病院／医師：患者情報編集(手術情報) ======*/

.patient_detail .content_area.tab03 .th_width th {
    width: 15%;
}

.patient_detail input[type="text"] {
    margin-right: 10px;
    padding: 3px 10px;
    font-size: 14px;
}
.patient_detail textarea {
    margin-right: 10px;
    padding: 3px 10px;
    font-size: 14px;
    border: 1px #ddd solid;
}
.patient_detail input[type="text"].mr00 {
    margin-right: 0px;
}

.patient_detail .implant ul li {
    display: inline-block;
    margin: 0 5px 0px 0;
}

.patient_detail td.input_wide input {
    width: 40%;
    margin-left: 15px;
}

.patient_detail input[type="text"].int {
    width: 55px;
}
.patient_detail input[type="text"].double {
    width: 65px;
}
.patient_detail input[type="text"].tsuikan {
    width: 80px;
}
.patient_detail input[type="text"].full {
    width: 90%;
}

/*======= 病院／医師：患者情報編集(画像評価) ======*/

.patient_detail .content_area.tab04 th {
    text-align: left;
    width: 30%;
}

.patient_detail .content_area.tab04 tr:first-child th {
    text-align: center;
}

.patient_detail .content_area.tab04 .photo img {
    width: 100%;
}

/*======= 病院／医師：患者情報編集(有害事象) ======*/
.patient_detail .content_area.tab05 tr th:first-child,
.patient_detail .content_area.tab06 tr th:first-child,
.patient_detail .content_area.tab05 tr td:nth-child(2) ,
.patient_detail .content_area.tab06 tr td:nth-child(2) {
    width: 20%;
}
.patient_detail .content_area.tab05 tr:first-child th:first-child,
.patient_detail .content_area.tab06 tr:first-child th:first-child{
    text-align: center;
}
.patient_detail .content_area.tab05 tr th:first-child,
.patient_detail .content_area.tab06 tr th:first-child{
    border-right: none;
    text-align: left;
}

.patient_detail .content_area.tab05 tr td:nth-child(2),
.patient_detail .content_area.tab06 tr td:nth-child(2){
    border-left: 1px #ccc dashed;
}
.patient_detail .content_area.tab05 tr td:nth-child(2) ,
.patient_detail .content_area.tab06 tr td:nth-child(2) {
    border-left: 2px #ccc dashed;
    background: #eee;
}
.patient_detail .content_area.tab05 .dp_inline li ,
.patient_detail .content_area.tab05 .dp_inline li {
    display: inline-block;
    width: 20%;
}


.patient_detail .content_area.tab10 th {
    text-align: left;
    width: 20%;
}

/*======= 病院／医師：患者情報編集(機器の不具合) ======*/
.patient_detail textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    height: 80px;
}

/*======= 病院／医師：患者情報編集(3ヶ月併用薬) ======*/
.content_area.m3_tab01 th {
    width: 30%;
}
#master_add a.delete {
    width: 25px;
    height: 25px;
    background: #dedede;
    display: inline-block;
    color: #7b7b7b;
	float:right;
}

#master_add a.delete:before {
    content: "\f00d";
    font-family: FontAwesome;
}

#master_add  div.plus_area{
	width:100%;
	text-align: center;
}
#master_add a.plus {
    color: #7b7b7b;
    font-weight: bold;
    font-size: 13px;
    background: #dedede;
    padding: 2px 13px 2px 35px;
    display: inline-block;
    margin: 10px auto 10px auto;
    position: relative;
	left: auto;
	right: auto;
}

#master_add a.plus:before {
    content: "\f067";
    font-family: FontAwesome;
    position: absolute;
    top: 6px;
    left: 15px;
}

#master_add input[type="text"].ename {
    width: 150px;
	text-align: center;
	font-size: 15px;
	padding: 0px;
}


/*====== タスク管理カレンダー追加CSS ======*/
.task_manage {
    width: 100%;
    overflow-x: scroll;
}
.task_manage table {
    width: 150%;
}
.task_manage .task_name {
    width: 250px;
}


#patient .btn {
    margin: 0;
    display: inline-block;
    font-size: 14px;
    padding: 2px 20px;
}

/* 丸型クイック追加（＋）: 日次・週間・ストーリー・かんばん等で共通 */
.task_sadd_btn,
.master_sadd_btn,
.pjt_sadd_btn {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0 !important;
    margin: 0 10px 15px 0;
    font-size: 24px;
    line-height: 1 !important;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    text-decoration: none;
    background-color: #12999f;
    border-radius: 50%;
}
.master_sadd_btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0 10px 15px 0;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    text-decoration: none;
    background-color: #12999f;
    border-radius: 50%;
}
.task_add_btn {
    float:right;
    display: inline-block;
    width: 150px;
    text-align: center;
    margin-top: 0px;
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 16px;
}

.task_date_btn1 {
    display: inline-block;
    text-align: center;
    padding-left: 11px;
    padding-right: 11px;
    margin-top: 0px;
    margin-left: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}
.task_date_btn2 {
    display: inline-block;
    text-align: center;
    padding-left: 11px;
    padding-right: 11px;
    margin-top: 0px;
    margin-right: 20px;
    margin-bottom: 15px;
    margin-left: 10px;
    font-size: 16px;
}


.task_td{
    width: 70px;
}
/*====== タスク管理ポップアップメニュー ======*/
ul.menu {
    position: relative;
    margin: 0 auto;
    margin-top:0px;
    margin-bottom:0px;
    text-align: center;
    z-index:100;
}

ul.menu > li {
    float: left;
    height: 18px;
    line-height: 18px;
    color: #000;
}

ul.menu > li a {
    padding: 0px 5px;
    display: block;
    color: #000;
}

ul.menu__second-level {
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    color: #fff;
}

ul.menu__second-level li {
    border-top: 1px solid #111;
    padding: 5px 0px;
    height: 35px;
    line-height: 35px;
}

ul.menu__second-level > li a{
    color: #fff;
}
ul.menu__second-level > li a:hover{
    color: gold;
}

.menu:before,
.menu:after {
    content: " ";
    display: table;
}

.menu:after {
    clear: both;
}

.menu {
    *zoom: 1;
}
.menu > li.menu__single {
    position: relative;
    z-index:10;
}

li.menu__single ul.menu__second-level {
    position: absolute;
    top: 40px;
    right: -10px;
    min-width: 250px;
    max-width: 400px;
    background: #000;
    color: #fff;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}
.clear{
    clear: left;
}
/*======= 今日のタスク ======*/
.today_task {
    width: 100%;
    background-color: #3fb9c2;
    padding: 20px 0px;
    text-align: center;
}
.today_task table {
    width: 95%;
    max-width: 2000px;
    min-width: 464px;
    margin: 0 auto;
    padding: 0px 8px 50px 8px;
    background: #f5f5f5;
    border: 0px #333 solid;
}
.today_task .title td {
    background: #333;
    color: #dcdc68;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
}
.today_task .title td.nowtd {
    text-align: center;
}

.today_task th,
.today_task td {
    border: none;
    padding: 3px;
}

.today_task .taskname_td {
}

.today_task input[type="text"].task_name {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    width: 97%;
    margin-right: 5px;
    text-align: left;
    border: 0px;
    background: none;
    padding-left: 6px;
    margin-top: 1px;
    z-index: 5;
}
.today_task input[type="text"].task_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}

.today_task table td.today_checkbox_td{
    width: 40px;
    text-align: center;
    padding-bottom: 10px;
    padding-left: 6px;
}
.today_task td.today_checkbox_td span {
}
.today_task td.today_checkbox_td span:after {
    content: "▶";
    position: absolute;
    color: #fff;
    left: 8px;
    top: 5px;
}
.today_task td {
    font-size: 14px;
    color: #aaa;
}
.today_task table.task_memo_table{
    width: 100%;
}
.today_task table.task_memo_table td.task_memo_ico {
    width: 30px;
    padding: 0 0 10px 5px;
}
.today_task .task_memo input,
.today_task .task_memo textarea.daily_now_task_memo {
    font-size: 15px;
    padding: 2px 5px;
    width: 98%;
    border-radius: 5px;
    border: 1px #ccc solid;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}
.today_task .task_memo textarea.daily_now_task_memo {
    display: block;
    box-sizing: border-box;
    min-height: calc(1.4em + 8px);
    max-width: 100%;
    resize: none;
    overflow-x: hidden;
    line-height: 1.4;
    font-family: inherit;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.today_task .task_memo input::placeholder,
.today_task .task_memo textarea.daily_now_task_memo::placeholder {
    color: #ccc;
}
.today_task .task_memo img {
    width: 25px;
    vertical-align: top;
    margin-right: 0px;
    margin-top: 3px;
}

.today_task .selectWrap{
    width: 100%;
    position: relative;
    display: inline-block;
}

.today_task .sectionSelectWrap{
    width: 80%;
    position: relative;
    display: inline-block;
    background-color: #fff;
}
.today_task .selectWrap .select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    font-size:13px;
    font-weight: bold;
    height: 20px;
    background: transparent;
    position: relative;
    z-index: 1;
    padding: 0 10px 0 0px;
    border: 0px solid #b4b3b3;
    border-radius: 2px;
    margin-right: 0px;
}
.today_task .selectWrap .project_name{
    color: #333;
    border-radius: 13px;
}
.today_task .selectWrap .category_no{
    max-width: 100px;
    color: #333;
    border-radius: 13px;
    text-align: center;
    padding-left: 5px;
}
.today_task .selectWrap .section_no {
    max-width: 45px;
    color: #333;
    border-radius: 13px;
    text-align: center;
    background-color: #D2DAE2;
    padding-left: 10px;
    padding-right: 10px;
}
.today_task .sectionSelect{
    margin: 0px 7px;
    background: #fff;
    color: #000;
    width:80%;
}
.today_task .select_project{
    width:47%;
    float: left;
}
.today_task .selectWrap .select:hover{
}
.today_task .select:focus{
    outline: none;
}
.today_task select::-ms-expand {
    display: none;
}
.today_task input[type="text"].dtime {
    width: 40px;
    font-size: 14px;
    margin-right: 0px;
    text-align: center;
    border: 0px solid #b4b3b3;
    background: none;
}
.today_task input[type="text"].dtime:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.today_task input[type="number"].sort_no {
    max-width: 23px;
    color: #333;
    font-weight: bold;
    border-radius: 13px;
    text-align: center;
    background-color: #D9DFD9;
    padding: 2px 7px 2px 10px;
    border: 0px;
}

.today_task input[type="date"].ddate {
    font-size: 13px;
    padding: 5px;
    background: white;
    border: 0px solid #b4b3b3;
}
.today_task .today_task_first td{
    padding-top: 10px;
    padding-bottom: 2px;
}
.today_task .today_task_second td{
    padding-top: 2px;
    padding-bottom: 0px;
    text-align: left;
}
.today_task .today_task_third td{
    padding-top: 2px;
    padding-bottom: 2px;
}
/*====== Weekly タスクリスト（日次・ストーリーに寄せた落ち着いたトーン）======*/
.weekly_task {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 10px;
    row-gap: 20px;
    letter-spacing: normal;
}
.weekly_task .daytask_list {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 264px;
    margin-right: 0;
    letter-spacing: normal;
}
.weekly_task .daytask_list:last-child {
    margin: 0;
}
.weekly_task.weekly_task--two-week {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.weekly_task.weekly_task--two-week .daytask_list {
    width: 220px;
    min-width: 200px;
}
.weekly_task .daytask_list.weekly_day_prev_week .head {
    background: #5a6b78;
    border-left: 4px solid #2d3840;
}
.weekly_two_week_toggle {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}
.weekly_task .daytask_list .head {
    background: #4d606f;
    color: #fff;
    padding: 10px 16px;
    border-bottom: 3px solid #3fbbc2;
}
.weekly_task .daytask_list .head p.date {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    font-size: 26px;
    margin-bottom: 10px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}
.weekly_task .daytask_list .head p.date .weekly_date_left {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.weekly_task .daytask_list .head p.date .weekly_dom {
    display: inline-block;
}
.weekly_task .daytask_list .head p.date .weekly_day_add_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 26px;
    min-height: 26px;
    padding: 0 5px;
    margin: 0 0 1px 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}
.weekly_task .daytask_list .head p.date .weekly_day_add_btn:hover {
    background: rgba(255, 255, 255, 0.26);
}
.weekly_task .daytask_list .head p.date .weekly_day_add_btn:focus-visible {
    outline: 2px solid #3fbbc2;
    outline-offset: 2px;
}
.weekly_task .daytask_list .head p.date .week {
    font-size: 14px;
    font-weight: 500;
    position: static;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.68);
    opacity: 1;
}
.weekly_task .daytask_list .head textarea.weekly-day-memo {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 4px 6px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    resize: vertical;
    min-height: 2.4em;
    letter-spacing: normal;
    font-family: var(--taskmagic-font-base);
}
.weekly_task .daytask_list .head textarea.weekly-day-memo::placeholder {
    color: #9e9e9e;
}
/* 本日はアクセント帯のみ（ヘッダ色は週全体で統一） */
.weekly_task .daytask_list.today .head {
    background: #4d606f;
    box-shadow: inset 4px 0 0 #3fbbc2;
}
/* 土曜: 平日ヘッダー(#4d606f)に近い明度でブルー／水色寄りのスレート */
.weekly_task .daytask_list.saturday .head {
    background: #2f6474;
}
/* 日曜: 同明度帯で赤ピンク寄りのスレート */
.weekly_task .daytask_list.sunday .head {
    background: #584651;
}
/* 土日: 曜日略称（地色とのコントラスト用にやや彩度を持たせる） */
.weekly_task .daytask_list.saturday .head p.date .week {
    color: #c4ebfc;
    font-weight: 600;
}
.weekly_task .daytask_list.sunday .head p.date .week {
    color: #f0c4d6;
    font-weight: 600;
}
.weekly_task .daytask_list li.weekly-drag-task {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3px;
    box-sizing: border-box;
    padding: 6px 8px 6px 5px;
}
.weekly_task .daytask_list li {
    background: #fff;
    margin: 0 0 6px 0;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e2e6ec;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
/* 週間クエスト完了行（背景 #bbb／左アクセントは li のインライン border-left を維持） */
.weekly_task .daytask_list ul li.weekly-drag-task.comp {
    background: #bbb;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
}
/* 完了行のカテゴリバッジ: 行背景(#bbb)より一段濃いグレーで統一 */
.weekly_task .daytask_list ul li.weekly-drag-task.comp .weekly_task_meta .weekly_category_badge.weekly_category_badge_done {
    background-color: #949494;
    color: #1f1f1f;
}
.inbox_weekly_tasklist td .weekly_category_badge.weekly_category_badge_done {
    background-color: #949494;
    color: #1f1f1f;
}
.inbox_weekly_tasklist td.weekly_inbox_taskcell {
    min-width: 0;
}
.inbox_weekly_tasklist td.weekly_compact_story_td {
    min-width: 0;
    max-width: 0;
}
.inbox_weekly_tasklist td.weekly_progress_checkbox_td {
    vertical-align: top;
    padding-top: 3px;
    padding-bottom: 0;
}
.inbox_weekly_tasklist td.weekly_progress_checkbox_td .weekly_checkbox_wrap {
    display: inline-block;
    margin: 0;
    padding: 0;
    transform: translateY(-2px);
}
.inbox_weekly_tasklist td.weekly_progress_checkbox_td .weekly_checkbox_wrap .checkbox-p {
    display: block;
    padding-top: 0;
}
.inbox_weekly_tasklist td .weekly_inbox_story_name,
.inbox_weekly_tasklist td .weekly_compact_story_name {
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inbox_weekly_tasklist td.weekly_compact_taskname_td {
    text-align: left;
    padding-top: 0;
    padding-bottom: 7px;
}
.inbox_weekly_tasklist td.weekly_compact_kigen_td {
    white-space: nowrap;
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    padding-top: 2px;
    padding-bottom: 7px;
}
.inbox_weekly_tasklist td .weekly_inbox_task_name {
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    display: block;
}
.inbox_weekly_tasklist tr.weekly-inbox-row > td:not(.weekly_progress_checkbox_td),
.inbox_weekly_tasklist tr.weekly-progress-row > td:not(.weekly_progress_checkbox_td) {
    border-bottom: 0;
    padding-bottom: 3px;
}
.inbox_weekly_tasklist tr.weekly-inbox-row-detail > td,
.inbox_weekly_tasklist tr.weekly-progress-row-detail > td {
    border-top: 0;
}
.weekly_task .daytask_list ul li.weekly-drag-task.comp .weekly_story_heading {
    color: #6a3d52;
}
.weekly_task .daytask_list ul li.weekly-drag-task.comp .task_detail {
    background-color: #bcbcbc !important;
    color: #000 !important;
    font-weight: bold !important;
}
.weekly_task .weekly_checkbox_wrap {
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    padding: 2px 0 0 0;
    -webkit-user-select: none;
    user-select: none;
    /* ::before の丸は width22 + border3×2 で実寸約28px。絶対配置のため幅を確保しないとはみ出す */
    min-width: 28px;
    width: 28px;
}
.weekly_task .weekly_checkbox_wrap .checkbox-p {
    padding-top: 0;
    padding-left: 28px;
    min-height: 22px;
    margin: 0;
    box-sizing: border-box;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_card_main {
    flex: 1;
    min-width: 0;
    letter-spacing: normal;
}
/* 週間カード: 絵文字（拡張 Unicode）が欠けないようフォールバック。word-break:break-word は合成絵文字の表示を乱すことがある */
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_story_heading,
.weekly_task .daytask_list ul li.weekly-drag-task .task_detail {
    font-family: var(--taskmagic-font-base);
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_story_heading {
    margin: 0 0 3px 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #c2185b;
    word-break: normal;
    overflow-wrap: break-word;
}
.weekly_task .daytask_list ul li.weekly-drag-task .task_detail {
    background: transparent;
    padding: 0 0 4px 0;
    border-radius: 0;
    margin: 0 0 2px 0;
    color: #000;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}
.weekly_task .daytask_list ul li.weekly-drag-task .task_detail:has(+ .weekly_task_memo),
.weekly-drag-task .task_detail:has(+ .weekly_task_memo) {
    padding-bottom: 2px;
    margin-bottom: 1px;
}
/* 週間カード: メモ（タスク名より 2px 小さく・通常字・ダークグレー／タスク名の下・カテゴリの上） */
.weekly-drag-task .weekly_task_memo {
    margin: 0 0 4px 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.22;
    font-weight: 400;
    color: #4a5568;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    letter-spacing: normal;
    font-family: var(--taskmagic-font-base);
}
.weekly_task .daytask_list ul li.weekly-drag-task.comp .weekly_task_memo {
    color: #383838;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: baseline;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.25;
    color: #8a939d;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due {
    margin-left: auto;
    display: inline-block;
    text-align: right;
    font-size: 11px;
    line-height: 1.25;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-today {
    color: #f97316;
    font-weight: 700;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-overdue {
    color: #dc2626;
    font-weight: 700;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-tomorrow {
    color: #0284c7;
    font-weight: 500;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-future {
    color: #6b7280;
    font-weight: 400;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-none {
    color: #9ca3af;
    font-weight: 400;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_task_due.is-state {
    color: #9ca3af;
    font-weight: 400;
}
.weekly_task .daytask_list ul li.weekly-drag-task.comp .weekly_task_meta .weekly_task_due {
    color: #9ca3af;
    font-weight: 400;
}
/* 週間: 確認中・依頼中レーン（週の表示範囲外のタスクも含む） */
.weekly_progress_lane {
    clear: both;
    max-width: 100%;
    margin: 24px 0 16px 0;
    padding: 14px 16px 18px;
    box-sizing: border-box;
    background: #f4f6f9;
    border: 1px solid #dde2e9;
    border-radius: 8px;
}
.weekly_progress_lane_head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dde2e9;
}
.weekly_progress_lane_title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.weekly_progress_lane_desc {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.45;
}
.weekly_progress_lane_sub {
    margin: 0 0 20px 0;
}
.weekly_progress_lane_sub:last-child {
    margin-bottom: 0;
}
.weekly_progress_lane_subtitle {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.weekly_progress_lane .weekly_progress_lane_tasklist {
    width: 100%;
    display: block;
    vertical-align: top;
}
.weekly_progress_lane .weekly_progress_lane_tasklist table {
    table-layout: auto;
}
.weekly_progress_lane .weekly_progress_checkbox_td {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}
.weekly_progress_lane .weekly_progress_menutd {
    width: 48px;
    text-align: center;
    vertical-align: middle;
    position: relative;
}
ul.weekly-progress-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}
.weekly-progress-task-list > li.weekly-drag-task.weekly-progress-lane-item {
    flex: 1 1 240px;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 6px;
}
.weekly_progress_lane_meta {
    margin: 0 0 4px 0;
    font-size: 11px;
    line-height: 1.35;
    color: #666;
}
.weekly_progress_lane_badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.weekly_progress_lane_badge.is-awaiting {
    background: #e65100;
}
.weekly_progress_lane_badge.is-staff {
    background: #1565c0;
}
.weekly_progress_lane_badge.is-billing {
    background: #7b1fa2;
}
.weekly_progress_lane_date {
    font-weight: 600;
    color: #444;
}
.weekly_progress_lane_empty {
    list-style: none;
    margin: 0;
    padding: 12px;
    color: #888;
    font-size: 13px;
    flex: 1 1 100%;
}
.weekly_progress_lane .task_detail,
.weekly_progress_lane .weekly_task_memo {
    white-space: pre-wrap;
}
/* 週間下部: Inbox（日付なし）と確認中・依頼中を 50/50・最大幅 1800px */
.weekly_board_bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 1800px;
    margin: 24px auto 20px;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 16px;
    align-items: flex-start;
    clear: both;
}
.weekly_board_bottom__col {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}
.weekly_board_bottom .inbox_weekly {
    letter-spacing: normal;
    margin-top: 0;
}
.weekly_board_bottom .inbox_weekly_tasklist {
    width: 100%;
    display: block;
    margin-right: 0;
}
.weekly_board_bottom__col--progress.weekly_progress_lane {
    margin-top: 0;
}
.weekly_board_bottom__col--progress .weekly_progress_lane_sub {
    margin: 0 0 18px 0;
}
.weekly_board_bottom__col--progress .weekly_progress_lane_sub:last-child {
    margin-bottom: 0;
}
/* カテゴリ: 角丸バッジ → タップでカスタム浮遊メニュー（ネイティブ select は使わない） */
.weekly_category_menu_layer {
    background: #fff;
    border: 1px solid #dde2e9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    max-height: min(60vh, 340px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 6px;
    box-sizing: border-box;
}
button.weekly_category_face {
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    text-align: center;
}
.weekly_category_menu_item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 2px 0;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--taskmagic-font-base);
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.weekly_category_menu_item:last-child {
    margin-bottom: 0;
}
.weekly_category_menu_item.is-current {
    font-weight: 800;
}
.weekly_category_menu_item:focus,
.weekly_category_menu_item:focus-visible {
    outline: none;
    box-shadow: none;
}
.weekly_task .daytask_list ul li.weekly-drag-task .weekly_task_meta .weekly_category_badge {
    display: inline-block;
    max-width: 220px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    padding: 3px 10px;
    border-radius: 13px;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
    word-break: normal;
    overflow-wrap: anywhere;
    font-family: var(--taskmagic-font-base);
}
.inbox_weekly_tasklist td .weekly_category_badge {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    padding: 3px 10px;
    border-radius: 13px;
    text-align: center;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: anywhere;
    font-family: var(--taskmagic-font-base);
}
.weekly_task .daytask_list ul {
    background: #eef1f5;
    padding: 10px 8px;
    border-left: 1px solid #dde2e9;
    border-right: 1px solid #dde2e9;
    border-bottom: 1px solid #dde2e9;
    letter-spacing: normal;
}
.weekly_task .daytask_list ul.match {
    letter-spacing: normal;
}
.weekly_task .daytask_list.today ul {
    background: #eef1f5;
    padding: 10px 8px;
}
.inbox_weekly {
    letter-spacing: -40rem;
    margin-top:30px;
}
.inbox_weekly_tasklist {
    letter-spacing: normal;
    width: 49%;
    display: inline-block;
}
.inbox_weekly_tasklist:first-child {
    margin-right: 30px;
}
.inbox_weekly_tasklist select {
    margin-bottom: 10px;
}
.inbox_weekly_tasklist th {
    background: #4d606f;
    color: #fff;
    border-color: #4d606f;
    font-size: 13px;
    padding: 8px 4px;
    font-weight: 600;
}
.inbox_weekly_tasklist table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border: 1px solid #dde2e9;
}
.inbox_weekly_tasklist td {
    border: 1px solid #e8ecf1;
    padding: 6px 8px;
    font-size: 12px;
    color: #333;
    letter-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
    font-family: var(--taskmagic-font-base);
}
.inbox_weekly_tasklist tr.weekly-inbox-row--overdue td {
    background-color: #ffebee;
}
.inbox_weekly_tasklist td.weekly_inbox_kigen_td--overdue {
    color: #c62828;
    font-weight: 700;
}
.inbox_weekly_tasklist .weekly_inbox_menutd {
    width: 48px;
    text-align: center;
    vertical-align: middle;
    position: relative;
}
#overlay {
    position: fixed;
    display: none;
    color: red;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 2;
    cursor: pointer;
    text-align: center;
}
.simply_master_area{
    margin-top:10px;
    float: left;
}

/* カテゴリマスタ: ドラッグ並べ替え */
.master_list .category_master_table #category_sort_body .category_drag_handle {
    width: 32px;
    text-align: center;
    vertical-align: middle;
    cursor: grab;
    color: #8a9aa8;
    -webkit-user-select: none;
    user-select: none;
}
.master_list .category_master_table #category_sort_body .category_drag_handle:active {
    cursor: grabbing;
}
.master_list .category_master_table thead .category_drag_th {
    width: 32px;
}
.master_list .category_master_table thead .category_main_th {
    width: 4.5em;
    min-width: 4.5em;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}
.master_list .category_master_table .category_main_cell {
    width: 2.5em;
    min-width: 2.5em;
    text-align: center;
    vertical-align: middle;
}
.master_list .category_master_table .category_main_check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}
.master_list .category_master_table .category_main_checkbox {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    cursor: pointer;
}
.master_list .category_master_table #category_sort_body > tr.ui-sortable-helper {
    display: table-row;
    background-color: #f4f7f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.master_list .category_master_table .category-sort-placeholder > td {
    background: #e8f4f6;
    border: 1px dashed #3fbbc2;
    height: 2.8em;
}

/* カテゴリマスタ: カラーはチップ＋パネル（select の option 色はブラウザ依存のため） */
.master_list .category_master_table .category_color_cell {
    position: relative;
    vertical-align: middle;
    min-width: 140px;
}
.master_list .category_master_table .category_color_picker {
    position: relative;
}
.master_list .category_master_table .category_color_picker_toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    box-sizing: border-box;
}
.master_list .category_master_table .category_color_picker_toggle .category_color_picker_swatch {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}
.master_list .category_master_table .category_color_picker_toggle .category_color_picker_label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.master_list .category_master_table .category_color_picker_panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 240px;
    max-width: 320px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    z-index: 100;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
}
.master_list .category_master_table .category_color_picker_panel.is-open {
    display: flex;
}
.master_list .category_master_table .category_color_chip {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    margin: 0;
    border: none;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.25;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.master_list .category_master_table .category_color_chip--unset {
    background-color: #e6e9ef !important;
    color: #5c6575 !important;
}
.master_list .category_master_table .category_color_chip.is-current {
    box-shadow: 0 0 0 2px #3fbbc2, inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.master_list .category_master_table .category_color_chip:hover {
    filter: brightness(0.97);
}

/* ストーリー管理: プロジェクト情報のカラー（カテゴリマスタと同じチップUI） */
.project_information .story_project_color_td {
    position: relative;
    vertical-align: middle;
    min-width: 140px;
}
.project_information .category_color_picker {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 56px);
}
.project_information .category_color_picker_toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    box-sizing: border-box;
}
.project_information .category_color_picker_toggle .category_color_picker_swatch {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}
.project_information .category_color_picker_toggle .category_color_picker_label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project_information .category_color_picker_panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 240px;
    max-width: 320px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    z-index: 100;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
}
.project_information .category_color_picker_panel.is-open {
    display: flex;
}
.project_information .category_color_chip {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    margin: 0;
    border: none;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.25;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.project_information .category_color_chip--unset {
    background-color: #e6e9ef !important;
    color: #5c6575 !important;
}
.project_information .category_color_chip.is-current {
    box-shadow: 0 0 0 2px #3fbbc2, inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.project_information .category_color_chip:hover {
    filter: brightness(0.97);
}

/* カラーマスタ: ドラッグ並べ替え */
.master_list .color_master_table #color_sort_body .color_drag_handle {
    width: 32px;
    text-align: center;
    vertical-align: middle;
    cursor: grab;
    color: #8a9aa8;
    -webkit-user-select: none;
    user-select: none;
}
.master_list .color_master_table #color_sort_body .color_drag_handle:active {
    cursor: grabbing;
}
.master_list .color_master_table thead .color_drag_th {
    width: 32px;
}
.master_list .color_master_table #color_sort_body > tr.ui-sortable-helper {
    display: table-row;
    background-color: #f4f7f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.master_list .color_master_table .color-sort-placeholder > td {
    background: #e8f4f6;
    border: 1px dashed #3fbbc2;
    height: 2.8em;
}

.color_master_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.color_master_toolbar .color_seed_palette_btn {
    margin-left: 4px;
    padding: 8px 14px;
    font-size: 13px;
    background: #3fbbc2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.color_master_toolbar .color_seed_palette_btn:hover {
    background: #359aa0;
}

.master_list input[type="number"].sort_no {
    width: 30px;
    padding: 6px;
}
.master_list table th,
.master_list table td {
    padding: 6px;
}
.master_list table th,
.master_list table td {
}

.master_list table th,
.master_list table th {
    padding: 6px 6px 6px 0px;
    background: #3fbbc2;
    color: #fff;
    border-width: 1px 0px; /* 上下だけ引く */
}
.master_list table tr {
    border-left: solid 4px #3fbbc2;
    border-right: solid 1px #dddddd;
}
.master_list input[type="text"].category_name {
    font-size: 14px;
    font-weight: bold;
    width: 97%;
    border: 0px;
    background:none;
    min-width: 20px;
    text-align: left;
    padding: 6px;
    z-index: 5;
}
.master_list input[type="text"].category_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.master_list input[type="text"].sort_key {
    width: 30px;
    padding: 6px;
    text-align: center;
    font-size: 14px;
}
.master_list input[type="text"].section_name {
    font-size: 14px;
    font-weight: normal;
    width: 97%;
    border: 0px;
    background:none;
    min-width: 20px;
    text-align: left;
    padding: 6px;
    z-index: 5;
    color: #333;
}
.master_list input[type="text"].section_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.master_list select {
    padding-right: 20px;
}
.master_list input[type="text"].color_name {
    font-size: 14px;
    font-weight: bold;
    width: 97%;
    border: 0px;
    background:none;
    min-width: 20px;
    text-align: left;
    padding: 6px;
    z-index: 5;
}
.master_list input[type="text"].color_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.master_list input[type="text"].color_code {
    width: 90px;
    padding: 6px;
    font-size: 14px;
    color: #000000;
}
.master_list input[type="text"].text_color {
    width: 90px;
    padding: 6px;
    border-radius: 13px;
    border:0px solid;
    font-weight: bold;
    font-size: 12px;
}

.btn_area .setting{
    display: inline-block;

}

.setting  .menu > li.menu__single {
    position: relative;
    z-index:10;
}
.setting li.menu__single ul.menu__second-level {
    background: #7e6bc4;
    color: #fff;
}
.setting ul.menu__second-level li {
    border-top: 1px solid #6666cc;
}

.setting ul.menu__second-level > li a{
    color: #fff;
}
.setting ul.menu__second-level > li a:hover{
    color: gold;
}

.task_project_list{
    width: 65%;
    float: right;
}

.project_list{
    width: 33%;
    background-color: #fff;
    float: left;
}

.project_list .simplypjt_area{
    margin-top: 8px;
    margin-left: 5px;
}

.project_list .simplypjt_area table{
}
.project_list .simplypjt_area table tr{
    border: 0px;
    padding: 0px;
    margin: 0px;
}
.project_list .simplypjt_area table td{
    border: 0px;
    padding: 0px;
    margin: 0px;
}
.project_list .simplypjt_area .pjt_sadd_btn {
    display: inline-block;
    text-align: center;
    margin-top: 0px;
    margin-right: 0px;
    padding-left: 13px;
    padding-right: 11px;
    font-size: 17px;
    background-color: #12999f;
    border-radius: 21px;
    margin-bottom: 0px;
}
.project_list .simplypjt_area #simply_pjt_name{
    padding: 8px;
    font-size: 16px;
    width:87%;
    min-width: 50px;
    margin-right: 5px;

}
.pjttree_area{
    width: 90%;
    padding: 15px 6px 6px 15px;
    overflow: hidden;
}
ol.project_tree,
ol.project_tree ol{
     counter-reset: list;
     list-style: none;
     padding: 0;
     width:100%;
    box-sizing: border-box;
 }
ol.project_tree ol{
    padding: 0 0 0 25px;
    width:100%;
    box-sizing: border-box;

}

.project_tree a{
    font: 13px/2.0 Avenir Next,Verdana,"ヒラギノ角ゴ Pro W3",Hiragino Kaku Gothic Pro,"メイリオ",Meiryo,"游ゴシック",Yu Gothic,Osaka,sans-serif;
    display: inline-block;
    text-decoration: none;
    padding: 0px 3px 0px 0px;
    margin: 4px 0 4px 0px;
    background: #f1f8ff;
    color: #333;
    font-weight: bold;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
    width: 100%;
    border-radius: 14px;
    line-height: 25px;
}
.project_tree a.level0 {
    background: #E4EAF3;
}

.project_tree a:hover{
    background: #ffd9d3;
}
.project_tree a:hover:after{
    left: -6px;
    border-left-color: #5c9ee7;
}

.project_tree span.count{
    display: inline-block;
    font: 12px/2.0 Avenir Next,Verdana,"ヒラギノ角ゴ Pro W3",Hiragino Kaku Gothic Pro,"メイリオ",Meiryo,"游ゴシック",Yu Gothic,Osaka,sans-serif;
    font-weight: bold;
    content: counter(list);
    counter-increment: list;
    height: 30px;
    width: 30px;
    background: #5c9ee7;
    line-height: 30px;
    text-align: center;
    margin-right: 5px;
    font-weight: bold;
    color: #fff;
    border-radius: 15px;
}
.project_tree span.project_name {
    display: inline-block;
    padding-top: 3px;

}
.project_information{
    width: 65%;
    float: right;
    margin-bottom: 7px;
    background-color: #fff;
    border: solid 1px #dddddd;
}
.project_information table{
    width: 100%;
    margin: 8px 8px 8px 8px;
    border-left: solid 4px #3fbbc2;
}
.project_information table tr{
    border: 0px;
    padding: 0px;
    margin: 0px;
}
.project_information table td{
    border: 0px;
    padding: 6px;
    margin: 0px;
}
.project_information input[type="text"].project_name {
    font-size: 20px;
    font-weight: bold;
    color: #ff367f;
    width: 97%;
    margin-right: 5px;
    text-align: left;
    border: 0px;
    background: none;
    padding-left: 6px;
    margin-top: 1px;
    z-index: 5;
}
.project_information input[type="text"].project_name:hover {
    border: 1px solid #b4b3b3;
    background-color: #fff;
}
.project_information table td.desctd{
    font-size: 12px;
    text-align: left;
    padding: 6px 14px;
}
.project_information textarea.description {
    width: 100%;
    padding: 6px;
    font-size:14px;
    border: 1px solid #dddddd;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}
.project_information textarea.description::placeholder {
    color:#aaa;
}
.project_information input[type="text"].short_name {
    font-size: 14px;
    font-weight: bold;
    color: #ff367f;
    width: 90%;
    margin-right: 5px;
    text-align: left;
    border: 1px solid #dddddd;
    background: none;
    padding: 6px;
    margin-top: 1px;
}
.project_information table td.cleartd{
    font-size: 12px;
    text-align: left;
    padding: 6px;
}
.project_information table td.snametd{
    font-size: 12px;
    width: 25%;
    text-align: left;
}
.project_information table td.sortnotd{
    font-size: 12px;
    width: 15%;
    text-align: left;
}
.project_information input[type="text"].sort_no {
    font-size: 14px;
    color: #333;
    width: 70%;
    margin-right: 5px;
    text-align: left;
    border: 1px solid #dddddd;
    background: none;
    padding: 6px;
    margin-top: 1px;
    border-radius: 0px;
}
.project_information table td.parenttd{
    font-size: 12px;
    width: 40%;
    text-align: left;
    padding-left: 12px;
}
.project_information table td.colortd{
    width: 40%;
    text-align: left;
}
.project_information textarea.clear {
    width: 95%;
    padding: 6px;
    font-size:14px;
    border: 1px solid #dddddd;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}
.project_information textarea.clear::placeholder {
    color:#aaa;
}
.project_information select.color_no {
    float: left;
}
.project_information a.trash {
    float: right;
    display: block;
    font-size: 20px;
    margin:5px 15px 0px 0px;
}
.project_taskcontrol{
    width: 65%;
    float: right;
    margin-bottom: 0px;
}

.project_taskcontrol .simplytask_area {
    width: 100%;
    max-width:500px;
    min-width: 50px;
}
.project_taskcontrol .simplytask_area #simply_task_name {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    max-width:400px;
    min-width: 50px;
    margin-right: 10px;
}
.project_taskcontrol .calendar_area {
    padding-top: 5px;
    font-size: 12px;
}
.project_information input[type="text"].project0 {
}
.project_information table td.project0{
    font-size: 20px;
    font-weight: bold;
    color: #000;
    width: 97%;
    text-align: left;
    padding-left: 6px;
}

/* タスクモーダル: 進行状態（チェックは 80% 幅ルールの対象外） */
.modal .inner td.task-progress-state-cell {
    text-align: left;
    vertical-align: middle;
}
.modal .inner td.task-progress-state-cell .task-progress-state {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    max-width: 100%;
}
@media (max-width: 520px) {
    .modal .inner td.task-progress-state-cell .task-progress-state {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}
.modal .inner td.task-progress-state-cell .task-progress-state__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.5rem 0.35rem 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}
.modal .inner td.task-progress-state-cell .task-progress-state__item:hover {
    background-color: #f0f9fa;
}
.modal .inner td.task-progress-state-cell .task-progress-state__item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    max-width: none;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    vertical-align: middle;
}
.modal .inner td.task-progress-state-cell .task-progress-state__item span {
    flex: 0 1 auto;
    font-weight: bold;
}
.modal .inner td.task-progress-state-cell .task-progress-state__item--awaiting span {
    color: #6a1b9a;
}
.modal .inner td.task-progress-state-cell .task-progress-state__item--staff span {
    color: #5d4037;
}

/* 週間クエスト: 詳細モーダル「完了」チェック（ネイティブ checkbox。base の .checkbox は使わない） */
.modal .inner label.weekly-modal-status-done {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.25rem 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    user-select: none;
    -webkit-user-select: none;
}
.modal .inner label.weekly-modal-status-done input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    max-width: none;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    vertical-align: middle;
}
.modal .inner label.weekly-modal-status-done span {
    color: #333;
}