/* original style css 2202 */

html {
  font-size: 62.5%;
}

/* common */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Kaisei Tokumin', serif;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-family: 'Cormorant Garamond', serif;
  background: #fdfdfd;
}

body {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.1rem;
  font-size: 1.6rem;
  color: #333333;
}

.color_main {
  color: #0280BC;
}

.color_rightgray {
  color: #F8F8F8;
}

a {
  text-decoration: none;
  color: #333333;
}

a:hover {
  color: #0280BC;
}

.align_center {
  text-align: center;
}

.align_right {
  text-align: right;
}

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding:0;
}

nav{
  width: 100%;
  height: 60px;
  position: relative;
}

.header_drawer{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 60px;
}

.header_logo {
  padding: 0 1rem;
  font-size: 2rem;
}

.header_logo a {
  color: #0280BC;
}
  
.logo_link {
  display: flex;
  align-items: center;
}

.logo_link span {
  padding-top: 1rem;
}

.header_logo img {
  width: 50px;
  display: inline-block;
}

.header_menu{
  text-align:center;
  transition: 0.5s ease;
  -webkit-transform: translateX(-100%);/*画面より100%外へ押し出し非表示にさせる*/
}

.header_menu.open {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);/*メニューを元の位置へ戻す*/
}

.header_menu_list {
  list-style: none;
  background: rgba(255, 255, 255, 0.8);
}

.header_menu_list li a {
  display:block;
  padding: 2em;
  border-bottom: 1px dotted #CCC;
  font-weight: 500;
  color: #0280BC;
}

/*トグルボタンのスタイルを指定*/
.Toggle {
  display: block;
  position: fixed;    /* bodyに対しての絶対位置指定 */
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 3;
  right:15px;
}
 
.Toggle span {
  display: block;
  position: absolute;
  width: 40px;
  border-bottom: solid 2px #0280BC;
  -webkit-transition: .35s ease-in-out;	/*変化の速度を指定*/
  -moz-transition: .35s ease-in-out;		/*変化の速度を指定*/
  transition: .35s ease-in-out;			/*変化の速度を指定*/
 
}
 /*各ボーダー少しずつずらす*/
.Toggle span:nth-child(1) { top:5px; }
.Toggle span:nth-child(2) { top: 18px; }
.Toggle span:nth-child(3) { top: 32px; }
.Toggle.active span:nth-child(1) {
  top: 18px;
  /* 1番目のspanをマイナス45度に */
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
 
/* 2番目と3番目のspanを45度に */
.Toggle.active span:nth-child(2),
.Toggle.active span:nth-child(3) {
  top: 18px;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

@media screen and (min-width: 600px) {
  nav {
    display: flex;
    height: auto;
  }

  .header_drawer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: auto;
  }

  h1.header_logo {
    padding: 2rem 3rem;
    width: 400px;
    font-size: 2.2rem;
  }
  
  .logo_link {
    display: flex;
    align-items: center;
  }
  
  .logo_link span {
    padding-top: 1rem;
  }

  .header_logo img {
    width: 50px;
    display: inline-block;
  }
  
  .Toggle {
    display: none;
  }
  
  .header_menu {
    width: 100%;
    background-color: transparent;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  
  .header_menu_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    margin: 0;
  }

  .header_menu_list li a {
    padding: 0 2rem;
    border-bottom: none;
  }
  
  .header_menu_list li a:last-child {
    padding-right: 3rem;
  }

  .contact_head_btn {
    display: block;
    background: #D1B100;
    color: #fff;
    margin-right: 3rem;
    padding: 2rem 0;
    margin-top: 0;
  }
  
  .header_menu_list li.contact_head_btn a {
    color: #fff;
  }

  .contact_head_btn i {
    display: block;
  }
}

.container {
  margin-top: 10rem;
  padding: 0 3rem;
}

.section {
  padding: 5rem 0;
  margin: 5rem 0;
}

.section_header {
  color: #0280BC;
  font-size: 4rem;
  position: relative;
  margin: 0 5rem;
}

@media only screen and (max-width: 599px) {
  .section_header {
    margin: 0 1rem;
  }
}

.section_header::after {
  content: "";
  position: absolute;
  top:-10px;
  left: 0;
  width: 20px;
  height: 10px;
  background-color: #0280BC;
}

.section_header_sub {
  display: block;
  font-size: 1.4rem;
}

.section_header_c {
  text-align: center;
  color: #0280BC;
  font-size: 4rem;
}

.section_header_c_sub {
  display: block;
  font-size: 1.4rem;
}

.section_title {
  color: #0280BC;
  font-size: 3rem;
  position: relative;
  margin: 0 5rem;
}

.section_title::after {
  content: "";
  position: absolute;
  top:-10px;
  left: 0;
  width: 50px;
  height: 5px;
  background-color: #0280BC;
}

.section_title_sub {
  display: block;
  font-size: 1.4rem;
}

.contents {
  margin: 5rem;
}

.md-left {
  margin-left: 25rem;
}

.hr_box {
  border-top: 1px solid #0280BC;
  margin: 5rem;
}

.hr_box::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background-color: #0280BC;
}

