@charset "UTF-8";

/* --------------------------------
	Layout
-------------------------------- */

.topics {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 120px;
	box-sizing: border-box;
}

.site-main--topics {
	width: 100%;
	max-width: none;
	padding: 0;
	box-sizing: border-box;
}

/* --------------------------------
	Header
-------------------------------- */

.topics-header {
	padding: 55px 0 0;
}

.topics-title {
	margin: 0 0 32px;
	padding-bottom: 55px;
	border-bottom: 1px solid var(--color-grn);
	color: var(--color-grn);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

/* --------------------------------
Category
-------------------------------- */

.topics-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 72px 40px;
	border-bottom: 1px solid var(--color-grn);
}

.topics-category-nav {
	flex: 1;
}

/* PC */

.topics-category-nav__pc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topics-category-nav__pc li {
	margin: 0;
	padding: 0;
}

.topics-category-nav__pc li:first-child a {
	min-width: 118px;
}

.topics-category-nav__pc a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 128px;
	height: 64px;
	padding: 0 24px;
	border: 2px solid var(--color-grn);
	border-radius: 999px;
	background: #fff;
	color: var(--color-grn);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: var(--transition);
}

.topics-category-nav__pc a:hover {
	border-color: var(--color-hover);
	background: var(--color-hover);
	color: var(--color-yel);
}

.topics-category-nav__pc a.is-current {
	background: var(--color-grn);
	color: #fff;
}

/* SP */

.topics-category-nav__sp {
	display: none;
}

/* --------------------------------
	Search
-------------------------------- */

.topics-tag-button {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	height: 64px;
	padding: 0 24px;
	border: none;
	border-radius: 999px;
	background: var(--color-lgrn);
	color: var(--color-grn);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: var(--transition);
}

.topics-tag-button:hover {
	background: var(--color-hover);
	color: var(--color-yel);
}

.topics-tag-button__icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
}



/* --------------------------------
	Topics List
-------------------------------- */

.topics-list {
}

.topics-item {
	position: relative;
	border-bottom: 1px solid var(--color-grn);
	transition: background-color var(--transition);
	background: #fff;
	padding: 20px 96px 20px 20px;
}

.topics-item:hover {
	background: #f6ffcc;
}

/* 記事全体の透明リンク */

.topics-item__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* 表示コンテンツ */

.topics-item__content {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 320px 1fr;
	column-gap: 40px;
	pointer-events: none;
}

/* Meta */

.topics-item__meta {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	align-items: center;
	column-gap: 20px;
}

.topics-item__icon {
	display: block;
	width: 80px;
	height: 80px;
	background: var(--color-grn);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.topics-item__category {
	color: var(--color-grn);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.topics-item__date {
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	color: var(--color-text);
	margin-left: auto;
}

/* Body */

.topics-item__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.topics-item__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.333;
}

/* Tags */

.topics-item__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	pointer-events: auto;
}

.topics-item__tags li {
	margin: 0;
	padding: 0;
}

.topics-item__tags a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--color-lgrn);
	color: var(--color-grn);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: var(--transition);
}

.topics-item__tags a:hover,
.topics-item__tags a.is-current {
	background: var(--color-grn);
	color: var(--color-yel);
}



/* --------------------------------
Topics (SP)
-------------------------------- */

@media (max-width: 767px) {

	.topics {
		padding-right: 20px;
		padding-left: 20px;
	}
	
	.topics-header,
	.topics-list {
		width: calc(100% + 40px);
		margin-right: -20px;
		margin-left: -20px;
	}

	.topics-header{
		padding-top: 26px;
	}

	.topics-title{
		margin-bottom:24px;
		padding-bottom:24px;
		font-size:24px;
	}

	.topics-filter {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 0 0 32px;
		border-bottom: 1px solid var(--color-grn);
		padding-right: 20px;
		padding-left: 20px;
	}
	
	/* PCカテゴリーを非表示 */
	
	.topics-category-nav__pc {
		display: none;
	}
	
	/* SPカテゴリーを表示 */
	
	.topics-category-nav__sp {
		position: relative;
		display: block;
		width: 100%;
	}
	
	/* 閉じた状態 */
	
	.topics-category-toggle {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
		height: 56px;
		padding: 0 24px;
		border: 0;
		border-radius: 28px;
		background: var(--color-grn);
		color: #fff;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		text-align: left;
		cursor: pointer;
	}
	
	.topics-category-toggle__label {
		display: block;
	}
	
	/* 右側の矢印 */
	
	.topics-category-toggle__arrow {
		position: absolute;
		top: 50%;
		right: 24px;
		width: 10px;
		height: 10px;
		border-right: 1px solid #fff;
		border-bottom: 1px solid #fff;
		transform: translateY(-70%) rotate(45deg);
		transition: transform var(--transition);
	}


	/* ---------- Category menu ---------- */
	
	.topics-category-menu {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 10;
		display: none;
		width: 100%;
		margin: 0;
		padding: 8px 24px;
		border-radius: 28px;
		background: var(--color-grn);
		box-shadow: 0 5px 10px rgb(0 0 0 / 25%);
		list-style: none;
		box-sizing: border-box;
	}
	.topics-category-menu::after {
		content: "";
		position: absolute;
		top: 28px;
		right: 24px;
		width: 10px;
		height: 10px;
		border-top: 1px solid #fff;
		border-left: 1px solid #fff;
		transform: rotate(45deg);
	}
	/* JSで開いた状態 */
	
	.topics-category-nav__sp.is-open .topics-category-menu {
		display: block;
	}
	
	.topics-category-menu li {
		margin: 0;
		padding: 0;
		border-bottom: 1px solid rgb(255 255 255 / 40%);
	}
	
	.topics-category-menu li:last-child {
		border-bottom: 0;
	}
	
	.topics-category-menu a {
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 48px;
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.4;
		text-decoration: none;
	}
	
	/* 左側の○ */
	
	.topics-category-menu__check {
		position: relative;
		flex-shrink: 0;
		width: 28px;
		height: 28px;
		border: 1px solid #fff;
		border-radius: 50%;
		box-sizing: border-box;
	}
	
	/* 選択中のチェック */
	
	.topics-category-menu .is-current .topics-category-menu__check::after {
		content: "";
		position: absolute;
		top: 8px;
		left: 6px;
		width: 13px;
		height: 8px;
		border-left: 3px solid #fff;
		border-bottom: 3px solid #fff;
		transform: rotate(-45deg);
	}
	
	/* ---------- Keyword ---------- */
	
	.topics-tag-button {
		justify-content: space-between;
		width: 100%;
		height: 56px;
		padding: 0 24px;
		font-size: 14px;
	}
	
	.topics-tag-button__icon {
		width: 28px;
		height: 28px;
	}

	/* ---------- List ---------- */

	.topics-item{
		padding: 20px;
	}

	.topics-item__content{
		display:block;
	}

	.topics-item__meta{
		display:flex;
		align-items:center;
		gap:10px;
		margin-bottom:18px;
	}

	.topics-item__icon{
		width:64px;
		height:64px;
		flex:none;
	}

	.topics-item__category{
		font-size:14px;
	}

	.topics-item__date{
		margin-left:auto;
		font-size:14px;
	}

	.topics-item__body{
		display:block;
	}

	.topics-item__title{
		margin:0;
		font-size:18px;
		line-height:1.5555;
	}

	.topics-item__tags{
		margin-top:18px;
		gap:8px;
	}

	.topics-item__tags a{
		min-height:24px;
		padding:0 12px;
		font-size:14px;
	}

}
