.examples-main {
  padding-top: 0px;
  width: 100%;
  overflow-x: hidden; /* 横スクロール防止 */
  background-color: #f2f2f2; /* 背景色を追加 */
}

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

.examples-image {
  margin-top: 40px;
  width: 100%;
}

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

.service-decorative-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-width: 0; /* flexアイテムの最小幅を0に設定 */
}

.news-decorative-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-width: 0; /* flexアイテムの最小幅を0に設定 */
}

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

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

.category-container {
  max-width: 1350px;
  margin: 50px auto 0px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

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

.category-buttons {
  background: rgba(255, 255, 255, 0.6);
  /* opacity: 0.60; */
  border-radius: 9.996px;
  display: flex;
  padding: 30px 30px;
  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;
  }
}

/* 最新の記事セクション */
.news-articles-container {
  max-width: 1350px;
  margin: 30px auto 0;
  padding: 0 40px;
  box-sizing: border-box;
}

.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.news-articles-grid .example-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: #fff;
  border-radius: 20px;

  gap: 0px;
  flex: 1 0 0;
}

.news-articles-grid .example-card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5b66;
  font-family: "BIZ UDGothic";
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1.6px;
  margin: 0 0 12px 0;
}

.news-articles-grid .tag-icon {
  width: 18px;
  height: 18px;
}

.news-articles-grid .example-card-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 19px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 4px;
  margin: 0 0 20px 0;
}

.news-articles-grid .card-divider {
  display: flex;
  padding-bottom: 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-bottom: 2px solid #333;
}

.news-articles-grid .example-card-categories,
.news-articles-grid .example-card-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-articles-grid .category-label {
  color: #4f5b66;
  font-family: "BIZ UDGothic";
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1.6px;
  margin-top: 10px;
}

.news-articles-grid .category-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-articles-grid .category-tag {
  display: inline-flex;
  padding: 1px 9px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #28a7e1;
  color: #fff;
  font-family: "BIZ UDGothic";
  font-size: 9px;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

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

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

.examples-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;
}

.examples-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-image img {
  width: 100%;
  margin-top: 40px;
}

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

/* カードリンクのスタイル */
.example-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card-link:hover {
  transform: translateY(-5px);
}

/* カードのホバー効果 */
.example-card-link .example-card {
  transition: background-color 0.3s ease;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  .examples-main .link-button-content {
    top: 60px;
    left: 60px;
  }
  .news-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-articles-grid .example-card {
    padding: 30px;
  }
  .examples-main .contact-button .move-icon {
    bottom: 85px;
    right: 45px;
    width: 300px;
    height: 24px;
  }
  .examples-main .recruit-button .move-icon {
    bottom: 80px;
    right: 50px;
    width: 204px;
    height: 24px;
  }
}

@media screen and (max-width: 767px) {
  .examples-image img {
    width: 100%;
    height: 180px;
    display: block;
  }
  .examples-main .link-button-content {
    top: 40px;
    left: 40px;
  }

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

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

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

  .examples-main .link-button {
    width: 100%;
  }
  .service-header,
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 45px;
    margin: 40px auto 30px auto;
    max-width: 700px;
  }

  .service-decorative-lines,
  .news-decorative-lines {
    max-width: 100%;
    width: 100%;
  }

  .news-articles-container {
    padding: 0 20px;
  }

  .news-articles-grid {
    gap: 10px;
  }

  .news-articles-grid .example-card {
    padding: 27px;
  }

  .news-articles-grid .example-card-tag {
    font-size: 10px;
    line-height: 21px;
    letter-spacing: 2px;
  }

  .news-articles-grid .example-card-title {
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 2.4px;
  }

  .news-articles-grid .card-divider {
    padding-bottom: 0px;
  }

  .news-articles-grid .category-label {
    font-size: 10px;
    line-height: 28px;
    letter-spacing: 2px;
    margin-top: 6px;
  }

  .news-articles-grid .category-tag {
    padding: 0px 16px;
    font-size: 8px;
    line-height: 19px;
    letter-spacing: 1.6px;
  }

  .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;
  }
}

@media screen and (max-width: 967px) {
  .examples-main {
    padding-top: 92px;
  }
}

@media screen and (max-width: 575px) {
  .examples-main {
    padding-top: 64px;
  }
  .examples-main .recruit-button .move-icon {
    bottom: 34px;
    right: 34px;
    width: 170px;
    height: 20px;
  }

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

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

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

  .examples-main .link-button-subtitle {
    font-size: 12px;
    letter-spacing: 1.8px;
  }
  .news-articles-grid {
    grid-template-columns: 1fr; /* 1列に変更 */
    gap: 15px; /* カード間のスペースを調整 */
  }

  .news-articles-container {
    padding: 0 43px; /* コンテナの左右パディングを調整 */
    margin: 0px auto 0;
    max-width: 390px;
  }

  .news-articles-grid .example-card {
    padding: 30px; /* カード内のパディングを調整 */
    gap: 0px;
  }

  /* 既存の575px以下のスタイルを維持 */
  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 20px;
    gap: 12px;
    margin-top: 0px;
  }

  .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 8px auto;
    max-width: 575px;
    margin-right: auto;
    margin-left: auto;
  }

  .news-articles-grid .category-tags {
    gap: 12px;
  }

  .news-articles-grid .example-card-categories,
  .news-articles-grid .example-card-services {
    gap: 0px;
  }

  .examples-main .link-buttons {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    left: 0;
    margin-top: 60px;
  }
}

@media screen and (max-width: 767px) {
  .works-main {
    padding-top: 110px;
  }
  .works-image img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
  }
}

/* Works cards: shared lower metadata design. */
.news-articles-grid .example-card {
  min-height: 100%;
}

.news-articles-grid .example-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-articles-grid .example-card-categories,
.news-articles-grid .example-card-services {
  gap: 8px;
}

.news-articles-grid .category-label {
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.news-articles-grid .category-tags {
  gap: 8px 10px;
  margin-bottom: 4px;
}

.news-articles-grid .category-tag {
  min-height: 28px;
  padding: 3px 13px;
  background: #fff;
  border: 1px solid #006aff;
  color: #006aff;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.8px;
}

.news-articles-grid .example-card-categories .category-tag {
  background: #4d9bff;
  border-color: #4d9bff;
  color: #fff;
}

.news-articles-grid .example-card-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: #ff1f2d;
  font-family: "BIZ UDGothic";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
}

.news-articles-grid .detail-cta-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff1f2d;
  border-radius: 50%;
  color: #ff1f2d;
  font-size: 17px;
  letter-spacing: 0;
}

@media screen and (max-width: 768px) {
  .news-articles-grid .category-label {
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .news-articles-grid .category-tag {
    min-height: 26px;
    padding: 3px 11px;
    font-size: 11px;
  }

  .news-articles-grid .example-card-detail-cta {
    font-size: 13px;
  }

  .news-articles-grid .detail-cta-arrow {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}
