  /* ==========================================================================
         1. 基本のレイアウト・リセット
       ========================================================================== */

  /* 2つの案の間に見出し用の装飾 */
  .pattern-title {
    max-width: 1000px;
    margin: 40px auto 10px auto;
    font-size: 1.5rem;
    color: #0f172a;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
  }

  .carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    position: relative;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  /*==========================================================================
       2. カルーセル本体
========================================================================== */
  .carousel {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    margin-bottom: 0;
  }

  .mainContents section.carousel {
    margin-bottom: 0;
  }

  .carousel__list {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 16px 0;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
  }

  /* ==========================================================================
       3. カルーセルアイテムの装飾
       ========================================================================== */
  .carousel__item {
    flex: 0 0 calc(33.333% - 13.333px);
    box-sizing: border-box;
    user-select: none;
  }

  @media (max-width: 768px) {
    .carousel__item {
      flex: 0 0 calc(50% - 10px);
    }
  }

  @media (max-width: 480px) {
    .carousel__item {
      flex: 0 0 100%;
    }
  }

  .carousel__item article {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .is-colored .carousel__item article {
    background: #f2f2f2;
    border: none;
  }

  .carousel__item h3 {
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    color: #0f172a;
    /* --- ここから3点リーダー追加 --- */
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 3; /* 表示したい行数 */
   overflow: hidden;
}

  .carousel__image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
  }

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

  .carousel__item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
  }

  .carousel__item[data-clone="true"] {
    speak: none;
  }

  .carousel__meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .carousel__tag {
    display: inline-block;
    background-color: #6a8fc5;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px 1px 8px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
  }

  .carousel__meta-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ==========================================================================
        4. カルーセル UIパーツ（PCで表示、スマホで自動非表示）
       ========================================================================== */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-btn:hover {
    background-color: #f1f5f9;
  }

  .carousel-btn--prev {
    left: -22px;
  }

  .carousel-btn--next {
    right: -22px;
  }

  /* スマホ画面（500px以下）では矢印を消してスワイプに専念させる */
  @media (max-width: 500px) {
    .carousel-btn {
      display: none;
    }
  }

  .carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.carousel-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  appearance: none;
  transition: background-color 0.3s;
}

  .carousel-dot--active {
    background-color: #3b82f6;
  }