body {
    padding-left: 20%;
    width: 80%;
}

@media screen and (max-width: 1300px) {
    body {
        padding-left: 0;
        width: 100%;
    }

}


/* メニュー */
/* PC版の横メニュー */
.horizontal-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 19%;
    height: 100vh; /* 画面の高さにフィット */
    background: #ffffff;
    color: #333;
    padding: 20px 10px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* メニューを縦方向に配置 */
    justify-content: space-between; /* 上と下のメニューをバランスよく配置 */
    align-items: center;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto; /* スクロール可能に */
}

/* スクロールバーを非表示 */
.horizontal-menu::-webkit-scrollbar {
    display: none;
}

/* 新規投稿ボタン */
.new-post-button {
    width: 100%;
    padding: 10px;
    text-align: center;
}

.post-btn {
    display: block;
    background-color: #1877f2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

/* ホバー時のエフェクト */
.post-btn:hover {
    background-color: #145dbf;
    transform: scale(1.05);
}

/* 上部メニュー */
.menu-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

/* 下部メニュー（常に一番下に配置） */
.menu-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: auto; /* メニューの下部を固定 */
    padding-top: 15px;
    padding-bottom: 20px; /* 余白を追加 */
    border-top: 1px solid #e0e0e0;
}

/* メニュー項目 */
.horizontal-menu li {
    width: 100%;
}

.horizontal-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ホバー時のエフェクト */
.horizontal-menu li a:hover {
    background: #f0f2f5;
    color: #1877f2;
}

/* アイコン */
.horizontal-menu li img {
    width: 26px;
    height: 26px;
    filter: brightness(0) saturate(100%) invert(36%) sepia(71%) saturate(747%) hue-rotate(196deg) brightness(99%) contrast(102%);
}

/* 選択されているメニュー */
.horizontal-menu li a.active {
    background: #e7f3ff;
    color: #1877f2;
    font-weight: bold;
}



/* スマホ版の下部メニュー */
.bottom-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* 半透明で浮かせる */
    backdrop-filter: blur(10px); /* 背景ぼかし */
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: none; /* 初期は非表示 */
}

/* メニューリスト（アイテムを均等配置） */
.bottom-menu ul {
    display: flex;
    justify-content: space-around; /* 均等配置 */
    align-items: center;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* メニューアイテム */
.bottom-menu li {
    flex: 1;
    text-align: center;
}

/* メニューボタン */
.bottom-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #555;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
    position: relative;
}

/* アイコン画像 */
.bottom-menu img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease-in-out, filter 0.3s;
}

/* ホバー時（タップ時）のエフェクト */
.bottom-menu a:hover {
    color: #1877f2; 
}

.bottom-menu a:hover img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(96%) saturate(749%) hue-rotate(196deg) brightness(99%) contrast(102%);
    transform: scale(1.1);
}

/* 中央の＋ボタン（均等配置を崩さないため `position: relative;` に変更） */
.bottom-menu .add-button {
    position: absolute;
    bottom: 10px; /* メニューバーから少し浮かせる */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1877f2;
    color: white;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    z-index: 10; /* 他のアイテムより前に表示 */
}

/* ホバー時のエフェクト */
.bottom-menu .add-button:hover {
    background-color: #145dbf;
    transform: translateX(-50%) scale(1.1);
}

/* スマホ版で下部メニューを表示し、左メニューを非表示に */
@media screen and (max-width: 1300px) {
    .horizontal-menu {
        display: none;
    }

    .bottom-menu {
        display: flex;
    }
}

.top-notification-badge {
  background-color: #F02849; /* 赤色 */
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%; /* 円形 */
}

.notification-badge {
    background-color: #F02849; /* 赤色 */
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%; /* 円形 */
    position: absolute;
    top: -5px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px; /* 最小幅を保持 */
    height: 16px; /* 高さ */
    box-sizing: border-box;
    font-weight: bold;
}




/* 投稿画面本体 */
#post-container {
    position: fixed;
    top: 100%; /* 最初は下に隠れる */
    left: 0;
    width: 100%;
    height: 100vh; /* 画面全体を覆う */
    background: #fff;
    transition: top 0.3s ease-in-out;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  
  /* 表示状態（上までスライド） */
  #post-container.open {
    top: 0;
  }
  
  /* ヘッダー：右上に✕ボタン */
  .post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    background-color: #f5f6f7; /* ← 少しグレー背景 */
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  /* タイトル部分 */
  .header-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
    margin-right: -28px; /* ✕ ボタンとバランスを取る */
  }

  /* ✕ ボタン */
  .close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
  }
  .close-btn:hover {
    color: #000;
  }
  
  /* 投稿フォームエリア */
  .post-body {
    padding: 20px;
  }
  
  /* プロフィール画像＋入力欄 */
  .post-user {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }
  
  /* アイコン画像 */
  .user-icon {
    border-radius: 50%;
    border: 1px solid #ddd;
  }
  .user-icon > img{
    width: 45px !important;
    height: 45px !important;
    object-fit: scale-down !important;
}
  
  /* テキストエリア */
  .post-text {
    flex: 1;
    resize: none;
    min-height: 100px;
    border: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f0f2f5;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  }
  
  /* 投稿ボタン */
  .post-submit {
    margin-top: 20px;
    float: right;
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .post-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  .post-submit:not(:disabled):hover {
    background-color: #165dc0;
  }
  
  .image-upload {
    margin-top: 15px;
  }
  
  .upload-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1877f2;
    cursor: pointer;
    font-weight: bold;
  }
  
  .upload-label .material-icons {
    font-size: 40px;
  }
  
  .image-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .preview-item {
    position: relative;
    width: 100px;
    height: 100px;
  }
  
  .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }
  
  .preview-item .remove-btn {
    position: absolute;
    top: 4px;           /* ← 少し内側に調整 */
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  
  

