/*
 * NEWS（/news/）。基準: reference/wix/screenshots-viewport/news-{pc,sp}-NN.png
 *
 * PC: 1 記事が高さ 800px のセクション（上に 100px）。
 *   縦長の画像: 画像 400×566（x=240）、右に 400 幅の欄（x=660。本文の 800 幅から 20px はみ出す。現行と同じ）
 *   横長の画像: 画像 600 幅を中央、その下に 400 幅の欄を中央
 *   欄: タイトル 15px（下に 1px の線）、本文 10px、右下に日付
 */

.jl-news {
	min-height: 800px;
}

.jl-news__image {
	margin: 0;
}

.jl-news__image img {
	width: 100%;
	height: auto;
}

.jl-news__title {
	margin: 0;
	padding-bottom: 1px;
	border-bottom: 1px solid var(--jl-gray);
	color: var(--jl-white);
	font-size: 15px;
	font-weight: 400;
	line-height: 17px;
	text-align: center;
}

.jl-news__text {
	margin-top: 20px;
	color: var(--jl-text);
	font-size: 10px;
	line-height: 13px;
	margin-right: -10px; /* 現行は欄の幅（400px）を少し越えて折り返す */
	overflow-wrap: anywhere;
}

.jl-news__text p {
	margin: 0 0 13px;
}

.jl-news__text > :last-child {
	margin-bottom: 0;
}

.jl-news__text a {
	color: var(--jl-gray-light);
}

/* 「MV: https://…」「配信先: https://…」の段落: 現行では別の部品で、上の段落との間が 1 行ほど広く、行の間隔も広い */
.jl-news__text p:has(> a:first-child) {
	margin-top: 27px;
	line-height: 16px;
}

.jl-news__text a:hover {
	text-decoration: underline;
}

/* 縦長: 画像の左右に並べる。日付は画像の下端にそろえる */
.jl-news.is-portrait {
	display: grid;
	grid-template-columns: 400px 400px;
	column-gap: 20px;
	align-items: start;
}

.jl-news.is-portrait .jl-news__image {
	height: 566px;
}

.jl-news.is-portrait .jl-news__body {
	display: flex;
	flex-direction: column;
	height: 566px; /* 画像と同じ高さ。日付を画像の下端にそろえる */
}

.jl-news.is-portrait .jl-date {
	margin-top: auto;
	padding-bottom: 3px;
}

/* 横長: 画像の下に文章 */
.jl-news.is-landscape .jl-news__image {
	width: 600px;
	margin-inline: auto;
}

.jl-news.is-landscape .jl-news__body {
	display: flex;
	flex-direction: column;
	width: 400px;
	min-height: 184px;
	margin: 45px auto 0;
}

.jl-news.is-landscape .jl-date {
	margin-top: auto;
}

/* ---------- タブレット幅（Q-008）: 縦長の記事の 2 列（820px）が入らない幅では、列を縮める ---------- */

@media (min-width: 769px) and (max-width: 860px) {
	.jl-news.is-portrait {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.jl-news.is-portrait .jl-news__image,
	.jl-news.is-portrait .jl-news__body {
		height: auto;
	}

	.jl-news__text {
		margin-right: 0;
	}
}

/* ---------- SP ---------- */

@media (max-width: 768px) {
	.jl-news {
		min-height: 0;
	}

	.jl-news.is-portrait {
		display: block;
	}

	.jl-news.is-portrait .jl-news__image,
	.jl-news.is-landscape .jl-news__image {
		width: 100%;
		height: auto;
	}

	.jl-news.is-portrait .jl-news__body,
	.jl-news.is-landscape .jl-news__body {
		display: block;
		width: auto;
		height: auto;
		min-height: 0;
		margin: calc(20 * var(--u)) 0 0;
	}

	.jl-news__title {
		font-size: calc(10 * var(--u));
		line-height: calc(13 * var(--u));
	}

	.jl-news__text {
		margin-right: 0;
		margin-top: calc(15 * var(--u));
		font-size: calc(8 * var(--u));
		line-height: calc(10 * var(--u));
	}

	.jl-news__text p {
		margin-bottom: calc(10 * var(--u));
	}

	.jl-news__text p:has(> a:first-child) {
		margin-top: calc(14 * var(--u));
		line-height: calc(11.2 * var(--u));
	}

	.jl-news.is-portrait .jl-date,
	.jl-news.is-landscape .jl-date {
		margin-top: 0;
		padding-bottom: 0;
	}
}
