/* ==============================
   基本的なリセットと共通スタイル
============================== */
body {
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

/* メインコンテナ */
.column-main {
  padding-top: 0px;
  width: 100%;
  overflow-x: hidden;
  background-color: #f2f2f2;
}

/* 共通カードスタイル */
.column-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.column-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

/* カードリンクスタイル */
.column-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* サムネイル */
.card-thumbnail {
  padding: 0;
}
.card-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* カードコンテンツ */
.card-content {
  padding: 0px 14px 20px;
}
.card-title {
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3.2px;
  margin-bottom: 14px;
  padding-left: 10px;
  color: #333;
}

/* カードメタ情報 */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
}
/* カテゴリーコンテナ */
.card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.card-category {
  display: inline-flex;
  padding: 0px 12px;
  justify-content: center;
  align-items: center;
  background: #de021e;
  color: #fff;
  opacity: 0.5;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 2.4px;
  white-space: nowrap;
}
.card-date {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 2.4px;
  opacity: 0.5;
  margin-left: auto;
  white-space: nowrap;
}

/* 記事グリッドの共通レイアウト */
.articles-wrapper,
.popular-cards,
.latest-cards .articles-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* 最新の記事セクション */
.latest-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 0;
}

/* 人気の記事セクション */
.popular-cards {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* コンテンツコンテナ */
.column-content {
  max-width: 1350px;
  margin: 30px auto 0px;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* コラム説明文 */
.column-description {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-weight: 700;
  line-height: 55px;
  letter-spacing: 4.48px;
  margin-bottom: 60px;
}

/* 検索フォーム */
.search-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 0px;
  box-sizing: border-box;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.search-input {
  width: 710px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: none;
  padding: 0 20px;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  color: #333;
}
.search-input::placeholder {
  color: #999;
}
.search-button {
  display: inline-flex;
  padding: 12px 50px;
  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: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 4px;
  transition: background-color 0.3s ease;
}
.search-button:hover {
  background: #cc0f1d;
}

/* セクションヘッダー共通スタイル */
.popular-header,
.category-header,
.latest-header {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1350px;
  margin: 60px auto;
  width: 100%;
  box-sizing: border-box;
}
.popular-decorative-lines,
.category-decorative-lines,
.latest-decorative-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-width: 0;
}

/* カテゴリー欄コンテナ (一覧ページ) */
.column-main .category-container {
  max-width: 1350px;
  margin: 10px auto 0px auto;
  padding: 0;
  box-sizing: border-box;
}
.column-main .category-container .latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  margin-top: 30px;
}

/* カテゴリーボタン (一覧ページで利用) */
.category-container .category-buttons .category-btn {
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  color: #fff;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3.2px;
  border-radius: 8px;
  margin: 0 5px 5px 0;
  transition: background-color 0.3s ease;
}
.category-container .category-buttons .category-btn:hover {
  background: #e61221;
  color: #fff;
}
.category-container .category-buttons .category-btn.active {
  background: #e61221;
  color: #fff;
}

/* イメージコンテナとシェイプ */
.column-image-container {
  position: relative;
  margin-top: 40px;
  width: 100%;
  z-index: 0;
}
.column-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* シェイプ画像の基本スタイル */
.shape-red1,
.shape-blue1,
.shape-red2,
.shape-blue2,
.shape-blue3,
.shape-red3,
.shape-pink1,
.shape-blue4,
.shape-red4 {
  position: absolute;
  pointer-events: none;
}

/* 上部シェイプ */
.shape-red1 {
  top: 17%;
  right: 40px;
  z-index: 2;
}
.shape-blue1 {
  top: 17%;
  right: 20px;
  z-index: 3;
}

/* 下部シェイプ */
.shape-red2 {
  bottom: -84px;
  left: 59px;
  z-index: 2;
}
.shape-blue2 {
  bottom: -250px;
  left: 0px;
  z-index: -1;
}

/* カテゴリー欄周辺のシェイプ */
.shape-blue3 {
  top: 110%;
  right: -20px;
  width: 603px;
  height: 603px;
  z-index: 0;
}
.shape-red3 {
  right: -7px;
  top: 165%;
  height: 110px;
  width: 100px;
  z-index: 0;
}
.shape-pink1 {
  left: -100px;
  top: 140%;
  width: 527px;
  height: 333px;
  z-index: 0;
}

