@charset "utf-8";


*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul, li {
  list-style: none;
  text-decoration: none;
}

a {
  color: inherit;
  text-decoration: none;
}
/* フッターが浮いてしまうため設定 */
html, body {
  margin: 0;     
  display: flex; 
  flex-direction: column; 
  overflow: auto  ;
}
/* 全体のスタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1;
  background-color: #ffffff;
  height: 100%;
}

img {
  max-width: 100%;
} 


.toggle-menu-button {
  display: none; /* 初期状態では非表示 */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.toggle-menu-button .bar {
  width: 30px;
  height: 4px;
  background-color: #000;
  border-radius: 2px;
}

/* 横幅と左右の余白 */
.w-container {
  width: min(92%, 1166px);
  margin: auto;
  position: relative;
}
.titles{
  padding: 80px 0;
  font-size: 30px;

}
/* ヘッダー */
header{
  background-color: #ffffff;
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  z-index: 9999;
}
.header-container{
  width: min(92%, 1166px);  /* w-container と同じ幅 */
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-container img {
  max-height: 60px;
  width: auto;
  object-fit: contain; 
}
.header-container ul {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.header-contact-btn {
  background-color: black;
  color: #fff;
  min-width: 100px;
  width: 50%;  /* 必要に応じて調整 */
  height: 30px;  /* ボタンの高さを指定 */
  border-radius: 24px;  /* 丸みをつける */
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;  /* 文字サイズ調整 */
  display: block;  /* aタグ全体をブロック要素にする */
  text-align: center;  /* 文字を中央揃え */
  margin: 0 auto;  /* 上下中央揃え */
  line-height: 30px;  /* 縦方向に中央揃え */
}

.header-contact-btn a {
  display: block;  /* aタグをブロック要素にする */
  text-decoration: none;  /* リンクの下線を消す */
  height: 100%;  /* 高さを親要素に合わせる */
  width: 100%;  /* 幅を親要素に合わせる */
  line-height: 30px;  /* 縦方向に中央揃え */
  color: white;  /* 文字色 */
  text-align: center;  /* 文字を中央揃え */
}
/*  ------------------------------------------------------------------------------------------------*/
.works {
  padding-top: 0px; 
  box-sizing: border-box; 
  overflow: auto; 
  z-index: 0;
}


.works-area{
  display: flex;
  flex-direction: column;
  padding-top: 100px;
}
.works-container {
  background-color: #f9f9f9;
  padding: 10px;
  margin-top: 100px;
}

.sub-titles {
  text-align: center;
}
.sub-titles h3 {
  font-size: 35px;
  font-family: 'Noto Sans JP';
  display: inline-block; /* 文字の幅だけに背景を適用 */
  font-weight: bold;
  position: relative;
  padding-bottom: 10px; /* 下線とテキストの間隔 */
  background: linear-gradient(to right, #bebebe 0%, #727272 100%);
  background-repeat: no-repeat;
  background-position: center 70%; /* 下線を文字の中央付近に */
  background-size: 100% 25%; /* 下線の幅と高さ */
}
.web-sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; /* グリッド間の余白を確保 */
}

.works-container-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

}


.work {
  display: flex;
  flex-direction: column; /* 縦方向に並べる */
  justify-content: flex-start; /* アイテムを上から順に並べる */
  align-items: center; /* 水平方向に中央揃え */
  width: auto;
  margin-top: 40px;
  height: auto;
  padding: 10px;
}
.work figure {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 250px; /* 適切な高さを設定 */
  max-width: 300px;
}
.work figure img {
  max-width: 100%;
  max-height: 100%;
  margin: 10px auto;
  object-fit: cover;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}
.works-container-inner figure {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 400px; /* 適切な高さを設定 */
  max-width: 300px;
}


.work-title {
  font-size: 1.2rem; /* タイトルのフォントサイズ */
  font-weight: bold; /* タイトルを太字 */
  margin-top: 10px; /* 上の余白を20pxに */
  margin-bottom: 0px; /* 下の余白を10pxに */
  color: #333; /* タイトルの色 */
  line-height: 1.4; /* 行間を1.4倍に設定 */
  padding: 0px;
  text-align: center;
}
.work-type {
  font-size: 1.2rem;
  font-weight: normal;
  color: #777;
  margin: 10;
  padding: 0px;
}

.banners-mini {
  display: grid;
  grid-template-columns: repeat(2,1fr);
}
.banners-mini .work figure img {
  width: 400px;
  object-fit: contain; /* アスペクト比を維持しつつ全体を収める */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}
/*  ------------------------------------------------------------------------------------------------*/

footer {
  width: 100%;
  height: 50px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: relative; */
  z-index: 20;
}

.footer-container{
  display: flex;
  justify-content: space-between;
  color: #000000;
}

.footer-container ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}




/* モバイル（768px以下）の場合 */
@media screen and (max-width: 768px) {
  .header-container ul {
    display: none; /* 最初はメニューを非表示 */
    flex-direction: row;
    gap: 15px;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0; /* 初期状態で透明 */
    color: #000000; /* 文字色は白 */
    transition: opacity 1s ease; /* フェードイン・フェードアウトのアニメーション */
    font-size: 14px;
    font-family: 'Noto Sans JP';
  }

  .header-container.active ul {
    display: flex; /* activeクラスが追加された場合にメニューを表示 */
    opacity: 1; /* メニュー表示時に不透明 */


  }

  .toggle-menu-button {
    display: flex;
    flex-direction: column; /* バーを縦に並べる */
    justify-content: space-between; /* バーの間隔を均等に */
    width: 30px; /* ボタンの横幅を調整 */
    height: 22px; /* ボタンの高さを調整 */
  }

  .toggle-menu-button .bar {
    width: 30px; /* バーの横幅 */
    height: 4px; /* バーの高さ */
    background-color: #000; /* バーの色 */
    border-radius: 2px; /* バーの角を丸くする */
  }
  /* contact ボタンのスタイル */
  .header-contact-btn {
    display: flex;
    background-color: transparent;
    min-width: auto;
    text-align: center;  /* 文字を中央揃え */
    margin: 0 auto;  /* 上下中央揃え */
    line-height: 30px;  /* 縦方向に中央揃え */
  }
  .header-contact-btn a {
    color: #000000; /* 文字色は白 */
    font-family: 'Noto Sans JP';
    padding: 0;
    margin: 0;
  }


  /* ワークス */
  .works{
    margin-top: 0px;
  }
  .work-title{
    font-size: 12px;
    text-align: center;
  }
  .work-type {
    font-size: 10px;
  }
  .titles, .sub-titles{
    padding-top: 40px;
    font-size: 20px;
  }
  .work-title{
    font-size: 18px;
  }
  .work-type{
    font-size: 16px;
  }

  .works-container-inner {
    grid-template-columns: repeat(2,1fr);
  }
  /* フッター */
  footer {
    flex-direction: column; /* フッターアイテムを縦並び */
    text-align: center;
    padding: 10px 0;
  }

  .footer-container {
    display: flex;
    flex-direction: column; /* アイテムを縦並びに */
    align-items: center;
    gap: 15px;
    font-size: 12px; /* メニューアイテムのフォントサイズ調整 */
    margin-top: auto;
  }

  .footer-container ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .footer-container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-container p {
    margin-top: 10px;
  }
}