@charset "UTF-8";

/* =========================================================================
   news-ticker.css — ヘッダー直下の新着情報ティッカー（追加分）
   -------------------------------------------------------------------------
   旧テーマ由来の CSS には手を入れていない。
   ページ下部の新着情報（.information_column）はそのまま残してあり、
   ここはヘッダーのすぐ下で 1 行ずつ入れ替えて見せるだけの帯。

   中身は HTML に書いていない。`assets/js/site.js` が
   .information_column の <dl> から先頭 5 件を読んで組み立てる。
   一覧が 1 箇所（.information_column）だけで済み、
   新着を足したときにこちらを直し忘れることがない。
   JavaScript が動かない環境では帯ごと出ない（hidden のまま）。

   読み込むページ: / （トップページのみ）
   ========================================================================= */


.news_ticker {
	width: 100%;
	background-color: #ffffff;
	border-left: 24px solid #00afdf;   /* header / .topimage と同じ水色帯 */
	border-bottom: 1px solid #e3e3e3;
}

/* hidden 属性より下のクラス指定（display: flex など）が勝ってしまうため、
   組み立てが終わるまで隠すには明示的に打ち消しておく必要がある。 */
.news_ticker[hidden] {
	display: none;
}

.news_ticker .inner {
	display: flex;
	align-items: center;
	height: 52px;
}


/* --- 左端の「新着情報」ラベル（一覧へのリンクを兼ねる） ------------------ */
.news_ticker_label {
	flex: 0 0 auto;
	margin: 0 16px 0 0;
}
.news_ticker_label a {
	display: block;
	padding: 7px 14px;
	background-color: #00afdf;
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	transition: 0.2s all ease 0s;
}
.news_ticker_label a:hover,
.news_ticker_label a:focus {
	background-color: #001db3;
	color: #ffffff;
}


/* --- 1 行分だけを見せる窓 -------------------------------------------------
   .news_ticker_viewport の高さ＝項目 1 つの高さ。
   はみ出した項目は overflow: hidden で隠し、リスト全体を
   translateY で 1 項目分ずつ動かして入れ替える。
   高さを揃えないと止まる位置がずれるので、両方を同じ値にすること。 */
.news_ticker_viewport {
	flex: 1 1 auto;
	min-width: 0;
	height: 28px;
	overflow: hidden;
}
.news_ticker_list {
	margin: 0;
	padding: 0;
	transform: translateY(0);
}
/* 動かしている間だけ付けるクラス。位置を戻すときは外して瞬時に動かす。 */
.news_ticker_list.is_sliding {
	transition: transform 0.45s ease;
}
.news_ticker_item {
	height: 28px;
	list-style: none;
}
.news_ticker_item a {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	height: 28px;
	color: #555555;
	font-size: 14px;
	text-decoration: none;
}
.news_ticker_date {
	flex: 0 0 auto;
	margin-right: 14px;
	color: #8b8b8b;
	font-size: 13px;
	letter-spacing: 0.04em;
}
/* タイトルは 1 行に収める。長いものは末尾を … にする。 */
.news_ticker_title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.news_ticker_item a:hover .news_ticker_title,
.news_ticker_item a:focus .news_ticker_title {
	text-decoration: underline;
}


/* 動きを減らす設定のときは、送りをアニメーションさせない。
   自動送り自体も site.js 側で最初から止めてある。 */
@media (prefers-reduced-motion: reduce) {
	.news_ticker_list.is_sliding {
		transition: none;
	}
}


/* --- 操作ボタン（前へ / 一時停止・再生 / 次へ） --------------------------
   自動で動くものには止める手段が要る（WCAG 2.2.2）。
   マウスを載せている間・フォーカスがある間・タブが裏にある間も止める。 */
.news_ticker_ctrl {
	flex: 0 0 auto;
	display: flex;
	margin-left: 16px;
}
.news_ticker_btn {
	width: 26px;
	height: 26px;
	margin-left: 4px;
	padding: 0;
	background-color: transparent;
	border: 1px solid #d5d5d5;
	color: #8b8b8b;
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
	transition: 0.2s all ease 0s;
}
.news_ticker_btn:hover {
	border-color: #00afdf;
	color: #00afdf;
}


/* --- タブレット ---------------------------------------------------------- */
@media all and (min-width: 768px) and (max-width: 1200px) {
	.news_ticker {
		border-left-width: 20px;
	}
}


/* --- スマートフォン ------------------------------------------------------
   SP では旧テーマの header が position: fixed（高さ 50px）で、
   ページの先頭 50px はヘッダーに隠れる。帯がそこに入ると見えないので、
   ヘッダーの高さ分だけ下げている。 */
@media all and (max-width: 767px) {
	.news_ticker {
		margin-top: 50px;
		border-left-width: 8px;
	}
	.news_ticker .inner {
		height: 46px;
	}
	.news_ticker_label {
		margin-right: 10px;
	}
	.news_ticker_label a {
		padding: 6px 10px;
		font-size: 11px;
	}
	.news_ticker_item a {
		font-size: 13px;
	}
	.news_ticker_date {
		margin-right: 10px;
		font-size: 12px;
	}
	/* 幅が足りないので前へ / 次へは出さない。止める手段は残す。 */
	.news_ticker_ctrl {
		margin-left: 10px;
	}
	.news_ticker_btn[data-ticker="prev"],
	.news_ticker_btn[data-ticker="next"] {
		display: none;
	}
}
