@charset "UTF-8";

html{
	font-family: 'Zen Maru Gothic', sans-serif;
	font-weight: 500;
	background-color: #F8F8EF;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

	
}


h1{
	font-weight: bold;
	
}


h2{
	font-weight: bold;
	font-size: 1.5rem;
}

.heading {
	position: relative;
	padding-bottom: 50px;
	font-size: 26px;
	text-align: center;
}

.heading::before {
	content: attr(data-en);
	display: block;
	color: #EC2662;
	font-size: 0.8rem;
	text-transform: uppercase;
	font-family:'Montserrat', sans-serif;
}


h3{
	font-weight: bold;
	font-size: 1.5rem;
	line-height: 32px;
	margin-bottom: 16px;
}

p{
	line-height: 1.8rem;
}


a:hover{
	 color: #007EA3;
}

.button{
	margin: 34px auto;
}


.button a {
    background: #A8E4DF;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 260px;
    padding: 15px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button a:hover {
    background: #5EBEB6;
    color: #FFF;
}
.button a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #313131;
    border-right: 3px solid #313131;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.button a:hover:after {
    border-color: #FFF;
}


.button-back{
	margin: 34px auto;
}


.button-back a {
    background: #FFFFFF;
	border:solid 1px #A8E4DF;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 260px;
    padding: 15px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button-back a:hover {
    background: #A8E4DF;
    color: #FFF;
}
.button-back a:before {
    content: '';
    width: 5px;
    height: 5px;
    border-bottom: 3px solid #313131;
    border-left: 3px solid #313131;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    left: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.button-back a:hover:before {
    border-color: #FFF;
}



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



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

#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:fixed;
	z-index: -1;
	opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
	top:0;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:#BAD7DF;
    /*動き*/
	transition: all 0.3s;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive{
	opacity: 1;
	z-index:999;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

#g-nav.panelactive ul {
    display: block;
}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
    text-align: center; 
}

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

/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:10px;
	right: 10px;
	cursor: pointer;
    width: 50px;
    height:50px;
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: #666;
  	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;
}

.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%;
}


/*TOP画面*/
.full {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url(画像URL・パス)
    center / cover;
	
}

.top-main{
	 position: absolute;
	width: 100%;
  top: calc(40%);
	text-align: center;
}

.top-main img{
	margin-bottom: 2rem;
	 
}

/*====== 9-1-1 縦線が動いてスクロールを促す =======*/

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

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

/* 線の描写 */
.scrolldown1::after{
	content: "";
    /*描画位置*/
	position: absolute;
	top: 0;
    /*線の形状*/
	width: 1px;
	height: 30px;
	background: #000000;
    /*線の動き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;
	}
}



/*==================================================
メイン
===================================*/

article{
	margin:8rem auto 16rem;
	max-width: 900px;
}


.wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
	margin: 0 2rem;
}


/*==================================================
お知らせ
===================================*/


.item {
  padding:26px;
  width: 32%;
  background-color: #FFFFFF;

}


.aboutatc{
	width: 768px;
	margin: 5rem 0;
}

.item2 {
  width: 50%;
}


/*== 影がついて浮き上がる */

/*ボタンの形状*/
.float1{
    color: #333;
    display: inline-block;
    text-decoration: none; 
    outline: none;
    /*アニメーションの指定*/
    transition: all .3s;
}

/*hoverをしたらボックスに影がつく*/
.float1:hover {
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

@media not all and (min-width: 768px) {
  .item {
    width: 100%;
	padding-bottom: 2rem;  
  }

  .item:not(:last-child) {
    margin-bottom: 30px;
  }
}

.newsbox{
	margin-bottom: 6rem;
}

.newstopix p{
	margin-top: 2rem;
}



/*==================================================
動かしたい動き（今回は” ふわっ” を採用）
===================================*/

.fadeUp {
animation-name:fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity: 0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}


/*==================================================
お知らせ
===================================*/

/*文字表示制限*/

.item p{
	  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}



/*==================================================
ATCはこんな会社です
===================================*/

.abouttext{
	max-width: 768px;
}


.phone{
	margin-top: 20px;
	font-size: 1.5rem;
	text-transform: uppercase;
	font-family:'Montserrat', sans-serif;
	font-weight: bold;
}


hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
	border-top: 1px solid #ccc;
}


