/* ─── 作業事例アーカイブ ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* sec12 card footer on achievement pages */
.ach-sec12 {
	background: #c5e9ff;
	padding-top: 0;
}

.ach-sec12 .ichiwa-sec12-card {
	margin-top: 0;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(20px, 3vw, 36px) 80px;
}

/* Override header inner for achievement pages */
body.ichiwa-achievement-page .ichiwa-site-header-inner {
	max-width: 100%;
	margin: 0;
	padding: 8px 32px;
}


html { scroll-behavior: smooth; }

body.ichiwa-achievement-page {
	margin: 0;
	padding: 0;
	position: relative;
	font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	background-color: #c5e9ff;
	color: #333;
}

img {
	-webkit-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

/* ─── Main ── */
.ach-main {
	max-width: 860px;
	margin: 0 auto;
	padding: 0;
}

.ach-sec01 {
	margin: 0;
	line-height: 0;
	position: relative;
}

.ach-sec01 img {
	width: 100%;
	height: auto;
	display: block;
}

.ach-sec01-title {
	position: absolute;
	top: 50%;
	left: 6%;
	transform: translateY(-50%);
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 900;
	color: #236eff;
	letter-spacing: 6px;
	margin: 0;
	line-height: 1;
}

.ach-sec02 {
	background-image: url('../images/achievements/bg-03.png');
	background-size: 100% auto;
	background-position: top center;
	background-repeat: no-repeat;
	padding: 40px 80px 60px;
}

.ach-sec02-title {
	text-align: center;
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 900;
	color: #236eff;
	margin: 0 0 24px;
}

.ach-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	max-width: 800px;
	margin: 0 auto;
}

.ach-cat-grid-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #3b82f6;
	color: #fff;
	font-size: clamp(13px, 2vw, 17px);
	font-weight: bold;
	text-decoration: none;
	padding: 20px 10px;
	text-align: center;
	transition: background-color 0.2s;
	pointer-events: auto;
}

.ach-cat-grid-btn:hover,
.ach-cat-grid-btn.is-active {
	background-color: #1a5fd4;
}

@media (max-width: 600px) {
	.ach-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ─── Post list ── */
.ach-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 28px;
}

.ach-item {
	background: transparent;
	position: relative;
	border-radius: 0 !important;
	overflow: hidden;
}

.ach-item-link {
	display: flex;
	text-decoration: none;
	color: inherit;
	pointer-events: auto;
	min-height: 200px;
	gap: 6px;
}

.ach-item-thumb {
	background: #fff;
}

.ach-item-thumb {
	flex: 0 0 200px;
	width: 200px;
	overflow: hidden;
	background: #fff;
}

.ach-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 200px;
}

.ach-item-no-thumb {
	width: 100%;
	min-height: 200px;
	background: #c5e9ff;
}

.ach-item-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	padding-bottom: 32px;
	background: #fff;
}

.ach-item-title {
	background-color: #3b82f6;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: bold;
	margin: 0;
	padding: 12px 16px;
	line-height: 1.4;
}

.ach-item-subtitle {
	font-size: 14px;
	font-weight: bold;
	color: #333;
	margin: 0;
	padding: 12px 16px 6px;
}

.ach-item-excerpt {
	font-size: 13px;
	color: #444;
	line-height: 1.8;
	margin: 0;
	padding: 0 16px;
	flex: 1;
}

.ach-item-arrow {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 40px 40px;
	border-color: transparent transparent #f5a623 transparent;
}

/* ─── No posts ── */
.ach-no-posts {
	text-align: center;
	color: #999;
	padding: 40px 0;
	font-size: 15px;
}

/* ─── Pagination ── */
.ach-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.ach-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #3b82f6;
	font-weight: bold;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid #3b82f6;
	pointer-events: auto;
	transition: background-color 0.2s, color 0.2s;
}

.ach-pagination .page-numbers.current {
	background: #3b82f6;
	color: #fff;
	border-color: #3b82f6;
}

.ach-pagination .page-numbers:hover:not(.current) {
	background: #e8f0fe;
}

.ach-pagination .page-numbers.dots {
	border: none;
	background: transparent;
	color: #3b82f6;
	font-size: 18px;
	pointer-events: none;
}

/* ─── Sec03 post list ── */
.ach-sec03 {
	padding: 30px 20px 60px;
}

/* ─── Single post ── */
.ach-single-title-bar {
	background-color: #3b82f6;
	margin: 0 0 16px 0;
}

.ach-single-title {
	color: #fff;
	font-size: clamp(16px, 3vw, 22px);
	font-weight: bold;
	margin: 0;
	padding: 14px 20px;
	line-height: 1.4;
}

.ach-single-thumb {
	width: 100%;
	background: #eee;
	margin: 0;
	line-height: 0;
	max-height: 360px;
	overflow: hidden;
}

.ach-single-thumb img {
	width: 100%;
	height: 360px;
	display: block;
	object-fit: cover;
	object-position: center;
}

.ach-single-body {
	background: #fff;
	padding: 16px 20px 24px;
	margin-top: 12px;
	margin-bottom: 30px;
}

.ach-single-subtitle {
	font-size: 13px;
	font-weight: bold;
	color: #333;
	margin: 0 0 10px;
}

.ach-single-content {
	font-size: 13px;
	color: #444;
	line-height: 1.9;
}

.ach-single-content p {
	margin: 0 0 14px;
}

.ach-single-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px 0 48px;
}

.ach-single-nav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid #3b82f6;
	color: #3b82f6;
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
	pointer-events: auto;
	background: #fff;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}

.ach-single-nav-arrow:hover {
	background: #3b82f6;
	color: #fff;
}

