.noscroll {
	overflow: hidden;
}

#history header:not(.opaque) #hmenu li a, 
#history header:not(.opaque) #menu #menu_btn label, 
#history #breadcrumb {
	color: #FFFFFF;
}

#history header:not(.opaque) #hmenu li a::before {
	background-color: #FFFFFF;
}

#history header:not(.opaque) > div > .lang li label {
	border-color: #FFFFFF;
}

#history #title {
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

#history #chart {
	background-color: #0E2446;
}

#history #chart h2 {
	font-size: max(min(5.7vw, 3.4rem), 2.1rem);
}

#history #timeline {
	background: url(../images/history/bg_mesh.png), linear-gradient(to right, #000000, #00366C);
}

#history #timeline h2 {
	font-size: max(min(9vw, 6.3rem), 3rem);
	color: #FFFFFF;
	text-align: center;
}

#history #timeline h2 span {
	font-size: 0.5em;
}

#history #timeline dl {
	position: relative;
	margin: 10px auto 0 auto;
	width: 100%;
	font-size: max(min(2.6vw, 2rem), 1.3rem);
}

#history #timeline dl::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	border-left: solid 0.4em #005BAB;
	transform: translateX(-50%);
}

#history #timeline dl dt {
	position: absolute;
	width: 100%;
	height: 3em;
	z-index: 2;
	pointer-events: none;
}

#history #timeline dl dt span {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	left: 50%;
	width: 3em;
	height: 3em;
	font-size: max(min(3.5vw, 3.2rem), 1.9rem);
	color: #FFFFFF;
	background-color: #005BAB;
	border-radius: 100%;
	transform: translateX(-50%);
}

#history #timeline dl dd {
	position: relative;
	cursor: pointer;
	z-index: 1;
}

#history #timeline dl dd::after {
	content: "";
	position: absolute;
	top: 0.6em;
	height: 0.4em;
	background-color: #005BAB;
}

#history #timeline dl dt:first-of-type {
	top: -10px;
}

#history #timeline section:not(:first-of-type) dl dt:first-of-type {
	transform: translateY(50%);
}

#history #timeline dl .tlr::after {
	right: 100%;
}

#history #timeline dl .tll::after {
	left: 100%;
}

#history #timeline dl dd h3 {
	position: relative;
	padding: 0.3em 0.6em;
	color: #FFFFFF;
	line-height: 1.2;
	background: linear-gradient(225deg, transparent 8px, #005BAB 8px);
}

#history #timeline dl .tlr h3 {
	background: linear-gradient(225deg, transparent 8px, #005BAB 8px);
}

#history #timeline dl .tll h3 {
	background: linear-gradient(-225deg, transparent 8px, #005BAB 8px);
}

#history #timeline .year {
	letter-spacing: 1px;
}

#history #timeline .period {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 15px;
	text-align: center;
}

#history #timeline .period li {
	padding: 5px;
}

#history #timeline .period li a {
	display: block;
	padding: 0.4em;
	width: 100%;
	font-size: max(min(4.4vw, 2.2rem), 1.4rem);
	font-weight: bold;
	color: #007ECA;
	line-height: 1;
	background-color: #FFFFFF;
	border: solid 2px #007ECA;
	border-radius: 2em;
}

#history #timeline .period li.active a {
	background-color: #90DDFF;
}

#history #timeline .period li a:hover {
	text-decoration: none;
}

#history #timeline .modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	padding: 20px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	overflow-y: scroll;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

#history #timeline .modal::-webkit-scrollbar {
	display: none;
}

#history #timeline .modal-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

#history #timeline .modal-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(51, 51, 51, 0.8);
}

#history #timeline .modal-box {
	display: block;
	position: relative;
	margin: auto;
	width: 100%;
	background-color: #FFFFFF;
}

#history #timeline .modal-box::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: -20px;
	width: 100%;
	height: 20px;
}

#history #timeline .modal-box h3 {
	font-size: 2.4rem;
	color: #005BAB;
}

#history #timeline .modal-box p a {
	color: #005BAB;
	text-decoration: underline;
}

#history #timeline .modal-close {
	position: absolute;
	top: 0;
	right: 5px;
	display: inline-block;
	padding: 10px;
	text-align: center;
	cursor: pointer;
}

