@charset "UTF-8";

/* ==================================================
WordPress記事読み込み 共通
================================================== */
/* WordPress読み込み部分はフォント統一 */
#consultation-posts,
#consultation-posts *,
#latest-posts,
#latest-posts *,
#case-posts,
#case-posts * {
	font-family: "Noto Sans JP", sans-serif;
}

#consultation-posts a,
#latest-posts a,
#case-posts a {
	color: inherit;
	text-decoration: none;
}

/* ==================================================
カテゴリーカラー
================================================== */

:root {
	--color-consultation-schedule: #ffaf2e;
	--color-consultation-report: #013fa6;
	--color-case-studies: #7aba3f;
}

/* ==================================================
無料相談会開催日程
================================================== */

.consultation-posts {
  width: 95%;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: auto;
}

/* 5記事並んだときの横幅を基準にする */
.consultation-posts > .consultation-card {
  flex: 0 0 calc((100% - 64px) / 5);
}

/* カード全体 */
.consultation-card {
	display: block;
	min-width: 0;
	padding: 12px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	transition:
		transform .25s ease,
		box-shadow .25s ease;
}

.consultation-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 16px rgba(0, 0, 0, .11);
}


/* タグ + 日付 */
.consultation-card__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}


/* カテゴリー */
.consultation-card__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 3px 8px;

	background: var(--color-consultation-schedule);
	color: #fff;

	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}


/* 日付 */
.consultation-card__date {
	color: #777;
	font-size: 12px;
	letter-spacing: .02em;
	white-space: nowrap;
}

/* アイキャッチ */
.consultation-card__image {
	overflow: hidden;
	width: 90%;
	margin: 0 auto 9px;
	border-radius: 7px;
	background: #f5f5f5;
}

.consultation-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .35s ease;
}

.consultation-card:hover .consultation-card__image img {
	transform: scale(1.03);
}


/* タイトル */
.consultation-card__title {
	margin: 0;
	color: #383838;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.consultation-more {
	margin-top: 12px;
	text-align: right;
	margin-right: 10px;
}

.consultation-more a {
	color: #777;
	font-size: 15px;
	text-decoration: none;
}

.consultation-more a:hover {
	opacity: .7;
}

/* ==================================================
新着情報
================================================== */

.news-posts {
	max-width: 760px;
	margin-inline: auto;
}


/* 1記事 */
.news-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;

	padding: 10px 8px;

	border-bottom: 1px solid #ddd;

	transition: background-color .2s ease;
}

.news-item:hover {
	background: #fafafa;
}


/* ------------------------------
アイキャッチ
------------------------------ */

.news-item__image {
	width: 120px;
	overflow: hidden;
	border-radius: 7px;
}

.news-item__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}


/* ------------------------------
本文部分
日付・カテゴリー
タイトル
------------------------------ */

.news-item__body {
	min-width: 0;
}


/* 日付 + カテゴリー */
.news-item__meta {
	display: flex;
	align-items: center;
	gap: 10px;

	margin-bottom: 5px;
}


/* 日付 */
.news-item__date {
	color: #666;
	font-size: 14px;
	font-weight: bold;
	white-space: nowrap;
}


/* カテゴリー */
.news-item__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: auto;
	padding: 3px 8px;

	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}


/* 無料相談会 */
.news-item__category--consultation-schedule {
	background: var(--color-consultation-schedule);
}


/* 相談会レポート */
.news-item__category--consultation-report {
	background: var(--color-consultation-report);
}


/* 相談事例 */
.news-item__category--case-studies {
	background: var(--color-case-studies);
}


/* タイトル */
.news-item__title {
	display: block;

	min-width: 0;

	color: #383838;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;

	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.news-item__arrow {
	display: flex;
	align-items: center;
	justify-content: center;

	transition: transform .2s ease;
}

.news-item__arrow::before {
	content: "";
	display: block;

	width: 12px;
	height: 12px;

	border-top: 2px solid #ffaf2e;
	border-right: 2px solid #ffaf2e;

	transform: rotate(45deg);
}

.news-item:hover .news-item__arrow {
	transform: translateX(3px);
}

/* ==================================================
相談事例
================================================== */

.case-posts {
	--cat-color: var(--color-case-studies);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}


.case-card {
	display: block;
	min-width: 0;

	transition: transform .25s ease;
}

.case-card:hover {
	transform: translateY(-3px);
}


/* アイキャッチ */
.case-card__image {
	overflow: hidden;
	margin-bottom: 10px;

	border-radius: 4px;
	background: #f5f5f5;
}

.case-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;

	object-fit: cover;

	transition: transform .35s ease;
}

