/* ヘッダー(hero)用CSS。カラー変数はcontent.cssで定義されているため、content.cssの後に読み込むこと */

.hero {
	position: sticky;
	z-index: 10;
	text-align: center;
	padding: 1.5rem 0 0;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.hero h1 {
	font-size: 2.5rem;
	margin: 0;
	letter-spacing: 0.02em;
}

.hero-tagline {
	color: var(--color-muted);
	margin: 0;
}

@supports (animation-timeline: scroll()) {
	.hero {
		top: 0;
		animation: hero-collapse linear both;
		animation-timeline: scroll();
		animation-range: 0 4.5rem;
	}

	.hero h1 {
		animation: hero-title-shrink linear both;
		animation-timeline: scroll();
		animation-range: 0 4.5rem;
	}

	.hero-tagline {
		animation: hero-tagline-shrink linear both;
		animation-timeline: scroll();
		animation-range: 0 4.5rem;
	}
}

@keyframes hero-collapse {
	to {
		padding-top: 0.5rem;
	}
}

@keyframes hero-title-shrink {
	to {
		font-size: 1.4rem;
	}
}

@keyframes hero-tagline-shrink {
	to {
		font-size: 0.6rem;
		opacity: 0.85;
	}
}

.hero-links {
	text-align: center;
	padding: 0.75rem 1.5rem;
}

.hero-links a {
	color: var(--color-href);
	text-decoration: none;
	margin: 0 0.75rem;
	font-weight: 600;
}

.hero-links .current {
	color: var(--color-muted);
	margin: 0 0.75rem;
	font-weight: 600;
}

.hero-links a:hover {
	text-decoration: underline;
}