@charset "UTF-8";


/*-------------------------------------------------
 *  アーカイブページ コンテンツヘッダー
 * --------------------------------------------------*/
.post-type-archive .l-topTitleArea {
    display: flex;
    align-items: center;
    width: 100%;	
    min-height: 11em;
    padding: 1.5em 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}


/*----- タームページ -----*/
.tax-purpose #top_title_area{
	--titleIcon_width: 80px;
}
.tax-phase #top_title_area{
	--titleIcon_width: 185px;
}

.tax-purpose #top_title_area .l-topTitleArea__img,
.tax-phase #top_title_area .l-topTitleArea__img{
    position: relative;
	max-width: var(--titleIcon_width);
	margin-right: 1rem;
}


/*-----  説明・リンクの表示 -----*/
#top_title_area .l-topTitleArea__note{
	flex: 1 0 auto;
}

#top_title_area .l-topTitleArea__note.support_link > a{
	color: #333;
	font-weight: bold;
}

@media not all and (min-width: 600px){
    #top_title_area:has(.l-topTitleArea__note) .l-topTitleArea_wrap {
    	flex-wrap: wrap;
		gap: 2rem 1rem;
		padding: 2rem var(--swl-pad_container,0);
    }
	
	#top_title_area:has(.l-topTitleArea__note) .l-topTitleArea__img{
		margin-right: 0;
	}
	
	.tax-phase #top_title_area{ /* フェーズアイコンのサイズ調整 */
		--titleIcon_width: 80px;		
	}
	.tax-phase #top_title_area .l-topTitleArea__img{
		aspect-ratio: 5 / 4;
	}
	
	#top_title_area:has(.l-topTitleArea__note) .l-topTitleArea__body{
		width: calc(100% - var(--titleIcon_width) - 1rem);
	}
	#top_title_area.l-topTitleArea__note{
		width: 100%;
	}
}


/*-------------------------------------------------
 *  支援メニュー アーカイブ・タームページ
 * --------------------------------------------------*/

/*---------- 件数表示・エリア絞り込み ----------*/
.list-filter{
	padding-bottom: 2em;
	border-bottom: var(--dash_border);
	font-weight: bold;
}
.list-filter .list-filter_inner,
.list-filter .p-filter__block{
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.list-filter .list-filter_inner > *{
	width: 30%;
}

.list-filter .list-count > span{
	font-size: 1.75em;
	line-height: 1;
}

.list-filter .p-filter__block{
	width: clamp(320px, 50vw, 400px);
}

/* セレクトボックス */
.list-filter .p-filter__select{
    width: 70%;
	height: 48px;
    flex-grow: 2;
    background: #fff;
    margin-left: 1rem;
    padding: 0.75rem 0.5rem;	
}

@media not all and (min-width: 600px){
	.list-filter .list-filter_inner{
		gap: 1.5rem;
	}
	.list-filter .list-filter_inner > *{
		width: 100%;
	}
}

/*---------- 支援メニュー記事一覧 --------------------*/

/* 記事0件のとき */
.p-termContent:has(.no-result){
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.p-termContent .no-result{
    font-size: clamp(18px, 3vw, 24px);
	font-weight: bold;
	margin-bottom: 1em;
}

/* 記事リスト */
.p-postList__support{
	--meta_size: clamp(32px, 10vw, 48px);
	display: grid;
    grid-template-columns: var(--meta_size) 1fr;
    grid-template-rows: auto 1fr;
    gap: 0px;
	background: #fff;
	border-radius: 0.5rem;
	overflow: hidden;
	margin: 0 0.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .1), 0 4px 4px -4px rgba(0, 0, 0, .1);
}

/* アイコン・エリア */
.p-postList__support .p-postList__meta{
	grid-area: 1 / 1 / 3 / 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--meta_size) / 2) 0 /*calc(var(--meta_size) / 5)*/;
    margin: 0;
	border-right: var(--dash_border);
}

.p-postList__support .p-postList__meta .purpose{
	max-width: 24px;
}
.p-postList__support .p-postList__meta .purpose-icon{
	display: block;
	margin-bottom: calc(var(--meta_size) / 5);
}

.p-postList__support .p-postList__meta .area{
    display: flex;
    flex-direction: column;
}
.p-postList__support .p-postList__meta .area-name{
	font-size: 0.9rem;
	font-weight: bold;
	letter-spacing: 5%;
	white-space: nowrap;
	margin-bottom: calc(var(--meta_size) / 5);
	-ms-writing-mode: tb-rl;
  	writing-mode: vertical-rl;
}

