@charset "utf-8";
/* =====================================================================
   news.css  ／  お知らせ 一覧（home.php）＋ 単体（single.php / content-single.php）

   ・間隔はすべて rem（1rem = 16px）
   ・見出し・光のあしらい・Reservation は faq / flow / contact / information と同じ作り
   ・一覧カードは front-page の News セクションと同じ意匠（PC 2列 ／ SP 1列）
   ・ブレイクポイントは 768px（テーマ共通）／ SP は最小 375px まで対応
   ===================================================================== */

:root {
	--news-line:      #B9B4AE; /* 一覧まわりの細罫線 */
	--news-text:      #4D4D4D; /* 日付・本文のグレー文字 */
	--news-navy-line: #112A45; /* 単体タイトル下のネイビー罫線 */
	--news-max:       80rem;      /* コンテンツ幅 1280px */
	--news-body-max:  56.25rem;   /* 単体本文の幅 900px（information の表と同じ位置） */
	--news-header-h:  5.1365rem;  /* 固定ヘッダーぶんの高さ確保 */
}

/* =====================================================================
   一覧・単体 共通の外枠
   ===================================================================== */
.p-news2 {
	position: relative;
	overflow: hidden;
	background-color: var(--back-color);
	color: var(--main-color);
	font-family: var(--font-jp);
	padding-top: var(--news-header-h);
	padding-bottom: 10.5rem;
}

/* 右上の光のあしらい（contact / flow / faq / information と同じ画像・同じ扱い） */
.p-news2__bg {
	position: absolute;
	top: var(--news-header-h);
	right: 0;
	z-index: 0;
	width: 70%;
	aspect-ratio: 2357 / 2993;
	background-image: url("../img/common/bg-sunlight-kasou.webp");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: contain;
	pointer-events: none;
}

/* 画面幅 1440px でちょうど 1280px（1280 / 1440 = 88.9%） */
.p-news2__inner {
	position: relative;
	z-index: 1;
	width: 88.9%;
	max-width: var(--news-max);
	margin: 0 auto;
}

/* =====================================================================
   ページ見出し（News ／ お知らせ）
   ===================================================================== */
.p-news2__head {
	text-align: center;
	padding-top: 5.625rem;
}
.p-news2__title {
	margin: 0;
	font-family: var(--font-en);
	font-size: var(--fs50);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
	color: var(--main-color);
}
.p-news2__title-jp {
	margin: 0.5rem 0 0;
	font-size: var(--fs18);
	letter-spacing: 0.08em;
	color: #4d4d4d;
}

/* =====================================================================
   一覧グリッド（PC 2列）
   ===================================================================== */
.p-news2__list {
	list-style: none;
	margin: 4.375rem auto 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3.75rem 3.125rem;
}
.p-news2__link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s;
	-webkit-tap-highlight-color: transparent;
}
.p-news2__link:hover {
	opacity: 0.7;
}
.p-news2__img {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	margin-bottom: 1.25rem;
	overflow: hidden;
	background-color: #fff;
}
.p-news2__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* アイキャッチが無い記事は白地に SOVA ロゴを置く */
.p-news2__img.is-noimage::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 60%;
	aspect-ratio: 640 / 210;
	background-image: url("../img/common/osirase-logo.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.p-news2__date {
	margin: 0 0 0.5rem;
	font-family: var(--font-en);
	font-size: var(--fs15);
	letter-spacing: 0.04em;
	color: #1a1a1a;
}
.p-news2__title-item {
	margin: 0;
	font-size: var(--fs16);
	font-weight: 500;
	line-height: 1.7;
	color: #1a1a1a;
	/* カンプは1行。長いタイトルは2行までで省略 */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* 投稿が1件も無いとき */
.p-news2__empty {
	margin: 4.375rem auto 0;
	text-align: center;
	font-size: var(--fs16);
	color: var(--news-text);
}

/* =====================================================================
   ページャー（the_posts_pagination の出力を装飾）
   1 2 3 … 5 ›  ／ 中央寄せ
   ===================================================================== */
/* style.css の .pagination{display:flex} を上書きして中央寄せにする */
.p-news2 .pagination {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: 5rem;
}
.p-news2 .pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}
.p-news2 .pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.25rem;
}
.p-news2 .pagination .page-numbers {
	font-family: var(--font-en);
	font-size: var(--fs18);
	line-height: 1;
	color: var(--main-color);
	text-decoration: none;
	transition: opacity 0.3s;
}
.p-news2 .pagination a.page-numbers:hover {
	opacity: 0.5;
}
.p-news2 .pagination .page-numbers.current {
	font-weight: 700;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.25rem;
}
.p-news2 .pagination .page-numbers.dots {
	letter-spacing: 0.15em;
}
/* 前後の矢印はサイト共通の細い山形（front-page の .p-top__arrow と同じ描き方） */
.p-news2 .pagination .page-numbers.prev,
.p-news2 .pagination .page-numbers.next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 0;
}
.p-news2__pager-arrow {
	width: 0.5rem;
	height: 0.5rem;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
}
.p-news2__pager-arrow--next {
	transform: rotate(45deg);
}
.p-news2__pager-arrow--prev {
	transform: rotate(-135deg);
}

