/* メンバースライダー用CSS - Swiper版 */

/* =================================== */
/* 共通スタイル */
/* =================================== */

.front-section--member-introduction {
  background-color: #fdf5e6;
  margin-bottom: 0;
}

.front-section--member-introduction h2 {
  text-align: center;
  font-size: 22px;
  margin: 35px 0 25px;
  color: #8b4513;
  font-weight: bold;
  background: none;
}

/* タブナビゲーション */
.front-section--member-introduction #tab-area__front-member-introduction .member-tabs {
  display: flex;
  background-color: #f8efd6;
  border-radius: 30px;
  height: 50px;
  overflow: hidden;
  margin: 0 auto 35px;
  align-items: center;
}

.front-section--member-introduction #tab-area__front-member-introduction .member-tabs button {
  flex: 1;
  text-align: center;
  line-height: 45px;
  cursor: pointer;
  color: #9c7d3c;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  padding: 0;
  border-radius: 30px;
}

.front-section--member-introduction #tab-area__front-member-introduction .member-tabs button.current {
  background-color: #ff8e29;
  color: #ffffff;
}

.front-section--member-introduction #tab-area__front-member-introduction .member-tabs button:hover:not(.current) {
  background-color: rgba(0, 0, 0, 0.06);
}

/* Swiperコンテナ */
.member-swiper {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  padding: 5px 0 0;
}

.member-swiper-wrap {
  position: relative;
  margin: 0 auto;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.swiper-slide {
  box-sizing: border-box;
  flex-shrink: 0;
}

/* メンバーカード */
.member-card {
  text-align: center;
  background: #fff9e6;
  border: 2px solid #ffe4b3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card a {
  color: #444;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.member-card__avatar {
  text-align: center;
}

.member-card__avatar img {
  border-radius: 50%;
  object-fit: cover;
  background: #ffe4b3;
}

.member-card__name {
  font-weight: bold;
  color: #ff8c00;
  line-height: 1.3;
  text-align: center;
}

.member-card__info {
  color: #8b4513;
  line-height: 1.2;
  text-align: center;
}

.member-card__badges {
  text-align: center;
}

.member-card__badge {
  display: inline-block;
  background-color: #ff8c00;
  color: white;
}

/* プログレスインジケータ */
.member-slider-progress {
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #ff8e29;
  width: 0%;
  transition: width 0.3s ease;
}

/* タブコンテンツ */
.front-section--member-introduction .tab-content {
  display: none;
}

.front-section--member-introduction .tab-content:first-child {
  display: block;
}

/* メンバー一覧ボタン */
.front-section--member-introduction .btn__wrap {
  text-align: center;
}

.total-members-count {
  color: #8b4513;
  font-weight: bold;
  margin-bottom: 0;
}

.front-section--member-introduction .btn {
  transition: all 0.3s ease;
  position: relative;
}

.front-section--member-introduction .btn:hover {
  text-decoration: none;
  color: white;
}

/* =================================== */
/* PC版 (601px以上) */
/* =================================== */
@media screen and (min-width: 601px) {
  .front-section--member-introduction {
    padding: 15px 20px 65px;
  }

  .front-section--member-introduction #tab-area__front-member-introduction .member-tabs {
    width: 700px;
  }

  .member-swiper-wrap {
    width: 936px;
  }

  .member-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
    padding: 20px 8px 12px;
    height: 200px;
  }

  .member-card:hover {
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.2);
    border-color: #ffd700;
  }

  .member-card__avatar {
    margin-bottom: 10px;
  }

  .member-card__avatar img {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
  }

  .member-card__name {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .member-card__info {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .member-card__badge {
    padding: 0 12px;
    border-radius: 15px;
    font-size: 11px;
    margin: 2px;
  }

  .member-slider-progress {
    margin: 30px auto 20px;
    max-width: 300px;
  }

  .progress-bar {
    height: 8px;
    border-radius: 4px;
  }

  .progress-bar-fill {
    border-radius: 4px;
  }

  /* Swiperナビゲーションボタン (PCのみ表示) */
  .swiper-button-prev,
  .swiper-button-next {
    z-index: 10;
    width: 60px;
    height: 60px;
    background-color: #ff8e29;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
  }

  .swiper-button-prev.swiper-button-disabled,
  .swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc;
    box-shadow: none;
  }

  .member-swiper-wrap .swiper-button-prev {
    left: -80px;
  }
  .member-swiper-wrap .swiper-button-next {
    right: -80px;
  }
  .member-swiper-wrap .swiper-button-prev:hover,
  .member-swiper-wrap .swiper-button-next:hover {
    background-color: #f50;;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
  }

  .front-section--member-introduction .btn__wrap {
    margin-top: 35px;
  }

  .total-members-count {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .front-section--member-introduction .btn {
    font-size: 18px;
    font-weight: bold;
    padding: 20px 50px 20px 40px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  }

  .front-section--member-introduction .btn:hover {
    background-color: #f50;
    opacity: 1;
  }

  .front-section--member-introduction .btn:after {
    top: 22.5px;
    right: 20px;
  }
}

/* =================================== */
/* スマホ版 (600px以下) */
/* =================================== */
@media screen and (max-width: 600px) {
  .front-section--member-introduction h2 {
    font-size: 19px;
    margin-top: 15px;
    line-height: 1.5;
  }

  .front-section--member-introduction {
    padding: 15px 15px 50px;
  }

  .front-section--member-introduction #tab-area__front-member-introduction .member-tabs {
    width: 100%;
    margin-bottom: 20px;
  }

  .member-swiper {
    padding: 0;
  }

  .swiper-wrapper {
    padding: 0;
  }

  .member-card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.1);
    padding: 15px 10px 10px;
    min-height: 140px;
  }

  .member-card:hover {
    transform: translateY(0);
  }

  .member-card__avatar {
    margin-bottom: 8px;
  }

  .member-card__avatar img {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
  }

  .member-card__name {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .member-card__info {
    font-size: 10px;
  }

  .member-card__badge {
    padding: 0 8px;
    border-radius: 10px;
    font-size: 7px;
  }

  .member-slider-progress {
    margin: 20px auto 15px;
    max-width: 250px;
  }

  .progress-bar {
    height: 6px;
    border-radius: 3px;
  }

  .progress-bar-fill {
    border-radius: 3px;
  }

  /* Swiperナビゲーションボタン (スマホでは非表示) */
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .front-section--member-introduction .btn__wrap {
    margin-top: 30px;
  }

  .total-members-count {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .front-section--member-introduction .btn {
    width: auto;
    padding: 18px 40px 18px 30px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(255, 140, 0, 0.3);
    font-weight: bold;
    box-sizing: border-box;
    max-width: 100%;
  }

  .front-section--member-introduction .btn .arrow-icon {
    width: 30px;
    height: 30px;
  }

  .front-section--member-introduction .btn .arrow-icon::after {
    font-size: 16px;
  }

  .front-section--member-introduction .btn:hover {
    background-color: #ff8e29;
  }
}