hr {
  height: 8px;
  background-image: repeating-linear-gradient(45deg, #ccc 0, #ccc 1px, transparent 0, transparent 50%);
  background-size: 8px 8px;
  margin: 0 5rem;
}

@media only screen and (max-width: 599px) {
  .container {
    margin-top: 10rem;
    padding: 0 3rem;
  }

  .section {
    padding: 5rem 0;
  }
  .hr_box {
    margin: 5rem 0;
  }
  hr {
    margin: 0 1rem;
  }
  .contents {
    margin: 5rem 1rem;
  }
  .md-left {
    margin-left: 0;
  }
  .section_title {
    color: #0280BC;
    font-size: 3rem;
    position: relative;
    margin: 0 1rem;
  }
}

/*BTN*/

.button01 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 1rem;
  color: #fff;
  background-color: #0280BC;
  transition: 0.3s;
}

.button01 a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
}

.button01 a:hover {
  text-decoration: none;
  background-color: #bbbbbb;
}

.button02 {
  display: flex;
  justify-content:space-around;
}

.button02 a {
  display: flex;
  justify-content: space-between;
  align-items:flex-end;
  position: relative;
  padding: 1em 2em;
  width: 300px;
  color: #fff;
  background-color: #0280BC;
  transition: 0.3s;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  letter-spacing: 0.4rem;
}

.button02 a::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 100%;
  height: 2px;
  background-color: #0280BC;
  transition: 0.2s ease 0s;
}

.button02 a::after {
  content: '';
  position: absolute;
  top: 7px;
  right: -7px;
  width: 2px;
  height: 100%;
  background-color: #0280BC;
  transition: 0.2s ease 0.2s;
}

.button02 a:hover::before {
  width: 0%;
}

.button02 a:hover::after {
  height: 0%;
}

.button02 a:hover {
  text-decoration: none;
  background-color: #a0c4d3;
}

/*Page*/

/**home**/
.home {
  position: relative;
  width: 100%;
  margin: 0 auto;
}


/*==================================================
スライダーのためのcss
===================================*/
.slider {
  position:relative;
  z-index: 1;*width: 100%;
  /*↑z-indexの値をh1のz-indexの値よりも小さくして背景に回す*/
  background: #0280bc;
}
/*　背景画像設定　*/

.slider-item01 {
  background:url(/images/main-photo.jpg);
}

.slider-item02 {
  background:url(/images/main-photo2.jpg);
}

.slider-item03 {
  background:url(/images/main-photo3.jpg);
}

.slider-item {
  /*width: 100%;/*各スライダー全体の横幅を画面の高さいっぱい（100%）にする*/
  height:800px;/*各スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
  background-repeat: no-repeat;/*背景画像をリピートしない*/
  background-position: center;/*背景画像の位置を中央に*/
  background-size: cover;/*背景画像が.slider-item全体を覆い表示*/
}

/*矢印の設定*/

/*戻る、次へ矢印の位置*/
.slick-prev, 
.slick-next {
  position: absolute;/*絶対配置にする*/
  z-index: 3;
  top: 42%;
  cursor: pointer;/*マウスカーソルを指マークに*/
  outline: none;/*クリックをしたら出てくる枠線を消す*/
  border-top: 2px solid #ccc;/*矢印の色*/
  border-right: 2px solid #ccc;/*矢印の色*/
  height: 25px;
  width: 25px;
}

.slick-prev {/*戻る矢印の位置と形状*/
  left:2.5%;
  transform: rotate(-135deg);
}

.slick-next {/*次へ矢印の位置と形状*/
  right:2.5%;
  transform: rotate(45deg);
}

/*ドットナビゲーションの設定*/

.slick-dots {
  position: relative;
  z-index: 3;
  text-align:center;
  margin:-50px 0 0 0;
}

.slick-dots li {
  display:inline-block;
  margin:0 5px;
}

