@charset "utf-8";



/*スライドショー（cssでのbackground使用）
ここでは、10:8の画像比率（8÷10=0.8）を読み込む指定。
異なる画像比率にしたい場合、.mainimgのpadding-topの数字を変更。2:1にするなら50%。
---------------------------------------------------------------------------*/
/*3枚の画像を囲むブロック*/
#mainimg {
	width: 100%;
	height: 100%;
	padding-top: 40%;
	position: relative;
}

/*３セットのスライドショーを囲むそれぞれのブロック*/
#mainimg div div {
	width: vw;	/*幅。画面の100%。*/
	position: absolute;top: 6rem;
}

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

/*１枚目画像*/
.slide1 {
	background: url('../img/top_004.jpg') no-repeat center center / cover;	/*１枚目の背景画像の読み込み*/
	justify-content: flex-start;	/*テキストブロックを左寄せ*/
	text-align: center;			/*テキストをセンタリング*/
}

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

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


/*大きなテキスト*/
#mainimg h1 {
    margin: 0;
    padding: 0;
    font-size: 5vw;		/*文字サイズ。100vwは画面幅100%のことです。*/
    line-height: 1.5;	/*行間を少し狭く*/
    font-weight: 500;	/*文字の太さを少し太く*/
    color: #FFF;			/*フォントカラー*/	
}

/*小さなテキスト*/
#mainimg p {
	font-size: 1.4vw;		/*文字サイズ。100vwは画面幅100%のことです*/
	padding-left: 0.5rem;	/*左に空ける余白。0.5文字分。*/
	color: #FFF;			/*フォントカラー*/
}


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

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