body {
  font-family: "Montserrat", "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #333;
}

a {
  transition: opacity 0.3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.font_color {
  color: #1ca9e3;
  font-weight: bold;
}

/*--------------------------------
 ハンバーガーメニュー（共通）
---------------------------------*/
.header .container {
  position: relative; /* ハンバーガーを右上に配置するため */
}

.hamburger {
  display: none; /* PCでは非表示 */
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 28px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 5px;
  border-radius: 3px;
  background-color: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* ハンバーガー開閉時のアニメーション（×印に変形） */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* スマホ用で開いた時に表示するクラス */
.gnav.is-open {
  display: block;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.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: 40px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: 0.05em;
}

.header-logo a {
  color: #333;
}

.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: 20px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: 0.3s;
  letter-spacing: 0.05em;
  color: #333;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: 0.3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

.techkeep-logo {
  width: 170px;
  height: auto;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.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;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.5873%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: 0.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;
}
*/

/*--------------------------------
 product を　Skillに書き換え
---------------------------------*/
#skill {
  width: 75%;
  margin: 20px auto 10% auto;
  padding: 10px 40px 0px 40px;
}

#skill > div {
  margin-top: 40px;
  display: flex;
}

#skill-left {
  width: 50%;
}

#skill-right {
  width: 50%;

  margin-top: 80px;
}

#skill-left > div {
  position: relative;
  height: 480px;
  margin-right: 20px;
}
#skill-right > div {
  position: relative;
  height: 480px;
  margin-left: 20px;
}

.skill-photo {
  width: 50%;
  margin: 0 40px 0 40px;
}

.skill-explain {
  background-color: #ffffff;
  position: absolute;
  left: 0;
  bottom: 50px;
  margin: 0 40px 0 40px;
  padding: 20px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.skill-explain > h3 {
  margin: 5px 0 5px 0;
}

.skill-explain > p {
  margin: 0;
}

.skill-link {
  display: inline-block;
  margin-top: 10px;
  color: #1ca9e3;
  font-weight: bold;
}

/*--------------------------------
 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-name {
  font-size: 30px;
  font-weight: bold;
  
}

.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 {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 30px;
  text-align: center;
  color: white;
}

/*--------------------------------
 下層：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: #333;
}

.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: 70px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .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;
  }

  @media screen and (max-width: 767px) {
    /* 既存の指定はそのまま + 追記 */

    /* ヘッダー */
    .header .container {
      padding: 15px 20px;
      /* 右上のハンバーガーのぶん少し余白を確保しておくと安心 */
      padding-right: 60px;
    }

    /* PCメニュー（gnav）はスマホではデフォルト非表示 */
    .gnav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: #fff;
      padding: 20px 0;
      box-shadow: 0 5px 10px -6px rgba(0, 0, 0, 0.15);
    }

    .gnav-list {
      flex-direction: column;
      align-items: center;
    }

    .gnav-item:not(:last-child) {
      margin-right: 0;
      margin-bottom: 10px;
    }

    .gnav-item a {
      font-size: 14px;
    }

    /* スマホのときだけハンバーガーを表示 */
    .hamburger {
      display: block;
    }
  }

  @media screen and (max-width: 767px) {
    /* Skill セクション全体を縦方向に */
    #skill > div {
      display: block;
    }

    /* 左右コンテナを100%幅に */
    #skill-left,
    #skill-right {
      width: 100%;
      margin-top: 0;
    }

    /* 各ボックスの高さなど調整 */
    #skill-left > div,
    #skill-right > div {
      height: auto; /* 固定高さを解除 */
      margin: 40px 0; /* 縦並びの間隔を調整 */
    }

    /* 画像の幅を100%寄りに */
    .skill-photo {
      width: 70%; /* ← お好みで 60〜80% に */
      margin: 0 auto;
      display: block;
    }

    /* 説明ボックスの位置を調整（絶対配置を解除） */
    .skill-explain {
      position: static; /* ← 重要！縦並びになる */
      margin: 10px 20px 40px 20px;
      box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    }
  }

  /*  メインビジュアル */
  .mv {
    height: 40vh;
  }

  .mv-container {
    padding: 0 20px;
  }

  .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;
  }

  .works-list {
    justify-content: space-between;
  }

  .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;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: 0.8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}

/* -------------------------------------- */
/* CONTACTフォーム セクション全体 */
/* -------------------------------------- */
#contact-form-section {
  max-width: 800px; /* フォームの最大幅を設定 */
  margin: 80px auto; /* 上下に余白を設定し、中央寄せ */
  padding: 0 20px; /* 左右にパディング */
  text-align: center;
}

#contact-form-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.section-description {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* -------------------------------------- */
/* フォームの共通スタイル */
/* -------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 各フォームグループ間のスペース */
  text-align: left;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #f9f9f9;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

.required {
  color: #e74c3c; /* 赤色で必須を強調 */
  font-size: 12px;
  font-weight: normal;
}

/* 入力フィールドとテキストエリアの共通スタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
  width: 100%; /* 幅いっぱいにする */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff; /* フォーカス時の色 */
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* テキストエリアの調整 */
.contact-form textarea {
  resize: vertical; /* 縦方向のみリサイズ可能にする */
  min-height: 150px;
}

/* 送信ボタン */
.submit-button {
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  margin-top: 10px;
  align-self: center; /* ボタンを中央に配置 */
  width: 200px; /* ボタンの幅を固定 */
}

.submit-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* メッセージ表示スタイル */
#form-message {
  text-align: center;
  margin-bottom: 20px;
}

.success-message {
  color: #28a745;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 5px;
}

.error-message {
  color: #e74c3c;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 5px;
}
