@charset "utf-8";



/*スライドショー（cssでのbackground使用）
ここでは、2:1の画像比率（1÷2=0.5）を読み込む指定を行なっています。
異なる画像比率にしたい場合、.mainimgのpadding-topの数字を変更します。
---------------------------------------------------------------------------*/
/*3枚の画像を囲むブロック*/
#mainimg {
	width: 100%;
      min-width: 100%;
  margin: 0 auto;
    	height: 0;
	padding-top: 50%;
	position: relative;
	color: #fff;	/*スライドショー上の文字色*/
	text-shadow: 1px 1px 5px rgba(0,0,0,0.5);	/*テキストの影。右へ、下へ、ぼかし幅。0,0,0は黒のことで0.5は色が50%出た状態。*/
	margin-bottom: 50px;	/*スライドショーの下に空けるスペース。下のコンテンツとの間のスペースです。*/
background:#A41113;
}

#mainimg video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*３セットのスライドショーを囲むそれぞれのブロック*/
#mainimg div div {
	width: 45vw;	/*幅。画面の45%。*/
	position: relative;

}

/*３枚の画像の共通設定*/
.slide {
	width: 100%;
    height: 100%;
	position: absolute;
    right: 0px;
    top: 0px;
    display: flex;
    align-items: center;
	padding: 0 5vw;
	transition: opacity 1s;	/*ここの1s（＝1秒）を変更すると、フェードのスピードを変更できます。*/
}
/*１枚目画像*/
.slide1 {
	background: url('../image/1.jpg') no-repeat center center / cover;	/*１枚目の背景画像の読み込み*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/


}

/*２枚目画像*/
.slide2 {
	background: url('../image/2.jpg') no-repeat center center / cover;	/*２枚目の背景画像の読み込み*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

/*３枚目画像*/
.slide3 {
	background: url('../image/3.jpg') no-repeat center center / cover;	/*３枚目の背景画像の読み込み*/
	justify-content: flex-end;	/*テキストブロックを右寄せ*/
	text-align: right;			/*テキストを右寄せ*/
}
/*4枚目画像*/
.slide4 {
	background: url('../image/4.jpg') no-repeat center center / cover;	/*３枚目の背景画像の読み込み*/
	justify-content: flex-end;	/*テキストブロックを右寄せ*/
	text-align: right;			/*テキストを右寄せ*/
}
/*大きなテキスト*/
#mainimg h1 {
	margin: 0;padding: 0;
    font-size: 4vw;		/*文字サイズ。100vwは画面幅100%のことですが、使うフォントによっては5%にはなりません。*/
	line-height: 1.5;	/*行間を少し狭く*/
}

/*小さなテキスト*/
#mainimg p {
	font-size: 2rem;		/*文字サイズ*/
}

	/*画面幅600px以下の追加指定*/
	@media screen and (max-width:600px) {
	
	/*小さなテキストを非表示にする*/
	#mainimg p {display: none;}
	
	}/*追加指定ここまで*/


/*現在表示されているスライドのみをクリック可能にする設定（変更不要）
---------------------------------------------------------------------------*/
.slide {
	pointer-events: none; /* デフォルトでクリックを無効にする */
}

.slide.active {
	pointer-events: auto; /* 表示中のスライドのみクリックを有効にする */
}

