/* ============================================================
	works-all.css
	実績一覧ページ共通スタイル
	============================================================ */

/* ------------------------------------------------------------
	カテゴリタブ（縦ライン付きピル型）
	------------------------------------------------------------ */
#category-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin-bottom: 3em;
}
#category-tabs li {
	list-style: none;
}
#category-tabs .tab-btn {
	display: block;
	padding: 14px 32px;
	border: none;
	border-right: 1px solid #ddd;
	outline: none;
	background: transparent;
	color: #999;
	font-size: 18px;
	font-family: 'Noto Serif JP', serif;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: color 0.3s ease;
	position: relative;
}
#category-tabs li:last-child .tab-btn {
	border-right: none;
}
#category-tabs .tab-btn::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: #b19b4d;
	transition: width 0.3s ease;
}
#category-tabs .tab-btn:hover {
	color: #333;
}
#category-tabs .tab-btn:hover::after {
	width: 60%;
}
#category-tabs .tab-btn.active {
	color: #b19b4d;
	font-weight: 600;
}
#category-tabs .tab-btn.active::after {
	width: 60%;
}
@media (max-width: 480px) {
	#category-tabs .tab-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* ------------------------------------------------------------
	カテゴリ見出し（左寄せアクセント）
	------------------------------------------------------------ */
.category-heading {
	font-size: 28px;
	font-family: 'Noto Serif JP', serif;
	color: #333;
	margin: 3em 0 1.5em;
	padding: 0 0 0.8em;
	letter-spacing: 0.15em;
	width: 94vw;
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	text-align: left;
	border-bottom: none;
	background: none;
}
.category-heading::before {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: #b19b4d;
	margin-bottom: 0.8em;
}
.category-heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(to right, #b19b4d 60px, #e0d8c0 60px, transparent 50%);
}
.category-heading span {
	display: inline-block;
	font-size: 13px;
	color: #b19b4d;
	margin-left: 1em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	vertical-align: middle;
	font-weight: 400;
}
@media (max-width: 480px) {
	.category-heading {
		font-size: 22px;
		padding: 0 0 0.6em;
		max-width: none;
		margin-left: 1em;
		margin-right: 1em;
	}
}

/* その他一覧リスト見出し */
.others-heading {
	text-align: left;
	font-size: 14px;
	color: #999;
	margin-bottom: 1em;
	padding-top: 2em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------
	画像エリア背景
	------------------------------------------------------------ */
.works-list {
	width: 94vw;
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 8px;
	padding: 2em;
	box-sizing: border-box;
	background: url("../img/common/bg-brick.jpg") center top;
}
.works-list .content-width {
	width: 100%;
	max-width: 100%;
	padding: 0;
}
.works-list ul li {
	width: 100%;
	max-width: none;
	margin: 0 auto 2em;
}
.works-list ul li a {
	display: block;
	position: relative;
	color: #000;
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	max-width: none;
	max-height: none;
	overflow: hidden;
}
.works-list ul li a:after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	content: url("../img/works/hover-text.png");
	display: flex;
	align-items: center;
	justify-content: space-around;
	opacity: 0;
	transition: all 0.5s ease;
}
.works-list ul li a:hover:after {
	opacity: 1;
}
.works-list ul li a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 768px) {
	.works-list ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
}
@media (min-width: 930px) {
	.works-list {
		padding: 2em;
	}
	.works-list ul li {
		width: 30%;
		margin-bottom: 3em;
	}
	.works-list ul li a {
		width: 100%;
		height: auto;
		aspect-ratio: 1/1;
	}
	.works-list ul:after {
		width: 30%;
		max-width: none;
	}
}
@media (max-width: 480px) {
	.works-list {
		padding: 1.5em 1em;
		border-radius: 4px;
	}
}

/* その他一覧テーブル */
.works-list-others {
	white-space: normal;
	word-break: break-all;
	border-collapse: separate;
	border-spacing: 0 1px;
}
@media (min-width: 320px) {
	.works-list-others {
		font-size: calc(0.75rem + (1vw - 3.2px) * 0.4762);
	}
}
@media (min-width: 1160px) {
	.works-list-others {
		font-size: 16px;
	}
}
.works-list-others td {
	border-top: 3px solid #fff;
	border-right: 1px solid #000;
	border-bottom: 3px solid #fff;
}
.works-list-others tbody tr.stripe-odd {
	background-color: #000;
	color: #fff;
}
.works-list-others tbody tr.stripe-odd td {
	border-top: 3px solid #000;
	border-right: 1px solid #fff;
	border-bottom: 3px solid #000;
}
.works-list-others tr td:last-of-type {
	border-right: none;
}

/* ------------------------------------------------------------
	カテゴリセクション区切り
	------------------------------------------------------------ */
.category-section {
	margin-bottom: 2em;
}
.category-section + .category-section {
	border-top: none;
	padding-top: 1em;
}

/* ------------------------------------------------------------
	テーブル折りたたみ
	------------------------------------------------------------ */
.table-collapsible tbody tr:nth-child(n+5) {
	display: none;
}
.table-collapsible.expanded tbody tr:nth-child(n+5) {
	display: table-row;
}
.toggle-more,
.toggle-more:focus,
.toggle-more:active {
	display: block;
	margin: 1.5em auto 0;
	padding: 14px 36px;
	min-height: 44px;
	outline: none;
	box-shadow: none;
	border: none;
	border-bottom: 2px solid #b19b4d;
	background: transparent;
	color: #b19b4d;
	font-size: 13px;
	font-family: 'Noto Serif JP', serif;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: all 0.3s ease;
}
.toggle-more:hover {
	color: #333;
	border-bottom-color: #333;
}
