/**** 投稿ページのcss ****/
.post-container{
    margin-top: 115px;	
}

/**** 投稿アーカイブページのスタイル ****/
.post-type-archive .post-title a:hover{
	color: #333;
}

/**** 投稿個別ページのスタイル ****/
/* 全体のラップ */
#main-content .single-post {
    background-color: #ffffff;
    padding: 40px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* ヘッダーエリア */
.single-post-header {
    margin-bottom: 20px;
    text-align: center;
}

.single-post-title {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.single-post-date {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

/* サムネイル */
.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 本文 */
.single-post-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    font-size: 18px;
}
/* 投稿本文内のリンク */
.single-post-content a {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 長いテキストを含む要素全般 */
.post-item, .boshu-card, .post-content {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* カテゴリー表示エリア */
.post-categories {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

/* カテゴリーバッジ風デザイン */
.post-categories a {
	display: inline-flex;
    align-items: center;
    border: 1px solid #6e8c65;
    color: #6e8c65;
    padding: 6px 10px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #feffe6;
}

.post-categories a:hover {
    background-color: #6e8c65;
    color: #fff;
    border-color: #6e8c65;
}

/* カテゴリーアイコン */
.post-categories a::before {
    content: "🏷️"; /* カテゴリーバッジのアイコン（絵文字） */
    margin-right: 6px;
}

.back-to-notice {
    margin-top: 20px;
    text-align: right;
}

.back-link {
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #818181;
    border-bottom-color: #818181;
}

@media (max-width: 767px) {
	#main-content .single-post {
		padding: 25px 15px;
	}
	.single-post-content{
		font-size: 14px;
	}
	.single-post-date{
		font-size: 12px;
	}
	.post-categories a{
		font-size: 12px;
		padding: 4px 4px;
   		margin: 2px;
	}
}

/**** カテゴリーページのスタイル ****/

/* カテゴリーページ中央寄せ用 */
.category-container {
    max-width: 800px; /* 最大幅を設定 */
    margin: 0 auto;   /* 中央寄せ */
    padding: 20px;    /* 周囲の余白 */
}

/* カテゴリーヘッダー */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.category-description {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* 投稿リスト */
.post-list {
    display: block;
}

.post-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: auto;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 22px;
    margin: 0 0 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #0073e6;
}

.post-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.read-more {
    font-size: 14px;
    color: #0073e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* ページネーション */
.pagination {
    text-align: center;
    padding: 30px 0;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 8px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    color: #0073e6;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #0073e6;
    color: #333;

}


/**** カスタム投稿募集ページのスタイル ****/
.single-boshu {
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.single-boshu .single-post-header {
    margin-bottom: 20px;
}

.single-boshu .single-post-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.single-boshu .single-boshu-info {
	margin: 20px auto;
    padding: 15px;
    background: #fffef0;
    border: 3px solid #e6e297;
    border-radius: 5px;
    width: 225px;
}

.single-boshu .single-boshu-info p {
    font-size: 1rem;
}

.single-boshu .single-post-content {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.single-boshu .back-to-archive {
    margin-top: 30px;
    text-align: center;
}

.single-boshu .back-to-archive .back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.single-boshu .back-to-archive .back-link:hover {
    background: #005f8d;
}
.status-action {
    margin-top: 20px;
    text-align: center;
}

.status-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
	color: #333;
}

/* 対応状況のスタイル */
.status-text {
    font-weight: bold;
    font-size: 1rem;
}

.status-unhandled {
    color: red; /* 未対応は赤 */
}

.status-handled {
    color: blue; /* 対応済みは青 */
}

/* 対応済みボタンスタイル */
.status-button.handled {
    background-color: #ff6868;
    color: #ffff;
    border: none; 
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px; 
}

/* ホバー時のスタイル（オプション） */
.status-button.handled:hover {
    background-color: darkred; /* 濃い赤 */
}

/* Googleフォーム */
.google-form-link {
    margin: 20px 0; /* 上下に余白を入れる */
    text-align: center; /* ボタンを中央寄せ */
}

.google-form-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4f6b54;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-bottom: 60px;
}

.google-form-button:hover {
    background-color: #65876b;
}
