/**
 * Works entry header — breadcrumb + company logo
 * PC: Figma Frame 95 / 133:914
 * SP breadcrumb: Figma Frame 242 / 201:3277（42× / pt14 pl24）
 * SP brand-row: Figma Frame 243 / 201:3285（35× / px32 py10 / label 9px tracking 5.4）
 * SP title: Figma Frame 244 / 201:3289（51× / pin 29.5×36.9 / title 19.663px left34）
 */

.hds-works-entry {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.hds-works-kv {
	position: relative;
	width: 100%;
	margin: 0 0 2rem;
	padding: 0;
}

.hds-works-kv > * + * {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

.hds-works-entry__breadcrumb {
	margin: 0 0 10px;
}

.hds-works-entry__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 0.8;
	color: #333333;
	font-family: "Noto Serif JP", "EB Garamond", serif;
	font-size: calc(8px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 14px;
}

.hds-works-entry__breadcrumb-item {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.hds-works-entry__breadcrumb-item a {
	color: inherit;
	text-decoration: none;
}

.hds-works-entry__breadcrumb-item a:hover,
.hds-works-entry__breadcrumb-item a:focus {
	opacity: 0.7;
}

.hds-works-entry__breadcrumb-sep {
	margin: 0 0.2em;
	opacity: 0.8;
}

.hds-works-entry__breadcrumb-item:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 6px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 6l6 6-6 6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 6l6 6-6 6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hds-works-entry__brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 65px;
	margin: 0 0 4px;
	box-sizing: border-box;
}

.hds-works-entry__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hds-works-entry__logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 83.67px;
	min-height: 64.84px;
	flex-shrink: 0;
}

.hds-works-entry__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 65px;
	object-fit: contain;
	object-position: center;
}

.hds-works-entry__logo-text {
	color: #231815;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: left;
}

.hds-works-entry__project-label {
	margin: 0;
	color: #333333;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-align: right;
	white-space: nowrap;
}

.hds-works-entry__project-label-char {
	display: inline-block;
	opacity: 0;
	transform: translateX(-0.55em);
	animation: hds-works-label-char 0.4s ease-out forwards;
	animation-delay: calc(0.2s + (var(--i, 0) * 0.07s));
}

.hds-works-entry__project-label-char.is-space {
	width: 0.4em;
}