.case-card:hover .case-card__image img {
	transform: scale(1.03);
}


/* カテゴリー */
.case-card__category {
	display: table;
	margin: 0 auto 8px;
	padding: 3px 14px;

	background: var(--cat-color);
	color: #fff;

	font-size: 14px;
	line-height: 1.4;
}


/* タイトル */
.case-card__title {
	margin: 0 0 8px;
	color: var(--cat-color);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
	white-space: normal;
	text-align: left;
}


/* 本文抜粋 */
.case-card__excerpt,
.case-card__excerpt p {
	color: #555;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
	white-space: normal;
}

.case-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.case-card__excerpt p {
	margin: 0;
}

/* ==================================================
タブレット
================================================== */

@media screen and (max-width: 1023px) {

	/* 無料相談会：3列 */
  .consultation-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 8px;
  }

  .consultation-posts > .consultation-card {
    flex: 0 0 calc((100% - 16px) / 3);
  }

	/* 4件目以降は非表示 */
	.consultation-posts .consultation-card:nth-child(n+4) {
		display: none;
	}

	/* 相談事例 */
	.case-posts {
		gap: 20px;
	}

}
/* ==================================================
スマホ
================================================== */

@media screen and (max-width: 599px) {


	/* ==================================================
	無料相談会
	スマホ：最新3件 / 横3列
	================================================== */

 .consultation-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 8px;
  }

  .consultation-posts > .consultation-card {
    flex: 0 0 calc((100% - 16px) / 3);
  }


	/* 4件目以降は非表示 */
	.consultation-posts .consultation-card:nth-child(n+4) {
		display: none;
	}

	.consultation-card {
		min-width: 0;
		padding: 8px;
		border-radius: 8px;
	}

	/* カテゴリー + 日付 */
	.consultation-card__meta {
		gap: 4px;
		margin-bottom: 6px;
	}

	.consultation-card__category {
		padding: 2px 4px;
		font-size: 16px;
	}

	.consultation-card__date {
		font-size: 18px;
	}

	/* アイキャッチ */
	.consultation-card__image {
		width: 100%;
		margin: 0 auto 6px;
	}

	.consultation-card__image img {
		aspect-ratio: 16 / 9;
	}

	/* タイトル */
	.consultation-card__title {
		font-size: 20px;
		line-height: 1.45;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
	.consultation-more a {
	font-size: 20px;
}


	/* ==================================================
	新着情報
	スマホ：4件 / 1記事2段構成
	================================================== */
	.news-item {
		grid-template-columns: 90px minmax(0, 1fr) 16px;
		gap: 10px;
		padding: 10px 4px;
	}

	/* アイキャッチ */
	.news-item__image {
		width: 90px;
		border-radius: 7px;
		overflow: hidden;
	}

	.news-item__image img {
		display: block;
		width: 100%;
		aspect-ratio: 16 / 9;
		object-fit: cover;
	}

	/* テキストエリア */
	.news-item__body {
		min-width: 0;
	}

	/* 日付 + カテゴリー */
	.news-item__meta {
		display: flex;
		align-items: center;
		gap: 7px;
		margin-bottom: 4px;
	}

	.news-item__date {
		font-size: 18px;
		white-space: nowrap;
	}

	.news-item__category {
		width: auto;
		min-width: 0;
		padding: 3px 6px;
		font-size: 16px;
		white-space: nowrap;
	}

	/* タイトル：1行 */
	.news-item__title {
		display: block;
		min-width: 0;

		font-size: 20px;
		line-height: 1.45;

		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* ＞ */
	.news-item__arrow {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		align-self: center;
	}
	/* ==================================================
	相談事例
	スマホ：最新2件 / 横2列
	================================================== */

	.case-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	/* 3件目以降は非表示 */
	.case-posts .case-card:nth-child(n+3) {
		display: none;
	}

	.case-card {
		min-width: 0;
	}

	/* アイキャッチ */
	.case-card__image {
		margin-bottom: 8px;
	}

	/* カテゴリー */
	.case-card__category {
		margin-bottom: 5px;
		padding: 2px 8px;
		font-size: 16px;
	}

	/* タイトル */
	.case-card__title {
		margin-bottom: 6px;
		font-size: 20px;
		line-height: 1.5;
	}

	/* 抜粋 */
	.case-card__excerpt,
	.case-card__excerpt p {
		font-size: 18px;
		line-height: 1.6;
	}

	.case-card__excerpt {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

}