/* 新しいヘッダーセクション */
.works-detail-header {
  width: 100%;
  background-color: #f8f8f8;
  padding: 50px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.js-logo-header-background {
  position: absolute;
  top: -50%;
  right: 0%;
  width: 60%;
  height: 200%;
  background-image: url("../../images/header-hamburger-bg-logo.png");
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: 0;
  filter: grayscale(100%);
}

.works-detail-title-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.works-detail-page-label {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 3.6px;
  margin: 0 0 8px 0;
}

.works-detail-page-label-en {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2.4px;
  margin: 0;
  opacity: 0.6;
}

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

.works-detail-content {
  max-width: 1200px;
  margin: 0 auto;
}

.article-detail {
  width: 100%;
  position: relative;
  min-height: 400px;
}

/* JSロゴ背景 */
.js-logo-background {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../../images/header-hamburger-bg-logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
  filter: grayscale(100%);
}

.detail-article-image {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}

.detail-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-date {
  display: block;
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  opacity: 0.5;
  margin-bottom: 0px;
}

.article-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3.6px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.category-labels {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

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

.decorative-lines {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.line {
  height: 2px;
  flex: 1;
}

.blue-line {
  background: #00a0e9;
}

.red-line {
  background: #e61221;
}

.article-content {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 3.2px;
  position: relative;
  z-index: 1;
}

.article-content p {
  margin: 0px;
}

.view-all-button-container {
  display: flex;
  justify-content: center;
  margin-top: 73px;
  padding-bottom: 100px;
}

.view-all-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 51px;
  background: #333;
  text-decoration: none;
  height: 50px;
  min-width: 295px;
  padding: 0 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* アニメーションを反対にした */
}

.view-all-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.view-all-button:active {
  transform: translateX(0);
  box-shadow: none;
}

.view-all-button span {
  color: #fff;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 28.9px;
  letter-spacing: 3.2px;
  padding-right: 0px;
}

.view-all-button .arrow-icon {
  width: 24px;
  height: 24px;
}

/* タグスタイル */
.article-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.article-tag .tag-icon {
  width: 26px;
  height: 26px;
}

.article-tag span {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3.2px;
  display: inline-block;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .works-detail-container {
    padding: 0px 80px;
  }

  .works-detail-title-container {
    padding: 0 80px;
  }

  .works-detail-page-label {
    font-size: 32px;
  }

  .works-detail-page-label-en {
    font-size: 20px;
  }
}

@media screen and (max-width: 767px) {
  .works-detail-header {
    padding: 30px 0;
    margin-bottom: 40px;
  }

  .works-detail-title-container {
    padding: 0 30px;
  }

  .works-detail-page-label {
    font-size: 28px;
    letter-spacing: 2.8px;
  }

  .works-detail-page-label-en {
    font-size: 18px;
    letter-spacing: 1.8px;
  }

  .article-detail {
    min-height: 350px;
  }

  .article-tag {
    margin-bottom: 15px;
    gap: 8px;
  }

  .article-tag span {
    font-size: 14px;
    letter-spacing: 2.8px;
  }

  .category-labels {
    margin-bottom: 25px;
  }

  .works-detail-container {
    margin: 20px auto;
  }

  .article-image {
    height: 300px;
  }

  .article-title {
    font-size: 24px;
    letter-spacing: 2.4px;
  }

  .article-content {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px; /* 183.333% */
    letter-spacing: 2.16px;
  }

  .view-all-button {
    min-width: 230px;
    height: 38px;
  }

  .view-all-button span {
    font-size: 14px;
    letter-spacing: 2.8px;
  }
}

@media screen and (max-width: 480px) {
  .works-detail-header {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .works-detail-title-container {
    padding: 0 20px;
  }

  .works-detail-page-label {
    font-size: 24px;
    letter-spacing: 2.4px;
  }

  .works-detail-page-label-en {
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  .article-detail {
    min-height: 300px;
  }

  .article-tag {
    margin-bottom: 12px;
    gap: 6px;
  }

  .article-tag span {
    font-size: 12px;
    letter-spacing: 2.4px;
  }

  .view-all-button-container {
    margin-top: 50px;
  }

  .view-all-button .arrow-icon {
    width: 22px;
    height: 22px;
  }

  .article-content {
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 2.16px;
  }

  .decorative-lines {
    display: flex;
    gap: 20px;
    margin: 25px 0 20px 0px;
  }

  .works-detail-container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .article-image {
    height: 200px;
  }

  .article-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .category-label {
    padding: 4px 20px;
    font-size: 12px;
  }

  .view-all-button span {
    font-size: 12px;
    letter-spacing: 2.4px;
  }
}

/* Single works related cards: prevent archive-card styles from collapsing. */
.single-works .article-detail .news-articles-container {
  width: 100%;
  max-width: 1350px;
  margin: 56px auto 0;
  padding: 0;
}

.single-works .article-detail .news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-bottom: 60px;
}

.single-works .article-detail .news-articles-grid .example-card-link {
  display: flex;
  height: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transform: none;
}

.single-works .article-detail .news-articles-grid .example-card-link:hover {
  transform: translateY(-3px);
}

.single-works .article-detail .news-articles-grid .example-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  height: auto;
  padding: 32px;
  gap: 10px;
  overflow: visible;
  box-sizing: border-box;
}

.single-works .article-detail .news-articles-grid .example-card-tag {
  flex: 0 0 auto;
  margin: 0 0 8px;
}

.single-works .article-detail .news-articles-grid .example-card-title {
  flex: 0 0 auto;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 2.8px;
  word-break: break-word;
}

.single-works .article-detail .news-articles-grid .example-card-thumbnail {
  flex: 0 0 auto;
  width: 100%;
  margin: 4px 0 10px;
}

.single-works .article-detail .news-articles-grid .example-card-thumbnail img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.single-works .article-detail .news-articles-grid .card-divider {
  flex: 0 0 auto;
  margin: 0 0 6px;
}

.single-works .article-detail .news-articles-grid .example-card-categories,
.single-works .article-detail .news-articles-grid .example-card-services {
  flex: 0 0 auto;
  gap: 8px;
}

.single-works .article-detail .news-articles-grid .category-label {
  display: block;
  padding: 0;
  background: transparent;
  opacity: 1;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.single-works .article-detail .news-articles-grid .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.single-works .article-detail .news-articles-grid .category-tag {
  min-height: 28px;
  padding: 3px 13px;
  background: #fff;
  border: 1px solid #006aff;
  border-radius: 100px;
  color: #006aff;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

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

.single-works .article-detail .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;
}

.single-works .article-detail .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: 1024px) {
  .single-works .article-detail .news-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .single-works .article-detail .news-articles-grid {
    grid-template-columns: 1fr;
  }

  .single-works .article-detail .news-articles-grid .example-card {
    padding: 28px;
  }
}

/* Single works related cards: isolated implementation, no archive card classes. */
.single-works .single-related-works-container {
  width: 100%;
  max-width: 1350px;
  margin: 56px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.single-works .single-related-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-bottom: 60px;
}

.single-works .single-related-works-card-link {
  display: flex;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.single-works .single-related-works-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 32px;
  background: #fff;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: visible;
  gap: 10px;
}

.single-works .single-related-works-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4f5b66;
  font-family: "BIZ UDGothic";
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.2px;
  margin: 0 0 8px;
}

.single-works .single-related-works-meta .tag-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.single-works .single-related-works-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 2.8px;
  margin: 0 0 10px;
  word-break: break-word;
}

