*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.container {
  width: 1327px;
  height: auto;
  margin: auto;
}
/* ----------------------
ナビ
-------------------------*/
header {
  display: flex;
  margin: 30px auto;
}
h1 {
  font-size: 38px;
  margin: auto;
  padding-top: 16px;
  text-align: center;
}
.header-h1,h1{
  width: 260px;
  height: 90px;
  border: 1px solid rgb(206, 204, 204);
  box-sizing: border-box;
  margin: auto;
}
nav {
  width: 700px; 
  margin: 30px 30px auto 50px ;
  display: flex;
}
.nav-link {
  width: 500px;
  display: flex;
  list-style: none;
  text-decoration: none;
  font-size: 23px;
}
.nav-link a{
  text-decoration: none;
  color: black;
  margin: 20px auto;
}
nav a:hover{
  text-decoration: underline;
  color: darkgrey;
}
.nav-link-a-1 {
  padding-left: 40px;
}
.nav-link-a-2 {
  padding-right: 30px;
}

.mainImage img{
  width: 1327px;
  height: auto;
  text-align: center;
  margin: auto;
}

/* -------------------------------------
  about
---------------------------------*/
#about {
  width: 1327px;
  margin: 10px auto 10px auto;
  text-align: center;
  font-size: 30px;
}
#works {
  width: 1327px;
  margin: 10px auto 10px auto;
  text-align: center;
  font-size: 30px;
}
.about_flex {  
  width: 1327px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 300px;
}
.circle_img {
  width: 150px;
  height: 150px;
  margin: 30px;
  border-radius: 50%;
}
h3 {
  margin: 20px auto auto 20px;
}
.about_ul,li {
  margin: 4px auto auto 8px;
  padding-left: 1px;
  list-style: none;
}

/* --------------------------
works 
-----------------------------*/
.works_flex  {
  width: 1327px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.works_flex > figure, figcaption{
  width: 250px;
  margin: 20px;
  text-align: center;
}
.coding img{
  width: 230px;
  height: 170px;
  margin: 4px auto;
  border: 1px solid rgb(199, 197, 197);
}
.coding {
  transition: transform 0.3s ease; /* ホバー時のアニメーション効果を設定 */
}
.coding:hover {
  transform: translateY(-7px); /* ホバー時に画像を上方向に浮き上がらせる */
}

.figcap1,.figcap2,.figcap3{
  width: 230px;
  font-size: 14px;
  margin: auto;
  text-align: center;
}

/* ---------------------------
footer
------------------------------ */
footer {
  font-size: 12px;
  text-align: center;
  margin: 25px auto;
}

/* -----------------------------
ホームへ（リンク）
------------------------ */
.home-link, a{
  text-align: center;
  color: #1ca9e3;
}



/* --------------------------------
----------メディアクエリ-----------
----------------------------------- */
@media screen and (max-width: 767px) {
  .container {
    width: 100%;
    height: auto;
    margin: auto;
  }
  /* ナビ */
  header {
    display: block;
    text-align: center;
    margin: 30px auto;
  }

  h1 {
    font-size: 25px;
    padding-top: 18px;
  }

  .header-h1, h1 {
    width: 100%;
    height: auto;
    border: 1px solid rgb(206, 204, 204);
    border: none;
    box-sizing: border-box;
    margin: 10px auto;
    padding: 15px auto;
  }

  nav {
    width: 100%;
    margin: 20px auto;
  }

  .nav-link {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
  }

  .nav-link a {
    display: inline-block;
    text-decoration: none;
    color: black;
    margin: 0 10px;
  }

  .mainImage img {
    width: 100%;
    height: auto;
  }

  /* about */
  #about {
    width: 100%;
    margin: 20px auto;
    font-size: 25px;
  }
  #works {
    width: 100%;
    margin: 20px auto;
    font-size: 26px;
  }
  .about_flex {
    width: 90%;
    height: auto;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .circle_img {
    width: 150px;
    height: 150px;
    margin: 30px;
    border-radius: 50%;
  }
  h3 {
    margin: 20px 0;
  }
  .about_ul,li {
    font-size: 14px;
    margin: 4px 0;
    padding-left: 1px;
  }

  /*---------------------
  works
   ---------------------- */
  .works_flex {
    width: 90%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  .works_flex > figure,figcaption {
    width: 100%;
    /* height:auto; */
    text-align: center;
  }
  .coring img {
    width: 90%;
    height: auto;
    margin: 4px auto;
    border: 1px solid rgb(199, 197, 197);
  }
  .figcap1,
  .figcap2,
  .figcap3 {
    font-size: 14px;
    margin: auto;
    text-align: center;
  }

  /* footer */
  footer {
    text-align: center;
    margin: 25px auto;
  }

  /* ホームへ（リンク） */
  .home-link, a {
    text-align: center;
    color: #1ca9e3
  }
}
