/* page-news.css … お知らせ（一覧・記事）。設置情報でも使う予定 */

/* ==========================================================
   一覧（PC: 1行 100px。日付・タイトル（1行で…）・矢印 ／ SP: 日付の下にタイトル（2行まで））
   ========================================================== */
.p-news-article { padding: 80px 0 114px; }   /* Figma: 1行目は article の上端から 80px */
.p-news {
	width: 900px;            /* 1600 / 1200 とも 900 */
	margin: 0 auto;
}
.p-news__item {
	display: flex;
	align-items: center;
	height: 100px;
	border-bottom: 1px solid var(--c-text);
	transition: color var(--dur-hover) var(--ease);
}
.p-news__date {
	flex: none;
	width: 119px;
	padding-left: 1px;
	font-family: var(--ff-en);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .05em;
}
.p-news__title {
	flex: 1;
	min-width: 0;
	margin-right: 18px;
	overflow: hidden;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.8;
	white-space: nowrap;
	text-overflow: ellipsis;  /* 長いタイトルは1行で「…」 */
}
.p-news__arrow { --icon: url(../images/icon-arrow.svg); flex: none; width: 12px; height: 16px; }
@media (hover: hover) {
	.p-news__item:hover { color: var(--c-hover); }
}

/* ページ送り（現在のページは青、他はグレー。矢印は青） */
.c-pager {                 /* 数字の列を中央に。矢印は左右の列に置き、中央をずらさない */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-top: 93px;        /* 調整: 最後の線〜ページ送り */
	font-family: var(--ff-en);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .16em;
	color: #9d9d9d;
}
.c-pager__nums { grid-column: 2; display: flex; gap: 9px; }
.c-pager__num,
.c-pager__dots { padding: 4px; }   /* クリック範囲 */
.c-pager__dots { margin: 0 -7px 0 -8px; }  /* 調整: 「...」を前の数字に寄せる（Figma） */
.c-pager__num { transition: color var(--dur-hover) var(--ease); }
.c-pager__num.is-current { color: var(--c-blue); }
.c-pager__prev,
.c-pager__next { display: flex; padding: 10px; margin: -10px; }
.c-pager__prev { grid-column: 1; justify-self: end; margin-right: 21px; }
.c-pager__next { grid-column: 3; justify-self: start; margin-left: 21px; }  /* 調整: 最後の数字〜矢印 39px（字間の分を引く） */
.c-pager__prev .c-icon { transform: scaleX(-1); }
.c-pager .c-icon--arrow { width: 12px; height: 16px; }
@media (hover: hover) {
	.c-pager a.c-pager__num:hover { color: var(--c-text); }
	.c-pager__prev:hover .c-icon,
	.c-pager__next:hover .c-icon { background-color: var(--c-hover); }
}

.p-news__empty { text-align: center; }


/* ==========================================================
   記事
   ========================================================== */
.p-entry {
	width: 900px;
	margin: 4px auto 0;      /* 調整: 日付の位置 */
}
.p-entry__head {
	padding-bottom: 30px;    /* 調整: タイトル〜線 */
	border-bottom: 1px solid var(--c-text);
}
.p-entry__date {
	display: block;
	font-family: var(--ff-en);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .05em;
}
.p-entry__title {
	margin-top: 28px;        /* 調整: 日付〜タイトル */
	font-size: 36px;         /* 原案 2026-11-11（旧 40px・字間 0） */
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .05em;
}

/* 本文（投稿の HTML。旧エディタの画像は小さいサイズで横に並ぶ） */
.p-entry__body {
	padding: 49px 0 60px;    /* 調整: 線〜本文、本文〜線 */
	border-bottom: 1px solid var(--c-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 2;
	overflow-wrap: anywhere;
	text-wrap: pretty;       /* 段落末に1〜2文字だけの行を作らない */
}
.p-entry__body > * + * { margin-top: 2em; }
.p-entry__body img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: top;
	margin: 0 6px 6px 0;
}
.p-entry__body a { color: var(--c-blue); text-decoration: underline; }
/* 旧記事の動画（WP 標準のプレーヤー）も Google Fonts で */
.p-entry__body .mejs-container,
.p-entry__body .mejs-container * { font-family: var(--ff-en); }

