﻿.message-background {
    background-color: #f3f1ed;
    padding: 15px;
    margin-bottom: 30px;
}
.message-box {
    border-top: solid 10px #dc98b8;
    display: flex;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22); */
    margin: 0 0 15px 0;
}
.msg-container {
    padding-right: 20px;
    padding-left: 20px;
}
.msg-read-more {
    cursor: pointer;
    color: #26466d;
    text-decoration: underline;
}
@media screen and (max-width: 767px) {
    .message-background {
        padding: 10px;
        /*margin: 0 var(--bs-gutter-x, -0.75rem);*/
        margin-bottom: 30px;
    }
    .message-box {
        margin: 0 0 10px 0;
    }
    .msg-container {
        padding-right: calc(var(--bs-gutter-x)* .5);
        padding-left: calc(var(--bs-gutter-x)* .5);
    }
    .msg-read-more {
        display: block;
        border: 1px solid rgba(0, 0, 0, 0.2);
        text-align: center;
        margin: 15px 30px;
        text-decoration:none;
    }
}

.msg-title {
    margin: 10px 0 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    line-height: 32px;
}

.msg-title span {
    font-size:1.1rem;
    font-weight: 500;
    color: #26466d;
}
.msg-text {
    margin: 5px 0 20px;
    font-size: 1rem;
    line-height: 32px;
    color: #333;
}
.msg-text p {
    /* 
    display: -webkit-box;
    -webkit-line-clamp: 1; 表示する行数
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; はみ出したテキストを...で省略
    white-space: normal;  改行や空白を正しく扱う 
     */
    margin: 0;
}
.already-read {
    color: #26466d !important;
    text-align: center;
    display: inline-block;
    padding: 5px 10px;
    line-height: 0.75;
    border: solid 1px #26466d;
    border-radius: 5px;
    margin-left: 10px;
    /*font-size: 1.2em !important;*/
}

.not-read-yet {
    background: linear-gradient(-225deg, #6fb3eb 0%, #4294ff 100%);
    color: #FFF !important;
    text-align: center;
    display: inline-block;
    padding: 5px 10px;
    line-height: 0.75;
    /*font-size: 1.2em !important;*/
    border-radius: 5px;
    margin-left: 10px;
}
span.not-read-yet{
    font-size:1rem;
}
