@charset "utf-8";



/*スライドショー（cssでのbackground使用）
ここでは、16:9の画像比率（9÷16=0.5625）を読み込む指定を行なっています。
異なる画像比率にしたい場合、#mainimgのpadding-topの数字を変更します。
---------------------------------------------------------------------------*/
/*3枚の画像を囲むブロック*/
#mainimg {
	width: 100%;
	height: 0;
	padding-top: 56%;	/*アスペクト比を変更したい場合は、この行を変更する。*/
	position: relative;
	background: #000;	/*背景色*/
}

/*3秒のローディングテキスト。ローディングの時間はjs/main.jsの3000の数字で変更できます。*/
#loading-text {
	position: absolute;z-index: 1000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1rem;	/*文字サイズ*/
	color: #999;		/* テキストの色 */
}

/*動画と画像の共通設定*/
#mainimg video,
#mainimg img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*３セットのスライドショーを囲むそれぞれのブロック*/
#mainimg div div {
	position: relative;z-index: 1;
}

/*３枚の画像の共通設定*/
.slide {
	width: 100%;height: 100%;
	position: absolute;right: 0px;top: 0px;
	display: flex;
	align-items: center;
	padding: 0 5vw;
	opacity: 0;
	transition: opacity 1s;	/*ここの1s（＝1秒）を変更すると、フェードのスピードを変更できます。*/
}

/*各スライドの個別設定*/
.slide1 {
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

.slide2 {
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

.slide3 {
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

.slide4 {
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}


/*現在表示されているスライドのみをクリック可能にする設定（変更不要）
---------------------------------------------------------------------------*/
.slide {
	pointer-events: none; /* デフォルトでクリックを無効にする */
}

.slide.active {
	pointer-events: auto; /* 表示中のスライドのみクリックを有効にする */
}


/*スライドショー上のテキスト
---------------------------------------------------------------------------*/
/*h2（大文字）*/
#mainimg h2 {
	font-size: 5vw;		/*文字サイズ。画面幅に対して自動的に調整されます。*/
	font-weight: 600;	/*文字の太さ。100から900まで指定可能*/
	color: #fff;		/*文字色*/
	text-shadow: 2px 2px rgba(0,0,0,0.5), 0px 0px 10px rgba(0,0,0,0.5);	/*テキストの影。右下にくっきり出す影と、全体にぼかして出す影の２重になっています。*/
}

/*h2の下の小文字*/
#mainimg h2 span {
	display: block;
	font-weight: normal;	/*h要素のデフォルトの太字を標準にする*/
	font-size: 2vw;			/*文字サイズ。画面幅に対して自動的に調整されます。*/
	letter-spacing: 0.1em;	/*文字間隔を少しだけ広くする*/
}

/*p要素（説明テキスト部分）*/
#mainimg p {
	display: inline-block;
	font-size: 1.2vw;	/*文字サイズ。画面幅に対して自動的に調整されます。*/
	background: rgba(0,0,0,0.6);	/*背景色。0,0,0は黒のことで0.6は色が60%出た状態。*/
	color: #fff;		/*文字色*/
	padding: 1vw 2vw;	/*ボックス内の余白。上下、左右の順番。*/
	border-radius: 5px;	/*角を少しだけ丸くする*/
}

	/*画面幅700px以下の追加指定*/
	@media screen and (max-width:700px) {

	/*p要素（説明テキスト部分）*/
	#mainimg p {
		display: none;	/*画面が小さくなるので非表示にする*/
	}

	}/*追加指定ここまで*/

