#h1_area{	background-image: url(images/h1_bg_pc.jpg);}

/* 縦置きの場合 */
@media (orientation: portrait)
{
#h1_area{	background-image: url(images/h1_bg_sp.jpg);}
}

body 
{
	overflow-x: hidden;
	overflow-y: auto;
}

*,
*::before,
*::after 
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#history ul 
{
	padding: 0;
}

#history img 
{
	margin:10px 0 5px;
	border: #fff 5px solid;
    max-width:100%;
    height:auto;
}

#history ul li 
{
	list-style-type: none;
	position: relative;
	width: 6px;
	margin-right: auto;
	margin-left: auto;
	margin-top:-40px;
	padding-top: 0;
	background: #ccc;
	line-height:1.5;
}

#history ul li:first-child 
{
	margin-top: 0px;
}

#history ul li::after 
{
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: inherit;
	z-index:10;
}

#history ul li .box
{
	position: relative;
	bottom: 0;
	width: 520px;
	padding: 20px;
	background: #eee;
	text-align: justify;
}

#history ul li .box::before 
{
	content: '';
	position: absolute;
	bottom: 7px;
	width: 0;
	height: 0;
	border-style: solid;
}

#history ul li:nth-child(odd) .box 
{
	left: 45px;
}

#history ul li:nth-child(odd) .box::before 
{
	left: -15px;
	border-width: 8px 16px 8px 0;
	border-color: transparent #eee transparent transparent;
}

#history ul li:nth-child(even) .box 
{
	left: -559px;
}

#history ul li:nth-child(even) .box::before 
{
	right: -15px;
	border-width: 8px 0 8px 16px;
	border-color: transparent transparent transparent #eee;
}

#history h4
{
	display: block;
	font-size: 21px;
	line-height: 1.2;
	font-weight: bold;
	margin-bottom: 8px;
}


#history ul li::after 
{
	transition: background .5s ease-in-out;
}

#history ul li.in-view::after 
{
	background: #0000ff;
}

#history ul li .box 
{
	visibility: hidden;
	opacity: 0;
	transition: all .3s ease-in-out;
}

#history ul li:nth-child(odd) .box 
{
	transform: translateX(120px);

}

#history ul li:nth-child(even) .box 
{
	transform: translateX(-120px);
}

#history ul li.in-view .box 
{
	transform: none;
	visibility: visible;
	opacity: 1;
}

#history ul li .box .photo
{
	text-align: center;
}

/* 画面が2画面分になったとき */
@media screen and (min-width:1920px)
{

}



/* PCのみ設定  768 以上*/
@media screen and (min-width:1200px)
{



}

/* デフォルトサイズ以下 */
@media screen and (max-width: 1399px) 
{

#history ul
{
	width: auto;
}

#history ul li 
{
	margin-top: -20px;
}

#history .body
{
	padding-left: 0px;
	padding-right: 0px;
}

#history ul li .box 
{
	width: 40vw;
	padding: 10px;
}

#history ul li:nth-child(even) .box 
{
	left: calc(-40vw - 39px);
	/*250+45-6*/
}


}

/* タブレット以下 */
@media screen and (max-width: 1199px) 
{

#history ul
{
width: auto;
}

#history .body
{
	padding-left: 0px;
	padding-right: 0px;
}

#history ul li .box 
{
	width: 40vw !important;
	padding: 10px;
}

#history ul li:nth-child(even) .box 
{
	left: calc(-40vw - 39px);
	/*250+45-6*/
}

#history ul li 
{
	padding-top: 50px;
}

}

/* 横置きの場合 */
@media (max-width: 1199px) and (orientation: landscape)
{
}

/* 縦置きの場合 */
@media (max-width: 1199px) and (orientation: portrait)
{


}



/* タブレットレイアウト : 768 px ～ 959 px */
@media screen and (min-width:768px) and (max-width:1199px)
{


}


/* スマホ設定  767 以下*/
@media screen and (max-width:767px)
{
#history ul li 
{
	padding-top: 50px;
	margin-top: -40px; 
}

}

/* スマホ設定  599 以下*/
@media screen and (max-width:599px)
{

#history ul li 
{
	margin-left: 10px;
	margin-top: -20px; 
	margin-bottom: 0px;
}

#history ul li .box 
{
	width: calc(100vw - 80px) !important;

}

#history ul li:nth-child(even) .box 
{
	left: 45px;
}

#history ul li:nth-child(even) .box::before 
{
	left: -15px;
	border-width: 8px 16px 8px 0;
	border-color: transparent #eee transparent transparent;
}

}