@charset "UTF-8";
/* CSS Document */

body{
	padding-top: 74px;
}
.section-top__image {
  margin-top: 90px;
  height: 30vw;
  width: auto;
  object-fit: cover;
}
@media (max-width: 600px) {
  body{
	padding-top: 104px;
}
}
/* works */
/* トップセクション（背景画像を固定） */
#top {
  position: fixed; /* 画面に固定 */
  top: 0;
  left: 0;
  width: 100%; /* 全幅に対応 */
  z-index: -1; /* 他の要素の背面に配置 */
  background-color: #FFF;
  padding-bottom: 120px;
}
@media (max-width: 600px) {
  .section-top__image {
    margin-top: 82px;
  }
}
/* WORKSセクション */
#works {
  position: relative; /* 通常のスクロール挙動 */
  z-index: 1; /* 背景より上に配置 */
  margin-top: 35vw; /* #top の高さ分だけ下に配置 */
  background-color: #f2f2f2; /* 背景色を指定（任意） */
  padding: 30px 20px 130px 20px ;
  border-top: 5px solid #0D0D0D;
}
@media (max-width: 600px) {
  #works {
   padding: 0;
    padding-bottom: 100px;
  }
}
.section-works_title {
  width: 80%;
  max-width: 2000px;
  padding: 0 20px;
  margin: 0 auto;
  height: 100%;
}
.section-works_title h2 {
  text-align: left;
  margin-top: 80px;
}

.section-works_title h3 {
  text-align: left;
  margin-bottom: 50px;
}@media (max-width: 600px) {
  .section-works_title h2 {
  margin-top: 50px;
}
}
.filter-buttons {
  width: 80%;
  max-width: 2000px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}
.filter-buttons button {
  padding: 0;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.filter-buttons button.active {
  color: #0D0D0D;
}
button {
  color: #A6A6A6;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  text-decoration: none;
}
button::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: '';
  width: 100%;
  height: 3px; /*太さ*/
  background: #595959;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}
button:hover::after {
  transform: scale(1, 1);
  color: red;
}
button:hover {
  color: #404040;
}
.content-box {
  width: 80%;
  margin: 0 auto;
  border-top: 5px solid #0D0D0D;
  max-width: 2000px;
}
/* content-list を調整して一列に2個表示 */
.content-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2列表示 */
  gap: 30px; /* アイテム間のスペース */
  padding: 40px 0 0 0;
  list-style: none; /* リストスタイルを消す */
}
/* content-item のスタイル */
.content-item {
  padding: 12px;
  border: 3px solid #404040;
  background-color: #FFFFFF;
  display: none; /* 初期状態は非表示 */
  text-align: center; /* 中央揃え */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  border-radius: 10px; /* 角を丸める */
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.content-item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* 画像を整える */
  border-radius: 5px; /* 画像も少し丸める */border: 2px solid #404040;
}
/* 表示されるアイテム */
.content-item.show {
  display: block; /* 表示する */
}
/* ホバー時の拡大アニメーション */
.content-item:hover {
  transform: translateY(-5px) scale(1.03); /* 少し浮かせる効果 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* ホバー時の影を濃く */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* アニメーションの設定 */
}
.content-item a:hover {
  opacity: 1 !important; /* 親要素の透明度の変化を無効化 */
}
.content-item h3 {
  text-align: left;
  color: #595959;
  padding-left: 5px;
  line-height: 100%;
  font-size: 1.2rem;
  margin-top: 5px;
}
.content-item h2 {
  text-align: left;
  color: #0D0D0D;
  padding-left: 15px;
  line-height: 100%;
  margin: 10px 0 10px 0;
  font-size: 2.4rem;
}
/* 画面幅に応じたレスポンシブデザイン */
@media screen and (max-width: 1000px) {
  .content-list {
    grid-template-columns: repeat(2, 1fr); /* 中くらいの画面幅では2列 */
  }
}
@media screen and (max-width: 700px) {
  .content-list {
    grid-template-columns: 1fr; /* 狭い画面幅では1列 */
  }
}