/* 最新記事セクション周辺のシェイプ */
.shape-blue4 {
  bottom: -210%;
  width: 1100px;
  height: 1100px;
  left: 0px;
  z-index: 0;
}
.shape-red4 {
  bottom: -140%;
  right: 230px;
  z-index: 0;
}

/* リンクボタンのスタイル */
.column-main .link-buttons {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  left: 0;
  margin-top: 0px;
  z-index: 1;
}
.column-main .link-buttons-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}
.column-main .link-button {
  width: 50%;
  position: relative;
  overflow: hidden;
}
.column-main .link-button video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.column-main .link-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.column-main .link-button .move-icon {
  position: absolute;
  transition: transform 0.3s ease;
}
.column-main .recruit-button .move-icon {
  bottom: 80px;
  right: 80px;
  width: 270px;
  height: 32px;
}
.column-main .contact-button .move-icon {
  bottom: 85px;
  right: 80px;
  width: 400px;
  height: 32px;
}
.column-main .recruit-button:hover .move-icon,
.column-main .contact-button:hover .move-icon {
  transform: translateX(20px);
}
.column-main .link-button-content {
  position: absolute;
  top: 80px;
  left: 90px;
  z-index: 1;
}
.column-main .link-button-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 4.8px;
  margin-bottom: 10px;
}
.column-main .link-button-subtitle {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2.4px;
}
/* お問い合わせボタンの文字色を白に */
.column-main .contact-button .link-button-title,
.column-main .contact-button .link-button-subtitle {
  color: #fff;
}

/* ===============================
   タブレット向けスタイル
=============================== */
@media screen and (max-width: 1200px) {
  .category-container .latest-articles-grid,
  .latest-cards .articles-wrapper,
  .popular-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 人気記事の3番目のカード特別処理 */
  .popular-cards .column-card:nth-child(3) {
    grid-column: 1 / 3;
    width: 100%;
  }
  .popular-cards .column-card:nth-child(3) .card-thumbnail img {
    height: 185px;
    object-fit: cover;
  }

  .card-title {
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 3px;
  }
  .card-category {
    font-size: 11px;
    line-height: 26px;
  }
  .card-date {
    font-size: 11px;
    line-height: 26px;
  }

  .search-input {
    width: 490px;
  }
  .column-description {
    font-size: 28px;
    line-height: 48px;
    letter-spacing: 3.92px;
    margin-bottom: 50px;
  }

  .column-main .link-button-content {
    top: 60px;
    left: 60px;
  }
  .column-main .contact-button .move-icon {
    bottom: 85px;
    right: 45px;
    width: 300px;
    height: 24px;
  }
  .column-main .recruit-button .move-icon {
    bottom: 80px;
    right: 50px;
    width: 204px;
    height: 24px;
  }

  /* シェイプの位置調整 */
  .shape-red4 {
    bottom: -299%;
    right: 0;
  }
  .shape-red1 {
    top: -78px;
    width: 180px;
    height: 184px;
    right: 45px;
  }
  .shape-red2 {
    bottom: -84px;
    width: 160px;
    height: 160px;
    left: 40px;
  }
  .shape-blue1 {
    top: 0;
    right: 20px;
    width: 100px;
    height: 100px;
  }
  .shape-blue4 {
    bottom: -343%;
    width: 996px;
    height: 623px;
    left: -134px;
  }
}