.box-a {
	position: relative; /*--positionを追加--*/
	margin-right: 2em;
}

.box-a::after {
	position: absolute; /*--positionを追加--*/
	top: 0;
	left: 100%;
	margin: 0 1rem;
	content: "";
	width: 1px; /*--縦線の太さ(幅)--*/
	height: 100%;
	background-color: #C2C2C2; /*--縦線の色--*/
}



.box{
	width: 48%;
}




@media not all and (min-width: 768px) {
.aboutatc{
	flex-direction: column;
	margin: 2rem auto;
}

.box-a {
	margin-bottom:4rem;
}
	
.box-a::after {
	display: none;
}


	
.item2 {
  width: 100%;
}
	
		
}

/*==================================================
Works
===================================*/

.works{
	flex-direction: column;
}

	.box img{
		width: 100%;
	}	

@media not all and (min-width: 768px) {
.box{
	width: 100%;
}
	

}


/*==================================================
きみアル
===================================*/

.kimal-top {
	text-align: center;
	padding-bottom: 4em;
	
}

.kimal-top img{
	width: 60%;
	padding-bottom: 4em;
}

.kimal-top h2{
	font-size: 300%;
	color: deeppink;
	padding-bottom: 1em;
}



.TextRandomAnime span{
	opacity: 0;
}
.TextRandomAnime.appearRandomtext span{ 
	animation:text_randomanime_on .5s ease-out forwards;
}

/*アニメーションで透過を0から1に変化させる*/
@keyframes text_randomanime_on {
	0% {opacity:0;}
	100% {opacity:1;}
}

.TextRandomAnime.appearRandomtext span:nth-child(2n) {
	animation-delay: .5s;/* spanのついた2の倍数の文字列の変化を0.5秒遅らせる*/
}
.TextRandomAnime.appearRandomtext span:nth-child(3n+1) {
	animation-delay: .15s;/* spanのついた3の倍数＋1の文字列の変化を0.15秒遅らせる*/
}


/*==================================================
フッター
===================================*/
footer{
	text-align: center;
	padding: 2em;
	font-size: 0.8rem;
}

/*==================================================
TOPへもどるボタン
===================================*/
/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background:#129EA7;
	border-radius: 5px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
}

#page-top a:hover{
	background: #777;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}


/*==================================================
スタート時は要素自体を透過0にするためのopacity:0;を指定する
===================================*/

.fuwa{
	opacity: 0;
}

/*==================================================
動かしたい動き（今回は” ふわっ” を採用）
===================================*/

.fadeUp {
animation-name:fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity: 0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*ぽよんぽよん*/
.poyopoyo {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
}
@keyframes poyopoyo {
  0%, 40%, 60%, 80% {
    transform: scale(1.0);
  }
  50%, 70% {
    transform: scale(0.95);
  }
}

/*きらりん*/
.kiran {
  opacity: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.kiran::before {
  background-color: #fff;
  content: "";
  display: block;
  position: absolute;
  top: -100px;
  left: 0;
  width: 30px;
  height: 100%;
  opacity: 0;
  transition: cubic-bezier(0.32, 0, 0.67, 0);
}
.kiran:hover::before {
  animation: kiran 0.5s linear 1;
}
 
@keyframes kiran {
  0% {
    transform: scale(2) rotate(45deg);
    opacity: 0;
  }
  20% {
    transform: scale(20) rotate(45deg);
    opacity: 0.6;
  }
  40% {
    transform: scale(30) rotate(45deg);
    opacity: 0.4;
  }
  80% {
    transform: scale(45) rotate(45deg);
    opacity: 0.2;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