/* 前後の記事・一覧に戻る */
.p-entry__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-top: 81px;        /* 調整 */
}
.p-entry__prev,
.p-entry__next {
	position: relative;
	width: 120px;
	padding-bottom: 11px;     /* 調整: 文字〜下線 */
	margin-top: -4px;
	border-bottom: 1px solid currentColor;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05em;
	color: var(--c-blue);
	transition: color var(--dur-hover) var(--ease);
}
.p-entry__prev { text-align: right; }
.p-entry__next { justify-self: end; }
.p-entry__prev.is-disabled,
.p-entry__next.is-disabled { color: #9d9d9d; }
.p-entry__prev .c-icon,
.p-entry__next .c-icon {
	--icon: url(../images/icon-triangle.svg);
	position: absolute;
	top: 1px;
	width: 7px;
	height: 9px;
	background-color: currentColor;
}
.p-entry__prev .c-icon { left: 0; transform: scaleX(-1); }
.p-entry__next .c-icon { right: 0; }

.c-back-btn {            /* 一覧に戻る（280×60 の角丸） */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 280px;
	height: 60px;
	padding-left: 20px;
	border-radius: 50px;
	background: var(--c-dark);
	font-size: 16px;
	font-weight: 700;
	color: var(--c-white);
	transition: background-color var(--dur-hover) var(--ease);
}
.c-back-btn .c-icon {
	position: absolute;
	top: 22px;
	left: 20px;
	width: 12px;
	height: 16px;
	background-color: var(--c-white);
	transform: scaleX(-1);
}
@media (hover: hover) {
	.p-entry__nav a.p-entry__prev:hover,
	.p-entry__nav a.p-entry__next:hover { color: var(--c-hover); }
	.c-back-btn:hover { background-color: #464c52; }
}


/* ===== SP（390 基準）===== */
@media (max-width: 568px) {
	.p-news-article { padding: 21px 30px 74px; }
	.p-news,
	.p-entry { width: auto; }

	.p-news__item {
		display: grid;
		grid-template-columns: 1fr 8px;
		grid-template-areas:
			"date  ."
			"title arrow";
		align-items: center;
		height: auto;
		padding: 26px 0 14px;
		border-bottom-color: #8d8d8d;
	}
	.p-news__date {
		grid-area: date;
		width: auto;
		padding-left: 0;
		font-size: 12px;
	}
	.p-news__title {
		grid-area: title;
		margin: 8px 20px 0 0;
		font-size: 16px;
		line-height: 1.6;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;   /* 2行まで */
		-webkit-box-orient: vertical;
	}
	.p-news__arrow { grid-area: arrow; align-self: end; width: 8px; height: 12px; margin-bottom: 7px; } /* タイトルの最後の行にそろえる */

	.c-pager {
		margin-top: 54px;
		font-size: 16px;
	}
	.c-pager__nums { gap: 6px; }
	.c-pager__dots { margin: 0 -5px 0 -5px; }
	.c-pager__next { margin-left: 3px; }   /* 調整: 最後の数字〜矢印 21px */
	.c-pager__prev { margin-right: 3px; }
	.c-pager .c-icon--arrow { width: 8px; height: 12px; }

	.p-entry { margin-top: -13px; }
	.p-entry__date { font-size: 12px; }
	.p-entry__title {
		margin-top: 10px;
		font-size: 20px;
		line-height: 1.4;
		letter-spacing: 0;   /* SP は原案の対象外（そのまま） */
	}
	.p-entry__head { padding-bottom: 22px; border-bottom-color: #8d8d8d; }
	.p-entry__body img { display: block; width: 100%; margin: 0 0 8px; }
	.p-entry__body {
		padding: 30px 0 40px;
		font-size: 14px;
		border-bottom-color: #8d8d8d;
	}
	.p-entry__nav {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"prev next"
			"back back";
		margin-top: 43px;
	}
	.p-entry__prev { grid-area: prev; width: 100px; }
	.p-entry__next { grid-area: next; width: 100px; }
	.c-back-btn {
		grid-area: back;
		justify-self: center;
		width: 230px;
		height: 50px;
		margin-top: 60px;
		font-size: 14px;
	}
	.c-back-btn .c-icon { top: 19px; left: 15px; width: 8px; height: 12px; }
}
