@charset "UTF-8";
/*
Theme Name:  yamakichi-omotase.com
Description: やまきちのOMOTASE専用テーマ
Theme URI:   
Author:      オルタナワークス
Author URI:  http://www.alterna-works.jp/
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   0. 基本レイアウト
   ========================================================= */
.l-content {
	gap: 60px;
}
screen and (max-width: 768px) {
	.l-content {
		gap: 20px;
	}
}

/* futureshopのJS動作前でもヘッダー・フッターを表示させる保険 */
.fs-clientInfo {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

/* =========================================================
   1. 記事一覧（フラットなカード型レイアウト）
   ========================================================= */
.post-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 50px;
}
@media screen and (max-width: 768px) {
	.post-list {
		grid-template-columns: 1fr;
	}
}

/* フラットデザインのカード */
.post-item {
	background: #fff;
	border: 1px solid #eaeaea; /* 影を消して薄いボーダーに */
	transition: opacity 0.3s ease;
}

/* ホバー時はシンプルに透過させるのみ */
.post-item:hover {
	opacity: 0.7; 
}

.post-item__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.post-item__thumbnail {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-bottom: 1px solid #eaeaea; /* 画像とテキストの区切り線 */
}

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

.post-item__body {
	padding: 25px 20px;
}

.post-item__date {
	display: block;
	font-size: 0.85em;
	color: #888;
	margin-bottom: 10px;
}

.post-item__title {
	font-size: 1.15em;
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 15px;
	color: #222;
}

.post-item__excerpt {
	font-size: 0.9em;
	color: #666;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =========================================================
   2. ページネーション & 前後記事ナビゲーション
   ========================================================= */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 50px 0;
}

.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 45px;
	height: 45px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: serif;
}

.pagination .page-numbers:hover {
	background: #f8f8f8;
	border-color: #bbb;
}

.pagination .page-numbers.current {
	background: #c41a1a; /* 指定カラー */
	color: #fff;
	border-color: #c41a1a;
}

/* 記事下の前後リンク（ページネーションに合わせた装飾） */
.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eaeaea;
}

.post-navigation div {
	flex: 1; /* 左右のボタン幅を均等に */
}

.post-navigation a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 20px;
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	text-align: center;
	font-size: 0.95em;
}

.post-navigation a:hover {
	background: #f8f8f8;
	border-color: #bbb;
	color: #c41a1a;
}

/* =========================================================
   3. サイドバーのリスト装飾（アイコン右側へ）
   ========================================================= */
.sidebar__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar__list li {
	border-bottom: 1px solid #ebebeb;
}

.sidebar__list li a {
	display: block;
	padding: 15px 20px 15px 5px; /* 右側の余白を増やす */
	color: #444;
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

/* リンクの右側にFontAwesomeの矢印を配置（::afterに変更） */
.sidebar__list li a::after {
	content: '\f105'; 
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	right: 5px; /* 右寄せ */
	top: 50%;
	transform: translateY(-50%);
	color: #ccc;
	transition: color 0.3s ease, right 0.3s ease;
}

.sidebar__list li a:hover {
	color: #c41a1a;
}

.sidebar__list li a:hover::after {
	color: #c41a1a;
	right: 0px; /* ホバーで矢印が少し右に動く */
}

/* =========================================================
   4. 記事詳細ページ（読みやすさ向上 & WPテキスト装飾）
   ========================================================= */
.post-header {
	margin-bottom: 40px;
	text-align: center;
}

.post-category a {
	display: inline-block;
	background: #f5f5f5;
	padding: 5px 15px;
	border-radius: 20px;
	color: #555;
	text-decoration: none;
	margin-left: 10px;
	font-size: 0.85em;
	transition: background 0.3s ease;
}

.post-category a:hover {
	background: #e0e0e0;
}

.l-main .post-title {
	margin-bottom: 5px;
	font-size: 1.8em;
	line-height: 1.5;
	color: #222;
	text-align: left;
}
@media screen and (max-width: 768px) {
	.l-main .post-title {
	}
}

.post-meta {
	margin-bottom: 15px;
	padding: 10px;
	text-align: right;
	font-size: 0.9em;
	color: #666;
	border-bottom: 1px solid #ebebeb;
}

.post-eyecatch {
	margin: 0 0 40px;
	overflow: hidden;
}

.post-eyecatch img {
	width: 100%;
	height: auto;
	display: block;
}

/* -------------------------------------
   本文エリアのWP標準タグ装飾
-------------------------------------- */
.post-content {
	line-height: 1.9;
	font-size: 1.05em;
	color: #333;
	letter-spacing: 0.05em;
}

/* 段落とリンク */
.post-content p {
	margin-bottom: 3em;
}

.post-content a {
	color: #c41a1a;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-content a:hover {
	text-decoration: none;
}

/* 見出し */
.post-content h2 {
	font-size: 1.4em;
	border-bottom: 2px solid #c41a1a;
	padding-bottom: 12px;
	margin: 3em 0 1em;
}

.post-content h3 {
	font-size: 1.25em;
	border-left: 4px solid #c41a1a;
	padding-left: 12px;
	margin: 2.5em 0 1em;
}

.post-content h4, 
.post-content h5, 
.post-content h6 {
	font-size: 1.1em;
	font-weight: bold;
	margin: 2em 0 1em;
}

/* リスト */
.post-content ul, 
.post-content ol {
	margin-bottom: 1.5em;
	padding-left: 1.5em;
}

.post-content ul li {
	list-style-type: disc;
	margin-bottom: 0.5em;
}

.post-content ol li {
	list-style-type: decimal;
	margin-bottom: 0.5em;
}

/* 引用 (Blockquote) */
.post-content blockquote {
	margin: 0 0 1.5em;
	padding: 15px 20px;
	background: #f9f9f9;
	border-left: 4px solid #ddd;
	color: #555;
	font-style: italic;
}

.post-content blockquote p:last-child {
	margin-bottom: 0;
}

/* 画像と動画 (レスポンシブ対応) */
.post-content img, 
.post-content iframe, 
.post-content video {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 1.5em;
}

/* WP標準の画像配置クラス対応 */
.post-content .alignleft { float: left; margin: 0.5em 1.5em 1.5em 0; }
.post-content .alignright { float: right; margin: 0.5em 0 1.5em 1.5em; }
.post-content .aligncenter { clear: both; display: block; margin: 0 auto 1.5em; }
