.column-section {
  background-color: #f3f8fd;
  width: 100%;
  height: 872px; /* 固定の高さを設定 */
  position: relative;
  z-index: 0;
  overflow: visible; /* もとの指定通り */
}

/* ▼ もともとの .column-section::before はコメントアウト/削除 */
/*
.column-section::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 160px;
    right: 160px;
    height: 872px;
    background-image: url('../../../images/column_bg_image.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 56px;
    z-index: 1;
}
*/

/* ▼ 追加: 代替画像用クラス */
.column-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 必要に応じて調整。動画と同じ位置関係になるよう設定 */
  /* 初期表示はblockにしておけばOK */
}

/* ▼ 代わりに、"動画"用の限定ボックスを配置 */
.video-bg-limited {
  position: absolute;
  top: 50%;
  left: 160px;
  right: 160px;
  height: 872px;
  transform: translateY(-50%);
  border-radius: 56px;
  overflow: hidden;
  z-index: 1; /* shapesやcontainerより背面/前面を調整 */
}

/* ▼ ここに実際の動画を納める */
.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------- */
.column-container {
  width: 100%;
  box-sizing: border-box;
  padding-top: 89px;
  padding-left: 160px;
  padding-right: 160px;
  position: relative;
  /* z-index:2;  // もしshapesより前面に配置したいなら適宜調整 */
}

/* もし .shapes を動画より前に表示したい(=動画の上にshapeが乗る)なら:
   .shapes { position: relative; z-index: 2; }
   .column-container { position: relative; z-index: 3; }
   などの調整をしてください。
*/

/* 各コンテンツのz-index調整 */
.column-content,
.column-cards-container {
  position: relative;
  z-index: 4; /* shapesまたは動画より前に出したいなら 3 or 4 に調整 */
}

/* コンテンツレイアウト */
.column-content {
  display: flex;
  align-items: center;
  padding: 0;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* タイポグラフィー */
.column-title {
  color: #ffffff;
  font-family: "BIZ UDGothic";
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  white-space: nowrap;
}

.column-subtitle {
  color: #ffffff;
  font-family: "BIZ UDGothic";
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}

.column-description {
  color: #ffffff;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3px;
}

/* レイアウト要素 */
.column-grid-line {
  margin: 0 28px;
  flex-shrink: 0;
  width: 4px;
  height: 100px;
}

.column-text-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-cards-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.column-cards {
  display: flex;
  gap: 20px;
  padding-left: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  cursor: grab;
}

.column-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* カード */
.column-card {
  min-width: 410px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);

  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.column-card:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ▼ カード全体クリック用リンク */
.column-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  text-indent: -9999px; /* テキスト非表示 */
  overflow: hidden;
}

/* サムネイル */
.card-thumbnail {
  padding: 10px 15px 0;
}

.card-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* カードコンテンツ */
.card-content {
  padding: 14px 14px 20px;
}

.card-title {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 3.2px;
  margin-bottom: 14px;
  padding-left: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-category {
  display: inline-flex;
  padding: 0px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  background: #de021e;
  color: #fff;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 2.4px;
  margin-left: 10px;
}

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

/* すべてを見るボタン */
.column-section .view-all-button-container {
  display: flex;
  justify-content: center;
  margin-top: 73px;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
  margin-left: 100px;
}

.column-section .view-all-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 51px;
  background: #fff;
  text-decoration: none;
  height: 46px;
  min-width: 295px;
  max-width: 265px;
  width: 100%;
  padding: 0 20px;
  position: relative;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.column-section .view-all-button:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.column-section .view-all-button:active {
  transform: translateX(0);
  box-shadow: none;
  height: 50px;
  min-width: 295px;
}

.column-section .view-all-button span {
  color: #333;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  line-height: 21.675px;
  letter-spacing: 2.4px;
}

.column-section .arrow-icon {
  width: 20px;
  height: 20px;
}

/* ▼ スクロールバーとボタンを横並びにするコンテナ */
.column-scrollbar-and-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 29px;
  padding: 0 160px; /* 背景動画のleft/rightと同じ値に設定 */
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

/* ▼ スクロールバー本体（トラック） */
.custom-scrollbar-track {
  position: relative;
  width: 100%;
  max-width: 656px;
  height: 10px;
  border-radius: 5px;
  opacity: 0.7;
  background: #333;
  mix-blend-mode: multiply;
  flex-grow: 1;
  cursor: pointer;
  margin-bottom: 26px;
}

/* ▼ スクロールバーの"つまみ"部分（ハンドル） */
.custom-scrollbar-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.33%;
  min-width: 100px;
  height: 10px;
  border-radius: 5px;
  background: #f3f8fd;
  cursor: grab;
}

/* ▼ 以下レスポンシブメディアクエリは元のをそのまま残す -------------------- */
@media screen and (max-width: 1919px) {
  .column-section::before {
    left: 60px;
    right: 60px;
  }

  .column-cards-container {
    padding: 0 160px;
  }

  .column-scrollbar-and-button {
    padding: 0 160px;
  }
}

@media screen and (max-width: 1550px) {
}

@media screen and (max-width: 1450px) {
}

@media screen and (max-width: 1250px) {
}

@media screen and (max-width: 1100px) {
  .column-container {
    max-width: 1585px;
    width: 89%;
    margin: 0 auto;
    padding-top: 150px;
    padding-right: 0px;
    padding-left: 0px;
    position: relative;
    z-index: 2;
  }
}

