@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: #fff;	/*背景色*/
}

/*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 {
	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 {
	background: url('../images/1.jpg') no-repeat center center / cover;	/*１枚目の背景画像の読み込み*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

/*２枚目画像*/
.slide2 {
	background: url('../images/2.jpg') no-repeat center center / cover;	/*２枚目の背景画像の読み込み*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

/*３枚目画像*/
.slide3 {
	background: url('../images/3.jpg') no-repeat center center / cover;	/*３枚目の背景画像の読み込み*/
	justify-content: flex-end;	/*テキストブロックを右側に*/
	text-align: right;			/*テキストを右寄せ*/
}


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

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


/*スライドショー上のテキスト
---------------------------------------------------------------------------*/
/*h2（大文字）*/
#mainimg h2 {
	font-family: 'Kiwi Maru', serif;
	font-size: 8vw;
	font-weight: bold;
	color: #fff;
	text-shadow:
  0 0 5px rgba(0, 0, 64, 0.4),
  0 0 10px rgba(0, 0, 64, 0.4),
  0 0 15px rgba(0, 0, 64, 0.4),
  0 0 20px rgba(0, 0, 64, 0.4),
	0 0 25px rgba(0, 0, 64, 0.4),
  0 0 30px rgba(0, 0, 64, 0.4),
  0 0 35px rgba(0, 0, 64, 0.4),
  0 0 40px rgba(0, 0, 64, 0.4);
}

#mainimg h2 span {
	display: block;
	font-family: 'Kiwi Maru', serif;
	font-weight: bold;
	font-size: 2vw;
	letter-spacing: 0.1em;
	opacity: 0.85;
	text-shadow:
  0 0 5px rgba(16, 16, 149, 0.5),
  0 0 10px rgba(16, 16, 149, 0.5),
  0 0 15px rgba(16, 16, 149, 0.5),
  0 0 20px rgba(16, 16, 149, 0.5),
	0 0 25px rgba(16, 16, 149, 0.5),
  0 0 30px rgba(16, 16, 149, 0.5),
  0 0 35px rgba(16, 16, 149, 0.5),
  0 0 40px rgba(16, 16, 149, 0.5),
	0 0 45px rgba(16, 16, 149, 0.5),
  0 0 50px rgba(16, 16, 149, 0.5),
  0 0 55px rgba(16, 16, 149, 0.5),
  0 0 60px rgba(16, 16, 149, 0.5),
	0 0 65px rgba(16, 16, 149, 0.5),
  0 0 70px rgba(16, 16, 149, 0.5),
  0 0 75px rgba(16, 16, 149, 0.5),
  0 0 80px rgba(16, 16, 149, 0.5),

}

#mainimg p {
	font-family: 'Kiwi Maru', serif;
	display: inline-block;
	font-size: 1.2vw;
	background: rgba(0,0,0,0.6);
	color: #fff;
	padding: 1vw 2vw;
	border-radius: 5px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}
#mainimg p:hover {
	transform: scale(1.05);
}

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

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

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

