@charset "UTF-8";
/* ==========================================================================
   NEWS（一覧・カテゴリー・詳細）
   ========================================================================== */

:root {
	--news-line: linear-gradient(90deg, #7bddff 0%, #ffb3cb 100%);
	--news-text: #474747;
}

/* --------------------------------------------------------------------------
   一覧
   -------------------------------------------------------------------------- */
.p-news {
	padding: 71px 0 200px;
}

.p-news-cats__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.p-news-cats__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	padding: 5px 9px;
	border: 1px solid var(--c-blue);
	border-radius: 10px;
	background: var(--c-blue);
	color: var(--c-white);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: background-color 0.3s, color 0.3s;
}

.p-news-cats__btn:hover,
.p-news-cats__btn.is-current {
	background: var(--c-white);
	color: var(--c-blue);
}

.p-news__list,
.p-news__empty {
	margin-top: 70px;
}

.p-news__pagination {
	margin-top: 120px;
}

/* ページネーション（kiit_pagination() の出力） */
.c-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.c-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--c-blue);
	font-family: var(--ff-poppins);
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
}

.c-pagination a.page-numbers:not(.prev):not(.next),
.c-pagination .page-numbers.current {
	border: 1px solid var(--c-blue);
	transition: background-color 0.3s, color 0.3s;
}

.c-pagination .page-numbers.current,
.c-pagination a.page-numbers:not(.prev):not(.next):hover {
	background: var(--c-blue);
	color: var(--c-white);
}

.c-pagination .page-numbers.dots {
	width: auto;
	border: 0;
}

.c-pagination .prev img,
.c-pagination .next img {
	width: 42px;
	height: 42px;
	transition: transform 0.4s var(--ease);
}

.c-pagination .prev:hover img {
	transform: translateX(-3px);
}

.c-pagination .next:hover img {
	transform: translateX(3px);
}

@media (max-width: 767px) {
	.p-news {
		padding: 40px 0 100px;
	}

	.p-news-cats__list {
		gap: 10px;
	}

	.p-news-cats__btn {
		min-width: 80px;
		font-size: 13px;
	}

	.p-news__list,
	.p-news__empty {
		margin-top: 40px;
	}

	.p-news__pagination {
		margin-top: 60px;
	}

	.c-pagination ul {
		gap: 10px;
	}

	.c-pagination .page-numbers,
	.c-pagination .prev img,
	.c-pagination .next img {
		width: 36px;
		height: 36px;
	}

	.c-pagination .page-numbers {
		font-size: 17px;
	}
}

/* --------------------------------------------------------------------------
   詳細
   -------------------------------------------------------------------------- */
.p-single {
	padding: 81px 0 200px;
}

.p-single__article {
	padding: 80px 60px;
	background: var(--c-white);
}

.p-single__header {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding-bottom: 40px;
	text-align: center;
}

.p-single__header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--news-line);
}

.p-single__date {
	font-family: var(--ff-roboto);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0;
}

.p-single__title {
	color: var(--c-blue);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.05em;
}

.p-single__cat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	padding: 6px 10px;
	border-radius: 10px;
	background: var(--c-blue);
	color: var(--c-white);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.05em;
	white-space: nowrap;
	transition: opacity 0.3s;
}

.p-single__cat:hover {
	opacity: 0.8;
}

.p-single__body {
	margin-top: 40px;
}

.p-single__back {
	margin-top: 100px;
	text-align: center;
}

/* 本文（the_content） */
.p-entry {
	max-width: 750px;
	margin-inline: auto;
	color: var(--news-text);
	font-size: 16px;
	line-height: 28px;
	letter-spacing: 0.0625em;
	overflow-wrap: anywhere;
}

.p-entry > * + * {
	margin-top: 40px;
}

.p-entry > :first-child {
	margin-top: 0;
}

.p-entry p {
	font-weight: 500;
}

.p-entry a {
	color: var(--c-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.3s;
}

.p-entry a:hover {
	opacity: 0.7;
}

.p-entry strong {
	font-weight: 700;
}

/* デザイン「H1セクションタイトル」 */
.p-entry h2 {
	padding: 10px 10px 10px 20px;
	background: #f7f7f7;
	color: var(--news-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 25px;
	letter-spacing: 0.05em;
}

/* デザイン「H2セクションタイトル」 */
.p-entry h3 {
	position: relative;
	padding: 10px 10px 20px 20px;
	color: var(--c-blue);
	font-size: 18px;
	font-weight: 500;
	line-height: 25px;
	letter-spacing: 0.05em;
}

.p-entry h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--news-line);
}

