@charset "utf-8";

/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: #3d3d3d;
	text-align:center;
	color:#e8e8e8;
    background-image: url(../img/common/bkg.jpg);
}

/* Loading画像中央配置　*/
#splash_logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo img {
	width:100%;
}

/*画面遷移アニメーション*/
.splashbg{
    display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg{
    display: block;
    content: "";
    position:fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: scaleX(0);
    background-color: var(--theme-color-middle);/*伸びる背景色の設定*/
    animation-name:PageAnime;
    animation-duration:1.75s;
    animation-timing-function:ease-in-out;
    animation-fill-mode:forwards;
}

@keyframes PageAnime{
  0% {
    transform-origin:right;
    transform:scaleX(0);
  }
  50% {
    transform-origin:right;
    transform:scaleX(1);
  }
  50.001% {
    transform-origin:left;
  }
  100% {
    transform-origin:left;
    transform:scaleX(0);
  }
}

/*画面遷移の後現れるコンテンツ設定*/

#header,#footer,#container{
  opacity: 0;/*はじめは透過0に*/
}

main{
    opacity: 0;
}

/*bodyにappearクラスがついたら出現*/
body.appear #header{
  animation-name:PageAnimeAppear;
  animation-duration:1.0s;
  animation-delay: 1.0s;
  animation-fill-mode:forwards;
  opacity: 0;
}

body.appear #footer{
    animation-name:PageAnimeAppear;
    animation-duration:1.5s;
    animation-delay: 1.5s;
    animation-fill-mode:forwards;
    opacity: 0;
}

body.appear main{
    animation-name:PageAnimeAppear;
    animation-duration:1.0s;
    animation-delay: 1.0s;
    animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes PageAnimeAppear{
  0% {
  opacity: 0;
  }
  100% {
  opacity: 1;
}
}

/* fadeUpをするアイコンの動き */

.fadeUp{
animation-name: fadeUpAnime;
animation-duration:2.0s;
animation-fill-mode:forwards;
opacity: 0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*========= 背景動画設定のCSS ===============*/

.video-area{
    position: relative;
    height: 100vh;
    z-index: 1;/*最背面に設定*/
    top: 0;
    right:0;
    left:0;
    bottom:0;
    overflow: hidden;
    background-image: url(../img/common/eye-back.jpg);
    background-size: contain;
    background-repeat: repeat;
}

/*見出し設定*/
.video-area>h1{
    /*要素の配置*/
    position:absolute;
    /*要素を天地中央寄せ*/
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    /*見た目の調整*/
    color:#fff;
    text-shadow: 0 0 15px #666;
    z-index: 2;
}

#video,#video_sp {
    /*天地中央配置*/
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*縦横幅指定*/
    width: 177.77777778vh; /* 16:9 の幅→16 ÷ 9＝ 177.77% */
    height: 56.25vw; /* 16:9の幅 → 9 ÷ 16 = 56.25% */
    min-height: 100%;
    min-width: 100%;
}

@media screen and (max-width:1024px) {
    .video-area{
        background-image: url(../img/common/eye-back_sp.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* Section部の要素  */
/* class */

/* heading */
.heading-block{
    display: block;
    width: 100%;
    background: #c0d8cc; /* 背景色を設定 */
    background-image: url(../img/common/bkg_green.jpg);
}

#class{
    position:relative;
    /*margin: 0 0 100px 0;*/
}

#class h2{
    font-size:2rem;
    margin: 2em;
    text-align: center;
}

#class section{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    width: 100%;
    margin-inline: auto;
}

#class section:nth-of-type(n){
    background: #e8e8e8; /* 背景色を設定 */
    background-image: url(../img/common/bkg.jpg);
}
#class section:nth-of-type(2n){
    flex-direction:row-reverse;
    background: #c0d8cc; /* 背景色を設定 */
    background-image: url(../img/common/bkg_green.jpg);
}

#class .class-img{
    width:50%;
    height:40vh;
}

#class .class-img-detail{
    height:40vh;
}

#class .class-box{
    animation-delay:.5s;
}

#class .class-content{
    width:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    /*-ms-writing-mode: tb-rl;*/
    /*-webkit-writing-mode: vertical-rl;*/
    /*writing-mode: vertical-rl;*/    
    text-orientation: upright;
}

#class section:nth-of-type(1) .class-img-detail{
    background:url(../img/top/top01.jpg) no-repeat center;
    background-size:cover;
}

#class section:nth-of-type(2) .class-img-detail{
    background:url(../img/top/top02.jpg) no-repeat center;
    background-size:cover;
}

#class section:nth-of-type(3) .class-img-detail{
    background:url(../img/top/top03.jpg) no-repeat center;
    background-size:cover;
}

#class .class-content h3{
    font-size:1.2rem;
    margin:0 0 0 1em;
}

#class .class-content p{
    line-height:2.5;
    padding: 1em;
}

@media screen and (max-width:768px) {
#class .class-bg{
    background-attachment: inherit;
    }
}

@media screen and (max-width:560px) {
    
#class .class-img,
#class .class-content{
    width:100%;
    margin: 0 0 50px 0;
}
    
}

/*==================================================
ニュースティッカーのためのcss
===================================*/
/*ニュース1行の周りの余白*/
.News{
    list-style: none;
    border: none;
}

.News a{
    display: block;
    background:#fff;
    padding:20px;
    text-align: left;
}

/*日付*/
.News span {
    display:inline-block;
    /*font-size:0.8rem;*/
    margin-right:10px;
    color:#777;
}

/*768px以下の見た目*/
@media screen and (max-width:768px) {
    .News {
        padding:20px;
        background:#fff;
    }

    .News li {
        border-bottom:1px dashed #ccc;
    }

    .News li:last-child {
        border-bottom:none;
    }
    .News span {
        display:block;
		padding-bottom:10px;
    }
}


/*========= レイアウトのためのCSS ===============*/

.news-container {
    max-width: 1200px;
    width: 90%;
    margin:0 auto;
}

.news-container h1{
    text-align:left;
    margin-bottom: 0.5em;
}

#wrapper{
	height: 100vh;
}


/*========= プリントのためのCSS ===============*/

/* スマホ用 */
@media print and (max-width:768px){
    
    #class .class-bg{
        background-attachment: inherit;
        }

    .News {
        padding:20px;
        background:#fff;
    }

    .News li {
        border-bottom:1px dashed #ccc;
    }

    .News li:last-child {
        border-bottom:none;
    }
    .News span {
        display:block;
        padding-bottom:10px;
    }
}

@media print and (max-width:560px) {
    
    #class .class-img,
    #class .class-content{
        width:100%;
        margin: 0 0 50px 0;
    }
        
}