/**
 * Home / Archive — News
 * お知らせ一覧・トップNews（モバイルファースト）
 */

/* --------------------------------------------------------------------------
 * Section heading（共通）
 * -------------------------------------------------------------------------- */
.c-heading--section {
	margin: 0;
	font-weight: 700;
	line-height: var(--lh-tight);
}

.c-heading__en {
	display: inline-block;
	font-size: var(--fs-section);
	font-family: var(--font-source-sans-3);
	letter-spacing: 0.04em;
	background-image: var(--grad-heading);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.c-heading__ja {
	display: block;
	margin-top: 0.25em;
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
 * Home News
 * -------------------------------------------------------------------------- */
.p-home-news {
	padding-top: var(--section-pad-y);
	padding-bottom: var(--section-pad-y);
	background-color: var(--color-bg);
}

.p-home-news__head {
	margin-bottom: var(--space-3);
}

.p-home-news__title .c-heading__en {
	display: inline-block;
	font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
	font-weight: 600;
	font-family: var(--font-source-sans-3);
	line-height: 1.2;
	letter-spacing: 0.04em;
}

.p-home-news__title .c-heading__ja {
	margin-top: 0.15em;
	font-size: clamp(1.625rem, 1.5rem + 0.625vw, 1.875rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-navy);
}

.p-home-news__list {
	margin: 0;
	padding: 0;
	list-style: none;
	background-image : linear-gradient(to right, #0083CB 1px, transparent 1px);
	background-size: 4px 1px;
	background-repeat: repeat-x;
	background-position: left top;
}

.p-home-news__item {
	background-image : linear-gradient(to right, #0083CB 1px, transparent 1px);
	background-size: 4px 1px;
	background-repeat: repeat-x;
	background-position: left bottom;
}

.p-home-news__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35em;
	padding: var(--space-2) 0;
	color: var(--color-navy);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.p-home-news__link:hover,
.p-home-news__link:focus-visible {
	opacity: 0.75;
	text-decoration: none;
}

.p-home-news__date {
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: #A8A8A8;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.p-home-news__itemTitle {
	font-size: var(--fs-md);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--color-navy);
}

.p-home-news__empty {
	margin: 0;
	color: var(--color-text-muted);
}

.p-home-news__foot {
	display: flex;
	justify-content: center;
	margin-top: var(--space-4);
}

.p-home-news__more {
	display: inline-flex;
	position: relative;
	align-items: center;
	min-width: 248px;
	min-height: 48px;
	padding: 0.75em 2.75em 0.75em 1.5em;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-navy);
	text-decoration: none;
	white-space: nowrap;
	background-image:
		linear-gradient(var(--color-white), var(--color-white)),
		var(--grad-cta-slide);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	background-size: 100% 100%, 200% 100%;
	background-position: 0 0, 0% 0%;
	box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
	transition: background-position 0.4s ease;
}

.p-home-news__more::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 14px;
	background: url(../img/icon-arrow.svg) no-repeat center center / contain;
	filter: brightness(0) saturate(100%) invert(35%) sepia(24%) saturate(1966%) hue-rotate(185deg) brightness(90%) contrast(92%);
	transform: translateY(-50%);
}

.p-home-news__more:hover,
.p-home-news__more:focus-visible {
	background-position: 0 0, 100% 0%;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Archive / Single
 * -------------------------------------------------------------------------- */
.p-archive-news,
.p-single-news {
	padding-top: var(--section-pad-y);
	padding-bottom: var(--section-pad-y);
}

.p-archive-news__list {
	margin-inline: auto;
}

.p-single-news__article {
	max-width: 1080px;
}

.p-single-news__head {
	margin-bottom: var(--space-4);
}

.p-single-news__date {
	margin: 0 0 var(--space-1);
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.p-single-news__title {
	margin: 0;
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: var(--lh-tight);
}

.p-single-news__back {
	margin-top: var(--space-5);
	text-align: center;
}

/* ボタンの見た目はブロックエディタのボタンと共通（assets/css/layout.css の is-style-btn_normal）. */
.p-single-news__back a {
	text-decoration: none;
}

@media (min-width: 960px) {
	.p-home-news__inner {
		display: grid;
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
		grid-template-rows: auto auto;
		grid-template-areas:
			"head list"
			"foot list";
		align-items: start;
		column-gap: clamp(40px, -40px + 8.3333vw, 60px);
		row-gap: var(--space-3);
	}

	.p-home-news__head {
		grid-area: head;
		margin-bottom: 0;
	}

	.p-home-news__title .c-heading__en {
		font-size: clamp(3.5rem, -0.5rem + 6.6667vw, 4.5rem);
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: 0.02em;
	}

	.p-home-news__title .c-heading__ja {
		margin-top: 0.2em;
		font-size: clamp(1.125rem, 1.4vw, 1.375rem);
		line-height: 1.4;
	}

	.p-home-news__list,
	.p-home-news__empty {
		grid-area: list;
		max-width: 898px;
		min-width: 0;
	}

	.p-home-news__link {
		flex-direction: row;
		align-items: baseline;
		gap: clamp(24px, 3vw, 48px);
		position: relative;
		padding: var(--space-3) 0;
	}

	.p-home-news__link::after {
		position: absolute;
		top: calc(50% - 12px);
		right: 0;
		width: 24px;
		height: 24px;
		background: url(../img/icon-link.svg) no-repeat center center / contain;
		content: "";
	}

	.p-home-news__date {
		flex: 0 0 auto;
		min-width: 6.75em;
		font-size: 1rem;
	}

	.p-home-news__itemTitle {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 1rem;
		line-height: 1.6;
	}

	.p-home-news__foot {
		grid-area: foot;
		justify-content: flex-start;
		align-self: start;
		margin-top: 0;
	}

	.p-home-news__more {
		min-width: 148px;
		min-height: 48px;
		padding: 0.65em 2.5em 0.65em 1.35em;
		font-size: 14px;
		box-shadow: none;
	}
}
