@charset "utf-8";
.main-content {
    list-style: none; /* デフォルトのリストマーカーを無効化 */
    width: 100%;
}

.post-reply {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #616161;
    @media (prefers-color-scheme: dark) {
        color: #ffffff;
    }
}

.post-reply svg{
    width: 1.5rem;
    height: 1.5rem;
    fill: #616161;
    @media (prefers-color-scheme: dark) {
        fill: #ffffff;
    }
}


#comment_ul{
    padding-left: 0;
}
.comment,
.post {
    position: relative;
    list-style: none;
    padding-left: 30px;
}
.comment:hover{
    cursor: pointer;
    @media (prefers-color-scheme: dark) {
        background-color: rgb(54, 54, 54);
    }
    @media (prefers-color-scheme: light) {
        background-color: rgb(230, 230, 230);
    }
    border-radius: 20px;
}
.comment_content{
    display: -webkit-box;        /* Flexboxベースのレイアウトを使用 */
    -webkit-box-orient: vertical;/* 縦方向のレイアウトを指定 */
    overflow: hidden;            /* はみ出した部分を隠す */
    text-overflow: ellipsis;     /* 省略記号を表示 */
    -webkit-line-clamp: 10;       /* 表示する行数を10行に制限 */
    line-height: 1.5;            /* 行間の調整 */
    max-height: calc(1.5em * 10); /* 3行分の高さに制限 */
}
.post_user{
    display: flex;
    align-items: center;
    text-decoration: none;
}
.post_user_icon{
    width: 2em;
    height: 2em;
    border-radius: 50%;
    text-decoration: none;
}
.post_user_info{
    display: flex;
}
.post_user_name{
    color: #1f9b00;
    font-weight: 600;
    display: block;
    margin-left: 10px;
}
.post_date{
    color: #616161;
}
.post_action{
    display: flex;
    flex-wrap: wrap;
    font-weight: 500;
}
.post_action svg{
    width: 1em;
}

a:has(.gallery_img){
    text-decoration: none;
}
.gallery_img{
    max-height: 200px;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 10px;
}

/*アクションボタン--------------------------------------------*/
.post_action {
    user-select: none;
    display: flex;
    flex-wrap: wrap;
}
.post_action :hover{
    @media (prefers-color-scheme: dark) {
        background-color: rgb(54, 54, 54);
    }
    @media (prefers-color-scheme: light) {
        background-color: rgb(230, 230, 230);
    }
    border-radius: 10px;
}
.post_action span{
    padding: 3px;
}

.post_action_button{
    display: flex;
    flex-wrap: nowrap;
}

/*コメント*/
.post_comment_action{
    fill: #007BFF;
    vertical-align: middle;
}
.post_comment_count{
    color: #007BFF;
}

/*ハート*/
.post_heart_action{
    fill: #ff0062;
}
.post_heart_count{
    color: #ff0062;
}

/*表示回数*/
.post_view_action{
    fill: #00973a;
}
.post_view_count{
    color: #00973a;
    
}

/*ブックマーク*/
.post_bookmark_action{
    fill: #007BFF;
}
.post_bookmark_count{
    color: #007BFF;

}

/*シェアボタン---------------------------------------------------*/
#copyButton svg{
    fill: #00973a;
}
#copyButton span{
    color: #00973a;
}

/*シェアポップアップ---------------------------------------------------*/
/* シェア用クリップボードコピー ポップアップ */
.share-copy-popup {
    position: fixed;
    top: 50px;
    right: -300px; /* 初期は画面外 */
    width: 250px;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.share-copy-popup.show {
    right: 20px; /* 表示位置 */
}

#shareCopyPopupCloseBtn {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

#shareCopyPopupCloseBtn:hover {
    background-color: #d32f2f;
}
/*シェアポップアップここまで---------------------------------------------------*/


/*ロードアニメーション--------------------------------------------*/
/* ローディングバーの外枠 */
.loading-bar {
    width: 80%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-inline: auto;
}

/* アニメーションするバー */
.loading-bar::after {
    content: '';
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%; /* ローディングバーの幅 */
    background-color: #4caf50;
    border-radius: 5px;
    animation: slideRight 1s infinite linear;
}

/* アニメーション定義 */
@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
.hidden{
    display: none;
}