/* Loaded only on the beginner guide; other editorial pages keep their layout. */
.story-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.story-hero__actions a {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid var(--ink);
	color: var(--white);
	background: var(--ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	text-decoration: none;
}
.story-hero__actions .story-hero__action--secondary {
	color: var(--ink);
	background: var(--paper);
}
.story-hero__actions a:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 4px;
}
#guide-opening-choices-title,
#guide-quick-comparison {
	scroll-margin-top: calc(var(--header-height) + 20px);
}
@media (max-width: 640px) {
	.story-hero__actions { gap: 8px; }
	.story-hero__actions a { min-width: 0; flex: 1; padding: 10px 12px; }
	.story-content .guide-quick-table {
		display: block;
		width: 100%;
		overflow: visible;
		white-space: normal;
	}
	.story-content .guide-quick-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.story-content .guide-quick-table tbody { display: grid; gap: 12px; }
	.story-content .guide-quick-table tbody tr {
		display: grid;
		min-width: 0;
		padding: 14px 16px;
		border: 1px solid var(--line);
		background: var(--white);
	}
	.story-content .guide-quick-table td {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: baseline;
		gap: 12px;
		padding: 7px 0;
		border: 0;
		font-size: 14px;
		line-height: 1.75;
		overflow-wrap: anywhere;
	}
	.story-content .guide-quick-table td::before {
		color: var(--ink-soft);
		font-size: 10px;
		font-weight: 800;
	}
	.story-content .guide-quick-table td:nth-child(1)::before { content: "気分"; }
	.story-content .guide-quick-table td:nth-child(2)::before { content: "作品"; }
	.story-content .guide-quick-table td:nth-child(3)::before { content: "選ぶポイント"; }
	.story-content .guide-quick-table td a { display: flex; min-height: 44px; align-items: center; }
}

/* Keep the image card and its official link together on narrow screens. */
.guide-opening-choices__card {
	display: grid;
	grid-template-rows: 1fr auto;
	min-width: 0;
	background: var(--paper-deep);
}
.guide-opening-choices__detail {
	display: grid;
	align-content: start;
	padding-bottom: 12px;
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
}
.guide-opening-choices__detail small {
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.guide-opening-choices__fanza {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin: 0 14px 14px;
	padding: 8px 12px;
	color: var(--white);
	background: var(--ink);
	border-radius: 3px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}
.guide-opening-choices__card a:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: -3px;
}
.story-content .guide-opening-choices__pr {
	margin: 0 0 10px;
	color: var(--ink-soft);
	font-size: 12px;
	line-height: 1.5;
}
.guide-opening-choices__pr strong {
	margin-right: 4px;
}
@media (max-width: 640px) {
	.guide-opening-choices { margin-top: 24px; }
	.guide-opening-choices__header { margin-bottom: 12px; }
	.guide-opening-choices__card {
		width: 76vw;
		max-width: 310px;
		flex: 0 0 76vw;
		scroll-snap-align: start;
	}
}
