/* General */
html {
  scroll-behavior: smooth;
  position: relative;
}

h1, h2, h3, h4, h5, li {
  font-family: 'DM Sans', sans-serif
 }
 h2 {
  font-size: 1.8rem;
 }
 h3 {
  font-size: 1.2rem;
 }
 p {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
 }
 .p-desc {
  margin-bottom: 30px;
}
 .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
padding-right: 25px !important;
padding-left: 25px !important;
}

/* ページ内リンク先の位置調整 */
a.anchor {
  display: block;
  position: relative;
  top: -55px;
  visibility: hidden;
}

/* hero part */
#heropart {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-image: url("../img/back.jpg");
  background-attachment: fixed;
  animation-name: bnr-animation;
  animation-duration: 5s;
    }
    /* For iOS */
    _:lang(x)+_:-webkit-full-screen-document,  #heropart {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-image: url("../img/back.jpg");
  background-attachment: scroll;
    }


    .hero-content {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .arrows {
    width: 60px;
    height: 72px;
    margin-top: -36px;
    margin-bottom: 0px;
}

.arrows path {
    stroke: darkslategray;
    fill: transparent;
    stroke-width: 1px;  
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite;  
}

@keyframes arrow
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

.arrows path.a1 {
    animation-delay:-1s;
    -webkit-animation-delay:-1s;
}

.arrows path.a2 {
    animation-delay:-0.5s;
    -webkit-animation-delay:-0.5s;
}

.arrows path.a3 {   
    animation-delay:0s;
    -webkit-animation-delay:0s;
}

/* hero image material adjustment */
/* ---ここからはじめ--- */
#moon-img {
  width: 170px; 
  height: 197px;
  margin-top: 130px; 
  margin-bottom: -100px;
}
#herotext-img {
  width: 400px;
  height: 242px;
}
#sun-img {
  width: 250px; 
  height: 248px;
  margin-top: -150px; 
  margin-bottom: -80px;
}
#cloud-img {
  width: 2000px; 
  height: 201px;
  margin: 0 auto; 
  margin-bottom: -100px;
}
#astronaut-img {
  width: 300px; 
  height: 321px;
  margin-top: -300px; 
  margin-bottom: -100px;
}
.main-pc {
  display: inline-block;
}
.main-sp {
  display: none;
}
@media screen and (max-width: 991px) {
  #moon-img {
    width: 120px; 
    height: 140px;
    margin-top: 70px; 
    margin-bottom: -70px;
  }
  #herotext-img {
    width: 400px;
    height: 242px;
  }
  #sun-img {
    width: 200px; 
    height: 199px;
    margin-top: -50px; 
    margin-bottom: -80px;
  }
  #cloud-img {
    width: 2000px; 
    height: 201px;
    margin: 0 auto; 
    margin-bottom: -100px;
  }
  #astronaut-img {
    width: 250px; 
    height: 268px;
    margin-top: -300px; 
    margin-bottom: -100px;
  }
}
@media screen and (max-width: 629px) {
  #sun-img-sp {
    width: 220px; 
    height: 219px;
    margin-top: 70px; 
    margin-bottom: -50px;
  }
  #astronaut-img-sp {
    width: 250px; 
    height: 268px;
    margin-top: -150px; 
    margin-bottom: 0px;
  }
  #herotext-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    padding: 0 20px;
  }
  #cloud-img {
    width: 2000px; 
    height: 201px;
    margin: 0 auto; 
    margin-top: 50px;
    margin-bottom: -100px;
  }
  .main-pc {
    display: none;
  }
  .main-sp {
    display: block;
  }
}


/* アニメーション */
/* 回転するアニメーション */
@keyframes fuwafuwa {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.anime-fuwafuwa {
  animation: 3s fuwafuwa infinite;
}

/* ゆらゆら */
.yuhrayuhra{
  transform-origin: center bottom;
  animation: yurayura 5s linear infinite;
}

@keyframes yurayura {
0% , 100%{
    transform: rotate(5deg);
}
50%{
    transform: rotate(-5deg);
}
}
/* ---ここまで--- */

/* Back to Top button */
#page-top img {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 80px;
  z-index: 6000;
  }
  
  @media only screen and (max-width: 1000px) {
  #page-top img {
  bottom: 50px;
  right: 10px;
  }
  }
  
  @media only screen and (max-width: 470px) {
  #page-top img {
  width: 55px;
  bottom: 25px;
  right: 3px;
  }
  }



/* works */
.titleh3 {
  margin: 20px 0px 15px 0px !important;
  margin-top: 0px;
  padding: 2px 2px 2px 10px;
  text-align: left;
  border-style: solid;
  border-width: 0px 0px 1px 4px;
  border-color: #93A2B1;
}


/* Footer */
.footer-left p {
  text-align: left;
  color: #ffffff !important;
  }
  .footer-left p span {
    white-space: nowrap;
    }
  .footer-left p a {
  text-decoration: none;
  color: #ffffff;
  }
.footer-right {
  text-align: right;
  margin-top: 38px;
  color: #ffffff;
}
.contactme {
  margin-bottom: 30px;
}
@media only screen and (max-width: 767px) {
  .footer-left p {
    text-align: center;
    }
    .footer-right {
      text-align: center;
      margin-top: 15px;
    }
    .contactme {
      margin-bottom: 0px;
    }
}

  /* isotope filter */
  .filter {margin:30px 0 20px 0; text-align: center;}