#history #timeline .modal-inner .modal-text p {
	display: none;
	padding: 0;
}

#history #timeline .modal-box .modal-inner .modal-text p {
	display: inline-block;
}


@media all and (max-width: 767px) {
	#history #title {
		background-image: url(../images/history/bg_history_sp.jpg);
	}

	#history #title p {
		padding: 0 0 20px 0;
	}

	#history #chart {
		padding: 20px 0;
	}

	#history #chart h2 {
		padding: 0 0 20px 0.5em;
	}

	#history #timeline {
		background-size: 10%, 100%;
	}

	#history #timeline p {
		padding: 15px 0;
	}

	#history #timeline dl {
		padding: 19% 0 10% 0;
	}

	#history #timeline dl dt:nth-of-type(2) {
		top: 20%;
	}
	
	#history #timeline dl dt:nth-of-type(3) {
		top: 47%;
	}

	#history #timeline dl dd {
		margin: 0 0 20px 0;
		width: calc(50% - 50px);
	}

	#history #timeline dl dd:nth-of-type(2) {
		margin-top: calc(15px + 2em);
	}

	#history #timeline dl dd::after {
		top: 0.5em;
		width: 50px;
	}

	#history #timeline .period li {
		width: calc(100% / 3);
	}

	#history #timeline .modal-box {
		padding: 40px 20px;
	}

	#history #timeline .modal-box .modal-inner img {
		margin: 20px auto 40px auto;
		width: 100%;
		max-height: 500px;
		object-fit: contain;
		object-position: center top;
	}
}

@media all and (min-width: 768px) {
	#history #title {
		min-height: 520px;
		background-image: url(../images/history/bg_history.jpg);
	}

	#history #title p {
		padding: 0 180px;
	}

	#history #chart {
		padding: 70px 0 90px 0;
	}

	#history #chart h2 {
		padding: 0 0 15px 74px;
	}

	#history #timeline p {
		padding: 30px 170px;
	}

	#history #timeline dl {
		padding: 10% 0;
	}

	#history #timeline dl dt:nth-of-type(2) {
		top: 22%;
	}
	
	#history #timeline dl dt:nth-of-type(3) {
		top: 49%;
	}

	#history #timeline dl dd {
		margin: 45px 72px 0 72px;
		width: 336px;
	}

	#history #timeline dl dd:nth-of-type(2) {
		margin-top: calc(45px + 4em);
	}

	#history #timeline dl dd::after {
		width: 120px;
	}

	#history #timeline dl dd h3::before,
	#history #timeline dl dd h3::after {
		content: "";
		display: block;
		position: absolute;
		top: calc(50% + 1px);
		height: 1px;
		background-color: #FFFFFF;
	}

	#history #timeline dl .tll h3 {
		padding-left: 35px;
		text-align: right;
	}

	#history #timeline dl .tlr h3 {
		padding-right: 35px;
	}

	#history #timeline dl dd h3::before {
		width: 30px;
	}
	
	#history #timeline dl dd h3::after {
		width: 10px;
	}

	#history #timeline dl .tlr h3::before {
		right: 10px;
	}
	
	#history #timeline dl .tlr h3::after {
		right: 10px;
		transform-origin: bottom right;
		transform: rotate(45deg);
	}
	
	#history #timeline dl .tll h3::before {
		left: 10px;
	}
	
	#history #timeline dl .tll h3::after {
		left: 10px;
		transform-origin: bottom left;
		transform: rotate(-45deg);
	}

	#history #timeline .period {
		margin: auto;
		width: 1000px;
	}

	#history #timeline .period li {
		width: calc(100% / 6);
	}

	#history #timeline .period li a {
		font-size: 2.2rem;
	}

	#history #timeline .modal-box {
		padding: 35px 50px;
		max-width: 850px;
	}

	#history #timeline .modal-box .modal-inner {
		display: flex;
	}

	#history #timeline .modal-box .modal-inner .modal-text {
		padding: 0 50px 0 0;
		width: 500px;
	}

	#history #timeline .modal-box .modal-inner img {
		width: 250px;
	}
}