.single-works .single-related-works-thumbnail {
  width: 100%;
  margin: 4px 0 10px;
}

.single-works .single-related-works-thumbnail img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.single-works .single-related-works-divider {
  width: 100%;
  border-bottom: 2px solid #333;
  margin: 0 0 6px;
}

.single-works .single-related-works-categories,
.single-works .single-related-works-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-works .single-related-works-categories .category-label,
.single-works .single-related-works-services .category-label,
.single-works .single-related-works-label {
  display: block;
  padding: 0;
  background: transparent;
  opacity: 1;
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.single-works .single-related-works-categories .category-tags,
.single-works .single-related-works-services .category-tags,
.single-works .single-related-works-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.single-works .single-related-works-categories .category-tag,
.single-works .single-related-works-services .category-tag,
.single-works .single-related-works-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 13px;
  border: 1px solid #006aff;
  border-radius: 100px;
  background: #fff;
  color: #006aff;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.single-works .single-related-works-categories .category-tag,
.single-works .single-related-works-categories .single-related-works-tag-pill {
  background: #4d9bff;
  border-color: #4d9bff;
  color: #fff;
}

.single-works .single-related-works-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;
}

.single-works .single-related-works-detail-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: 1024px) {
  .single-works .single-related-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .single-works .single-related-works-grid {
    grid-template-columns: 1fr;
  }

  .single-works .single-related-works-card {
    padding: 28px;
  }
}

/* Hard isolation for the single works related-card block. */
.single-related-works-container {
  width: 100%;
  max-width: 1350px;
  margin: 56px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.single-related-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-bottom: 60px;
}

.single-related-works-card-link,
.single-related-works-card-link:hover {
  display: flex;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.single-related-works-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 32px;
  background: #fff;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: visible;
  gap: 10px;
}

.single-related-works-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 2.8px;
  margin: 0 0 10px;
  word-break: break-word;
}

.single-related-works-thumbnail {
  width: 100%;
  margin: 4px 0 10px;
}

.single-related-works-thumbnail img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.single-related-works-divider {
  width: 100%;
  border-bottom: 2px solid #333;
  margin: 0 0 6px;
}

.single-related-works-categories,
.single-related-works-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-related-works-categories .category-label,
.single-related-works-services .category-label {
  display: block;
  padding: 0;
  background: transparent;
  opacity: 1;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.single-related-works-categories .category-tags,
.single-related-works-services .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.single-related-works-categories .category-tag,
.single-related-works-services .category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 13px;
  border: 1px solid #006aff;
  border-radius: 100px;
  background: #fff;
  color: #006aff;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.single-related-works-categories .category-tag {
  background: #4d9bff;
  border-color: #4d9bff;
  color: #fff;
}

.single-related-works-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: #ff1f2d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
}

.single-related-works-detail-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: 1024px) {
  .single-related-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .single-related-works-grid {
    grid-template-columns: 1fr;
  }

  .single-related-works-card {
    padding: 28px;
  }
}
