﻿.container {
    display: flex;
    justify-content: center; /* 横方向の中央揃え */
    gap: 20px;
}

.image-box {
    align-items: center; /* 中央揃え */
    text-align: center;
    width: 100%;
}

/* 投稿画像 */
.image-box .post-image {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.like-btn {
    display: flex;
    align-items: flex-end; /* 下位置を揃える */
    justify-content: center;
    gap: 5px; /* アイコンとテキストの間隔 */
    padding: 8px 16px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 10px;
    border-radius: 20px;
    min-width: 100px;
    height: 30px; /* ボタンの高さを統一 */
}

.like-btn.liked {
    background-color: #959595;
}

/* いいねアイコン */
.like-icon {
    width: 14px;
    height: auto;
    display: inline-block;
}

.comment-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.comment-list {
    text-align: left;
    font-size: 12px;
    min-height: 50px; /* 最小高さ 50px */
    max-height: 100px; /* 最大高さ 100px */
    overflow-y: auto; /* 超えたらスクロールバー表示 */
    padding: 10px;
    margin-top: 10px;
    background-color: #F5F5F5;
    border-radius: 5px;
}


input[type="text"] {
    flex: 1;
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding-left: 10px;
}

button.comment-btn {
    padding: 5px 10px;
    background-color: #28A745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    font-size: 10px;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar:hover {
  width: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to top, #999 0%, #999 100%);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}


/* === 画像ごとのセクション（管理者ページ） === */
.admin-image-section {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* === コメントリストのコンテナ === */
.admin-comment-container {
    max-height: 300px;  /* スクロール可能にする */
    overflow-y: auto;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

/* === 個々のコメントアイテム === */
.admin-comment-item {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === コメントテキスト（管理者ページ用） === */
.admin-comment-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* === 削除ボタンのデザイン === */
.delete-comment {
    background-color: #dc3545; /* 赤色 */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease-in-out;
    text-wrap-mode: nowrap;
    margin-left:5px;
}

.delete-comment:hover {
    background-color: #c82333; /* 濃い赤 */
}

/* === モバイル対応（レスポンシブ調整） === */
@media (max-width: 600px) {
    .admin-comment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delete-comment {
        margin-top: 5px;
        width: 100%;
    }
}


/* ?? 上部に固定するヘッダー */
#admin-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #efefef;
    padding: 20px 20px;
    border-bottom: 2px solid #ddd;
    align-items: center;
    z-index: 1000;
}

/* ?? タイトルと検索ボックスを横並びに */
#admin-header h1 {
    margin: 0;
    font-size: 30px;
    white-space: nowrap; /* ? 改行を防ぐ */
}

/* ?? 検索ボックスの横幅を 300px に固定 */
#search-box {
    padding: 5px;
    font-size: 14px;
    width: 300px;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 0; /* ? 横幅を勝手に広げない */
}

/* ?? コメントリストがヘッダーと被らないように調整 */
#admin-comment-list {
    margin-top: 130px; /* ヘッダー分のスペースを確保 */
    padding: 10px;
}
