/* news-custom.css: ニュース専用カスタマイズCSS */

/* -------------　HOME　---------- */

/* ニュースティッカー */
.news-ticker {
	width: 66%;
	min-width: 800px;
	background: #f5f5f5;
	margin: -90px auto 60px;
	padding: 10px 20px;
	text-align: left;
	position: relative;
	z-index: 10;
	min-height: 4em;
}

.news-ticker-item {
	font-size: 1rem;
	transition: opacity 0.8s, transform 0.8s;
	opacity: 0;
	width: 100%;
	pointer-events: none;
	transform: translateX(-20px);
}

.news-ticker-item .news-ticker-info {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-right: 12px;
}

.news-ticker-item .news-ticker-title {
	flex: 1;
}
@media (max-width: 1024px) {
	.news-ticker {
		width: calc(100% - 80px);
		min-width: unset;
	}
}
@media (max-width: 767px) {
	.news-ticker {
        width: calc(100% - 40px);
		margin: -160px auto 30px;
		min-width: unset;
	}

	.news-ticker-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-ticker-item .news-ticker-info {
		margin-right: 0;
		margin-bottom: 4px;
		gap: 8px;
	}

	.news-ticker-item .news-ticker-title {
		line-height: 1.4;
		font-size: 14px;
		margin: .5em 0 ;
		width: 100%;
		display: block;
	}
}

.news-ticker-item.active {
	opacity: 1;
	transform: translateX(0);
	z-index: 2;
}

.news-ticker-item.fadeout {
	opacity: 0;
	transform: translateX(20px);
	z-index: 1;
}

.news-ticker-item.fadeonext {
	opacity: 0;
	transform: translateX(-20px);
	z-index: 1;
}

.news-ticker-item.entering {
	opacity: 0;
	transform: translateX(-40px);
}

.news-ticker-item.active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
	transform: translateX(0);
}

.news-ticker-cat {
	line-height: 1.1;
	color: #fff;
	background: #00913a;
	border-radius: 6px;
	padding: 2px 8px 2px;
	border-radius: 2px;
	margin-right: 8px;
	margin-top: -2px;
	font-size: 0.8em;
	vertical-align: middle;
	display: inline-block;
}

.news-ticker-date {
	color: #888;
	margin-right: 8px;
}

.news-ticker-item .news-ticker-title {
	color: #333;
	text-decoration: underline;
	transition: opacity 0.4s;
}

.news-ticker-item .news-ticker-title:hover {
	opacity: 0.7;
}


/* NEWS一覧リスト */
.p-news {
	padding: 80px 0;
	background-color: #f5f5f5;
	margin-bottom: 80px;
}

.p-news .news-list {
	list-style: none;
	padding: 0;
	margin: 40px 0 32px 0;
	border-top: 1px solid #e6e6e6;
}

.p-news .news-list li {
	border-bottom: 1px solid #e6e6e6;
	font-size: 1.08em;
	transition: background 0.2s;
	padding: 18px 10px;
}

.p-news .news-list li:hover {
	background: #fdfdfd;
}

.p-news .news-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #222;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.4s;
}

.p-news .news-list a:hover {
	color: #00913a;
	text-decoration: underline;
	transform: translateX(10px);
}

.p-news .news-list .news-ticker-cat {
	background: #00913a;
	color: #fff;
	border-radius: 6px;
	padding: 2px 10px 3px;
	font-size: 0.85em;
	margin-right: 8px;
	white-space: nowrap;
}

.p-news .news-list .news-date {
	color: #888;
	font-size: 0.98em;
	margin-right: 12px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.p-news .news-list li {
		padding: 15px 0;
	}
	.p-news .news-list a {
		display: block;
	}
	.p-news .news-list .news-ticker-info {
		width: 100%;
	}
	.p-news .news-list .news-ticker-cat {
		padding: 1px 6px;
	}
	.p-news .news-list .news-ticker-title {
		margin-top: 0.5em;
		width: 100%;
		display: block;
	}
}

/* -------------　NEWS　---------- */
.single-post .p-page-header {
	height: 320px;
}

.single-post .p-page-header__title {
	display: flex;
	flex-direction: column-reverse;
}

.single-post .p-page-header__title h1 {
	order: 0;
	margin-top: 50px;
}

.single-post .p-page-header__title p {
	order: -1;
	margin-top: 0px;
}

.single-main {
	padding: 50px 20px 0;
	max-width: 980px;
	margin: 0 auto;
}

.news-breadcrumb {
	font-size: 0.9em;
	margin-bottom: 2.5em;
	color: #555;
}

.single-main .news-meta {
	display: flex;
	gap: 1em;
	margin-bottom: 1.5em;
	font-size: 0.9em;
	color: #888;
}

.single-main .news-date {
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 4px;
}

.single-main .news-cat {
	background: #00913a;
	color: #fff;
	padding: 2px 10px;
	border-radius: 4px;
	font-weight: bold;
}

.single-main .news-title {
	font-size: 21px;
	letter-spacing: 0.01em;
	padding-bottom: 0.6em;
	margin-bottom: 1.5em;
	border-bottom: solid 1px #e1e1e1;
}


.single-main .news-content {
	padding-bottom: .5em;
	margin-bottom: 1.5em;
	border-bottom: solid 1px #e1e1e1;
}

.single-main .news-content p {
	margin-bottom: 1.5em;
	font-size: 1.2em;
	line-height: 1.6;
}

.single-main .news-content a {
	text-decoration: underline;
	color: #00913a;
	transition: opacity 0.3s;
}

.single-main .news-content a:hover {
	opacity: 0.7;
}

.news-content figure.wp-block-embed,
.news-content figure.wp-block-embed-youtube {
	margin: 2em auto;
	width: 100%;
	max-width: 100%;
	display: block;
}

.news-content .wp-block-embed__wrapper {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16/9;
	position: relative;
}

.news-content .wp-block-embed__wrapper iframe {
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	display: block;
	border: none;
}

/* ------------- ARCHIVE ---------- */
.archive-page-header .p-page-header,
.archive .p-page-header {
	height: 320px;
}

.archive-page-header .p-page-header__title,
.archive .p-page-header__title {
	display: flex;
	flex-direction: column-reverse;
}

.archive-page-header .p-page-header__title h1,
.archive .p-page-header__title h1 {
	order: 0;

	margin-top: 50px;
}
.archive-page-header .p-page-header__title p ,
.archive .p-page-header__title p {
	order: -1;
	margin-top: 0px;
}
.archive-main {
	padding: 50px 20px 0;
	max-width: 980px;
	margin: 0 auto;
}

.archive-main.p-news {
	background-color: transparent;
}