body {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  letter-spacing: .05em;
  color: #786c73;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #e684b5;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.scroll-up {
  opacity: 0; 
  visibility: hidden;
  transform: translateY(50px);
  transition: all 1s;
}
.scroll-up.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(odd) {
  background-color: #f7f7f7;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #786c73;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #e2d1d5;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #786c73;
}

.menu {
  display: flex;
  list-style: none;
}

.gnav-item a {
  position: relative;
  font-size: 17px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #786c73;
}

.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #786c73;
}

.gnav-item a:hover:after {
  width: 100%;
} 

#global-navi {
  position: fixed;
  top: 0;
  right: 0px;
  width: 100%;
}
#wrapper nav ul li{
display:inline-block;
font-size: 16px;
padding:  0px 20px 0px 28px;
}
#wrapper nav ul li a{
color: #786c73;

}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75vh;
  text-align: center;
}

.mv-container{
  width: 70%;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr );
  grid-template-rows: auto;
  gap: 10px;
}

.works-item {
  width: 100%;
  color: #786c73;
  border: 1px solid #e2d1d5;
  border-radius: 5px;
}

.works-item:hover {
  /* opacity: .9; */
  box-shadow: 6px 6px 1px 0.5px rgba(67, 2, 22, 0.235);
  transform: translateY(-0.2em);

}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img{
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #e2d1d5;
}

.works-img img {
  width: 100%;
  height: auto;
  /* padding: 20px; */
  max-height: 100%;
  background-color: #e2d1d5;
  object-fit: contain;
  display: block;
  
}

/* .works-img :hover{
  box-shadow: 6px 6px 1px 0.5px rgba(67, 2, 22, 0.235);
  transform: translateY(-0.2em);
} */

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin: 3px auto 0 5px;
}

.works-info {
  font-size: 10px;
  margin: 3px auto 5px 5px;

}

.box-fadein img {
  opacity: 0;
  -webkit-transition: opacity 3s;
  transition: opacity 3s;
}
.box-fadein.lazyloaded img.lazyloaded {
  opacity: 1;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 40%;
  margin-bottom: 50px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
  border-right: 1px #e2d1d5;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 20%;
  margin-right: 30px;
  border-radius: 50%;
}
.profile-img img {
  border-radius: 50%;
}
.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top-button{
  display: flex;
  justify-content: end;
  padding: 16px;
}

.page-top-button img :hover{
  box-shadow: 3px 3px 0.5px 0.25px rgba(67, 2, 22, 0.235);
  transform: translateY(-0.1875em);
  border-radius:50px;
}

.page-top .material-icons-outlined {
  cursor: pointer;
  vertical-align: bottom;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 10px;
  background-color: #786c73;
}

.copyright {
  font-size: 12px;
  text-align: center;
  color: #e2d1d5;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #786c73;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin:15px;
}

.home-link {
  text-align: center;
  margin-top: 150px;
}

.home-link img:hover{
  box-shadow: 3px 3px 0.5px 0.25px rgba(67, 2, 22, 0.235);
  transform: translateY(-0.1875em);
  border-radius: 6px;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 17px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 15px;
  }

  .gnav-item a:after {
    display: none;
  }
  /* ここから */
  #gnav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    padding-top: 50px;
    background:rgb(255,255,255,60%);
    font-size: 16px;
    box-sizing: border-box;
    z-index: 2
}
.gnav-item {
    display:block;
    padding: 20px 28px
}
  
.gnav-item a {
    text-decoration: none;
    color: #ddd
}
  
#wrapper .btn-gnavi {
    position: fixed;
    top: 12px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 3;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
  
#wrapper .btn-gnavi span {
    position: absolute;
    width: 30px;
    height: 1.25px;
    background: #786c73;
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms
}
  
#wrapper .btn-gnavi span:nth-child(1) {
    top: 0
}
  
#wrapper .btn-gnavi span:nth-child(2) {
    top: 10px
}
  
#wrapper .btn-gnavi span:nth-child(3) {
    top: 20px
}
  
#wrapper .btn-gnavi.open {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg)
}
  
#wrapper .btn-gnavi.open span {
    background: #786c73
}
  
#wrapper .btn-gnavi.open span {
    width: 24px;
}
#wrapper .contents section p {
    position: absolute;
    top: 50%;
    width: 30%;
    line-height: 1.4;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 6px #666
}
.menu{
  flex-direction: column;
}
#wrapper .contents section:nth-child(odd) p {
    left: 10%
}
  
#wrapper .contents section:nth-child(even) p {
    right: 10%
}
/* ここまで */

  /*  メインビジュアル */
  .mv {
    height: 50vh;
  }

  .mv img{
    width:100% ;
  }

  .mv-container {
    width: 90%;
    padding: 0 ;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-list {
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 20px;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: flex;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}
