body#home{
	background: url(../images/top/bgMain.png) no-repeat center top;
	width: 100%;
    background-size: contain;
}
#mainImage h1{
	text-align: center;
	color: #084a95;
	font-size: 32px;
	margin-bottom: 24px;
	text-shadow: 2px 3px 6px #ffffff;
	line-height: 1.7;
}
#mainImage ul#fadeinImages{
	position: relative;
	list-style-type: none;
	display: block;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}
#mainImage ul#fadeinImages:before {
    content: "";
    display: block;
	padding-top: 52%;
}
#mainImage ul#fadeinImages li{
	position: absolute;
}
#mainImage ul#fadeinImages li:nth-child(1){
	z-index: 1;
}
#mainImage ul#fadeinImages li:nth-child(2){
	z-index: 5;
}
#mainImage ul#fadeinImages li:nth-child(3){
	z-index: 6;
}
#mainImage ul#fadeinImages li:nth-child(4){
	z-index: 7;
}
#mainImage ul#fadeinImages li:nth-child(5){
	z-index: 2;
}
#mainImage ul#fadeinImages li:nth-child(6){
	z-index: 9;
}
#mainImage ul#fadeinImages li:nth-child(7){
	z-index: 8;
}
#mainImage ul#fadeinImages li:nth-child(8){
	z-index: 5;
}
#mainImage ul#fadeinImages li:nth-child(9){
	z-index: -1;
}
#mainImage ul#fadeinImages li img {
    margin-left: auto;
    margin-right: auto;
   	text-align: center;
}

/* movie */
#btnMovie{
	display: block;
	transition: all 1s ease;
	-webkit-transition: all 1s ease;
}
#btnMovie:hover {
    /*
    -moz-transform: rotateY(360deg);
    -webkit-transform: rotateY(360deg);
    -o-transform: rotateY(360deg);
    -ms-transform: rotateY(360deg);
    */
    opacity: .7;
}

#overlay {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, .8);
	display: none;
	z-index: 100;
}
#modalWindow {
	width: 70%;
	height: auto;
	position: fixed;
	background-color: #000;
	display: none;
	z-index: 101;
	text-align: center;
}
#modalWindow button {
	padding: 10px 20px;
	margin-bottom: 20px;
	border-radius: 3px;
	cursor: pointer;
	background-color: #fff;
}

.btnFOut{
  -webkit-animation-name:'FOut';
  -webkit-animation-duration:.3s;
  -webkit-animation-timing-function:ease-in;
  -webkit-animation-iteration-count:1;
  visibility: hidden;
}
@-webkit-keyframes 'FOut' {
  0%{opacity:1;visibility: visible;}
  100%{opacity:0;visibility: hidden;}
}

.btnFIn{
  -webkit-animation-name:'FIn';
  -webkit-animation-duration:.3s;
  -webkit-animation-timing-function:ease-in;
  -webkit-animation-iteration-count:1;
}
@-webkit-keyframes 'FIn' {
  0%{opacity:0;visibility: hidden;}
  100%{opacity:1;visibility: visible;}
}


/* /movie */

/* slick */
#imgPersons{
	overflow: hidden;
	background: url(../images/top/bgPerson.png) no-repeat left top;
	width: 100%;
    background-size: contain;
	margin-bottom: 32px;
}
#imgPersons img{margin-left: auto; margin-right: auto; display: block;}
#imgPersons dl{padding: 12px 8px 20px; text-align: center;}
#imgPersons dl dt{padding-bottom: 0;}
#imgPersons dl dd{font-size: 12px;}
/* /slick */

#blkHistory{
	background: url('../images/top/bgHistory.png') no-repeat center top;
	width: 100%;
    background-size: cover;
	text-align: center;
    padding-top: 10%;
    padding-bottom: 26%;
}
body#home #blkHistory h1{font-size: 20px;}
body#home #blkHistory h2{font-size: 18px;}
body#home #blkHistory h2:before, body#home #blkHistory h2:after{
	top: 72%;
	width: 33%;
}
#greeting h1{font-size: 24px; text-align: center; margin-top: 24px; margin-bottom: 32px;}
#greeting img#president{margin-bottom: 0; display: block;}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
	body#home{
		background: url(../images/top/bgMain@2x.png) no-repeat center top;
	    background-size: contain;
	}
	#imgPersons{
		background: url(../images/top/bgPerson@2x.png) no-repeat left top;
	    background-size: contain;
	}
	#blkHistory{
		background: url('../images/top/bgHistory@2x.png') no-repeat center top;
	    background-size: cover;
	}
}