/* =====================================================================
   単体：本文
   ===================================================================== */
.p-news2__article {
	position: relative;
	z-index: 1;
	max-width: var(--news-body-max);
	margin: 4.375rem auto 0;
}
.p-news2__article-date {
	margin: 0;
	font-size: var(--fs16);
	letter-spacing: 0.06em;
	color: var(--news-text);
}
.p-news2__article-title {
	margin: 0.75rem 0 0;
	font-family: var(--font-jp2); /* Zen Old Mincho */
	font-size: var(--fs32);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.06em;
	color: var(--main-color);
}
.p-news2__article-hr {
	height: 1px;
	margin: 1.875rem 0 2.5rem;
	background-color: var(--news-navy-line);
	border: 0;
}
.p-news2__body {
	font-size: var(--fs16);
	line-height: 2;
	color: #1a1a1a;
}
.p-news2__body > :first-child {
	margin-top: 0;
}
.p-news2__body > :last-child {
	margin-bottom: 0;
}
.p-news2__body a {
	/* color: var(--main-color2); */
	text-decoration: underline;
	transition: opacity 0.3s;
	-webkit-tap-highlight-color: transparent;
}
.p-news2__body a:hover {
	opacity: 0.7;
}

/* =====================================================================
   単体：記事下ナビ（‹ 一覧に戻る ›）
   左右の矢印は前後記事へ。中央は一覧へ戻るリンク
   ===================================================================== */
.p-news2__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2.5rem;
	margin: 5rem auto 0;
}
.p-news2__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--main-color);
	text-decoration: none;
	transition: opacity 0.3s;
	-webkit-tap-highlight-color: transparent;
}
.p-news2__nav-link:hover {
	opacity: 0.6;
}
.p-news2__nav-link.is-disabled {
	opacity: 0.2;
	pointer-events: none;
}
.p-news2__nav-arrow {
	width: 0.5625rem;
	height: 0.5625rem;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
}
.p-news2__nav-arrow--prev {
	transform: rotate(-135deg);
}
.p-news2__nav-arrow--next {
	transform: rotate(45deg);
}
.p-news2__nav-back {
	font-size: var(--fs15);
	letter-spacing: 0.08em;
	color: var(--main-color);
	text-decoration: none;
	transition: opacity 0.3s;
	-webkit-tap-highlight-color: transparent;
}
.p-news2__nav-back:hover {
	opacity: 0.6;
}

/* =====================================================================
   Reservation（ご予約はこちら）／ faq・flow・information と同じ
   ===================================================================== */
.p-reservation {
	width: 100%;
	font-family: var(--font-jp);
}
.p-reservation__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1440 / 365;
	background-image: url("../img/common/bg-reservation.webp");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.p-reservation__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(17, 42, 69, 0);
	transition: background-color 0.3s;
}
.p-reservation__link:hover::before {
	background-color: rgba(17, 42, 69, 0.2);
}
.p-reservation__text {
	position: relative;
	z-index: 1;
	text-align: center;
}
.p-reservation__title {
	display: block;
	font-family: var(--font-en);
	font-size: var(--fs40);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
}
.p-reservation__sub {
	display: block;
	margin-top: 0.375rem;
	font-size: var(--fs18);
	letter-spacing: 0.08em;
}

/* =====================================================================
   SP（〜768px ／ 最小 375px）
   ===================================================================== */
@media (max-width: 768px) {
	:root {
		--news-header-h: 4.042rem;
	}

	.p-news2 {
		padding-bottom: 6rem;
	}
	.p-news2__bg {
		width: 100%;
		aspect-ratio: 787 / 796;
		background-image: url("../img/common/bg-sunlight-sp.webp");
		background-size: 100% auto;
	}
	.p-news2__inner {
		width: 100%;
		padding: 0 1.25rem;
	}

	/* --- 見出し --- */
	.p-news2__head {
		padding-top: 2.8125rem;
	}
	.p-news2__title-jp {
		font-size: var(--fs20);
		margin-top: 0.375rem;
	}

	/* --- 一覧（1列） --- */
	.p-news2__list {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		margin-top: 2.75rem;
	}
	.p-news2__img {
		margin-bottom: 1rem;
	}
	.p-news2__empty {
		margin-top: 2.75rem;
	}
	.p-news2 .pagination {
		margin-top: 3.5rem;
	}

	/* --- 単体 --- */
	.p-news2__article {
		margin-top: 2.75rem;
	}
	.p-news2__article-title {
		font-size: var(--fs24);
	}
	.p-news2__article-hr {
		margin: 1.5rem 0 2rem;
	}
	.p-news2__nav {
		gap: 1.5rem;
		margin-top: 3.5rem;
	}

	/* --- Reservation --- */
	.p-reservation__link {
		aspect-ratio: 786 / 600;
		background-image: url("../img/common/bg-reservation-sp.webp");
	}
	.p-reservation__sub {
		margin-top: 0.25rem;
		font-size: var(--fs20);
	}
}
