.quick-action-form {
    margin: 20px 0;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 600px;
    margin: 5% auto 0px;
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    right: 0;
    left: 0;
    z-index: 999999;
}

.quick-action-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quick-action-form__title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.quick-action-form__body {
    display: flex;
    flex-direction: column;
}

.quick-action-form__reply {
    margin-bottom: 20px;
}

.reply__avatar img {
    border-radius: 50%;
    max-width: 50px;
    max-height: 50px;
}

.reply__content {
    margin-left: 10px;
}

.reply__header {
    display: flex;
    align-items: center;
}

.reply__author {
    font-weight: bold;
    margin-right: 10px;
}

.reply__date {
    color: #888;
    font-size: 14px;
}

.reply__text {
    margin-top: 10px;
}

.quick-action-form__textarea {
    width: 100%;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    resize: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.add-photo-btn {
    display: block;
    flex-shrink: 0;
    width: 100%;
    margin-top: 10px;
}

.add-photo-btn,
.quick-action-form__button {
    background-color: #1da1f2;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.add-photo-btn:hover,
.quick-action-form__button:hover {
    background-color: #0c87c9;
}

.quick-action-form__input-info {
    text-align: right;
}

.keeper-wall {
    z-index: 1100;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    position: fixed;
}

.pcd-w {
    z-index: 999999;
}


/*AA*/


/* 全体 */

.button {
    display: inline-block;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}


/* ダイアログ全体 */

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 99999999;
}


/* ダイアログの見出し */

.dialog__title {
    font-size: 24px;
    margin: 0 0 10px;
}


/* ダイアログの本文 */

.dialog__content {
    font-size: 16px;
    margin: 0 0 20px;
}


/* ダイアログのボタン群 */

.dialog-buttons {
    display: flex;
    justify-content: center;
}


/* ダイアログの「閉じる」ボタン */

.button--close {
    background-color: #ddd;
    color: #333;
    border-radius: 5px;
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
}


/* ダイアログの「キャンセル」ボタン */

.button--cancel {
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1101;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    0% {
        transform: translate(-50%, 100%);
    }
    100% {
        transform: translate(-50%, 0);
    }
}


/* BB*/

.image-field {
    display: flex;
    flex-wrap: wrap;
}

.image-field .thumbnail {
    width: 100px;
    height: 100px;
    margin: 10px;
    position: relative;
}

.image-field .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-field .thumbnail .cancel-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    display: none;
}

.image-field .thumbnail:hover .cancel-btn {
    display: block;
}


/*DD*/

.new-contents-button,
.old-contents-button {
    margin: 0 auto;
    margin-bottom: 0px;
    margin-bottom: 0px;
    background-color: #fff;
    border: 1px solid #E1E8ED;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    width: 100%;
    transition: background-color 0.2s ease;
}

.new-contents-button:hover,
.old-contents-button:hover {
    background-color: #ededed;
}

.piece {
    border: 1px solid #E1E8ED;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-container--reply .piece {
    font-size: 0.8em;
}

.tweet__header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tweet__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.tweet__user-info {
    display: flex;
    flex-direction: column;
}

.tweet__user-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.tweet__user-id {
    font-size: 14px;
    color: #697787;
}

.tweet__time {
    font-size: 14px;
    color: #697787;
    margin-left: auto;
}

.tweet__body {
    margin-bottom: 8px;
}

.tweet__text {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tweet__original-tweet {
    background-color: #F7F9FA;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.tweet__original-tweet .tweet__header {
    margin-bottom: 8px;
}

.tweet__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E1E8ED;
    padding-top: 8px;
}

.tweet__buttons {
    display: flex;
}

.tweet__button {
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: #697787;
    margin-right: 12px;
    cursor: pointer;
}

.tweet__button:hover {
    color: #32A6ED;
}

