/* 必要最低限のリセット 
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}
*/
/* リストスタイルをリセット 
ul,
ol {
    list-style: none;
}
*/
/* ボックスサイジングの統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ベースラインのフォントスタイルをリセット */
body {
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

/* アンカーのリセット */
a {
    text-decoration: none;
    color: inherit;
}

/* オリジナルクラス名の変更 */
.disp-flex {
    display: flex;
    align-items: flex-start;
    /* flex-direction: column; 小さい画面では縦方向に並べる */
    flex-direction: row;
    /* 横方向に並べる */
    flex-wrap: nowrap;
    /* 必要に応じて要素が折り返されるのを防ぐ */

}

@media (min-width: 769px) {
    .custom-frame {
        display: flex;
    }

    .custom-side-bar {
        flex: 1;
        /* 大きな画面ではサイドバーの幅を固定 */
    }

    .custom-content-area {
        flex: 3;
        /* 大きな画面ではコンテンツエリアの幅を広く */
    }
}

.custom-frame {
    display: flex;
}

.custom-side-bar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background-color: #495057;
    color: #fff;
    height: 100vh;
    min-width: 280px;
    overflow: auto;
}

.custom-side-bar-title {
    padding-left: 8px;
    padding-right: 8px;
}

.custom-side-bar-inner-section {
    margin-top: 36px;
    margin-bottom: 36px;
}

.custom-side-bar-inner-section-title {
    padding-left: 8px;
    padding-right: 8px;
}

.custom-side-bar-inner-section-list {
    padding-left: 8px;
    padding-right: 8px;
    color: #9898b1;
}

.custom-side-bar-inner-section-list:hover {
    cursor: pointer;
    opacity: 0.5;
}

.custom-side-bar-inner-section-list a {
    margin-left: 8px;
}

.custom-active-sign {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 2px auto;
}

.custom-new-message-to-you-sign {
    display: inline-block !important;
    border-radius: 16px;
    min-width: 36px;
    height: auto;
    text-align: center;
    font-weight: bold;
    margin-left: 4px;
}

.custom-bgc-black {
    background: #9898b1;
}

.custom-bgc-green {
    background: rgb(71, 235, 71);
}

.custom-bgc-pink {
    background: rgb(255, 0, 47);
}

.custom-float-right {
    float: right;
}

.custom-copyright {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 8px;
    position: fixed;
    bottom: 0px;
}

.custom-content-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background-color: white;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid rgb(197, 185, 185);
}

.custom-content-area {
    width: 100%;
    padding-bottom: 64px;
}

.custom-input-area {
    background-color: white;
    position: fixed;
    bottom: 0;
    width: calc(100% - 40%);
    /* min-width:800px; */
    /* height:64px; */
    height: auto;
    padding: 10px;
    box-sizing: border-box;
}

.custom-input-frame {
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    /* 横に並べる */
    flex-direction: row;
    /* 横並びの指定 */
    align-items: center;
    /* 縦方向の中央揃え */
}

@media (max-width: 768px) {

    /* .custom-input-frame {
        flex-direction: column; 
    } */
    /* 小さい画面では縦方向に並べる */
    .custom-input-chat-text-area,
    .custom-chat-submit-btn-area {
        width: 100%;
        /* 小さい画面では幅を100%にする */
    }
}

.custom-input-chat-text-area {
    width: 85%;
}

