/* news.css */
@charset "utf-8";

/* ニュースエリア共通 */
.news__item {
	display: flex;
	flex-direction: column;
}
.news__link {
	display: grid;
	grid-template-columns: 1fr;
	text-decoration: none;
}
.news__thumb {
	overflow: clip;
	aspect-ratio: 16 / 9;
}
.news__thumb img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	transition: transform 0.2s ease-in-out;
}
.news__link:hover .news__thumb img {
	transform: scale(1.05);
}
.news__cate {
	position: relative;
	display: block;
	background: var(--main);
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	color: var(--white);
}
.news__meta {
}
.news__date {
	color: var(--main);
	font-family: var(--en-font);
	font-size: 0.9em;
	font-weight: 600;
}
.news__date-md {
}
.news__date-year {
}

.news__heading {
	font-weight: 500;
}
.news__heading a {
	color: inherit;
	text-decoration: underline;
}
.news__link:hover .news__heading {
	text-decoration: none;
}

/* -----------------スクロール対応----------------- */
.scroll-area {
	height: 100%;
	/* max-height: 700px; */
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--main) transparent;
}
.scroll-area::-webkt-scrollbar {
	width: 6px;
}
.scroll-area::-webkit-scrollbar-track {
	background: transparent;
}
.scroll-area::-webkit-scrollbar-thumb {
	background-color: var(--main);
	border: 2px solid transparent;
	background-clip: content-box;
}
.scroll-area::-webkit-scrollbar-thumb:hover {
	background-color: var(--main);
}

/* -----------------カテゴリによって色を変える----------------- */
.news__cate--schoollNewsFeed {
	background-color: var(--sub);
	color: #fff;
}
/* -----------------レイアウトバリエーション----------------- */

.text-news .news__item {
	border-bottom: 1px solid var(--silver);
}
.text-news .news__link {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4em;
	color: inherit;
	margin: 0;
	padding: 1em 0;
}
.text-news .news__meta {
	font-weight: 600;
	font-size: 14px;
	order: 1;
}

.text-news .news__heading {
	order: 2;
	padding-right: 1.75em;
	position: relative;
}
.text-news .news__heading::after {
	content: 'keyboard_arrow_right';
	display: inline-block;
	font-family: var(--icons);
	position: absolute;
	top: 50%;
	right: 0.5em;
	transform: translate(0, -50%);
	color: inherit;
	transition: all 0.2s;
}
.text-news .news__heading:hover {
	color: var(--main);
}
.text-news .news__heading:hover::after {
	transform: translate(30%, -50%);
}
@media (min-width: 768px) {
	.text-news .news__link {
		display: grid;
		align-items: center;
		grid-template-columns: auto 1fr;
	}
}

/* ========================
   temporary臨時エリア
======================== */

.temporary-news__wrapper {
	width: 96%;
	/* max-width: 880px; */
	margin-inline: auto;
	border: 1px solid var(--border);
	background: var(--white);
	padding: 32px 12px 24px;
}
.temporary-news .news__item {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.temporary-news .news__link .news__heading {
	font-weight: 700;
	color: var(--main-dark);
	position: relative;
}
.temporary-news .news__link:hover .news__heading {
	text-decoration: underline;
	font-weight: 700;
}
.temporary-news .news__link .news__heading::after {
	content: 'keyboard_arrow_right';
	font-family: var(--icons);
	display: inline-block;
	position: relative;
	top: 3px;
}
.news__item--content .news__heading {
	display: block;
	font-weight: 700;
	margin-block: 0.2em;
}
.news__item--content .news__heading::before {
	content: '■';
}
.news__item--content p a {
	color: var(--link);
}
.news__item--content p a:hover {
	color: var(--link-hover);
}
@media (min-width: 768px) {
	.temporary-news__wrapper {
		padding: 48px 48px 32px;
	}
}

/* ========================
   News Custom
======================== */
.news-grid {
	gap: 4px;
}

.news-grid .news__link {
	background: var(--white);
}
.news__meta,
.news__heading,
.news__content {
	margin-inline: 8px;
	margin-block: 0;
}
.news__date-month::before,
.news__date-day::before {
	content: '.';
}

/* ========================
   Photo News Custom
======================== */
.photo-news .news__link {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr;
	padding-bottom: 16px;
	margin-bottom: 16px;
	text-decoration: none;
	position: relative;
}
.photo-news .news__thumb {
	order: 1;
	overflow: clip;
	aspect-ratio: 4 / 3;
}
.photo-news .news__meta {
	display: contents;
}
.photo-news .news__cate {
	display: inline-block;
	width: max-content;
	background: var(--main);
	padding: 2px 8px;
	border-radius: 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--white);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}
.photo-news .news__date {
	color: var(--white);
	font-family: var(--en-font);
	font-size: 1.8em;
	font-weight: 600;
	display: block;
	background-color: var(--sub);
	position: absolute;
	top: 0;
	right: 0;
	padding: 16px;
	border-radius: 0 0 0 20px;
	text-align: center;
	line-height: 1.5;
	opacity: 1;
	z-index: 2;
}
.photo-news .news__date-year {
	display: block;
	font-size: 0.5em;
}

.photo-news .news__date-month::before {
	content: none;
}
.photo-news .news__heading {
	order: 2;
	line-height: 1.5;
}
