@charset "UTF-8";

/* note記事スライダー
   PC: 1画面に3記事 / SP: 1画面に1記事
   左右矢印で横スライド
------------------------------------------------------------- */

.note_article {
  background: #fafafa;
  padding: 60px 0 50px;
}

.note_article_inner {
  margin: 0 auto;
  max-width: 1150px;
  padding: 0 50px;
}

.note_article_ttl {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.note_article_ttl span {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-left: 8px;
}

/* スライダーラッパー */
.note_article_slider_wrap {
  position: relative;
  padding: 50px 0 44px;
}

/* 左右矢印 */
.note_article_arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #555;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.note_article_arrow:hover {
  background: #333;
}

.note_article_arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.note_article_arrow_prev {
  left: 0;
}

.note_article_arrow_next {
  right: 0;
}

.note_article_arrow .fa {
  font-size: 18px;
}

/* トラック（はみ出し非表示） */
.note_article_track_wrap {
  overflow: hidden;
}

.note_article_track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

/* カード：PC 3枚表示 */
.note_article_card {
  flex: 0 0 33.333%;
  padding: 0 12px;
  box-sizing: border-box;
}

.note_article_card a {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.2s;
}

.note_article_card a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.note_article_img {
  display: block;
  aspect-ratio: 400 / 220;
  overflow: hidden;
  background: #f0f0f0;
}

.note_article_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}

.note_article_date {
  display: block;
  font-size: 12px;
  color: #888;
  margin: 12px 14px 0;
}

.note_article_card_ttl {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note_article_card_txt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 8px 14px 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ページネーションドット */
.note_article_dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.note_article_dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.note_article_dot:hover {
  background: #aaa;
}

.note_article_dot.is_active {
  background: #555;
  cursor: default;
}

/* SP: 1画面に1記事 */
@media screen and (max-width: 768px) {
  .note_article {
    padding: 28px 0 40px;
  }

  .note_article_inner {
    padding: 0 20px;
  }

  .note_article_ttl {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .note_article_slider_wrap {
    padding: 20px 0;
  }

  .note_article_arrow {
    width: 38px;
    height: 38px;
  }

  .note_article_arrow .fa {
    font-size: 16px;
  }

  .note_article_card {
    flex: 0 0 100%;
    padding: 0 6px;
  }

  .note_article_card_ttl {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .note_article_card_txt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .note_article_dots {
    margin-top: 0px;
  }
}