@media screen and (max-width: 1004px) {
  .video-bg-limited {
    left: 50px;
    right: 50px;
  }
  .column-container {
    max-width: 1585px;
    width: 88%;
    margin: 0 auto;
    padding-top: 100px;
    padding-right: 0px;
    padding-left: 0px;
    position: relative;
    z-index: 2;
  }

  .column-cards-container {
    position: relative;
    width: 100%;
    height: 56%;
    margin-top: 100px;
    overflow: hidden;
    padding: 0 80px;
  }
  .column-content {
    position: relative;
    padding: 0px 20px 0 86px;
    flex-direction: column;
    align-items: flex-start;
  }

  .column-grid-line {
    position: absolute;
    left: 40px;
    top: 0px;
    margin: 0;
    height: 100%;
  }

  .column-title {
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 5px;
    white-space: normal;
    margin: 0 0 13px 0;
  }

  .column-text-container {
    width: 100%;
    gap: 0;
  }

  .column-subtitle {
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 200% */
    letter-spacing: 1.8px;
    margin-bottom: 4px;
  }

  .column-description {
    color: #fff;
    font-family: "BIZ UDGothic";
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
  }

  .column-scrollbar-and-button {
    padding: 0 80px;
  }
}

@media screen and (max-width: 910px) {
  .column-container {
    max-width: 1585px;
    width: 86.5%;
    margin: 0 auto;
    padding-top: 100px;
    padding-right: 0px;
    padding-left: 0px;
    position: relative;
    z-index: 2;
  }
}

@media screen and (max-width: 767px) {
  .video-bg-limited {
    left: 0px;
    right: 0px;
    height: 768px;
  }
  .column-container {
    max-width: 1585px;
    width: 95.7%;
    margin: 0 auto;
    padding-top: 100px;
    padding-right: 0px;
    padding-left: 0px;
    position: relative;
    z-index: 2;
  }

  .custom-scrollbar-track {
    display: none;
  }

  .column-section {
    height: 640px; /* 高さを維持 */
  }

  .column-scrollbar-and-button {
    display: block;
    margin-left: 0;
    width: 100%;
    padding: 0 40px;
  }
  .view-all-button span {
    font-size: 12px;
    line-height: 21.675px;
    letter-spacing: 2.4px;
  }

  .column-section .view-all-button-container {
    margin: 50px auto 60px;
    padding-bottom: 0;
    width: 100%;
    max-width: 230px;
  }

  .column-section .view-all-button {
    min-width: 230px;
    height: 31px;
    margin: 0 auto;
  }

  .column-cards-container {
    padding: 0 40px;
  }
}

@media screen and (max-width: 700px) {
  .column-section .view-all-button-container {
    margin: 50px auto 60px;
    padding-bottom: 0;
    width: 100%;
    max-width: 230px;
  }
}

@media screen and (max-width: 650px) {
  .column-section .view-all-button-container {
    margin: 50px auto 60px;
    padding-bottom: 0;
    width: 100%;
    max-width: 230px;
  }
}

@media screen and (max-width: 600px) {
  .column-section .view-all-button-container {
    margin: 50px auto 60px;
    padding-bottom: 0;
    width: 100%;
    max-width: 230px;
  }
}

@media screen and (max-width: 550px) {
  .column-section .arrow-icon {
    width: 15px;
    height: 15px;
  }

  .card-title {
    font-size: 11px;
    line-height: 26px; /* 200% */
    letter-spacing: 2.8px;
    margin-bottom: 14px;
    padding-left: 10px;
  }

  .column-section .view-all-button span {
    font-size: 12px;
  }

  .card-category {
    font-size: 10px;
    line-height: 22px;
    letter-spacing: 2px;
  }
  .column-section .view-all-button-container {
    margin: 60px auto 60px;
    padding-bottom: 0;
    width: 100%;
    max-width: 205px;
  }
}

@media screen and (max-width: 768px) {
  .column-cards {
    padding-left: 15%;
    overflow: auto;
  }
  .video-bg-limited {
    left: 30px;
    right: 30px;
    height: 628px;
    top: 50%;
  }

  .card-content {
    padding: 4px 4px 13px;
  }

  /* Card thumbnail image settings for mobile */
  .card-thumbnail {
    max-width: 100%;
    overflow: hidden;
  }

  .card-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
  }

  .column-card {
    min-width: 260px;
  }

  .column-cards-container {
    margin-top: 8px;
    margin-left: 0px;
    overflow: visible;
    padding: 0 20px;
  }

  .column-container {
    width: 100%;
    padding-top: 42px;
    left: -3px;
  }

  .column-content {
    padding: 40px 56px 20px 70px;
  }

  .column-grid-line {
    left: 45px;
    top: -10px;
    height: 195px;
    width: 4px;
  }

  .column-title {
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 10px;
  }

  .column-subtitle {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .column-description {
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 1.3px;
  }

  .column-text-container {
    gap: 0px;
  }

  .column-scrollbar-and-button {
    padding: 0 20px;
  }
}

/* 背景動画に合わせてスライダーの表示を制限 */
@media screen and (min-width: 1005px) {
  .column-cards-container {
    padding: 0;
  }
  /* 追加: スライダー開始位置を調整 */
  .column-cards {
    padding-left: 460px;
  }
}