.ach-single-nav-arrow.is-disabled {
	opacity: 0.3;
	pointer-events: none;
	cursor: default;
}

.ach-single-nav-center {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 40px;
	background: #3b82f6;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 999px;
	pointer-events: auto;
	transition: background 0.2s;
}

.ach-single-nav-center:hover {
	background: #1a5fd4;
}

/* ─── Hero ── */
.ach-hero {
	background: linear-gradient(135deg, #4db8f0 0%, #1a7fc1 100%);
	padding: 48px 20px 40px;
	text-align: center;
}

.ach-hero-title {
	color: #fff;
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 900;
	margin: 0;
	letter-spacing: 4px;
}

/* ─── Breadcrumb ── */
.ach-breadcrumb {
	max-width: 860px;
	margin: 16px auto 0;
	padding: 0 20px;
}

.ach-breadcrumb a {
	color: #1a7fc1;
	font-size: 14px;
	text-decoration: none;
}

.ach-breadcrumb a:hover {
	text-decoration: underline;
}

/* ─── Inner wrapper ── */
.ach-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 20px 60px;
}

/* ─── Section title ── */
.ach-section-title {
	text-align: center;
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 900;
	color: #1a7fc1;
	margin: 0 0 28px;
	padding-bottom: 12px;
	border-bottom: 3px solid #1a7fc1;
}

/* ─── Category filter tabs ── */
.ach-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	justify-content: center;
}

.ach-cat-btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: #1a7fc1;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s;
	pointer-events: auto;
}

.ach-cat-btn:hover,
.ach-cat-btn.is-active {
	background-color: #f5a623;
	color: #fff;
}

/* ─── Post list ── */
.ach-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ach-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ach-item-link {
	display: flex;
	text-decoration: none;
	color: inherit;
	pointer-events: auto;
}

.ach-item-thumb {
	flex: 0 0 200px;
	width: 200px;
	overflow: hidden;
	background: #ddf0ff;
}

.ach-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ach-item-no-thumb {
	width: 100%;
	height: 100%;
	min-height: 140px;
	background: linear-gradient(135deg, #c5e9ff, #a8d8f5);
}

.ach-item-body {
	flex: 1;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ach-item-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ach-item-cat {
	display: inline-block;
	background: #1a7fc1;
	color: #fff;
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 3px;
}

.ach-item-title {
	font-size: 17px;
	font-weight: 900;
	color: #1a7fc1;
	margin: 0;
	line-height: 1.4;
}

.ach-item-excerpt {
	font-size: 13px;
	color: #555;
	line-height: 1.7;
	margin: 0;
	flex: 1;
}

.ach-item-more {
	align-self: flex-end;
	color: #f5a623;
	font-size: 13px;
	font-weight: bold;
}

/* ─── No posts ── */
.ach-no-posts {
	text-align: center;
	color: #999;
	padding: 40px 0;
	font-size: 15px;
}

/* (pagination styles defined above) */

/* ─── Mobile ── */
@media (max-width: 600px) {

	/* sec12 card */
	.ach-sec12 {
		padding-left: 0;
		padding-right: 0;
		margin-top: 0;
	}

	.ach-sec12 .ichiwa-sec12-card {
		padding: 20px 16px;
		width: 100%;
	}

	.ach-sec12 .ichiwa-sec12-card-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 14px;
	}

	.ach-sec12 .ichiwa-sec12-card-left {
		flex-direction: column;
		align-items: center;
		gap: 8px;
		flex-shrink: 0;
		width: 90px;
	}

	.ach-sec12 .ichiwa-sec12-card-photo {
		width: 90px;
		aspect-ratio: 4/3;
	}

	.ach-sec12 .ichiwa-sec12-card-icon {
		width: 60px;
		margin-top: 0;
	}

	.ach-sec12 .ichiwa-sec12-card-info {
		flex: 1;
		min-width: 0;
		gap: 8px;
	}

	.ach-sec12 .ichiwa-sec12-card-name {
		font-size: 15px;
		word-break: break-all;
	}

	.ach-sec12 .ichiwa-sec12-card-row {
		font-size: 12px;
		gap: 6px;
		flex-wrap: wrap;
	}

	/* Section padding */
	.ach-sec02 {
		padding: 24px 16px 0;
	}

	/* Category grid: 2 columns */
	.ach-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ach-cat-grid-btn {
		padding: 14px 6px;
		font-size: 13px;
	}

	/* Post card: stack vertically */
	.ach-item-link {
		flex-direction: column;
		min-height: unset;
	}

	.ach-item-thumb {
		flex: none;
		width: 100%;
		height: 200px;
	}

	.ach-item-thumb img {
		min-height: unset;
		height: 200px;
	}

	.ach-item-body {
		padding-bottom: 28px;
	}

	.ach-item-title {
		font-size: 14px;
	}

	.ach-item-subtitle {
		font-size: 13px;
	}

	.ach-item-excerpt {
		font-size: 12px;
	}

	/* Single post */
	.ach-single-thumb img {
		height: 220px;
	}

	.ach-single-thumb {
		max-height: 220px;
	}

	.ach-single-nav {
		gap: 10px;
		padding: 20px 10px 36px;
	}

	.ach-single-nav-arrow {
		width: 42px;
		height: 42px;
		font-size: 16px;
	}

	.ach-single-nav-center {
		padding: 12px 24px;
		font-size: 14px;
	}

	/* Pagination */
	.ach-pagination .page-numbers {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}

	/* Header title */
	.ach-sec01-title {
		font-size: clamp(18px, 5vw, 28px);
		letter-spacing: 4px;
	}
}
