/* =========================================
   Card Slider Component
   - SP（768px以下）のみ動作
   - PC時は .about-cards の既存レイアウトを維持
   ========================================= */

/* ▼ SP時のスライダーコントロール */
.about-cards-nav,
.about-cards-dots {
  display: none;
}

@media (max-width: 768px) {
  /* ── スライダーコンテナ ── */
  .about-cards {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
    gap: 0;
    /* 親のpaddingとmax-widthを突き抜けて画面幅いっぱいに */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* ── カードのスライド配置 ── */
  .about-cards .feature-card {
    flex: 0 0 72%;
    max-width: 72%;
    margin: 0 1.5%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease;
    transform: scale(0.78);
    opacity: 0.9;
    pointer-events: none;
    transform-origin: center center;
  }

  .about-cards .feature-card.is-active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* ── ナビゲーション矢印 ── */
  .about-cards-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }

  .about-cards-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #f5c800;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
  }

  .about-cards-nav__btn:active {
    transform: scale(0.92);
  }

  .about-cards-nav__btn:disabled {
    background-color: #ccc;
    cursor: default;
    box-shadow: none;
  }

  .about-cards-nav__btn:disabled:active {
    transform: none;
  }

  .about-cards-nav__btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ── ドットインジケーター ── */
  .about-cards-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .about-cards-dots__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .about-cards-dots__dot.is-current {
    background-color: #333;
    transform: scale(1.25);
  }
}