@charset "UTF-8";

/**
 * ハードピストン名鑑 投稿ページ
 * ページ固有部分は .hp-single-page 内に限定し、Toolkit本体は編集しない。
 */

.hp-single-page {
	background: var(--hp-content-bg);
}

.hp-single-page .hp-header {
	background: linear-gradient(180deg, rgba(24, 27, 29, 0.72), transparent);
}

.hp-single {
	min-height: 100vh;
	background: var(--hp-content-bg);
}

.hp-single__shell {
	width: min(calc(100% - 48px), 960px);
	margin-inline: auto;
}

.hp-single__masthead {
	position: relative;
	overflow: hidden;
	padding: calc(var(--hp-header-height) + 46px) 0 48px;
	background:
		radial-gradient(ellipse at 16% 52%, rgba(255, 255, 255, 0.92), transparent 34%),
		radial-gradient(ellipse at 82% 24%, rgba(255, 255, 255, 0.58), transparent 26%),
		linear-gradient(124deg, #858b8f 0%, #d8dcde 36%, #b4b9bc 68%, #72777b 100%);
	color: var(--hp-text);
}

.hp-single__masthead::before,
.hp-related::before,
.hp-adjacent::before {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 28% 25%, rgba(255, 255, 255, 0.52), transparent 25%),
		radial-gradient(ellipse at 70% 72%, rgba(72, 77, 81, 0.18), transparent 33%),
		linear-gradient(98deg, transparent 0 12%, rgba(255, 255, 255, 0.18) 28%, transparent 48% 100%);
	content: "";
	pointer-events: none;
	opacity: 0.8;
}

.hp-single__masthead::after {
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--hp-accent-border), transparent);
	content: "";
}

.hp-single__masthead .hp-single__shell,
.hp-related .hp-single__shell,
.hp-adjacent .hp-single__shell {
	position: relative;
	z-index: 1;
}

.hp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-bottom: 26px;
	color: #45494c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.hp-breadcrumb a {
	transition: color 170ms ease;
}

.hp-breadcrumb a:hover {
	color: var(--hp-accent);
}

.hp-breadcrumb span[aria-current="page"] {
	overflow: hidden;
	color: var(--hp-text-muted);
	text-overflow: ellipsis;
}

.hp-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.hp-single__tag {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 28px;
	padding: 4px 11px;
	border: 1px solid rgba(34, 36, 38, 0.10);
	border-radius: 999px;
	background: rgba(246, 247, 248, 0.68);
	color: #45494d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
	transition: border-color 170ms ease, color 170ms ease, background-color 170ms ease;
}

.hp-single__tag:hover {
	border-color: var(--hp-accent-border);
	color: var(--hp-accent);
}

.hp-single__tag--accent {
	border-color: var(--hp-accent-border);
	background: var(--hp-accent-soft);
	color: #b90d43;
}

