body {
    /* font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif; */
    font-family: "Work Sans","游ゴシック","Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
    color: #3F4254 ;
    line-height: 1.5;
}

p,h1,h2,h3,h4,h5,label {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inner {
    max-width: 1340px;
    /* max-width: 1800px; */
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* header */
.bg_header {
    background: #38373D;
    color:#c2c7d0;
}
#header {
    padding: 16px;
    display: flex;
    align-items: center;
}
#header_user a.dropdown-toggle {
    color:inherit;
}
#header_user a.dropdown-toggle:hover {
    color:#cfd2d8;
    text-decoration:none;
}
#header_user a.dropdown-item {
    color: #6c757d;
}
#header_user a.dropdown-item:hover {
    color: #16181b;
}
#header_user a.dropdown-item.active,
#header_user a.dropdown-item:active {
    background: #f8f9fa;
    color: #333;
}
.head_ttl {
    font-size: 1rem;
    font-weight: bold;
}

/* #nav .nav_fixed {
    max-width: none;
    z-index:100;
    top: 0;
    position: fixed;
    background: #fff;
    background: rgba(255,255,255,.7);
    transition: top 0.65s ease-in;
    -webkit-transition: top 0.65s ease-in;
    -moz-transition: top 0.65s ease-in;
}
*/

.footer {
    padding: 1rem 2rem;
}

/* =============================== */
/* 汎用 */

.narrow_down {
    
}
.narrow_down .active {
    color:#333333;
    cursor:text;
}
.narrow_down .active:hover {
    text-decoration:none;
}

/* bootstrap */
.table-striped tbody tr:nth-of-type(2n+1):not(.head) {
    background-color:rgba(5, 34, 145, 0.05);
}
.page-link-org {
    padding:0.3rem 0.6rem;
}

/* bg */
.bg_sub {
    background: #F4F4F4;
}

/* label */
.label {
    padding: 4px 16px;
    font-size: 14px;
    font-weight: bold;
    background: #f1f1f1;
    display: inline-block;
    text-align: center;
    border-radius: 3px;
}

.label_danger {
    background-color: rgba(253,57,122,.1);
    color: #fd397a;
}
.label_success {
    background-color: rgba(29,201,183,.1);
    color: #1dc9b7;
}
.label_warning {
    background-color: rgba(255,184,34,.1);
    color: #ffb822;
}
.label_primary {
    background-color: rgba(54,153,255,.1);
    color: #3699ff;
}
.label_info {
    background-color: rgba(54, 175, 255, 0.1);
    color: #36d0ff;
}

/* table */
.table_fixed {
    table-layout: fixed;
}
.table_fixed tr:nth-last-of-type(odd) {
    background: #fafafa;
}
.table_fixed th {
    background: #333;
    color: #fff;
    padding: 8px 6px;
    border: 1px solid #dee2e6;
    text-align: center;
}
.table_fixed th.week {
    background: #FFF;
    color: #333;
    padding: 2px 0px;
    font-weight:normal;
}
.table_fixed td {
    padding: 8px;
    border: 1px solid #dee2e6;
    height: 140px;
    vertical-align: top;
}

.table_fixed td:nth-of-type(even) {
    background: #f3f3f3;
}

/* std_tbl */
.std_tbl th,.std_tbl td {
    padding: 6px;
    border: 1px solid #dee2e6;
}

.std_tbl th {
    background: #f1f1f1;
}

/* table vatical-align-middle */
table.v_middle td {
    vertical-align: middle;
}

/* table */
.table {
    border-bottom: 1px solid #dee2e6;
}

/* form */
.modal input::placeholder {
    color:#A0A0A0;
}
.modal input::-ms-input-placeholder {
    color:#A0A0A0;
}

