@charset "utf-8";


 /*スライドショーtp_travel1/202008設置
    ---------------------------------------------------------------------------*/
   
  

/*スライドショー（cssでのbackground使用）
ここでは、16:9の画像比率（9÷16=0.5625）を読み込む指定を行なっています。
異なる画像比率にしたい場合、#mainimgのpadding-topの数字を変更します。
---------------------------------------------------------------------------*/
/*3枚の画像を囲むブロック*/
#mainimg {
	width: 100%;
	top: 50px;	/*height: 0;position: absolute;style.cssのheaderのheightと合わせる*/
	left: 0px;
	
	height: 500px;	/*スライドショーの高さ*/  
    position: fixed;
	z-index: -200;
	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 {
	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(https://okasikyousitu.com/images/student-expert-1day-class20260115.jpg) repeat center center / auto 130px;	/*２枚目画像の読み込み。600pxは高さ指定。*/
	justify-content: center;	/*テキストブロックを中央に*/
	text-align: center;			/*テキストをセンタリング*/
}

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

/*３枚目画像*/
.slide3 {background: url(https://okasikyousitu.com/images/student-expert-1day-class20260116.jpg) repeat center center / auto 240px;	/*１枚目画像の読み込み。240pxは高さ指定。*/
		/*background: url('') 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-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-weight: 600;
	font-size: 1.2vw;	/*文字サイズ。画面幅に対して自動的に調整されます。*/
	background: #a5873d;	/*背景色。0,0,0は黒のことで0.6は色が60%出た状態。*/
	color: #fff;		/*文字色*/
	padding: 1vw 2vw;	/*ボックス内の余白。上下、左右の順番。*/
	border-radius: 5px;	/*角を少しだけ丸くする*/
}

	/*画面幅700px以下の追加指定*/
	@media screen and (max-width:700px) {
 /*スライドショー
    ---------------------------------------------------------------------------*/
    /*画像ブロック*/
    #mainimg {
        top: 40px;	/*70style.cssの「画面幅600px以下の設定」にあるheaderのheightと合わせる*/
        height: 400px;	/*スライドショーの高さ*/
    
    }
	#mainimg p {font-size: 14px;	/*文字サイズ。画面幅に対して自動的に調整されます。*/}
	/*p要素（説明テキスト部分）*/
	
			/*display: none;画面が小さくなるので非表示にする*/
	

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

