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

/* スクロール全体をスムーズに */
html {
  scroll-behavior: smooth;
}
/*背景動画用ラッパー*/
.works-video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

/* 背景動画 */
.works-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 黒フィルター（半透明） */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 黒フィルター濃度ここで調整 */
  z-index: 1;
}

/* フェード */
#bg-video {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}



/* TOPボタン初期状態 */
#scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  padding: 12px 18px;
  font-size: 18px;
  background-color: #E7F07B;
  color: #333;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

/* 表示状態 */
#scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 非表示状態（ふわっと下に） */
#scroll-top-btn:not(.show) {
  transform: translateY(20px);
}


/* タイトル */

.title{
	margin-bottom: 50px;
}
.heading05 {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px; 
  font-size: 26px;
  text-align: center;
}

.heading05::before {
  content: attr(data-en);
  display: block;
  color: #E7F07B;
  font-size: 3rem;
  font-style: italic;
  text-transform: uppercase;
}

.heading05::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%) rotate(30deg);
  width: 2px;
  height: 40px;
  background-color: #E7F07B;
}

/* works コンテンツを前面に */
.works {
  position: relative;
  z-index: 10;
  color: #333;
}

/* 共通部分 */
.works {
  width: 80%;
  margin: 0 auto;
}

.works h1 {
  position: relative;
  font-size: 2rem;
  margin: 50px 0 50px 0;
  text-align: left;
  padding-left: 5%;
  z-index: 1;
  overflow: hidden;
  background-color: transparent;
}


.works h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-image: linear-gradient(to right, #E7F07B 80%, rgba(231, 240, 123, 0) 100%);
  z-index: -1;
  transition: width 1s ease-out;
}

.works h1.animate-bg::before {
  width: 100%;
}

.works h2 {
  font-size: 1.5rem;
}

.works h3 {
  font-size: 1rem;
}

.works p {
  font-size: 1rem;
}
.works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  justify-content: flex-start;
  margin: 0 auto;
}

.works li {
  width: 25%;
  min-width: 400px;
  background-color: rgba(255, 255, 255, 0.80);
  padding: 20px 25px;

  /* ✅ ボタン位置揃えのために追加 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.works li.visible {
  opacity: 1;
  transform: translateY(0);
}

.works img {
  height: 150px;
  width: auto;
}

.works h2 {
  font-size: 1.5rem;
}

.works h3 {
  font-size: 1rem;
}

.works p {
  font-size: 1rem;
}

.works a {
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  background-color: #E7F07B;
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
  transition: all 0.3s ease;

  /* ✅ ボタンを常に下に寄せて中央揃え */
  margin-top: auto;
  align-self: center;
}

.works a:hover {
  transform: translateY(-5px);
  background-color: #dce961;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}




/* カテゴリーボタンエリア */
.works-category-nav {
  text-align: center;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.works-category-nav button {
  background-color: #E7F07B;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.works-category-nav button:hover {
  background-color: #dce961;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* 各セクションエリア */
.works-area {
  margin: 100px;
  text-align: center;
	scroll-margin-top: 40vh;
}

/* Coming Soon 表示 */
.coming-soon {
  font-size: 1.5rem;
  color: #555;
  padding: 40px 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  width: 60%;
  margin: 0 auto;
}