/* Business Message Container */
.content-wrap[data-astro-cid-k5cqbmgp].business-message {
    padding-top: 15px;
    padding-bottom: 0;
    position: relative;
}

.shop.business {
    color: #000;
    background-color: #fff;
}

.shop.business  .relation-buttons {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    gap: 10px;
}

.shop.business .relation-buttons button {
    margin: 0;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    background-color: #ff5a53;
    border-color: #ff5a53;
    color: #fff;
    font-weight: 500;
    height: 40px;
    width: 100%;
}

.shop.business .relation-buttons button:disabled {
    cursor: not-allowed;
    background-color: #F6F7FB;
    border-color: #F6F7FB;
    color: #C5CAD4;
}

.shop.business .relation-buttons button.spot-detail {
    background-color: #FE824C;
    border-color: #FE824C;
}


/* Image Share Button in Modal */
.image-share-button {
    margin: 10px auto;
    border-radius: 20px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 15px; /* 左右のパディングを追加 */
    padding-right: 15px; /* 左右のパディングを追加 */
    font-size: 12px;
    cursor: pointer;
    background-color: #ff5a53;
    border: 1px solid #ff5a53;
    color: #fff;
    font-weight: 500;
    height: 40px;
    width: auto;
    display: block;
}

/* Shop Detail Info */
.business-message .shop-detail__info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 60px;
    justify-content: space-between;
}

.business-message .shop-detail__info-access {
    margin: 0;
    line-height: 1.4;
    align-self: flex-start;
}

.business-message.shop-list .shop-detail__info {
    height: auto;
}

/* Message Block Button */
.message-block-btn {
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    background-color: #00BCD4;
    border-color: #00BCD4;
    color: #fff;
    transition: all 0.3s ease;
}

.message-block-btn.blocked {
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #666;
}

.business-message .shop-detail__info .message-block-btn {
    align-self: flex-end;
    margin: 0;
}

/* Relation Status */
.business-message .shop-detail__info .relation-buttons {
    align-self: flex-end;
    margin: 0;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    background-color: #ff5a53;
    border-color: #ff5a53;
    color: #fff;
    height: 32px;
}


/* Messages */
.business-message .detail ul.messages li.me .message-body {
    background-color: #00BCD4;
    color: #fff;
}


.business-message .detail ul.messages li .message-content  .pdf-file img {
    height: 30px;
    /*color: #fff;*/
}


.business-message .detail ul.messages li.me .message-body .content-item__txt-link {
    color: #dbfdff;
}

/* Unread Message Line */
.messages .unread-block {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.messages .unread-block .unread-message {
    display: inline-block;
    padding: 4px 12px;
    background-color: #999;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
}

.content-wrap[data-astro-cid-k5cqbmgp].business-message .detail {
    height: calc(100vh - 266px);
    padding: 0;
    overflow-y: scroll;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head {
    gap: 0;
    padding-inline: 20px;
    padding-bottom: 10px;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .shop-head {
    margin-bottom: 0;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .shop-detail__thumb {
    width: auto;
    height: auto;
    max-width: 90px;
    max-height: 60px;
    object-fit: contain;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .relation-buttons {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    gap: 10px;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .relation-buttons > button {
    border-radius: 15px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    background-color: #ff5a53;
    border-color: #ff5a53;
    color: #fff;
    height: 30px;
    width: 100%;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .relation-buttons > button.spot-detail {
    background-color: #FE824C;
    border-color: #FE824C;
}

.content-wrap[data-astro-cid-k5cqbmgp] .content-head .relation-buttons > button:disabled {
    cursor: not-allowed;
    background-color: #F6F7FB;
    border-color: #F6F7FB;
    color: #C5CAD4;
}

.business-message .detail .message-container {
    padding: 0 20px;
    padding-top: 20px;
    /* padding-bottom: 180px; */
}

.business-message .detail ul.messages {
    min-height: calc(100vh - 246px);
    padding-bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: scroll;
}

.business-message .detail ul.messages li {
    max-width: 100%;
    display: flex;
}

.business-message .detail ul.messages li.me {
    justify-content: flex-end;
}

.business-message .detail ul.messages li .message {
    display: flex;
    gap: 5px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 80%;
}

.business-message .detail ul.messages li .profile__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid #D0D0D0;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.business-message .detail ul.messages li .message-body {
    background-color: #f6f7fb;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Message Date */
.business-message .detail ul.messages li .message-date {
    font-size: 10px;
    color: #c5cad4;
    margin-top: 2px;
}

/* Message Content Layout */
.business-message .detail ul.messages li.me .message .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.business-message .detail ul.messages li .message .message-content .post__thumb {
    max-width: 200px;
    z-index: 0;
}

.business-message .detail ul.messages li .message .message-content .post__thumb img {
    max-height: 200px;
    object-fit: contain; /* アスペクト比を維持 */
}

.business-message .detail ul.messages li.other .message .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.business-message .message-form__block {
    position: absolute;
    bottom: 130px;
    left: 0;
    width: 100%;
    height: 60px;
}

.business-message .message-form__attach-block {
    padding: 10px 20px;
    padding-bottom: 100px;
    background: white;
}

.business-message .message-form__attach-block .img-up__area {
    margin: 0;
    border-bottom: 0;
}


.business-message .message-form__attach-block .preview {
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.business-message .message-form__attach-block .preview.image-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 80px;
    padding: 5px 0;
}

.business-message .message-form__attach-block .preview.image-preview .image-container {
    max-width: 70%; /* 画像コンテナの最大幅を制限 */
    height: 100%;
    display: flex;
    align-items: center;
}

.business-message .message-form__attach-block .preview.image-preview .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* アスペクト比を維持 */
}

.business-message .message-form__attach-block .preview .preview-close {
    width: 130px;
    flex-shrink: 0; /* ボタンが縮まないようにする */
}

.business-message .message-form__attach-block .preview.pdf-preview {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 要素を両端に配置 */
    gap: 10px;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 50px; /* 高さを小さく */
}

.business-message .message-form__attach-block .preview.pdf-preview .pdf-file-info {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden; /* はみ出し防止 */
}

.business-message .message-form__attach-block .preview.pdf-preview .pdf-icon {
    width: 24px; /* アイコンを小さく */
    height: auto;
    flex-shrink: 0; /* 縮まないように */
}

.business-message .message-form__attach-block .preview.pdf-preview .filename {
    font-size: 12px; /* フォントを小さく */
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.business-message .message-form {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.business-message .message-form textarea {
    background-color: #f6f7fb;
    border: 1px solid #E1E4E9;
    border-radius: 15px;
    padding: 13px;
    height: 50px;
    font-size: 16px;
    flex-grow: 1;
}

.business-message .message-form .message-form__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #ff5a53;
}

.business-message .message-form .message-form__btn:disabled {
    background-color: #ccc;
}

.relations[data-astro-cid-hsrvryrm] .post[data-astro-cid-hsrvryrm] {
    gap: 0px;
}

.relations[data-astro-cid-hsrvryrm] .swiper-slide .last-checkin {
    margin-top: 5px;
    font-size: 13px;
    color: #7D8DA6;
}

.relations[data-astro-cid-hsrvryrm] .swiper-slide .post__ttl {
    margin-top: 9px;
}
.relations[data-astro-cid-hsrvryrm] .post button {
    border-radius: 15px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    background-color: #ff5a53;
    border-color: #ff5a53;
    color: #fff;
    height: 30px;
    align-items: center;
    margin-top: 10px;
}

.menu__item[data-astro-cid-mvakmvft].menu__item--relations {
    width: 100%;
}