.box-read {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon_round {
    width:40px;
    height:40px;
    background-position: center center;
    background-size:cover;
    vertical-align: middle;
}

.news_image {
    /*
    max-width: 80%;
    height: auto;
    */
    object-fit: cover;
    height: 160px;
    width: 160px;
}

div.mask
{
    position:absolute;
    height:100%;
    width:100%;
    padding:0px;
    margin:0px;
    border-radius: 0px / 0px;
    top:0.0em;
    left:0.0em;
    z-index:1500;
}

/* ------------------------------ */
/* ナブ */
/* ------------------------------ */
/* 上　横並び */
.nav_box {
    /* background: #fff; */
    display: flex;
}

.nav_item a {
    display: block;
    padding: 0.2rem 1rem;
    color: #6c757d;
}

.nav_item.on > a {
     background: #F4F4F4;
    /* color: #fff; */
    color: #007bff;
    text-decoration: none;
}
.nav_item > a:hover {
    /* background: #F4F4F4; */
    /* color: #fff; */
    color: #007bff;
    text-decoration: none;
}

.nav_item .dropdown-item.active,
.nav_item .dropdown-item:active {
    background: #f8f9fa;
    color: #333;
}

/*  */

/* ------------------------------ */
/* ログイン
/* ------------------------------ */
#login_box {
    padding: 110px 130px;
    max-width: 560px;
    width: 100%;
}

.login_btn {
    width: 100%;
    padding: 12px 8px;
    color: #fff;
    /* background: rgb(1, 47, 145); */
    margin-top: 16px;
}

/* ------------------------------ */
/* マイページ
/* ------------------------------ */
.card_custom {
    border: none;
    /* display: flex;
    flex-direction: column;
    align-self: stretch; */
    box-shadow: 0px 0px 30px 0px rgba(82, 63, 105, 0.05);
    border-radius: 0.42rem;
}
.card_custom .card-header {
    background: #fff;
    border-radius: 0.42rem 0.42rem 0 0;
}
.card_custom .card-body {
}
.card_ttl {
    font-size: 20px;
    font-weight: bold;
    margin: 6px 6px 6px 0;
    /* letter-spacing: .8px; */
}

.custom_height {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.custom_height .table tr td,
.custom_height .table tr th {
    box-sizing:initial;
}

/* ------------------------------ */
/* sidebar
/* ------------------------------ */
#show-sidebar,
#close-sidebar {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#show-sidebar {
    /*position: relative;*/
    position: fixed;
    left: 0;
    top: 110px;
    border-radius: 0 4px 4px 0px;
    transition-delay: 0.2s;
    z-index:100;
}
.page-wrapper.toggled #show-sidebar {
    position: fixed;
    left: -100px;
}

.sidebar-wrapper #close-sidebar {
  cursor: pointer;
  font-size: 16px;
}

.sidebar-wrapper .sidebar-menu .badge-sonar {
    display: inline-block;
    background: #d86703;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    position: absolute;
    top: 5px;
    left: 55px;
}
.sidebar-wrapper .sidebar-menu .badge-sonar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border: 5px solid #d86703;
    opacity: 0;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    -webkit-animation: sonar 1.5s infinite;
    animation: sonar 1.5s infinite;
}

.sidebar-menu .sidebar-submenu label {
    color:#cfd2d8;
}

.sidebar-search .nav-tabs
{
    border-color: #5f5d67;
}
.sidebar-search .nav-tabs .nav-item a.active
{
    background-color: rgba(107, 105, 116, 0.5);
    border-color: #5f5d67;
    font-weight:bold;
}
.border-radius-on .sidebar-search .dropdown-menu input
{
    border-radius: 4px;
}

.sidebar-dropdown > .align-content-center > span.mr-2
{
    width:35px;
    height:35px;
}
.sidebar-dropdown > .align-content-center > span.mr-2 > div.icon_round
{
    width:35px;
    height:35px;
}

.sidebar-search .input-group .btn-outline-light
{
    border-color: #5f5d67;
}

