body {
  font-family: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #a1afa0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.works-list {
  display: grid;
  grid-template-columns: 300px 300px;
  /* 2列固定の幅 */
  gap: 20px;
  justify-content: center;
  /* グリッド全体を中央寄せ */
}

.works-img.outdoor {
  padding: 25px 0;
  /* アウトドアだけ余白増やす */
}


.works-item {
  text-align: center;
}


.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0 90px 0;
}

.section:nth-of-type(odd) {
  background-color: #f2fcf6;
}

.container {
  max-width: 944px;
  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: #a1afa0;
}

.lead img {
  vertical-align: middle;
  /* 文字の中央に揃える */
  width: 20px;
  /* アイコンのサイズ調整 */
  height: 20px;
  margin: 0 5px;
  /* 左右に余白を追加 */
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  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 {
  vertical-align: middle;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #a1afa0;
}

.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: #a1afa0;
}

.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: #7dd07b;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/

.mv {
  width: 100%;
  background-image: url('../img/fotter-hana.jpg');
  background-repeat: repeat-x;
  background-size: 500px;
  background-position: top center;
  padding-top: 20px;
  padding-bottom: 50px;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}


.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
}

.mv-container {
  position: relative;
  padding: 0 20px;
}

.mv-container img {
  width: 100%;
  height: auto;
  padding: 65px 0 0 0;
}

/* works1装飾 */
.mv-works {
  width: 100%;
  height: 85px;
  background-image: url('../img/fotter-hana.jpg');
  background-repeat: repeat-x;
  background-size: 500px;
  background-position: top center;
  padding-top: 20px;
  padding-bottom: 50px;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}




/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.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: 60px;
  height: auto;
  margin-right: 20px;
}

.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;
}

.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 {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  background-color: #7dd07b;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/

.thankyou_phone {
  display: none;
}


.footer {
  width: 100%;
  background-image: url('../img/fotter-hana.jpg');
  background-repeat: repeat-x;
  background-size: 500px;
  background-position: top center;
  padding-top: 20px;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}

/* コピーライト部分 */
.copyright {
  font-size: 15px;
  color: #797979;
  margin: 70px 0 0 0;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
  color: #a1afa0;
  font-size: 30px;
}

.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: #008d2e;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/* スマホ用ナビゲーション非表示 */
#menu-sp {
  display: none;
}

#nav-sp nav a #nav-sp .menu #close {
  display: none;
}

#nav-sp {
  display: none;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  .gnav {
    display: none;
  }

  #menu-sp {
    display: block;
    background-color: transparent;
    float: right;
    padding: 0;
    border: none;
  }


  /* ナビゲーションのリンクの装飾設定 */
  #nav-sp nav a {
    display: block;
    color: #ffffff;
  }


  #nav-sp .menu {
    text-decoration: none;
    margin: 30px 20px 0 20px;
    height: 44px;
    font-size: 25px;
    background-image: url("images/arrow.png");
    background-repeat: no-repeat;
    background-position: right top;
  }


  /* スマホ用ナビゲーションの表示切替*/
  /* 初期状態、レイアウトと非表示設定 */
  #nav-sp {
    background-color: #008d2d;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
  }

  /* ×ボタン */
  #close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
  }

  .mv {
    background-image: none;
  }


  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: 70px 0 px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 8px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }



  /*  メインビジュアル */

  .mv {
    content: url('../img/main_photo_mobile.jpg');
    /* スマホ用のメイン画像に差し替え */
  }

  .mv {
    height: 100%;
    padding: 30px 0 5px 0;
  }

  .mv-container {
    padding: 0 20px;
    display: none;
  }

  .mv-title {
    font-size: 30px;
  }

  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    top: 75%;
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */

  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }




  /* Assignmentのスマホレイアウト */
  .works-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .works-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 70%;
  }

  .works-item:nth-child(even) {
    flex-direction: column;
  }

  .works-img {
    width: 100%;
    max-width: 300px;
    /* ← 追加：最大サイズ指定 */
    margin-bottom: 10px;
    /* ← 追加：テキストとの間隔 */
  }

  .works-name,
  .works-info {
    width: 100%;
  }





  .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: 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;
  }

  /* フッター */

  /* thankyou画像 */
  .thankyou_pc {
    display: none;
  }

  .thankyou_phone {
    display: block;
  }

  .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;
  }
}