/*
 *  カテゴリー
 */
.categories-wrapper {
	background-color: #f2f2f2;
	border-bottom: 1px solid #ccc;
}
.categories {
	display: flex;
	flex-wrap: wrap;
	flex-basis: 0;
	padding: 0 1px;
	gap: 1px;
	background-color: #ccc;
}
.category {
	display: block;
	flex-grow: 1;
	padding: 0.25em 0.5em;
	text-align: center;
	color: var(--text-link-color);
	background-color: #f2f2f2;
}
.category:visited {
	color: var(--text-link-color);
}
.category:hover {
	background-color: var(--text-link-hover-color);
	color: white;
}
.category.active {
	background-color: var(--text-link-hover-color);
	color: white;
}
.category .label {
	font-size: 75%; /* 16px -> 12px */
}

/*
 *  カード
 */
.card-container {
	display: flex;
	flex-wrap: wrap;
	flex-basis: 0;
	padding: 0;
	gap: 0;
	position: relative;
}
.card-erase-horizontal-border {
	position: absolute;
	box-sizing: border-box;
	width: 100%;
	height: 2px;
	background-color: var(--main-background-color);
}
.card-erase-vertical-border {
	position: absolute;
	box-sizing: border-box;
	width: 2px;
	height: 100%;
	background-color: var(--main-background-color);
}

.card {
	flex-grow: 1;
	width: clamp(0px, 176px, 100vw);
	box-sizing: border-box;
	background-color: #f2f2f2;
	padding: 16px min(16px, 2vw);
	border: 1px solid var(--main-background-color);
}
.card.hidden {
	overflow: hidden;
	max-height: 0;
	margin: 0;
	padding: 0;
	border-top: none;
	border-left: none;
}

.card .date {
	padding-bottom: 12px;
	font-size: 14px;
	line-height: 1;
	color: #808080;
}

.card img {
	display: block;
	box-sizing: border-box;
	object-fit: cover;
	aspect-ratio: 16 / 10;
	width: 100%;
	height: auto;
	margin: auto;
}
.card img {
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.card img:hover {
	box-shadow: 0 7px 28px rgba(0,0,0,0.25), 0 5px 10px rgba(0,0,0,0.22);
	transform: translateY(-4px);
}
.card img:active {
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transform: translateY(0px);
	transition: transform 0.1s, box-shadow 0.1s;
}

.card .title {
	display: block;
	margin: 16px 0 0 0;
	padding: 0;
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.5;
	color: var(--text-link-color);
}
.card .title::first-letter {
	color: #555;
	font-size: 1.25rem;
	font-weight: Bold;
	color: var(--text-link-color);
}
.card .title:visited,
.card .title:visited::first-letter {
	color: var(--text-link-visited-color);
}
.card .title:hover,
.card .title:hover::first-letter {
	color: var(--text-link-hover-color);
}

/*
 * ページャー
 */
.pager {
	margin: 1em 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	flex-basis: 0;
	padding: 0;
	gap: 8px;
}
.pager .previous,
.pager .next {
	display: block;
	box-sizing: border-box;
	padding: 1em 1.5em;
	background-color: #39739d;
	color: white;
}
.pager .previous.grow,
.pager .next.grow {
	flex-grow: 1;
}
.pager .previous:visited,
.pager .next:visited {
	color: white;
}
.pager .previous:hover,
.pager .next:hover {
	color: white;
	background-color: var(--text-link-hover-color);
}
.pager .title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/*
 * 記事
 */
article .header {
	margin-block-start: 3rem;
	margin-block-end: 3rem;
}
article .header .date {
	font-size: 1.2rem;
	font-weight: normal;
	line-height: 1.0;
	font-style: italic;
}
article .header .category {
	display: inline-block;
	vertical-align: top;
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.0;
	background-color: #eeeeee;
	border-radius: 0.2rem;
	padding: 0.5rem;
	text-decoration: none;
	color: #2573b8;
	margin-block-end: 0.25rem;
}
article .header .category:hover {
	color: var(--text-link-hover-color);
}
article .header .title {
	margin-block-start: 0;
	margin-block-end: 0;
	font-size: 2rem; /* 16px -> 32px */
	font-weight: bold;
	line-height: 1.2;
}
article .header .title::first-letter {
	font-size: 3rem;
}