.hp-single__title {
	max-width: 880px;
	margin: 0;
	padding-left: 20px;
	border-left: 4px solid var(--hp-accent);
	color: #202326;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 850;
	letter-spacing: 0.02em;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hp-single__article {
	padding: 42px 0 64px;
	background:
		linear-gradient(180deg, rgba(210, 213, 216, 0.28), transparent 80px),
		var(--hp-content-bg);
}

.hp-single__blocks {
	color: var(--hp-text);
	font-size: 16px;
	line-height: 1.9;
}

.hp-single__blocks > * {
	max-width: 100%;
}

.hp-single__toolkit-section {
	width: 100%;
}

.hp-single__blocks > * + * {
	margin-top: 32px;
}

.hp-single__blocks > p,
.hp-single__blocks > ul,
.hp-single__blocks > ol,
.hp-single__blocks > blockquote,
.hp-single__blocks > h2,
.hp-single__blocks > h3,
.hp-single__blocks > h4 {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

.hp-single__blocks h2,
.hp-single__blocks h3,
.hp-single__blocks h4 {
	color: var(--hp-text);
	line-height: 1.5;
}

.hp-single__blocks h2 {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hp-border);
	font-size: clamp(23px, 3vw, 30px);
}

.hp-single__blocks h2::after {
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 12px;
	background: var(--hp-accent);
	content: "";
}

.hp-single__blocks a:not([class*="hpt-"]) {
	color: #b70e42;
	text-decoration: underline;
	text-decoration-color: var(--hp-accent-border);
	text-underline-offset: 3px;
}

.hp-single__blocks img {
	height: auto;
}

.hp-single__blocks blockquote {
	padding: 18px 22px;
	border-left: 3px solid var(--hp-accent);
	background: #fff;
}

.hp-single__page-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

/* Toolkit側のHTMLは変更せず、記事ページ内だけ幅・色・影を調整する。 */
.hp-single-page .hpt-review-card,
.hp-single-page .hpt-timeline,
.hp-single-page .hpt-meter {
	--hpt-primary: var(--hp-accent);
	--hpt-primary-rgb: 237, 20, 91;
	--hpt-max: var(--hp-accent-hover);
	--hpt-max-rgb: 255, 43, 114;
}

.hp-single-page .hpt-review-card,
.hp-single-page .hpt-timeline {
	width: 100%;
	max-width: 100%;
	border-color: rgba(174, 179, 183, 0.28);
	border-radius: 8px;
	box-shadow:
		0 18px 34px rgba(30, 33, 35, 0.18),
		0 2px 6px rgba(30, 33, 35, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hp-single-page .hpt-review-card__content {
	padding: 28px 30px 30px;
}

.hp-single-page .hpt-review-card__meta {
	grid-template-columns: minmax(88px, 118px) 1fr;
	padding-right: 72px;
}

.hp-single-page .hpt-review-card__meters {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hp-single-page .hpt-review-card__meta-value a,
.hp-single-page .hpt-timeline a {
	color: var(--hp-accent);
}

.hp-single-page .hpt-review-card__button {
	color: #fff;
	text-decoration: none;
}

.hp-single-page .hpt-review-card__button:hover,
.hp-single-page .hpt-review-card__button:focus-visible {
	color: #fff;
}

.hp-single-page .hpt-timeline__header {
	padding: 26px 30px 0;
}

.hp-single-page .hpt-timeline__gallery {
	padding-right: 30px;
	padding-left: 30px;
}

.hp-single-page .hpt-timeline__list {
	padding: 24px 30px 30px;
}

.hp-single-page .hp-single__toolkit-section > .hpt-meter {
	max-width: 440px;
	margin-right: auto;
	margin-left: auto;
	border-radius: 8px;
	box-shadow: 0 16px 30px rgba(30, 33, 35, 0.18);
}

.hp-single__section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.hp-single__section-heading h2 {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	color: var(--hp-text);
	font-size: clamp(24px, 3vw, 31px);
	line-height: 1.3;
}

.hp-single__section-heading h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 44px;
	height: 3px;
	background: var(--hp-accent);
	content: "";
}

.hp-single__eyebrow {
	margin: 0 0 4px;
	color: var(--hp-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.hp-related {
	position: relative;
	overflow: hidden;
	padding: 58px 0 62px;
	background:
		radial-gradient(ellipse at 80% 18%, rgba(255, 255, 255, 0.74), transparent 26%),
		linear-gradient(130deg, #d1d5d7, #f1f2f3 42%, #bdc2c5);
}

.hp-related__controls {
	display: flex;
	gap: 8px;
}

.hp-related__controls button {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(34, 36, 38, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.70);
	color: var(--hp-text);
	cursor: pointer;
	transition: border-color 170ms ease, color 170ms ease, background-color 170ms ease;
}

.hp-related__controls button:hover {
	border-color: var(--hp-accent);
	background: #fff;
	color: var(--hp-accent);
}

.hp-related__controls button:disabled {
	cursor: default;
	opacity: 0.35;
}

.hp-related__viewport {
	margin: -5px;
	padding: 5px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--hp-metal) transparent;
	scroll-snap-type: x mandatory;
	touch-action: pan-x pan-y;
	cursor: grab;
}

.hp-related__viewport.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.hp-related__track {
	display: flex;
	gap: 16px;
}

.hp-related-card {
	display: flex;
	flex: 0 0 calc((100% - 48px) / 4);
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(114, 121, 126, 0.24);
	border-top: 3px solid var(--hp-accent);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.90);
	box-shadow: 0 7px 18px rgba(49, 54, 58, 0.08);
	scroll-snap-align: start;
	transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.hp-related-card:hover {
	border-color: var(--hp-accent-border);
	box-shadow: 0 10px 22px rgba(49, 54, 58, 0.13);
	transform: translateY(-2px);
}

.hp-related-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #aeb3b7;
}

.hp-related-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.hp-related-card:hover .hp-related-card__media img {
	transform: scale(1.025);
}

.hp-related-card__placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 42% 33%, rgba(255, 255, 255, 0.62), transparent 17%),
		radial-gradient(ellipse at 50% 85%, rgba(255, 255, 255, 0.35), transparent 28%),
		linear-gradient(135deg, #92989c, #d4d7d9 50%, #90969a);
	filter: saturate(0);
}

.hp-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 15px 15px 16px;
}

.hp-related-card__code {
	margin: 0 0 5px;
	color: var(--hp-accent);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.08em;
}

.hp-related-card h3 {
	display: -webkit-box;
	min-height: 3em;
	margin: 0;
	overflow: hidden;
	color: var(--hp-text);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hp-related-card__score {
	margin: 10px 0 0;
	color: var(--hp-accent);
	font-size: 13px;
	font-weight: 800;
}

.hp-related-card__score > span:first-child {
	font-size: 20px;
}

.hp-related-card__score small {
	color: var(--hp-text-muted);
	font-size: 10px;
}

.hp-related-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: auto 0 0;
	padding: 12px 0 0;
	list-style: none;
}

.hp-related-card__tags li {
	max-width: 100%;
	padding: 3px 7px;
	overflow: hidden;
	border: 1px solid var(--hp-accent-border);
	background: var(--hp-accent-soft);
	color: #a80c3d;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hp-adjacent {
	position: relative;
	overflow: hidden;
	padding: 48px 0 62px;
	background:
		linear-gradient(180deg, var(--hp-content-bg), #d7dadd);
}

.hp-adjacent::before {
	opacity: 0.38;
}

.hp-adjacent__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.hp-adjacent-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--hp-border);
	border-left: 3px solid var(--hp-accent);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.78);
	transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.hp-adjacent-card:hover {
	border-color: var(--hp-accent-border);
	background: #fff;
	transform: translateY(-2px);
}

.hp-adjacent-card__media {
	position: relative;
	min-height: 126px;
	background: #abb0b4;
}

.hp-adjacent-card__media img,
.hp-adjacent-card__media span {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-adjacent-card__media span {
	background:
		radial-gradient(circle at 45% 36%, rgba(255, 255, 255, 0.5), transparent 18%),
		linear-gradient(135deg, #8b9195, #d3d6d8);
}

.hp-adjacent-card__body {
	align-self: center;
	min-width: 0;
	padding: 16px 18px;
}

.hp-adjacent-card__label {
	margin: 0 0 7px;
	color: var(--hp-text-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.hp-adjacent-card__label span,
.hp-adjacent-card__code {
	color: var(--hp-accent);
}

.hp-adjacent-card__code {
	margin: 0 0 3px;
	font-size: 12px;
	font-weight: 850;
}

.hp-adjacent-card h2 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--hp-text);
	font-size: 15px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hp-single-page .hp-footer {
	border-top-color: var(--hp-accent);
}

@media (max-width: 1024px) {
	.hp-single__shell {
		width: min(calc(100% - 40px), 920px);
	}

	.hp-related-card {
		flex-basis: calc((100% - 32px) / 3);
	}
}

@media (max-width: 768px) {
	.hp-single__masthead {
		padding-top: calc(var(--hp-header-height) + 34px);
		padding-bottom: 38px;
	}

	.hp-single__title {
		font-size: clamp(27px, 6vw, 38px);
	}

	.hp-single__article {
		padding-top: 30px;
		padding-bottom: 48px;
	}

	.hp-single-page .hpt-review-card__content {
		padding: 22px 20px 24px;
	}

	.hp-single-page .hpt-review-card__meters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hp-single-page .hpt-timeline__header {
		padding: 22px 20px 0;
	}

	.hp-single-page .hpt-timeline__gallery {
		padding-right: 20px;
		padding-left: 20px;
	}

	.hp-single-page .hpt-timeline__list {
		padding: 22px 20px 24px;
	}

	.hp-related-card {
		flex-basis: calc((100% - 16px) / 2);
	}

	.hp-adjacent-card {
		grid-template-columns: 102px minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.hp-single__shell {
		width: calc(100% - 32px);
	}

	.hp-single__masthead {
		padding-top: calc(var(--hp-header-height) + 24px);
		padding-bottom: 30px;
	}

	.hp-breadcrumb {
		gap: 6px;
		margin-bottom: 20px;
	}

	.hp-breadcrumb span[aria-current="page"] {
		max-width: 44vw;
	}

	.hp-single__tags {
		gap: 6px;
		margin-bottom: 15px;
	}

	.hp-single__tag {
		min-height: 26px;
		padding: 4px 9px;
		font-size: 11px;
	}

	.hp-single__title {
		padding-left: 14px;
		border-left-width: 3px;
		font-size: clamp(25px, 7.3vw, 32px);
		line-height: 1.4;
	}

	.hp-single__blocks {
		font-size: 15px;
		line-height: 1.85;
	}

	.hp-single__blocks > * + * {
		margin-top: 26px;
	}

	.hp-single-page .hpt-review-card,
	.hp-single-page .hpt-timeline,
	.hp-single-page .hp-single__toolkit-section > .hpt-meter {
		border-radius: 6px;
	}

	.hp-single-page .hpt-review-card__content {
		padding: 20px 16px 22px;
	}

	.hp-single-page .hpt-review-card__meta {
		grid-template-columns: 84px 1fr;
		padding-right: 50px;
	}

	.hp-single-page .hpt-review-card__meta-label {
		font-size: 13px;
		white-space: nowrap;
	}

	.hp-single-page .hpt-review-card__meters {
		grid-template-columns: 1fr;
	}

	.hp-single-page .hpt-timeline__header {
		padding: 20px 16px 0;
	}

	.hp-single-page .hpt-timeline__gallery {
		padding-right: 16px;
		padding-left: 16px;
	}

	.hp-single-page .hpt-timeline__list {
		padding: 20px 16px 22px;
	}

	.hp-related {
		padding: 46px 0 50px;
	}

	.hp-single__section-heading {
		align-items: center;
		margin-bottom: 18px;
	}

	.hp-single__section-heading h2 {
		font-size: 24px;
	}

	.hp-related__controls button {
		width: 38px;
		height: 38px;
	}

	.hp-related-card {
		flex-basis: 78%;
	}

	.hp-related-card__body {
		padding: 14px;
	}

	.hp-adjacent {
		padding: 36px 0 46px;
	}

	.hp-adjacent__grid {
		grid-template-columns: 1fr;
	}

	.hp-adjacent-card {
		grid-template-columns: 96px minmax(0, 1fr);
	}
}

@media (max-width: 380px) {
	.hp-single__title {
		font-size: 25px;
	}

	.hp-related-card {
		flex-basis: 82%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-single-page *,
	.hp-single-page *::before,
	.hp-single-page *::after {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}
