/* =========================================================
   Niagara news single / archive
========================================================= */

/* =========================================================
   お知らせページ共通ヘッダー
   通常ページと同じ「ロゴ上段中央・メニュー下段中央」構成
========================================================= */

/* テーマのヘッダーはお知らせページだけ非表示にし、
   下記の共通ヘッダーを必ず1つだけ表示します。 */
body.niagara-news-template-active #site-header,
body.niagara-news-template-active .site-header,
body.niagara-news-template-active .vk-mobile-nav-menu-btn {
	display: none !important;
}

.niagara-news-global-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	border-bottom: 1px solid #eee9df;
	background: #fff;
	color: #171717;
}

.niagara-news-global-header *,
.niagara-news-global-header *::before,
.niagara-news-global-header *::after {
	box-sizing: border-box;
}

.niagara-news-global-header-inner {
	position: relative;
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.niagara-news-global-logo {
	display: flex;
	min-height: 136px;
	align-items: center;
	justify-content: center;
	padding: 14px 0 6px;
	text-align: center;
}

.niagara-news-global-logo .custom-logo-link {
	display: block;
	width: fit-content;
	margin: 0 auto;
}

.niagara-news-global-logo .custom-logo {
	display: block;
	width: 280px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.niagara-news-global-logo > a:not(.custom-logo-link) {
	color: #171717;
	font-size: clamp(21px, 2.2vw, 30px);
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
}

.niagara-news-global-nav-desktop {
	display: block;
	width: 100%;
}

.niagara-news-global-nav-list {
	display: flex;
	width: 100%;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.niagara-news-global-nav-list > li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.niagara-news-global-nav-list > li > a,
.niagara-news-global-nav-list > li > a:link,
.niagara-news-global-nav-list > li > a:visited {
	position: relative;
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	color: #171717;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.niagara-news-global-nav-list > li > a:hover,
.niagara-news-global-nav-list > li > a:focus-visible {
	color: #111;
	text-decoration: none;
}

.niagara-news-global-nav-list > li > a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: #2d7eaf;
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.niagara-news-global-nav-list > li > a:hover::after,
.niagara-news-global-nav-list > li > a:focus-visible::after,
.niagara-news-global-nav-list > li.current-menu-item > a::after,
.niagara-news-global-nav-list > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.niagara-news-global-nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 8px 0;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	list-style: none;
}

.niagara-news-global-nav-list li:hover > .sub-menu,
.niagara-news-global-nav-list li:focus-within > .sub-menu {
	display: block;
}

.niagara-news-global-nav-list .sub-menu a {
	display: block;
	padding: 11px 16px;
	color: #171717;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
	text-decoration: none;
	white-space: normal;
}

.niagara-news-global-nav-list .sub-menu a:hover {
	background: #fff8d6;
}

.niagara-news-global-nav-mobile {
	display: none;
}


body.niagara-news-template-active .page-header,
body.niagara-news-template-active .breadcrumb,
body.niagara-news-template-active .site-body,
body.niagara-news-template-active .sub-section {
	display: none !important;
}

.niagara-news-page {
	--nn-yellow: #f6cf18;
	--nn-yellow-dark: #d3aa00;
	--nn-ink: #181818;
	--nn-paper: #fffdf7;
	--nn-cream: #f8f3e7;
	--nn-blue: #dff2f8;
	--nn-line: #ded8ca;
	--nn-muted: #6d675d;
	width: 100%;
	background: var(--nn-paper);
	color: var(--nn-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.niagara-news-page *,
.niagara-news-page *::before,
.niagara-news-page *::after {
	box-sizing: border-box;
}

.niagara-news-inner {
	width: min(1040px, calc(100% - 48px));
	margin: 0 auto;
}

.niagara-news-hero {
	position: relative;
	padding: 68px 0 62px;
	border-top: 7px solid var(--nn-yellow);
	background:
		linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
		repeating-linear-gradient(90deg, transparent 0, transparent 78px, rgba(0, 0, 0, 0.035) 78px, rgba(0, 0, 0, 0.035) 79px),
		var(--nn-cream);
}

.niagara-news-hero::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 6px;
	background: repeating-linear-gradient(90deg, #222 0, #222 30px, var(--nn-yellow) 30px, var(--nn-yellow) 60px);
	content: "";
}

.niagara-news-kicker,
.niagara-news-article-label {
	margin: 0 0 10px;
	color: #8a6b00;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.4;
}

.niagara-news-hero h1,
.niagara-news-hero-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(36px, 4.2vw, 56px);
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.3;
}

.niagara-news-hero-lead {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--nn-muted);
	font-size: var(--niagara-body-font-pc, 18px);
	line-height: 1.9;
	text-align: left;
}

.niagara-news-content-wrap {
	padding: 34px 0 100px;
}

.niagara-news-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 34px;
	color: var(--nn-muted);
	font-size: 0.86rem;
	line-height: 1.6;
}

.niagara-news-breadcrumb a {
	color: #286c91;
	text-decoration: none;
}

.niagara-news-breadcrumb a:hover {
	text-decoration: underline;
}

.niagara-news-article {
	padding: clamp(32px, 6vw, 72px);
	border: 1px solid var(--nn-line);
	border-top: 6px solid var(--nn-yellow);
	border-radius: 0 0 14px 14px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(44, 34, 10, 0.09);
}

.niagara-news-article-header {
	max-width: 840px;
	margin: 0 auto 42px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--nn-line);
}

.niagara-news-article-header h1 {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(27px, 2.7vw, 38px);
	font-weight: 800;
	letter-spacing: 0.015em;
	line-height: 1.45;
	text-align: left;
}

.niagara-news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 18px;
	color: var(--nn-muted);
	font-size: 0.88rem;
}