.slick-dots button {
    color: transparent;
    outline: none;
    width:8px;/*ドットボタンのサイズ*/
    height:8px;/*ドットボタンのサイズ*/
    display:block;
    border-radius:50%;
    background:#ccc;/*ドットボタンの色*/
}

.slick-dots .slick-active button{
    background:#333;/*ドットボタンの現在地表示の色*/
}

.main-txt {
  position: absolute;
  bottom: 100px;
  right: 50px;
  color: #fff;
  font-size: 5rem;
  z-index: 3;
}

@media only screen and (max-width: 599px) {
  .home {
  }
  
  .slider-item {
    height: 500px;
  }
  .main-txt {
    font-size: 1.7rem;
    bottom: 50px;
    left: 20px;
  }
}

/**about us**/
.aboutus-contents {
  margin-left: 30rem;
}

.aboutus-mainimg {
  background: url(../images/aboutus.jpg) no-repeat;
  background-position: bottom;
  height: 200px;
  margin-top: 3rem;
}

.aboutus-txt {
  width: 1000px;
  font-size: 2rem;
  letter-spacing: 0.3rem;
  padding: 3rem 10rem;
}

@media only screen and (max-width: 599px) {
  .aboutus-contents {
    margin-left: 0;
  }
  
  .aboutus-txt {
    width: 100%;
    font-size: 1.6rem;
    padding: 3rem;
  }
}

.company-concents {
  padding: 5rem;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
}

.company-table {
  list-style: none;
  letter-spacing: 0.3rem;
}

.company-table li {
  padding: 2rem 0;
  border-bottom: 1px solid #dddddd;
}

.company-table2 {
  list-style: none;
  letter-spacing: 0.3rem;
}

.company-table2 li {
  padding: 1rem 0;
  border-bottom: 1px solid #dddddd;
}

.com-name {
  width: 30%;
  display: inline-block;
}

.com-add {
  margin-left: 3rem;
  font-size: 1.4rem;
  display: inline-block;
  border-left: 1px solid #dddddd;
  padding-left: 3rem;
}

.table-title {
  font-size: 1.2rem;
  color: #0280bc;
  display: block;
}

.accsess-map {
  margin: 0 5rem;
}

@media only screen and (max-width: 599px) {
  .company-concents {
    padding: 5rem 0rem;
  }
  .accsess-map {
    margin: 0 0rem;
  }
  .com-name {
    width: 100%;
    display: block;
  }

  .com-add {
    margin-left: 0;
    font-size: 1.4rem;
    display: block;
    border-left: 1px solid #dddddd;
    padding-left: 0;
  }
}

/**service**/
.service-contents {
  margin: 3rem 5rem;
}

.service-header {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 500;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  background: #d1b100;
  display: inline-block;
  padding: 1rem 5rem 1rem 1rem;
}

.service-header-sub {
  font-size: 1.2rem;
  padding-left: 2rem;
}

.service-photo {
  position: relative;
  margin-bottom: 10rem;
}

.service-photo02 {
  position: absolute;
  right: 0;
  bottom: -30px;
}

.service-photo03 {
  text-align: right;
}

.service-photo03 img {
  width: 1000px;
}

.service-photo04 {
  position: absolute;
  top: 100px;
  right: 0;
}

.service-photo-flex {
  display: flex;
  justify-content: space-around;
}

.service-photo-flex img {
  height: 300px;
}

.service-txt p {
  font-size: 2rem;
  padding: 3rem 10rem;
}

@media only screen and (max-width: 599px) {
  .service-contents {
    margin: 3rem 1rem;
  }
  .service-header {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    background: #d1b100;
    display: inline-block;
    padding: 0.5rem 5rem 0.5rem 1rem;
  }
  .service-photo {
    position: relative;
    margin-bottom: 1rem;
  }
  .service-photo02 {
    display: none;
  }
  .service-photo03 img {
    width: 100%;
  }
  .service-photo04 {
    position:static;
    bottom: 20px;
    right: 0;
  }
  .service-txt p {
    font-size: 1.6rem;
    padding: 3rem 1rem;
  }

  .service-photo-flex {
    display: flex;
    justify-content: space-around;
    flex-flow: wrap;
  }

  .service-photo-flex img {
    height: 120px;
  }
}

/**news**/
.news-box {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  display: flex;
  background: #F8F8F8;
  padding: 3rem;
  margin: 3rem auto;
  width: 65%;
}

.news-date {
  border: 1px solid #dddddd;
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  margin: 0 3rem 0 0;
  width: 120px;
  height: 120px;
}