/* .filter a {margin-right:5px; margin-left: 5px; color:#666;font-family: 'DM Sans', sans-serif;}
.filter a.current { font-weight:bold;} */

.grid {
width:100%;
text-align:center;
clear:both;
display:block;
position:relative;
padding:0; margin:0;
}

.item {
float:left;
display:block;
padding:0;
margin:0;
overflow:hidden;
position:relative;
line-height:0;
padding:5px;
}


.isotope .item {
	-webkit-transition-property:-webkit-transform, opacity;
	-moz-transition-property:-moz-transform, opacity;
	-ms-transition-property:-moz-transform, opacity;
	-o-transition-property:-moz-transform, opacity;
	transition-property:transform, opacity;
margin:0;
padding:0;
    -webkit-transition-duration:0.8s;
    -moz-transition-duration:0.8s;
    -ms-transition-duration:0.8s;
    -o-transition-duration:0.8s;
    transition-duration:0.8s;
}

.item img {display:block; line-height:0; width:100%; max-width:100%; height:auto;}

.item,
.grid-sizer {width:25%;}

@media screen and (max-width:996px) {
	.item,
	.grid-sizer {width:50%;}
}

@media screen and (max-width:600px) {
	.item,
	.grid-sizer {width:100%;}
}



/* works img hover */
figure.snip1130 {
  font-family: 'EB Garamond', serif;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #212529;
  color: #212529;
  text-align: left;
  padding: 0;
  margin: 0;
}
figure.snip1130 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease-in-out;
  transition: all 0.45s ease-in-out;
}
figure.snip1130 img {
  max-width: 100%;
  position: relative;
  opacity: 1;
}
figure.snip1130 figcaption {
  position: absolute;
  left: 15px;
  right: 15px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  top:15px;
  bottom: 15px;
  padding: 15px;
  z-index: 1;
  opacity: 0;
}
figure.snip1130 h3 {
  margin: 0;
  text-align: center;
  color: #fff !important;
}
figure.snip1130 h3 {
  display: inline-block;
  font-family: 'EB Garamond', serif;
}
figure.snip1130:after {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  content: '';
  background: #000000;
  position: absolute;
  -webkit-transition: all 0.45s ease-in-out;
  transition: all 0.45s ease-in-out;
  opacity: 0;
}
figure.snip1130 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}
figure.snip1130.blue {
  background: #173275;
}
figure.snip1130:hover img,
figure.snip1130.hover img {
  opacity: 0.5;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
figure.snip1130:hover figcaption,
figure.snip1130.hover figcaption {
  opacity: 0.8;
}
figure.snip1130:hover:after,
figure.snip1130.hover:after {
  opacity: 0.8;
}


/* hover animation */
.underline-a {
  color: #212529;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all  0.3s ease;
  opacity: 1;
  position: relative;
  display: inline-block;
  transition: .3s;
}
.underline-a::after {
  position: absolute;
  bottom: -2px;
  left: 50%;
  content: '';
  width: 0;
  height: 1px !important;
  background-color: #D4723D;
  -webkit-transition: all 0.45s ease;
  -moz-transition: all 0.45s ease;
  -o-transition: all 0.45s ease;
  transition: all  0.45s ease;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0.8;
}
.underline-a:hover {
  color: #D4723D;
  text-decoration: none;
  opacity: 0.8;
}
.underline-a:hover::after {
  width: 100%;
}
.link-side {
  margin-left: 0px;
  margin-right: 20px;
}
.filter a.current { font-weight:bold !important;} 


/* Other pages */
.titlemawari {
  margin-top: 40px;
  margin-bottom: 40px;
}

.project-screen {
  background: #ddd url(../img/dots.svg) no-repeat 6px 7px;
  border-radius: 5px 5px 2px 2px;
  padding: 20px 2px 2px;
  margin-bottom: 10%;
}

.worksimg {
  margin-bottom: 30px;
}

.imgborder {
  border: 2px solid #ddd;
}

.subtitle {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 15px;
}
.subtitle span {
  font-size: 14px;
  color: #D4723D;
  vertical-align: 1px;
}


.introanimation {
  animation-name: bnr-animation;
  animation-duration: 3s;
}
@keyframes bnr-animation{
  0% {opacity: 0;}
  100% {opacity: 1;}
}





/***上にかぶせる背景***/
.mask{
  position:fixed; /*固定表示*/
  top:0;
  left:0;
  width: 100vw; /*画面幅*/
  height: 100vh; /*画面の高さ*/
  background-color: #fff; /*背景色*/
  z-index:11999; /*最前面に*/
  animation: fadeOut 1.5s forwards; /*フェードアウト*/
  animation-delay: 2s; /*ロゴ画像のアニメーション後に*/
}

/*フェードアウトアニメーション*/
@keyframes fadeOut{
  0%{
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/***ロゴ画像***/
.mask img{
  position: absolute;
  width: 250px;
  /* height: 100px; */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding-bottom: 50px;
  animation: bound 1s forwards; /*任意のアニメーション*/
  animation-delay: 1.5s; /*好みで遅延*/
}

/*鼓動する*アニメーション*/
@keyframes bound{
  30%{
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.9);
  }
}

/***サンプル装飾用***/
/* body{
  padding: 3rem;
} */