.tweet__button--reply::before {
    content: '\f3e5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.tweet__button--retweet::before {
    content: '\f1e2';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.tweet__button--like::before {
    content: '\f004';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.tweet__button--more::before {
    content: '\f142';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}


/*GG*/

.post-container,
.post-info-container {
    margin: 0 auto;
    margin-bottom: 0px;
    background-color: #fff;
    border: 1px solid #E1E8ED;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.post-container.post-container--reply {
    margin: -12px;
    border: 0;
}

.post-info-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-post {
    position: relative;
}

.social-post__category {
    font-size: .85em;
    margin-bottom: 6px;
}

.social-post__category-link {
    font-weight: bold;
    color: var(--text-color);
}

.social-post__link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.social-post__header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.social-post__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.social-post__avatar--reply {
    margin-left: 12px;
}

.social-post-original-social-post-header__avatar.social-post__avatar {
    width: 24px;
    height: 24px;
}

.social-post__user-info {
    display: flex;
    flex-direction: column;
    -moz-box-direction: normal;
    -moz-box-orient: horizontal;
    flex-direction: row;
    width: calc( 100% - 16em);
    flex-grow: 1;
}

.social-post-original-social-post-header__user-info.social-post__user-info {}

.social-post__user-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 5;
}

.social-post-original-social-post-header__user-name.social-post__user-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.social-post__verified-badge {
    width: 24px;
}

.social-post__user-id {
    margin-top: 2px;
    font-size: 14px;
    color: #697787;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.social-post-original-social-post-header__user-id.social-post__user-id {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.social-post__time {
    font-size: 14px;
    color: #697787;
    margin-left: auto;
    flex-grow: 0;
}

.social-post-original-social-post-header__time.social-post__time {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-top: -6px;
}

.social-post__contents {
    display: flex;
    -moz-box-direction: normal;
    -moz-box-orient: horizontal;
    flex-direction: row-reverse;
    align-items: stretch;
}

.social-post__main {
    width: calc(100% - 48px - 12px);
}

.social-post__connection {
    width: 48px;
    margin-right: 12px;
    display: flex;
}

.social-post__guide {
    width: 2px;
    margin: 0 auto;
    /*background-color: #32A6ED;*/
}

.post-container--reply .social-post__guide-body {
    background-color: #32A6ED;
}

.social-post__body {
    margin-bottom: 8px;
}

.social-post__body--row {
    display: flex;
    -moz-box-direction: normal;
    -moz-box-orient: horizontal;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.social-post__body--mini {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.social-post__title h1 {
    margin: 0;
    font-size: 21px;
}

.social-post__title h1 a {
    color: var(--text-color);
    text-decoration: none;
}

.social-post__title h1 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-post__text {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
    width: 100%;
}

.social-post__text .normal,
.social-post__text a {
    color: var(--text-color);
}

.social-post__text span {
    position: relative;
}

.social-post__text--mini {
    flex: 8 1 0;
}

.social-post__original-social-post {
    background-color: #F7F9FA;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
}

.social-post__original-social-post .social-post__header {
    margin-bottom: 8px;
}

.social-post__original-social-post .social-post__text {
    color: var(--absolutely-text);
}

.social-post__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E1E8ED;
    padding-top: 8px;
    position: relative;
}

.social-post__buttons {
    display: flex;
}

.social-post__button {
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: #697787;
    margin-right: 12px;
    cursor: pointer;
}

.social-post__button:hover {
    color: #32A6ED;
}

.social-post__button--more {
    display: none;
}

.social-post__button--reply::before {
    content: '\f3e5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.social-post__button--resocial-post::before {
    content: '\f079';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.social-post__button--like::before {
    content: '\f004';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.social-post__button--liked {
    color: #32A6ED;
}

.social-post__button--more::before {
    content: '\f142';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 4px;
}

.search-form__input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
}


/*EE*/

.social_post_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* ポストフッターボタン */

.social_post_footer__button {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: #657786;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
}


/* リプライボタン */

.social_post_footer__button--reply {
    margin-right: 12px;
}

.social_post_footer__button--reply:hover {
    background-color: #E8F5FE;
    color: #32A6ED;
}


/* いいねボタン */

.social_post_footer__button--like {
    margin-right: 12px;
}

.social_post_footer__button--like .icon-heart {
    fill: #657786;
    height: 16px;
    margin-right: 4px;
    width: 16px;
}

.social_post_footer__button--like:hover {
    color: #E0245E;
}

.social_post_footer__button--like:hover .icon-heart {
    fill: #E0245E;
}


/* リツイートボタン */

.social_post_footer__button--retweet {
    margin-right: 12px;
}

.social_post_footer__button--retweet .icon-retweet {
    fill: #657786;
    height: 16px;
    margin-right: 4px;
    width: 16px;
}

.social_post_footer__button--retweet:hover {
    color: #17BF63;
}

.social_post_footer__button--retweet:hover .icon-retweet {
    fill: #17BF63;
}


/* 共有ボタン */

.social_post_footer__button--share {
    margin-right: 12px;
}

.social_post_footer__button--share .icon-share {
    fill: #657786;
    height: 16px;
    margin-right: 4px;
    width: 16px;
}

.social_post_footer__button--share:hover {
    color: #32A6ED;
}

.social_post_footer__button--share:hover .icon-share {
    fill: #32A6ED;
}


/* ポストフッターボタン数 */

.social_post_footer__count {
    margin-left: 4px;
}


/* めちゃめちゃ楽しい感じにする！ */


/* トピックのスタイル */

.social-post__topic {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.social-post__topic-icon {
    display: inline-block;
    height: 20px;
    width: 20px;
    background-color: #1da1f2;
    border-radius: 50%;
    margin-right: 10px;
}

.social-post__topic-name {
    font-weight: bold;
    font-size: 16px;
    color: #1da1f2;
}

.social-post__media {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 12px;
}

.social-post__media .social-post__media-image-box {
    position: relative;
    border-radius: 12px;
    background: #ddd;
    margin: 0;
}

.social-post__media .social-post__media-image-box::before {
    content: "";
    display: block;
    padding-top: 75%;
}

.social-post__media.social-post__media--mini {
    width: 30%;
}

.social-post__media.social-post__media--square .social-post__media-image-box::before {
    padding-top: 100%;
}

.social-post__media.social-post__media--multi .social-post__media-image-box::before {
    content: "";
    display: block;
    padding-top: 65%;
}

.social-post__media img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.social-post-images--four {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas: "social-post__media-image--1 social-post__media-image--2" "social-post__media-image--3 social-post__media-image--4";
}

.social-post-images--three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas: "social-post__media-image--1 social-post__media-image--2" "social-post__media-image--1 social-post__media-image--3";
}

.social-post-images--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas: "social-post__media-image--1 social-post__media-image--2" "social-post__media-image--1 social-post__media-image--2";
}

.social-post-images--one {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas: "social-post__media-image--1 social-post__media-image--1" "social-post__media-image--1 social-post__media-image--1";
}

.social-post-images--mini {
    flex: 2 1 0;
    aspect-ratio: 1;
}

.social-post__media-image--1 {
    grid-area: social-post__media-image--1;
}

.social-post__media-image--2 {
    grid-area: social-post__media-image--2;
}

.social-post__media-image--3 {
    grid-area: social-post__media-image--3;
}

.social-post__media-image--4 {
    grid-area: social-post__media-image--4;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.pagination a {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background-color: #f2f2f2;
}

.pagination .current {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
}


/*画像拡大*/

#large-image-container {
    z-index: 99999;
    top: 0px;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

#large-image {
    max-height: 90vh;
    max-width: 90vw;
}


/* フォームスタイル */

.post-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.post-form__title,
.post-form__content,
.post-form__images,
.post-form__privacy,
.post-form__details,
.post-form__submit {
    margin-bottom: 20px;
}

.post-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.post-form input[type="text"],
.post-form select,
.post-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.post-form textarea {
    min-height: 100px;
    resize: vertical;
}

.post-form__images label {
    font-weight: normal;
}

.post-form input[type="file"] {
    display: none;
}

.post-form button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    /**/
    margin-top: 10px;
    background-color: #1da1f2;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.post-form .remove-thumbnail {
    width: 50px;
    height: 50px;
    display: flex;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
}

.post-form button:hover {
    background-color: #555;
}

.post-form__submit button {
    width: 100%;
}

.post-form #thumbnails {
    display: flex;
    flex-flow: wrap;
    gap: 5px;
}

.thumbnail-area {
    display: flex;
    flex-flow: wrap;
    gap: 5px;
}

.thumbnail-area .thumbnail {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 3px;
    flex-shrink: 25;
    width: 24%;
    margin: 0;
    flex-grow: 1;
}

.thumbnail .cancel-btn {
    background: var(--text-color);
    color: var(--text-color-light);
    text-align: center;
    border-radius: 0 0 5px 5px;
    padding: 5px 0;
}


/* レスポンシブデザイン */

@media screen and (max-width: 600px) {
    .post-form {}
}


/* 追加するスタイル */

.thumbnail-wrapper {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 3px;
    flex-shrink: 25;
    width: 24%;
    margin: 0;
    flex-grow: 1;
    position: relative;
}

.remove-thumbnail {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    padding: 2px;
    background-color: #f00;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.remove-thumbnail:hover {
    background-color: #c00;
}


/* 追加するスタイル */

.post-form.dragging {
    border: #1da1f2 5px dotted;
    background-color: rgba(0, 0, 0, 0.1);
}


/*ローディングスピナ*/

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}