.niagara-news-featured-image {
	max-width: 840px;
	margin: 0 auto 42px;
}

.niagara-news-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.niagara-news-entry-content {
	max-width: 840px;
	margin: 0 auto;
	font-size: var(--niagara-body-font-pc, 18px);
	line-height: 1.95;
}

.niagara-news-entry-content > *:first-child {
	margin-top: 0;
}

.niagara-news-entry-content > *:last-child {
	margin-bottom: 0;
}

.niagara-news-entry-content p,
.niagara-news-entry-content li,
.niagara-news-entry-content dt,
.niagara-news-entry-content dd {
	font-size: inherit;
	line-height: inherit;
}

.niagara-news-entry-content p {
	margin: 0 0 1.45em;
}

.niagara-news-entry-content h2,
.niagara-news-entry-content h3,
.niagara-news-entry-content h4 {
	margin: 2.2em 0 0.85em;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nn-ink);
	font-weight: 800;
	line-height: 1.45;
	text-align: left;
}

.niagara-news-entry-content h2 {
	padding: 15px 18px;
	border-left: 7px solid var(--nn-yellow);
	background: var(--nn-cream);
	font-size: clamp(25px, 2.5vw, 34px);
}

.niagara-news-entry-content h3 {
	padding-bottom: 9px;
	border-bottom: 2px solid var(--nn-yellow-dark);
	font-size: clamp(21px, 2vw, 28px);
}

.niagara-news-entry-content h4 {
	font-size: clamp(19px, 1.6vw, 23px);
}

.niagara-news-entry-content ul,
.niagara-news-entry-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.55em;
}

.niagara-news-entry-content li + li {
	margin-top: 0.45em;
}

.niagara-news-entry-content a {
	color: #176f9e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.niagara-news-entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-right: auto;
	margin-left: auto;
	border-radius: 6px;
}

.niagara-news-entry-content figure,
.niagara-news-entry-content .wp-block-image {
	margin: 2.2em auto;
	text-align: center;
}