/* ===============================
   モバイル向けスタイル
=============================== */
@media screen and (max-width: 767px) {
  .search-form {
    margin-top: 30px;
  }

  .column-image img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
  }
  .category-container .category-buttons .category-btn {
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 6px 15px;
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 9.996px;
    font-style: normal;
    font-weight: 700;
    line-height: 19.992px; /* 200% */
    letter-spacing: 1.999px;
    border-radius: 8px;
    margin: 0 5px 5px 0;
    transition: background-color 0.3s ease;
  }
  .card-content {
    padding: 12px 12px 16px;
  }
  .card-thumbnail {
    padding: 12px 12px 0;
  }
  .card-title {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 2.8px;
    padding-left: 8px;
  }
  .card-category {
    font-size: 8px;
    line-height: 14px;
    letter-spacing: 2px;
    padding: 0px 6px;
    margin-left: 8px;
  }
  .card-date {
    font-size: 10px;
    line-height: 22px;
    letter-spacing: 2px;
    margin-right: 16px;
  }

  .search-input {
    width: 215px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
  }
  .search-button {
    width: 17%;
    padding: 12px 0;
    font-size: 18px;
  }
  .column-description {
    font-size: 22px;
    line-height: 40px;
    letter-spacing: 3.36px;
    margin-bottom: 40px;
  }

  .popular-header,
  .category-header,
  .latest-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0;
    margin: 40px auto 10px auto;
    max-width: 720px;
  }
  .popular-decorative-lines,
  .category-decorative-lines,
  .latest-decorative-lines {
    max-width: 100%;
    width: 100%;
  }

  .card-meta {
    padding-left: 0px;
  }

  .popular-cards {
    margin-top: 25px;
  }

  .column-content {
    padding: 0 30px;
  }

  .column-main .link-button-content {
    top: 40px;
    left: 40px;
  }
  .column-main .link-button-title {
    font-size: 28px;
    letter-spacing: 4px;
  }
  .column-main .link-button-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .column-main .link-buttons-container {
    flex-direction: column;
  }
  .column-main .link-button {
    width: 100%;
  }

  /* シェイプの位置調整 */
  .shape-red4 {
    bottom: -240%;
    right: 0px;
    width: 135px;
    z-index: 0;
  }
  .shape-red1 {
    top: -56px;
    width: 124px;
    height: 87px;
    right: 6px;
    z-index: 2;
  }
  .shape-red3 {
    right: 0px;
    top: 188%;
    height: 66px;
    width: 55px;
    z-index: 0;
  }
  .shape-blue3 {
    top: 152%;
    right: 0px;
    width: 292px;
    height: 349px;
    z-index: 0;
  }
  .shape-blue2 {
    bottom: -117px;
    width: 131px;
    left: -12px;
    z-index: -1;
  }
  .shape-red2 {
    bottom: -84px;
    width: 84px;
    height: 160px;
    left: -15px;
    z-index: 1;
  }
  .shape-blue1 {
    top: 0px;
    right: 12px;
    width: 46px;
    height: 54px;
    z-index: 3;
  }
  .shape-blue4 {
    bottom: -295%;
    width: 996px;
    height: 623px;
    left: -134px;
    z-index: 0;
  }
  .shape-pink1 {
    left: -186px;
    top: 193%;
    width: 527px;
    height: 239px;
    z-index: 0;
  }
}

/* ===============================
   小型モバイル向けスタイル
=============================== */
@media screen and (max-width: 575px) {
	.padding-top{
		 padding-top: 0px !important;
	}	

  .category-container .latest-articles-grid,
  .latest-cards .articles-wrapper,
  .popular-cards {
    grid-template-columns: 1fr !important;
  }

  .popular-cards .column-card:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }

  .column-description {
    font-size: 20px;
    line-height: 31px;
    letter-spacing: 2.52px;
    margin-bottom: 30px;
  }

  .column-main .link-button-content {
    top: 30px;
    left: 30px;
  }
  .column-main .link-button-title {
    font-size: 24px;
    letter-spacing: 3.6px;
  }
  .column-main .link-button-subtitle {
    font-size: 12px;
    letter-spacing: 1.8px;
  }
  .column-main .recruit-button .move-icon {
    bottom: 31px;
    right: 23px;
    height: 20px;
    width: 169px;
  }
  .column-main .contact-button .move-icon {
    bottom: 27px;
    right: 23px;
    height: 20px;
    width: 249px;
  }

  .column-main {
    padding-top: 110px;
  }
}

@media screen and (max-width: 490px) {
  .card-thumbnail {
    padding: 0px 0px 0;
  }
  .card-content {
    padding: 10px 10px 14px;
  }
  .card-title {
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 2.6px;
    margin-bottom: 10px;
  }
  .card-meta {
    gap: 0px;
  }
}

.column-info-text {
  color: #333;
  font-family: "BIZ UDGothic";
  font-weight: 700;
  letter-spacing: 4.48px;
  font-size: 32px;
  line-height: 55px;
  margin-bottom: 40px;
}

/* タブレット用スタイル */
@media screen and (max-width: 1024px) {
  .column-info-text {
    text-align: center;
    font-size: 20px;
    line-height: 55px;
    letter-spacing: 2.8px;
  }
}

/* デスクトップ用スタイル */
@media screen and (min-width: 1025px) {
  .column-info-text br {
    display: none;
  }
  .column-info-text {
    word-spacing: 0; /* 単語間のスペースを削除 */
    white-space: nowrap; /* 改行を防ぎ、1行で表示 */
  }
}

/* モバイル用スタイル */
@media screen and (max-width: 767px) {
  .column-info-text {
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 2.24px;
  }
}

/* デスクトップサイズの指定 */
