/* news.css */
@charset "utf-8";

/* -----------------スクロール対応----------------- */
.scroll-area {
	height: 100%;
	/* max-height: 700px; */
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--main) transparent;
}
.scroll-area::-webkit-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__item {
	display: block;
}
.news__link {
	text-decoration: none;
}

.news__meta {
	order: 3;
	display: flex;
	align-items: center;
	gap: 10px;
}
.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__date {
	font-family: var(--en-font);
	font-size: 0.9em;
	font-weight: 600;
}
.news__heading {
	order: 2;
	font-weight: 600;
	font-size: 1.1em;
}
.news__heading {
	color: inherit;
}
.news__link:hover .news__heading {
}

/* -----------------カテゴリによって色を変える----------------- */
.news__cate--schoollNewsFeed {
	background-color: var(--sub);
	color: #fff;
}

/* -----------------テキストお知らせエリア----------------- */

.text-news .news__item {
	border-top: 1px solid var(--silver);
	padding: 1.5em 0;
}
.text-news .news__item:last-child {
	border-bottom: 1px solid var(--silver);
}
.text-news .news__link {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4em;
	color: inherit;
	margin: 0;
}
.text-news .news__link .news__meta {
	font-weight: 600;
	font-size: 14px;
	order: 1;
}
.text-news .news__date-month::before,
.text-news .news__date-day::before {
	content: '.';
}
.text-news .news__link .news__heading {
	order: 2;
	position: relative;
}
.text-news .news__link .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__link .news__heading:hover {
	color: var(--main-light);
}
.text-news .news__link .news__heading:hover::after {
	transform: translate(30%, -50%);
}
@media (min-width: 768px) {
	.text-news .news__link {
		display: grid;
		grid-template-columns: auto 1fr;
	}
}

/* -----------------本文表示お知らせエリア----------------- */
.text-news .news__item--content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4em;
	color: inherit;
	margin: 0;
}
.text-news .news__item--content .news__meta {
	font-weight: 600;
	font-size: 14px;
	order: 1;
}
.text-news .news__item--content .news__heading {
	display: none;
	order: 2;
}
.text-news .news__item--content .news__content {
	order: 3;
}
@media (min-width: 768px) {
	.text-news .news__item--content {
		display: grid;
		grid-template-columns: auto 1fr;
	}
	.text-news .news__content {
		grid-column: 1 / 3;
		grid-row: 2 / 3;
	}
}

/* -----------------フォトお知らせエリア----------------- */

.photo-news {
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
}
.photo-news .news__link {
	background: var(--white);
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 16px;
	height: 100%;
}
.photo-news .news__thumb {
	order: 1;
	overflow: clip;
	aspect-ratio: 16 / 9;
	min-height: 0;
}
.photo-news .news__thumb img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	transition: transform 0.2s ease-in-out;
}
.photo-news .news__link:hover .news__thumb img {
	transform: scale(1.05);
}
.photo-news .news__date-month::before,
.photo-news .news__date-day::before {
	content: '.';
}
.photo-news .news__meta,
.photo-news .news__heading {
	margin-inline: 8px;
}
.photo-news .news__meta {
	margin-top: auto;
}
.photo-news .news__heading {
	flex-grow: 1;
}
@media (min-width: 768px) {
	.photo-news {
		display: grid;
		align-items: stretch;
		grid-template-columns: repeat(4, 1fr);
		gap: 4px;
	}
}

/* ========================
 Photo  News Custom
======================== */
.photo-news .news__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 16px;
	height: 100%;
}

.photo-news .news__link {
	background: none;
	display: flex;
	gap: 8px;
	grid-template-columns: 1fr;
	padding-bottom: 16px;
	position: relative;
}
.photo-news .news__thumb {
	aspect-ratio: 4 / 3;
	flex-shrink: 0;
	overflow: clip;
}
.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(--main);
	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-md {
	display: block;
}
.photo-news .news__date-year {
	display: block;
	font-size: 0.5em;
}
.photo-news .news__date-year::after {
	content: none;
}
.photo-news .news__date-month::before {
	content: none;
}

/* 旭カスタム */
.photo-news .news__heading {
	color: var(--white);
	font-size: 1.5rem;
}
.text-news .news__item {
	border-top: 0.5px solid #999;
}
.text-news .news__item:last-child {
	border-bottom: 0.5px solid #999;
}
.text-news .news__content a {
	color: var(--main);
}
