@charset "UTF-8";

/* * {
  outline: 2px solid red;
} */




/*  共通部分 
---------------------------*/
html {
  font-size: 100%;

  
}

body {
  font-family: "Yu Gothic Medium", "遊ゴシック Medium", YuGothic, "遊ゴシック体", "ヒラギノ角ゴ Pro w3", sans-serif;
  line-height: 1.7;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

img {
  width:100%;
  max-width: 100%;
  height: auto;
}

/*  ヘッダー
-------------------------------  */
/* LOGO */
.top-logo {
  width: 80px;
  height: 80px;
}

/*  メインnav  
-------------------------------------*/
.main-nav {
  display: flex;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  list-style: none;
  margin-top: 25px;
}

.main-nav li {
  margin-left: 36px;
}

.main-nav a {
  color: #fd5f00;
}

.main-nav a:hover {
  color: #0096b5;
}

.page-header {
  display: flex;
  justify-content: space-between;
}

.page-header {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4%;
  height: 80px;
  opacity: .8;
  
}


/*  ハンバーガーメニュー ボタンのCSS 
-----------------------------------*/
#navToggle {
  display: none;
  position: absolute;
  right: 30px;
  top: 30px;
  width: 32px;
  height: 25px;
  cursor: pointer;
  z-index: 2;
}
#navToggle div {
  position: relative;
}
#navToggle span {
  display: block;
  position: absolute;
  width: 100%;
  border-bottom: solid 3px #0096b5;
  -webkit-transition: .35s ease-in-out;
  -moz-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
}
#navToggle span:nth-child(1) {
  top: 0;
}
#navToggle span:nth-child(2) {
  top: 12px;
}
#navToggle span:nth-child(3) {
  top: 22px;
}

/*  ハンバーガーメニュー header や nav 内のCSS 
-----------------------------------------------*/
/*  header  */
header {
  width: 100%;
  z-index: 1;
  position: fixed;
  background-color: #fff;
}


/*  メイン画像 
--------------------------------*/
.main-top {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(../image/main-bg.jpg);
  height: 100vh; 
}




/* メインタイトル文字
---------------------------------*/
.mask{
  width: 450px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%); 
}

/* サブタイトル
-----------------------------------*/
.sab-title {
  font-size: 1.5rem;
  color: #0096b5;
  text-align: center;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);  
}

/*サブタイト文字アニメーション */
.animation {
  animation-name: fadein;
  animation-duration: 4s;
  animation-iteration-count: 1;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}




