@charset "utf-8";

.container {
	padding: 10px;
	border: #fff 1px solid;
}

.wrapper {
	max-width: 98%;
	margin: 0 auto;
}

#ticker-02 {
	width: 100%;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

#ticker-02 ul {
	width: 100%;
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}

#ticker-02 ul li {
	width: 100%;
	display: none;
	margin: 0;
	padding: 0;
}

ul.newsticker-list {
	list-style: none;
	margin: 0;
	padding: 0;
}


div.newsticker-box {
/*	border: #ccc solid 1px; */
	padding: 0 24px 0 0;
}

/* 重要記事 */
li.newsticker-item--important {
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

li.newsticker-item--important a {
	display: grid;
	grid-template-columns: 130px 130px 1fr;
	column-gap: 10px;
	align-items: start;
	padding: 18px 0 18px 28px;
}

li.newsticker-item--important .newsticker-date {
	display: block;
	font-size: 1em;
	line-height: 1.6;
	white-space: nowrap;
}

li.newsticker-item--important .newsticker-title {
	display: block;
	font-size: 1em;
	line-height: 1.7;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* ティッカー1画面内の各行 */
#ticker-02 .newsticker-row {
	border-bottom: 1px solid #ddd;
}

#ticker-02 .newsticker-row a {
	display: grid;
	grid-template-columns: 130px 130px 1fr;
	column-gap: 8px;
	align-items: start;
	padding: 24px 0 24px 24px;
}

#ticker-02 .newsticker-date {
	display: block;
	font-size: 1em;
	line-height: 1.6;
	color: #333;
	white-space: nowrap;
}

span.newsticker-category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	box-sizing: border-box;
	color: #fff;
	font-size: 0.85em;
	line-height: 1.2;
	min-height: 40px;
	padding: 0 14px;
	white-space: nowrap;
}

span.newsticker-important {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 0 8px;
	min-height: 28px;
	font-size: 0.85em;
	background: #f30;
	color: #fff;
	border-radius: 4px;
	white-space: nowrap;
}

span.newsticker-category {
	background: #2cb7d8;
	border-radius: 8px;
}

#ticker-02 .newsticker-title {
	display: block;
	font-size: 1em;
	line-height: 1.7;
	color: #333;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* タイトルや日付がリンク色に引っ張られないように */
li.newsticker-item a,
li.newsticker-item a:hover,
li.newsticker-item a:visited,
li.newsticker-item a:focus {
	text-decoration: none;
	color: #333;
}
.newsticker-empty {
	width: 90px;
}
span.cat_slug_seminar {
	background: #ffa64b;
}
span.cat_slug_news {
	background: #c698ff;
}
span.cat_slug_case {
	background: #ff8080;
}
span.cat_slug_important {
	background: #ff6633;
}

/* スマホ */
@media screen and (max-width: 1200px) {
	div.newsticker-box {
		padding: 0 16px;
	}

	#ticker-02 {
		min-height: 0;
	}

	#ticker-02 .newsticker-row a,
	li.newsticker-item--important a {
		display: grid;
		grid-template-columns: 130px auto;
		grid-template-rows: auto auto;
		column-gap: 8px;
		row-gap: 6px;
		padding: 18px 0;
		align-items: center;
		justify-content: start;
	}

	#ticker-02 .newsticker-date,
	li.newsticker-item--important .newsticker-date {
		font-size: 1em;
		white-space: nowrap;
		width:150px;
	}

	#ticker-02 .newsticker-row .newsticker-title,
	li.newsticker-item--important .newsticker-title {
		grid-column: 1 / 3;
		font-size: 1em;
		line-height: 1.6;
	}

	span.newsticker-category,
	span.newsticker-important {
		width: 130px;
		min-height: 34px;
		padding: 0 12px;
		font-size: 0.8em;
		border-radius: 8px;
		box-sizing: border-box;
		justify-content: center;
	}

	span.newsticker-important {
		min-height: 34px;
		width: 110px;
		padding: 0 12px;
		font-size: 0.8em;
		border-radius: 8px;
	}
}