.sidebar_active
{
    background-color:#545b62;
}
#sidebar .nav-item
{
    cursor:pointer;
}
a.search_btn:hover {
    color: #16181b;
    text-decoration: none;
}
a.search_btn:active {
    background: #f8f9fa;
    color: #333;
}

.sidebar-footer .disabled {
    pointer-events: none;
    opacity: 0.65;
}

/* ------------------------------ */
/* chat
/* ------------------------------ */
#chat_card {
    height:calc(100vh - 154px);
}
#chat_card .card_body_resize {
    height:calc(78vh - 154px);
    max-height:calc(78vh - 154px);
}
/* jquery ui resizable */
.ui-resizable-s {
    height:13px;
    bottom:-10px;
    opacity: 0.8;
}
.ui-resizable-s::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0px;
    right: 0px;
    width: 8px;
    height: 8px;
    margin: auto;
    border-top: solid 1px #CCC;
    border-right: solid 1px #CCC;
    transform: rotate(-45deg);
}
.ui-resizable-s.animeon::before {
    -webkit-animation: resize_move_up 1.0s ease-out infinite;
    animation: resize_move_up 1.0s ease-out infinite;
}
@keyframes resize_move_up {
    0%   {
        border-color: #555 #555 transparent transparent;
    }
    100% {
        transform: rotate(-45deg) translate(4px,-4px);
        opacity:0.1;
    }
}
.ui-resizable-s::after {
    content: '';
    position: absolute;
    /*
    right: 0;
    bottom: -7px;
    left: 0;
    width: 0px;
    height: 0px;
    margin: auto;
    border-style: solid;
    border-color: #DDD transparent transparent transparent;
    border-width: 8px 8px 0px 8px;
    */
    top: 3px;
    left: 0px;
    right: 0px;
    width: 8px;
    height: 8px;
    margin: auto;
    border-bottom: solid 1px #CCC;
    border-right: solid 1px #CCC;
    transform: rotate(45deg);
}
.ui-resizable-s.animeon::after {
    -webkit-animation: resize_move_down 1.0s ease-out infinite;
    animation: resize_move_down 1.0s ease-out infinite;
}
@keyframes resize_move_down {
    0%   {
        border-color: transparent #555 #555 transparent;
    }
    100% {
        transform: rotate(45deg) translate(4px,4px);
        opacity:0.1;
    }
}
#chat_card .card-body {
    overflow-y:auto;
    height:100%;
}
#chat_card .card-body .icon_round
{
    width:30px;
    height:30px;
}
#chat_card .card-footer
{
    height:100%;
}
#chat_card .card-footer textarea
{
    height:100%;
}

#chat_card .card-body .is_fixed {
    position: absolute;
    top: 0.5rem;
    z-index: 2;
    opacity: 60%;
}