.niagara-news-entry-content figcaption,
.niagara-news-entry-content .wp-element-caption {
	margin-top: 10px;
	color: var(--nn-muted);
	font-size: 0.82rem;
	line-height: 1.6;
}

.niagara-news-entry-content blockquote {
	margin: 2em 0;
	padding: 22px 26px;
	border-left: 6px solid var(--nn-yellow);
	background: #fff7cf;
}

.niagara-news-entry-content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
}

.niagara-news-entry-content th,
.niagara-news-entry-content td {
	padding: 13px 15px;
	border: 1px solid var(--nn-line);
	text-align: left;
	vertical-align: top;
}

.niagara-news-entry-content th {
	background: var(--nn-cream);
}

.niagara-news-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 42px;
}

.niagara-news-button {
	display: inline-flex;
	min-width: 220px;
	min-height: 56px;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: 2px solid var(--nn-ink);
	border-radius: 7px;
	background: #fff;
	color: var(--nn-ink);
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
}

.niagara-news-button:hover {
	transform: translateY(-2px);
	background: var(--nn-ink);
	color: #fff;
	text-decoration: none;
}

.niagara-news-button-yellow {
	border-color: var(--nn-yellow);
	background: var(--nn-yellow);
}

.niagara-news-button-yellow:hover {
	border-color: #e8bd00;
	background: #ffe259;
	color: var(--nn-ink);
}

/* Archive */
.niagara-news-list-section {
	padding: clamp(28px, 5vw, 52px);
	border: 1px solid var(--nn-line);
	border-top: 6px solid var(--nn-yellow);
	border-radius: 0 0 14px 14px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(44, 34, 10, 0.09);
}

.niagara-news-list {
	display: grid;
	gap: 0;
}

.niagara-news-list-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--nn-line);
}

.niagara-news-list-item:first-child {
	border-top: 1px solid var(--nn-line);
}

.niagara-news-list-link {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	padding: 26px 8px;
	color: var(--nn-ink);
	text-decoration: none;
	transition: background 0.2s ease;
}

.niagara-news-list-link:hover {
	background: #fffaf0;
	text-decoration: none;
}

.niagara-news-list-image {
	aspect-ratio: 16 / 10;
	border-radius: 7px;
	background: #eee;
	overflow: hidden;
}

.niagara-news-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.niagara-news-list-body time {
	color: #8a6b00;
	font-size: 0.85rem;
	font-weight: 700;
}

.niagara-news-list-body h2 {
	margin: 7px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(21px, 2vw, 28px);
	font-weight: 800;
	line-height: 1.55;
	text-align: left;
}

.niagara-news-list-body p {
	margin: 12px 0 0;
	color: var(--nn-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.niagara-news-list-more {
	display: inline-block;
	margin-top: 14px;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--nn-yellow-dark);
	font-size: 0.9rem;
	font-weight: 800;
}

.niagara-news-pagination {
	margin-top: 38px;
}

.niagara-news-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.niagara-news-pagination a,
.niagara-news-pagination span {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--nn-line);
	border-radius: 5px;
	background: #fff;
	color: var(--nn-ink);
	text-decoration: none;
}

.niagara-news-pagination .current,
.niagara-news-pagination a:hover {
	border-color: var(--nn-yellow);
	background: var(--nn-yellow);
}

.niagara-news-empty {
	margin: 0;
	padding: 36px;
	background: var(--nn-cream);
	font-size: var(--niagara-body-font-pc, 18px);
	text-align: center;
}

