@charset "utf-8";

/* --- 一覧ページ (Archive) --- */
.post-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 80px;
}

.post-card {
	width: calc(33.333% - 14px);
	margin-bottom: 30px;
	background: #fff;
	border: 1px solid #e0e0e0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.post-card-inner {
	position: relative;
	display: flex;
	flex-direction: column;
}

/* ラベル表示 */
.post-labels {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.post-labels span {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	color: #fff;
	font-weight: bold;
	border-radius: 2px;
}

/* サムネイル */
.post-thumb-wrap {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #f0f0f0;
}

.post-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card:hover .post-thumb-wrap img {
	transform: scale(1.05);
	/* ホバー時に少しズーム */
}

/* テキストエリア */
.post-body {
	padding: 15px;
}

.post-title {
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	margin-bottom: 8px;
	color: #333;
}

/* クライアント名（投稿タイトルに含めない運用の場合） */
.post-client {
	margin-top: auto;
	padding: 8px;
	background-color: #f2f2f2;
	font-size: 12px;
	text-align: center;
	color: #666;
}

/* --- カテゴリー別カラー（スラッグ名に合わせる） --- */
.label-pamph {
	background-color: #3fa9f5;
}

.label-poster {
	background-color: #9770b4;
}

.label-company {
	background-color: #7ac943;
}

.label-leaf {
	background-color: #ff5555;
}

.label-web {
	background-color: #c69c6d;
}

.label-catalog {
	background-color: #ff7bac;
}

.label-chirashi {
	background-color: #ffc500;
}

.label-flyer {
	background-color: #51ba97;
}

.label-kinenshi {
	background-color: #ff6f6f;
}

.label-office {
	background-color: #999999;
}

.label-movie {
	background-color: #ff931e;
}

.label-photogallery {
	background-color: #c2aa8f;
}

/* --- 詳細ページ (Single) --- */
.post-detail {
	background: #fff;
	padding-bottom: 60px;
}

.post-detail-header {
	padding: 40px 0;
	text-align: center;
	margin-bottom: 50px;
}

.post-main-visual {
	margin-bottom: 40px;
	text-align: center;
}

.post-main-visual img {
	max-width: 100%;
	height: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content-inner {
	max-width: 900px;
	margin: 0 auto;
	line-height: 2;
	font-size: 16px;
	color: #444;
}

/* 制作のポイント等の見出し */
.post-content-inner h3 {
	font-size: 22px;
	border-left: 5px solid #333;
	padding-left: 15px;
	margin: 40px 0 20px;
}

/* 下部ナビ（一覧へ戻る） */
.post-footer-nav {
	text-align: center;
	margin-top: 60px;
	border-top: 1px solid #eee;
	padding-top: 40px;
}

.btn-back {
	display: inline-block;
	background: #333;
	color: #fff;
	padding: 15px 50px;
	text-decoration: none;
	font-weight: bold;
	transition: 0.3s;
}

.btn-back:hover {
	background: #000;
}

/* レスポンシブ */
@media (max-width: 1024px) {
	.post-card {
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	.post-card {
		width: 100%;
	}

	.post-list {
		gap: 30px;
	}
}


/* ナビゲーション全体のコンテナ */
.post-nav-wrapper {
	background-color: #f6f5f0;
	padding: 30px 0;
	margin-bottom: 50px;
	text-align: center;
}

.post-nav-title {
	margin: 20px 0;
	font-size: 30px;
	font-family: "Noto Serif JP", serif;
	text-align: center;
	font-weight: 300;
}

/* タイル状の並び */
.post-nav-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
}

/* 各タイル（1行7個を基本とする） */
.post-nav-item {
	width: calc(14.28% - 11px);
	/* 7個並び */
	min-width: 120px;
}

.post-nav-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	background-color: #fff;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: 300;
	border: 1px solid #000;
	transition: all 0.3s ease;
}

/* ホバー時および現在地（is-active）のスタイル */
.post-nav-item a:hover,
.post-nav-item a.is-active {
	background-color: #000;
	color: #fff;
}

/* レスポンシブ：スマホ・タブレット */
@media (max-width: 1024px) {
	.post-nav-item {
		width: calc(25% - 9px);
		/* 4個並び */
	}

	.post-nav-title {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.post-nav-item {
		width: calc(50% - 6px);
		/* 2個並び */
	}
}

/* --- 実績詳細ページ (single-post) --- */

/* 投稿タイトル部分：枠線で囲むスタイルを継承 */
.post-detail-title {
	border: solid 2px #27acd9;
	padding: 1.2rem 1.8rem;
	color: #27acd9;
	font-size: 1.8em;
	font-weight: bold;
	margin-bottom: 40px;
	line-height: 1.4;
	background-color: #fff;
}

/* 投稿本文内の見出し（H2） */
.post-post-content h2 {
	color: #555;
	border-bottom: solid 2px #27acd9;
	padding: 10px 0;
	font-size: 1.5em;
	margin: 40px 0 20px;
	clear: both;
}

/* H2の1文字目だけ色を変える（現行サイトのこだわりを継承） */
.post-post-content h2::first-letter {
	color: #27acd9;
	font-size: 1.2em;
}

/* 本文内の段落や画像 */
.post-post-content {
	line-height: 1.8;
	color: #333;
	font-size: 16px;
	width: 80%;
	margin: 0 auto;
}

.post-post-content p {
	margin-bottom: 25px;
}

.post-post-content img {
	width: 100%;
	margin: 0 auto 30px auto;
	height: auto;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 制作物データなどのリスト（もしあれば） */
.post-meta-box {
	background-color: #f9f9f9;
	padding: 20px;
	margin-top: 50px;
	border-top: 1px solid #eee;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.post-detail-title {
		font-size: 1.4em;
		padding: 1rem;
	}
}

/* ボタンの外枠（余白の調整） */
.load-more-wrapper {
	clear: both;
	text-align: center;
	margin: 60px 0;
}

/* ボタン本体のデザイン */
.btn-more-ajax {
	display: inline-block;
	padding: 15px 60px;
	background-color: #333;
	/* サイトのメインカラーに合わせて変更してください */
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	border: none;
	border-radius: 30px;
	/* 角丸で今っぽく */
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ホバー（マウスを乗せた時）の動き */
.btn-more-ajax:hover {
	background-color: #555;
	transform: translateY(-2px);
	/* 軽く浮き上がる */
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 読み込み中（無効化時）のスタイル */
.btn-more-ajax:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
}

/* 実績詳細ナビゲーション */
.post-navigation {
	margin: 60px 0;
	border-top: 1px solid #eee;
	padding-top: 40px;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.post-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	background-color: #fff;
	border: 1px solid #333;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	min-width: 140px;
	transition: all 0.3s;
}

.post-navigation a:hover {
	background-color: #333;
	color: #fff;
}

/* 一覧に戻るボタンだけ色を変える場合 */
.nav-archive a {
	background-color: #f8f8f8;
	border-color: #ddd;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.post-navigation .nav-links {
		flex-direction: column;
	}

	.post-navigation a {
		width: 100%;
		margin-bottom: 10px;
	}
}