@charset "utf-8";


/*オープニング
---------------------------------------------------------------------------*/
#mainimg {
	width: 100%;
	height: 100vh;
	position: sticky;
	top: 0px;
	overflow: hidden;
}

/*枠の画像*/
.waku {
	background: url('../images/waku.svg') no-repeat center center / cover;
	width: 100%;
	height: 100%;
	transition: transform 0.2s;	/*移動をスムーズにする*/
	transform-origin: center center;
}


/*動画で使う場合（_movieタイプ）
---------------------------------------------------------------------------*/
#mainimg video {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 100%;
}


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

/*１枚目画像*/
.slide1 {
	background: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/1.jpg') no-repeat center center / cover;	/*１枚目の背景画像の読み込み*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
	color: #fff;
}

/*２枚目画像*/
.slide2 {
	background: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/2.jpg') no-repeat center center / cover;	/*２枚目の背景画像の読み込み*/
}

/*３枚目画像*/
.slide3 {
	background: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/3.jpg') no-repeat center center / cover;	/*３枚目の背景画像の読み込み*/
}

	/*端末を縦向きにした場合の追加指定*/
	@media (orientation: portrait) {
	
	/*１枚目画像*/
	.slide1 {
		background-image: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/1_portrait.jpg');	/*縦向き専用の画像をここで設定します*/
	}

	/*2枚目画像*/
	.slide2 {
		background-image: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/2_portrait.jpg');	/*縦向き専用の画像をここで設定します*/
	}

	/*3枚目画像*/
	.slide3 {
		background-image: url('https://yamanekc.jp/kumunda/wp-content/themes/Yamanekc/img/index/3_portrait.jpg');	/*縦向き専用の画像をここで設定します*/
	}

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

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

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