/* サムネイル */
.p-postList__support .p-postList__thumb{
    grid-area: 1 / 2 / 2 / 3;
}

.p-postList__support.end .p-postList__thumb::after{
	content: '申込期間終了';
    display: block;
    width: auto;
    font-size: 14px;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background: #fff;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 0.25rem;
}
.p-postList__support.end .p-postList__thumb .c-postThumb__figure::before{
    position: relative;
    background: #333;
    opacity: 0.4;
    z-index: 2;
}


/* 詳細情報 */
.p-postList__support .p-postList__body{
	font-size: clamp(12px, 2.5vw, 14px);
    grid-area: 2 / 2 / 3 / 3;	
    padding: calc(var(--meta_size) / 2);
	border-top: var(--dash_border);
}

.p-postList__support .p-postList__body .p-postList__title{
    font-size: clamp(16px, 2.5vw, 18px);
	margin-bottom: calc(var(--meta_size) / 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* 目的ラベル・状況ラベル */
.p-postList__support .p-postList__body .purpose-label,
.p-postList__support .p-postList__body .phase-label{
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	font-size: 0.9em;
    font-weight: bold;
	margin-bottom: calc(var(--meta_size) / 2);
}
.p-postList__support .p-postList__body .purpose-name{
    position: relative;
	line-height: 1;
    padding-left: 1.1em;
}
.p-postList__support .p-postList__body .purpose-name::before{
	content: "";
    display: block;
    width: 0.8em;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--data_color, var(--color_main));
	border-radius: 50%;
}

.p-postList__support .p-postList__body .phase-label{
	color: #999;
	font-size: 0.9em;
	margin-top: calc(var(--meta_size) / 2);	
	margin-bottom: 0;
}

/* 申込条件リスト */
.p-postList__support .p-postList__body dl.condition-list{
    display: flex;
    flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5em 0;
	font-size: 0.9em;
	padding: calc(var(--meta_size) / 3) 0;
	border-top: var(--dash_border);
	border-bottom: var(--dash_border);
}

.p-postList__support .p-postList__body dl.condition-list > dt{
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
	min-width: 35%;
	width: fit-content;
}
.p-postList__support .p-postList__body dl.condition-list > dd{
    width: 60%;
	flex-grow: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; /* 表示させたい最大行数 */
	line-clamp: 2;
	overflow: hidden;
}



/*-------------------------------------------------
 *  トピックス アーカイブ・タームページ
 * --------------------------------------------------*/

/*---------- カテゴリータブ --------------------*/
#content .category-filter{
	margin-top: -2em !important;
    padding-top: 2em;
	background: #fff;
    border-bottom: var(--dash_border);
}
.category-filter .category-list{
	display: flex;
    justify-content: space-around;
}
.category-filter .category-list .category-item{
	width: 100%;
	flex-grow: 1;
}
.category-filter .category-list .category-link{
    display: block;
    padding: 1em 0.5em;
    font-weight: bold;
    text-align: center;
}
.category-filter .category-list:not(:has(.is-active)) .category-item:first-of-type .category-link,
.category-filter .category-list .category-link.is-active{
	border-bottom: 3px solid #333;
}


/*---------- タグボタン --------------------*/
.tag-filter{
	margin-bottom: -4em;
}
.tag-filter .tag-filter_inner{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.tag-filter .tag-filter_inner > span{
	font-weight: bold;
	margin-right: 1em;
}
.tag-filter .tag-filter_inner .swell-block-button{
	margin:0;
	--the-padding: 0.5em 1em;
}

.tag-filter .tag-filter_inner:not(:has(.is-active)) .swell-block-button:first-of-type .swell-block-button__link,
.tag-filter .tag-filter_inner .swell-block-button__link.is-active,
.tag-filter .tag-filter_inner .swell-block-button__link:hover{
	background-color: #00A0DA;
    border-color: transparent;
    color: #fff !important;
}


@media not all and (min-width: 960px){
	/* カテゴリータブ */
	#content .category-filter{
		padding-top: 0;
	}
	.category-filter .category-filter_inner{
		overflow: scroll;
		padding: 0;
	}
	.category-filter .category-list .category-link{
		white-space: nowrap;
    	padding: 1.25em 2em;
	}
}
@media not all and (min-width: 600px){
	/* トピックスタグ */
	.tag-filter .tag-filter_inner > span{
		width: 100%;
	}
}