/*  タイトル文字 SVGアニメーション
---------------------------------- */
.cls-1 {
  clip-path: url(#clip-all-bace);
}

.cls-10, .cls-11, .cls-12, .cls-2, .cls-3, .cls-4, .cls-5, .cls-6, .cls-7, .cls-8, .cls-9 {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
}

.cls-10, .cls-11, .cls-12, .cls-2, .cls-3, .cls-4, .cls-5, .cls-6, .cls-7, .cls-9 {
  stroke-linejoin: round;
}

.cls-11, .cls-12, .cls-2, .cls-9 {
  stroke-width: 20px;
}



.cls-3, .cls-4, .cls-6, .cls-7 {
  stroke-width: 15px;
}



.cls-10, .cls-5, .cls-8 {
  stroke-width: 10px;
}



.cls-13 {
  fill: rgba(255,255,255,0);
}



/*  スクロールダウンアニメーション
--------------------------------------*/
.top-scroll {
  position: relative;
  height: 100%;
  text-align: center;
}

.scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.scroll {
  padding-top: 50px;
  color: #0096b5;
  font-size: 20px;
}

.scroll span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 45px;
  height: 45px;
  border: 2px solid #333;
  border-radius: 100%;
  box-sizing: border-box;
  background: #fd5f00;
  opacity: .8;
  margin: 0 auto;
}
.scroll span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  width: 16px;
  height: 16px;
  margin: -12px 0 0 -8px;
  border-left: 3px solid #333;
  border-bottom: 3px solid #333;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  box-sizing: border-box;
}
.scroll span::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  content: '';
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 0 #0096b5;
  border-radius: 100%;
  opacity: 0;
  -webkit-animation: sdb 3s infinite;
  animation: sdb 3s infinite;
  box-sizing: border-box;
}
@-webkit-keyframes sdb {
  0% {
    opacity: 0;
  }
  30% {
    opacity: .2;
  }
  60% {
    box-shadow: 0 0 0 60px #0096b5;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sdb {
  0% {
    opacity: 0;
  }
  30% {
    opacity: .2;
  }
  60% {
    box-shadow: 0 0 0 60px #0096b5;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}



/*  ABOUT 自己紹介
-----------------------------------  */
.about-container {
  background-color: #ffeee5;
}

.about-title {
  text-align: center;
  font-size: 2rem;
  color: #0096b5;
  padding-top: 50px;
  padding-bottom: 50px;
}

.about-me {
  display: flex;
  justify-content: center;
}


.myphoto {
  width: 250px;
  height: 250px;
  border-radius: 14px;
}

/* myphoto スクロールするとフェードインフェードアウト*/
.fade_off {
  opacity: 0;
  -webkit-transition: all 2s;
  -moz-transition: all 2s;
  -o-transition: all 2s;
  -ms-transition: all 2s;
  transition: all 2s;
}

.fade_on {
  opacity: 1;
}


.about-me p {
  font-size: 1.25rem;
  color: #333;
  text-align: center;
} 

.self h3 {
  padding-left: 10%;
  padding-top: 16px;
}

.self p {
  text-align: left;
  padding-left: 10%;
  padding-top: 16px;
  line-height: 1.4;
}

.skill {
  display: flex;
  justify-content: flex-end;
  padding-right: 25%;
  padding-bottom: 50px;    
}

.skill img {
  width: 50px;
  height: 50px;
  bottom: 0;
}

  


/*  SERVICE
------------------------------------  */
.service {
  background-image: url(../image/service-bg.jpg);
  background-size: cover;
  background-position: center top;
  opacity: .6;
}

/*  固定背景画像  スマホ用
--------------------------------*/
/* body::before {
  background: url(../image/service-bg.jpg) no-repeat center;
  background-size: cover;
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100vh;
  opacity: .6;
} */


.service h2 {
  font-size: 2rem;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 80px;
  color: #0096b5;
}

.service p {
  text-align: center;
}


*{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.service-wrapper{
  width: 90%;
  margin: 0 auto;
  max-width: 80rem;
 
}

.cols{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-bottom: 100px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.col{
  width: calc(25% - 2rem);
  margin: 2rem;
  cursor: pointer;
}

.container{
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
    -webkit-perspective: 1000px;
            perspective: 1000px;
}


#photo1 {
  background-color: #fff;
  background-image: url(../image/service-test1.png);
}
#photo2 {
  background-color: #fff;
  background-image: url(../image/service-test2.png);
}
#photo3 {
  background-color: #fff;
  background-image: url(../image/service-test3.png);
}

.front .fas {
  color: #333;
}



.front,
.back{
  background-size: cover;
    background-position: center;
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    text-align: center;
    min-height: 300px;
    height: auto;
    border-radius: 10px;
    color: #333;
    font-size: 1.5rem;
}

.back{
  background: #cedce7;
  background: -webkit-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: -o-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
}

.front:after{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    opacity: .6;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 10px;
}
.container:hover .front,
.container:hover .back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.inner{
    -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
            transform: translateY(-50%) translateZ(60px) scale(0.94);
    top: 50%;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 2rem;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
            perspective: inherit;
    z-index: 2;
}

.container .back{
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container .front{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container:hover .back{
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.container:hover .front{
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.front .inner p{
  font-size: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.back .inner p{
  font-size: 1.125rem;
  margin-bottom: 2rem;
  position: relative;
  color: #fff;
}


.front .inner p:after{
  content: '';
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #C6D4DF;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -.75rem;
}

.front .inner span{
  color: #333;
  font-family: 'Montserrat';
  font-weight: 300;
}

@media screen and (max-width: 1024px){
  .col{
    width: calc(33.333333% - 2rem);
  }
}

@media screen and (max-width: 768px){
  .col{
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 599px){
  .col{
    width: 70%;
    margin: 0 0 2rem 0;
  }
}











/*  WORKS  
----------------------------------------- */
.works {
  background: #ffeee5;
}

.works h2 {
  font-size: 2rem;
  text-align: center;
  color: #0096b5;
  padding-top: 80px;
}

.grid-wrapper {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 50px;
  background: #ffeee5;
}


/* 画像アニメーション */
.scrollanime {
  opacity: 0;
}
.fadeInDown {
  animation-name: fadeInDown;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}
.updown {
  transform: translateY(-100px);
}
.downup {
  transform: translateY(100px);
}
.grid-wrapper {
  overflow: hidden;
}
.slide-right {
  transform: translateX(200px);
}
.slide-left {
  transform: translateX(-200px);
}


/*  画像ホバー */
.awesome img:hover {
  background: #fff;
  opacity: 0.7;
}


/* Works画像タイトル font-awesome */
.awesome p {
  color: #333;
  font-size: 20px;
  text-align: center;
  
}

.awesome p:hover {
  color: #0096b5;
  opacity: .6;
}
 
.awesome i {
  padding-right: 10px;
}

.awesome img {
  width: 100%;
} 


.word h3 {
  text-align: center;
  padding-bottom: 80px;
  color: #0096b5;
}



/*  worksのリンクページ  */
.works-bc {
  background: #f78d3f;
  opacity: .8;
}

.works-link {
  width: 50%;
  margin: 0 auto;
  padding-top: 50px;
}

.fa-times {
  color: #fff;
  
}





/* CONTACT フォーム
---------------------------------------- */
.contact {
  background-image: url(../image/contact-bg.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: .6;
}

.contact-title h2 {
  font-size: 2rem;
  text-align: center;
  color: #0096b5;
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-title p {
  text-align: center;
}

.contact-title a {
  text-align: center;
  background: #0096b5;
  color: #fff
}

.fa-twitter-square {
  width: 16px;
  height: 16px;
}

form div{
  margin-bottom: 14px;
  text-align: center;
 
}

label {
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: block;
  color: #0096b5;
}

input[type="text"],
input[type="email"],
textarea {
  background: rgba(255, 255, 255, .8);
  border: 1px solid #fff;
  border-radius: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1rem;
  outline: none;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 480px;
}

textarea {
  width: 100%;
  max-width: 480px;
  height: 200px;
}

input[type="submit"] {
  border: none;
  cursor: pointer;
  line-height: 1;
}

.button {
  font-size: 1.25rem;
  width: 100px;
  height: 50px;
  background: #0096b5;
  color: #fff;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 5px;
}
.button:hover {
  background: #fd5f00;
}

.submit {
  margin-bottom: 0;
}



/* フッター
---------------------------------- */
 footer {
  background: #fd5f00;
  opacity: .8;
  text-align: center;
  height: 100px;
  bottom: 0;
} 

footer p {
  color: #fff;
  font-size: .75rem;
  padding-top: 8px;
} 

.footer-wrapper a {
  font-size: 2rem;
  color: #0096b5;
}

footer i {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  margin-top: 8px;
  
}

.fa-twitter {
  padding-top: 16px;
  text-align: center;
}

 

/*  トップへ戻る  スクロール  */
#goto_top {
  position: fixed;
  right: 1%;
  bottom: 1%;
  opacity: .6;
}

#goto_top a {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0096b5;
  display: block;
  padding-top: 8px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}







/*  レスポンシブ 
=========================================*/

/*  ハンバーガーメニュー、nav レスポンシブ 
-----------------------------------------*/
@media screen and (max-width: 599px) {

  header nav {
    position: absolute;
    right: 0;
    top: -300px;
    background: #fff;
    width: 100%;
    height: 250px;
    padding: 0 10px;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    text-align: left;
    z-index: 1;
  }
  header ul {
    margin: 32px;
  }
  header ul li {
    display: block;
    line-height: 3;
  }
  header ul li a {
    display: block;
  }
  header ul li::after {
    content: '';
  }
  header ul li:last-child {
    border-bottom: none;
  }

  .main-nav {
    flex-direction: column;
    text-align: center;
  }
  .main-nav li {
    margin-right: 32px;
  }

  #navToggle {
    display: block;
  }
  .openNav #navToggle span:nth-child(1){
    top: 11px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  .openNav #navToggle span:nth-child(2),
  .openNav #navToggle span:nth-child(3){
    top: 11px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .openNav nav {
    -moz-transform: translateY(351px);
    -webkit-transform: translateY(351px);
    transform: translateY(300px);
  }
}


/*  タイトル、サブタイトル レスポンシブ
-----------------------------------*/
@media screen and (max-width: 1024px) { 
  .mask {
    width: 500px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  } 

   .sab-title {
    font-size: 2rem;
  } 
}


@media screen and (max-width: 768px) {
  .mask {
    width: 450px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  } 

   .sab-title {
    font-size: 1.75rem;
  } 
}


@media screen and (max-width: 599px) {
  .mask {
    width: 300px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    
  }

  .sab-title {
    font-size: 1.125em;
  }

}

@media screen and (max-width: 320px) {
  .mask {
    width: 270px;
  }

  .sab-title {
    font-size: 1rem;
  }
}




/*  ABOUT 自己紹介 レスポンシブ 
-----------------------------------  */

@media screen and (max-width: 768px) {
  .about-title {
    text-align: center;
    font-size: 2rem;
    color: #0096b5;
    padding-top: 50px;
  }

  .myphoto {
    width: 230px;
    height: 230px;
    padding-top: 16px;
  }
   
}

@media screen and (max-width: 599px) {
  .about-container {
    background-color: #ffeee5;
  }

  .about-title {
    padding-top: 80px;
    text-align: center;
    font-size: 1.5rem;
    color: #0096b5;
    padding-top: 80px;    
  }


  .about-me {
    flex-direction: column;
    align-items: center;
  }

  .myself {
    padding-right: 10%;   
    text-align: center;
  }

  .skill {
    padding: 50px 0;
    margin-right: 10%; 
  }  
}



/*  WORKS レスポンシブ   
----------------------------------------- */

@media screen and (max-width: 1024px) {

}
@media screen and (max-width: 768px) {
  .item img {
    max-width: 100%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media screen and (max-width: 544px) {
  .grid-wrapper {
    grid-column: auto;
    grid-row: auto;
  }

  .item img {
    max-width: 100%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}


/* CONTACT フォーム レスポンシブ 
---------------------------------------- */
@media screen and (max-width: 599px) {
  input[type="text"],
  input[type="email"] {
    width: 100%;
    max-width: 300px;
  }
  textarea {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
}