body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #DAE0E6; /* Redditっぽいグレーの背景 */
    margin: 0;
    padding: 0;
}

header {
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF4500; /* Redditオレンジ */
}

main {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 10px;
}

/* 投稿ボックスと投稿カードの共通スタイル */
.post-box, .post {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.post-box input, .post-box textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #EDEFF1;
    border-radius: 4px;
    background-color: #F6F7F8;
    font-family: inherit;
}

.post-box button {
    background-color: #0079D3; /* Redditブルー */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 999px; /* 丸いボタン */
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end;
}

.post-box button:hover {
    background-color: #005a9e;
}

/* 投稿カードのスタイル */
.post-header {
    display: flex;
    align-items: flex-start;
}

/* いいね（Upvote）エリア */
.votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    width: 30px;
}

.upvote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #878A8C;
    font-size: 20px;
    line-height: 1;
    padding: 2px;
}

.upvote-btn:hover, .upvote-btn.active {
    color: #FF4500;
}

.post-content-area {
    flex-grow: 1;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #222;
}

.post-body {
    color: #1c1c1c;
    margin: 0;
    font-size: 14px;
}
