.works-main {
  padding-top: 0px;
  width: 100%;
  overflow-x: hidden;
  background-color: #f2f2f2;
  padding-bottom: 44px;
}

body {
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

.works-main .link-button video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.works-main .link-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* サブ記事内の .article-divider を非表示 */
.sub-article .article-divider {
  display: none !important;
}

.works-main .page-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 40px;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.works-main .search-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 0 0 210px;
  box-sizing: border-box;
}

.works-image {
  margin-top: 60px;
  width: 100%;
}

.works-image img {
  width: 100%;
  height: auto;
  display: block;
}

.works-content {
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* リンクボタンのスタイル */
.works-main .link-buttons {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  left: 0;
  margin-top: 100px;
}

.link-button video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover, fill など用途に応じて選択 */
  display: block;
}

.link-button video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.works-main .link-buttons-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.works-main .link-button {
  width: 50%;
  position: relative;
  overflow: hidden;
}

/* 共通のベーススタイル */
.works-main .link-button .move-icon {
  position: absolute;
  transition: transform 0.3s ease;
}

/* recruit-move 専用のスタイル */
.works-main .recruit-button .move-icon {
  bottom: 80px;
  right: 80px;
  width: 270px;
  height: 32px;
}

/* contact-move 専用のスタイル */
.works-main .contact-button .move-icon {
  bottom: 85px;
  right: 80px;
  width: 400px;
  height: 32px;
}

/* ホバー時のアニメーション */
.works-main .recruit-button:hover .move-icon {
  transform: translateX(20px);
}

.works-main .contact-button:hover .move-icon {
  transform: translateX(20px);
}

.works-main .link-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* リンクボタンのコンテンツスタイル */
.works-main .link-button-content {
  position: absolute;
  top: 80px;
  left: 90px;
  z-index: 1;
}

.works-main .link-button-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 4.8px;
  margin-bottom: 10px;
}

.works-main .link-button-subtitle {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2.4px;
}

/* お問い合わせボタンの文字色を白に */
.works-main .contact-button .link-button-title,
.works-main .contact-button .link-button-subtitle {
  color: #fff;
}

/* カテゴリーセクションのスタイル */
.category-container {
  max-width: 1350px;
  margin: 50px auto 0px auto;
  padding: 0 0px;
  box-sizing: border-box;
}

.category-buttons {
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  padding: 30px 35px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.category-btn {
  display: inline-flex;
  min-width: fit-content;
  padding: 8px 50px;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
  background: #b9b9b9;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  color: #fff;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3.2px;
  white-space: nowrap;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  background: #e61221;
  transform: translateY(0);
}

/* リップルエフェクト */
.category-btn .ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* メイン記事スタイル */
.works-main .information-main {
  max-width: 1440px;
  margin: 60px auto 0;
  padding: 0 0px;
  position: relative;
  z-index: 1;
}

.works-main .main-article {
  display: flex;
  gap: 60px;
  margin-bottom: 50px; /* 2つのメイン記事間の間隔 */
}

.works-main .main-article:last-child {
  margin-bottom: 0; /* 最後の記事の下マージンを削除 */
}

.works-main .article-image {
  flex-shrink: 0;
  width: 605px;
  height: 318px;
}

.works-main .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-main .article-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0px 0px 0px 0px;
}

.works-main .article-date {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  opacity: 0.5;
}

.works-main .article-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 3.6px;
  margin: 8px 0;
}

.works-main .article-divider {
  height: 2px;
  background: #d9d9d9;
  margin: 0px 0;
}

.works-main .article-excerpt {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 14px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 2.1px;
  opacity: 0.5;
  margin: 16px 0;
}

.works-main .category-labels {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.works-main .category-label {
  display: flex;
  width: 191px;
  height: 25px;
  padding: 4px 30px;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  background: #fff;
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 14px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 2.1px;
  opacity: 0.5;
}

/* サブ記事グリッド */
.works-main .sub-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1440px;
  margin: 50px auto 0;
  padding: 0 0px;
  position: relative;
  z-index: 1;
}

.works-main .sub-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 0px;
  border-bottom: 2px solid #d9d9d9;
}

/* 記事カードのホバーアニメーション */
.works-main .main-article,
.works-main .sub-article {
  text-decoration: none;
  color: inherit;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 0px;
}

.works-main .main-article:hover,
.works-main .sub-article:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}
.works-main .sub-article-date {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  opacity: 0.5;
}

.works-main .sub-article-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2.7px;
}

/* 1) 親要素を相対配置にしておく */
.article-content {
  position: relative;
}

/* 2) リンクを絶対配置し、サイズを100%に */
.news-detail-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  /* デバッグのために色を付けたいときは:
       background: rgba(255,0,0,0.1); */
}

