/* common */
/* body.css */

/* 全体のスタイル */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding:75px 0 0 0;
	line-height: 1.5;
}

/* メインコンテンツ */
main {
    display: flex;
    justify-content: center;
    align-items:top;
    height:65vh;
}

.wrap {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align:left;
	width: 100%;	
	max-width:800px;
	margin: 0 auto;
	-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
header{
    position: fixed;
    width: 100%;
    top:0;
	background-color: #fff;
}
header .wrap{
display: flex;
  justify-content:space-between;
  align-items: center;
	 box-shadow:none;
	border-radius:0;
}
header nav{
	display:flex;
	justify-content:flex-end;
	align-items: center;	
}
header nav a{
margin-left:1em;	
}



/* フォーム */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #0276FF;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #005ecb;
}

/* ページトップボタン */
#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}

/* フッター */
footer {
    text-align: center;
    padding: 10px;
    background: #ddd;
    color:#666;
    position:relative;
    width: 100%;
	margin-top:60px;
}
.copy {
    font-size: 14px;
}
/* 投稿一覧ページ */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* 投稿カード */
.post-card {
    transition: 0.3s;
	padding:10px;
	margin-bottom: 10px;
	border-radius: 10px;
box-shadow:2px 3px 6px  rgba(0, 0, 0, 0.15);
}
.post-card.posted{
	background-color:#f2f2f2;
	color: #999;
}


/* 投稿タイトル */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}



.post-title:hover {
    text-decoration: underline;
}

/* 投稿日 */
.post-date {
    font-size: 12px;
    color: #777;
}

/* 投稿本文（抜粋） */
.post-excerpt {
    font-size: 16px;
    color: #555;
}

.post-card.posted .post-excerpt{
	color: #666;
}
.post-excerpt.memo{
	margin: 0.5em 0;
	font-size: 14px;
	color: #888;
}


/* ボタンエリア */
.post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding:0px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-create {
    background-color: #0276FF;
    color: white;
}



.btn-create:hover {
    background-color: #005ecb;
}

.btn-edit {
    background-color: #ff9800;
    color: white;
}

.btn-edit:hover {
    background-color: #e68900;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}


/* 並び順ボタン */
.sort-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sort-buttons .btn {
    padding:0px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    background-color: #ccc;
    color: #333;
    transition: 0.3s;
}

.sort-buttons .btn:hover {
    background-color: #bbb;
}

.sort-buttons .btn-active {
    background-color: #0276FF;
    color: white;
}




/* 投稿詳細ページ */
.post-detail {
    max-width:100%;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: #0276FF;
    text-decoration: none;
}

.post-content {
    font-size:14px;
    line-height: 1.8;
    color: #555;
    text-align: left;
    margin-bottom:20px;
}

.post-meta {
    font-size: 13px;
    color: #777;
    text-align: right;
    margin-bottom:5px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
}
.post-actions a{
	color: #fff;
	text-decoration: none;
}

.btn {
    display: inline-block;
    padding:0px 10px;
    background-color: #0276FF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #005ecb;
}

.btn-edit {
    background-color: #ff9800;
}

.btn-edit:hover {
    background-color: #e68900;
}


/* フォーム全体のコンテナ */
.form-container {
    background: #fff;
    padding:0 10px 10px 10px;
    max-width: 600px;
    margin: 20px auto;
}

/* フォーム内の各ラベル */
.form-container label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 入力欄 */
.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* textarea の調整 */
.form-container textarea {
    height: 150px;
    resize: vertical; /* ユーザーが縦にサイズ変更できる */
}

/* ボタンエリア */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding:2px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    text-align: center;
}

/* 投稿ボタン */
.btn-create {
    background-color: #0276FF;
    color: white;
}

.btn-create:hover {
    background-color: #005ecb;
}

/* 更新ボタン */
.btn-edit {
    background-color: #ff9800;
    color: white;
}

.btn-edit:hover {
    background-color: #e68900;
}

/* 戻るボタン */
.btn-back {
    background-color: #ccc;
    color: #333;
}

.btn-back:hover {
    background-color: #bbb;
}

/* エラーメッセージ */
.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-visibility {
    font-size: 14px;
    margin-left: 10px;
    color: #777;
}



/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination .btn-page {
    padding:2px 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    background-color: #ccc;
    color: #333;
    transition: 0.3s;
}

.pagination .btn-page:hover {
    background-color: #bbb;
}

.pagination .btn-active {
    background-color:#5BA6FF;
    color: white;
}
