/** @format */

:root {
	--ink: #1c1c1c;
	--sub: #66665f;
	--paper: #fdfdfb;
	--line: #e4e2db;
	--accent: #2a5674;
	--accent-soft: #eef3f6;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	background: var(--paper);
	color: var(--ink);
	line-height: 1.9;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 22px;
}

.page-head {
	padding: 56px 0 36px;
	border-bottom: 1px solid var(--line);
}
.page-title {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-weight: 700;
	font-size: clamp(24px, 5.4vw, 34px);
	letter-spacing: 0.04em;
	line-height: 1.5;
	border-left: 5px solid var(--ink);
	padding-left: 18px;
}
.page-lead {
	margin-top: 18px;
	color: var(--sub);
	font-size: 15px;
}

.toc {
	padding: 28px 0 8px;
}
.toc-label {
	font-size: 12px;
	letter-spacing: 0.18em;
	color: var(--sub);
	text-transform: uppercase;
	margin-bottom: 10px;
}
.toc ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.toc a {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	background: #fff;
	transition:
		border-color 0.15s,
		background 0.15s;
}
.toc a:hover,
.toc a:focus-visible {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.toc .count {
	font-size: 12px;
	color: var(--sub);
}

.genre {
	padding: 40px 0 8px;
}
.genre-title {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.05em;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ink);
}
.genre-count {
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--sub);
	letter-spacing: 0.05em;
}
.entries {
	list-style: none;
}
.entry {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}
.entry:last-child {
	border-bottom: none;
}
.entry-name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.entry-name a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: #b8b5ac;
	text-underline-offset: 5px;
}
.entry-name a:hover,
.entry-name a:focus-visible {
	text-decoration-color: var(--ink);
}
.entry-url {
	font-size: 12.5px;
	color: var(--sub);
	margin-top: 2px;
	word-break: break-all;
	letter-spacing: 0.01em;
}
.entry-desc {
	margin-top: 8px;
	font-size: 15px;
}

.page-foot {
	margin-top: 48px;
	padding: 26px 0 56px;
	border-top: 1px solid var(--line);
	color: var(--sub);
	font-size: 13px;
}
.page-foot p + p {
	margin-top: 8px;
}
.page-foot .operator {
	margin-top: 18px;
}
.page-foot a {
	color: var(--accent);
	text-decoration: none;
}
.page-foot a:hover,
.page-foot a:focus-visible {
	text-decoration: underline;
}
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	body {
		font-size: 15.5px;
	}
	.page-head {
		padding: 40px 0 28px;
	}
	.genre {
		padding: 34px 0 4px;
	}
	.entry {
		padding: 18px 0;
	}
}
