/* NEWS の種類の表示とタブ（mitsume-news）。色は PUBLICATIONS の試作（mitsume-publications）のタブに合わせる。 */
.mnews-l-en { display: none; }
[data-current-lang="en"] .mnews-l-en { display: inline; }
[data-current-lang="en"] .mnews-l-jp { display: none; }

.mnews-tabs {
	--mnews-text: #fff;
	--mnews-line: #5e5e5e;
	--mnews-soft: rgba(255, 255, 255, .08);
	--mnews-accent: #9db0ff;
	--mnews-on-accent: #16204d;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid var(--mnews-line);
	padding-bottom: 12px;
	margin-bottom: 16px;
}
.mnews-tab {
	appearance: none;
	background: var(--mnews-soft);
	color: var(--mnews-text);
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 8px 14px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.mnews-tab[aria-selected="true"] {
	background: var(--mnews-accent);
	color: var(--mnews-on-accent);
	font-weight: bold;
}
.mnews-tab:focus-visible { outline: 2px solid var(--mnews-accent); outline-offset: 2px; }
.mnews-n { font-size: 13px; opacity: .8; margin-left: 4px; font-weight: normal; }
.mnews-count { font-size: 14px; color: #cfcfcf; margin: 0 0 12px; }

/* 絞り込みで隠す記事。テーマの表示の動き（data-inview）より強くする。 */
.archives li[hidden] { display: none !important; }

/* 一覧の体裁（2026-11-15、mitsume-news 0.2.0。三目さんが選んだ案 C「種類の色分け」。色の線はごく細くする、という指示による）。
   一覧（/info）とトップページの「最新のお知らせ」で、各記事を半透明の板にし、種類の札と、左端に種類の色の細い線を出す。
   テーマは、記事の箱を不透明な灰色（#323232）にし、種類の欄（.archives-category）を隠している。ここで上書きする。
   左端の線は、札（.mnews-type）の ::before で描く（板の左端に重ねる）。色は札のクラスで決まるので、:has() も JavaScript も使わない。
   0.3.1（2026-11-16。2026-11-15 23:16 の三目さんの承認「おすすめで進める」による）：日付と札の字を 16px（幅 600px 以下は 14px）にした（案 B。題名の約 9 割）。
   字は rem でも書く（html が 62.5% なので 1.6rem が 16px）。ブラウザの字の大きさの設定を変えても、題名との比が保たれる。札の余白は px のまま。 */
#post-archives .archives ul li,
#top-news .archives ul li { margin: 0 0 10px; }
#post-archives .archives ul li a,
#top-news .archives ul li a {
	position: relative;
	background-color: rgba(18, 18, 22, .55);
	border-radius: 2px;
	padding: 16px 22px 18px;
	transition: background-color .2s;
}
#post-archives .archives ul li a:hover,
#top-news .archives ul li a:hover {
	/* マウスを載せたときは、板を明るくせず（文字との明るさの比を保つため）、少し青くして細い枠を出す。 */
	background-color: rgba(30, 32, 44, .72);
	box-shadow: inset 0 0 0 1px rgba(157, 176, 255, .35);
}
#post-archives .archives ul li a:focus-visible,
#top-news .archives ul li a:focus-visible { outline: 2px solid #9db0ff; outline-offset: 2px; }
#post-archives .archives .archives-meta,
#top-news .archives .archives-meta {
	display: inline-block;
	vertical-align: middle;
	margin-right: 12px;
	font-size: 16px;
	font-size: 1.6rem;
	color: #cfd6e6;
}
#post-archives .archives .archives-category,
#top-news .archives .archives-category {
	display: inline-block;
	vertical-align: middle;
	overflow: visible;
}
#post-archives .archives .mnews-type,
#top-news .archives .mnews-type {
	--mnews-c: #a7b0bd;
	display: inline-block;
	overflow: visible;
	font-size: 16px;
	font-size: 1.6rem;
	line-height: 1;
	letter-spacing: .08em;
	padding: 6px 15px;
	border: 1px solid var(--mnews-c);
	color: var(--mnews-c);
	border-radius: 999px;
}
#post-archives .archives .mnews-type--paper,
#top-news .archives .mnews-type--paper { --mnews-c: #7299ff; }
#post-archives .archives .mnews-type--presentation,
#top-news .archives .mnews-type--presentation { --mnews-c: #58c7dc; }
#post-archives .archives .mnews-type--award,
#top-news .archives .mnews-type--award { --mnews-c: #e9c46a; }
#post-archives .archives .mnews-type--grant,
#top-news .archives .mnews-type--grant { --mnews-c: #b494ff; }
#post-archives .archives .mnews-type--lab,
#top-news .archives .mnews-type--lab { --mnews-c: #a7b0bd; }
#post-archives .archives .mnews-type::before,
#top-news .archives .mnews-type::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: var(--mnews-c);
	opacity: .75;
}
#post-archives .archives .mnews-type .mnews-l-jp,
#top-news .archives .mnews-type .mnews-l-jp { display: inline; }
#post-archives .archives .mnews-type .mnews-l-en,
#top-news .archives .mnews-type .mnews-l-en { display: none; }
[data-current-lang="en"] #post-archives .archives .mnews-type .mnews-l-jp,
[data-current-lang="en"] #top-news .archives .mnews-type .mnews-l-jp { display: none; }
[data-current-lang="en"] #post-archives .archives .mnews-type .mnews-l-en,
[data-current-lang="en"] #top-news .archives .mnews-type .mnews-l-en { display: inline; }
#post-archives .archives .archives-title,
#top-news .archives .archives-title { margin-top: 8px; }
@media screen and (max-width: 800px) {
	#post-archives .archives ul li a,
	#top-news .archives ul li a { padding: 14px 16px 16px; }
}
@media screen and (max-width: 600px) {
	#post-archives .archives .archives-meta,
	#top-news .archives .archives-meta { font-size: 14px; font-size: 1.4rem; }
	#post-archives .archives .mnews-type,
	#top-news .archives .mnews-type { font-size: 14px; font-size: 1.4rem; padding: 5px 13px; }
}

