/**
 * タイムラインアニメーション用CSS
 * スクロールアニメーション対応
 */

/* タイムラインのベーススタイル */
.cd-timeline {
	position: relative;
	padding: 2em 0;
	margin: 2em auto;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.cd-timeline.is_active {
	opacity: 1;
}

/* タイムラインの中央線 */
.cd-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 18px;
	height: 100%;
	width: 4px;
	background: #d7e4ed;
}

@media only screen and (min-width: 1170px) {
	.cd-timeline {
		margin: 3em auto;
	}
	.cd-timeline::before {
		left: 50%;
		margin-left: -2px;
	}
}

/* タイムラインブロック */
.cd-timeline-block {
	position: relative;
	margin: 2em 0;
}

.cd-timeline-block:after {
	content: "";
	display: table;
	clear: both;
}

.cd-timeline-block:first-child {
	margin-top: 0;
}

.cd-timeline-block:last-child {
	margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
	.cd-timeline-block {
		margin: 4em 0;
	}
	.cd-timeline-block:first-child {
		margin-top: 0;
	}
	.cd-timeline-block:last-child {
		margin-bottom: 0;
	}
}

/* タイムラインアイコン */
.cd-timeline-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
	background: #75ce66;
  z-index: 9999;
}

.cd-timeline-img svg {
	display: block;
	width: 24px;
	height: 24px;
	position: relative;
	left: 50%;
	top: 50%;
	margin-left: -12px;
	margin-top: -12px;
	fill: white;
}

.cd-timeline-img.cd-picture {
	background: #75ce66;
}

@media only screen and (min-width: 1170px) {
	.cd-timeline-img {
		width: 60px;
		height: 60px;
		left: 50%;
		margin-left: -30px;
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
    top: -40px;
	}
	.cd-timeline-img svg {
		width: 30px;
		height: 30px;
		margin-left: -15px;
		margin-top: -15px;
	}
	.cd-timeline-img.is-hidden {
		visibility: hidden;
	}
	.cd-timeline-img.bounce-in {
		visibility: visible;
		animation: cd-bounce-1 0.6s;
	}
}

@keyframes cd-bounce-1 {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}
	60% {
		opacity: 1;
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

/* タイムラインコンテンツ */
.cd-timeline-content {
	position: relative;
	margin-left: 60px;
	background: white;
	border-radius: 0.25em;
	padding: 1em;
	box-shadow: 0 3px 0 #d7e4ed;
}

.cd-timeline-content:after {
	content: "";
	display: table;
	clear: both;
}

.cd-timeline-content::before {
	content: '';
	position: absolute;
	top: 16px;
	right: 100%;
	height: 0;
	width: 0;
	border: 7px solid transparent;
	border-right: 7px solid white;
}

.cd-timeline-content h2,
.cd-timeline-content h3 {
	color: #303e49;
	margin: 0 0 0.5em;
}

.cd-timeline-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cd-timeline-content ul li {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #f0f0f0;
}

.cd-timeline-content ul li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.cd-timeline-content .list_title h3 {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 0.3em;
}

.cd-timeline-content a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 0;
}

.cd-timeline-content a:hover {
  color: var(--wp--preset--color--custom-main);
	text-decoration: none;
}

.cd-date {
	float: left;
	padding: 0.8em 0;
	opacity: 0.7;
	font-size: 0.875rem;
	color: #303e49;
	font-weight: bold;
}

@media only screen and (min-width: 768px) {
	.cd-timeline-content {
		margin-left: 90px;
		padding: 1.5em;
	}

	.cd-timeline-content .list_title h3 {
		font-size: 1rem;
	}
}

@media only screen and (min-width: 1170px) {
	.cd-timeline-content {
		margin-left: 0;
		padding: 1.6em;
		width: 45%;
	}
	.cd-timeline-content::before {
		top: 24px;
		left: 100%;
		border-color: transparent;
		border-left-color: white;
	}
	.cd-timeline-content.is-hidden {
		visibility: hidden;
	}
	.cd-timeline-content.bounce-in {
		visibility: visible;
		animation: cd-bounce-2 0.6s;
	}
	.cd-timeline-block:nth-child(even) .cd-timeline-content {
		float: right;
	}
	.cd-timeline-block:nth-child(even) .cd-timeline-content::before {
		top: 24px;
		left: auto;
		right: 100%;
		border-color: transparent;
		border-right-color: white;
	}
	.cd-date {
		position: absolute;
		width: 100%;
		left: 122%;
		top: 6px;
		font-size: 1rem;
	}
	.cd-timeline-block:nth-child(even) .cd-date {
		left: auto;
		right: 122%;
		text-align: right;
	}
}

@keyframes cd-bounce-2 {
	0% {
		opacity: 0;
		transform: translateX(-100px);
	}
	60% {
		opacity: 1;
		transform: translateX(20px);
	}
	100% {
		transform: translateX(0);
	}
}

/* レスポンシブ対応 */
@media only screen and (max-width: 767px) {
	.cd-timeline-content {
		font-size: 0.9rem;
	}
}

.list_month {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 0;
}
