@charset "utf-8";

/*==================================================
　機能編 4-1-5　ロゴアウトラインアニメーション
===================================*/

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background:#b41e23;
	/*background:#ad0051;*/
	/*background:#504237;*/
	text-align:center;
	color:#fff;
}

/* Loading画像中央配置　*/
#splash_logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo svg{
    width:350px;
}

/*=============== SVGアニメーション内の指定 =================*/

/*アニメーション前の指定*/
#mask path {
		fill-opacity: 0;/*最初は透過0で見えない状態*/
		transition: fill-opacity .2s;/*カラーがつく際のアニメーション0.5秒で変化*/
		fill: none;/*塗りがない状態*/
		stroke: #fff;/*線の色*/
	}

/*アニメーション後に.doneというクラス名がで付与された時の指定*/
#mask.done path{
	  fill: #fff;/*塗りの色*/
	  fill-opacity: 1;/*透過1で見える状態*/
	  stroke: none;/*線の色なし*/
	}

/*==================================================
　機能編 4-2-1　背景色が伸びる（上から下）
===================================*/

/*画面遷移アニメーション*/
.splashbg{
	display: none;
}

body.appear .splashbg{
    display: block;
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left: 0;
    transform: scaleY(0);
	background:#b41e23;
	/*background:#ad0051;/*伸びる背景色の設定*/
    /*background-color:#504237;/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
}

@keyframes PageAnime{
	0% {
		transform-origin:top;
		transform:scaleY(0);
	}
	50% {
		transform-origin:top;
		transform:scaleY(1);
	}
	50.001% {
		transform-origin:bottom;
	}
	100% {
		transform-origin:bottom;
		transform:scaleY(0);
	}
}

/*画面遷移の後現れるコンテンツ設定*/
#container{
    position: relative;
    z-index: 1;
	opacity: 0;/*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay: 0.8s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}

/*==================================================
　機能編 5-3-2　中心から外に線が伸びる（中央）
===================================*/
#menu li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

#menu li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 20%;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 1px;
    background: #fff;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: center top;/*上部中央基点*/
}

/*現在地とhoverの設定*/
#menu li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}
/*===========================================================*/
/*機能編  5-1-24 クリックしたら円形背景が拡大（中央から） */
/*===========================================================*/

/*========= ナビゲーションのためのCSS ===============*/

/*アクティブになったエリア*/
#g-nav.panelactive{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
	top: 0;
	width:100%;
    height: 100vh;
}

/*丸の拡大*/
.circle-bg{
    position: fixed;
	z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
	animation: bgchange 40s ease infinite;/*変化の時間を変更したい場合は40sの部分を好きな時間に変更*/
    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
    top:calc(50% - 50px);/*50%から円の半径を引いた値*/
    left:calc(50% - 50px);/*50%から円の半径を引いた値*/
    transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;/*はじめは表示なし*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
     display: block; /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
	opacity: 0;/*はじめは透過0*/
    /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity:1.0;
	margin-left: -15px;
}

/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li{
animation-name:gnaviAnime;
animation-duration:1s;
animation-delay:.2s;/*0.2 秒遅らせて出現*/
animation-fill-mode:forwards;
opacity:0;
}
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

/*リストのレイアウト設定*/
#g-nav li{
	text-align: center; 
	list-style: none;
}

#g-nav li a{
	color: #fff;
	text-decoration: none;
	padding:10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
}

@media screen and (max-width:768px) {
#g-nav li a{
	padding:5px 10px;
}    
	
}

/*==================================================
　機能編 5-2-8 3本線が横方向に回転して×に
===================================*/

/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn{
	position: fixed;/*ボタン内側の基点となるためrelativeを指定*/
    top:2vh;
    right:2vw;
    z-index: 9999;
	cursor: pointer;
    width: 50px;
    height:50px;
}

/*ボタン内側*/
.openbtn .openbtn-area{
    transition: all .6s;/*アニメーションの設定*/
	width:50px;
	height:50px;
}

.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: #fff;
  	width: 45%;
  }

.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}

