/* ─── note.css（RSSスライダー） ─── */

/* スライダー全体のコンテナ */
#note-rss {
  position: relative;
  overflow: hidden;
  padding: 8px 4px 16px;
  width: 100%;
  box-sizing: border-box;
  touch-action: pan-y; /* 縦スクロールを邪魔せず横スワイプを許可 */
}

/* <h2> note見出し用ロゴ（HPBの#hpb-main2 img干渉を防ぐため詳細度強化） */
#hpb-main2 h2 .note-heading-logo,
.note-heading-logo {
  height: 28px !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: -3px !important;
  margin-right: 8px !important;
  display: inline-block !important;
}

/* カードを横一列に並べるトラック */
.note-slider-wrapper {
  display: flex;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 記事カード（PC・タブレット） */
.note-list {
  flex: 0 0 250px;       /* PC時の固定幅 */
  width: 250px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

/* ホバー時にふわりと浮き上がる効果（PC） */
@media (hover: hover) {
  .note-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }
}

/* リンク全体のブロック化 */
.note-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* サムネイル画像コンテナ（16:9） */
.note-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f3f4f6;
  overflow: hidden;
  position: relative;
}

.note-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.note-list:hover .note-thumb-wrap img {
  transform: scale(1.03);
}

/* 画像がない場合のプレースホルダー */
.note-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: bold;
  font-size: 1.1rem;
  background: #e5e7eb;
}

/* 日付 */
.note-list .date {
  font-size: 0.78rem;
  color: #6b7280;
  padding: 10px 12px 2px;
  font-weight: 500;
}

/* タイトル */
.note-list .title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
  padding: 0 12px 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* 前へ・次へスライダーボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 64, 175, 0.88);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.slider-btn:hover {
  background: rgba(29, 78, 216, 1);
  transform: translateY(-50%) scale(1.06);
}

.slider-btn:disabled,
.slider-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.slider-prev {
  left: 4px;
}

.slider-next {
  right: 4px;
}

/* ─── スマートフォン対応（768px以下） ─── */
@media screen and (max-width: 768px) {
  #hpb-main2 h2 .note-heading-logo,
  .note-heading-logo {
    height: 22px !important;
    vertical-align: -2px !important;
    margin-right: 6px !important;
  }

  #note-rss {
    padding: 4px 2px 12px;
  }

  /* スマホでのカード幅：画面を占有しすぎず、次のカードが適度に見えるサイズ */
  .note-list {
    flex: 0 0 210px;
    width: 210px;
    border-radius: 8px;
  }

  .note-slider-wrapper {
    gap: 12px;
  }

  .note-list .date {
    font-size: 0.72rem;
    padding: 8px 10px 2px;
  }

  .note-list .title {
    font-size: 0.85rem;
    padding: 0 10px 10px;
    line-height: 1.4;
    -webkit-line-clamp: 2; /* スマホではタイトル2行に */
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    line-height: 32px;
  }
}