.custom-chat-submit-btn-area {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-input-area textarea {
    width: 100%;
    height: 60px;
    /* 必要に応じて高さを調整 */
    border-color: #040450;
    border-radius: 4px;
    resize: none;
    /* ユーザーによるリサイズを無効化 */
}

.custom-input-area textarea:focus {
    border-color: #040450;
}

.custom-chat-send-btn {
    width: 100%;
    color: #040450;
    height: 42px;
    width: auto;
    border-color: #040450;
    background-color: #ffffff;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

.custom-chat-send-btn:hover {
    background-color: #040450;
    border-color: #040450;
    color: #FFF;
    cursor: pointer;
}

.custom-posted-chat-list {
    width: 100%;
    /* max-height: 400px; /* 必要に応じて適切な高さに設定 */
    overflow-y: auto;
    /* height: auto; */
}

.custom-posted-chat-frame {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
}

.custom-profile-img-frame {
    padding-top: 6px;
    margin-right: 6px;
    /* custom-profile-img-frame の右側に余白を設定 */

}

.custom-profile-img {
    width: 92px;
    height: 92px;
    border-radius: 4px;
}

.custom-posted-chat-content {
    margin-left: 8px;
    word-wrap: break-word;
    /* テキストを適切に折り返す */
}

.custom-new-message {
    color: white;
}

.custom-modal {
    display: none;
    height: 100vh;
    position: fixed;
    top: 0;
    width: 100%;
}

.custom-modal-bg {
    background: rgba(0, 0, 0, 0.8);
    height: 100vh;
    position: absolute;
    width: 100%;
}

.custom-modal-content {
    background: #fff;
    left: 50%;
    padding: 40px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 200px;
    min-height: auto;
    border-radius: 4px;
}

.custom-modal-textfield {
    width: 100%;
    height: 40px;
    border-color: #040450;
    border-radius: 4px;
}

.custom-modal-btn {
    width: 80px;
    color: #040450;
    height: 42px;
    border-color: #040450;
    background-color: #ffffff;
    border-radius: 4px;
    font-weight: bold;
}

.custom-modal-btn:hover {
    background-color: #040450;
    border-color: #040450;
    color: #FFF;
    cursor: pointer;
}

/* 特定のクラスをオーバーライド */
.container {
    padding-top: 1.5rem;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.justify-content-center
{
    padding-left: 20px;
}

#quoteMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#quoteMenu li {
    padding: 5px 10px;
    cursor: pointer;
}

#quoteMenu li:hover {
    background-color: #f0f0f0;
}

.sprite {
    background-image: url('/static/alphabet.jpg');
    background-repeat: no-repeat;
    width: 96px;
    /* 各文字の幅 */
    height: 96px;
    /* 各文字の高さ */
    display: inline-block;
    flex-shrink: 0;
}

/* 各文字の位置を指定 */
.letter-A {
    background-position: -8px -3px;
}

.letter-B {
    background-position: -124px -3px;
}

.letter-C {
    background-position: -240px -3px;
}

.letter-D {
    background-position: -356px -3px;
}

.letter-E {
    background-position: -472px -3px;
}

.letter-F {
    background-position: -588px -3px;
}

.letter-G {
    background-position: -700px -3px;
}


.letter-H {
    background-position: -8px -158px;
}

.letter-I {
    background-position: -124px -158px;
}

.letter-J {
    background-position: -240px -158px;
}

.letter-K {
    background-position: -356px -158px;
}

.letter-L {
    background-position: -472px -158px;
}

.letter-M {
    background-position: -588px -158px;
}

.letter-N {
    background-position: -704px -158px;
}


.letter-O {
    background-position: -12px -306px;
}

.letter-P {
    background-position: -126px -306px;
}

.letter-Q {
    background-position: -242px -306px;
}

.letter-R {
    background-position: -358px -306px;
}

.letter-S {
    background-position: -474px -306px;
}

.letter-T {
    background-position: -590px -306px;
}

.letter-U {
    background-position: -706px -306px;
}


.letter-V {
    background-position: -10px -455px;
}

.letter-W {
    background-position: -126px -455px;
}

.letter-X {
    background-position: -242px -455px;
}

.letter-Y {
    background-position: -358px -455px;
}

.letter-Z {
    background-position: -474px -455px;
}

/* 画面が768px以下のときに適用されるスタイル */
@media (max-width: 768px) {
    .custom-side-bar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .custom-content-area {
        width: 100%;
        margin-top: 20px;
    }

    .custom-input-area {
        width: 100%;
    }

    /* .custom-input-chat-text-area, .custom-chat-submit-btn-area {
      width: 100%;
      margin-top: 10px;
    } */

    .custom-chat-send-btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .custom-side-bar {
        display: none;
    }
    input {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .custom-side-bar {
        display: block;
    }
}
        /* モバイルでは非表示 */
/* @media (max-width: 768px) {
    .custom-side-bar {
        display: none;

    }
} */
        /* デスクトップでは表示 */
/* @media (min-width: 769px) {
    .custom-side-bar {
        display: block;

    }
} */

@media (min-width: 992px) {
    .custom-side-bar-inner-section.d-lg-none {
        /* display: none; */
        /* 大画面ではハンバーガーメニュー内のサイドバーを非表示にする */
    }
}