/*---------- トピックス・お知らせ記事一覧 --------------------*/

/* トピックス */
.p-postList__topics{
	--meta_size: 48px;
	margin: 0 0.5rem;
	padding-left: var(--meta_size);
}
.p-postList__topics::before{
    content: "";
    display: block;
    width: calc(100% - var(--meta_size));
    aspect-ratio: 16 / 9;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.5rem;
}

.p-postList__topics .p-postList__body{
	padding-top: calc(var(--meta_size) / 2);
}

.p-postList__topics .p-postList__tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    font-weight: bold;
    color: #999;
    padding-top: calc(var(--meta_size) / 3);
    margin-top: calc(var(--meta_size) / 3);
    border-top: var(--dash_border);
}


/* お知らせ */
.p-postList:has(.p-postList__news){
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;	
}

.p-postList .p-postList__news{
    align-items: stretch;
}

.p-postList__news .p-postList__body{
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	padding: 1rem 0;
}


/* カテゴリー・日付 */
.p-postList__topics .p-postList__meta,
.p-postList__topics .p-postList__tags,
.p-postList__news .p-postList__meta{
	font-size: clamp(10px, 2.5vw, 14px);
}
.p-postList__topics .p-postList__meta{
    max-width: 100%;
    margin-left: calc(var(--meta_size) * -1);
    padding: 1rem;
    justify-content: space-between;	
}

.p-postList__topics .p-postList__meta .topic-name,
.p-postList__news .p-postList__meta .news-name{
    position: relative;
    line-height: 1;
    padding-left: 1.25em;
	font-weight: bold;
}
.p-postList__topics .p-postList__meta .topic-name::before,
.p-postList__news .p-postList__meta .news-name::before{
    content: "";
    display: block;
    width: 1em;
    height: 1em;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--color_text);
    border-radius: 50%;	
}

.p-postList__topics .p-postList__meta .p-postList__times,
.p-postList__news .p-postList__meta .p-postList__times{
	opacity: 1;
	color: #999;
	padding: 0;
}
.p-postList__topics .p-postList__meta .p-postList__times > time::before,
.p-postList__news .p-postList__meta .p-postList__times > time::before{
	display: none;
}


/* サムネイル */
.p-postList__topics .p-postList__thumb,
.p-postList__news .p-postList__thumb{
	border-radius: 0.5rem;
	align-self: center;
}

/* タイトル */
.p-postList__topics .p-postList__body .p-postList__title,
.p-postList__news .p-postList__body .p-postList__title{
    font-size: clamp(14px, 2.5vw, 18px);
    margin: 0.5em 0;
	line-height: 1.8;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; /* 表示させたい最大行数 */
	line-clamp: 2;
	overflow: hidden;
}


@media not all and (min-width: 600px){
	/* トピックス */
	.-type-card .p-postList__item:has(.p-postList__topics){
		margin-bottom: 2em;
	}
	
	.p-postList__topics{
		display: grid;
		grid-template-columns: 36% 1fr;
    	grid-template-rows: auto 1fr;
		column-gap: 5%;
		padding-left: 0;
	}
	.p-postList__topics::before{
		display: none;
	}
	
	.p-postList__topics .p-postList__thumb{
	    grid-area: 1 / 1 / 3 / 2;	
	}
	.p-postList__topics .p-postList__meta{
	    grid-area: 1 / 2 / 2 / 3;
		margin: 0;
		padding: 0;
	}
	.p-postList__topics .p-postList__body{
	    grid-area: 2 / 2 / 3 / 3;
		padding-top: 0.25em;
	}
	.p-postList__topics .p-postList__tags{
		padding-top: 0.5em;
		margin-top: 0.5em;
	}	
	
	/* お知らせ */
	/*.-type-list .p-postList__item:has(.p-postList__news){
		margin-bottom: 0.5em;
	}*/
	
	.p-postList__news .p-postList__body{
		flex-direction: row;
		flex-wrap: wrap;
		padding: 0;
	}
	.p-postList__news .p-postList__meta{
		order: 0;
	}
	.p-postList__news .p-postList__body .p-postList__title{
		width: 100%;
		order: 1;
	}
	
	.p-postList__topics .p-postList__thumb,
	.p-postList__news .p-postList__thumb{
	    align-self: self-start;	
	}
}