/*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線が回転して×に*/
.openbtn.active .openbtn-area{
	transform: rotate(360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}
/*===========================================================*/
/*機能編 9-1-1	縦線が動いてスクロールを促す*/
/*===========================================================*/

/*スクロールダウン全体の場所*/
.scrolldown1{
    /*描画位置※位置は適宜調整してください*/
	position:absolute;
	right:50px;
	bottom:50px;
    /*全体の高さ*/
	height:50px;
}

/*Scrollテキストの描写*/
.scrolldown1 span{
    /*描画位置*/
	position: absolute;
	left:-15px;
	top: -15px;
    /*テキストの形状*/
	color: #eee;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
}

/* 線の描写 */
.scrolldown1::after{
	content: "";
    /*描画位置*/
	position: absolute;
	top: 0;
    /*線の形状*/
	width: 1px;
	height: 30px;
	background: #eee;
    /*線の動き1.4秒かけて動く。永遠にループ*/
	animation: pathmove 1.4s ease-in-out infinite;
	opacity:0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove{
	0%{
		height:0;
		top:0;
		opacity: 0;
	}
	30%{
		height:30px;
		opacity: 1;
	}
	100%{
		height:0;
		top:50px;
		opacity: 0;
	}
}

/*==================================================
　機能編 7-1-1	背景が流れる（左から右）
===================================*/

/*== ボタン共通設定 */
.btn{
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
	overflow: hidden;
    /*ボタンの形状*/
	text-decoration: none;
	display: inline-block;
   	border: 1px solid #fff;/* ボーダーの色と太さ */
    padding: 10px 30px;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
}

/*ボタン内spanの形状*/
.btn span {
	position: relative;
	z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
	color:#fff;
}

/*== 左から右 */
.bgleft:before {
 	content: '';
    /*絶対配置で位置を指定*/
 	position: absolute;
 	top: 0;
 	left: 0;
 	z-index: 2;
    /*色や形状*/
 	background:#333;/*背景色*/
 	width: 100%;
	height: 100%;
    /*アニメーション*/
 	transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
 	transform: scale(0, 1);
	transform-origin: right top;
}

/*hoverした際の形状*/
.bgleft:hover:before{
	transform-origin:left top;
	transform:scale(1, 1);
}

/*== ボタン共通設定 */
.btns{
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
	overflow: hidden;
    /*ボタンの形状*/
	text-decoration: none;
	display: inline-block;
   	border: 1px solid #333;/* ボーダーの色と太さ */
    padding: 10px 30px;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
	margin-top: 15px;
}

/*ボタン内spanの形状*/
.btns span {
	position: relative;
	z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
	color:#333;
}
.btns span:hover{ color: #fff !important}
/*== 左から右 */
.bglefts:before {
 	content: '';
    /*絶対配置で位置を指定*/
 	position: absolute;
 	top: 0;
 	left: 0;
 	z-index: 2;
    /*色や形状*/
 	background:#333;/*背景色*/
 	width: 100%;
	height: 100%;
    /*アニメーション*/
 	transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
 	transform: scale(0, 1);
	transform-origin: right top;
	color:#fff!important;
}

/*hoverした際の形状*/
.bglefts:hover:before{
	transform-origin:left top;
	transform:scale(1, 1);
	color:#fff!important;
}

/*===========================================================*/
/*印象編　8-10 テキストがタイピング風に出現*/
/*===========================================================*/

.TextTyping span {
	display: none;
}

.TextTyping::after {
 	content: "|";
	animation: typinganime .8s ease infinite;
    font-weight: normal;
    padding: 0 0 0 10px;
}

@keyframes typinganime{
	from{opacity:0}
	to{opacity:1}
}


/*===========================================================*/
/*印象編　5-5　雪が降る、5-6　桜が散る*/
/*===========================================================*/

.particle{ 
	position:absolute;/*描画固定*/
    left:0;
    top:0;
	width: 100%;
	height: 100vh;
}

/*==================================================
/*印象編　6-3　スクロールすると画面分割した左右がそれぞれ動く*/
/*===================================*/

/*全体のエリア設定*/

.ms-section{
	color:#fff;
	padding:20px;
}

.ms-section a{
	color:#fff;
}
/* --- 全体のBOX定義 ---------------------------------------- */
#left1 {
  position   : relative;
  margin     : auto;
  overflow   : hidden;
	background-size:cover;
}
#right1 {
  position   : relative;
  margin     : auto;
  overflow   : hidden;
	background-size:cover;
}

/* --- 背景の指定 ------------------------------------------- */
.bgImg {
  position   : absolute;
	background-size:cover;
  top        : 0;
  left       : 0;
  bottom     : 0;
  right      : 0;
  opacity    : 0;
  animation  : bgAnime 20s infinite;   /* 4画像 × 各5s = 20s */
}
@keyframes bgAnime {
   0% { opacity: 0; }
   5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
 100% { opacity: 0; }
}
/*右にある丸ナビゲーション色*/

#multiscroll-nav span{
	background:transparent!important;
	border-color:#fff!important;
}

/*右にある丸のナビゲーション現在地色*/

#multiscroll-nav li .active span{
	background:#fff!important;
}

/*左上のナビゲーション*/

#menu li {
	display:inline-block;
}

#menu li a{
	display:inline-block;
	text-decoration:none;
	color: #fff;
	padding:20px;
}

