/**
 * SOA Works v1.9.228 — Modal, Load More, Card Extensions
 *
 * モーダル動画再生 / 写真ライトボックス / もっと見るボタン / カード追加要素
 * 紺×金統一、絵文字なし、世界トップサイト準拠。
 */

/* ===========================================
 * カード追加要素（image、tag、note、play）
 * =========================================== */

.wks-work__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.wks-work:hover .wks-work__img {
	transform: scale(1.06);
}

.wks-work__visual--fallback {
	background: linear-gradient(135deg, #0a1628 0%, #b89968 100%);
}

.wks-work__note {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(10, 22, 40, 0.85);
	color: #d4c4a0;
	font-size: 10px;
	letter-spacing: 0.1em;
	padding: 4px 10px;
	border-radius: 2px;
	z-index: 2;
	font-family: 'Inter', -apple-system, sans-serif;
	font-weight: 500;
}

.wks-work__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(184, 153, 104, 0.95);
	color: #0a1628;
	margin-right: 8px;
	transition: transform 0.3s ease, background 0.3s ease;
	flex-shrink: 0;
}

.wks-work:hover .wks-work__play {
	transform: scale(1.1);
	background: #d4c4a0;
}

.wks-work__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
}

.wks-work__tag {
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 10px;
	letter-spacing: 0.08em;
	color: rgba(184, 153, 104, 0.9);
	border: 1px solid rgba(184, 153, 104, 0.4);
	padding: 3px 9px;
	border-radius: 2px;
	background: rgba(10, 22, 40, 0.02);
	text-transform: none;
}

/* button タグ用のリセット（カードトリガー） */
button.wks-work__link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	width: 100%;
	text-align: inherit;
	cursor: pointer;
	display: block;
}

/* ===========================================
 * もっと見るボタン
 * =========================================== */

.wks-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 80px;
	padding-bottom: 40px;
}

.wks-loadmore__btn {
	font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
	background: transparent;
	border: 1px solid rgba(184, 153, 104, 0.5);
	color: #b89968;
	padding: 18px 56px;
	font-size: 14px;
	letter-spacing: 0.15em;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	display: inline-flex;
	align-items: center;
	gap: 14px;
	position: relative;
	overflow: hidden;
}

.wks-loadmore__btn:hover {
	background: #b89968;
	color: #0a1628;
	border-color: #b89968;
	letter-spacing: 0.2em;
}

.wks-loadmore__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.wks-loadmore__count {
	font-size: 11px;
	color: rgba(184, 153, 104, 0.7);
	font-family: 'Inter', -apple-system, sans-serif;
	letter-spacing: 0.05em;
}

.wks-loadmore__btn:hover .wks-loadmore__count {
	color: rgba(10, 22, 40, 0.6);
}

/* ===========================================
 * モーダル（動画 / 画像）
 * =========================================== */

.wks-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wks-modal[hidden] {
	display: none;
}

.wks-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.wks-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 10, 20, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
}

.wks-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 1280px;
	max-height: calc(100vh - 80px);
	background: #0a1628;
	border: 1px solid rgba(184, 153, 104, 0.2);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	transform: scale(0.95);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wks-modal.is-open .wks-modal__dialog {
	transform: scale(1);
}

.wks-modal__close {
	position: absolute;
	top: -52px;
	right: 0;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(184, 153, 104, 0.4);
	color: #b89968;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border-radius: 50%;
}

.wks-modal__close:hover {
	background: #b89968;
	color: #0a1628;
	transform: rotate(90deg);
}

.wks-modal__body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.wks-modal__body iframe,
.wks-modal__body video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wks-modal__body img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #0a1628;
}

.wks-modal__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(184, 153, 104, 0.6);
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 12px;
	letter-spacing: 0.2em;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* スクロールロック */
body.wks-modal-open {
	overflow: hidden;
}

/* ===========================================
 * モバイル最適化
 * =========================================== */

@media (max-width: 768px) {
	.wks-modal {
		padding: 16px;
	}
	.wks-modal__close {
		top: -44px;
		width: 36px;
		height: 36px;
	}
	.wks-loadmore__btn {
		padding: 14px 36px;
		font-size: 12px;
	}
	.wks-work__play {
		width: 40px;
		height: 40px;
	}
	.wks-work__note {
		font-size: 9px;
		padding: 3px 8px;
	}
}

/* ===========================================
 * プレースホルダー：新カテゴリ追加分（v1.9.228 用念のため定義）
 * =========================================== */

.wks-work__placeholder--unknown {
	background: linear-gradient(135deg, #0a1628 0%, #2a3550 100%);
}