/*==================
 ▼ブレイクポイントのルール▼
 -スマホを基本設計にする-
 *〜479px：SP縦
 *480px〜：SP横
 *600px〜タブレット
 *960px〜小型PC
 *1280px〜大型PC
==================*/

/*
@media only screen and (max-width: 27em) {
	#mainImage ul#fadeinImages{
		width: 100%;
	}
	#mainImage{
		padding-top: 96px;
	}
	#mainImage h1{
		margin-bottom: 20px;
		font-size: 20px;
	}
	#mainImage ul#fadeinImages li img {
    	width: 36%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 4px;
		left: -36%;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 20px;
		left: 4%;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 8px;
		left: 30%;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 40px;
		left: 48%;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: -28%;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 104px;
		left: -10%;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 88px;
		left: 10%;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 94px;
		right: 4%;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 77px;
		right: -21%;
	}
	#greeting img#president{margin-bottom: 32px;}
	#imgItems{margin-top: -10px; margin-bottom: 16px;}
	#btnMovie{margin-top: -40px;}
	#greeting{margin-top: -80px;}

}
*/
@media screen and (max-width:320px) { 
    /*　画面サイズが480pxまではここを読み込む　*/
	#mainImage ul#fadeinImages{
		width: 100%;
	}
	#mainImage{
		padding-top: 120px;
	}
	#mainImage h1{
		margin-bottom: 20px;
		font-size: 20px;
	}
	#mainImage ul#fadeinImages li img {
    	width: 30%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 4px;
		left: -40%;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 20px;
		left: 0%;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 8px;
		left: 26%;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 44px;
		left: 44%;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: -22%;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 80px;
		left: -20%;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 88px;
		left: 2%;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 67px;
		right: 2%;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 76px;
		right: -24%;
	}
	#imgPersons {padding-top: 0;}
	body#home h2{font-size: 24px; margin-bottom: 24px;}
	body#home h2:before, body#home h2:after{width: 32%;}
	#imgItems{margin-top: -16px; margin-bottom: 32px;}
	#btnMovie{margin-top: -32px;}
	#greeting{margin-top: -80px;}
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width:480px) {
	#imgPersons{
		background: url(../images/top/bgPerson@2x.png) no-repeat left 22px;
	    background-size: contain;
	}
}

@media screen and (min-width:321px) and (max-width:480px) { 
    /*　画面サイズが480pxまではここを読み込む　*/
	#mainImage ul#fadeinImages{
		width: 100%;
	}
	#mainImage{
		padding-top: 96px;
		margin-bottom: 24px;
	}
	#mainImage h1{
		margin-bottom: 20px;
		font-size: 20px;
	}
	#mainImage ul#fadeinImages li img {
    	width: 36%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 4px;
		left: -35%;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 20px;
		left: 4%;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 8px;
		left: 30%;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 40px;
		left: 48%;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: -22%;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 104px;
		left: -16%;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 88px;
		left: 5%;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 94px;
		right: 10%;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 77px;
		right: -16%;
	}
	#imgPersons {padding-top: 0;}
	body#home h2{font-size: 20px; margin-bottom: 24px;}
	body#home h2:before, body#home h2:after{width: 32%;}
	#imgItems{margin-top: -32px; margin-bottom: 16px;}
	#btnMovie{margin-top: -56px;}
	#greeting{margin-top: -80px;}
    #modalWindow {width: 80%;}
}