.p-entry h4,
.p-entry h5,
.p-entry h6 {
	color: #595757;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}

.p-entry img {
	height: auto;
}

.p-entry figure img,
.p-entry > img,
.p-entry p > img:only-child {
	width: 100%;
}

.p-entry figure {
	margin-inline: 0;
}

.p-entry figcaption,
.p-entry .wp-element-caption {
	margin-top: 10px;
	color: var(--c-text-light);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.p-entry .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.p-entry .alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.p-entry .aligncenter {
	margin-inline: auto;
}

.p-entry::after {
	content: "";
	display: table;
	clear: both;
}

.p-entry ul,
.p-entry ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 1.5em;
}

.p-entry ul {
	list-style: disc;
}

.p-entry ol {
	list-style: decimal;
}

.p-entry li::marker {
	color: var(--c-blue);
}

.p-entry blockquote {
	padding: 24px 30px;
	border-left: 4px solid var(--c-pink-line);
	background: var(--c-bg-gray);
}

.p-entry blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--c-text-light);
	font-size: 14px;
	font-style: normal;
}

.p-entry hr {
	height: 1px;
	border: 0;
	background: var(--news-line);
}

/* テーブル（デザイン「施設の特徴」ボックス） */
.p-entry .wp-block-table {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px 32px 32px;
	background: rgba(233, 142, 137, 0.1);
}

.p-entry .wp-block-table figcaption,
.p-entry .wp-block-table .wp-element-caption {
	order: -1;
	margin: 0;
	color: #595757;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: left;
}

.p-entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.0625em;
}

.p-entry .wp-block-table table {
	margin: 0;
}

.p-entry table caption {
	padding-bottom: 20px;
	color: #595757;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: left;
}

.p-entry th,
.p-entry td {
	padding: 6px 0;
	border: 0;
	border-bottom: 1px solid #d9d9d9;
	line-height: 35px;
	text-align: left;
	vertical-align: top;
}

.p-entry th,
.p-entry td:first-child:not(:only-child) {
	width: 135px;
	padding-right: 16px;
	font-weight: 400;
	line-height: 30px;
	padding-top: 8.5px;
}

.p-entry thead th {
	width: auto;
	font-weight: 700;
}

/* 前後記事 */
.p-single-pager {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	margin-top: 80px;
}

.p-single-pager__item {
	width: 400px;
	max-width: 50%;
}

.p-single-pager__item a {
	display: flex;
	align-items: center;
	gap: 20px;
}

.p-single-pager__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	transition: transform 0.4s var(--ease);
}

.p-single-pager__item--prev a:hover .p-single-pager__icon {
	transform: translateX(-4px);
}

.p-single-pager__item--next a:hover .p-single-pager__icon {
	transform: translateX(4px);
}

.p-single-pager__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 18px;
}

.p-single-pager__label {
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.p-single-pager__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--c-text-light);
	line-height: 1.3;
	letter-spacing: 0.05em;
	transition: color 0.3s;
}

.p-single-pager__item a:hover .p-single-pager__title {
	color: var(--c-blue);
}

@media (max-width: 1024px) {
	.p-single__article {
		padding: 60px 40px;
	}
}

@media (max-width: 767px) {
	.p-single {
		padding: 40px 0 100px;
	}

	.p-single__article {
		padding: 40px 20px;
	}

	.p-single__header {
		padding-bottom: 24px;
	}

	.p-single__date {
		font-size: 15px;
		line-height: 1.5;
	}

	.p-single__title {
		font-size: 22px;
		line-height: 1.45;
	}

	.p-single__cat {
		min-width: 76px;
		padding: 4px 8px;
		font-size: 12px;
		border-radius: 8px;
	}

	.p-single__body {
		margin-top: 32px;
	}

	.p-single__back {
		margin-top: 60px;
	}

	.p-entry {
		font-size: 15px;
		line-height: 1.9;
		letter-spacing: 0.04em;
	}

	.p-entry > * + * {
		margin-top: 28px;
	}

	.p-entry h2 {
		font-size: 18px;
		line-height: 1.5;
	}

	.p-entry h3 {
		padding: 6px 6px 14px 12px;
		font-size: 17px;
		line-height: 1.5;
	}

	.p-entry .wp-block-table {
		padding: 20px 16px;
	}

	.p-entry table {
		font-size: 14px;
	}

	.p-entry th,
	.p-entry td {
		line-height: 1.7;
	}

	.p-entry th,
	.p-entry td:first-child:not(:only-child) {
		width: 90px;
		padding-top: 6px;
		line-height: 1.7;
	}

	.p-entry .alignleft,
	.p-entry .alignright {
		float: none;
		margin: 0 auto;
	}

	.p-single-pager {
		flex-direction: column;
		gap: 24px;
		margin-top: 48px;
	}

	.p-single-pager__item {
		width: 100%;
		max-width: none;
	}

	.p-single-pager__item.is-empty {
		display: none;
	}

	.p-single-pager__item--next a {
		justify-content: flex-end;
		text-align: right;
	}

	.p-single-pager__icon {
		width: 36px;
		height: 36px;
	}

	.p-single-pager__text {
		font-size: 15px;
	}
}