/* レスポンシブ対応 */
@media screen and (max-width: 1440px) {
  .works-main .search-container {
    max-width: 1350px;
    margin: 0 auto;

    box-sizing: border-box;
  }
  .works-main .information-main {
    padding: 0 6px;
  }

  .works-main .main-article {
    gap: 30px;
  }

  .works-main .article-image {
    width: 45%;
    height: auto;
    min-width: 300px;
  }

  .works-main .article-content {
    flex: 1;
    padding: 0 0px;
  }

  .works-main .sub-articles-grid {
    padding: 0 65px;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  .works-main .search-button {
    display: inline-flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #e61221;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 4px;
    transition: background-color 0.3s ease;
  }

  .works-main .information-main,
  .works-main .sub-articles-grid {
    padding: 0 20px;
  }

  .works-main .main-article {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .works-main .article-image {
    width: 100%;
    height: 190px;
  }

  .works-main .sub-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .works-main .link-button-content {
    top: 60px;
    left: 60px;
  }

  .works-main .contact-button .move-icon {
    bottom: 85px;
    right: 45px;
    width: 300px;
    height: 24px;
  }

  .works-main .recruit-button .move-icon {
    bottom: 80px;
    right: 50px;
    width: 204px;
    height: 24px;
  }
}

@media screen and (max-width: 767px) {
  .works-image img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
  }
  .works-main .search-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 0 0 12px;
    box-sizing: border-box;
  }

  .works-main .search-button {
    display: inline-flex;
    padding: 3px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #e61221;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 4px;
    transition: background-color 0.3s ease;
  }

  .works-main .article-title {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px; /* 177.778% */
    letter-spacing: 1.7px;
    margin: 16px 0;
  }

  .works-main .article-date {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.8px;
    opacity: 0.5;
  }

  .works-main .category-label {
    display: flex;
    width: 128px;
    height: 25px;
    padding: 4px 4px;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background: #fff;
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 9.996px;
    font-style: normal;
    font-weight: 700;
    line-height: 17.85px; /* 178.571% */
    letter-spacing: 1.499px;
    opacity: 0.5;
  }

  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 25px;
    gap: 7px;
  }

  .category-btn {
    font-size: 13px;
    padding: 6px 25px;
    letter-spacing: 2px;
    line-height: 22px;
    border-radius: 5px;
  }

  .category-container {
    padding: 0 20px;
  }
  .works-content {
    padding: 0 20px;
  }

  .works-main .link-button-content {
    top: 40px;
    left: 40px;
  }

  .works-main .link-button-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .works-main .link-button-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .works-main .link-buttons-container {
    flex-direction: column;
  }

  .works-main .link-button {
    width: 100%;
  }
  .works-main .search-input {
    width: 410px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
  }
}

@media screen and (max-width: 575px) {
  .works-main .search-form {
    gap: 10px;
  }

  .works-main .search-input {
    width: 240px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
  }

  .works-main .article-date {
    font-size: 12px;
    letter-spacing: 1.8px;
    margin-bottom: 8px;
  }
  .works-main .main-article {
    margin-bottom: 40px;
  }

  .works-main .article-title {
    font-size: 13px;
    line-height: 30px;
    margin: 0 0 12px 0;
  }

  .works-main .article-excerpt {
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 1.5px;
  }

  .works-main .category-labels {
    gap: 8px;
  }

  .works-main .category-label {
    width: 110px;
    font-size: 10px;
    padding: 0 0px;
    height: 22px;
  }
  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px 20px;
    gap: 7px;
    margin-top: 0px;
  }
  .works-main .article-image img {
    height: 200px;
  }

  .category-btn {
    font-size: 12px;
    padding: 5px 20px;
    letter-spacing: 1.6px;
    line-height: 20px;
    border-radius: 4px;
  }

  .category-container {
    padding: 0 15px;
    margin: 30px auto 0px auto;
    max-width: 520px;
  }
  .works-main {
    padding-top: 110px;
  }

  .works-main .recruit-button .move-icon {
    bottom: 30px;
    right: 29px;
    width: 171px;
    height: 20px;
  }

  .works-main .contact-button .move-icon {
    bottom: 23px;
    right: 27px;
    width: 256px;
    height: 20px;
  }

  .works-main .link-button-content {
    top: 30px;
    left: 30px;
  }

  .works-main .link-button-title {
    font-size: 24px;
    letter-spacing: 3.6px;
  }

  .works-main .link-button-subtitle {
    font-size: 12px;
    letter-spacing: 1.8px;
  }

  .works-main .sub-article-date {
    font-size: 12px;
    letter-spacing: 1.8px;
  }
  .works-main .sub-article-title {
    font-size: 12px;
    letter-spacing: 1.8px;
  }
  .works-main .sub-article {
    padding-bottom: 2px;
    border-bottom: 2px solid #d9d9d9;
  }
  .works-main .sub-articles-grid {
    gap: 10px;
  }
}