/* 吹き出し本体 */
.balloon{
    position: relative;
    background-color:#F0F0F0;
    max-width:650px;
}
/* 色付きの半円 */
.balloon::before{
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: rotate(-45deg);
    left: -10px;
    top: 0px;
    border-left: 15px solid #F0F0F0;
    border-top: 15px solid #F0F0F0;
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
}
/* 白い半円 */
.balloon::after{
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: rotate(-45deg);
    left: -15px;
    top: -13px;
    border-left: 15px solid #ffffff;
    border-top: 15px solid #ffffff;
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.myballoon{
    position: relative;
    background-color:#45ad8c;
    max-width:650px;
}
/* 色付きの半円 */
.myballoon::before{
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: rotate(-45deg);
    right: -10px;
    top: 0px;
    border-left: 15px solid transparent;
    border-top: 15px solid transparent;
    border-right: 15px solid #45ad8c;
    border-bottom: 15px solid #45ad8c;
}
/* 白い半円 */
.myballoon::after{
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: rotate(-45deg);
    right: -15px;
    top: -13px;
    border-left: 15px solid transparent;
    border-top: 15px solid transparent;
    border-right: 15px solid #ffffff;
    border-bottom: 15px solid #ffffff;
}
.myballoon a{
    color:#ffef66;
}

.delballoon{
    position: relative;
    background-color:#90a2b2;
    max-width:650px;
}

.imgballoon{
    position: relative;
    max-width:540px;
}

.page-wrapper .card-body .chat_datetime,
.page-wrapper .card-body .chat_tag
{
   font-size: 0.8rem;
}

div.chat_mask::after
{
    position:absolute;
    content: "";
    display: block;
    height:calc(100% + 4px);
    width:calc(100% + 50px);
    padding:0px;
    margin:0px;
    border-radius: 0px / 0px;
    top:-4px;
    left:-25px;
    z-index:10;
    background-color:rgba(255, 181, 127, 0.30);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all  0.3s ease;
}
div.chat_mask {
    position: relative;
}

.wrapper {
    position: relative;
}
.matching_list {
    margin-bottom:2.0rem;
    min-height: 260px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0px 5px 10px 0px rgba(82, 63, 105, 0.07);
}
.history_list {
    margin-bottom:2.0rem;
    min-height: 120px;
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0px 5px 10px 0px rgba(82, 63, 105, 0.07);
}

/**fancyboxでのbootstrapの影響を除去**/
*[id^="fancybox"] {
    box-sizing: content-box;
}
*[class^="fancybox"] {
    box-sizing: content-box;
}

.message_emoji {
    height:300px;
}
.message_emoji.is-invalid .twemoji-textarea {
    border-color:#e3342f;
}

/* tooltip */
.tooltip-inner {
    max-width: 500px;
    background-color: var(--dark);
}
.tooltip.show {
}
.bs-tooltip-auto[x-placement^="top"] .arrow::before, .bs-tooltip-top .arrow::before {
    border-top-color: var(--dark);
}
.bs-tooltip-auto[x-placement^="bottom"] .arrow::before, .bs-tooltip-bottom .arrow::before {
    border-bottom-color: var(--dark);
}
.bs-tooltip-auto[x-placement^="right"] .arrow::before, .bs-tooltip-right .arrow::before {
    border-right-color: var(--dark);
}
.bs-tooltip-auto[x-placement^="left"] .arrow::before, .bs-tooltip-left .arrow::before {
    border-left-color: var(--dark);
}

.twemoji-icon-picker img {
    display:none;
}

.ekko-lightbox .modal-footer {
    justify-content: flex-start;
}

@media screen and (max-width: 1400px) {
    main {
        padding: 0 24px 24px;
    }
    .inner:not(.navbar) {
        padding: 0;
    }

    .card_custom {
        /* border-radius: 0; */
    }
}

@media screen and (max-width: 1199px) {
    .balloon{
        max-width:490px;
    }
    .myballoon{
        max-width:490px;
    }
}

@media screen and (min-width: 1026px) {

    /* popover */
    .popover {
        max-width: 500px;
    }
}

@media screen and (max-width: 1025px) {
}

@media screen and (max-width: 991px) {
}

@media screen and (max-width: 767px) {
    #login_box {
        padding: 16px 24px;
    }

    /* tooltip */
    .tooltip-inner {
        max-width: 200px;
    }
    
    #header {
        padding: 10px;
    }
    #chat_card {
        height:calc(100vh - 142px);
    }
    #chat_card .card_body_resize {
        height:calc(78vh - 142px);
        max-height:calc(78vh - 142px);
    }
}

@media screen and (max-width: 575px) {
    main {
        padding: 0 16px 16px;
    }
}

@media screen and (max-height: 667px) {
    #chat_card {
        height:calc(100vh - 134px);
    }
    #chat_card .card_body_resize {
        height:calc(78vh - 134px);
        max-height:calc(78vh - 134px);
    }
}
@media screen and (max-height: 556px) {
}
@media screen and (max-height: 494px) {
}

