/* 全体-------------------------------------------------- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #444;
    color: #111;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#container {
    max-width: 430px;
    margin: 0 auto;
    background-color: #f6f6f6;
}

/* ヘッダー-------------------------------------------------- */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
    padding: 0px 20px 15px 20px;
}

.header-img {
    position: absolute;
    width: 100%;
    height: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 100px;
}

.site-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.post-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid #222;
    border-radius: 50%;
}

.post-button img {
    width: 30px;
    height: 30px;
}

/* ユーザーエリア-------------------------------------------------- */

.user-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
    padding: 0px 20px 15px 20px;
    gap: 20px;
}

.user-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-stats {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

.user-stats .stat {
    text-align: center;
    flex: 1;
    min-width: 0;
}


.user-stats .number {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.user-stats .label {
    color: #555;
    font-size: 0.8rem;
    margin: 0;
}

/* 記事エリア-------------------------------------------------- */
.article-list {
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
    gap: 30px;
}

.article-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #bbb;
    padding-bottom: 20px;
    gap: 20px;
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-text h2 {
    font-weight: 700;
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 10px 0;
}

.article-text p {
    color: #333;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* フッター-------------------------------------------------- */
footer {
    background-color: #999;
    color: #eee;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 40px;
    padding: 20px;
}