/* ------------------------------------------------------------
 * お知らせ一覧ページ
 * ------------------------------------------------------------ */

/* 一覧ページ全体の背景・余白と、背景装飾文字で使用する位置調整値。 */
.news-archive {
	--news-archive-side-padding: 40px;
	--news-archive-decor-font-size: 150px;
	--news-archive-decor-inner-offset: 28px;
	--news-archive-decor-top-offset: -160px;
	--news-archive-decor-clip-height: 1030px;

	overflow: hidden;
	padding: 220px var(--news-archive-side-padding) 160px;
	background: var(--bg-gradient);
}

.bg-decor-text {
	position: absolute;
	z-index: 0;
	display: block;
	margin: 0;
	font-family: var(--font-family-en);
	font-size: 150px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	color: rgba(0, 156, 209, 0.08);
	background: linear-gradient(180deg, rgba(34, 34, 34, 0.12), rgba(0, 156, 209, 0.07), rgba(155, 135, 86, 0.06));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ページ見出し（お知らせ / NEWS）を白背景パネルの上に重ねる領域。 */
.news-archive__header {
	position: relative;
	z-index: 1;
	margin-bottom: -24px;
	text-align: center;
}

/* 見出し・一覧パネルで共有するコンテンツ幅。 */
.news-archive__inner {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
}

/* 白背景パネルと背景装飾文字を重ねる一覧コンテンツ領域。 */
.news-archive__content {
	position: relative;
	isolation: isolate;
}

/* 背景装飾文字（Expand Possibilities）の配置と縦方向のクリッピング範囲。 */
.news-archive__decor-clip {
	position: absolute;
	z-index: 0;
	top: var(--news-archive-decor-top-offset);
	right: max(
		var(--news-archive-decor-inner-offset),
		calc((100vw - var(--content-max-width)) / 2 - var(--news-archive-side-padding) + var(--news-archive-decor-inner-offset))
	);
	width: var(--news-archive-decor-font-size);
	height: var(--news-archive-decor-clip-height);
	overflow: hidden;
	pointer-events: none;
}

/* クリップ枠の上端から文字列が始まり、下方向へ薄くなる一覧ページ専用の装飾文字。 */
.news-archive__decor {
	top: 0;
	right: auto;
	left: var(--news-archive-decor-font-size);
	font-size: var(--news-archive-decor-font-size);
	background-image: linear-gradient(90deg, rgba(34, 34, 34, 0.12), rgba(0, 156, 209, 0.07), rgba(155, 135, 86, 0.06));
	background-clip: text;
	-webkit-background-clip: text;
	transform: rotate(90deg);
	transform-origin: top left;
	font-weight: 400;
}

/* お知らせカード一覧とVIEW MOREボタンを収める白背景パネル。 */
.news-archive__content .news-archive__inner {
	position: relative;
	z-index: 1;
	padding: 112px 96px 72px;
	background: rgba(255, 255, 255, 0.72);
}

/* お知らせカードを縦に並べる一覧本体。 */
.news-archive__list {
	width: 100%;
}

/* お知らせ一覧の1記事分カード。 */
.news-card {
	border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.news-card:first-child {
	border-top: 0;
}

/* サムネイル・本文・矢印を1行で並べるカード全体リンク。 */
.news-card__link {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 40px;
	gap: 32px;
	align-items: center;
	min-height: 144px;
	padding: 32px 0;
	color: var(--color-text);
	text-decoration: none;
}

.news-card__thumbnail {
	grid-column: 1;
	margin: 0;
}

.news-card__image {
	display: block;
	width: 150px;
	height: 90px;
	object-fit: cover;
}

.news-card__body {
	grid-column: 2;
	min-width: 0;
}

/* カテゴリータグと投稿日を横並びにするメタ情報。 */
.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
}

.news-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.news-card__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 3px 12px;
	color: #9b8756;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	border: 1px solid rgba(155, 135, 86, 0.75);
	background: rgba(255, 255, 255, 0.36);
}

.news-card__date {
	font-family: var(--font-family-en);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-text);
}

.news-card__title {
	margin: 22px 0 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
	word-break: break-word;
}

/* 記事詳細への遷移を示す丸型矢印。 */
.news-card__arrow {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	justify-self: end;
	color: var(--color-text);
	font-family: var(--font-family-en);
	font-size: 12px;
	line-height: 1;
	border: 4px solid transparent;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, rgba(236, 240, 241, 0.65), rgba(240, 240, 229, 0.65)) border-box;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.news-card__link:hover .news-card__arrow,
.news-card__link:focus-visible .news-card__arrow {
	transform: translateX(4px);
	opacity: 0.85;
}

/* Ajaxで追加記事を読み込むVIEW MOREボタンの配置。 */
.news-archive__load-more {
	display: flex;
	justify-content: center;
	margin-top: 64px;
}

.news-archive__load-more[hidden] {
	display: none;
}

.news-archive__load-more-message {
	margin-top: 16px;
	font-size: 14px;
	text-align: center;
}

/* 公開済みのお知らせがない場合の空表示。 */
.news-archive__empty {
	text-align: center;
}

@media (max-width: 1024px) {
	.news-archive {
		--news-archive-side-padding: 32px;

		padding-right: var(--news-archive-side-padding);
		padding-left: var(--news-archive-side-padding);
	}

	.news-archive__content .news-archive__inner {
		padding-right: 56px;
		padding-left: 56px;
	}
}

@media (max-width: 767px) {
	.news-archive {
		--news-archive-side-padding: 16px;
		--news-archive-decor-font-size: 96px;
		--news-archive-decor-inner-offset: 0px;
		--news-archive-decor-top-offset: -72px;
		--news-archive-decor-clip-height: 600px;

		padding: 150px var(--news-archive-side-padding) 80px;
	}

	.news-archive__header {
		margin-bottom: -18px;
	}

	.news-archive__content .news-archive__inner {
		padding: 72px 20px 44px;
	}

	.news-card__link {
		grid-template-columns: minmax(72px, 28vw) minmax(0, 1fr) 32px;
		gap: 14px;
		min-height: 112px;
		padding: 24px 0;
	}

	.news-card__image {
		width: 100%;
		height: auto;
		aspect-ratio: 5 / 3;
	}

	.news-card__meta {
		gap: 10px 14px;
	}

	.news-card__category {
		min-height: 24px;
		padding: 2px 9px;
		font-size: 12px;
	}

	.news-card__date {
		font-size: 13px;
	}

	.news-card__title {
		margin-top: 12px;
		font-size: 14px;
		line-height: 1.6;
	}

	.news-card__arrow {
		width: 28px;
		height: 28px;
		border-width: 3px;
	}

	.news-archive__load-more {
		margin-top: 44px;
	}
}