.news-day {
  color: #0280BC;
  font-size: 4rem;
  font-weight: 500;
}

.news-txt {
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-txt-s {
  font-size: 1.2rem;
}

@media only screen and (max-width: 599px) {
  .news-box {
    padding: 3rem 1rem;
    width: 100%;
    align-items: center;
  }
  .news-date {
    padding: 1rem;
    width: 80px;
    height: 80px;
  }
  .news-day {
    font-size: 3rem;
  }
  .news-txt {
    width: calc(100% - 80px);
  }
}

/**contact**/
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-head {
  color: #0280BC;
  font-size: 4rem;
  font-weight: 700;
  padding-bottom: 3rem;
}

.contact-subhead {
  display: block;
  font-weight: 400;
  font-size: 1.2rem;
}

.contact-box {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  padding: 2rem 3rem;
  margin: 0 4rem;
  text-align: center;
  border: 1px solid #DDDDDD;
  height: 200px;
}

.contact-box p {
  font-size: 1.4rem;
}

.contact-box i {
  font-size: 4rem;
  padding: 2rem 0;
}

p.tel-txt {
  font-size: 2.4rem;
  font-weight: 500;
  color: #0280BC;
}

.contact-box p.sub-txt {
  font-size: 1rem;
}

.contact-form {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
}

.thanks {
  padding-bottom: 4rem;
}

.back-btn {
  width: 200px;
}

@media only screen and (max-width: 599px) {
  .contact {
    flex-flow: column;
  }
  
  .contact-box {
    height: 200px;
    margin: 2rem 0;
    border-right: none;
    border-left: none;
    width: 100%;
  }
}

/**privacypolicy**/
.privacypolicy {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  padding: 5rem;
}

.chapter-text {
  padding: 2rem 5rem;
  font-size: 1.6rem;
}

.chapter-text p {
  font-weight: 400;
  color: #0280BC;
}

@media only screen and (max-width: 599px) {
  .privacypolicy {
    padding: 5rem 0;
  }
  .chapter-text {
    padding: 2rem 1rem;
  }
}

/* footer */
footer {
  margin-top: auto;
  padding: 0;
  background: #0280BC;
  color: #fff;
}

.footer {
  opacity: 1;
  padding: 3rem 2rem;
  position: relative;
}

.footer_container {
  position: relative;
  display: flex;
  padding: 3rem 2rem;
}

.footer_logo {
  display: block;
  padding: 2rem 0 2rem 15rem;
  width: 30%;
}

.footer_menu {
  display: flex;
  list-style-type: none;
}

.footer_menu li {
  padding: 1rem 5rem;
  font-size: 1.4rem;
}

.footer_menu li a {
  color: #fff;
}

.footer_menu li a:hover {
  color: #025983;
}

.f-menu-e {
  display: block;
  font-size: 1.2rem;
  padding: 1rem 0;
}
.c_name{
  display: block;
  font-size: 1.2rem;
}

.f_sub_menu {
  position: absolute;
  left:85px;
  bottom: 30px;
  font-size: 1.2rem;
  color: #fff;
}

.f_sub_menu:hover {
  color: #025983;
}

.copyright {
  text-align: right;
  font-size: 1.4rem;
  padding-right: 70px;
}

@media only screen and (max-width: 599px) {
  .footer {
    padding: 3rem 2rem;
    position: relative;
  }
  .footer_container {
    display: block;
    padding: 3rem 0;
  }
  .footer_logo {
    display: block;
    padding: 2rem;
    width: 100%;
  }
  .footer_menu {
    padding: 2rem;
    flex-wrap: wrap;
  }
  .footer_menu li {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
  .f_sub_menu {
    position:static;
    font-size: 1rem;
    padding: 3rem;
  }
  .copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-right: 0;
    padding-top: 3rem;
  }
}

/*スクロールダウン全体の場所*/
.scrolldown {
  /*描画位置*/
  position:absolute;
  bottom:0;
  right:10%;
}

/*Scrollテキストの描写*/
.scrolldown span{
  /*描画位置*/
  position: absolute;
  left:10px;
  bottom:10px;
  /*テキストの形状*/
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

/* 丸の描写 */
.scrolldown:before {
  content: "";
  position: absolute;
  bottom:0;
  left:-4px;
  width:10px;
  height:10px;
  border-radius: 50%;
  background:#fff;
  /*丸の動き1.6秒かけて透過し、永遠にループ*/
  animation:
    circlemove 1.6s ease-in-out infinite,
    cirlemovehide 1.6s ease-out infinite;
}

/*下からの距離が変化して丸の全体が上から下に動く*/
@keyframes circlemove {
  0%{bottom:45px;}
  100%{bottom:-5px;}
 }

/*上から下にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide{
      0%{opacity:0}
     50%{opacity:1;}
    80%{opacity:0.9;}
	100%{opacity:0;}
 }

/* 線の描写 */
.scrolldown:after{
  content:"";
  position: absolute;
  bottom:0;
  left:0;
  width:2px;
  height: 50px;
  background:#fff;
}

/*==================================================
ふわっ
===================================*/

/* その場で */
.fadeIn{
animation-name:fadeInAnime;
animation-duration:1s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeInAnime{
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 下から */

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

/* 上から */

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

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

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

/* 左から */

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

@keyframes fadeLeftAnime{
  from {
    opacity: 0;
  transform: translateX(-100px);
  }

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

/* 右から */

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

@keyframes fadeRightAnime{
  from {
    opacity: 0;
  transform: translateX(100px);
  }

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

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
 
.fadeInTrigger,
.fadeUpTrigger,
.fadeDownTrigger,
.fadeLeftTrigger,
.fadeRightTrigger{
    opacity: 0;
}

/*==================================================
シャッ（背景色が伸びて出現）
===================================*/

/*背景色が伸びて出現（共通）*/
.bgextend{
  animation-name:bgextendAnimeBase;
  animation-duration:1s;
  animation-fill-mode:forwards;
  position: relative;
  overflow: hidden;/*　はみ出た色要素を隠す　*/
  opacity:0;
}

@keyframes bgextendAnimeBase{
  from {
    opacity:0;
  }

  to {
    opacity:1;
}
}

/*中の要素*/
.bgappear{
  animation-name:bgextendAnimeSecond;
  animation-duration:1s;
  animation-delay: 0.6s;
  animation-fill-mode:forwards;
  opacity: 0;
}

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

/*左から*/
.bgLRextend::before{
  animation-name:bgLRextendAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #2356A7;/*伸びる背景色の設定*/
}
@keyframes bgLRextendAnime{
  0% {
    transform-origin:left;
    transform:scaleX(0);
  }
  50% {
    transform-origin:left;
    transform:scaleX(1);
  }
  50.001% {
    transform-origin:right;
  }
  100% {
    transform-origin:right;
    transform:scaleX(0);
  }
}

/*右から*/
.bgRLextend::before{
  animation-name:bgRLextendAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #666;/*伸びる背景色の設定*/
}
@keyframes bgRLextendAnime{
  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);
  }
}

/*下から*/
.bgDUextend::before{
  animation-name:bgDUextendAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #666;/*伸びる背景色の設定*/
}
@keyframes bgDUextendAnime{
  0% {
    transform-origin:bottom;
    transform:scaleY(0);
  }
  50% {
    transform-origin:bottom;
    transform:scaleY(1);
  }
  50.001% {
    transform-origin:top;
  }
  100% {
    transform-origin:top;
    transform:scaleY(0);
  }
}

/*上から*/
.bgUDextend::before{
  animation-name:bgUDextendAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #666;/*伸びる背景色の設定*/
}
@keyframes bgUDextendAnime{
  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);
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.bgappearTrigger,
.bgUDextendTrigger,
.bgDUextendTrigger,
.bgRLextendTrigger,
.bgLRextendTrigger{
    opacity: 0;
}

.slide-in {
  overflow: hidden;
  display: inline-block;
}

.slide-in_inner {
  display: inline-block;

}

/*左右のアニメーション*/
.leftAnime{
  opacity: 0;/*事前に透過0にして消しておく*/
}

.slideAnimeLeftRight {
  animation-name:slideTextX100;
  animation-duration:0.8s;
  animation-fill-mode:forwards;
  opacity: 0;
}

@keyframes slideTextX100 {
  from {
    transform: translateX(-100%); /*要素を左の枠外に移動*/
    opacity: 0;
  }

  to {
    transform: translateX(0);/*要素を元の位置に移動*/
    opacity: 1;
  }
}

.slideAnimeRightLeft {
  animation-name:slideTextX-100;
  animation-duration:0.8s;
  animation-fill-mode:forwards;
  opacity: 0;
}


@keyframes slideTextX-100 {
  from {
    transform: translateX(100%);/*要素を右の枠外に移動*/
    opacity: 0;
  }

  to {
    transform: translateX(0);/*要素を元の位置に移動*/
    opacity: 1;
  }
}
