body {
  font-family: "Syncopate","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #1e1e1e;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #e8e611;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 63px;
}

.mv {
  position: relative;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section:nth-of-type(2n) {
  background-color: #f7f7f7;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 右下の画像 */
.image-right {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: scaleX(-1) translateY(50%); /* 初期状態で反転＆下端基準 */
  transform-origin: center bottom;
  z-index: 1;
}

/* 左下の画像 */
.image-left {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateY(50%); /* 初期状態で下端基準 */
  transform-origin: center bottom;
  z-index: 1;
}

/* 画像のサイズ調整 */
.image-right, .image-left {
  width: 180px;
  height: auto;
}


/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #1e1e1e;
}

/* フォント追記 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

h3, h4, h5, h6, p, .profile-body li {
    font-family: "Noto Sans JP", sans-serif;
}
/*  */

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

h2.show {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  background-color: #1e1e1e;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
  }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #fff;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #fff;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #e8e611;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
  position: relative;
}

.mv-container img {
  width: 100%;
  height: auto;
  z-index: 2;
}

/* アイコンを配置するコンテナ */
.icon-container {
  position: absolute;
  bottom: 5%;
  left: 31%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* アイコン同士の間隔 */
}

/* SNSアイコン */
.icon-container img {
  width: 80px;
  height: auto; /* アスペクト比を維持 */
  /* transition: filter 0.1s ease-in-out; */
}

/* 共通初期状態 */
.icon-wrapper img {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* アイコン（右にスライド） */
.icon {
  transform: translateX(20px);
}

.icon-wrapper:hover .icon {
  opacity: 1;
  transform: translateX(70px);
  pointer-events: auto;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -40px;
}

.works-item {
  position: relative;
  width: 30%;
  margin-bottom: 40px;
  color: #1e1e1e;
  
}

.works-img {
  filter: grayscale(100%) brightness(70%);
  overflow: hidden;
  transition: all 0.1s ease;
}

.works-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/works/noise.png');
  z-index: 1;
  pointer-events: none;
}

.works-img:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}

.works-img:hover::before {
  opacity: 0;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-item:nth-of-type(3n-1) {
  margin-top: 40px; /* 真ん中の要素を下にずらす */
}

.works-img img {
  border: 1px solid #e6e6e6;
  width: 100%;
  display: block;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 50px;
  height: auto;
  margin-right: 35px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.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;
  margin: 0 10px;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body li {
  list-style: none;
  padding-left: 0;
}

.profile-body li::before {
  content: '▶';
  margin-right: 0.5em;
}

.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;
}

.contact-list a{
  margin: 0 10px;
  transition: filter 0.1s ease-in-out;
}

.contact-list img:hover {
  filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(600%) hue-rotate(-10deg);
}


/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color:  #e8e611;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #1e1e1e;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #1e1e1e;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：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 img {
  width: 100%;
  height: auto;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #1e1e1e;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/*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: 65px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .image-right, .image-left {
    width: 120px;
    height: auto;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: auto;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    top: 75%;
    font-size: 14px;
    line-height: 1.7;
  }

  .icon-container {
    position: absolute;
    bottom:45px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
  }

  .icon-container img {
    width: 40px;
    height: auto; /* アスペクト比を維持 */
  }

  .icon-container img .insta{
    align-items: flex;
  }
  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    font-size: 10px;
    margin-top: 3px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
    filter: none; /* 初期状態カラーに */
    opacity: 1;
  }

  .works-item:nth-of-type(3n-1) {
    margin-top: 0px; /* 真ん中の要素を下にずらす解除 */
  }

   /* 2個並びの右側アイテム（2, 4, 6…）を少し下にずらす */
   .works-item:nth-of-type(2n) {
    margin-top: 20px;
  }

  .works-img {
    filter: none;
  }

  .works-img::before {
    display: none;
  }

    /* 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: block;
  }
  .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;
  }
}
