/*
Theme Name: nakatoshicraft
Theme URL: https://nakatoshicraft.com
Description: Web制作工房 nakatoshicraft なかとしクラフト のご紹介ページです。
*/

@charset "utf-8";

/* 全体のスタイル */
* {
  box-sizing: border-box;
}

/* フォント設定 */
:root {
  --f1: 2.68em;  /* 43px */
  --f2: 2.25em;  /* 36px */
  --f3: 1.5em;   /* 24px */
  --f4: 1em;     /* 16px */
  --f5: 0.875em; /* 14px */
}
h1 {
  font-size: var(--f1);
}
h2 {
  font-size: var(--f2);
}
h3 {
  font-size: var(--f3);
}
h4 {
  font-size: var(--f4);
}
h5 {
  font-size: var(--f5);
}

body {
  font-family: Helvetica, '游ゴシック', 'Yu Gothic', YuGothic, HiraKakuProN-W3, 'メイリオ', Meiryo, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  background-color: #FFFFFF;
  -webkit-text-size-adjust: 100%;
}

h2 {
  font-weight: 100;
}

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

a:hover {
  opacity: 0.7;
}

/* リンクのアンダーライン */
.ul {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.ul::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #333;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s;
}
.ul:hover::after {
  transform-origin: left top;
  transform: scale(1, 1);
}
/* リンクのアンダーラインここまで */

/* ページトップへ戻るボタン */

#pagetop {
}

#pagetop{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 10px;
  bottom: 20px;
  background: #CCCCCC;
  opacity: 0.7;
  border-radius: 50%;
}
#pagetop a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
  text-align: center;
}
#pagetop a::before{
  font-family: "Font Awesome 5 Free";
  content: '\f106';
  font-weight: 900;
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: 1px;
  bottom: 10px;
  right: 0;
  left: 0;
  margin: auto;
}

/* ページトップへ戻るボタンここまで */


.fade1 {
    -webkit-animation: fadeIn 1.5s ease 0s 1 normal;
    animation: fadeIn 1.5s ease 0s 1 normal;
  }
  @keyframes fadeIn {
    0% {
      opacity: 0
    }
    100% {
      opacity: 1
    }
  }
  @-webkit-keyframes fadeIn {
    0% {
      opacity: 0
    }
    100% {
      opacity: 1
    }
  }




/* ふわっと現れる */
.fade {
  opacity : 0;
  transform: translateY(20px);
  transition: all 1s;
}
/* ふわっと現れるここまで */

/* img {
  max-width: 100vw;
  height: auto;
  vertical-align: bottom;
} */

ul {
  padding: 0;
  list-style: none;
}

section , article {
  max-width: 1920px;
  margin: 0 auto;
}

@media screen and (min-width:768px) {
   body {
    font-size: 16px;
     margin: 0 auto;
  }

   .inner-area , .about-area, .sv-area , #info {
     max-width: 960px;
     margin: 0 auto;
     background-color: #FFFFFF;
   }
  }

@media screen and (min-width:980px) {
  body {
    font-size: 16px;
     margin-right: auto;
     margin-left : auto;
  }
}

@media screen and (min-width:768px) and (max-width:1180px) {
  body {
    margin-right: auto;
    margin-left : auto;}
}

.top {
  max-width: 1920px;
  /* margin: auto; */
}

.sp-only {
    display: block;
  }
.pc-only {
    display: none;
  }

@media screen and (min-width:768)  {
  .sp-only {
     display: none;
    }
  .pc-only {
    display: block;
  }
}

/* #about nav li.about a,
#works nav li.works a,
#contact nav li.contact a {
    opacity: 0.3;
} */

/* ここまで全体のスタイル */



.inner {
  padding: 0 15px;
  margin:0 auto;
}

.header-logo {
  width: 250px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  width: 100%;
    height: 100%;
    object-fit: cover;

}


.header-txt {
  margin-top: 60px;
  margin-bottom: 70px;
  text-align: center;
  line-height: 1.2em;
}

