/* ========================================================
  pick-up（ピックアップコンテンツ用、JS連動用含む）
======================================================== */
/* pick-up ヘッドライン*/
section.pick-up {
  padding-top: 80px;
}

.pickup-swiper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex;
  align-items: stretch;
}

/* Swiper コンテナ（v11でも .swiper-container を使っている想定） */
.swiper-container {
  overflow: visible;          /* スライド端の見え方を安定させる */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  list-style: none;
  padding: 0;
  z-index: 1;
  height: 100%;
}

/* 参考：.swiper を使うブロックがあっても同等の見え方に */
.pick-up .swiper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
  box-sizing: border-box;
}

.pick-up .swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
  align-items: stretch;
}

/* 実際に使う pickup のコンテナ（左右に40pxの内側余白） */
.pick-up .pickup-container {
  max-width: 1440px;
  width: 100%;
  overflow: hidden;
  padding: 0 40px;
  box-sizing: border-box;
}

/* 基本のスライド箱：幅はSwiper（初期化後）または未初期化ルールで決める */
.pick-up .pickup-container .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

/* カード中身の幅は、初期化状態に応じて自然に合わせる */
.pick-up .pickup-container.swiper-initialized .swiper-slide > .pickup-cont {
  max-width: 300px;                 /* スライド幅いっぱいに */
  width: 100%;
  margin: 0 auto;
}
.pick-up .pickup-container:not(.swiper-initialized) .swiper-slide > .pickup-cont {
  width: 100%;                 /* 300pxの箱の中で100% */
}

/* ====== 3枚以下（未初期化）：中央寄せ＆300px上限・等間隔 ====== */
.pick-up .pickup-container:not(.swiper-initialized) .swiper-wrapper {
  justify-content: center;
  gap: 30px;                   /* JSの spaceBetween 相当の見え方に */
}
.pick-up .pickup-container:not(.swiper-initialized) .swiper-slide {
  width: auto;                 /* 既存の width:100% を打ち消す */
  max-width: 300px;            /* 巨大化防止（未初期化時のみ） */
  flex: 0 1 300px;             /* 300pxを上限に自然縮小 */
  margin: 0;                   /* 余白は gap に一本化（margin-leftは使わない） */
}

/* 参考：.swiper/.swiper-container どちらでも未初期化の中央寄せを担保 */
.pick-up :is(.swiper, .swiper-container):not(.swiper-initialized) .swiper-wrapper {
  justify-content: center;
  gap: 30px;
}
.pick-up :is(.swiper, .swiper-container):not(.swiper-initialized) .swiper-slide {
  width: auto !important;
  max-width: 300px !important;
  flex: 0 1 300px;
  margin: 0 !important;
}

/* カードの中身（画像） */
.pick-up .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;         /* cover にする場合はここを変更 */
}

/* --------------------------------------------------------
   カード本体（白板）：等高＆下にボタン固定
   -------------------------------------------------------- */

:root {
  /* カードの最小高さ（調整しやすいよう変数化） */
  --pickup-card-min-h-pc: 420px;
  --pickup-card-min-h-sp: 360px;
  --header-h: 150px; /* 実際の固定ヘッダーの高さに合わせて */
  --header-h-pc: 150px;   /* 実寸に合わせて */
  --header-h-sp: 100px;   /* 実寸に合わせて */
  --anchor-extra: 88px;
  --anchor-gap: calc(var(--header-h) + 50px);
  --reveal-dur: .9s;                     /* ふわっと時間 */
  --reveal-ease: cubic-bezier(.22,.61,.36,1); /* しっとりしたイージング */
  --stagger-step: .10s;                  /* 段階の間隔 */  
  --sbw: 0px;
}

.pickup-cont {
  min-height: var(--pickup-card-min-h-pc);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 15px;
  height: 100%;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.pickup-cont-img {
  margin-bottom: 0;
}

.pickup-cont-img img {
  width: 90%;
  margin: 0 auto;
  display: block;
}

.pickup-cont-txt {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.pickup-cont-txt h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  padding-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2 * 1.2em);
}

.pickup-cont-txt p {
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(3 * 1.4em);
}

.pickup-btn {
  margin-top: 0;
}

.pickup-btn a {
  position: relative;
  width: 120px;
  height: 30px;
  display: flex;
  align-items: center; 
  justify-content: center; 
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto;
  text-align: center;
  color: #282828 !important;
  background: #ffffff;
  border: 1px solid #282828;
  line-height: 1.4;
  letter-spacing: 0.1em;
  transition: all 0.5s;
  text-shadow: none;
  z-index: 1;
}

.pickup-btn a:hover {
  color: #ffffff !important;
  background: #282828;
}

.swiper-pagination {
  margin: 40px auto 0;
}

/* --------------------------------------------------------
   SP（〜834px）
   -------------------------------------------------------- */
@media screen and (max-width:834px) {

  section .pick-up {
    padding-top: 60px;
  }

  .pick-up .swiper-slide {
    width: 100%;
    height: 100%;
    transition-property: tranceform;
  }

  .pickup-cont {
    min-height: var(--pickup-card-min-h-sp);
    padding: 15px;
    row-gap: 12px;
  }

  .pickup-cont-img img {
    width: 100%;
  }

  .pickup-cont-txt {
    gap: 8px;
  }

  .pickup-btn a {
    width: 100px;
  }
}

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

  .pickup-cont {
    padding: 10px;
  }
}