@keyframes hds-works-label-char {
	from {
		opacity: 0;
		transform: translateX(-0.55em);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hds-works-entry__project-label-char {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* Title + pin — Figma Group 102 (188:35821) */
.hds-works-entry__title-wrap {
	position: relative;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	box-sizing: border-box;
}

.hds-works-entry__cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.hds-works-entry__cat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid #333333;
	border-radius: 40px;
	background-color: rgba(255, 255, 255, 0.45);
	color: #333333;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 2.1;
	white-space: nowrap;
}

.hds-works-entry__cat a {
	color: inherit;
	text-decoration: none;
}

.hds-works-entry__cat a:hover,
.hds-works-entry__cat a:focus {
	opacity: 0.7;
}

.hds-works-entry__pin {
	position: absolute;
	left: -44px;
	top: 6px;
	display: block;
	width: 64px;
	height: 80px;
	object-fit: contain;
	pointer-events: none;
	z-index: 1;
}

/* Match post-content paragraph (PC 16px / SP 14px) */
.hds-works-entry__subtitle {
	margin: 0;
	padding: 0;
	color: #333333;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(16px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.154px;
	word-break: break-word;
}

.hds-works-entry__subtitle + .hds-works-entry__title {
	margin-top: 0;
}

.hds-works-entry__title {
	margin: 0;
	padding: 0;
	color: #333333;
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(36px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1.5;
	word-break: break-word;
	font-feature-settings: "palt" 1;
	font-variant-east-asian: proportional-width;
}

@media screen and (min-width: 782px) {
	.hds-shell--works .hds-shell__main:has(.hds-works-featured) {
		position: relative;
		container-type: inline-size;
		container-name: hds-works-main;
	}

	.hds-shell--works .hds-works-kv:has(.hds-works-featured) {
		margin-bottom: 3rem;
	}

	.hds-shell--works .hds-works-kv:not(:has(.hds-works-featured)) {
		display: none;
	}

	.hds-shell--works .hds-shell__main:has(.hds-works-featured) .hds-works-entry__breadcrumb {
		position: absolute;
		left: 20px;
		top: calc(100cqi * 7 / 16 + 14px);
		z-index: 3;
		width: max-content;
		max-width: calc(100cqi - 40px);
		margin: 0;
		padding: 0;
	}

	.hds-shell--works .hds-shell__main:not(:has(.hds-works-featured)) .hds-works-entry__breadcrumb {
		position: static;
		left: auto;
		top: auto;
		z-index: auto;
		width: auto;
		max-width: none;
		margin: 0 0 10px;
		padding: 14px 0 0;
		box-sizing: border-box;
	}
}

@media screen and (max-width: 781px) {
	/* Figma Frame 242: 少し左・上へ（PCは変更しない） */
	.hds-works-entry__breadcrumb {
		height: 36px;
		margin: 0 0 6px;
		padding: 8px 24px 0;
		box-sizing: border-box;
		overflow: hidden;
	}

	.hds-works-entry__breadcrumb-list {
		flex-wrap: nowrap;
		width: max-content;
		max-width: none;
	}

	.hds-works-entry__breadcrumb-item {
		white-space: nowrap;
	}

	/* Figma Frame 243 (201:3285): 402×35 / px32 py10 / 内側15px行 */
	.hds-works-entry__brand-row {
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		height: auto;
		min-height: 35px;
		padding: 10px 32px;
		box-sizing: border-box;
		overflow: visible;
	}

	.hds-works-entry__logos {
		gap: 8px;
	}

	.hds-works-entry__logo {
		width: 83.67px;
		height: 64.84px;
		min-height: 0;
		/* 行高15pxに対してロゴが上下にはみ出す（Figmaどおり） */
	}

	.hds-works-entry__logo img {
		width: 100%;
		max-width: none;
		height: auto;
		max-height: none;
		aspect-ratio: 78 / 60;
		object-fit: contain;
		object-position: center;
	}

	.hds-works-entry__logo-text {
		font-size: calc(9px * var(--hds-type-scale, 1));
		letter-spacing: 5.4px;
		line-height: 1.5;
	}

	.hds-works-entry__project-label {
		font-family: "EB Garamond", Garamond, "Noto Serif JP", serif;
		font-size: calc(9px * var(--hds-type-scale, 1));
		font-weight: 400;
		letter-spacing: 0.18em;
		line-height: 1.5;
		color: #333333;
	}

	/* Figma Frame 244（SP）: title 22px / 下マージンなし */
	.hds-works-entry__title-wrap {
		min-height: 51px;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		overflow: visible;
	}

	.hds-works-entry__pin {
		left: 14px;
		top: 14.13px;
		width: 29.494px;
		height: 36.867px;
	}

	.hds-works-entry__subtitle {
		margin: 0;
		padding: 8px 31px 0 32px;
		box-sizing: border-box;
		font-family: "Noto Serif JP", serif;
		font-size: calc(14px * var(--hds-type-scale, 1));
		line-height: 1.5;
		letter-spacing: 1.12px;
	}

	.hds-works-entry__title {
		padding: 8px 31px 0 32px;
		box-sizing: border-box;
		color: #333333;
		font-family: "Noto Serif JP", "EB Garamond", Garamond, serif;
		font-size: 22px;
		font-weight: 400;
		line-height: 1.5;
		margin-bottom: 0;
	}

	.hds-works-entry__subtitle + .hds-works-entry__title {
		padding-top: 2px;
	}

	.hds-works-entry__cats {
		gap: 8px;
		margin: 10px 0 24px;
		padding: 0 32px;
	}

	.hds-works-entry__cat {
		padding: 0 12px;
		font-size: calc(12px * var(--hds-type-scale, 1));
	}
}

/* Hidden for now; markup stays so these can be restored. */
.hds-works-entry__pin,
.hds-works-entry__project-label {
	display: none;
}
