/* コンテナスタイル */
.article-detail-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.news-articles-container {
  max-width: 1350px;
  margin: 30px auto 0;
  padding: 0 0px;
  box-sizing: border-box;
}

/* 記事詳細カード */
.article-detail {
  border-radius: 28px;
  padding: 0px;
  margin-bottom: 60px;
}

/* イメージセクション */
.article-image {
  width: 100%;
  margin-bottom: 40px;
  height: 500px; /* 高さを固定 */
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* アスペクト比を保持しながら表示 */
  display: block;
}

/* ヘッダーセクション */
.article-header {
  margin-bottom: 30px;
}

/* タグスタイル */
.article-tag {
  display: flex;
  align-items: center;
  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;
}

/* タイトルスタイル */
.article-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 4px;
  margin: 0 0 15px 0;
}

/* 日付スタイル */
.article-date {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* デコレーティブライン */
.decorative-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 30px 0;
}

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

.blue-line {
  background-color: #28a7e1;
}

.red-line {
  background-color: #e61221;
}

/* カテゴリーセクション */
.article-categories {
  margin-bottom: 30px;
}
.categories-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.category-section {
  margin-bottom: 27px;
}

.category-sien-header {
  display: flex;
  align-items: center;
  gap: 60px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-label {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3.2px;
}

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

.category-tag {
  display: inline-flex;
  padding: 2px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #28a7e1;
  color: #fff;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 2.4px;
}

/* 記事本文 */
.article-content {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 3.2px;
  margin: 40px 0 120px 0;
}

/* 戻るボタン */
.back-to-list {
  text-align: center;
}

/* 最新の記事セクションのスタイル */
.latest-articles-section {
  margin-top: 80px;
}

/* 既存のグリッドスタイルを継承しつつ、6記事表示用に調整 */
.latest-articles .news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* 一覧に戻るボタンのスタイル */
.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: 8px;
  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;
}

/* タブレット用レイアウト */
@media screen and (max-width: 1200px) {
  .latest-articles .news-articles-grid {
    grid-template-columns: 1fr;
  }

  .latest-articles-section {
    margin-top: 60px;
  }
  .latest-articles .news-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .article-content {
    margin: 40px 0 60px 0;
  }
  .category-sien-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .view-all-button-container {
    margin-top: 50px;
    padding-bottom: 60px;
  }

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

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

  .view-all-button .arrow-icon {
    width: 18.4px;
    height: 18.4px;
  }
  .article-detail-container {
    padding: 0 15px;
  }

  .article-detail {
    padding: 20px 0px 0px 0px;
    border-radius: 20px;
    margin-bottom: 0px;
  }

  .article-tag {
    font-size: 14px;
    margin-left: 4px;
  }

  .article-categories {
    margin-left: 4px;
  }

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

  .article-title {
    font-size: 18px;
    letter-spacing: 3.2px;
    margin-left: 4px;
  }

  .category-label {
    font-size: 14px;
    letter-spacing: 2.8px;
  }

  .article-content {
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 2.8px;
    margin-left: 4px;
  }

  .decorative-lines {
    margin: 20px 0;
  }
  .article-image {
    height: 185px; /* モバイル時の高さ調整 */
  }

  .categories-row {
    gap: 20px;
  }

  .category-section {
    min-width: 100%; /* モバイル時は1列に */
  }
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .category-label {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 525px) {
  .article-image img {
    width: 100%;
    height: 174px;
    object-fit: cover;
    display: block;
  }
  .view-all-button .arrow-icon {
    width: 18.4px;
    height: 18.4px;
  }
}

@media screen and (max-width: 480px) {
  .view-all-button-container {
    margin-top: 0px;
    padding-bottom: 0px;
  }

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

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

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

.works-section {
  margin-top: 55px;
  width: 100%;
  padding-bottom: 100px;
}

.works-header {
  display: flex;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  gap: 30px;
  width: 93%;
  margin-bottom: 40px;
  max-width: 1350px;
}

.works-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.works-main-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 8px;
  margin: 0;
  white-space: nowrap;
}

.works-decorative-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  max-width: 925px;
  min-width: 0;
}

.works-container {
  width: 100%;
  padding-top: 0px;
}

.works-content {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@media screen and (min-width: 1401px) {
  .works-logo-grid {
    grid-template-columns: repeat(5, minmax(180px, 223px));
  }
}

.works-logo-grid {
  display: grid;
  margin: 55px auto 0;
  width: calc(100% - 40px);
  max-width: 1300px;
  gap: clamp(20px, 3vw, 55px) clamp(20px, 2vw, 37px);
  justify-content: center;
}

.logo-item {
  width: 100%;
  aspect-ratio: 223 / 89;
  background: #d9d9d9;
}

@media screen and (max-width: 1400px) {
  .works-logo-grid {
    grid-template-columns: repeat(4, minmax(180px, 223px));
  }
}

@media screen and (max-width: 1200px) {
  .business-works .link-button-content {
    top: 60px;
    left: 60px;
  }
  .works-logo-grid {
    grid-template-columns: repeat(3, minmax(180px, 223px));
  }
  .works-cards-grid {
    padding: 40px 60px;
  }
}

@media screen and (max-width: 1024px) {
  .works-main-title {
    font-size: 28px;
    letter-spacing: 6px;
  }
  .works-title-group {
    gap: 15px;
  }
  .works-decorative-lines {
    max-width: 45%;
  }
  .works-content {
    padding: 0 15px;
  }
}

@media screen and (max-width: 767px) {
  .works-header {
    flex-direction: column; /* 横並びから縦並びに変更 */
    align-items: flex-start; /* 左寄せ */
    gap: 20px; /* 間隔を少し調整 */
  }

  .works-title-group {
    display: flex;
    flex-direction: column; /* タイトルとラインを縦に並べる */
    align-items: flex-start; /* 左寄せ */
  }

  .works-main-title {
    font-size: 16px;
    letter-spacing: 4px; /* レター間隔を少し調整 */
    margin-bottom: 10px; /* タイトル下にスペースを追加 */
  }

  .works-decorative-lines {
    gap: 6px; /* ライン間のスペースを調整 */
    max-width: 100%; /* ラインの幅を100%に */
  }
}

@media screen and (max-width: 600px) {
  .works-logo-grid {
    grid-template-columns: repeat(3, minmax(100px, 200px));
  }
}