@media screen and (min-width:480px) and ( max-width:600px) { 
/*　画面サイズが480pxからはここを読み込む　*/
	#mainImage{
		padding-top: 136px;
	}
	#mainImage h1{
		margin-bottom: 20px;
		font-size: 20px;
	}
	#mainImage ul#fadeinImages{
		width: 54%;
	}
	#mainImage ul#fadeinImages li img {
    	width: 36%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 4px;
		left: -40%;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 20px;
		left: 4%;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 8px;
		left: 30%;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 40px;
		left: 48%;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: -28%;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 104px;
		left: -13%;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 88px;
		left: 4%;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 94px;
		right: 3%;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 77px;
		right: -24%;
	}
	#imgPersons {padding-top: 7%;}
	#greeting{margin-top: -80px;}
}

@media screen and (min-width:600px) and ( max-width:960px) {
/*　画面サイズが600pxから960pxまではここを読み込む　*/
	#mainImage{
		padding-top: 144px;
	}
	#mainImage h1{
		margin-bottom: 24px;
	}
	#mainImage ul#fadeinImages{
		max-width: 49rem;
		width: 100%;
	}
	#mainImage ul#fadeinImages li img {
    	width: 72%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 16px;
		left: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 90px;
		left: 200px;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 26px;
		left: 360px;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 136px;
		left: 440px;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 216px;
		left: 40px;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 190px;
		left: 180px;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 200px;
		left: 328px;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 216px;
		right: 10px;
	}
	#imgPersons {padding-top: 2%;}
	body#home #blkHistory h1{font-size: 32px;}
	body#home #blkHistory h2{font-size: 22px;}
	#greeting{margin-top: -120px;}
	#greeting img#president{margin-top: 0;}
	#imgItems{margin-top: -32px; margin-bottom: 16px;}
	#btnMovie{margin-top: -48px;}
}

@media screen and (min-width:960px) and ( max-width:1140px) {
/*　画面サイズが960pxから1280pxまではここを読み込む　*/
	#mainImage{
		padding-top: 144px;
	}
	#mainImage h1{
		margin-bottom: 48px;
	}
	#mainImage ul#fadeinImages{
		max-width: 65rem;
		width: 100%;
	}
	#mainImage ul#fadeinImages li img {
    	width: 96%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 16px;
		left: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 90px;
		left: 320px;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 26px;
		left: 500px;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 156px;
		left: 620px;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 280px;
		left: 60px;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 246px;
		left: 240px;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 228px;
		left: 492px;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 220px;
		right: 20px;
	}
	#imgItems{margin-top: -96px;}
	#btnMovie{margin-top: -144px;}
	#imgPersons {padding-top: 6%;}
	body#home #blkHistory h1{font-size: 42px;}
	body#home #blkHistory h2{font-size: 24px;}
	#greeting{margin-top: -180px;}
	#greeting img#president{margin-top: -25px;}
}

@media screen and (min-width:1140px) {
/*　画面サイズが1280pxからはここを読み込む　*/
	#mainImage{
		padding-top: 168px;
	}
	#mainImage ul#fadeinImages{
		max-width: 1000px;
		width: 100%;
	}
	#mainImage ul#fadeinImages li:nth-child(1){
		top: 16px;
		left: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(2){
		top: 90px;
		left: 355px;
	}
	#mainImage ul#fadeinImages li:nth-child(3){
		top: 26px;
		left: 520px;
	}
	#mainImage ul#fadeinImages li:nth-child(4){
		top: 156px;
		left: 658px;
	}
	#mainImage ul#fadeinImages li:nth-child(5){
		top: 0;
		right: 0;
	}
	#mainImage ul#fadeinImages li:nth-child(6){
		top: 300px;
		left: 40px;
	}
	#mainImage ul#fadeinImages li:nth-child(7){
		top: 246px;
		left: 220px;
	}
	#mainImage ul#fadeinImages li:nth-child(8){
		top: 228px;
		left: 492px;
	}
	#mainImage ul#fadeinImages li:nth-child(9){
		top: 220px;
		left: 710px;
	}
	#imgItems{margin-top: -112px;}
	#btnMovie{margin-top: -144px;}
	#imgPersons {padding-top: 7%;}
	body#home #blkHistory h1{font-size: 42px;}
	body#home #blkHistory h2{font-size: 24px;}
	#greeting{margin-top: -220px;}
	#greeting img#president{margin-top: -64px;}
}