@media (max-width: 991px) {
	.niagara-news-global-header-inner {
		width: 100%;
	}

	.niagara-news-global-logo {
		min-height: 154px;
		padding: 12px 54px 10px;
	}

	.niagara-news-global-logo .custom-logo {
		width: min(300px, calc(100vw - 88px));
		max-height: 132px;
		object-fit: contain;
	}

	.niagara-news-global-nav-desktop {
		display: none;
	}

	.niagara-news-global-nav-mobile {
		display: block;
		margin: 0;
		padding: 0;
	}

	.niagara-news-global-nav-mobile > summary {
		position: absolute;
		top: 12px;
		left: 10px;
		z-index: 30;
		display: flex;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 1px solid #8b8b8b;
		border-radius: 2px;
		background: #fff;
		color: #171717;
		cursor: pointer;
		list-style: none;
	}

	.niagara-news-global-nav-mobile > summary::-webkit-details-marker {
		display: none;
	}

	.niagara-news-global-nav-mobile > summary span:first-child {
		font-size: 26px;
		font-weight: 400;
		line-height: 1;
	}

	.niagara-news-global-nav-mobile > summary span:last-child {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.niagara-news-global-nav-mobile[open] > summary {
		background: #f6cf18;
	}

	.niagara-news-global-nav-list-mobile {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		border-top: 1px solid #e7e2d8;
		background: #fff;
		list-style: none;
	}

	.niagara-news-global-nav-list-mobile > li {
		border-bottom: 1px solid #eee9df;
	}

	.niagara-news-global-nav-list-mobile > li > a,
	.niagara-news-global-nav-list-mobile > li > a:link,
	.niagara-news-global-nav-list-mobile > li > a:visited {
		display: flex;
		min-height: 52px;
		align-items: center;
		justify-content: flex-start;
		padding: 13px 22px;
		color: #171717;
		font-size: 15px;
		font-weight: 800;
		line-height: 1.45;
		text-align: left;
		text-decoration: none;
		white-space: normal;
	}

	.niagara-news-global-nav-list-mobile > li > a::after {
		display: none;
	}

	.niagara-news-global-nav-list-mobile > li > a:hover,
	.niagara-news-global-nav-list-mobile > li > a:focus-visible,
	.niagara-news-global-nav-list-mobile > li.current-menu-item > a {
		background: #fff8d6;
	}

	.niagara-news-global-nav-list-mobile .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 0;
		padding: 0 0 6px 18px;
		background: #fff;
		box-shadow: none;
	}
}

@media (max-width: 767px) {
	.niagara-news-inner {
		width: min(100% - 32px, 1040px);
	}

	.niagara-news-hero {
		padding: 48px 0 44px;
	}

	.niagara-news-hero h1,
.niagara-news-hero-title {
		font-size: clamp(32px, 10vw, 44px);
	}

	.niagara-news-hero-lead,
	.niagara-news-entry-content,
	.niagara-news-entry-content p,
	.niagara-news-entry-content li,
	.niagara-news-entry-content dt,
	.niagara-news-entry-content dd {
		font-size: var(--niagara-body-font-sp, 17px);
	}

	.niagara-news-content-wrap {
		padding-top: 24px;
		padding-bottom: 74px;
	}

	.niagara-news-breadcrumb {
		margin-bottom: 24px;
	}

	.niagara-news-article {
		padding: 28px 20px 34px;
	}

	.niagara-news-article-header {
		margin-bottom: 30px;
		padding-bottom: 22px;
	}

	.niagara-news-article-header h1 {
		font-size: clamp(24px, 7vw, 30px);
		word-break: normal;
		overflow-wrap: anywhere;
		text-wrap: pretty;
	}

	.niagara-news-meta {
		display: grid;
		gap: 4px;
	}

	.niagara-news-entry-content h2 {
		padding: 13px 14px;
		font-size: 25px;
	}

	.niagara-news-entry-content h3 {
		font-size: 22px;
	}

	.niagara-news-entry-content table {
		display: block;
		overflow-x: auto;
	}

	.niagara-news-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.niagara-news-button {
		width: 100%;
		min-width: 0;
	}

	.niagara-news-list-section {
		padding: 24px 18px 30px;
	}

	.niagara-news-list-link {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 22px 0;
	}

	.niagara-news-list-image {
		aspect-ratio: 16 / 9;
	}

	.niagara-news-list-body h2 {
		font-size: 22px;
	}
}