/* 記事のページの体裁（2026-11-15、mitsume-news 0.3.0。三目さんが採用した案。概要の段落の青い線は付けない、という指示による）。
   NEWS の記事を 1 件開いたページで、箱を半透明にして後ろの背景をぼかし、題名を小さくし、先頭の 1 文字を大きくする飾りをやめる。
   テーマは、箱（.background.box）を不透明な灰色（#323232）、題名を 52px、先頭の文字を 70px にしている。ここで上書きする。
   対象は、投稿（type-post）の記事の箱だけ。メンバーや論文のページの箱は変えない。
   日付の文字は、テーマの青（#7299ff）のままだと、背景の明るいところで箱との明るさの比が 4.5 を下回るので、一覧と同じ薄い色にする。 */
article.type-post.box {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 6px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
article.type-post.box .post-date { color: #cfd6e6; }
article.type-post.box .post-title .title {
	font-size: 30px;
	line-height: 1.5;
	padding-bottom: .5em;
}
article.type-post.box .post-title .title:first-letter,
article.type-post.box .post-title .title span:first-letter { font-size: inherit; }
@media screen and (max-width: 600px) {
	article.type-post.box .post-title .title { font-size: 22px; }
}

/* 記事のページの、種類の札、記事の下のボタン、右の欄「最近の投稿」（2026-11-19、mitsume-news 0.4.0。やることリストの A-12。
   三目さんの決定（2026-11-18）：右の欄は残して整える（日付と種類の札、題名は 2 行まで、今の記事の色を変える）、記事の下は字だけのボタン。
   記事の箱の色と題名の大きさ（0.3.0）は変えない。札とボタンはテーマの single.php がこのプラグインの関数を呼んで出し、右の欄は
   このプラグインが「最近の投稿」のウィジェットの出力を替える。見本は hp_docs/design/beauty_20261118/mock/sheet_7h.png。 */
.mnews-type--paper { --mnews-c: #7299ff; }
.mnews-type--presentation { --mnews-c: #58c7dc; }
.mnews-type--award { --mnews-c: #e9c46a; }
.mnews-type--grant { --mnews-c: #b494ff; }
.mnews-type--lab { --mnews-c: #a7b0bd; }
article.type-post.box .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}
article.type-post.box .post-meta .mnews-type,
#sidebar .mnews-recent .mnews-type {
	display: inline-block;
	line-height: 1;
	border: 1px solid var(--mnews-c, #a7b0bd);
	color: var(--mnews-c, #a7b0bd);
	border-radius: 999px;
	white-space: nowrap;
}
article.type-post.box .post-meta .mnews-type {
	font-size: 14px;
	font-size: 1.4rem;
	letter-spacing: .08em;
	padding: 5px 13px;
}
/* 前後の記事へのボタン（0.4.1、2026-11-19：記事の箱の下から上へ移した。三目さんの指摘「記事の長さによってこのボタンが上下するため、
   非常に使い勝手が悪い」と、案 A の決定による。案は hp_docs/design/news_nav_20261119/）。
   表題「NEWS」と記事の箱の間に 1 行で置く（NEWS の一覧のタブと同じ高さ）。左に「NEWS の一覧へ」、右に「前の記事」「次の記事」。
   どの記事でも同じ位置になる。前か次の記事がない側は、押せない薄い字のボタン（.mnews-nav-off）を同じ場所に置く。 */
.mnews-nav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 15px;
	font-size: 1.5rem;
	line-height: 1.4;
}
.mnews-nav .mnews-nav-list { margin-right: auto; }
.mnews-nav a,
.mnews-nav .mnews-nav-off {
	display: inline-block;
	color: #e6e9ff;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 6px;
	padding: 10px 18px;
	background: rgba(18, 18, 22, .55);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .2s, background-color .2s;
}
.mnews-nav a:hover {
	border-color: rgba(157, 176, 255, .6);
	background: rgba(30, 32, 44, .72);
}
.mnews-nav a:focus-visible { outline: 2px solid #9db0ff; outline-offset: 2px; }
.mnews-nav .mnews-nav-off {
	color: rgba(230, 233, 255, .28);
	border-color: rgba(255, 255, 255, .07);
	background: transparent;
	cursor: default;
}
/* スマホの幅でも、記事の箱の上に 1 行で置く。幅 359px 以下では、字と余白を少し詰めて 1 行に収める。 */
@media screen and (max-width: 600px) {
	.mnews-nav { gap: 8px; margin: 0 0 14px; font-size: 13px; font-size: 1.3rem; }
	.mnews-nav a,
	.mnews-nav .mnews-nav-off { padding: 9px 10px; }
}
@media screen and (max-width: 359px) {
	.mnews-nav { gap: 6px; font-size: 12px; font-size: 1.2rem; }
	.mnews-nav a,
	.mnews-nav .mnews-nav-off { padding: 8px 7px; }
}
/* 右の欄「最近の投稿」。テーマは、行の頭に丸を付け、題名を全部出す（長い題名は 8 行ほどに折れる）。 */
#sidebar .mnews-recent li {
	padding: 12px 0;
	text-indent: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	line-height: 1.6;
}
#sidebar .mnews-recent li:first-child { padding-top: 4px; }
#sidebar .mnews-recent li::before { display: none; content: none; }
#sidebar .mnews-recent .mnews-recent-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 4px;
	font-size: 13px;
	font-size: 1.3rem;
	color: #b9bcc8;
}
#sidebar .mnews-recent .mnews-type {
	font-size: 12px;
	font-size: 1.2rem;
	letter-spacing: .04em;
	padding: 3px 9px;
}
#sidebar .mnews-recent li a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 15px;
	font-size: 1.5rem;
}
#sidebar .mnews-recent li a[aria-current="page"] { color: #9db0ff; }