/*左エリア画像設定*/
left1{
	background:url("../img/top-left.jpg") no-repeat center right;
	background-size:cover;
}
.src1{
	background: url(../img/2025-l.png) no-repeat center right;   /* 背景の画像を指定 */
  /* background: url(../img/all_left.jpg) no-repeat center right;   /* 背景の画像を指定 */
	background-size:cover;
}
.srcsp1{
  background: url(../img/top_sp.jpg) no-repeat center right;   /* 背景の画像を指定 */
	background-size:cover;
}
.src2{
  background: url(../img/2025l.jpg) no-repeat center right;   /* 背景の画像を指定 */
	background-size:cover;
  animation-delay  : 5s;
}
.src3{
 background: url(../img/2025-l.png) no-repeat center right;    /*背景の画像を指定 */
 /*background: url(../img/top-left.jpg) no-repeat center right;    背景の画像を指定 */
	background-size:cover;
  animation-delay  : 10s;
}
.src4{
  background: url(../img/2025l.jpg) no-repeat center right;   /* 背景の画像を指定 */
  /*background: url(../img/out_left.jpg) no-repeat center right;   /* 背景の画像を指定 */
	background-size:cover;
  animation-delay  : 15s;
}

right1{
	background:url("../img/top-right.jpg") no-repeat center left;
	background-size:cover;
}
.srcr1{
  background: url(../img/2025-r.png) no-repeat center left;   /* 背景の画像を指定 */
   /*background: url(../img/all_right.jpg) no-repeat center left;   /* 背景の画像を指定 */
	background-size:cover;
}
.srcr2{
  background: url(../img/2025r.jpg) no-repeat center left;   /* 背景の画像を指定 */
	background-size:cover;
  animation-delay  : 5s;
}
.srcr3{
  background: url(../img/2025-r.png) no-repeat center left;   /* 背景の画像を指定 */
  /* background: url(../img/top-right.jpg) no-repeat center left;   /* 背景の画像を指定 */
	background-size:cover;
  animation-delay  : 10s;
}
.srcr4{
  background: url(../img/2025r.jpg) no-repeat center left;   /* 背景の画像を指定 */
  /*background: url(../img/out_right.jpg) no-repeat center left;   /* 背景の画像を指定 */
	background-size:cover;
  animation-delay  : 15s;
}

#right2{
	background:url("../img/info_right.jpg") no-repeat center;
	background-size:cover;
}
#left2{
	background:url("../img/info_let.jpg") no-repeat center;
	background-size:cover;
}
#right3{
	background:url("../img/greeting_top.jpg") no-repeat center;
	background-size:cover;
}

#right4{
	background:url("../img/top_sp.jpg") no-repeat center;
	background-size:cover;
}

#right5{
	background:url("../img/medical_top.jpg") no-repeat center;
	background-size:cover;
}

left4{
	background:url("../img/04.jpg") no-repeat center;
	background-size:cover;
}

#right6{
	background:url("../img/social_top.jpg") no-repeat center;
	background-size:cover;
}

left5{
	background:url("../img/06.jpg") no-repeat center;
	background-size:cover;
}

#right7{
	background:url("../img/contact_top.jpg") no-repeat center;
	background-size:cover;
}

/*＝＝＝＝＝＝＝＝＝＝＝550px以下の見え方＝＝＝＝＝＝＝＝＝＝＝＝＝*/

@media screen and (max-width:800px){
	
#header{
	justify-content: center; background-color: #b41e23;/*#ad0051;*/
}

/*全体のボックスについている余白をリセット*/
.ms-section{
	padding:0;
}

/*天地中央になっている見せ方を上ぞろえに上書き*/
.ms-tableCell{
	vertical-align:top;
}

/*左上ナビゲーションと左エリア非表示*/
#menu,
.ms-right{
	display: none;
}

/*右エリアを横幅100%にして画像＋テキストを出す設定*/
.ms-left{
	width:100%!important;
}

/*右エリア上部画像設定*/
    
#left1{
    background:url("../img/top_sp.jpg") center;
    background-size:cover;
}
#left2{
    background:url("../img/info_right.jpg") center;
    background-size:cover;
}
left2 .sp-top{
	background:url("../img/info_right.jpg") no-repeat center;
	background-size:cover;
    height: 50vh;
}
left2 .sp-bottom{
	background:url("../img/info_let.jpg") no-repeat top center;
	background-size:cover;
    height: 50vh;
}
#left3 .sp-top{
	background:url("../img/greeting_top.jpg") no-repeat top;
	background-size:cover;
    height: 50vh;
}

#left4 .sp-top{
	background:url("../img/top_sp.jpg") no-repeat top center;
	background-size:cover;
    height: 50vh;
}
    
#left5 .sp-top{
	background:url("../img/medical_top.jpg") no-repeat top center;
	background-size:cover;
    height: 50vh;
}
    
left4 .sp-bottom{
	background:url("../img/04.jpg") no-repeat top center;
	background-size:cover;
    height: 50vh;
}

#left6 .sp-top{
	background:url("../img/social_top.jpg") no-repeat top center;
	background-size:cover;
    height: 50vh;
}
    
left5 .sp-bottom{
	background:url("../img/07.jpg") no-repeat center;
	background-size:cover;
    height: 50vh;
}

#left7{
	background:url("../img/contact_top.jpg") no-repeat center;
	background-size:cover;
}

/*右エリア下部テキスト余白設定*/
.sp-bottom{
	padding:20px;
}
	
}