#nav {
  margin-top: 30px;
}

@media screen and (min-width:768px) {

  .inner {
  padding: 0;
 }
  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* margin-top: 120px; */
    /* margin-bottom: 200px; */
  }
  .header-logo-area {
    flex: 1;
  }
  .header-txt-area {
    flex: 1;
  }

  .header-logo {
  width: 200px;
  margin-left: 100px;
  }

  .header-txt {
    font-size: 0.9em;
    width: 400px;
    text-align: left;
    margin-left: 50px;
    line-height: 1.7em;
  }

  #nav {
  margin: 60px 0;
}
.nav-area {
  width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #EEEEEE;
}
}

.gnav-menu {
  width: 400px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.2;
}
.gnav-menu {
  display:-ms-grid;
  display: grid;
  -ms-grid-columns: 100px 100px 100px 100px ;
  grid-template-columns: 100px 100px 100px 100px ;
  -ms-grid-rows: 50px 50px;
  grid-template-rows: 50px;
  grid-gap: 0px;
}

@media screen and (max-width: 400px) {
  .gnav-menu{
    width: 300px;
    -ms-grid-columns: 145px 145px ;
    grid-template-columns: 145px 145px;
    -ms-grid-rows: 45px 45px;
    grid-template-rows: 45px 45px;
    grid-gap: 6px;
  }
  .gnav-item {
  border:2px #333 solid;
  background-color: #EEEEEE;
}
}

.gnav-item {
    position: relative
  }
.gnav-item  a {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) }



 #service {
   text-align: center;
   margin-top: 60px;
   line-height: 1.2;
}


 .sv-text p {
   text-align: left;
 }

 .filelogo {
   margin-top: 40px;
   margin-bottom: 40px;
   /* width: 80%;
   height: auto; */
 }

 .addon h3{
   margin-top: 50px;
   margin-bottom: 20px;
   text-align: center;

 }

 .sptext {
  font-weight: 100;
  line-height: 1.8rem;
 }
 .sptext span {
   text-align: center;
 }

 .pcimage  {
    height: 200px;
    margin-bottom: 0px;
  }

  .pc-sv-text {
    width:400px;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-top: 20px;
    line-height: 1.8rem;
  }

  .pr-sv-text {
    width:350px;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    line-height: 1.8rem;
  }

 @media screen and (min-width:768px) {
  .service-content {
    margin-top: 50px;
    display: flex;
    flex-direction: row;

  }
  .web-area , .print-area {
    flex: 1;
  }
  .pcimage  {
    height: 170px;
    margin-bottom: 0px;
  }
  .filelogo {
    margin-top: 0;
    margin-bottom: 20px;
    height: 150px;

   width: auto;
  }
  .sv-text {
    width:400px;
    margin-left: auto;
  }
  .addon {
   text-align: center;
  }
  .pc-sv-text {
    width:400px;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-top: 20px;
  }
  .pr-sv-text {
    width:350px;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .sp-sv-text {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    width: 600px;
  }
 }


 #works h2 {
   text-align: center;
   margin-top: 80px;
   margin-bottom: 30px;
 }
 .works-area {
   margin: 60px 0;
   text-align: center;
 }

 .works-item {
   /* height: 250px; */
   margin-top: 30px;
 }

 #works img {
   width: 100%;
   height: auto;
   margin-bottom: 6px;
   border: 1px solid #333;
 }

 @media screen and (min-width:768px) {
   .works-content {
    display: flex;
    flex-direction: row;
   }
   .works-item {
     flex: 1;
     margin-left: 8px;
     margin-right: 8px;
   }
 }

 .insta img{
   display: block;
   margin-left: auto;
   margin-right: auto;
   width:50px;
   height: auto;
 }

 .insta {
   text-align: center;
 }

 #footer {
   margin: 60px 0;
 }
 .id {
   text-align: center;
   margin-bottom: 20px;
   margin-top: 30px;
}
 }
